1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-r128 6.12.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/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-r128/-/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-r128' 624PACKAGE_TARNAME='xf86-video-r128' 625PACKAGE_VERSION='6.12.1' 626PACKAGE_STRING='xf86-video-r128 6.12.1' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/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 678DRI_LIBS 679DRI_CFLAGS 680DRI_FALSE 681DRI_TRUE 682HAVE_XEXTPROTO_71_FALSE 683HAVE_XEXTPROTO_71_TRUE 684XEXT_LIBS 685XEXT_CFLAGS 686XORG_LIBS 687XORG_CFLAGS 688LT_SYS_LIBRARY_PATH 689OTOOL64 690OTOOL 691LIPO 692NMEDIT 693DSYMUTIL 694MANIFEST_TOOL 695RANLIB 696ac_ct_AR 697AR 698DLLTOOL 699OBJDUMP 700FILECMD 701LN_S 702NM 703ac_ct_DUMPBIN 704DUMPBIN 705LD 706FGREP 707EGREP 708GREP 709LIBTOOL 710MAN_SUBSTS 711XORG_MAN_PAGE 712ADMIN_MAN_DIR 713DRIVER_MAN_DIR 714MISC_MAN_DIR 715FILE_MAN_DIR 716LIB_MAN_DIR 717APP_MAN_DIR 718ADMIN_MAN_SUFFIX 719DRIVER_MAN_SUFFIX 720MISC_MAN_SUFFIX 721FILE_MAN_SUFFIX 722LIB_MAN_SUFFIX 723APP_MAN_SUFFIX 724SED 725host_os 726host_vendor 727host_cpu 728host 729build_os 730build_vendor 731build_cpu 732build 733INSTALL_CMD 734PKG_CONFIG_LIBDIR 735PKG_CONFIG_PATH 736PKG_CONFIG 737CHANGELOG_CMD 738STRICT_CFLAGS 739CWARNFLAGS 740BASE_CFLAGS 741am__fastdepCC_FALSE 742am__fastdepCC_TRUE 743CCDEPMODE 744am__nodep 745AMDEPBACKSLASH 746AMDEP_FALSE 747AMDEP_TRUE 748am__include 749DEPDIR 750OBJEXT 751EXEEXT 752ac_ct_CC 753CPPFLAGS 754LDFLAGS 755CFLAGS 756CC 757AM_BACKSLASH 758AM_DEFAULT_VERBOSITY 759AM_DEFAULT_V 760AM_V 761CSCOPE 762ETAGS 763CTAGS 764am__untar 765am__tar 766AMTAR 767am__leading_dot 768SET_MAKE 769AWK 770mkdir_p 771MKDIR_P 772INSTALL_STRIP_PROGRAM 773STRIP 774install_sh 775MAKEINFO 776AUTOHEADER 777AUTOMAKE 778AUTOCONF 779ACLOCAL 780VERSION 781PACKAGE 782CYGPATH_W 783am__isrc 784INSTALL_DATA 785INSTALL_SCRIPT 786INSTALL_PROGRAM 787target_alias 788host_alias 789build_alias 790LIBS 791ECHO_T 792ECHO_N 793ECHO_C 794DEFS 795mandir 796localedir 797libdir 798psdir 799pdfdir 800dvidir 801htmldir 802infodir 803docdir 804oldincludedir 805includedir 806runstatedir 807localstatedir 808sharedstatedir 809sysconfdir 810datadir 811datarootdir 812libexecdir 813sbindir 814bindir 815program_transform_name 816prefix 817exec_prefix 818PACKAGE_URL 819PACKAGE_BUGREPORT 820PACKAGE_STRING 821PACKAGE_VERSION 822PACKAGE_TARNAME 823PACKAGE_NAME 824PATH_SEPARATOR 825SHELL 826am__quote' 827ac_subst_files='' 828ac_user_opts=' 829enable_option_checking 830enable_silent_rules 831enable_dependency_tracking 832enable_selective_werror 833enable_strict_compilation 834enable_static 835enable_shared 836with_pic 837enable_fast_install 838with_aix_soname 839with_gnu_ld 840with_sysroot 841enable_libtool_lock 842with_xorg_module_dir 843enable_dri 844enable_exa 845enable_xaa 846' 847 ac_precious_vars='build_alias 848host_alias 849target_alias 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855PKG_CONFIG 856PKG_CONFIG_PATH 857PKG_CONFIG_LIBDIR 858LT_SYS_LIBRARY_PATH 859XORG_CFLAGS 860XORG_LIBS 861XEXT_CFLAGS 862XEXT_LIBS 863DRI_CFLAGS 864DRI_LIBS 865CPP 866PCIACCESS_CFLAGS 867PCIACCESS_LIBS' 868 869 870# Initialize some variables set by options. 871ac_init_help= 872ac_init_version=false 873ac_unrecognized_opts= 874ac_unrecognized_sep= 875# The variables have the same names as the options, with 876# dashes changed to underlines. 877cache_file=/dev/null 878exec_prefix=NONE 879no_create= 880no_recursion= 881prefix=NONE 882program_prefix=NONE 883program_suffix=NONE 884program_transform_name=s,x,x, 885silent= 886site= 887srcdir= 888verbose= 889x_includes=NONE 890x_libraries=NONE 891 892# Installation directory options. 893# These are left unexpanded so users can "make install exec_prefix=/foo" 894# and all the variables that are supposed to be based on exec_prefix 895# by default will actually change. 896# Use braces instead of parens because sh, perl, etc. also accept them. 897# (The list follows the same order as the GNU Coding Standards.) 898bindir='${exec_prefix}/bin' 899sbindir='${exec_prefix}/sbin' 900libexecdir='${exec_prefix}/libexec' 901datarootdir='${prefix}/share' 902datadir='${datarootdir}' 903sysconfdir='${prefix}/etc' 904sharedstatedir='${prefix}/com' 905localstatedir='${prefix}/var' 906runstatedir='${localstatedir}/run' 907includedir='${prefix}/include' 908oldincludedir='/usr/include' 909docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 910infodir='${datarootdir}/info' 911htmldir='${docdir}' 912dvidir='${docdir}' 913pdfdir='${docdir}' 914psdir='${docdir}' 915libdir='${exec_prefix}/lib' 916localedir='${datarootdir}/locale' 917mandir='${datarootdir}/man' 918 919ac_prev= 920ac_dashdash= 921for ac_option 922do 923 # If the previous option needs an argument, assign it. 924 if test -n "$ac_prev"; then 925 eval $ac_prev=\$ac_option 926 ac_prev= 927 continue 928 fi 929 930 case $ac_option in 931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 932 *=) ac_optarg= ;; 933 *) ac_optarg=yes ;; 934 esac 935 936 case $ac_dashdash$ac_option in 937 --) 938 ac_dashdash=yes ;; 939 940 -bindir | --bindir | --bindi | --bind | --bin | --bi) 941 ac_prev=bindir ;; 942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 943 bindir=$ac_optarg ;; 944 945 -build | --build | --buil | --bui | --bu) 946 ac_prev=build_alias ;; 947 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 948 build_alias=$ac_optarg ;; 949 950 -cache-file | --cache-file | --cache-fil | --cache-fi \ 951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 952 ac_prev=cache_file ;; 953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 955 cache_file=$ac_optarg ;; 956 957 --config-cache | -C) 958 cache_file=config.cache ;; 959 960 -datadir | --datadir | --datadi | --datad) 961 ac_prev=datadir ;; 962 -datadir=* | --datadir=* | --datadi=* | --datad=*) 963 datadir=$ac_optarg ;; 964 965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 966 | --dataroo | --dataro | --datar) 967 ac_prev=datarootdir ;; 968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 970 datarootdir=$ac_optarg ;; 971 972 -disable-* | --disable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: \`$ac_useropt'" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981"enable_$ac_useropt" 982"*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=no ;; 987 988 -docdir | --docdir | --docdi | --doc | --do) 989 ac_prev=docdir ;; 990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 991 docdir=$ac_optarg ;; 992 993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 994 ac_prev=dvidir ;; 995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 996 dvidir=$ac_optarg ;; 997 998 -enable-* | --enable-*) 999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1000 # Reject names that are not valid shell variable names. 1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1002 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1003 ac_useropt_orig=$ac_useropt 1004 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1005 case $ac_user_opts in 1006 *" 1007"enable_$ac_useropt" 1008"*) ;; 1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1010 ac_unrecognized_sep=', ';; 1011 esac 1012 eval enable_$ac_useropt=\$ac_optarg ;; 1013 1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1016 | --exec | --exe | --ex) 1017 ac_prev=exec_prefix ;; 1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1020 | --exec=* | --exe=* | --ex=*) 1021 exec_prefix=$ac_optarg ;; 1022 1023 -gas | --gas | --ga | --g) 1024 # Obsolete; use --with-gas. 1025 with_gas=yes ;; 1026 1027 -help | --help | --hel | --he | -h) 1028 ac_init_help=long ;; 1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1030 ac_init_help=recursive ;; 1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1032 ac_init_help=short ;; 1033 1034 -host | --host | --hos | --ho) 1035 ac_prev=host_alias ;; 1036 -host=* | --host=* | --hos=* | --ho=*) 1037 host_alias=$ac_optarg ;; 1038 1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1040 ac_prev=htmldir ;; 1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1042 | --ht=*) 1043 htmldir=$ac_optarg ;; 1044 1045 -includedir | --includedir | --includedi | --included | --include \ 1046 | --includ | --inclu | --incl | --inc) 1047 ac_prev=includedir ;; 1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1049 | --includ=* | --inclu=* | --incl=* | --inc=*) 1050 includedir=$ac_optarg ;; 1051 1052 -infodir | --infodir | --infodi | --infod | --info | --inf) 1053 ac_prev=infodir ;; 1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1055 infodir=$ac_optarg ;; 1056 1057 -libdir | --libdir | --libdi | --libd) 1058 ac_prev=libdir ;; 1059 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1060 libdir=$ac_optarg ;; 1061 1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1063 | --libexe | --libex | --libe) 1064 ac_prev=libexecdir ;; 1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1066 | --libexe=* | --libex=* | --libe=*) 1067 libexecdir=$ac_optarg ;; 1068 1069 -localedir | --localedir | --localedi | --localed | --locale) 1070 ac_prev=localedir ;; 1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1072 localedir=$ac_optarg ;; 1073 1074 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1075 | --localstate | --localstat | --localsta | --localst | --locals) 1076 ac_prev=localstatedir ;; 1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1079 localstatedir=$ac_optarg ;; 1080 1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1082 ac_prev=mandir ;; 1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1084 mandir=$ac_optarg ;; 1085 1086 -nfp | --nfp | --nf) 1087 # Obsolete; use --without-fp. 1088 with_fp=no ;; 1089 1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1091 | --no-cr | --no-c | -n) 1092 no_create=yes ;; 1093 1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1096 no_recursion=yes ;; 1097 1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1100 | --oldin | --oldi | --old | --ol | --o) 1101 ac_prev=oldincludedir ;; 1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1105 oldincludedir=$ac_optarg ;; 1106 1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1108 ac_prev=prefix ;; 1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1110 prefix=$ac_optarg ;; 1111 1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1113 | --program-pre | --program-pr | --program-p) 1114 ac_prev=program_prefix ;; 1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1117 program_prefix=$ac_optarg ;; 1118 1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1120 | --program-suf | --program-su | --program-s) 1121 ac_prev=program_suffix ;; 1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1124 program_suffix=$ac_optarg ;; 1125 1126 -program-transform-name | --program-transform-name \ 1127 | --program-transform-nam | --program-transform-na \ 1128 | --program-transform-n | --program-transform- \ 1129 | --program-transform | --program-transfor \ 1130 | --program-transfo | --program-transf \ 1131 | --program-trans | --program-tran \ 1132 | --progr-tra | --program-tr | --program-t) 1133 ac_prev=program_transform_name ;; 1134 -program-transform-name=* | --program-transform-name=* \ 1135 | --program-transform-nam=* | --program-transform-na=* \ 1136 | --program-transform-n=* | --program-transform-=* \ 1137 | --program-transform=* | --program-transfor=* \ 1138 | --program-transfo=* | --program-transf=* \ 1139 | --program-trans=* | --program-tran=* \ 1140 | --progr-tra=* | --program-tr=* | --program-t=*) 1141 program_transform_name=$ac_optarg ;; 1142 1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1144 ac_prev=pdfdir ;; 1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1146 pdfdir=$ac_optarg ;; 1147 1148 -psdir | --psdir | --psdi | --psd | --ps) 1149 ac_prev=psdir ;; 1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1151 psdir=$ac_optarg ;; 1152 1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1154 | -silent | --silent | --silen | --sile | --sil) 1155 silent=yes ;; 1156 1157 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1158 | --runstate | --runstat | --runsta | --runst | --runs \ 1159 | --run | --ru | --r) 1160 ac_prev=runstatedir ;; 1161 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1162 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1163 | --run=* | --ru=* | --r=*) 1164 runstatedir=$ac_optarg ;; 1165 1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1167 ac_prev=sbindir ;; 1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1169 | --sbi=* | --sb=*) 1170 sbindir=$ac_optarg ;; 1171 1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1174 | --sharedst | --shareds | --shared | --share | --shar \ 1175 | --sha | --sh) 1176 ac_prev=sharedstatedir ;; 1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1180 | --sha=* | --sh=*) 1181 sharedstatedir=$ac_optarg ;; 1182 1183 -site | --site | --sit) 1184 ac_prev=site ;; 1185 -site=* | --site=* | --sit=*) 1186 site=$ac_optarg ;; 1187 1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1189 ac_prev=srcdir ;; 1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1191 srcdir=$ac_optarg ;; 1192 1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1194 | --syscon | --sysco | --sysc | --sys | --sy) 1195 ac_prev=sysconfdir ;; 1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1198 sysconfdir=$ac_optarg ;; 1199 1200 -target | --target | --targe | --targ | --tar | --ta | --t) 1201 ac_prev=target_alias ;; 1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1203 target_alias=$ac_optarg ;; 1204 1205 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1206 verbose=yes ;; 1207 1208 -version | --version | --versio | --versi | --vers | -V) 1209 ac_init_version=: ;; 1210 1211 -with-* | --with-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: \`$ac_useropt'" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=\$ac_optarg ;; 1226 1227 -without-* | --without-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error $? "invalid package name: \`$ac_useropt'" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"with_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval with_$ac_useropt=no ;; 1242 1243 --x) 1244 # Obsolete; use --with-x. 1245 with_x=yes ;; 1246 1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1248 | --x-incl | --x-inc | --x-in | --x-i) 1249 ac_prev=x_includes ;; 1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1252 x_includes=$ac_optarg ;; 1253 1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1256 ac_prev=x_libraries ;; 1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1259 x_libraries=$ac_optarg ;; 1260 1261 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1262Try \`$0 --help' for more information" 1263 ;; 1264 1265 *=*) 1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1267 # Reject names that are not valid shell variable names. 1268 case $ac_envvar in #( 1269 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1271 esac 1272 eval $ac_envvar=\$ac_optarg 1273 export $ac_envvar ;; 1274 1275 *) 1276 # FIXME: should be removed in autoconf 3.0. 1277 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1279 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1281 ;; 1282 1283 esac 1284done 1285 1286if test -n "$ac_prev"; then 1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1288 as_fn_error $? "missing argument to $ac_option" 1289fi 1290 1291if test -n "$ac_unrecognized_opts"; then 1292 case $enable_option_checking in 1293 no) ;; 1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1295 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1296 esac 1297fi 1298 1299# Check all directory arguments for consistency. 1300for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1301 datadir sysconfdir sharedstatedir localstatedir includedir \ 1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1303 libdir localedir mandir runstatedir 1304do 1305 eval ac_val=\$$ac_var 1306 # Remove trailing slashes. 1307 case $ac_val in 1308 */ ) 1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1310 eval $ac_var=\$ac_val;; 1311 esac 1312 # Be sure to have absolute directory names. 1313 case $ac_val in 1314 [\\/$]* | ?:[\\/]* ) continue;; 1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1316 esac 1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1318done 1319 1320# There might be people who depend on the old broken behavior: `$host' 1321# used to hold the argument of --host etc. 1322# FIXME: To remove some day. 1323build=$build_alias 1324host=$host_alias 1325target=$target_alias 1326 1327# FIXME: To remove some day. 1328if test "x$host_alias" != x; then 1329 if test "x$build_alias" = x; then 1330 cross_compiling=maybe 1331 elif test "x$build_alias" != "x$host_alias"; then 1332 cross_compiling=yes 1333 fi 1334fi 1335 1336ac_tool_prefix= 1337test -n "$host_alias" && ac_tool_prefix=$host_alias- 1338 1339test "$silent" = yes && exec 6>/dev/null 1340 1341 1342ac_pwd=`pwd` && test -n "$ac_pwd" && 1343ac_ls_di=`ls -di .` && 1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1345 as_fn_error $? "working directory cannot be determined" 1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1347 as_fn_error $? "pwd does not report name of working directory" 1348 1349 1350# Find the source files, if location was not specified. 1351if test -z "$srcdir"; then 1352 ac_srcdir_defaulted=yes 1353 # Try the directory containing this script, then the parent directory. 1354 ac_confdir=`$as_dirname -- "$as_myself" || 1355$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1356 X"$as_myself" : 'X\(//\)[^/]' \| \ 1357 X"$as_myself" : 'X\(//\)$' \| \ 1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1359printf "%s\n" X"$as_myself" | 1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\/\)[^/].*/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\/\)$/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\).*/{ 1373 s//\1/ 1374 q 1375 } 1376 s/.*/./; q'` 1377 srcdir=$ac_confdir 1378 if test ! -r "$srcdir/$ac_unique_file"; then 1379 srcdir=.. 1380 fi 1381else 1382 ac_srcdir_defaulted=no 1383fi 1384if test ! -r "$srcdir/$ac_unique_file"; then 1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1387fi 1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1389ac_abs_confdir=`( 1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1391 pwd)` 1392# When building in place, set srcdir=. 1393if test "$ac_abs_confdir" = "$ac_pwd"; then 1394 srcdir=. 1395fi 1396# Remove unnecessary trailing slashes from srcdir. 1397# Double slashes in file names in object file debugging info 1398# mess up M-x gdb in Emacs. 1399case $srcdir in 1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1401esac 1402for ac_var in $ac_precious_vars; do 1403 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_env_${ac_var}_value=\$${ac_var} 1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1406 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1407done 1408 1409# 1410# Report the --help message. 1411# 1412if test "$ac_init_help" = "long"; then 1413 # Omit some internal or obsolete options to make the list less imposing. 1414 # This message is too long to be a string in the A/UX 3.1 sh. 1415 cat <<_ACEOF 1416\`configure' configures xf86-video-r128 6.12.1 to adapt to many kinds of systems. 1417 1418Usage: $0 [OPTION]... [VAR=VALUE]... 1419 1420To assign environment variables (e.g., CC, CFLAGS...), specify them as 1421VAR=VALUE. See below for descriptions of some of the useful variables. 1422 1423Defaults for the options are specified in brackets. 1424 1425Configuration: 1426 -h, --help display this help and exit 1427 --help=short display options specific to this package 1428 --help=recursive display the short help of all the included packages 1429 -V, --version display version information and exit 1430 -q, --quiet, --silent do not print \`checking ...' messages 1431 --cache-file=FILE cache test results in FILE [disabled] 1432 -C, --config-cache alias for \`--cache-file=config.cache' 1433 -n, --no-create do not create output files 1434 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1435 1436Installation directories: 1437 --prefix=PREFIX install architecture-independent files in PREFIX 1438 [$ac_default_prefix] 1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1440 [PREFIX] 1441 1442By default, \`make install' will install all the files in 1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1444an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1445for instance \`--prefix=\$HOME'. 1446 1447For better control, use the options below. 1448 1449Fine tuning of the installation directories: 1450 --bindir=DIR user executables [EPREFIX/bin] 1451 --sbindir=DIR system admin executables [EPREFIX/sbin] 1452 --libexecdir=DIR program executables [EPREFIX/libexec] 1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1456 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1457 --libdir=DIR object code libraries [EPREFIX/lib] 1458 --includedir=DIR C header files [PREFIX/include] 1459 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1462 --infodir=DIR info documentation [DATAROOTDIR/info] 1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1464 --mandir=DIR man documentation [DATAROOTDIR/man] 1465 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-r128] 1466 --htmldir=DIR html documentation [DOCDIR] 1467 --dvidir=DIR dvi documentation [DOCDIR] 1468 --pdfdir=DIR pdf documentation [DOCDIR] 1469 --psdir=DIR ps documentation [DOCDIR] 1470_ACEOF 1471 1472 cat <<\_ACEOF 1473 1474Program names: 1475 --program-prefix=PREFIX prepend PREFIX to installed program names 1476 --program-suffix=SUFFIX append SUFFIX to installed program names 1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1478 1479System types: 1480 --build=BUILD configure for building on BUILD [guessed] 1481 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1482_ACEOF 1483fi 1484 1485if test -n "$ac_init_help"; then 1486 case $ac_init_help in 1487 short | recursive ) echo "Configuration of xf86-video-r128 6.12.1:";; 1488 esac 1489 cat <<\_ACEOF 1490 1491Optional Features: 1492 --disable-option-checking ignore unrecognized --enable/--with options 1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1495 --enable-silent-rules less verbose build output (undo: "make V=1") 1496 --disable-silent-rules verbose build output (undo: "make V=0") 1497 --enable-dependency-tracking 1498 do not reject slow dependency extractors 1499 --disable-dependency-tracking 1500 speeds up one-time build 1501 --disable-selective-werror 1502 Turn off selective compiler errors. (default: 1503 enabled) 1504 --enable-strict-compilation 1505 Enable all warnings from compiler and make them 1506 errors (default: disabled) 1507 --enable-static[=PKGS] build static libraries [default=no] 1508 --enable-shared[=PKGS] build shared libraries [default=yes] 1509 --enable-fast-install[=PKGS] 1510 optimize for fast installation [default=yes] 1511 --disable-libtool-lock avoid locking (might break parallel builds) 1512 --disable-dri Disable DRI support [[default=auto]] 1513 --disable-exa Disable EXA support [[default=enabled]] 1514 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1515 [default=auto] 1516 1517Optional Packages: 1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1520 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1521 both] 1522 --with-aix-soname=aix|svr4|both 1523 shared library versioning (aka "SONAME") variant to 1524 provide on AIX, [default=aix]. 1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1526 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1527 compiler's sysroot if not specified). 1528 --with-xorg-module-dir=DIR 1529 Default xorg module directory 1530 [[default=$libdir/xorg/modules]] 1531 1532Some influential environment variables: 1533 CC C compiler command 1534 CFLAGS C compiler flags 1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1536 nonstandard directory <lib dir> 1537 LIBS libraries to pass to the linker, e.g. -l<library> 1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1539 you have headers in a nonstandard directory <include dir> 1540 PKG_CONFIG path to pkg-config utility 1541 PKG_CONFIG_PATH 1542 directories to add to pkg-config's search path 1543 PKG_CONFIG_LIBDIR 1544 path overriding pkg-config's built-in search path 1545 LT_SYS_LIBRARY_PATH 1546 User-defined run-time library search path. 1547 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1548 XORG_LIBS linker flags for XORG, overriding pkg-config 1549 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1550 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1551 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1552 DRI_LIBS linker flags for DRI, overriding pkg-config 1553 CPP C preprocessor 1554 PCIACCESS_CFLAGS 1555 C compiler flags for PCIACCESS, overriding pkg-config 1556 PCIACCESS_LIBS 1557 linker flags for PCIACCESS, overriding pkg-config 1558 1559Use these variables to override the choices made by `configure' or to help 1560it to find libraries and programs with nonstandard names/locations. 1561 1562Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/issues>. 1563_ACEOF 1564ac_status=$? 1565fi 1566 1567if test "$ac_init_help" = "recursive"; then 1568 # If there are subdirs, report their specific --help. 1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1570 test -d "$ac_dir" || 1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1572 continue 1573 ac_builddir=. 1574 1575case "$ac_dir" in 1576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1577*) 1578 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1579 # A ".." for each directory in $ac_dir_suffix. 1580 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1581 case $ac_top_builddir_sub in 1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1584 esac ;; 1585esac 1586ac_abs_top_builddir=$ac_pwd 1587ac_abs_builddir=$ac_pwd$ac_dir_suffix 1588# for backward compatibility: 1589ac_top_builddir=$ac_top_build_prefix 1590 1591case $srcdir in 1592 .) # We are building in place. 1593 ac_srcdir=. 1594 ac_top_srcdir=$ac_top_builddir_sub 1595 ac_abs_top_srcdir=$ac_pwd ;; 1596 [\\/]* | ?:[\\/]* ) # Absolute name. 1597 ac_srcdir=$srcdir$ac_dir_suffix; 1598 ac_top_srcdir=$srcdir 1599 ac_abs_top_srcdir=$srcdir ;; 1600 *) # Relative name. 1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1602 ac_top_srcdir=$ac_top_build_prefix$srcdir 1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1604esac 1605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1606 1607 cd "$ac_dir" || { ac_status=$?; continue; } 1608 # Check for configure.gnu first; this name is used for a wrapper for 1609 # Metaconfig's "Configure" on case-insensitive file systems. 1610 if test -f "$ac_srcdir/configure.gnu"; then 1611 echo && 1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1613 elif test -f "$ac_srcdir/configure"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure" --help=recursive 1616 else 1617 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1618 fi || ac_status=$? 1619 cd "$ac_pwd" || { ac_status=$?; break; } 1620 done 1621fi 1622 1623test -n "$ac_init_help" && exit $ac_status 1624if $ac_init_version; then 1625 cat <<\_ACEOF 1626xf86-video-r128 configure 6.12.1 1627generated by GNU Autoconf 2.71 1628 1629Copyright (C) 2021 Free Software Foundation, Inc. 1630This configure script is free software; the Free Software Foundation 1631gives unlimited permission to copy, distribute and modify it. 1632_ACEOF 1633 exit 1634fi 1635 1636## ------------------------ ## 1637## Autoconf initialization. ## 1638## ------------------------ ## 1639 1640# ac_fn_c_try_compile LINENO 1641# -------------------------- 1642# Try to compile conftest.$ac_ext, and return whether this succeeded. 1643ac_fn_c_try_compile () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 rm -f conftest.$ac_objext conftest.beam 1647 if { { ac_try="$ac_compile" 1648case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653printf "%s\n" "$ac_try_echo"; } >&5 1654 (eval "$ac_compile") 2>conftest.err 1655 ac_status=$? 1656 if test -s conftest.err; then 1657 grep -v '^ *+' conftest.err >conftest.er1 1658 cat conftest.er1 >&5 1659 mv -f conftest.er1 conftest.err 1660 fi 1661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; } && { 1663 test -z "$ac_c_werror_flag" || 1664 test ! -s conftest.err 1665 } && test -s conftest.$ac_objext 1666then : 1667 ac_retval=0 1668else $as_nop 1669 printf "%s\n" "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_c_try_compile 1678 1679# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1680# ------------------------------------------------------------------ 1681# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1682# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1683ac_fn_check_decl () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 as_decl_name=`echo $2|sed 's/ *(.*//'` 1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1688printf %s "checking whether $as_decl_name is declared... " >&6; } 1689if eval test \${$3+y} 1690then : 1691 printf %s "(cached) " >&6 1692else $as_nop 1693 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1694 eval ac_save_FLAGS=\$$6 1695 as_fn_append $6 " $5" 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697/* end confdefs.h. */ 1698$4 1699int 1700main (void) 1701{ 1702#ifndef $as_decl_name 1703#ifdef __cplusplus 1704 (void) $as_decl_use; 1705#else 1706 (void) $as_decl_name; 1707#endif 1708#endif 1709 1710 ; 1711 return 0; 1712} 1713_ACEOF 1714if ac_fn_c_try_compile "$LINENO" 1715then : 1716 eval "$3=yes" 1717else $as_nop 1718 eval "$3=no" 1719fi 1720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1721 eval $6=\$ac_save_FLAGS 1722 1723fi 1724eval ac_res=\$$3 1725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1726printf "%s\n" "$ac_res" >&6; } 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 1729} # ac_fn_check_decl 1730 1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1732# ------------------------------------------------------- 1733# Tests whether HEADER exists and can be compiled using the include files in 1734# INCLUDES, setting the cache variable VAR accordingly. 1735ac_fn_c_check_header_compile () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739printf %s "checking for $2... " >&6; } 1740if eval test \${$3+y} 1741then : 1742 printf %s "(cached) " >&6 1743else $as_nop 1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746$4 1747#include <$2> 1748_ACEOF 1749if ac_fn_c_try_compile "$LINENO" 1750then : 1751 eval "$3=yes" 1752else $as_nop 1753 eval "$3=no" 1754fi 1755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1756fi 1757eval ac_res=\$$3 1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1759printf "%s\n" "$ac_res" >&6; } 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 1762} # ac_fn_c_check_header_compile 1763 1764# ac_fn_c_try_link LINENO 1765# ----------------------- 1766# Try to link conftest.$ac_ext, and return whether this succeeded. 1767ac_fn_c_try_link () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1771 if { { ac_try="$ac_link" 1772case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777printf "%s\n" "$ac_try_echo"; } >&5 1778 (eval "$ac_link") 2>conftest.err 1779 ac_status=$? 1780 if test -s conftest.err; then 1781 grep -v '^ *+' conftest.err >conftest.er1 1782 cat conftest.er1 >&5 1783 mv -f conftest.er1 conftest.err 1784 fi 1785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { 1787 test -z "$ac_c_werror_flag" || 1788 test ! -s conftest.err 1789 } && test -s conftest$ac_exeext && { 1790 test "$cross_compiling" = yes || 1791 test -x conftest$ac_exeext 1792 } 1793then : 1794 ac_retval=0 1795else $as_nop 1796 printf "%s\n" "$as_me: failed program was:" >&5 1797sed 's/^/| /' conftest.$ac_ext >&5 1798 1799 ac_retval=1 1800fi 1801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1803 # interfere with the next link command; also delete a directory that is 1804 # left behind by Apple's compiler. We do this before executing the actions. 1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 as_fn_set_status $ac_retval 1808 1809} # ac_fn_c_try_link 1810 1811# ac_fn_c_check_func LINENO FUNC VAR 1812# ---------------------------------- 1813# Tests whether FUNC exists, setting the cache variable VAR accordingly 1814ac_fn_c_check_func () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818printf %s "checking for $2... " >&6; } 1819if eval test \${$3+y} 1820then : 1821 printf %s "(cached) " >&6 1822else $as_nop 1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1827#define $2 innocuous_$2 1828 1829/* System header to define __stub macros and hopefully few prototypes, 1830 which can conflict with char $2 (); below. */ 1831 1832#include <limits.h> 1833#undef $2 1834 1835/* Override any GCC internal prototype to avoid an error. 1836 Use char because int might match the return type of a GCC 1837 builtin and then its argument prototype would still apply. */ 1838#ifdef __cplusplus 1839extern "C" 1840#endif 1841char $2 (); 1842/* The GNU C library defines this for functions which it implements 1843 to always fail with ENOSYS. Some functions are actually named 1844 something starting with __ and the normal name is an alias. */ 1845#if defined __stub_$2 || defined __stub___$2 1846choke me 1847#endif 1848 1849int 1850main (void) 1851{ 1852return $2 (); 1853 ; 1854 return 0; 1855} 1856_ACEOF 1857if ac_fn_c_try_link "$LINENO" 1858then : 1859 eval "$3=yes" 1860else $as_nop 1861 eval "$3=no" 1862fi 1863rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1864 conftest$ac_exeext conftest.$ac_ext 1865fi 1866eval ac_res=\$$3 1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1868printf "%s\n" "$ac_res" >&6; } 1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1870 1871} # ac_fn_c_check_func 1872 1873# ac_fn_c_try_cpp LINENO 1874# ---------------------- 1875# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1876ac_fn_c_try_cpp () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 if { { ac_try="$ac_cpp conftest.$ac_ext" 1880case "(($ac_try" in 1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1882 *) ac_try_echo=$ac_try;; 1883esac 1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1885printf "%s\n" "$ac_try_echo"; } >&5 1886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1887 ac_status=$? 1888 if test -s conftest.err; then 1889 grep -v '^ *+' conftest.err >conftest.er1 1890 cat conftest.er1 >&5 1891 mv -f conftest.er1 conftest.err 1892 fi 1893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1894 test $ac_status = 0; } > conftest.i && { 1895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1896 test ! -s conftest.err 1897 } 1898then : 1899 ac_retval=0 1900else $as_nop 1901 printf "%s\n" "$as_me: failed program was:" >&5 1902sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=1 1905fi 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 as_fn_set_status $ac_retval 1908 1909} # ac_fn_c_try_cpp 1910ac_configure_args_raw= 1911for ac_arg 1912do 1913 case $ac_arg in 1914 *\'*) 1915 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1916 esac 1917 as_fn_append ac_configure_args_raw " '$ac_arg'" 1918done 1919 1920case $ac_configure_args_raw in 1921 *$as_nl*) 1922 ac_safe_unquote= ;; 1923 *) 1924 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1925 ac_unsafe_a="$ac_unsafe_z#~" 1926 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1927 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1928esac 1929 1930cat >config.log <<_ACEOF 1931This file contains any messages produced by compilers while 1932running configure, to aid debugging if configure makes a mistake. 1933 1934It was created by xf86-video-r128 $as_me 6.12.1, which was 1935generated by GNU Autoconf 2.71. Invocation command line was 1936 1937 $ $0$ac_configure_args_raw 1938 1939_ACEOF 1940exec 5>>config.log 1941{ 1942cat <<_ASUNAME 1943## --------- ## 1944## Platform. ## 1945## --------- ## 1946 1947hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1948uname -m = `(uname -m) 2>/dev/null || echo unknown` 1949uname -r = `(uname -r) 2>/dev/null || echo unknown` 1950uname -s = `(uname -s) 2>/dev/null || echo unknown` 1951uname -v = `(uname -v) 2>/dev/null || echo unknown` 1952 1953/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1954/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1955 1956/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1957/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1958/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1959/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1960/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1961/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1962/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1963 1964_ASUNAME 1965 1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1967for as_dir in $PATH 1968do 1969 IFS=$as_save_IFS 1970 case $as_dir in #((( 1971 '') as_dir=./ ;; 1972 */) ;; 1973 *) as_dir=$as_dir/ ;; 1974 esac 1975 printf "%s\n" "PATH: $as_dir" 1976 done 1977IFS=$as_save_IFS 1978 1979} >&5 1980 1981cat >&5 <<_ACEOF 1982 1983 1984## ----------- ## 1985## Core tests. ## 1986## ----------- ## 1987 1988_ACEOF 1989 1990 1991# Keep a trace of the command line. 1992# Strip out --no-create and --no-recursion so they do not pile up. 1993# Strip out --silent because we don't want to record it for future runs. 1994# Also quote any args containing shell meta-characters. 1995# Make two passes to allow for proper duplicate-argument suppression. 1996ac_configure_args= 1997ac_configure_args0= 1998ac_configure_args1= 1999ac_must_keep_next=false 2000for ac_pass in 1 2 2001do 2002 for ac_arg 2003 do 2004 case $ac_arg in 2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2007 | -silent | --silent | --silen | --sile | --sil) 2008 continue ;; 2009 *\'*) 2010 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2011 esac 2012 case $ac_pass in 2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2014 2) 2015 as_fn_append ac_configure_args1 " '$ac_arg'" 2016 if test $ac_must_keep_next = true; then 2017 ac_must_keep_next=false # Got value, back to normal. 2018 else 2019 case $ac_arg in 2020 *=* | --config-cache | -C | -disable-* | --disable-* \ 2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2023 | -with-* | --with-* | -without-* | --without-* | --x) 2024 case "$ac_configure_args0 " in 2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2026 esac 2027 ;; 2028 -* ) ac_must_keep_next=true ;; 2029 esac 2030 fi 2031 as_fn_append ac_configure_args " '$ac_arg'" 2032 ;; 2033 esac 2034 done 2035done 2036{ ac_configure_args0=; unset ac_configure_args0;} 2037{ ac_configure_args1=; unset ac_configure_args1;} 2038 2039# When interrupted or exit'd, cleanup temporary files, and complete 2040# config.log. We remove comments because anyway the quotes in there 2041# would cause problems or look ugly. 2042# WARNING: Use '\'' to represent an apostrophe within the trap. 2043# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2044trap 'exit_status=$? 2045 # Sanitize IFS. 2046 IFS=" "" $as_nl" 2047 # Save into config.log some information that might help in debugging. 2048 { 2049 echo 2050 2051 printf "%s\n" "## ---------------- ## 2052## Cache variables. ## 2053## ---------------- ##" 2054 echo 2055 # The following way of writing the cache mishandles newlines in values, 2056( 2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2058 eval ac_val=\$$ac_var 2059 case $ac_val in #( 2060 *${as_nl}*) 2061 case $ac_var in #( 2062 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2063printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2064 esac 2065 case $ac_var in #( 2066 _ | IFS | as_nl) ;; #( 2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2068 *) { eval $ac_var=; unset $ac_var;} ;; 2069 esac ;; 2070 esac 2071 done 2072 (set) 2>&1 | 2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2074 *${as_nl}ac_space=\ *) 2075 sed -n \ 2076 "s/'\''/'\''\\\\'\'''\''/g; 2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2078 ;; #( 2079 *) 2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2081 ;; 2082 esac | 2083 sort 2084) 2085 echo 2086 2087 printf "%s\n" "## ----------------- ## 2088## Output variables. ## 2089## ----------------- ##" 2090 echo 2091 for ac_var in $ac_subst_vars 2092 do 2093 eval ac_val=\$$ac_var 2094 case $ac_val in 2095 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2096 esac 2097 printf "%s\n" "$ac_var='\''$ac_val'\''" 2098 done | sort 2099 echo 2100 2101 if test -n "$ac_subst_files"; then 2102 printf "%s\n" "## ------------------- ## 2103## File substitutions. ## 2104## ------------------- ##" 2105 echo 2106 for ac_var in $ac_subst_files 2107 do 2108 eval ac_val=\$$ac_var 2109 case $ac_val in 2110 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2111 esac 2112 printf "%s\n" "$ac_var='\''$ac_val'\''" 2113 done | sort 2114 echo 2115 fi 2116 2117 if test -s confdefs.h; then 2118 printf "%s\n" "## ----------- ## 2119## confdefs.h. ## 2120## ----------- ##" 2121 echo 2122 cat confdefs.h 2123 echo 2124 fi 2125 test "$ac_signal" != 0 && 2126 printf "%s\n" "$as_me: caught signal $ac_signal" 2127 printf "%s\n" "$as_me: exit $exit_status" 2128 } >&5 2129 rm -f core *.core core.conftest.* && 2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2131 exit $exit_status 2132' 0 2133for ac_signal in 1 2 13 15; do 2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2135done 2136ac_signal=0 2137 2138# confdefs.h avoids OS command line length limits that DEFS can exceed. 2139rm -f -r conftest* confdefs.h 2140 2141printf "%s\n" "/* confdefs.h */" > confdefs.h 2142 2143# Predefined preprocessor variables. 2144 2145printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2146 2147printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2148 2149printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2150 2151printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2152 2153printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2154 2155printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2156 2157 2158# Let the site file select an alternate cache file if it wants to. 2159# Prefer an explicitly selected file to automatically selected ones. 2160if test -n "$CONFIG_SITE"; then 2161 ac_site_files="$CONFIG_SITE" 2162elif test "x$prefix" != xNONE; then 2163 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2164else 2165 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2166fi 2167 2168for ac_site_file in $ac_site_files 2169do 2170 case $ac_site_file in #( 2171 */*) : 2172 ;; #( 2173 *) : 2174 ac_site_file=./$ac_site_file ;; 2175esac 2176 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2178printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2179 sed 's/^/| /' "$ac_site_file" >&5 2180 . "$ac_site_file" \ 2181 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2182printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2183as_fn_error $? "failed to load site script $ac_site_file 2184See \`config.log' for more details" "$LINENO" 5; } 2185 fi 2186done 2187 2188if test -r "$cache_file"; then 2189 # Some versions of bash will fail to source /dev/null (special files 2190 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2191 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2193printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2194 case $cache_file in 2195 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2196 *) . "./$cache_file";; 2197 esac 2198 fi 2199else 2200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2201printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2202 >$cache_file 2203fi 2204 2205# Test code for whether the C compiler supports C89 (global declarations) 2206ac_c_conftest_c89_globals=' 2207/* Does the compiler advertise C89 conformance? 2208 Do not test the value of __STDC__, because some compilers set it to 0 2209 while being otherwise adequately conformant. */ 2210#if !defined __STDC__ 2211# error "Compiler does not advertise C89 conformance" 2212#endif 2213 2214#include <stddef.h> 2215#include <stdarg.h> 2216struct stat; 2217/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2218struct buf { int x; }; 2219struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2220static char *e (p, i) 2221 char **p; 2222 int i; 2223{ 2224 return p[i]; 2225} 2226static char *f (char * (*g) (char **, int), char **p, ...) 2227{ 2228 char *s; 2229 va_list v; 2230 va_start (v,p); 2231 s = g (p, va_arg (v,int)); 2232 va_end (v); 2233 return s; 2234} 2235 2236/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2237 function prototypes and stuff, but not \xHH hex character constants. 2238 These do not provoke an error unfortunately, instead are silently treated 2239 as an "x". The following induces an error, until -std is added to get 2240 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2241 array size at least. It is necessary to write \x00 == 0 to get something 2242 that is true only with -std. */ 2243int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2244 2245/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2246 inside strings and character constants. */ 2247#define FOO(x) '\''x'\'' 2248int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2249 2250int test (int i, double x); 2251struct s1 {int (*f) (int a);}; 2252struct s2 {int (*f) (double a);}; 2253int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2254 int, int);' 2255 2256# Test code for whether the C compiler supports C89 (body of main). 2257ac_c_conftest_c89_main=' 2258ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2259' 2260 2261# Test code for whether the C compiler supports C99 (global declarations) 2262ac_c_conftest_c99_globals=' 2263// Does the compiler advertise C99 conformance? 2264#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2265# error "Compiler does not advertise C99 conformance" 2266#endif 2267 2268#include <stdbool.h> 2269extern int puts (const char *); 2270extern int printf (const char *, ...); 2271extern int dprintf (int, const char *, ...); 2272extern void *malloc (size_t); 2273 2274// Check varargs macros. These examples are taken from C99 6.10.3.5. 2275// dprintf is used instead of fprintf to avoid needing to declare 2276// FILE and stderr. 2277#define debug(...) dprintf (2, __VA_ARGS__) 2278#define showlist(...) puts (#__VA_ARGS__) 2279#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2280static void 2281test_varargs_macros (void) 2282{ 2283 int x = 1234; 2284 int y = 5678; 2285 debug ("Flag"); 2286 debug ("X = %d\n", x); 2287 showlist (The first, second, and third items.); 2288 report (x>y, "x is %d but y is %d", x, y); 2289} 2290 2291// Check long long types. 2292#define BIG64 18446744073709551615ull 2293#define BIG32 4294967295ul 2294#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2295#if !BIG_OK 2296 #error "your preprocessor is broken" 2297#endif 2298#if BIG_OK 2299#else 2300 #error "your preprocessor is broken" 2301#endif 2302static long long int bignum = -9223372036854775807LL; 2303static unsigned long long int ubignum = BIG64; 2304 2305struct incomplete_array 2306{ 2307 int datasize; 2308 double data[]; 2309}; 2310 2311struct named_init { 2312 int number; 2313 const wchar_t *name; 2314 double average; 2315}; 2316 2317typedef const char *ccp; 2318 2319static inline int 2320test_restrict (ccp restrict text) 2321{ 2322 // See if C++-style comments work. 2323 // Iterate through items via the restricted pointer. 2324 // Also check for declarations in for loops. 2325 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2326 continue; 2327 return 0; 2328} 2329 2330// Check varargs and va_copy. 2331static bool 2332test_varargs (const char *format, ...) 2333{ 2334 va_list args; 2335 va_start (args, format); 2336 va_list args_copy; 2337 va_copy (args_copy, args); 2338 2339 const char *str = ""; 2340 int number = 0; 2341 float fnumber = 0; 2342 2343 while (*format) 2344 { 2345 switch (*format++) 2346 { 2347 case '\''s'\'': // string 2348 str = va_arg (args_copy, const char *); 2349 break; 2350 case '\''d'\'': // int 2351 number = va_arg (args_copy, int); 2352 break; 2353 case '\''f'\'': // float 2354 fnumber = va_arg (args_copy, double); 2355 break; 2356 default: 2357 break; 2358 } 2359 } 2360 va_end (args_copy); 2361 va_end (args); 2362 2363 return *str && number && fnumber; 2364} 2365' 2366 2367# Test code for whether the C compiler supports C99 (body of main). 2368ac_c_conftest_c99_main=' 2369 // Check bool. 2370 _Bool success = false; 2371 success |= (argc != 0); 2372 2373 // Check restrict. 2374 if (test_restrict ("String literal") == 0) 2375 success = true; 2376 char *restrict newvar = "Another string"; 2377 2378 // Check varargs. 2379 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2380 test_varargs_macros (); 2381 2382 // Check flexible array members. 2383 struct incomplete_array *ia = 2384 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2385 ia->datasize = 10; 2386 for (int i = 0; i < ia->datasize; ++i) 2387 ia->data[i] = i * 1.234; 2388 2389 // Check named initializers. 2390 struct named_init ni = { 2391 .number = 34, 2392 .name = L"Test wide string", 2393 .average = 543.34343, 2394 }; 2395 2396 ni.number = 58; 2397 2398 int dynamic_array[ni.number]; 2399 dynamic_array[0] = argv[0][0]; 2400 dynamic_array[ni.number - 1] = 543; 2401 2402 // work around unused variable warnings 2403 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2404 || dynamic_array[ni.number - 1] != 543); 2405' 2406 2407# Test code for whether the C compiler supports C11 (global declarations) 2408ac_c_conftest_c11_globals=' 2409// Does the compiler advertise C11 conformance? 2410#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2411# error "Compiler does not advertise C11 conformance" 2412#endif 2413 2414// Check _Alignas. 2415char _Alignas (double) aligned_as_double; 2416char _Alignas (0) no_special_alignment; 2417extern char aligned_as_int; 2418char _Alignas (0) _Alignas (int) aligned_as_int; 2419 2420// Check _Alignof. 2421enum 2422{ 2423 int_alignment = _Alignof (int), 2424 int_array_alignment = _Alignof (int[100]), 2425 char_alignment = _Alignof (char) 2426}; 2427_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2428 2429// Check _Noreturn. 2430int _Noreturn does_not_return (void) { for (;;) continue; } 2431 2432// Check _Static_assert. 2433struct test_static_assert 2434{ 2435 int x; 2436 _Static_assert (sizeof (int) <= sizeof (long int), 2437 "_Static_assert does not work in struct"); 2438 long int y; 2439}; 2440 2441// Check UTF-8 literals. 2442#define u8 syntax error! 2443char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2444 2445// Check duplicate typedefs. 2446typedef long *long_ptr; 2447typedef long int *long_ptr; 2448typedef long_ptr long_ptr; 2449 2450// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2451struct anonymous 2452{ 2453 union { 2454 struct { int i; int j; }; 2455 struct { int k; long int l; } w; 2456 }; 2457 int m; 2458} v1; 2459' 2460 2461# Test code for whether the C compiler supports C11 (body of main). 2462ac_c_conftest_c11_main=' 2463 _Static_assert ((offsetof (struct anonymous, i) 2464 == offsetof (struct anonymous, w.k)), 2465 "Anonymous union alignment botch"); 2466 v1.i = 2; 2467 v1.w.k = 5; 2468 ok |= v1.i != 5; 2469' 2470 2471# Test code for whether the C compiler supports C11 (complete). 2472ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2473${ac_c_conftest_c99_globals} 2474${ac_c_conftest_c11_globals} 2475 2476int 2477main (int argc, char **argv) 2478{ 2479 int ok = 0; 2480 ${ac_c_conftest_c89_main} 2481 ${ac_c_conftest_c99_main} 2482 ${ac_c_conftest_c11_main} 2483 return ok; 2484} 2485" 2486 2487# Test code for whether the C compiler supports C99 (complete). 2488ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2489${ac_c_conftest_c99_globals} 2490 2491int 2492main (int argc, char **argv) 2493{ 2494 int ok = 0; 2495 ${ac_c_conftest_c89_main} 2496 ${ac_c_conftest_c99_main} 2497 return ok; 2498} 2499" 2500 2501# Test code for whether the C compiler supports C89 (complete). 2502ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2503 2504int 2505main (int argc, char **argv) 2506{ 2507 int ok = 0; 2508 ${ac_c_conftest_c89_main} 2509 return ok; 2510} 2511" 2512 2513as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2514as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2515as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2516as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2517as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2518as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2519as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2520as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2521as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2522 2523# Auxiliary files required by this configure script. 2524ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2525 2526# Locations in which to look for auxiliary files. 2527ac_aux_dir_candidates="${srcdir}/." 2528 2529# Search for a directory containing all of the required auxiliary files, 2530# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2531# If we don't find one directory that contains all the files we need, 2532# we report the set of missing files from the *first* directory in 2533# $ac_aux_dir_candidates and give up. 2534ac_missing_aux_files="" 2535ac_first_candidate=: 2536printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538as_found=false 2539for as_dir in $ac_aux_dir_candidates 2540do 2541 IFS=$as_save_IFS 2542 case $as_dir in #((( 2543 '') as_dir=./ ;; 2544 */) ;; 2545 *) as_dir=$as_dir/ ;; 2546 esac 2547 as_found=: 2548 2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2550 ac_aux_dir_found=yes 2551 ac_install_sh= 2552 for ac_aux in $ac_aux_files 2553 do 2554 # As a special case, if "install-sh" is required, that requirement 2555 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2556 # and $ac_install_sh is set appropriately for whichever one is found. 2557 if test x"$ac_aux" = x"install-sh" 2558 then 2559 if test -f "${as_dir}install-sh"; then 2560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2561 ac_install_sh="${as_dir}install-sh -c" 2562 elif test -f "${as_dir}install.sh"; then 2563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2564 ac_install_sh="${as_dir}install.sh -c" 2565 elif test -f "${as_dir}shtool"; then 2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2567 ac_install_sh="${as_dir}shtool install -c" 2568 else 2569 ac_aux_dir_found=no 2570 if $ac_first_candidate; then 2571 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2572 else 2573 break 2574 fi 2575 fi 2576 else 2577 if test -f "${as_dir}${ac_aux}"; then 2578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2579 else 2580 ac_aux_dir_found=no 2581 if $ac_first_candidate; then 2582 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2583 else 2584 break 2585 fi 2586 fi 2587 fi 2588 done 2589 if test "$ac_aux_dir_found" = yes; then 2590 ac_aux_dir="$as_dir" 2591 break 2592 fi 2593 ac_first_candidate=false 2594 2595 as_found=false 2596done 2597IFS=$as_save_IFS 2598if $as_found 2599then : 2600 2601else $as_nop 2602 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2603fi 2604 2605 2606# These three variables are undocumented and unsupported, 2607# and are intended to be withdrawn in a future Autoconf release. 2608# They can cause serious problems if a builder's source tree is in a directory 2609# whose full name contains unusual characters. 2610if test -f "${ac_aux_dir}config.guess"; then 2611 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2612fi 2613if test -f "${ac_aux_dir}config.sub"; then 2614 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2615fi 2616if test -f "$ac_aux_dir/configure"; then 2617 ac_configure="$SHELL ${ac_aux_dir}configure" 2618fi 2619 2620# Check that the precious variables saved in the cache have kept the same 2621# value. 2622ac_cache_corrupted=false 2623for ac_var in $ac_precious_vars; do 2624 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2625 eval ac_new_set=\$ac_env_${ac_var}_set 2626 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2627 eval ac_new_val=\$ac_env_${ac_var}_value 2628 case $ac_old_set,$ac_new_set in 2629 set,) 2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2631printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2632 ac_cache_corrupted=: ;; 2633 ,set) 2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2635printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2636 ac_cache_corrupted=: ;; 2637 ,);; 2638 *) 2639 if test "x$ac_old_val" != "x$ac_new_val"; then 2640 # differences in whitespace do not lead to failure. 2641 ac_old_val_w=`echo x $ac_old_val` 2642 ac_new_val_w=`echo x $ac_new_val` 2643 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2645printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2646 ac_cache_corrupted=: 2647 else 2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2649printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2650 eval $ac_var=\$ac_old_val 2651 fi 2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2653printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2655printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2656 fi;; 2657 esac 2658 # Pass precious variables to config.status. 2659 if test "$ac_new_set" = set; then 2660 case $ac_new_val in 2661 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2662 *) ac_arg=$ac_var=$ac_new_val ;; 2663 esac 2664 case " $ac_configure_args " in 2665 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2666 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2667 esac 2668 fi 2669done 2670if $ac_cache_corrupted; then 2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2672printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2674printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2675 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2676 and start over" "$LINENO" 5 2677fi 2678## -------------------- ## 2679## Main body of script. ## 2680## -------------------- ## 2681 2682ac_ext=c 2683ac_cpp='$CPP $CPPFLAGS' 2684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2686ac_compiler_gnu=$ac_cv_c_compiler_gnu 2687 2688 2689 2690ac_config_headers="$ac_config_headers config.h" 2691 2692 2693 2694# Initialize Automake 2695am__api_version='1.16' 2696 2697 2698 2699 # Find a good install program. We prefer a C program (faster), 2700# so one script is as good as another. But avoid the broken or 2701# incompatible versions: 2702# SysV /etc/install, /usr/sbin/install 2703# SunOS /usr/etc/install 2704# IRIX /sbin/install 2705# AIX /bin/install 2706# AmigaOS /C/install, which installs bootblocks on floppy discs 2707# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2708# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2709# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2710# OS/2's system install, which has a completely different semantic 2711# ./install, which can be erroneously created by make from ./install.sh. 2712# Reject install programs that cannot install multiple files. 2713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2714printf %s "checking for a BSD-compatible install... " >&6; } 2715if test -z "$INSTALL"; then 2716if test ${ac_cv_path_install+y} 2717then : 2718 printf %s "(cached) " >&6 2719else $as_nop 2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2721for as_dir in $PATH 2722do 2723 IFS=$as_save_IFS 2724 case $as_dir in #((( 2725 '') as_dir=./ ;; 2726 */) ;; 2727 *) as_dir=$as_dir/ ;; 2728 esac 2729 # Account for fact that we put trailing slashes in our PATH walk. 2730case $as_dir in #(( 2731 ./ | /[cC]/* | \ 2732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2734 /usr/ucb/* ) ;; 2735 *) 2736 # OSF1 and SCO ODT 3.0 have their own names for install. 2737 # Don't use installbsd from OSF since it installs stuff as root 2738 # by default. 2739 for ac_prog in ginstall scoinst install; do 2740 for ac_exec_ext in '' $ac_executable_extensions; do 2741 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2742 if test $ac_prog = install && 2743 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2744 # AIX install. It has an incompatible calling convention. 2745 : 2746 elif test $ac_prog = install && 2747 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2748 # program-specific install script used by HP pwplus--don't use. 2749 : 2750 else 2751 rm -rf conftest.one conftest.two conftest.dir 2752 echo one > conftest.one 2753 echo two > conftest.two 2754 mkdir conftest.dir 2755 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2756 test -s conftest.one && test -s conftest.two && 2757 test -s conftest.dir/conftest.one && 2758 test -s conftest.dir/conftest.two 2759 then 2760 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2761 break 3 2762 fi 2763 fi 2764 fi 2765 done 2766 done 2767 ;; 2768esac 2769 2770 done 2771IFS=$as_save_IFS 2772 2773rm -rf conftest.one conftest.two conftest.dir 2774 2775fi 2776 if test ${ac_cv_path_install+y}; then 2777 INSTALL=$ac_cv_path_install 2778 else 2779 # As a last resort, use the slow shell script. Don't cache a 2780 # value for INSTALL within a source directory, because that will 2781 # break other packages using the cache if that directory is 2782 # removed, or if the value is a relative name. 2783 INSTALL=$ac_install_sh 2784 fi 2785fi 2786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2787printf "%s\n" "$INSTALL" >&6; } 2788 2789# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2790# It thinks the first close brace ends the variable substitution. 2791test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2792 2793test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2794 2795test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2796 2797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2798printf %s "checking whether build environment is sane... " >&6; } 2799# Reject unsafe characters in $srcdir or the absolute working directory 2800# name. Accept space and tab only in the latter. 2801am_lf=' 2802' 2803case `pwd` in 2804 *[\\\"\#\$\&\'\`$am_lf]*) 2805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2806esac 2807case $srcdir in 2808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2809 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2810esac 2811 2812# Do 'set' in a subshell so we don't clobber the current shell's 2813# arguments. Must try -L first in case configure is actually a 2814# symlink; some systems play weird games with the mod time of symlinks 2815# (eg FreeBSD returns the mod time of the symlink's containing 2816# directory). 2817if ( 2818 am_has_slept=no 2819 for am_try in 1 2; do 2820 echo "timestamp, slept: $am_has_slept" > conftest.file 2821 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2822 if test "$*" = "X"; then 2823 # -L didn't work. 2824 set X `ls -t "$srcdir/configure" conftest.file` 2825 fi 2826 if test "$*" != "X $srcdir/configure conftest.file" \ 2827 && test "$*" != "X conftest.file $srcdir/configure"; then 2828 2829 # If neither matched, then we have a broken ls. This can happen 2830 # if, for instance, CONFIG_SHELL is bash and it inherits a 2831 # broken ls alias from the environment. This has actually 2832 # happened. Such a system could not be considered "sane". 2833 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2834 alias in your environment" "$LINENO" 5 2835 fi 2836 if test "$2" = conftest.file || test $am_try -eq 2; then 2837 break 2838 fi 2839 # Just in case. 2840 sleep 1 2841 am_has_slept=yes 2842 done 2843 test "$2" = conftest.file 2844 ) 2845then 2846 # Ok. 2847 : 2848else 2849 as_fn_error $? "newly created file is older than distributed files! 2850Check your system clock" "$LINENO" 5 2851fi 2852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2853printf "%s\n" "yes" >&6; } 2854# If we didn't sleep, we still need to ensure time stamps of config.status and 2855# generated files are strictly newer. 2856am_sleep_pid= 2857if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2858 ( sleep 1 ) & 2859 am_sleep_pid=$! 2860fi 2861 2862rm -f conftest.file 2863 2864test "$program_prefix" != NONE && 2865 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2866# Use a double $ so make ignores it. 2867test "$program_suffix" != NONE && 2868 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2869# Double any \ or $. 2870# By default was `s,x,x', remove it if useless. 2871ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2872program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2873 2874 2875# Expand $ac_aux_dir to an absolute path. 2876am_aux_dir=`cd "$ac_aux_dir" && pwd` 2877 2878 2879 if test x"${MISSING+set}" != xset; then 2880 MISSING="\${SHELL} '$am_aux_dir/missing'" 2881fi 2882# Use eval to expand $SHELL 2883if eval "$MISSING --is-lightweight"; then 2884 am_missing_run="$MISSING " 2885else 2886 am_missing_run= 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2888printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2889fi 2890 2891if test x"${install_sh+set}" != xset; then 2892 case $am_aux_dir in 2893 *\ * | *\ *) 2894 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2895 *) 2896 install_sh="\${SHELL} $am_aux_dir/install-sh" 2897 esac 2898fi 2899 2900# Installed binaries are usually stripped using 'strip' when the user 2901# run "make install-strip". However 'strip' might not be the right 2902# tool to use in cross-compilation environments, therefore Automake 2903# will honor the 'STRIP' environment variable to overrule this program. 2904if test "$cross_compiling" != no; then 2905 if test -n "$ac_tool_prefix"; then 2906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2907set dummy ${ac_tool_prefix}strip; ac_word=$2 2908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2909printf %s "checking for $ac_word... " >&6; } 2910if test ${ac_cv_prog_STRIP+y} 2911then : 2912 printf %s "(cached) " >&6 2913else $as_nop 2914 if test -n "$STRIP"; then 2915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2916else 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918for as_dir in $PATH 2919do 2920 IFS=$as_save_IFS 2921 case $as_dir in #((( 2922 '') as_dir=./ ;; 2923 */) ;; 2924 *) as_dir=$as_dir/ ;; 2925 esac 2926 for ac_exec_ext in '' $ac_executable_extensions; do 2927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2928 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932done 2933 done 2934IFS=$as_save_IFS 2935 2936fi 2937fi 2938STRIP=$ac_cv_prog_STRIP 2939if test -n "$STRIP"; then 2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2941printf "%s\n" "$STRIP" >&6; } 2942else 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2944printf "%s\n" "no" >&6; } 2945fi 2946 2947 2948fi 2949if test -z "$ac_cv_prog_STRIP"; then 2950 ac_ct_STRIP=$STRIP 2951 # Extract the first word of "strip", so it can be a program name with args. 2952set dummy strip; ac_word=$2 2953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954printf %s "checking for $ac_word... " >&6; } 2955if test ${ac_cv_prog_ac_ct_STRIP+y} 2956then : 2957 printf %s "(cached) " >&6 2958else $as_nop 2959 if test -n "$ac_ct_STRIP"; then 2960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2961else 2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH 2964do 2965 IFS=$as_save_IFS 2966 case $as_dir in #((( 2967 '') as_dir=./ ;; 2968 */) ;; 2969 *) as_dir=$as_dir/ ;; 2970 esac 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2973 ac_cv_prog_ac_ct_STRIP="strip" 2974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2975 break 2 2976 fi 2977done 2978 done 2979IFS=$as_save_IFS 2980 2981fi 2982fi 2983ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2984if test -n "$ac_ct_STRIP"; then 2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2986printf "%s\n" "$ac_ct_STRIP" >&6; } 2987else 2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989printf "%s\n" "no" >&6; } 2990fi 2991 2992 if test "x$ac_ct_STRIP" = x; then 2993 STRIP=":" 2994 else 2995 case $cross_compiling:$ac_tool_warned in 2996yes:) 2997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2998printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2999ac_tool_warned=yes ;; 3000esac 3001 STRIP=$ac_ct_STRIP 3002 fi 3003else 3004 STRIP="$ac_cv_prog_STRIP" 3005fi 3006 3007fi 3008INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3009 3010 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3012printf %s "checking for a race-free mkdir -p... " >&6; } 3013if test -z "$MKDIR_P"; then 3014 if test ${ac_cv_path_mkdir+y} 3015then : 3016 printf %s "(cached) " >&6 3017else $as_nop 3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3020do 3021 IFS=$as_save_IFS 3022 case $as_dir in #((( 3023 '') as_dir=./ ;; 3024 */) ;; 3025 *) as_dir=$as_dir/ ;; 3026 esac 3027 for ac_prog in mkdir gmkdir; do 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3030 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3031 'mkdir ('*'coreutils) '* | \ 3032 'BusyBox '* | \ 3033 'mkdir (fileutils) '4.1*) 3034 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3035 break 3;; 3036 esac 3037 done 3038 done 3039 done 3040IFS=$as_save_IFS 3041 3042fi 3043 3044 test -d ./--version && rmdir ./--version 3045 if test ${ac_cv_path_mkdir+y}; then 3046 MKDIR_P="$ac_cv_path_mkdir -p" 3047 else 3048 # As a last resort, use the slow shell script. Don't cache a 3049 # value for MKDIR_P within a source directory, because that will 3050 # break other packages using the cache if that directory is 3051 # removed, or if the value is a relative name. 3052 MKDIR_P="$ac_install_sh -d" 3053 fi 3054fi 3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3056printf "%s\n" "$MKDIR_P" >&6; } 3057 3058for ac_prog in gawk mawk nawk awk 3059do 3060 # Extract the first word of "$ac_prog", so it can be a program name with args. 3061set dummy $ac_prog; ac_word=$2 3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063printf %s "checking for $ac_word... " >&6; } 3064if test ${ac_cv_prog_AWK+y} 3065then : 3066 printf %s "(cached) " >&6 3067else $as_nop 3068 if test -n "$AWK"; then 3069 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3070else 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 case $as_dir in #((( 3076 '') as_dir=./ ;; 3077 */) ;; 3078 *) as_dir=$as_dir/ ;; 3079 esac 3080 for ac_exec_ext in '' $ac_executable_extensions; do 3081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3082 ac_cv_prog_AWK="$ac_prog" 3083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086done 3087 done 3088IFS=$as_save_IFS 3089 3090fi 3091fi 3092AWK=$ac_cv_prog_AWK 3093if test -n "$AWK"; then 3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3095printf "%s\n" "$AWK" >&6; } 3096else 3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3098printf "%s\n" "no" >&6; } 3099fi 3100 3101 3102 test -n "$AWK" && break 3103done 3104 3105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3106printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3107set x ${MAKE-make} 3108ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3109if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3110then : 3111 printf %s "(cached) " >&6 3112else $as_nop 3113 cat >conftest.make <<\_ACEOF 3114SHELL = /bin/sh 3115all: 3116 @echo '@@@%%%=$(MAKE)=@@@%%%' 3117_ACEOF 3118# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3119case `${MAKE-make} -f conftest.make 2>/dev/null` in 3120 *@@@%%%=?*=@@@%%%*) 3121 eval ac_cv_prog_make_${ac_make}_set=yes;; 3122 *) 3123 eval ac_cv_prog_make_${ac_make}_set=no;; 3124esac 3125rm -f conftest.make 3126fi 3127if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3129printf "%s\n" "yes" >&6; } 3130 SET_MAKE= 3131else 3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3133printf "%s\n" "no" >&6; } 3134 SET_MAKE="MAKE=${MAKE-make}" 3135fi 3136 3137rm -rf .tst 2>/dev/null 3138mkdir .tst 2>/dev/null 3139if test -d .tst; then 3140 am__leading_dot=. 3141else 3142 am__leading_dot=_ 3143fi 3144rmdir .tst 2>/dev/null 3145 3146# Check whether --enable-silent-rules was given. 3147if test ${enable_silent_rules+y} 3148then : 3149 enableval=$enable_silent_rules; 3150fi 3151 3152case $enable_silent_rules in # ((( 3153 yes) AM_DEFAULT_VERBOSITY=0;; 3154 no) AM_DEFAULT_VERBOSITY=1;; 3155 *) AM_DEFAULT_VERBOSITY=1;; 3156esac 3157am_make=${MAKE-make} 3158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3159printf %s "checking whether $am_make supports nested variables... " >&6; } 3160if test ${am_cv_make_support_nested_variables+y} 3161then : 3162 printf %s "(cached) " >&6 3163else $as_nop 3164 if printf "%s\n" 'TRUE=$(BAR$(V)) 3165BAR0=false 3166BAR1=true 3167V=1 3168am__doit: 3169 @$(TRUE) 3170.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3171 am_cv_make_support_nested_variables=yes 3172else 3173 am_cv_make_support_nested_variables=no 3174fi 3175fi 3176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3177printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3178if test $am_cv_make_support_nested_variables = yes; then 3179 AM_V='$(V)' 3180 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3181else 3182 AM_V=$AM_DEFAULT_VERBOSITY 3183 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3184fi 3185AM_BACKSLASH='\' 3186 3187if test "`cd $srcdir && pwd`" != "`pwd`"; then 3188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3189 # is not polluted with repeated "-I." 3190 am__isrc=' -I$(srcdir)' 3191 # test to see if srcdir already configured 3192 if test -f $srcdir/config.status; then 3193 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3194 fi 3195fi 3196 3197# test whether we have cygpath 3198if test -z "$CYGPATH_W"; then 3199 if (cygpath --version) >/dev/null 2>/dev/null; then 3200 CYGPATH_W='cygpath -w' 3201 else 3202 CYGPATH_W=echo 3203 fi 3204fi 3205 3206 3207# Define the identity of the package. 3208 PACKAGE='xf86-video-r128' 3209 VERSION='6.12.1' 3210 3211 3212printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3213 3214 3215printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3216 3217# Some tools Automake needs. 3218 3219ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3220 3221 3222AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3223 3224 3225AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3226 3227 3228AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3229 3230 3231MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3232 3233# For better backward compatibility. To be removed once Automake 1.9.x 3234# dies out for good. For more background, see: 3235# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3236# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3237mkdir_p='$(MKDIR_P)' 3238 3239# We need awk for the "check" target (and possibly the TAP driver). The 3240# system "awk" is bad on some platforms. 3241# Always define AMTAR for backward compatibility. Yes, it's still used 3242# in the wild :-( We should find a proper way to deprecate it ... 3243AMTAR='$${TAR-tar}' 3244 3245 3246# We'll loop over all known methods to create a tar archive until one works. 3247_am_tools='gnutar pax cpio none' 3248 3249am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3250 3251 3252 3253 3254 3255# Variables for tags utilities; see am/tags.am 3256if test -z "$CTAGS"; then 3257 CTAGS=ctags 3258fi 3259 3260if test -z "$ETAGS"; then 3261 ETAGS=etags 3262fi 3263 3264if test -z "$CSCOPE"; then 3265 CSCOPE=cscope 3266fi 3267 3268 3269 3270# POSIX will say in a future version that running "rm -f" with no argument 3271# is OK; and we want to be able to make that assumption in our Makefile 3272# recipes. So use an aggressive probe to check that the usage we want is 3273# actually supported "in the wild" to an acceptable degree. 3274# See automake bug#10828. 3275# To make any issue more visible, cause the running configure to be aborted 3276# by default if the 'rm' program in use doesn't match our expectations; the 3277# user can still override this though. 3278if rm -f && rm -fr && rm -rf; then : OK; else 3279 cat >&2 <<'END' 3280Oops! 3281 3282Your 'rm' program seems unable to run without file operands specified 3283on the command line, even when the '-f' option is present. This is contrary 3284to the behaviour of most rm programs out there, and not conforming with 3285the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3286 3287Please tell bug-automake@gnu.org about your system, including the value 3288of your $PATH and any error possibly output before this message. This 3289can help us improve future automake versions. 3290 3291END 3292 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3293 echo 'Configuration will proceed anyway, since you have set the' >&2 3294 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3295 echo >&2 3296 else 3297 cat >&2 <<'END' 3298Aborting the configuration process, to ensure you take notice of the issue. 3299 3300You can download and install GNU coreutils to get an 'rm' implementation 3301that behaves properly: <https://www.gnu.org/software/coreutils/>. 3302 3303If you want to complete the configuration process using your problematic 3304'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3305to "yes", and re-run configure. 3306 3307END 3308 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3309 fi 3310fi 3311 3312 3313# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334DEPDIR="${am__leading_dot}deps" 3335 3336ac_config_commands="$ac_config_commands depfiles" 3337 3338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3339printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3340cat > confinc.mk << 'END' 3341am__doit: 3342 @echo this is the am__doit target >confinc.out 3343.PHONY: am__doit 3344END 3345am__include="#" 3346am__quote= 3347# BSD make does it like this. 3348echo '.include "confinc.mk" # ignored' > confmf.BSD 3349# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3350echo 'include confinc.mk # ignored' > confmf.GNU 3351_am_result=no 3352for s in GNU BSD; do 3353 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3354 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3355 ac_status=$? 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } 3358 case $?:`cat confinc.out 2>/dev/null` in #( 3359 '0:this is the am__doit target') : 3360 case $s in #( 3361 BSD) : 3362 am__include='.include' am__quote='"' ;; #( 3363 *) : 3364 am__include='include' am__quote='' ;; 3365esac ;; #( 3366 *) : 3367 ;; 3368esac 3369 if test "$am__include" != "#"; then 3370 _am_result="yes ($s style)" 3371 break 3372 fi 3373done 3374rm -f confinc.* confmf.* 3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3376printf "%s\n" "${_am_result}" >&6; } 3377 3378# Check whether --enable-dependency-tracking was given. 3379if test ${enable_dependency_tracking+y} 3380then : 3381 enableval=$enable_dependency_tracking; 3382fi 3383 3384if test "x$enable_dependency_tracking" != xno; then 3385 am_depcomp="$ac_aux_dir/depcomp" 3386 AMDEPBACKSLASH='\' 3387 am__nodep='_no' 3388fi 3389 if test "x$enable_dependency_tracking" != xno; then 3390 AMDEP_TRUE= 3391 AMDEP_FALSE='#' 3392else 3393 AMDEP_TRUE='#' 3394 AMDEP_FALSE= 3395fi 3396 3397 3398ac_ext=c 3399ac_cpp='$CPP $CPPFLAGS' 3400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3402ac_compiler_gnu=$ac_cv_c_compiler_gnu 3403if test -n "$ac_tool_prefix"; then 3404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3405set dummy ${ac_tool_prefix}gcc; ac_word=$2 3406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3407printf %s "checking for $ac_word... " >&6; } 3408if test ${ac_cv_prog_CC+y} 3409then : 3410 printf %s "(cached) " >&6 3411else $as_nop 3412 if test -n "$CC"; then 3413 ac_cv_prog_CC="$CC" # Let the user override the test. 3414else 3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3416for as_dir in $PATH 3417do 3418 IFS=$as_save_IFS 3419 case $as_dir in #((( 3420 '') as_dir=./ ;; 3421 */) ;; 3422 *) as_dir=$as_dir/ ;; 3423 esac 3424 for ac_exec_ext in '' $ac_executable_extensions; do 3425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3426 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3428 break 2 3429 fi 3430done 3431 done 3432IFS=$as_save_IFS 3433 3434fi 3435fi 3436CC=$ac_cv_prog_CC 3437if test -n "$CC"; then 3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3439printf "%s\n" "$CC" >&6; } 3440else 3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3442printf "%s\n" "no" >&6; } 3443fi 3444 3445 3446fi 3447if test -z "$ac_cv_prog_CC"; then 3448 ac_ct_CC=$CC 3449 # Extract the first word of "gcc", so it can be a program name with args. 3450set dummy gcc; ac_word=$2 3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3452printf %s "checking for $ac_word... " >&6; } 3453if test ${ac_cv_prog_ac_ct_CC+y} 3454then : 3455 printf %s "(cached) " >&6 3456else $as_nop 3457 if test -n "$ac_ct_CC"; then 3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3459else 3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3461for as_dir in $PATH 3462do 3463 IFS=$as_save_IFS 3464 case $as_dir in #((( 3465 '') as_dir=./ ;; 3466 */) ;; 3467 *) as_dir=$as_dir/ ;; 3468 esac 3469 for ac_exec_ext in '' $ac_executable_extensions; do 3470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3471 ac_cv_prog_ac_ct_CC="gcc" 3472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3473 break 2 3474 fi 3475done 3476 done 3477IFS=$as_save_IFS 3478 3479fi 3480fi 3481ac_ct_CC=$ac_cv_prog_ac_ct_CC 3482if test -n "$ac_ct_CC"; then 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3484printf "%s\n" "$ac_ct_CC" >&6; } 3485else 3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3487printf "%s\n" "no" >&6; } 3488fi 3489 3490 if test "x$ac_ct_CC" = x; then 3491 CC="" 3492 else 3493 case $cross_compiling:$ac_tool_warned in 3494yes:) 3495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3496printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3497ac_tool_warned=yes ;; 3498esac 3499 CC=$ac_ct_CC 3500 fi 3501else 3502 CC="$ac_cv_prog_CC" 3503fi 3504 3505if test -z "$CC"; then 3506 if test -n "$ac_tool_prefix"; then 3507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3508set dummy ${ac_tool_prefix}cc; ac_word=$2 3509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3510printf %s "checking for $ac_word... " >&6; } 3511if test ${ac_cv_prog_CC+y} 3512then : 3513 printf %s "(cached) " >&6 3514else $as_nop 3515 if test -n "$CC"; then 3516 ac_cv_prog_CC="$CC" # Let the user override the test. 3517else 3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3519for as_dir in $PATH 3520do 3521 IFS=$as_save_IFS 3522 case $as_dir in #((( 3523 '') as_dir=./ ;; 3524 */) ;; 3525 *) as_dir=$as_dir/ ;; 3526 esac 3527 for ac_exec_ext in '' $ac_executable_extensions; do 3528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3529 ac_cv_prog_CC="${ac_tool_prefix}cc" 3530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3531 break 2 3532 fi 3533done 3534 done 3535IFS=$as_save_IFS 3536 3537fi 3538fi 3539CC=$ac_cv_prog_CC 3540if test -n "$CC"; then 3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3542printf "%s\n" "$CC" >&6; } 3543else 3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3545printf "%s\n" "no" >&6; } 3546fi 3547 3548 3549 fi 3550fi 3551if test -z "$CC"; then 3552 # Extract the first word of "cc", so it can be a program name with args. 3553set dummy cc; ac_word=$2 3554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3555printf %s "checking for $ac_word... " >&6; } 3556if test ${ac_cv_prog_CC+y} 3557then : 3558 printf %s "(cached) " >&6 3559else $as_nop 3560 if test -n "$CC"; then 3561 ac_cv_prog_CC="$CC" # Let the user override the test. 3562else 3563 ac_prog_rejected=no 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565for as_dir in $PATH 3566do 3567 IFS=$as_save_IFS 3568 case $as_dir in #((( 3569 '') as_dir=./ ;; 3570 */) ;; 3571 *) as_dir=$as_dir/ ;; 3572 esac 3573 for ac_exec_ext in '' $ac_executable_extensions; do 3574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3575 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3576 ac_prog_rejected=yes 3577 continue 3578 fi 3579 ac_cv_prog_CC="cc" 3580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583done 3584 done 3585IFS=$as_save_IFS 3586 3587if test $ac_prog_rejected = yes; then 3588 # We found a bogon in the path, so make sure we never use it. 3589 set dummy $ac_cv_prog_CC 3590 shift 3591 if test $# != 0; then 3592 # We chose a different compiler from the bogus one. 3593 # However, it has the same basename, so the bogon will be chosen 3594 # first if we set CC to just the basename; use the full file name. 3595 shift 3596 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3597 fi 3598fi 3599fi 3600fi 3601CC=$ac_cv_prog_CC 3602if test -n "$CC"; then 3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3604printf "%s\n" "$CC" >&6; } 3605else 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3607printf "%s\n" "no" >&6; } 3608fi 3609 3610 3611fi 3612if test -z "$CC"; then 3613 if test -n "$ac_tool_prefix"; then 3614 for ac_prog in cl.exe 3615 do 3616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3617set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3619printf %s "checking for $ac_word... " >&6; } 3620if test ${ac_cv_prog_CC+y} 3621then : 3622 printf %s "(cached) " >&6 3623else $as_nop 3624 if test -n "$CC"; then 3625 ac_cv_prog_CC="$CC" # Let the user override the test. 3626else 3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3628for as_dir in $PATH 3629do 3630 IFS=$as_save_IFS 3631 case $as_dir in #((( 3632 '') as_dir=./ ;; 3633 */) ;; 3634 *) as_dir=$as_dir/ ;; 3635 esac 3636 for ac_exec_ext in '' $ac_executable_extensions; do 3637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3640 break 2 3641 fi 3642done 3643 done 3644IFS=$as_save_IFS 3645 3646fi 3647fi 3648CC=$ac_cv_prog_CC 3649if test -n "$CC"; then 3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3651printf "%s\n" "$CC" >&6; } 3652else 3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3654printf "%s\n" "no" >&6; } 3655fi 3656 3657 3658 test -n "$CC" && break 3659 done 3660fi 3661if test -z "$CC"; then 3662 ac_ct_CC=$CC 3663 for ac_prog in cl.exe 3664do 3665 # Extract the first word of "$ac_prog", so it can be a program name with args. 3666set dummy $ac_prog; ac_word=$2 3667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3668printf %s "checking for $ac_word... " >&6; } 3669if test ${ac_cv_prog_ac_ct_CC+y} 3670then : 3671 printf %s "(cached) " >&6 3672else $as_nop 3673 if test -n "$ac_ct_CC"; then 3674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3675else 3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3677for as_dir in $PATH 3678do 3679 IFS=$as_save_IFS 3680 case $as_dir in #((( 3681 '') as_dir=./ ;; 3682 */) ;; 3683 *) as_dir=$as_dir/ ;; 3684 esac 3685 for ac_exec_ext in '' $ac_executable_extensions; do 3686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3687 ac_cv_prog_ac_ct_CC="$ac_prog" 3688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3689 break 2 3690 fi 3691done 3692 done 3693IFS=$as_save_IFS 3694 3695fi 3696fi 3697ac_ct_CC=$ac_cv_prog_ac_ct_CC 3698if test -n "$ac_ct_CC"; then 3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3700printf "%s\n" "$ac_ct_CC" >&6; } 3701else 3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3703printf "%s\n" "no" >&6; } 3704fi 3705 3706 3707 test -n "$ac_ct_CC" && break 3708done 3709 3710 if test "x$ac_ct_CC" = x; then 3711 CC="" 3712 else 3713 case $cross_compiling:$ac_tool_warned in 3714yes:) 3715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3716printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3717ac_tool_warned=yes ;; 3718esac 3719 CC=$ac_ct_CC 3720 fi 3721fi 3722 3723fi 3724if test -z "$CC"; then 3725 if test -n "$ac_tool_prefix"; then 3726 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3727set dummy ${ac_tool_prefix}clang; ac_word=$2 3728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3729printf %s "checking for $ac_word... " >&6; } 3730if test ${ac_cv_prog_CC+y} 3731then : 3732 printf %s "(cached) " >&6 3733else $as_nop 3734 if test -n "$CC"; then 3735 ac_cv_prog_CC="$CC" # Let the user override the test. 3736else 3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3738for as_dir in $PATH 3739do 3740 IFS=$as_save_IFS 3741 case $as_dir in #((( 3742 '') as_dir=./ ;; 3743 */) ;; 3744 *) as_dir=$as_dir/ ;; 3745 esac 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3748 ac_cv_prog_CC="${ac_tool_prefix}clang" 3749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3750 break 2 3751 fi 3752done 3753 done 3754IFS=$as_save_IFS 3755 3756fi 3757fi 3758CC=$ac_cv_prog_CC 3759if test -n "$CC"; then 3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3761printf "%s\n" "$CC" >&6; } 3762else 3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3764printf "%s\n" "no" >&6; } 3765fi 3766 3767 3768fi 3769if test -z "$ac_cv_prog_CC"; then 3770 ac_ct_CC=$CC 3771 # Extract the first word of "clang", so it can be a program name with args. 3772set dummy clang; ac_word=$2 3773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3774printf %s "checking for $ac_word... " >&6; } 3775if test ${ac_cv_prog_ac_ct_CC+y} 3776then : 3777 printf %s "(cached) " >&6 3778else $as_nop 3779 if test -n "$ac_ct_CC"; then 3780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3781else 3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3783for as_dir in $PATH 3784do 3785 IFS=$as_save_IFS 3786 case $as_dir in #((( 3787 '') as_dir=./ ;; 3788 */) ;; 3789 *) as_dir=$as_dir/ ;; 3790 esac 3791 for ac_exec_ext in '' $ac_executable_extensions; do 3792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3793 ac_cv_prog_ac_ct_CC="clang" 3794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3795 break 2 3796 fi 3797done 3798 done 3799IFS=$as_save_IFS 3800 3801fi 3802fi 3803ac_ct_CC=$ac_cv_prog_ac_ct_CC 3804if test -n "$ac_ct_CC"; then 3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3806printf "%s\n" "$ac_ct_CC" >&6; } 3807else 3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3809printf "%s\n" "no" >&6; } 3810fi 3811 3812 if test "x$ac_ct_CC" = x; then 3813 CC="" 3814 else 3815 case $cross_compiling:$ac_tool_warned in 3816yes:) 3817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3818printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3819ac_tool_warned=yes ;; 3820esac 3821 CC=$ac_ct_CC 3822 fi 3823else 3824 CC="$ac_cv_prog_CC" 3825fi 3826 3827fi 3828 3829 3830test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3831printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3832as_fn_error $? "no acceptable C compiler found in \$PATH 3833See \`config.log' for more details" "$LINENO" 5; } 3834 3835# Provide some information about the compiler. 3836printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3837set X $ac_compile 3838ac_compiler=$2 3839for ac_option in --version -v -V -qversion -version; do 3840 { { ac_try="$ac_compiler $ac_option >&5" 3841case "(($ac_try" in 3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3843 *) ac_try_echo=$ac_try;; 3844esac 3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3846printf "%s\n" "$ac_try_echo"; } >&5 3847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3848 ac_status=$? 3849 if test -s conftest.err; then 3850 sed '10a\ 3851... rest of stderr output deleted ... 3852 10q' conftest.err >conftest.er1 3853 cat conftest.er1 >&5 3854 fi 3855 rm -f conftest.er1 conftest.err 3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3857 test $ac_status = 0; } 3858done 3859 3860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3861/* end confdefs.h. */ 3862 3863int 3864main (void) 3865{ 3866 3867 ; 3868 return 0; 3869} 3870_ACEOF 3871ac_clean_files_save=$ac_clean_files 3872ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3873# Try to create an executable without -o first, disregard a.out. 3874# It will help us diagnose broken compilers, and finding out an intuition 3875# of exeext. 3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3877printf %s "checking whether the C compiler works... " >&6; } 3878ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3879 3880# The possible output files: 3881ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3882 3883ac_rmfiles= 3884for ac_file in $ac_files 3885do 3886 case $ac_file in 3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3888 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3889 esac 3890done 3891rm -f $ac_rmfiles 3892 3893if { { ac_try="$ac_link_default" 3894case "(($ac_try" in 3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3896 *) ac_try_echo=$ac_try;; 3897esac 3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3899printf "%s\n" "$ac_try_echo"; } >&5 3900 (eval "$ac_link_default") 2>&5 3901 ac_status=$? 3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3903 test $ac_status = 0; } 3904then : 3905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3906# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3907# in a Makefile. We should not override ac_cv_exeext if it was cached, 3908# so that the user can short-circuit this test for compilers unknown to 3909# Autoconf. 3910for ac_file in $ac_files '' 3911do 3912 test -f "$ac_file" || continue 3913 case $ac_file in 3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3915 ;; 3916 [ab].out ) 3917 # We found the default executable, but exeext='' is most 3918 # certainly right. 3919 break;; 3920 *.* ) 3921 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3922 then :; else 3923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3924 fi 3925 # We set ac_cv_exeext here because the later test for it is not 3926 # safe: cross compilers may not add the suffix if given an `-o' 3927 # argument, so we may need to know it at that point already. 3928 # Even if this section looks crufty: it has the advantage of 3929 # actually working. 3930 break;; 3931 * ) 3932 break;; 3933 esac 3934done 3935test "$ac_cv_exeext" = no && ac_cv_exeext= 3936 3937else $as_nop 3938 ac_file='' 3939fi 3940if test -z "$ac_file" 3941then : 3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3943printf "%s\n" "no" >&6; } 3944printf "%s\n" "$as_me: failed program was:" >&5 3945sed 's/^/| /' conftest.$ac_ext >&5 3946 3947{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3948printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3949as_fn_error 77 "C compiler cannot create executables 3950See \`config.log' for more details" "$LINENO" 5; } 3951else $as_nop 3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3953printf "%s\n" "yes" >&6; } 3954fi 3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3956printf %s "checking for C compiler default output file name... " >&6; } 3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3958printf "%s\n" "$ac_file" >&6; } 3959ac_exeext=$ac_cv_exeext 3960 3961rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3962ac_clean_files=$ac_clean_files_save 3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3964printf %s "checking for suffix of executables... " >&6; } 3965if { { ac_try="$ac_link" 3966case "(($ac_try" in 3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3968 *) ac_try_echo=$ac_try;; 3969esac 3970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3971printf "%s\n" "$ac_try_echo"; } >&5 3972 (eval "$ac_link") 2>&5 3973 ac_status=$? 3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3975 test $ac_status = 0; } 3976then : 3977 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3978# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3979# work properly (i.e., refer to `conftest.exe'), while it won't with 3980# `rm'. 3981for ac_file in conftest.exe conftest conftest.*; do 3982 test -f "$ac_file" || continue 3983 case $ac_file in 3984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3986 break;; 3987 * ) break;; 3988 esac 3989done 3990else $as_nop 3991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3992printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3993as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3994See \`config.log' for more details" "$LINENO" 5; } 3995fi 3996rm -f conftest conftest$ac_cv_exeext 3997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3998printf "%s\n" "$ac_cv_exeext" >&6; } 3999 4000rm -f conftest.$ac_ext 4001EXEEXT=$ac_cv_exeext 4002ac_exeext=$EXEEXT 4003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4004/* end confdefs.h. */ 4005#include <stdio.h> 4006int 4007main (void) 4008{ 4009FILE *f = fopen ("conftest.out", "w"); 4010 return ferror (f) || fclose (f) != 0; 4011 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016ac_clean_files="$ac_clean_files conftest.out" 4017# Check that the compiler produces executables we can run. If not, either 4018# the compiler is broken, or we cross compile. 4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4020printf %s "checking whether we are cross compiling... " >&6; } 4021if test "$cross_compiling" != yes; then 4022 { { ac_try="$ac_link" 4023case "(($ac_try" in 4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4025 *) ac_try_echo=$ac_try;; 4026esac 4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4028printf "%s\n" "$ac_try_echo"; } >&5 4029 (eval "$ac_link") 2>&5 4030 ac_status=$? 4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4032 test $ac_status = 0; } 4033 if { ac_try='./conftest$ac_cv_exeext' 4034 { { case "(($ac_try" in 4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4036 *) ac_try_echo=$ac_try;; 4037esac 4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4039printf "%s\n" "$ac_try_echo"; } >&5 4040 (eval "$ac_try") 2>&5 4041 ac_status=$? 4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4043 test $ac_status = 0; }; }; then 4044 cross_compiling=no 4045 else 4046 if test "$cross_compiling" = maybe; then 4047 cross_compiling=yes 4048 else 4049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4050printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4051as_fn_error 77 "cannot run C compiled programs. 4052If you meant to cross compile, use \`--host'. 4053See \`config.log' for more details" "$LINENO" 5; } 4054 fi 4055 fi 4056fi 4057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4058printf "%s\n" "$cross_compiling" >&6; } 4059 4060rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4061ac_clean_files=$ac_clean_files_save 4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4063printf %s "checking for suffix of object files... " >&6; } 4064if test ${ac_cv_objext+y} 4065then : 4066 printf %s "(cached) " >&6 4067else $as_nop 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070 4071int 4072main (void) 4073{ 4074 4075 ; 4076 return 0; 4077} 4078_ACEOF 4079rm -f conftest.o conftest.obj 4080if { { ac_try="$ac_compile" 4081case "(($ac_try" in 4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4083 *) ac_try_echo=$ac_try;; 4084esac 4085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4086printf "%s\n" "$ac_try_echo"; } >&5 4087 (eval "$ac_compile") 2>&5 4088 ac_status=$? 4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4090 test $ac_status = 0; } 4091then : 4092 for ac_file in conftest.o conftest.obj conftest.*; do 4093 test -f "$ac_file" || continue; 4094 case $ac_file in 4095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4097 break;; 4098 esac 4099done 4100else $as_nop 4101 printf "%s\n" "$as_me: failed program was:" >&5 4102sed 's/^/| /' conftest.$ac_ext >&5 4103 4104{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4105printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4106as_fn_error $? "cannot compute suffix of object files: cannot compile 4107See \`config.log' for more details" "$LINENO" 5; } 4108fi 4109rm -f conftest.$ac_cv_objext conftest.$ac_ext 4110fi 4111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4112printf "%s\n" "$ac_cv_objext" >&6; } 4113OBJEXT=$ac_cv_objext 4114ac_objext=$OBJEXT 4115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4116printf %s "checking whether the compiler supports GNU C... " >&6; } 4117if test ${ac_cv_c_compiler_gnu+y} 4118then : 4119 printf %s "(cached) " >&6 4120else $as_nop 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122/* end confdefs.h. */ 4123 4124int 4125main (void) 4126{ 4127#ifndef __GNUC__ 4128 choke me 4129#endif 4130 4131 ; 4132 return 0; 4133} 4134_ACEOF 4135if ac_fn_c_try_compile "$LINENO" 4136then : 4137 ac_compiler_gnu=yes 4138else $as_nop 4139 ac_compiler_gnu=no 4140fi 4141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4142ac_cv_c_compiler_gnu=$ac_compiler_gnu 4143 4144fi 4145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4146printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4147ac_compiler_gnu=$ac_cv_c_compiler_gnu 4148 4149if test $ac_compiler_gnu = yes; then 4150 GCC=yes 4151else 4152 GCC= 4153fi 4154ac_test_CFLAGS=${CFLAGS+y} 4155ac_save_CFLAGS=$CFLAGS 4156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4157printf %s "checking whether $CC accepts -g... " >&6; } 4158if test ${ac_cv_prog_cc_g+y} 4159then : 4160 printf %s "(cached) " >&6 4161else $as_nop 4162 ac_save_c_werror_flag=$ac_c_werror_flag 4163 ac_c_werror_flag=yes 4164 ac_cv_prog_cc_g=no 4165 CFLAGS="-g" 4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4167/* end confdefs.h. */ 4168 4169int 4170main (void) 4171{ 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177if ac_fn_c_try_compile "$LINENO" 4178then : 4179 ac_cv_prog_cc_g=yes 4180else $as_nop 4181 CFLAGS="" 4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4183/* end confdefs.h. */ 4184 4185int 4186main (void) 4187{ 4188 4189 ; 4190 return 0; 4191} 4192_ACEOF 4193if ac_fn_c_try_compile "$LINENO" 4194then : 4195 4196else $as_nop 4197 ac_c_werror_flag=$ac_save_c_werror_flag 4198 CFLAGS="-g" 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4200/* end confdefs.h. */ 4201 4202int 4203main (void) 4204{ 4205 4206 ; 4207 return 0; 4208} 4209_ACEOF 4210if ac_fn_c_try_compile "$LINENO" 4211then : 4212 ac_cv_prog_cc_g=yes 4213fi 4214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4215fi 4216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4217fi 4218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4219 ac_c_werror_flag=$ac_save_c_werror_flag 4220fi 4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4222printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4223if test $ac_test_CFLAGS; then 4224 CFLAGS=$ac_save_CFLAGS 4225elif test $ac_cv_prog_cc_g = yes; then 4226 if test "$GCC" = yes; then 4227 CFLAGS="-g -O2" 4228 else 4229 CFLAGS="-g" 4230 fi 4231else 4232 if test "$GCC" = yes; then 4233 CFLAGS="-O2" 4234 else 4235 CFLAGS= 4236 fi 4237fi 4238ac_prog_cc_stdc=no 4239if test x$ac_prog_cc_stdc = xno 4240then : 4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4242printf %s "checking for $CC option to enable C11 features... " >&6; } 4243if test ${ac_cv_prog_cc_c11+y} 4244then : 4245 printf %s "(cached) " >&6 4246else $as_nop 4247 ac_cv_prog_cc_c11=no 4248ac_save_CC=$CC 4249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4250/* end confdefs.h. */ 4251$ac_c_conftest_c11_program 4252_ACEOF 4253for ac_arg in '' -std=gnu11 4254do 4255 CC="$ac_save_CC $ac_arg" 4256 if ac_fn_c_try_compile "$LINENO" 4257then : 4258 ac_cv_prog_cc_c11=$ac_arg 4259fi 4260rm -f core conftest.err conftest.$ac_objext conftest.beam 4261 test "x$ac_cv_prog_cc_c11" != "xno" && break 4262done 4263rm -f conftest.$ac_ext 4264CC=$ac_save_CC 4265fi 4266 4267if test "x$ac_cv_prog_cc_c11" = xno 4268then : 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4270printf "%s\n" "unsupported" >&6; } 4271else $as_nop 4272 if test "x$ac_cv_prog_cc_c11" = x 4273then : 4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4275printf "%s\n" "none needed" >&6; } 4276else $as_nop 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4278printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4279 CC="$CC $ac_cv_prog_cc_c11" 4280fi 4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4282 ac_prog_cc_stdc=c11 4283fi 4284fi 4285if test x$ac_prog_cc_stdc = xno 4286then : 4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4288printf %s "checking for $CC option to enable C99 features... " >&6; } 4289if test ${ac_cv_prog_cc_c99+y} 4290then : 4291 printf %s "(cached) " >&6 4292else $as_nop 4293 ac_cv_prog_cc_c99=no 4294ac_save_CC=$CC 4295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296/* end confdefs.h. */ 4297$ac_c_conftest_c99_program 4298_ACEOF 4299for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4300do 4301 CC="$ac_save_CC $ac_arg" 4302 if ac_fn_c_try_compile "$LINENO" 4303then : 4304 ac_cv_prog_cc_c99=$ac_arg 4305fi 4306rm -f core conftest.err conftest.$ac_objext conftest.beam 4307 test "x$ac_cv_prog_cc_c99" != "xno" && break 4308done 4309rm -f conftest.$ac_ext 4310CC=$ac_save_CC 4311fi 4312 4313if test "x$ac_cv_prog_cc_c99" = xno 4314then : 4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4316printf "%s\n" "unsupported" >&6; } 4317else $as_nop 4318 if test "x$ac_cv_prog_cc_c99" = x 4319then : 4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4321printf "%s\n" "none needed" >&6; } 4322else $as_nop 4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4324printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4325 CC="$CC $ac_cv_prog_cc_c99" 4326fi 4327 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4328 ac_prog_cc_stdc=c99 4329fi 4330fi 4331if test x$ac_prog_cc_stdc = xno 4332then : 4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4334printf %s "checking for $CC option to enable C89 features... " >&6; } 4335if test ${ac_cv_prog_cc_c89+y} 4336then : 4337 printf %s "(cached) " >&6 4338else $as_nop 4339 ac_cv_prog_cc_c89=no 4340ac_save_CC=$CC 4341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343$ac_c_conftest_c89_program 4344_ACEOF 4345for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4346do 4347 CC="$ac_save_CC $ac_arg" 4348 if ac_fn_c_try_compile "$LINENO" 4349then : 4350 ac_cv_prog_cc_c89=$ac_arg 4351fi 4352rm -f core conftest.err conftest.$ac_objext conftest.beam 4353 test "x$ac_cv_prog_cc_c89" != "xno" && break 4354done 4355rm -f conftest.$ac_ext 4356CC=$ac_save_CC 4357fi 4358 4359if test "x$ac_cv_prog_cc_c89" = xno 4360then : 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4362printf "%s\n" "unsupported" >&6; } 4363else $as_nop 4364 if test "x$ac_cv_prog_cc_c89" = x 4365then : 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4367printf "%s\n" "none needed" >&6; } 4368else $as_nop 4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4370printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4371 CC="$CC $ac_cv_prog_cc_c89" 4372fi 4373 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4374 ac_prog_cc_stdc=c89 4375fi 4376fi 4377 4378ac_ext=c 4379ac_cpp='$CPP $CPPFLAGS' 4380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4382ac_compiler_gnu=$ac_cv_c_compiler_gnu 4383 4384 4385 ac_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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4391printf %s "checking whether $CC understands -c and -o together... " >&6; } 4392if test ${am_cv_prog_cc_c_o+y} 4393then : 4394 printf %s "(cached) " >&6 4395else $as_nop 4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4397/* end confdefs.h. */ 4398 4399int 4400main (void) 4401{ 4402 4403 ; 4404 return 0; 4405} 4406_ACEOF 4407 # Make sure it works both with $CC and with simple cc. 4408 # Following AC_PROG_CC_C_O, we do the test twice because some 4409 # compilers refuse to overwrite an existing .o file with -o, 4410 # though they will create one. 4411 am_cv_prog_cc_c_o=yes 4412 for am_i in 1 2; do 4413 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4414 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4415 ac_status=$? 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); } \ 4418 && test -f conftest2.$ac_objext; then 4419 : OK 4420 else 4421 am_cv_prog_cc_c_o=no 4422 break 4423 fi 4424 done 4425 rm -f core conftest* 4426 unset am_i 4427fi 4428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4429printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4430if test "$am_cv_prog_cc_c_o" != yes; then 4431 # Losing compiler, so override with the script. 4432 # FIXME: It is wrong to rewrite CC. 4433 # But if we don't then we get into trouble of one sort or another. 4434 # A longer-term fix would be to have automake use am__CC in this case, 4435 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4436 CC="$am_aux_dir/compile $CC" 4437fi 4438ac_ext=c 4439ac_cpp='$CPP $CPPFLAGS' 4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4442ac_compiler_gnu=$ac_cv_c_compiler_gnu 4443 4444 4445depcc="$CC" am_compiler_list= 4446 4447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4448printf %s "checking dependency style of $depcc... " >&6; } 4449if test ${am_cv_CC_dependencies_compiler_type+y} 4450then : 4451 printf %s "(cached) " >&6 4452else $as_nop 4453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4454 # We make a subdir and do the tests there. Otherwise we can end up 4455 # making bogus files that we don't know about and never remove. For 4456 # instance it was reported that on HP-UX the gcc test will end up 4457 # making a dummy file named 'D' -- because '-MD' means "put the output 4458 # in D". 4459 rm -rf conftest.dir 4460 mkdir conftest.dir 4461 # Copy depcomp to subdir because otherwise we won't find it if we're 4462 # using a relative directory. 4463 cp "$am_depcomp" conftest.dir 4464 cd conftest.dir 4465 # We will build objects and dependencies in a subdirectory because 4466 # it helps to detect inapplicable dependency modes. For instance 4467 # both Tru64's cc and ICC support -MD to output dependencies as a 4468 # side effect of compilation, but ICC will put the dependencies in 4469 # the current directory while Tru64 will put them in the object 4470 # directory. 4471 mkdir sub 4472 4473 am_cv_CC_dependencies_compiler_type=none 4474 if test "$am_compiler_list" = ""; then 4475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4476 fi 4477 am__universal=false 4478 case " $depcc " in #( 4479 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4480 esac 4481 4482 for depmode in $am_compiler_list; do 4483 # Setup a source with many dependencies, because some compilers 4484 # like to wrap large dependency lists on column 80 (with \), and 4485 # we should not choose a depcomp mode which is confused by this. 4486 # 4487 # We need to recreate these files for each test, as the compiler may 4488 # overwrite some of them when testing with obscure command lines. 4489 # This happens at least with the AIX C compiler. 4490 : > sub/conftest.c 4491 for i in 1 2 3 4 5 6; do 4492 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4493 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4494 # Solaris 10 /bin/sh. 4495 echo '/* dummy */' > sub/conftst$i.h 4496 done 4497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4498 4499 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4500 # mode. It turns out that the SunPro C++ compiler does not properly 4501 # handle '-M -o', and we need to detect this. Also, some Intel 4502 # versions had trouble with output in subdirs. 4503 am__obj=sub/conftest.${OBJEXT-o} 4504 am__minus_obj="-o $am__obj" 4505 case $depmode in 4506 gcc) 4507 # This depmode causes a compiler race in universal mode. 4508 test "$am__universal" = false || continue 4509 ;; 4510 nosideeffect) 4511 # After this tag, mechanisms are not by side-effect, so they'll 4512 # only be used when explicitly requested. 4513 if test "x$enable_dependency_tracking" = xyes; then 4514 continue 4515 else 4516 break 4517 fi 4518 ;; 4519 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4520 # This compiler won't grok '-c -o', but also, the minuso test has 4521 # not run yet. These depmodes are late enough in the game, and 4522 # so weak that their functioning should not be impacted. 4523 am__obj=conftest.${OBJEXT-o} 4524 am__minus_obj= 4525 ;; 4526 none) break ;; 4527 esac 4528 if depmode=$depmode \ 4529 source=sub/conftest.c object=$am__obj \ 4530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4532 >/dev/null 2>conftest.err && 4533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4537 # icc doesn't choke on unknown options, it will just issue warnings 4538 # or remarks (even with -Werror). So we grep stderr for any message 4539 # that says an option was ignored or not supported. 4540 # When given -MP, icc 7.0 and 7.1 complain thusly: 4541 # icc: Command line warning: ignoring option '-M'; no argument required 4542 # The diagnosis changed in icc 8.0: 4543 # icc: Command line remark: option '-MP' not supported 4544 if (grep 'ignoring option' conftest.err || 4545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4546 am_cv_CC_dependencies_compiler_type=$depmode 4547 break 4548 fi 4549 fi 4550 done 4551 4552 cd .. 4553 rm -rf conftest.dir 4554else 4555 am_cv_CC_dependencies_compiler_type=none 4556fi 4557 4558fi 4559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4560printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4561CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4562 4563 if 4564 test "x$enable_dependency_tracking" != xno \ 4565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4566 am__fastdepCC_TRUE= 4567 am__fastdepCC_FALSE='#' 4568else 4569 am__fastdepCC_TRUE='#' 4570 am__fastdepCC_FALSE= 4571fi 4572 4573 4574 4575 4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4577printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4578if test ${ac_cv_c_undeclared_builtin_options+y} 4579then : 4580 printf %s "(cached) " >&6 4581else $as_nop 4582 ac_save_CFLAGS=$CFLAGS 4583 ac_cv_c_undeclared_builtin_options='cannot detect' 4584 for ac_arg in '' -fno-builtin; do 4585 CFLAGS="$ac_save_CFLAGS $ac_arg" 4586 # This test program should *not* compile successfully. 4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588/* end confdefs.h. */ 4589 4590int 4591main (void) 4592{ 4593(void) strchr; 4594 ; 4595 return 0; 4596} 4597_ACEOF 4598if ac_fn_c_try_compile "$LINENO" 4599then : 4600 4601else $as_nop 4602 # This test program should compile successfully. 4603 # No library function is consistently available on 4604 # freestanding implementations, so test against a dummy 4605 # declaration. Include always-available headers on the 4606 # off chance that they somehow elicit warnings. 4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4608/* end confdefs.h. */ 4609#include <float.h> 4610#include <limits.h> 4611#include <stdarg.h> 4612#include <stddef.h> 4613extern void ac_decl (int, char *); 4614 4615int 4616main (void) 4617{ 4618(void) ac_decl (0, (char *) 0); 4619 (void) ac_decl; 4620 4621 ; 4622 return 0; 4623} 4624_ACEOF 4625if ac_fn_c_try_compile "$LINENO" 4626then : 4627 if test x"$ac_arg" = x 4628then : 4629 ac_cv_c_undeclared_builtin_options='none needed' 4630else $as_nop 4631 ac_cv_c_undeclared_builtin_options=$ac_arg 4632fi 4633 break 4634fi 4635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4636fi 4637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4638 done 4639 CFLAGS=$ac_save_CFLAGS 4640 4641fi 4642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4643printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4644 case $ac_cv_c_undeclared_builtin_options in #( 4645 'cannot detect') : 4646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4647printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4648as_fn_error $? "cannot make $CC report undeclared builtins 4649See \`config.log' for more details" "$LINENO" 5; } ;; #( 4650 'none needed') : 4651 ac_c_undeclared_builtin_options='' ;; #( 4652 *) : 4653 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4654esac 4655 4656ac_header= ac_cache= 4657for ac_item in $ac_header_c_list 4658do 4659 if test $ac_cache; then 4660 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4661 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4662 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4663 fi 4664 ac_header= ac_cache= 4665 elif test $ac_header; then 4666 ac_cache=$ac_item 4667 else 4668 ac_header=$ac_item 4669 fi 4670done 4671 4672 4673 4674 4675 4676 4677 4678 4679if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4680then : 4681 4682printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4683 4684fi 4685 4686 4687 4688 4689ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4690if test "x$ac_cv_have_decl___clang__" = xyes 4691then : 4692 CLANGCC="yes" 4693else $as_nop 4694 CLANGCC="no" 4695fi 4696ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4697if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4698then : 4699 INTELCC="yes" 4700else $as_nop 4701 INTELCC="no" 4702fi 4703ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4704if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4705then : 4706 SUNCC="yes" 4707else $as_nop 4708 SUNCC="no" 4709fi 4710 4711 4712 4713 4714 4715 4716 4717 4718if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4719 if test -n "$ac_tool_prefix"; then 4720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4721set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4723printf %s "checking for $ac_word... " >&6; } 4724if test ${ac_cv_path_PKG_CONFIG+y} 4725then : 4726 printf %s "(cached) " >&6 4727else $as_nop 4728 case $PKG_CONFIG in 4729 [\\/]* | ?:[\\/]*) 4730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4731 ;; 4732 *) 4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4734for as_dir in $PATH 4735do 4736 IFS=$as_save_IFS 4737 case $as_dir in #((( 4738 '') as_dir=./ ;; 4739 */) ;; 4740 *) as_dir=$as_dir/ ;; 4741 esac 4742 for ac_exec_ext in '' $ac_executable_extensions; do 4743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4744 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4746 break 2 4747 fi 4748done 4749 done 4750IFS=$as_save_IFS 4751 4752 ;; 4753esac 4754fi 4755PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4756if test -n "$PKG_CONFIG"; then 4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4758printf "%s\n" "$PKG_CONFIG" >&6; } 4759else 4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4761printf "%s\n" "no" >&6; } 4762fi 4763 4764 4765fi 4766if test -z "$ac_cv_path_PKG_CONFIG"; then 4767 ac_pt_PKG_CONFIG=$PKG_CONFIG 4768 # Extract the first word of "pkg-config", so it can be a program name with args. 4769set dummy pkg-config; ac_word=$2 4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4771printf %s "checking for $ac_word... " >&6; } 4772if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4773then : 4774 printf %s "(cached) " >&6 4775else $as_nop 4776 case $ac_pt_PKG_CONFIG in 4777 [\\/]* | ?:[\\/]*) 4778 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4779 ;; 4780 *) 4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4782for as_dir in $PATH 4783do 4784 IFS=$as_save_IFS 4785 case $as_dir in #((( 4786 '') as_dir=./ ;; 4787 */) ;; 4788 *) as_dir=$as_dir/ ;; 4789 esac 4790 for ac_exec_ext in '' $ac_executable_extensions; do 4791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4792 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4794 break 2 4795 fi 4796done 4797 done 4798IFS=$as_save_IFS 4799 4800 ;; 4801esac 4802fi 4803ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4804if test -n "$ac_pt_PKG_CONFIG"; then 4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4806printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4807else 4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4809printf "%s\n" "no" >&6; } 4810fi 4811 4812 if test "x$ac_pt_PKG_CONFIG" = x; then 4813 PKG_CONFIG="" 4814 else 4815 case $cross_compiling:$ac_tool_warned in 4816yes:) 4817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4818printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4819ac_tool_warned=yes ;; 4820esac 4821 PKG_CONFIG=$ac_pt_PKG_CONFIG 4822 fi 4823else 4824 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4825fi 4826 4827fi 4828if test -n "$PKG_CONFIG"; then 4829 _pkg_min_version=0.9.0 4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4831printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4832 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4834printf "%s\n" "yes" >&6; } 4835 else 4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4837printf "%s\n" "no" >&6; } 4838 PKG_CONFIG="" 4839 fi 4840fi 4841 4842 4843 # Make sure we can run config.sub. 4844$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4845 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4846 4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4848printf %s "checking build system type... " >&6; } 4849if test ${ac_cv_build+y} 4850then : 4851 printf %s "(cached) " >&6 4852else $as_nop 4853 ac_build_alias=$build_alias 4854test "x$ac_build_alias" = x && 4855 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4856test "x$ac_build_alias" = x && 4857 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4858ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4859 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4860 4861fi 4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4863printf "%s\n" "$ac_cv_build" >&6; } 4864case $ac_cv_build in 4865*-*-*) ;; 4866*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4867esac 4868build=$ac_cv_build 4869ac_save_IFS=$IFS; IFS='-' 4870set x $ac_cv_build 4871shift 4872build_cpu=$1 4873build_vendor=$2 4874shift; shift 4875# Remember, the first character of IFS is used to create $*, 4876# except with old shells: 4877build_os=$* 4878IFS=$ac_save_IFS 4879case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4880 4881 4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4883printf %s "checking host system type... " >&6; } 4884if test ${ac_cv_host+y} 4885then : 4886 printf %s "(cached) " >&6 4887else $as_nop 4888 if test "x$host_alias" = x; then 4889 ac_cv_host=$ac_cv_build 4890else 4891 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4892 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4893fi 4894 4895fi 4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4897printf "%s\n" "$ac_cv_host" >&6; } 4898case $ac_cv_host in 4899*-*-*) ;; 4900*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4901esac 4902host=$ac_cv_host 4903ac_save_IFS=$IFS; IFS='-' 4904set x $ac_cv_host 4905shift 4906host_cpu=$1 4907host_vendor=$2 4908shift; shift 4909# Remember, the first character of IFS is used to create $*, 4910# except with old shells: 4911host_os=$* 4912IFS=$ac_save_IFS 4913case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4914 4915 4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4917printf %s "checking for a sed that does not truncate output... " >&6; } 4918if test ${ac_cv_path_SED+y} 4919then : 4920 printf %s "(cached) " >&6 4921else $as_nop 4922 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4923 for ac_i in 1 2 3 4 5 6 7; do 4924 ac_script="$ac_script$as_nl$ac_script" 4925 done 4926 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4927 { ac_script=; unset ac_script;} 4928 if test -z "$SED"; then 4929 ac_path_SED_found=false 4930 # Loop through the user's path and test for each of PROGNAME-LIST 4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4932for as_dir in $PATH 4933do 4934 IFS=$as_save_IFS 4935 case $as_dir in #((( 4936 '') as_dir=./ ;; 4937 */) ;; 4938 *) as_dir=$as_dir/ ;; 4939 esac 4940 for ac_prog in sed gsed 4941 do 4942 for ac_exec_ext in '' $ac_executable_extensions; do 4943 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4944 as_fn_executable_p "$ac_path_SED" || continue 4945# Check for GNU ac_path_SED and select it if it is found. 4946 # Check for GNU $ac_path_SED 4947case `"$ac_path_SED" --version 2>&1` in 4948*GNU*) 4949 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4950*) 4951 ac_count=0 4952 printf %s 0123456789 >"conftest.in" 4953 while : 4954 do 4955 cat "conftest.in" "conftest.in" >"conftest.tmp" 4956 mv "conftest.tmp" "conftest.in" 4957 cp "conftest.in" "conftest.nl" 4958 printf "%s\n" '' >> "conftest.nl" 4959 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4961 as_fn_arith $ac_count + 1 && ac_count=$as_val 4962 if test $ac_count -gt ${ac_path_SED_max-0}; then 4963 # Best one so far, save it but keep looking for a better one 4964 ac_cv_path_SED="$ac_path_SED" 4965 ac_path_SED_max=$ac_count 4966 fi 4967 # 10*(2^10) chars as input seems more than enough 4968 test $ac_count -gt 10 && break 4969 done 4970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4971esac 4972 4973 $ac_path_SED_found && break 3 4974 done 4975 done 4976 done 4977IFS=$as_save_IFS 4978 if test -z "$ac_cv_path_SED"; then 4979 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4980 fi 4981else 4982 ac_cv_path_SED=$SED 4983fi 4984 4985fi 4986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4987printf "%s\n" "$ac_cv_path_SED" >&6; } 4988 SED="$ac_cv_path_SED" 4989 rm -f conftest.sed 4990 4991 4992 4993 4994 4995 4996# Check whether --enable-selective-werror was given. 4997if test ${enable_selective_werror+y} 4998then : 4999 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5000else $as_nop 5001 SELECTIVE_WERROR=yes 5002fi 5003 5004 5005 5006 5007 5008# -v is too short to test reliably with XORG_TESTSET_CFLAG 5009if test "x$SUNCC" = "xyes"; then 5010 BASE_CFLAGS="-v" 5011else 5012 BASE_CFLAGS="" 5013fi 5014 5015# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029xorg_testset_save_CFLAGS="$CFLAGS" 5030 5031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5034printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5035if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5036then : 5037 printf %s "(cached) " >&6 5038else $as_nop 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041int i; 5042_ACEOF 5043if ac_fn_c_try_compile "$LINENO" 5044then : 5045 xorg_cv_cc_flag_unknown_warning_option=yes 5046else $as_nop 5047 xorg_cv_cc_flag_unknown_warning_option=no 5048fi 5049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5050fi 5051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5054 CFLAGS="$xorg_testset_save_CFLAGS" 5055fi 5056 5057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5060 fi 5061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5064if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5065then : 5066 printf %s "(cached) " >&6 5067else $as_nop 5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5069/* end confdefs.h. */ 5070int i; 5071_ACEOF 5072if ac_fn_c_try_compile "$LINENO" 5073then : 5074 xorg_cv_cc_flag_unused_command_line_argument=yes 5075else $as_nop 5076 xorg_cv_cc_flag_unused_command_line_argument=no 5077fi 5078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5079fi 5080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5083 CFLAGS="$xorg_testset_save_CFLAGS" 5084fi 5085 5086found="no" 5087 5088 if test $found = "no" ; then 5089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5091 fi 5092 5093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5095 fi 5096 5097 CFLAGS="$CFLAGS -Wall" 5098 5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5100printf %s "checking if $CC supports -Wall... " >&6; } 5101 cacheid=xorg_cv_cc_flag__Wall 5102 if eval test \${$cacheid+y} 5103then : 5104 printf %s "(cached) " >&6 5105else $as_nop 5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5107/* end confdefs.h. */ 5108int i; 5109int 5110main (void) 5111{ 5112 5113 ; 5114 return 0; 5115} 5116_ACEOF 5117if ac_fn_c_try_link "$LINENO" 5118then : 5119 eval $cacheid=yes 5120else $as_nop 5121 eval $cacheid=no 5122fi 5123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5124 conftest$ac_exeext conftest.$ac_ext 5125fi 5126 5127 5128 CFLAGS="$xorg_testset_save_CFLAGS" 5129 5130 eval supported=\$$cacheid 5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5132printf "%s\n" "$supported" >&6; } 5133 if test "$supported" = "yes" ; then 5134 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5135 found="yes" 5136 fi 5137 fi 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153xorg_testset_save_CFLAGS="$CFLAGS" 5154 5155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5158printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5159if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5160then : 5161 printf %s "(cached) " >&6 5162else $as_nop 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164/* end confdefs.h. */ 5165int i; 5166_ACEOF 5167if ac_fn_c_try_compile "$LINENO" 5168then : 5169 xorg_cv_cc_flag_unknown_warning_option=yes 5170else $as_nop 5171 xorg_cv_cc_flag_unknown_warning_option=no 5172fi 5173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5174fi 5175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5176printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5178 CFLAGS="$xorg_testset_save_CFLAGS" 5179fi 5180 5181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5184 fi 5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5187printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5188if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5189then : 5190 printf %s "(cached) " >&6 5191else $as_nop 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193/* end confdefs.h. */ 5194int i; 5195_ACEOF 5196if ac_fn_c_try_compile "$LINENO" 5197then : 5198 xorg_cv_cc_flag_unused_command_line_argument=yes 5199else $as_nop 5200 xorg_cv_cc_flag_unused_command_line_argument=no 5201fi 5202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5203fi 5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5205printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5207 CFLAGS="$xorg_testset_save_CFLAGS" 5208fi 5209 5210found="no" 5211 5212 if test $found = "no" ; then 5213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5215 fi 5216 5217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5219 fi 5220 5221 CFLAGS="$CFLAGS -Wpointer-arith" 5222 5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5224printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5225 cacheid=xorg_cv_cc_flag__Wpointer_arith 5226 if eval test \${$cacheid+y} 5227then : 5228 printf %s "(cached) " >&6 5229else $as_nop 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232int i; 5233int 5234main (void) 5235{ 5236 5237 ; 5238 return 0; 5239} 5240_ACEOF 5241if ac_fn_c_try_link "$LINENO" 5242then : 5243 eval $cacheid=yes 5244else $as_nop 5245 eval $cacheid=no 5246fi 5247rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5248 conftest$ac_exeext conftest.$ac_ext 5249fi 5250 5251 5252 CFLAGS="$xorg_testset_save_CFLAGS" 5253 5254 eval supported=\$$cacheid 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5256printf "%s\n" "$supported" >&6; } 5257 if test "$supported" = "yes" ; then 5258 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5259 found="yes" 5260 fi 5261 fi 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277xorg_testset_save_CFLAGS="$CFLAGS" 5278 5279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5282printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5283if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5284then : 5285 printf %s "(cached) " >&6 5286else $as_nop 5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5288/* end confdefs.h. */ 5289int i; 5290_ACEOF 5291if ac_fn_c_try_compile "$LINENO" 5292then : 5293 xorg_cv_cc_flag_unknown_warning_option=yes 5294else $as_nop 5295 xorg_cv_cc_flag_unknown_warning_option=no 5296fi 5297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5298fi 5299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5300printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5302 CFLAGS="$xorg_testset_save_CFLAGS" 5303fi 5304 5305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5308 fi 5309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5311printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5312if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5313then : 5314 printf %s "(cached) " >&6 5315else $as_nop 5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5317/* end confdefs.h. */ 5318int i; 5319_ACEOF 5320if ac_fn_c_try_compile "$LINENO" 5321then : 5322 xorg_cv_cc_flag_unused_command_line_argument=yes 5323else $as_nop 5324 xorg_cv_cc_flag_unused_command_line_argument=no 5325fi 5326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5327fi 5328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5329printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5331 CFLAGS="$xorg_testset_save_CFLAGS" 5332fi 5333 5334found="no" 5335 5336 if test $found = "no" ; then 5337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5339 fi 5340 5341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5343 fi 5344 5345 CFLAGS="$CFLAGS -Wmissing-declarations" 5346 5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5348printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5349 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5350 if eval test \${$cacheid+y} 5351then : 5352 printf %s "(cached) " >&6 5353else $as_nop 5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355/* end confdefs.h. */ 5356int i; 5357int 5358main (void) 5359{ 5360 5361 ; 5362 return 0; 5363} 5364_ACEOF 5365if ac_fn_c_try_link "$LINENO" 5366then : 5367 eval $cacheid=yes 5368else $as_nop 5369 eval $cacheid=no 5370fi 5371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5372 conftest$ac_exeext conftest.$ac_ext 5373fi 5374 5375 5376 CFLAGS="$xorg_testset_save_CFLAGS" 5377 5378 eval supported=\$$cacheid 5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5380printf "%s\n" "$supported" >&6; } 5381 if test "$supported" = "yes" ; then 5382 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5383 found="yes" 5384 fi 5385 fi 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401xorg_testset_save_CFLAGS="$CFLAGS" 5402 5403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5407if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5408then : 5409 printf %s "(cached) " >&6 5410else $as_nop 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413int i; 5414_ACEOF 5415if ac_fn_c_try_compile "$LINENO" 5416then : 5417 xorg_cv_cc_flag_unknown_warning_option=yes 5418else $as_nop 5419 xorg_cv_cc_flag_unknown_warning_option=no 5420fi 5421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5422fi 5423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5426 CFLAGS="$xorg_testset_save_CFLAGS" 5427fi 5428 5429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5432 fi 5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5436if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5437then : 5438 printf %s "(cached) " >&6 5439else $as_nop 5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5441/* end confdefs.h. */ 5442int i; 5443_ACEOF 5444if ac_fn_c_try_compile "$LINENO" 5445then : 5446 xorg_cv_cc_flag_unused_command_line_argument=yes 5447else $as_nop 5448 xorg_cv_cc_flag_unused_command_line_argument=no 5449fi 5450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5451fi 5452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5455 CFLAGS="$xorg_testset_save_CFLAGS" 5456fi 5457 5458found="no" 5459 5460 if test $found = "no" ; then 5461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5463 fi 5464 5465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5467 fi 5468 5469 CFLAGS="$CFLAGS -Wformat=2" 5470 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5472printf %s "checking if $CC supports -Wformat=2... " >&6; } 5473 cacheid=xorg_cv_cc_flag__Wformat_2 5474 if eval test \${$cacheid+y} 5475then : 5476 printf %s "(cached) " >&6 5477else $as_nop 5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479/* end confdefs.h. */ 5480int i; 5481int 5482main (void) 5483{ 5484 5485 ; 5486 return 0; 5487} 5488_ACEOF 5489if ac_fn_c_try_link "$LINENO" 5490then : 5491 eval $cacheid=yes 5492else $as_nop 5493 eval $cacheid=no 5494fi 5495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5496 conftest$ac_exeext conftest.$ac_ext 5497fi 5498 5499 5500 CFLAGS="$xorg_testset_save_CFLAGS" 5501 5502 eval supported=\$$cacheid 5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5504printf "%s\n" "$supported" >&6; } 5505 if test "$supported" = "yes" ; then 5506 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5507 found="yes" 5508 fi 5509 fi 5510 5511 if test $found = "no" ; then 5512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5514 fi 5515 5516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5518 fi 5519 5520 CFLAGS="$CFLAGS -Wformat" 5521 5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5523printf %s "checking if $CC supports -Wformat... " >&6; } 5524 cacheid=xorg_cv_cc_flag__Wformat 5525 if eval test \${$cacheid+y} 5526then : 5527 printf %s "(cached) " >&6 5528else $as_nop 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530/* end confdefs.h. */ 5531int i; 5532int 5533main (void) 5534{ 5535 5536 ; 5537 return 0; 5538} 5539_ACEOF 5540if ac_fn_c_try_link "$LINENO" 5541then : 5542 eval $cacheid=yes 5543else $as_nop 5544 eval $cacheid=no 5545fi 5546rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5547 conftest$ac_exeext conftest.$ac_ext 5548fi 5549 5550 5551 CFLAGS="$xorg_testset_save_CFLAGS" 5552 5553 eval supported=\$$cacheid 5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5555printf "%s\n" "$supported" >&6; } 5556 if test "$supported" = "yes" ; then 5557 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5558 found="yes" 5559 fi 5560 fi 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578xorg_testset_save_CFLAGS="$CFLAGS" 5579 5580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5584if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5585then : 5586 printf %s "(cached) " >&6 5587else $as_nop 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5589/* end confdefs.h. */ 5590int i; 5591_ACEOF 5592if ac_fn_c_try_compile "$LINENO" 5593then : 5594 xorg_cv_cc_flag_unknown_warning_option=yes 5595else $as_nop 5596 xorg_cv_cc_flag_unknown_warning_option=no 5597fi 5598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5599fi 5600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5603 CFLAGS="$xorg_testset_save_CFLAGS" 5604fi 5605 5606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5609 fi 5610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5613if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5614then : 5615 printf %s "(cached) " >&6 5616else $as_nop 5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5618/* end confdefs.h. */ 5619int i; 5620_ACEOF 5621if ac_fn_c_try_compile "$LINENO" 5622then : 5623 xorg_cv_cc_flag_unused_command_line_argument=yes 5624else $as_nop 5625 xorg_cv_cc_flag_unused_command_line_argument=no 5626fi 5627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5628fi 5629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5632 CFLAGS="$xorg_testset_save_CFLAGS" 5633fi 5634 5635found="no" 5636 5637 if test $found = "no" ; then 5638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5640 fi 5641 5642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5644 fi 5645 5646 CFLAGS="$CFLAGS -Wstrict-prototypes" 5647 5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5649printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5650 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5651 if eval test \${$cacheid+y} 5652then : 5653 printf %s "(cached) " >&6 5654else $as_nop 5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5656/* end confdefs.h. */ 5657int i; 5658int 5659main (void) 5660{ 5661 5662 ; 5663 return 0; 5664} 5665_ACEOF 5666if ac_fn_c_try_link "$LINENO" 5667then : 5668 eval $cacheid=yes 5669else $as_nop 5670 eval $cacheid=no 5671fi 5672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5673 conftest$ac_exeext conftest.$ac_ext 5674fi 5675 5676 5677 CFLAGS="$xorg_testset_save_CFLAGS" 5678 5679 eval supported=\$$cacheid 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5681printf "%s\n" "$supported" >&6; } 5682 if test "$supported" = "yes" ; then 5683 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5684 found="yes" 5685 fi 5686 fi 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702xorg_testset_save_CFLAGS="$CFLAGS" 5703 5704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5708if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5709then : 5710 printf %s "(cached) " >&6 5711else $as_nop 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5713/* end confdefs.h. */ 5714int i; 5715_ACEOF 5716if ac_fn_c_try_compile "$LINENO" 5717then : 5718 xorg_cv_cc_flag_unknown_warning_option=yes 5719else $as_nop 5720 xorg_cv_cc_flag_unknown_warning_option=no 5721fi 5722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5723fi 5724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5727 CFLAGS="$xorg_testset_save_CFLAGS" 5728fi 5729 5730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5733 fi 5734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5737if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5738then : 5739 printf %s "(cached) " >&6 5740else $as_nop 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743int i; 5744_ACEOF 5745if ac_fn_c_try_compile "$LINENO" 5746then : 5747 xorg_cv_cc_flag_unused_command_line_argument=yes 5748else $as_nop 5749 xorg_cv_cc_flag_unused_command_line_argument=no 5750fi 5751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5752fi 5753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5754printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5756 CFLAGS="$xorg_testset_save_CFLAGS" 5757fi 5758 5759found="no" 5760 5761 if test $found = "no" ; then 5762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 fi 5765 5766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5768 fi 5769 5770 CFLAGS="$CFLAGS -Wmissing-prototypes" 5771 5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5773printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5774 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5775 if eval test \${$cacheid+y} 5776then : 5777 printf %s "(cached) " >&6 5778else $as_nop 5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5780/* end confdefs.h. */ 5781int i; 5782int 5783main (void) 5784{ 5785 5786 ; 5787 return 0; 5788} 5789_ACEOF 5790if ac_fn_c_try_link "$LINENO" 5791then : 5792 eval $cacheid=yes 5793else $as_nop 5794 eval $cacheid=no 5795fi 5796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5797 conftest$ac_exeext conftest.$ac_ext 5798fi 5799 5800 5801 CFLAGS="$xorg_testset_save_CFLAGS" 5802 5803 eval supported=\$$cacheid 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5805printf "%s\n" "$supported" >&6; } 5806 if test "$supported" = "yes" ; then 5807 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5808 found="yes" 5809 fi 5810 fi 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826xorg_testset_save_CFLAGS="$CFLAGS" 5827 5828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5833then : 5834 printf %s "(cached) " >&6 5835else $as_nop 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838int i; 5839_ACEOF 5840if ac_fn_c_try_compile "$LINENO" 5841then : 5842 xorg_cv_cc_flag_unknown_warning_option=yes 5843else $as_nop 5844 xorg_cv_cc_flag_unknown_warning_option=no 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5847fi 5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5851 CFLAGS="$xorg_testset_save_CFLAGS" 5852fi 5853 5854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5857 fi 5858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5861if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5862then : 5863 printf %s "(cached) " >&6 5864else $as_nop 5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5866/* end confdefs.h. */ 5867int i; 5868_ACEOF 5869if ac_fn_c_try_compile "$LINENO" 5870then : 5871 xorg_cv_cc_flag_unused_command_line_argument=yes 5872else $as_nop 5873 xorg_cv_cc_flag_unused_command_line_argument=no 5874fi 5875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5876fi 5877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5880 CFLAGS="$xorg_testset_save_CFLAGS" 5881fi 5882 5883found="no" 5884 5885 if test $found = "no" ; then 5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 fi 5889 5890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5892 fi 5893 5894 CFLAGS="$CFLAGS -Wnested-externs" 5895 5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5897printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5898 cacheid=xorg_cv_cc_flag__Wnested_externs 5899 if eval test \${$cacheid+y} 5900then : 5901 printf %s "(cached) " >&6 5902else $as_nop 5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5904/* end confdefs.h. */ 5905int i; 5906int 5907main (void) 5908{ 5909 5910 ; 5911 return 0; 5912} 5913_ACEOF 5914if ac_fn_c_try_link "$LINENO" 5915then : 5916 eval $cacheid=yes 5917else $as_nop 5918 eval $cacheid=no 5919fi 5920rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5921 conftest$ac_exeext conftest.$ac_ext 5922fi 5923 5924 5925 CFLAGS="$xorg_testset_save_CFLAGS" 5926 5927 eval supported=\$$cacheid 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5929printf "%s\n" "$supported" >&6; } 5930 if test "$supported" = "yes" ; then 5931 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5932 found="yes" 5933 fi 5934 fi 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950xorg_testset_save_CFLAGS="$CFLAGS" 5951 5952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5956if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5957then : 5958 printf %s "(cached) " >&6 5959else $as_nop 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5961/* end confdefs.h. */ 5962int i; 5963_ACEOF 5964if ac_fn_c_try_compile "$LINENO" 5965then : 5966 xorg_cv_cc_flag_unknown_warning_option=yes 5967else $as_nop 5968 xorg_cv_cc_flag_unknown_warning_option=no 5969fi 5970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5971fi 5972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5973printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5975 CFLAGS="$xorg_testset_save_CFLAGS" 5976fi 5977 5978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5981 fi 5982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5984printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5985if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5986then : 5987 printf %s "(cached) " >&6 5988else $as_nop 5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5990/* end confdefs.h. */ 5991int i; 5992_ACEOF 5993if ac_fn_c_try_compile "$LINENO" 5994then : 5995 xorg_cv_cc_flag_unused_command_line_argument=yes 5996else $as_nop 5997 xorg_cv_cc_flag_unused_command_line_argument=no 5998fi 5999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6000fi 6001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6002printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6004 CFLAGS="$xorg_testset_save_CFLAGS" 6005fi 6006 6007found="no" 6008 6009 if test $found = "no" ; then 6010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6012 fi 6013 6014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6016 fi 6017 6018 CFLAGS="$CFLAGS -Wbad-function-cast" 6019 6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6021printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6022 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6023 if eval test \${$cacheid+y} 6024then : 6025 printf %s "(cached) " >&6 6026else $as_nop 6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028/* end confdefs.h. */ 6029int i; 6030int 6031main (void) 6032{ 6033 6034 ; 6035 return 0; 6036} 6037_ACEOF 6038if ac_fn_c_try_link "$LINENO" 6039then : 6040 eval $cacheid=yes 6041else $as_nop 6042 eval $cacheid=no 6043fi 6044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6045 conftest$ac_exeext conftest.$ac_ext 6046fi 6047 6048 6049 CFLAGS="$xorg_testset_save_CFLAGS" 6050 6051 eval supported=\$$cacheid 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6053printf "%s\n" "$supported" >&6; } 6054 if test "$supported" = "yes" ; then 6055 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6056 found="yes" 6057 fi 6058 fi 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074xorg_testset_save_CFLAGS="$CFLAGS" 6075 6076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6080if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6081then : 6082 printf %s "(cached) " >&6 6083else $as_nop 6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085/* end confdefs.h. */ 6086int i; 6087_ACEOF 6088if ac_fn_c_try_compile "$LINENO" 6089then : 6090 xorg_cv_cc_flag_unknown_warning_option=yes 6091else $as_nop 6092 xorg_cv_cc_flag_unknown_warning_option=no 6093fi 6094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6095fi 6096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6099 CFLAGS="$xorg_testset_save_CFLAGS" 6100fi 6101 6102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 fi 6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6109if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6110then : 6111 printf %s "(cached) " >&6 6112else $as_nop 6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6114/* end confdefs.h. */ 6115int i; 6116_ACEOF 6117if ac_fn_c_try_compile "$LINENO" 6118then : 6119 xorg_cv_cc_flag_unused_command_line_argument=yes 6120else $as_nop 6121 xorg_cv_cc_flag_unused_command_line_argument=no 6122fi 6123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6124fi 6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6128 CFLAGS="$xorg_testset_save_CFLAGS" 6129fi 6130 6131found="no" 6132 6133 if test $found = "no" ; then 6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6136 fi 6137 6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6140 fi 6141 6142 CFLAGS="$CFLAGS -Wold-style-definition" 6143 6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6145printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6146 cacheid=xorg_cv_cc_flag__Wold_style_definition 6147 if eval test \${$cacheid+y} 6148then : 6149 printf %s "(cached) " >&6 6150else $as_nop 6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153int i; 6154int 6155main (void) 6156{ 6157 6158 ; 6159 return 0; 6160} 6161_ACEOF 6162if ac_fn_c_try_link "$LINENO" 6163then : 6164 eval $cacheid=yes 6165else $as_nop 6166 eval $cacheid=no 6167fi 6168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6169 conftest$ac_exeext conftest.$ac_ext 6170fi 6171 6172 6173 CFLAGS="$xorg_testset_save_CFLAGS" 6174 6175 eval supported=\$$cacheid 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6177printf "%s\n" "$supported" >&6; } 6178 if test "$supported" = "yes" ; then 6179 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6180 found="yes" 6181 fi 6182 fi 6183 6184 if test $found = "no" ; then 6185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6187 fi 6188 6189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6191 fi 6192 6193 CFLAGS="$CFLAGS -fd" 6194 6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6196printf %s "checking if $CC supports -fd... " >&6; } 6197 cacheid=xorg_cv_cc_flag__fd 6198 if eval test \${$cacheid+y} 6199then : 6200 printf %s "(cached) " >&6 6201else $as_nop 6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6203/* end confdefs.h. */ 6204int i; 6205int 6206main (void) 6207{ 6208 6209 ; 6210 return 0; 6211} 6212_ACEOF 6213if ac_fn_c_try_link "$LINENO" 6214then : 6215 eval $cacheid=yes 6216else $as_nop 6217 eval $cacheid=no 6218fi 6219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6220 conftest$ac_exeext conftest.$ac_ext 6221fi 6222 6223 6224 CFLAGS="$xorg_testset_save_CFLAGS" 6225 6226 eval supported=\$$cacheid 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6228printf "%s\n" "$supported" >&6; } 6229 if test "$supported" = "yes" ; then 6230 BASE_CFLAGS="$BASE_CFLAGS -fd" 6231 found="yes" 6232 fi 6233 fi 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249xorg_testset_save_CFLAGS="$CFLAGS" 6250 6251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6255if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6256then : 6257 printf %s "(cached) " >&6 6258else $as_nop 6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261int i; 6262_ACEOF 6263if ac_fn_c_try_compile "$LINENO" 6264then : 6265 xorg_cv_cc_flag_unknown_warning_option=yes 6266else $as_nop 6267 xorg_cv_cc_flag_unknown_warning_option=no 6268fi 6269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6270fi 6271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6274 CFLAGS="$xorg_testset_save_CFLAGS" 6275fi 6276 6277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6280 fi 6281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6284if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6285then : 6286 printf %s "(cached) " >&6 6287else $as_nop 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289/* end confdefs.h. */ 6290int i; 6291_ACEOF 6292if ac_fn_c_try_compile "$LINENO" 6293then : 6294 xorg_cv_cc_flag_unused_command_line_argument=yes 6295else $as_nop 6296 xorg_cv_cc_flag_unused_command_line_argument=no 6297fi 6298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6299fi 6300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6303 CFLAGS="$xorg_testset_save_CFLAGS" 6304fi 6305 6306found="no" 6307 6308 if test $found = "no" ; then 6309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6311 fi 6312 6313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6315 fi 6316 6317 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6318 6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6320printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6321 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6322 if eval test \${$cacheid+y} 6323then : 6324 printf %s "(cached) " >&6 6325else $as_nop 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329int 6330main (void) 6331{ 6332 6333 ; 6334 return 0; 6335} 6336_ACEOF 6337if ac_fn_c_try_link "$LINENO" 6338then : 6339 eval $cacheid=yes 6340else $as_nop 6341 eval $cacheid=no 6342fi 6343rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6344 conftest$ac_exeext conftest.$ac_ext 6345fi 6346 6347 6348 CFLAGS="$xorg_testset_save_CFLAGS" 6349 6350 eval supported=\$$cacheid 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6352printf "%s\n" "$supported" >&6; } 6353 if test "$supported" = "yes" ; then 6354 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6355 found="yes" 6356 fi 6357 fi 6358 6359 6360 6361 6362 6363# This chunk adds additional warnings that could catch undesired effects. 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377xorg_testset_save_CFLAGS="$CFLAGS" 6378 6379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6384then : 6385 printf %s "(cached) " >&6 6386else $as_nop 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389int i; 6390_ACEOF 6391if ac_fn_c_try_compile "$LINENO" 6392then : 6393 xorg_cv_cc_flag_unknown_warning_option=yes 6394else $as_nop 6395 xorg_cv_cc_flag_unknown_warning_option=no 6396fi 6397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6398fi 6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6402 CFLAGS="$xorg_testset_save_CFLAGS" 6403fi 6404 6405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6408 fi 6409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6413then : 6414 printf %s "(cached) " >&6 6415else $as_nop 6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6417/* end confdefs.h. */ 6418int i; 6419_ACEOF 6420if ac_fn_c_try_compile "$LINENO" 6421then : 6422 xorg_cv_cc_flag_unused_command_line_argument=yes 6423else $as_nop 6424 xorg_cv_cc_flag_unused_command_line_argument=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6427fi 6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6431 CFLAGS="$xorg_testset_save_CFLAGS" 6432fi 6433 6434found="no" 6435 6436 if test $found = "no" ; then 6437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6439 fi 6440 6441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6443 fi 6444 6445 CFLAGS="$CFLAGS -Wunused" 6446 6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6448printf %s "checking if $CC supports -Wunused... " >&6; } 6449 cacheid=xorg_cv_cc_flag__Wunused 6450 if eval test \${$cacheid+y} 6451then : 6452 printf %s "(cached) " >&6 6453else $as_nop 6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6455/* end confdefs.h. */ 6456int i; 6457int 6458main (void) 6459{ 6460 6461 ; 6462 return 0; 6463} 6464_ACEOF 6465if ac_fn_c_try_link "$LINENO" 6466then : 6467 eval $cacheid=yes 6468else $as_nop 6469 eval $cacheid=no 6470fi 6471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6472 conftest$ac_exeext conftest.$ac_ext 6473fi 6474 6475 6476 CFLAGS="$xorg_testset_save_CFLAGS" 6477 6478 eval supported=\$$cacheid 6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6480printf "%s\n" "$supported" >&6; } 6481 if test "$supported" = "yes" ; then 6482 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6483 found="yes" 6484 fi 6485 fi 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501xorg_testset_save_CFLAGS="$CFLAGS" 6502 6503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6507if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6508then : 6509 printf %s "(cached) " >&6 6510else $as_nop 6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512/* end confdefs.h. */ 6513int i; 6514_ACEOF 6515if ac_fn_c_try_compile "$LINENO" 6516then : 6517 xorg_cv_cc_flag_unknown_warning_option=yes 6518else $as_nop 6519 xorg_cv_cc_flag_unknown_warning_option=no 6520fi 6521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6522fi 6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6526 CFLAGS="$xorg_testset_save_CFLAGS" 6527fi 6528 6529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6532 fi 6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6537then : 6538 printf %s "(cached) " >&6 6539else $as_nop 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542int i; 6543_ACEOF 6544if ac_fn_c_try_compile "$LINENO" 6545then : 6546 xorg_cv_cc_flag_unused_command_line_argument=yes 6547else $as_nop 6548 xorg_cv_cc_flag_unused_command_line_argument=no 6549fi 6550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6551fi 6552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6555 CFLAGS="$xorg_testset_save_CFLAGS" 6556fi 6557 6558found="no" 6559 6560 if test $found = "no" ; then 6561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6563 fi 6564 6565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6567 fi 6568 6569 CFLAGS="$CFLAGS -Wuninitialized" 6570 6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6572printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6573 cacheid=xorg_cv_cc_flag__Wuninitialized 6574 if eval test \${$cacheid+y} 6575then : 6576 printf %s "(cached) " >&6 6577else $as_nop 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580int i; 6581int 6582main (void) 6583{ 6584 6585 ; 6586 return 0; 6587} 6588_ACEOF 6589if ac_fn_c_try_link "$LINENO" 6590then : 6591 eval $cacheid=yes 6592else $as_nop 6593 eval $cacheid=no 6594fi 6595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6596 conftest$ac_exeext conftest.$ac_ext 6597fi 6598 6599 6600 CFLAGS="$xorg_testset_save_CFLAGS" 6601 6602 eval supported=\$$cacheid 6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6604printf "%s\n" "$supported" >&6; } 6605 if test "$supported" = "yes" ; then 6606 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6607 found="yes" 6608 fi 6609 fi 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625xorg_testset_save_CFLAGS="$CFLAGS" 6626 6627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6632then : 6633 printf %s "(cached) " >&6 6634else $as_nop 6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6636/* end confdefs.h. */ 6637int i; 6638_ACEOF 6639if ac_fn_c_try_compile "$LINENO" 6640then : 6641 xorg_cv_cc_flag_unknown_warning_option=yes 6642else $as_nop 6643 xorg_cv_cc_flag_unknown_warning_option=no 6644fi 6645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6646fi 6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651fi 6652 6653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6656 fi 6657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6661then : 6662 printf %s "(cached) " >&6 6663else $as_nop 6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665/* end confdefs.h. */ 6666int i; 6667_ACEOF 6668if ac_fn_c_try_compile "$LINENO" 6669then : 6670 xorg_cv_cc_flag_unused_command_line_argument=yes 6671else $as_nop 6672 xorg_cv_cc_flag_unused_command_line_argument=no 6673fi 6674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6675fi 6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6679 CFLAGS="$xorg_testset_save_CFLAGS" 6680fi 6681 6682found="no" 6683 6684 if test $found = "no" ; then 6685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6687 fi 6688 6689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6691 fi 6692 6693 CFLAGS="$CFLAGS -Wshadow" 6694 6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6696printf %s "checking if $CC supports -Wshadow... " >&6; } 6697 cacheid=xorg_cv_cc_flag__Wshadow 6698 if eval test \${$cacheid+y} 6699then : 6700 printf %s "(cached) " >&6 6701else $as_nop 6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705int 6706main (void) 6707{ 6708 6709 ; 6710 return 0; 6711} 6712_ACEOF 6713if ac_fn_c_try_link "$LINENO" 6714then : 6715 eval $cacheid=yes 6716else $as_nop 6717 eval $cacheid=no 6718fi 6719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6720 conftest$ac_exeext conftest.$ac_ext 6721fi 6722 6723 6724 CFLAGS="$xorg_testset_save_CFLAGS" 6725 6726 eval supported=\$$cacheid 6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6728printf "%s\n" "$supported" >&6; } 6729 if test "$supported" = "yes" ; then 6730 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6731 found="yes" 6732 fi 6733 fi 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749xorg_testset_save_CFLAGS="$CFLAGS" 6750 6751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6756then : 6757 printf %s "(cached) " >&6 6758else $as_nop 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761int i; 6762_ACEOF 6763if ac_fn_c_try_compile "$LINENO" 6764then : 6765 xorg_cv_cc_flag_unknown_warning_option=yes 6766else $as_nop 6767 xorg_cv_cc_flag_unknown_warning_option=no 6768fi 6769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6770fi 6771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6774 CFLAGS="$xorg_testset_save_CFLAGS" 6775fi 6776 6777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6780 fi 6781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6784if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6785then : 6786 printf %s "(cached) " >&6 6787else $as_nop 6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789/* end confdefs.h. */ 6790int i; 6791_ACEOF 6792if ac_fn_c_try_compile "$LINENO" 6793then : 6794 xorg_cv_cc_flag_unused_command_line_argument=yes 6795else $as_nop 6796 xorg_cv_cc_flag_unused_command_line_argument=no 6797fi 6798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6799fi 6800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6803 CFLAGS="$xorg_testset_save_CFLAGS" 6804fi 6805 6806found="no" 6807 6808 if test $found = "no" ; then 6809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 fi 6812 6813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6815 fi 6816 6817 CFLAGS="$CFLAGS -Wmissing-noreturn" 6818 6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6820printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6821 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6822 if eval test \${$cacheid+y} 6823then : 6824 printf %s "(cached) " >&6 6825else $as_nop 6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6827/* end confdefs.h. */ 6828int i; 6829int 6830main (void) 6831{ 6832 6833 ; 6834 return 0; 6835} 6836_ACEOF 6837if ac_fn_c_try_link "$LINENO" 6838then : 6839 eval $cacheid=yes 6840else $as_nop 6841 eval $cacheid=no 6842fi 6843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6844 conftest$ac_exeext conftest.$ac_ext 6845fi 6846 6847 6848 CFLAGS="$xorg_testset_save_CFLAGS" 6849 6850 eval supported=\$$cacheid 6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6852printf "%s\n" "$supported" >&6; } 6853 if test "$supported" = "yes" ; then 6854 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6855 found="yes" 6856 fi 6857 fi 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873xorg_testset_save_CFLAGS="$CFLAGS" 6874 6875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6879if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6880then : 6881 printf %s "(cached) " >&6 6882else $as_nop 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884/* end confdefs.h. */ 6885int i; 6886_ACEOF 6887if ac_fn_c_try_compile "$LINENO" 6888then : 6889 xorg_cv_cc_flag_unknown_warning_option=yes 6890else $as_nop 6891 xorg_cv_cc_flag_unknown_warning_option=no 6892fi 6893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6894fi 6895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899fi 6900 6901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6904 fi 6905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6908if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6909then : 6910 printf %s "(cached) " >&6 6911else $as_nop 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914int i; 6915_ACEOF 6916if ac_fn_c_try_compile "$LINENO" 6917then : 6918 xorg_cv_cc_flag_unused_command_line_argument=yes 6919else $as_nop 6920 xorg_cv_cc_flag_unused_command_line_argument=no 6921fi 6922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6923fi 6924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6927 CFLAGS="$xorg_testset_save_CFLAGS" 6928fi 6929 6930found="no" 6931 6932 if test $found = "no" ; then 6933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6935 fi 6936 6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6939 fi 6940 6941 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6942 6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6944printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6945 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6946 if eval test \${$cacheid+y} 6947then : 6948 printf %s "(cached) " >&6 6949else $as_nop 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952int i; 6953int 6954main (void) 6955{ 6956 6957 ; 6958 return 0; 6959} 6960_ACEOF 6961if ac_fn_c_try_link "$LINENO" 6962then : 6963 eval $cacheid=yes 6964else $as_nop 6965 eval $cacheid=no 6966fi 6967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6968 conftest$ac_exeext conftest.$ac_ext 6969fi 6970 6971 6972 CFLAGS="$xorg_testset_save_CFLAGS" 6973 6974 eval supported=\$$cacheid 6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6976printf "%s\n" "$supported" >&6; } 6977 if test "$supported" = "yes" ; then 6978 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6979 found="yes" 6980 fi 6981 fi 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997xorg_testset_save_CFLAGS="$CFLAGS" 6998 6999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7003if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7004then : 7005 printf %s "(cached) " >&6 7006else $as_nop 7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7008/* end confdefs.h. */ 7009int i; 7010_ACEOF 7011if ac_fn_c_try_compile "$LINENO" 7012then : 7013 xorg_cv_cc_flag_unknown_warning_option=yes 7014else $as_nop 7015 xorg_cv_cc_flag_unknown_warning_option=no 7016fi 7017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7018fi 7019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7022 CFLAGS="$xorg_testset_save_CFLAGS" 7023fi 7024 7025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7028 fi 7029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7032if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7033then : 7034 printf %s "(cached) " >&6 7035else $as_nop 7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7037/* end confdefs.h. */ 7038int i; 7039_ACEOF 7040if ac_fn_c_try_compile "$LINENO" 7041then : 7042 xorg_cv_cc_flag_unused_command_line_argument=yes 7043else $as_nop 7044 xorg_cv_cc_flag_unused_command_line_argument=no 7045fi 7046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7047fi 7048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7051 CFLAGS="$xorg_testset_save_CFLAGS" 7052fi 7053 7054found="no" 7055 7056 if test $found = "no" ; then 7057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7059 fi 7060 7061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7063 fi 7064 7065 CFLAGS="$CFLAGS -Wredundant-decls" 7066 7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7068printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7069 cacheid=xorg_cv_cc_flag__Wredundant_decls 7070 if eval test \${$cacheid+y} 7071then : 7072 printf %s "(cached) " >&6 7073else $as_nop 7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075/* end confdefs.h. */ 7076int i; 7077int 7078main (void) 7079{ 7080 7081 ; 7082 return 0; 7083} 7084_ACEOF 7085if ac_fn_c_try_link "$LINENO" 7086then : 7087 eval $cacheid=yes 7088else $as_nop 7089 eval $cacheid=no 7090fi 7091rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7092 conftest$ac_exeext conftest.$ac_ext 7093fi 7094 7095 7096 CFLAGS="$xorg_testset_save_CFLAGS" 7097 7098 eval supported=\$$cacheid 7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7100printf "%s\n" "$supported" >&6; } 7101 if test "$supported" = "yes" ; then 7102 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7103 found="yes" 7104 fi 7105 fi 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121xorg_testset_save_CFLAGS="$CFLAGS" 7122 7123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7127if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7128then : 7129 printf %s "(cached) " >&6 7130else $as_nop 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133int i; 7134_ACEOF 7135if ac_fn_c_try_compile "$LINENO" 7136then : 7137 xorg_cv_cc_flag_unknown_warning_option=yes 7138else $as_nop 7139 xorg_cv_cc_flag_unknown_warning_option=no 7140fi 7141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7142fi 7143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7146 CFLAGS="$xorg_testset_save_CFLAGS" 7147fi 7148 7149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7152 fi 7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7156if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7157then : 7158 printf %s "(cached) " >&6 7159else $as_nop 7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7161/* end confdefs.h. */ 7162int i; 7163_ACEOF 7164if ac_fn_c_try_compile "$LINENO" 7165then : 7166 xorg_cv_cc_flag_unused_command_line_argument=yes 7167else $as_nop 7168 xorg_cv_cc_flag_unused_command_line_argument=no 7169fi 7170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7171fi 7172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7175 CFLAGS="$xorg_testset_save_CFLAGS" 7176fi 7177 7178found="no" 7179 7180 if test $found = "no" ; then 7181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7183 fi 7184 7185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7187 fi 7188 7189 CFLAGS="$CFLAGS -Wlogical-op" 7190 7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7192printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7193 cacheid=xorg_cv_cc_flag__Wlogical_op 7194 if eval test \${$cacheid+y} 7195then : 7196 printf %s "(cached) " >&6 7197else $as_nop 7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7199/* end confdefs.h. */ 7200int i; 7201int 7202main (void) 7203{ 7204 7205 ; 7206 return 0; 7207} 7208_ACEOF 7209if ac_fn_c_try_link "$LINENO" 7210then : 7211 eval $cacheid=yes 7212else $as_nop 7213 eval $cacheid=no 7214fi 7215rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7216 conftest$ac_exeext conftest.$ac_ext 7217fi 7218 7219 7220 CFLAGS="$xorg_testset_save_CFLAGS" 7221 7222 eval supported=\$$cacheid 7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7224printf "%s\n" "$supported" >&6; } 7225 if test "$supported" = "yes" ; then 7226 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7227 found="yes" 7228 fi 7229 fi 7230 7231 7232 7233# These are currently disabled because they are noisy. They will be enabled 7234# in the future once the codebase is sufficiently modernized to silence 7235# them. For now, I don't want them to drown out the other warnings. 7236# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7237# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7238# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7239 7240# Turn some warnings into errors, so we don't accidently get successful builds 7241# when there are problems that should be fixed. 7242 7243if test "x$SELECTIVE_WERROR" = "xyes" ; then 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257xorg_testset_save_CFLAGS="$CFLAGS" 7258 7259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7262printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7263if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7264then : 7265 printf %s "(cached) " >&6 7266else $as_nop 7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7268/* end confdefs.h. */ 7269int i; 7270_ACEOF 7271if ac_fn_c_try_compile "$LINENO" 7272then : 7273 xorg_cv_cc_flag_unknown_warning_option=yes 7274else $as_nop 7275 xorg_cv_cc_flag_unknown_warning_option=no 7276fi 7277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7278fi 7279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7282 CFLAGS="$xorg_testset_save_CFLAGS" 7283fi 7284 7285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7288 fi 7289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7292if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7293then : 7294 printf %s "(cached) " >&6 7295else $as_nop 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298int i; 7299_ACEOF 7300if ac_fn_c_try_compile "$LINENO" 7301then : 7302 xorg_cv_cc_flag_unused_command_line_argument=yes 7303else $as_nop 7304 xorg_cv_cc_flag_unused_command_line_argument=no 7305fi 7306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7307fi 7308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7311 CFLAGS="$xorg_testset_save_CFLAGS" 7312fi 7313 7314found="no" 7315 7316 if test $found = "no" ; then 7317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7319 fi 7320 7321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7323 fi 7324 7325 CFLAGS="$CFLAGS -Werror=implicit" 7326 7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7328printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7329 cacheid=xorg_cv_cc_flag__Werror_implicit 7330 if eval test \${$cacheid+y} 7331then : 7332 printf %s "(cached) " >&6 7333else $as_nop 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336int i; 7337int 7338main (void) 7339{ 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_c_try_link "$LINENO" 7346then : 7347 eval $cacheid=yes 7348else $as_nop 7349 eval $cacheid=no 7350fi 7351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7352 conftest$ac_exeext conftest.$ac_ext 7353fi 7354 7355 7356 CFLAGS="$xorg_testset_save_CFLAGS" 7357 7358 eval supported=\$$cacheid 7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7360printf "%s\n" "$supported" >&6; } 7361 if test "$supported" = "yes" ; then 7362 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7363 found="yes" 7364 fi 7365 fi 7366 7367 if test $found = "no" ; then 7368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7370 fi 7371 7372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7374 fi 7375 7376 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7377 7378 { 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 7379printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7380 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7381 if eval test \${$cacheid+y} 7382then : 7383 printf %s "(cached) " >&6 7384else $as_nop 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387int i; 7388int 7389main (void) 7390{ 7391 7392 ; 7393 return 0; 7394} 7395_ACEOF 7396if ac_fn_c_try_link "$LINENO" 7397then : 7398 eval $cacheid=yes 7399else $as_nop 7400 eval $cacheid=no 7401fi 7402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7403 conftest$ac_exeext conftest.$ac_ext 7404fi 7405 7406 7407 CFLAGS="$xorg_testset_save_CFLAGS" 7408 7409 eval supported=\$$cacheid 7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7411printf "%s\n" "$supported" >&6; } 7412 if test "$supported" = "yes" ; then 7413 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7414 found="yes" 7415 fi 7416 fi 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432xorg_testset_save_CFLAGS="$CFLAGS" 7433 7434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7438if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7439then : 7440 printf %s "(cached) " >&6 7441else $as_nop 7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7443/* end confdefs.h. */ 7444int i; 7445_ACEOF 7446if ac_fn_c_try_compile "$LINENO" 7447then : 7448 xorg_cv_cc_flag_unknown_warning_option=yes 7449else $as_nop 7450 xorg_cv_cc_flag_unknown_warning_option=no 7451fi 7452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7453fi 7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7455printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7457 CFLAGS="$xorg_testset_save_CFLAGS" 7458fi 7459 7460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7463 fi 7464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7466printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7467if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7468then : 7469 printf %s "(cached) " >&6 7470else $as_nop 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7472/* end confdefs.h. */ 7473int i; 7474_ACEOF 7475if ac_fn_c_try_compile "$LINENO" 7476then : 7477 xorg_cv_cc_flag_unused_command_line_argument=yes 7478else $as_nop 7479 xorg_cv_cc_flag_unused_command_line_argument=no 7480fi 7481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7482fi 7483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7484printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7486 CFLAGS="$xorg_testset_save_CFLAGS" 7487fi 7488 7489found="no" 7490 7491 if test $found = "no" ; then 7492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7494 fi 7495 7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7498 fi 7499 7500 CFLAGS="$CFLAGS -Werror=nonnull" 7501 7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7503printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7504 cacheid=xorg_cv_cc_flag__Werror_nonnull 7505 if eval test \${$cacheid+y} 7506then : 7507 printf %s "(cached) " >&6 7508else $as_nop 7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7510/* end confdefs.h. */ 7511int i; 7512int 7513main (void) 7514{ 7515 7516 ; 7517 return 0; 7518} 7519_ACEOF 7520if ac_fn_c_try_link "$LINENO" 7521then : 7522 eval $cacheid=yes 7523else $as_nop 7524 eval $cacheid=no 7525fi 7526rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7527 conftest$ac_exeext conftest.$ac_ext 7528fi 7529 7530 7531 CFLAGS="$xorg_testset_save_CFLAGS" 7532 7533 eval supported=\$$cacheid 7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7535printf "%s\n" "$supported" >&6; } 7536 if test "$supported" = "yes" ; then 7537 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7538 found="yes" 7539 fi 7540 fi 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556xorg_testset_save_CFLAGS="$CFLAGS" 7557 7558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7561printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7562if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7563then : 7564 printf %s "(cached) " >&6 7565else $as_nop 7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7567/* end confdefs.h. */ 7568int i; 7569_ACEOF 7570if ac_fn_c_try_compile "$LINENO" 7571then : 7572 xorg_cv_cc_flag_unknown_warning_option=yes 7573else $as_nop 7574 xorg_cv_cc_flag_unknown_warning_option=no 7575fi 7576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7577fi 7578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7581 CFLAGS="$xorg_testset_save_CFLAGS" 7582fi 7583 7584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7587 fi 7588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7591if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7592then : 7593 printf %s "(cached) " >&6 7594else $as_nop 7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596/* end confdefs.h. */ 7597int i; 7598_ACEOF 7599if ac_fn_c_try_compile "$LINENO" 7600then : 7601 xorg_cv_cc_flag_unused_command_line_argument=yes 7602else $as_nop 7603 xorg_cv_cc_flag_unused_command_line_argument=no 7604fi 7605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7606fi 7607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7610 CFLAGS="$xorg_testset_save_CFLAGS" 7611fi 7612 7613found="no" 7614 7615 if test $found = "no" ; then 7616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 fi 7619 7620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7622 fi 7623 7624 CFLAGS="$CFLAGS -Werror=init-self" 7625 7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7627printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7628 cacheid=xorg_cv_cc_flag__Werror_init_self 7629 if eval test \${$cacheid+y} 7630then : 7631 printf %s "(cached) " >&6 7632else $as_nop 7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634/* end confdefs.h. */ 7635int i; 7636int 7637main (void) 7638{ 7639 7640 ; 7641 return 0; 7642} 7643_ACEOF 7644if ac_fn_c_try_link "$LINENO" 7645then : 7646 eval $cacheid=yes 7647else $as_nop 7648 eval $cacheid=no 7649fi 7650rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7651 conftest$ac_exeext conftest.$ac_ext 7652fi 7653 7654 7655 CFLAGS="$xorg_testset_save_CFLAGS" 7656 7657 eval supported=\$$cacheid 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7659printf "%s\n" "$supported" >&6; } 7660 if test "$supported" = "yes" ; then 7661 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7662 found="yes" 7663 fi 7664 fi 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680xorg_testset_save_CFLAGS="$CFLAGS" 7681 7682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7686if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7687then : 7688 printf %s "(cached) " >&6 7689else $as_nop 7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7691/* end confdefs.h. */ 7692int i; 7693_ACEOF 7694if ac_fn_c_try_compile "$LINENO" 7695then : 7696 xorg_cv_cc_flag_unknown_warning_option=yes 7697else $as_nop 7698 xorg_cv_cc_flag_unknown_warning_option=no 7699fi 7700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7701fi 7702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7703printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7705 CFLAGS="$xorg_testset_save_CFLAGS" 7706fi 7707 7708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7711 fi 7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7714printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7715if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7716then : 7717 printf %s "(cached) " >&6 7718else $as_nop 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721int i; 7722_ACEOF 7723if ac_fn_c_try_compile "$LINENO" 7724then : 7725 xorg_cv_cc_flag_unused_command_line_argument=yes 7726else $as_nop 7727 xorg_cv_cc_flag_unused_command_line_argument=no 7728fi 7729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7730fi 7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7734 CFLAGS="$xorg_testset_save_CFLAGS" 7735fi 7736 7737found="no" 7738 7739 if test $found = "no" ; then 7740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7742 fi 7743 7744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7746 fi 7747 7748 CFLAGS="$CFLAGS -Werror=main" 7749 7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7751printf %s "checking if $CC supports -Werror=main... " >&6; } 7752 cacheid=xorg_cv_cc_flag__Werror_main 7753 if eval test \${$cacheid+y} 7754then : 7755 printf %s "(cached) " >&6 7756else $as_nop 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759int i; 7760int 7761main (void) 7762{ 7763 7764 ; 7765 return 0; 7766} 7767_ACEOF 7768if ac_fn_c_try_link "$LINENO" 7769then : 7770 eval $cacheid=yes 7771else $as_nop 7772 eval $cacheid=no 7773fi 7774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7775 conftest$ac_exeext conftest.$ac_ext 7776fi 7777 7778 7779 CFLAGS="$xorg_testset_save_CFLAGS" 7780 7781 eval supported=\$$cacheid 7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7783printf "%s\n" "$supported" >&6; } 7784 if test "$supported" = "yes" ; then 7785 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7786 found="yes" 7787 fi 7788 fi 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804xorg_testset_save_CFLAGS="$CFLAGS" 7805 7806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7810if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7811then : 7812 printf %s "(cached) " >&6 7813else $as_nop 7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7815/* end confdefs.h. */ 7816int i; 7817_ACEOF 7818if ac_fn_c_try_compile "$LINENO" 7819then : 7820 xorg_cv_cc_flag_unknown_warning_option=yes 7821else $as_nop 7822 xorg_cv_cc_flag_unknown_warning_option=no 7823fi 7824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7825fi 7826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7827printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7829 CFLAGS="$xorg_testset_save_CFLAGS" 7830fi 7831 7832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7835 fi 7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7838printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7839if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7840then : 7841 printf %s "(cached) " >&6 7842else $as_nop 7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844/* end confdefs.h. */ 7845int i; 7846_ACEOF 7847if ac_fn_c_try_compile "$LINENO" 7848then : 7849 xorg_cv_cc_flag_unused_command_line_argument=yes 7850else $as_nop 7851 xorg_cv_cc_flag_unused_command_line_argument=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7854fi 7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859fi 7860 7861found="no" 7862 7863 if test $found = "no" ; then 7864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7866 fi 7867 7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7870 fi 7871 7872 CFLAGS="$CFLAGS -Werror=missing-braces" 7873 7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7875printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7876 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7877 if eval test \${$cacheid+y} 7878then : 7879 printf %s "(cached) " >&6 7880else $as_nop 7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7882/* end confdefs.h. */ 7883int i; 7884int 7885main (void) 7886{ 7887 7888 ; 7889 return 0; 7890} 7891_ACEOF 7892if ac_fn_c_try_link "$LINENO" 7893then : 7894 eval $cacheid=yes 7895else $as_nop 7896 eval $cacheid=no 7897fi 7898rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7899 conftest$ac_exeext conftest.$ac_ext 7900fi 7901 7902 7903 CFLAGS="$xorg_testset_save_CFLAGS" 7904 7905 eval supported=\$$cacheid 7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7907printf "%s\n" "$supported" >&6; } 7908 if test "$supported" = "yes" ; then 7909 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7910 found="yes" 7911 fi 7912 fi 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928xorg_testset_save_CFLAGS="$CFLAGS" 7929 7930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7934if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7935then : 7936 printf %s "(cached) " >&6 7937else $as_nop 7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939/* end confdefs.h. */ 7940int i; 7941_ACEOF 7942if ac_fn_c_try_compile "$LINENO" 7943then : 7944 xorg_cv_cc_flag_unknown_warning_option=yes 7945else $as_nop 7946 xorg_cv_cc_flag_unknown_warning_option=no 7947fi 7948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7949fi 7950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7953 CFLAGS="$xorg_testset_save_CFLAGS" 7954fi 7955 7956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7959 fi 7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7963if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7964then : 7965 printf %s "(cached) " >&6 7966else $as_nop 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969int i; 7970_ACEOF 7971if ac_fn_c_try_compile "$LINENO" 7972then : 7973 xorg_cv_cc_flag_unused_command_line_argument=yes 7974else $as_nop 7975 xorg_cv_cc_flag_unused_command_line_argument=no 7976fi 7977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7978fi 7979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7982 CFLAGS="$xorg_testset_save_CFLAGS" 7983fi 7984 7985found="no" 7986 7987 if test $found = "no" ; then 7988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7990 fi 7991 7992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7994 fi 7995 7996 CFLAGS="$CFLAGS -Werror=sequence-point" 7997 7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7999printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8000 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8001 if eval test \${$cacheid+y} 8002then : 8003 printf %s "(cached) " >&6 8004else $as_nop 8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8006/* end confdefs.h. */ 8007int i; 8008int 8009main (void) 8010{ 8011 8012 ; 8013 return 0; 8014} 8015_ACEOF 8016if ac_fn_c_try_link "$LINENO" 8017then : 8018 eval $cacheid=yes 8019else $as_nop 8020 eval $cacheid=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8023 conftest$ac_exeext conftest.$ac_ext 8024fi 8025 8026 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028 8029 eval supported=\$$cacheid 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8031printf "%s\n" "$supported" >&6; } 8032 if test "$supported" = "yes" ; then 8033 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8034 found="yes" 8035 fi 8036 fi 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052xorg_testset_save_CFLAGS="$CFLAGS" 8053 8054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8059then : 8060 printf %s "(cached) " >&6 8061else $as_nop 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063/* end confdefs.h. */ 8064int i; 8065_ACEOF 8066if ac_fn_c_try_compile "$LINENO" 8067then : 8068 xorg_cv_cc_flag_unknown_warning_option=yes 8069else $as_nop 8070 xorg_cv_cc_flag_unknown_warning_option=no 8071fi 8072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8073fi 8074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8077 CFLAGS="$xorg_testset_save_CFLAGS" 8078fi 8079 8080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8083 fi 8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8087if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8088then : 8089 printf %s "(cached) " >&6 8090else $as_nop 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092/* end confdefs.h. */ 8093int i; 8094_ACEOF 8095if ac_fn_c_try_compile "$LINENO" 8096then : 8097 xorg_cv_cc_flag_unused_command_line_argument=yes 8098else $as_nop 8099 xorg_cv_cc_flag_unused_command_line_argument=no 8100fi 8101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8102fi 8103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8106 CFLAGS="$xorg_testset_save_CFLAGS" 8107fi 8108 8109found="no" 8110 8111 if test $found = "no" ; then 8112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8114 fi 8115 8116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8118 fi 8119 8120 CFLAGS="$CFLAGS -Werror=return-type" 8121 8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8123printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8124 cacheid=xorg_cv_cc_flag__Werror_return_type 8125 if eval test \${$cacheid+y} 8126then : 8127 printf %s "(cached) " >&6 8128else $as_nop 8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8130/* end confdefs.h. */ 8131int i; 8132int 8133main (void) 8134{ 8135 8136 ; 8137 return 0; 8138} 8139_ACEOF 8140if ac_fn_c_try_link "$LINENO" 8141then : 8142 eval $cacheid=yes 8143else $as_nop 8144 eval $cacheid=no 8145fi 8146rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8147 conftest$ac_exeext conftest.$ac_ext 8148fi 8149 8150 8151 CFLAGS="$xorg_testset_save_CFLAGS" 8152 8153 eval supported=\$$cacheid 8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8155printf "%s\n" "$supported" >&6; } 8156 if test "$supported" = "yes" ; then 8157 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8158 found="yes" 8159 fi 8160 fi 8161 8162 if test $found = "no" ; then 8163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 fi 8166 8167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8169 fi 8170 8171 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8172 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8174printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8175 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8176 if eval test \${$cacheid+y} 8177then : 8178 printf %s "(cached) " >&6 8179else $as_nop 8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181/* end confdefs.h. */ 8182int i; 8183int 8184main (void) 8185{ 8186 8187 ; 8188 return 0; 8189} 8190_ACEOF 8191if ac_fn_c_try_link "$LINENO" 8192then : 8193 eval $cacheid=yes 8194else $as_nop 8195 eval $cacheid=no 8196fi 8197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8198 conftest$ac_exeext conftest.$ac_ext 8199fi 8200 8201 8202 CFLAGS="$xorg_testset_save_CFLAGS" 8203 8204 eval supported=\$$cacheid 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8206printf "%s\n" "$supported" >&6; } 8207 if test "$supported" = "yes" ; then 8208 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8209 found="yes" 8210 fi 8211 fi 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227xorg_testset_save_CFLAGS="$CFLAGS" 8228 8229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8233if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8234then : 8235 printf %s "(cached) " >&6 8236else $as_nop 8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238/* end confdefs.h. */ 8239int i; 8240_ACEOF 8241if ac_fn_c_try_compile "$LINENO" 8242then : 8243 xorg_cv_cc_flag_unknown_warning_option=yes 8244else $as_nop 8245 xorg_cv_cc_flag_unknown_warning_option=no 8246fi 8247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8248fi 8249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8252 CFLAGS="$xorg_testset_save_CFLAGS" 8253fi 8254 8255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8258 fi 8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8262if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8263then : 8264 printf %s "(cached) " >&6 8265else $as_nop 8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8267/* end confdefs.h. */ 8268int i; 8269_ACEOF 8270if ac_fn_c_try_compile "$LINENO" 8271then : 8272 xorg_cv_cc_flag_unused_command_line_argument=yes 8273else $as_nop 8274 xorg_cv_cc_flag_unused_command_line_argument=no 8275fi 8276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8277fi 8278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8281 CFLAGS="$xorg_testset_save_CFLAGS" 8282fi 8283 8284found="no" 8285 8286 if test $found = "no" ; then 8287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8289 fi 8290 8291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8293 fi 8294 8295 CFLAGS="$CFLAGS -Werror=trigraphs" 8296 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8298printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8299 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8300 if eval test \${$cacheid+y} 8301then : 8302 printf %s "(cached) " >&6 8303else $as_nop 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306int i; 8307int 8308main (void) 8309{ 8310 8311 ; 8312 return 0; 8313} 8314_ACEOF 8315if ac_fn_c_try_link "$LINENO" 8316then : 8317 eval $cacheid=yes 8318else $as_nop 8319 eval $cacheid=no 8320fi 8321rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8322 conftest$ac_exeext conftest.$ac_ext 8323fi 8324 8325 8326 CFLAGS="$xorg_testset_save_CFLAGS" 8327 8328 eval supported=\$$cacheid 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8330printf "%s\n" "$supported" >&6; } 8331 if test "$supported" = "yes" ; then 8332 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8333 found="yes" 8334 fi 8335 fi 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351xorg_testset_save_CFLAGS="$CFLAGS" 8352 8353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8357if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8358then : 8359 printf %s "(cached) " >&6 8360else $as_nop 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363int i; 8364_ACEOF 8365if ac_fn_c_try_compile "$LINENO" 8366then : 8367 xorg_cv_cc_flag_unknown_warning_option=yes 8368else $as_nop 8369 xorg_cv_cc_flag_unknown_warning_option=no 8370fi 8371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8372fi 8373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8376 CFLAGS="$xorg_testset_save_CFLAGS" 8377fi 8378 8379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8382 fi 8383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8386if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8387then : 8388 printf %s "(cached) " >&6 8389else $as_nop 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391/* end confdefs.h. */ 8392int i; 8393_ACEOF 8394if ac_fn_c_try_compile "$LINENO" 8395then : 8396 xorg_cv_cc_flag_unused_command_line_argument=yes 8397else $as_nop 8398 xorg_cv_cc_flag_unused_command_line_argument=no 8399fi 8400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8401fi 8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8405 CFLAGS="$xorg_testset_save_CFLAGS" 8406fi 8407 8408found="no" 8409 8410 if test $found = "no" ; then 8411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 fi 8414 8415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8417 fi 8418 8419 CFLAGS="$CFLAGS -Werror=array-bounds" 8420 8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8422printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8423 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8424 if eval test \${$cacheid+y} 8425then : 8426 printf %s "(cached) " >&6 8427else $as_nop 8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429/* end confdefs.h. */ 8430int i; 8431int 8432main (void) 8433{ 8434 8435 ; 8436 return 0; 8437} 8438_ACEOF 8439if ac_fn_c_try_link "$LINENO" 8440then : 8441 eval $cacheid=yes 8442else $as_nop 8443 eval $cacheid=no 8444fi 8445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8446 conftest$ac_exeext conftest.$ac_ext 8447fi 8448 8449 8450 CFLAGS="$xorg_testset_save_CFLAGS" 8451 8452 eval supported=\$$cacheid 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8454printf "%s\n" "$supported" >&6; } 8455 if test "$supported" = "yes" ; then 8456 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8457 found="yes" 8458 fi 8459 fi 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475xorg_testset_save_CFLAGS="$CFLAGS" 8476 8477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8481if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8482then : 8483 printf %s "(cached) " >&6 8484else $as_nop 8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8486/* end confdefs.h. */ 8487int i; 8488_ACEOF 8489if ac_fn_c_try_compile "$LINENO" 8490then : 8491 xorg_cv_cc_flag_unknown_warning_option=yes 8492else $as_nop 8493 xorg_cv_cc_flag_unknown_warning_option=no 8494fi 8495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8496fi 8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501fi 8502 8503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8510if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8511then : 8512 printf %s "(cached) " >&6 8513else $as_nop 8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8515/* end confdefs.h. */ 8516int i; 8517_ACEOF 8518if ac_fn_c_try_compile "$LINENO" 8519then : 8520 xorg_cv_cc_flag_unused_command_line_argument=yes 8521else $as_nop 8522 xorg_cv_cc_flag_unused_command_line_argument=no 8523fi 8524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8525fi 8526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530fi 8531 8532found="no" 8533 8534 if test $found = "no" ; then 8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 fi 8538 8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8541 fi 8542 8543 CFLAGS="$CFLAGS -Werror=write-strings" 8544 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8546printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8547 cacheid=xorg_cv_cc_flag__Werror_write_strings 8548 if eval test \${$cacheid+y} 8549then : 8550 printf %s "(cached) " >&6 8551else $as_nop 8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553/* end confdefs.h. */ 8554int i; 8555int 8556main (void) 8557{ 8558 8559 ; 8560 return 0; 8561} 8562_ACEOF 8563if ac_fn_c_try_link "$LINENO" 8564then : 8565 eval $cacheid=yes 8566else $as_nop 8567 eval $cacheid=no 8568fi 8569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8570 conftest$ac_exeext conftest.$ac_ext 8571fi 8572 8573 8574 CFLAGS="$xorg_testset_save_CFLAGS" 8575 8576 eval supported=\$$cacheid 8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8578printf "%s\n" "$supported" >&6; } 8579 if test "$supported" = "yes" ; then 8580 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8581 found="yes" 8582 fi 8583 fi 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599xorg_testset_save_CFLAGS="$CFLAGS" 8600 8601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8605if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8606then : 8607 printf %s "(cached) " >&6 8608else $as_nop 8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610/* end confdefs.h. */ 8611int i; 8612_ACEOF 8613if ac_fn_c_try_compile "$LINENO" 8614then : 8615 xorg_cv_cc_flag_unknown_warning_option=yes 8616else $as_nop 8617 xorg_cv_cc_flag_unknown_warning_option=no 8618fi 8619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8620fi 8621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8624 CFLAGS="$xorg_testset_save_CFLAGS" 8625fi 8626 8627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8630 fi 8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8634if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8635then : 8636 printf %s "(cached) " >&6 8637else $as_nop 8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8639/* end confdefs.h. */ 8640int i; 8641_ACEOF 8642if ac_fn_c_try_compile "$LINENO" 8643then : 8644 xorg_cv_cc_flag_unused_command_line_argument=yes 8645else $as_nop 8646 xorg_cv_cc_flag_unused_command_line_argument=no 8647fi 8648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8649fi 8650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8653 CFLAGS="$xorg_testset_save_CFLAGS" 8654fi 8655 8656found="no" 8657 8658 if test $found = "no" ; then 8659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8661 fi 8662 8663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8665 fi 8666 8667 CFLAGS="$CFLAGS -Werror=address" 8668 8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8670printf %s "checking if $CC supports -Werror=address... " >&6; } 8671 cacheid=xorg_cv_cc_flag__Werror_address 8672 if eval test \${$cacheid+y} 8673then : 8674 printf %s "(cached) " >&6 8675else $as_nop 8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677/* end confdefs.h. */ 8678int i; 8679int 8680main (void) 8681{ 8682 8683 ; 8684 return 0; 8685} 8686_ACEOF 8687if ac_fn_c_try_link "$LINENO" 8688then : 8689 eval $cacheid=yes 8690else $as_nop 8691 eval $cacheid=no 8692fi 8693rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8694 conftest$ac_exeext conftest.$ac_ext 8695fi 8696 8697 8698 CFLAGS="$xorg_testset_save_CFLAGS" 8699 8700 eval supported=\$$cacheid 8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8702printf "%s\n" "$supported" >&6; } 8703 if test "$supported" = "yes" ; then 8704 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8705 found="yes" 8706 fi 8707 fi 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723xorg_testset_save_CFLAGS="$CFLAGS" 8724 8725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8728printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8729if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8730then : 8731 printf %s "(cached) " >&6 8732else $as_nop 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735int i; 8736_ACEOF 8737if ac_fn_c_try_compile "$LINENO" 8738then : 8739 xorg_cv_cc_flag_unknown_warning_option=yes 8740else $as_nop 8741 xorg_cv_cc_flag_unknown_warning_option=no 8742fi 8743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8744fi 8745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8748 CFLAGS="$xorg_testset_save_CFLAGS" 8749fi 8750 8751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8754 fi 8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8758if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8759then : 8760 printf %s "(cached) " >&6 8761else $as_nop 8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8763/* end confdefs.h. */ 8764int i; 8765_ACEOF 8766if ac_fn_c_try_compile "$LINENO" 8767then : 8768 xorg_cv_cc_flag_unused_command_line_argument=yes 8769else $as_nop 8770 xorg_cv_cc_flag_unused_command_line_argument=no 8771fi 8772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8773fi 8774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8777 CFLAGS="$xorg_testset_save_CFLAGS" 8778fi 8779 8780found="no" 8781 8782 if test $found = "no" ; then 8783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8785 fi 8786 8787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8789 fi 8790 8791 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8792 8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8794printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8795 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8796 if eval test \${$cacheid+y} 8797then : 8798 printf %s "(cached) " >&6 8799else $as_nop 8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8801/* end confdefs.h. */ 8802int i; 8803int 8804main (void) 8805{ 8806 8807 ; 8808 return 0; 8809} 8810_ACEOF 8811if ac_fn_c_try_link "$LINENO" 8812then : 8813 eval $cacheid=yes 8814else $as_nop 8815 eval $cacheid=no 8816fi 8817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8818 conftest$ac_exeext conftest.$ac_ext 8819fi 8820 8821 8822 CFLAGS="$xorg_testset_save_CFLAGS" 8823 8824 eval supported=\$$cacheid 8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8826printf "%s\n" "$supported" >&6; } 8827 if test "$supported" = "yes" ; then 8828 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8829 found="yes" 8830 fi 8831 fi 8832 8833 if test $found = "no" ; then 8834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8836 fi 8837 8838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8840 fi 8841 8842 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8843 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8845printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8846 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8847 if eval test \${$cacheid+y} 8848then : 8849 printf %s "(cached) " >&6 8850else $as_nop 8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853int i; 8854int 8855main (void) 8856{ 8857 8858 ; 8859 return 0; 8860} 8861_ACEOF 8862if ac_fn_c_try_link "$LINENO" 8863then : 8864 eval $cacheid=yes 8865else $as_nop 8866 eval $cacheid=no 8867fi 8868rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8869 conftest$ac_exeext conftest.$ac_ext 8870fi 8871 8872 8873 CFLAGS="$xorg_testset_save_CFLAGS" 8874 8875 eval supported=\$$cacheid 8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8877printf "%s\n" "$supported" >&6; } 8878 if test "$supported" = "yes" ; then 8879 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8880 found="yes" 8881 fi 8882 fi 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898xorg_testset_save_CFLAGS="$CFLAGS" 8899 8900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8904if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8905then : 8906 printf %s "(cached) " >&6 8907else $as_nop 8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8909/* end confdefs.h. */ 8910int i; 8911_ACEOF 8912if ac_fn_c_try_compile "$LINENO" 8913then : 8914 xorg_cv_cc_flag_unknown_warning_option=yes 8915else $as_nop 8916 xorg_cv_cc_flag_unknown_warning_option=no 8917fi 8918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8919fi 8920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8923 CFLAGS="$xorg_testset_save_CFLAGS" 8924fi 8925 8926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8929 fi 8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8933if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8934then : 8935 printf %s "(cached) " >&6 8936else $as_nop 8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8938/* end confdefs.h. */ 8939int i; 8940_ACEOF 8941if ac_fn_c_try_compile "$LINENO" 8942then : 8943 xorg_cv_cc_flag_unused_command_line_argument=yes 8944else $as_nop 8945 xorg_cv_cc_flag_unused_command_line_argument=no 8946fi 8947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8948fi 8949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8952 CFLAGS="$xorg_testset_save_CFLAGS" 8953fi 8954 8955found="no" 8956 8957 if test $found = "no" ; then 8958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8960 fi 8961 8962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8964 fi 8965 8966 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8967 8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8969printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8970 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8971 if eval test \${$cacheid+y} 8972then : 8973 printf %s "(cached) " >&6 8974else $as_nop 8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976/* end confdefs.h. */ 8977int i; 8978int 8979main (void) 8980{ 8981 8982 ; 8983 return 0; 8984} 8985_ACEOF 8986if ac_fn_c_try_link "$LINENO" 8987then : 8988 eval $cacheid=yes 8989else $as_nop 8990 eval $cacheid=no 8991fi 8992rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8993 conftest$ac_exeext conftest.$ac_ext 8994fi 8995 8996 8997 CFLAGS="$xorg_testset_save_CFLAGS" 8998 8999 eval supported=\$$cacheid 9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9001printf "%s\n" "$supported" >&6; } 9002 if test "$supported" = "yes" ; then 9003 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9004 found="yes" 9005 fi 9006 fi 9007 9008 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9009else 9010{ 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 9011printf "%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;} 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025xorg_testset_save_CFLAGS="$CFLAGS" 9026 9027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9031if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9032then : 9033 printf %s "(cached) " >&6 9034else $as_nop 9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9036/* end confdefs.h. */ 9037int i; 9038_ACEOF 9039if ac_fn_c_try_compile "$LINENO" 9040then : 9041 xorg_cv_cc_flag_unknown_warning_option=yes 9042else $as_nop 9043 xorg_cv_cc_flag_unknown_warning_option=no 9044fi 9045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9046fi 9047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9048printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9050 CFLAGS="$xorg_testset_save_CFLAGS" 9051fi 9052 9053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9056 fi 9057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9059printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9060if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9061then : 9062 printf %s "(cached) " >&6 9063else $as_nop 9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9065/* end confdefs.h. */ 9066int i; 9067_ACEOF 9068if ac_fn_c_try_compile "$LINENO" 9069then : 9070 xorg_cv_cc_flag_unused_command_line_argument=yes 9071else $as_nop 9072 xorg_cv_cc_flag_unused_command_line_argument=no 9073fi 9074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9075fi 9076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9077printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9079 CFLAGS="$xorg_testset_save_CFLAGS" 9080fi 9081 9082found="no" 9083 9084 if test $found = "no" ; then 9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 fi 9088 9089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9091 fi 9092 9093 CFLAGS="$CFLAGS -Wimplicit" 9094 9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9096printf %s "checking if $CC supports -Wimplicit... " >&6; } 9097 cacheid=xorg_cv_cc_flag__Wimplicit 9098 if eval test \${$cacheid+y} 9099then : 9100 printf %s "(cached) " >&6 9101else $as_nop 9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9103/* end confdefs.h. */ 9104int i; 9105int 9106main (void) 9107{ 9108 9109 ; 9110 return 0; 9111} 9112_ACEOF 9113if ac_fn_c_try_link "$LINENO" 9114then : 9115 eval $cacheid=yes 9116else $as_nop 9117 eval $cacheid=no 9118fi 9119rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9120 conftest$ac_exeext conftest.$ac_ext 9121fi 9122 9123 9124 CFLAGS="$xorg_testset_save_CFLAGS" 9125 9126 eval supported=\$$cacheid 9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9128printf "%s\n" "$supported" >&6; } 9129 if test "$supported" = "yes" ; then 9130 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9131 found="yes" 9132 fi 9133 fi 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149xorg_testset_save_CFLAGS="$CFLAGS" 9150 9151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9155if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9156then : 9157 printf %s "(cached) " >&6 9158else $as_nop 9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9160/* end confdefs.h. */ 9161int i; 9162_ACEOF 9163if ac_fn_c_try_compile "$LINENO" 9164then : 9165 xorg_cv_cc_flag_unknown_warning_option=yes 9166else $as_nop 9167 xorg_cv_cc_flag_unknown_warning_option=no 9168fi 9169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9170fi 9171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9174 CFLAGS="$xorg_testset_save_CFLAGS" 9175fi 9176 9177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 fi 9181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9184if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9185then : 9186 printf %s "(cached) " >&6 9187else $as_nop 9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9189/* end confdefs.h. */ 9190int i; 9191_ACEOF 9192if ac_fn_c_try_compile "$LINENO" 9193then : 9194 xorg_cv_cc_flag_unused_command_line_argument=yes 9195else $as_nop 9196 xorg_cv_cc_flag_unused_command_line_argument=no 9197fi 9198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9199fi 9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9203 CFLAGS="$xorg_testset_save_CFLAGS" 9204fi 9205 9206found="no" 9207 9208 if test $found = "no" ; then 9209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9211 fi 9212 9213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9215 fi 9216 9217 CFLAGS="$CFLAGS -Wnonnull" 9218 9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9220printf %s "checking if $CC supports -Wnonnull... " >&6; } 9221 cacheid=xorg_cv_cc_flag__Wnonnull 9222 if eval test \${$cacheid+y} 9223then : 9224 printf %s "(cached) " >&6 9225else $as_nop 9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9227/* end confdefs.h. */ 9228int i; 9229int 9230main (void) 9231{ 9232 9233 ; 9234 return 0; 9235} 9236_ACEOF 9237if ac_fn_c_try_link "$LINENO" 9238then : 9239 eval $cacheid=yes 9240else $as_nop 9241 eval $cacheid=no 9242fi 9243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9244 conftest$ac_exeext conftest.$ac_ext 9245fi 9246 9247 9248 CFLAGS="$xorg_testset_save_CFLAGS" 9249 9250 eval supported=\$$cacheid 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9252printf "%s\n" "$supported" >&6; } 9253 if test "$supported" = "yes" ; then 9254 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9255 found="yes" 9256 fi 9257 fi 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273xorg_testset_save_CFLAGS="$CFLAGS" 9274 9275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9279if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9280then : 9281 printf %s "(cached) " >&6 9282else $as_nop 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284/* end confdefs.h. */ 9285int i; 9286_ACEOF 9287if ac_fn_c_try_compile "$LINENO" 9288then : 9289 xorg_cv_cc_flag_unknown_warning_option=yes 9290else $as_nop 9291 xorg_cv_cc_flag_unknown_warning_option=no 9292fi 9293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9294fi 9295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9298 CFLAGS="$xorg_testset_save_CFLAGS" 9299fi 9300 9301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9304 fi 9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9308if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9309then : 9310 printf %s "(cached) " >&6 9311else $as_nop 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315_ACEOF 9316if ac_fn_c_try_compile "$LINENO" 9317then : 9318 xorg_cv_cc_flag_unused_command_line_argument=yes 9319else $as_nop 9320 xorg_cv_cc_flag_unused_command_line_argument=no 9321fi 9322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9323fi 9324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9327 CFLAGS="$xorg_testset_save_CFLAGS" 9328fi 9329 9330found="no" 9331 9332 if test $found = "no" ; then 9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 fi 9336 9337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9339 fi 9340 9341 CFLAGS="$CFLAGS -Winit-self" 9342 9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9344printf %s "checking if $CC supports -Winit-self... " >&6; } 9345 cacheid=xorg_cv_cc_flag__Winit_self 9346 if eval test \${$cacheid+y} 9347then : 9348 printf %s "(cached) " >&6 9349else $as_nop 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351/* end confdefs.h. */ 9352int i; 9353int 9354main (void) 9355{ 9356 9357 ; 9358 return 0; 9359} 9360_ACEOF 9361if ac_fn_c_try_link "$LINENO" 9362then : 9363 eval $cacheid=yes 9364else $as_nop 9365 eval $cacheid=no 9366fi 9367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9368 conftest$ac_exeext conftest.$ac_ext 9369fi 9370 9371 9372 CFLAGS="$xorg_testset_save_CFLAGS" 9373 9374 eval supported=\$$cacheid 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9376printf "%s\n" "$supported" >&6; } 9377 if test "$supported" = "yes" ; then 9378 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9379 found="yes" 9380 fi 9381 fi 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397xorg_testset_save_CFLAGS="$CFLAGS" 9398 9399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9403if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9404then : 9405 printf %s "(cached) " >&6 9406else $as_nop 9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9408/* end confdefs.h. */ 9409int i; 9410_ACEOF 9411if ac_fn_c_try_compile "$LINENO" 9412then : 9413 xorg_cv_cc_flag_unknown_warning_option=yes 9414else $as_nop 9415 xorg_cv_cc_flag_unknown_warning_option=no 9416fi 9417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9418fi 9419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9422 CFLAGS="$xorg_testset_save_CFLAGS" 9423fi 9424 9425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 fi 9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9432if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9433then : 9434 printf %s "(cached) " >&6 9435else $as_nop 9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9437/* end confdefs.h. */ 9438int i; 9439_ACEOF 9440if ac_fn_c_try_compile "$LINENO" 9441then : 9442 xorg_cv_cc_flag_unused_command_line_argument=yes 9443else $as_nop 9444 xorg_cv_cc_flag_unused_command_line_argument=no 9445fi 9446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9447fi 9448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9451 CFLAGS="$xorg_testset_save_CFLAGS" 9452fi 9453 9454found="no" 9455 9456 if test $found = "no" ; then 9457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9459 fi 9460 9461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9463 fi 9464 9465 CFLAGS="$CFLAGS -Wmain" 9466 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9468printf %s "checking if $CC supports -Wmain... " >&6; } 9469 cacheid=xorg_cv_cc_flag__Wmain 9470 if eval test \${$cacheid+y} 9471then : 9472 printf %s "(cached) " >&6 9473else $as_nop 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476int i; 9477int 9478main (void) 9479{ 9480 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_link "$LINENO" 9486then : 9487 eval $cacheid=yes 9488else $as_nop 9489 eval $cacheid=no 9490fi 9491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9492 conftest$ac_exeext conftest.$ac_ext 9493fi 9494 9495 9496 CFLAGS="$xorg_testset_save_CFLAGS" 9497 9498 eval supported=\$$cacheid 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9500printf "%s\n" "$supported" >&6; } 9501 if test "$supported" = "yes" ; then 9502 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9503 found="yes" 9504 fi 9505 fi 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521xorg_testset_save_CFLAGS="$CFLAGS" 9522 9523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9527if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9528then : 9529 printf %s "(cached) " >&6 9530else $as_nop 9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9532/* end confdefs.h. */ 9533int i; 9534_ACEOF 9535if ac_fn_c_try_compile "$LINENO" 9536then : 9537 xorg_cv_cc_flag_unknown_warning_option=yes 9538else $as_nop 9539 xorg_cv_cc_flag_unknown_warning_option=no 9540fi 9541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9542fi 9543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547fi 9548 9549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 fi 9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9556if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9557then : 9558 printf %s "(cached) " >&6 9559else $as_nop 9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9561/* end confdefs.h. */ 9562int i; 9563_ACEOF 9564if ac_fn_c_try_compile "$LINENO" 9565then : 9566 xorg_cv_cc_flag_unused_command_line_argument=yes 9567else $as_nop 9568 xorg_cv_cc_flag_unused_command_line_argument=no 9569fi 9570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9571fi 9572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9575 CFLAGS="$xorg_testset_save_CFLAGS" 9576fi 9577 9578found="no" 9579 9580 if test $found = "no" ; then 9581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 fi 9584 9585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9587 fi 9588 9589 CFLAGS="$CFLAGS -Wmissing-braces" 9590 9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9592printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9593 cacheid=xorg_cv_cc_flag__Wmissing_braces 9594 if eval test \${$cacheid+y} 9595then : 9596 printf %s "(cached) " >&6 9597else $as_nop 9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9599/* end confdefs.h. */ 9600int i; 9601int 9602main (void) 9603{ 9604 9605 ; 9606 return 0; 9607} 9608_ACEOF 9609if ac_fn_c_try_link "$LINENO" 9610then : 9611 eval $cacheid=yes 9612else $as_nop 9613 eval $cacheid=no 9614fi 9615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9616 conftest$ac_exeext conftest.$ac_ext 9617fi 9618 9619 9620 CFLAGS="$xorg_testset_save_CFLAGS" 9621 9622 eval supported=\$$cacheid 9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9624printf "%s\n" "$supported" >&6; } 9625 if test "$supported" = "yes" ; then 9626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9627 found="yes" 9628 fi 9629 fi 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645xorg_testset_save_CFLAGS="$CFLAGS" 9646 9647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9651if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9652then : 9653 printf %s "(cached) " >&6 9654else $as_nop 9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9656/* end confdefs.h. */ 9657int i; 9658_ACEOF 9659if ac_fn_c_try_compile "$LINENO" 9660then : 9661 xorg_cv_cc_flag_unknown_warning_option=yes 9662else $as_nop 9663 xorg_cv_cc_flag_unknown_warning_option=no 9664fi 9665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9666fi 9667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671fi 9672 9673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9676 fi 9677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9680if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9681then : 9682 printf %s "(cached) " >&6 9683else $as_nop 9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9685/* end confdefs.h. */ 9686int i; 9687_ACEOF 9688if ac_fn_c_try_compile "$LINENO" 9689then : 9690 xorg_cv_cc_flag_unused_command_line_argument=yes 9691else $as_nop 9692 xorg_cv_cc_flag_unused_command_line_argument=no 9693fi 9694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9695fi 9696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9699 CFLAGS="$xorg_testset_save_CFLAGS" 9700fi 9701 9702found="no" 9703 9704 if test $found = "no" ; then 9705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 fi 9708 9709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9711 fi 9712 9713 CFLAGS="$CFLAGS -Wsequence-point" 9714 9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9716printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9717 cacheid=xorg_cv_cc_flag__Wsequence_point 9718 if eval test \${$cacheid+y} 9719then : 9720 printf %s "(cached) " >&6 9721else $as_nop 9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723/* end confdefs.h. */ 9724int i; 9725int 9726main (void) 9727{ 9728 9729 ; 9730 return 0; 9731} 9732_ACEOF 9733if ac_fn_c_try_link "$LINENO" 9734then : 9735 eval $cacheid=yes 9736else $as_nop 9737 eval $cacheid=no 9738fi 9739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9740 conftest$ac_exeext conftest.$ac_ext 9741fi 9742 9743 9744 CFLAGS="$xorg_testset_save_CFLAGS" 9745 9746 eval supported=\$$cacheid 9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9748printf "%s\n" "$supported" >&6; } 9749 if test "$supported" = "yes" ; then 9750 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9751 found="yes" 9752 fi 9753 fi 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769xorg_testset_save_CFLAGS="$CFLAGS" 9770 9771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9775if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9776then : 9777 printf %s "(cached) " >&6 9778else $as_nop 9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9780/* end confdefs.h. */ 9781int i; 9782_ACEOF 9783if ac_fn_c_try_compile "$LINENO" 9784then : 9785 xorg_cv_cc_flag_unknown_warning_option=yes 9786else $as_nop 9787 xorg_cv_cc_flag_unknown_warning_option=no 9788fi 9789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9790fi 9791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9794 CFLAGS="$xorg_testset_save_CFLAGS" 9795fi 9796 9797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9800 fi 9801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9804if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9805then : 9806 printf %s "(cached) " >&6 9807else $as_nop 9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9809/* end confdefs.h. */ 9810int i; 9811_ACEOF 9812if ac_fn_c_try_compile "$LINENO" 9813then : 9814 xorg_cv_cc_flag_unused_command_line_argument=yes 9815else $as_nop 9816 xorg_cv_cc_flag_unused_command_line_argument=no 9817fi 9818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9819fi 9820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9823 CFLAGS="$xorg_testset_save_CFLAGS" 9824fi 9825 9826found="no" 9827 9828 if test $found = "no" ; then 9829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 fi 9832 9833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9835 fi 9836 9837 CFLAGS="$CFLAGS -Wreturn-type" 9838 9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9840printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9841 cacheid=xorg_cv_cc_flag__Wreturn_type 9842 if eval test \${$cacheid+y} 9843then : 9844 printf %s "(cached) " >&6 9845else $as_nop 9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9847/* end confdefs.h. */ 9848int i; 9849int 9850main (void) 9851{ 9852 9853 ; 9854 return 0; 9855} 9856_ACEOF 9857if ac_fn_c_try_link "$LINENO" 9858then : 9859 eval $cacheid=yes 9860else $as_nop 9861 eval $cacheid=no 9862fi 9863rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9864 conftest$ac_exeext conftest.$ac_ext 9865fi 9866 9867 9868 CFLAGS="$xorg_testset_save_CFLAGS" 9869 9870 eval supported=\$$cacheid 9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9872printf "%s\n" "$supported" >&6; } 9873 if test "$supported" = "yes" ; then 9874 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9875 found="yes" 9876 fi 9877 fi 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893xorg_testset_save_CFLAGS="$CFLAGS" 9894 9895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9899if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9900then : 9901 printf %s "(cached) " >&6 9902else $as_nop 9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9904/* end confdefs.h. */ 9905int i; 9906_ACEOF 9907if ac_fn_c_try_compile "$LINENO" 9908then : 9909 xorg_cv_cc_flag_unknown_warning_option=yes 9910else $as_nop 9911 xorg_cv_cc_flag_unknown_warning_option=no 9912fi 9913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9914fi 9915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9918 CFLAGS="$xorg_testset_save_CFLAGS" 9919fi 9920 9921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9924 fi 9925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9928if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9929then : 9930 printf %s "(cached) " >&6 9931else $as_nop 9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9933/* end confdefs.h. */ 9934int i; 9935_ACEOF 9936if ac_fn_c_try_compile "$LINENO" 9937then : 9938 xorg_cv_cc_flag_unused_command_line_argument=yes 9939else $as_nop 9940 xorg_cv_cc_flag_unused_command_line_argument=no 9941fi 9942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9943fi 9944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9947 CFLAGS="$xorg_testset_save_CFLAGS" 9948fi 9949 9950found="no" 9951 9952 if test $found = "no" ; then 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 fi 9956 9957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9959 fi 9960 9961 CFLAGS="$CFLAGS -Wtrigraphs" 9962 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9964printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9965 cacheid=xorg_cv_cc_flag__Wtrigraphs 9966 if eval test \${$cacheid+y} 9967then : 9968 printf %s "(cached) " >&6 9969else $as_nop 9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9971/* end confdefs.h. */ 9972int i; 9973int 9974main (void) 9975{ 9976 9977 ; 9978 return 0; 9979} 9980_ACEOF 9981if ac_fn_c_try_link "$LINENO" 9982then : 9983 eval $cacheid=yes 9984else $as_nop 9985 eval $cacheid=no 9986fi 9987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9988 conftest$ac_exeext conftest.$ac_ext 9989fi 9990 9991 9992 CFLAGS="$xorg_testset_save_CFLAGS" 9993 9994 eval supported=\$$cacheid 9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9996printf "%s\n" "$supported" >&6; } 9997 if test "$supported" = "yes" ; then 9998 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9999 found="yes" 10000 fi 10001 fi 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017xorg_testset_save_CFLAGS="$CFLAGS" 10018 10019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10023if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10024then : 10025 printf %s "(cached) " >&6 10026else $as_nop 10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10028/* end confdefs.h. */ 10029int i; 10030_ACEOF 10031if ac_fn_c_try_compile "$LINENO" 10032then : 10033 xorg_cv_cc_flag_unknown_warning_option=yes 10034else $as_nop 10035 xorg_cv_cc_flag_unknown_warning_option=no 10036fi 10037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10038fi 10039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043fi 10044 10045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10048 fi 10049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10053then : 10054 printf %s "(cached) " >&6 10055else $as_nop 10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057/* end confdefs.h. */ 10058int i; 10059_ACEOF 10060if ac_fn_c_try_compile "$LINENO" 10061then : 10062 xorg_cv_cc_flag_unused_command_line_argument=yes 10063else $as_nop 10064 xorg_cv_cc_flag_unused_command_line_argument=no 10065fi 10066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10067fi 10068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10071 CFLAGS="$xorg_testset_save_CFLAGS" 10072fi 10073 10074found="no" 10075 10076 if test $found = "no" ; then 10077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10079 fi 10080 10081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10083 fi 10084 10085 CFLAGS="$CFLAGS -Warray-bounds" 10086 10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10088printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10089 cacheid=xorg_cv_cc_flag__Warray_bounds 10090 if eval test \${$cacheid+y} 10091then : 10092 printf %s "(cached) " >&6 10093else $as_nop 10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10095/* end confdefs.h. */ 10096int i; 10097int 10098main (void) 10099{ 10100 10101 ; 10102 return 0; 10103} 10104_ACEOF 10105if ac_fn_c_try_link "$LINENO" 10106then : 10107 eval $cacheid=yes 10108else $as_nop 10109 eval $cacheid=no 10110fi 10111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10112 conftest$ac_exeext conftest.$ac_ext 10113fi 10114 10115 10116 CFLAGS="$xorg_testset_save_CFLAGS" 10117 10118 eval supported=\$$cacheid 10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10120printf "%s\n" "$supported" >&6; } 10121 if test "$supported" = "yes" ; then 10122 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10123 found="yes" 10124 fi 10125 fi 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141xorg_testset_save_CFLAGS="$CFLAGS" 10142 10143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10147if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10148then : 10149 printf %s "(cached) " >&6 10150else $as_nop 10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10152/* end confdefs.h. */ 10153int i; 10154_ACEOF 10155if ac_fn_c_try_compile "$LINENO" 10156then : 10157 xorg_cv_cc_flag_unknown_warning_option=yes 10158else $as_nop 10159 xorg_cv_cc_flag_unknown_warning_option=no 10160fi 10161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10162fi 10163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10166 CFLAGS="$xorg_testset_save_CFLAGS" 10167fi 10168 10169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10172 fi 10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10176if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10177then : 10178 printf %s "(cached) " >&6 10179else $as_nop 10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10181/* end confdefs.h. */ 10182int i; 10183_ACEOF 10184if ac_fn_c_try_compile "$LINENO" 10185then : 10186 xorg_cv_cc_flag_unused_command_line_argument=yes 10187else $as_nop 10188 xorg_cv_cc_flag_unused_command_line_argument=no 10189fi 10190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10191fi 10192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10195 CFLAGS="$xorg_testset_save_CFLAGS" 10196fi 10197 10198found="no" 10199 10200 if test $found = "no" ; then 10201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10203 fi 10204 10205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10207 fi 10208 10209 CFLAGS="$CFLAGS -Wwrite-strings" 10210 10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10212printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10213 cacheid=xorg_cv_cc_flag__Wwrite_strings 10214 if eval test \${$cacheid+y} 10215then : 10216 printf %s "(cached) " >&6 10217else $as_nop 10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10219/* end confdefs.h. */ 10220int i; 10221int 10222main (void) 10223{ 10224 10225 ; 10226 return 0; 10227} 10228_ACEOF 10229if ac_fn_c_try_link "$LINENO" 10230then : 10231 eval $cacheid=yes 10232else $as_nop 10233 eval $cacheid=no 10234fi 10235rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10236 conftest$ac_exeext conftest.$ac_ext 10237fi 10238 10239 10240 CFLAGS="$xorg_testset_save_CFLAGS" 10241 10242 eval supported=\$$cacheid 10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10244printf "%s\n" "$supported" >&6; } 10245 if test "$supported" = "yes" ; then 10246 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10247 found="yes" 10248 fi 10249 fi 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265xorg_testset_save_CFLAGS="$CFLAGS" 10266 10267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10271if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10272then : 10273 printf %s "(cached) " >&6 10274else $as_nop 10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276/* end confdefs.h. */ 10277int i; 10278_ACEOF 10279if ac_fn_c_try_compile "$LINENO" 10280then : 10281 xorg_cv_cc_flag_unknown_warning_option=yes 10282else $as_nop 10283 xorg_cv_cc_flag_unknown_warning_option=no 10284fi 10285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10286fi 10287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10290 CFLAGS="$xorg_testset_save_CFLAGS" 10291fi 10292 10293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10296 fi 10297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10300if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10301then : 10302 printf %s "(cached) " >&6 10303else $as_nop 10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10305/* end confdefs.h. */ 10306int i; 10307_ACEOF 10308if ac_fn_c_try_compile "$LINENO" 10309then : 10310 xorg_cv_cc_flag_unused_command_line_argument=yes 10311else $as_nop 10312 xorg_cv_cc_flag_unused_command_line_argument=no 10313fi 10314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10315fi 10316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10319 CFLAGS="$xorg_testset_save_CFLAGS" 10320fi 10321 10322found="no" 10323 10324 if test $found = "no" ; then 10325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10327 fi 10328 10329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10331 fi 10332 10333 CFLAGS="$CFLAGS -Waddress" 10334 10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10336printf %s "checking if $CC supports -Waddress... " >&6; } 10337 cacheid=xorg_cv_cc_flag__Waddress 10338 if eval test \${$cacheid+y} 10339then : 10340 printf %s "(cached) " >&6 10341else $as_nop 10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10343/* end confdefs.h. */ 10344int i; 10345int 10346main (void) 10347{ 10348 10349 ; 10350 return 0; 10351} 10352_ACEOF 10353if ac_fn_c_try_link "$LINENO" 10354then : 10355 eval $cacheid=yes 10356else $as_nop 10357 eval $cacheid=no 10358fi 10359rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10360 conftest$ac_exeext conftest.$ac_ext 10361fi 10362 10363 10364 CFLAGS="$xorg_testset_save_CFLAGS" 10365 10366 eval supported=\$$cacheid 10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10368printf "%s\n" "$supported" >&6; } 10369 if test "$supported" = "yes" ; then 10370 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10371 found="yes" 10372 fi 10373 fi 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389xorg_testset_save_CFLAGS="$CFLAGS" 10390 10391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10395if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10396then : 10397 printf %s "(cached) " >&6 10398else $as_nop 10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10400/* end confdefs.h. */ 10401int i; 10402_ACEOF 10403if ac_fn_c_try_compile "$LINENO" 10404then : 10405 xorg_cv_cc_flag_unknown_warning_option=yes 10406else $as_nop 10407 xorg_cv_cc_flag_unknown_warning_option=no 10408fi 10409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10410fi 10411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10414 CFLAGS="$xorg_testset_save_CFLAGS" 10415fi 10416 10417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10420 fi 10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10424if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10425then : 10426 printf %s "(cached) " >&6 10427else $as_nop 10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10429/* end confdefs.h. */ 10430int i; 10431_ACEOF 10432if ac_fn_c_try_compile "$LINENO" 10433then : 10434 xorg_cv_cc_flag_unused_command_line_argument=yes 10435else $as_nop 10436 xorg_cv_cc_flag_unused_command_line_argument=no 10437fi 10438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10439fi 10440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10443 CFLAGS="$xorg_testset_save_CFLAGS" 10444fi 10445 10446found="no" 10447 10448 if test $found = "no" ; then 10449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10451 fi 10452 10453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10455 fi 10456 10457 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10458 10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10460printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10461 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10462 if eval test \${$cacheid+y} 10463then : 10464 printf %s "(cached) " >&6 10465else $as_nop 10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10467/* end confdefs.h. */ 10468int i; 10469int 10470main (void) 10471{ 10472 10473 ; 10474 return 0; 10475} 10476_ACEOF 10477if ac_fn_c_try_link "$LINENO" 10478then : 10479 eval $cacheid=yes 10480else $as_nop 10481 eval $cacheid=no 10482fi 10483rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10484 conftest$ac_exeext conftest.$ac_ext 10485fi 10486 10487 10488 CFLAGS="$xorg_testset_save_CFLAGS" 10489 10490 eval supported=\$$cacheid 10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10492printf "%s\n" "$supported" >&6; } 10493 if test "$supported" = "yes" ; then 10494 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10495 found="yes" 10496 fi 10497 fi 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513xorg_testset_save_CFLAGS="$CFLAGS" 10514 10515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10519if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10520then : 10521 printf %s "(cached) " >&6 10522else $as_nop 10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10524/* end confdefs.h. */ 10525int i; 10526_ACEOF 10527if ac_fn_c_try_compile "$LINENO" 10528then : 10529 xorg_cv_cc_flag_unknown_warning_option=yes 10530else $as_nop 10531 xorg_cv_cc_flag_unknown_warning_option=no 10532fi 10533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10534fi 10535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10538 CFLAGS="$xorg_testset_save_CFLAGS" 10539fi 10540 10541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10544 fi 10545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10548if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10549then : 10550 printf %s "(cached) " >&6 10551else $as_nop 10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10553/* end confdefs.h. */ 10554int i; 10555_ACEOF 10556if ac_fn_c_try_compile "$LINENO" 10557then : 10558 xorg_cv_cc_flag_unused_command_line_argument=yes 10559else $as_nop 10560 xorg_cv_cc_flag_unused_command_line_argument=no 10561fi 10562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10563fi 10564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10567 CFLAGS="$xorg_testset_save_CFLAGS" 10568fi 10569 10570found="no" 10571 10572 if test $found = "no" ; then 10573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10575 fi 10576 10577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10579 fi 10580 10581 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10582 10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10584printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10585 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10586 if eval test \${$cacheid+y} 10587then : 10588 printf %s "(cached) " >&6 10589else $as_nop 10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10591/* end confdefs.h. */ 10592int i; 10593int 10594main (void) 10595{ 10596 10597 ; 10598 return 0; 10599} 10600_ACEOF 10601if ac_fn_c_try_link "$LINENO" 10602then : 10603 eval $cacheid=yes 10604else $as_nop 10605 eval $cacheid=no 10606fi 10607rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10608 conftest$ac_exeext conftest.$ac_ext 10609fi 10610 10611 10612 CFLAGS="$xorg_testset_save_CFLAGS" 10613 10614 eval supported=\$$cacheid 10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10616printf "%s\n" "$supported" >&6; } 10617 if test "$supported" = "yes" ; then 10618 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10619 found="yes" 10620 fi 10621 fi 10622 10623 10624fi 10625 10626 10627 10628 10629 10630 10631 10632 CWARNFLAGS="$BASE_CFLAGS" 10633 if test "x$GCC" = xyes ; then 10634 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10635 fi 10636 10637 10638 10639 10640 10641 10642 10643 10644# Check whether --enable-strict-compilation was given. 10645if test ${enable_strict_compilation+y} 10646then : 10647 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10648else $as_nop 10649 STRICT_COMPILE=no 10650fi 10651 10652 10653 10654 10655 10656 10657STRICT_CFLAGS="" 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671xorg_testset_save_CFLAGS="$CFLAGS" 10672 10673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10677if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10678then : 10679 printf %s "(cached) " >&6 10680else $as_nop 10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10682/* end confdefs.h. */ 10683int i; 10684_ACEOF 10685if ac_fn_c_try_compile "$LINENO" 10686then : 10687 xorg_cv_cc_flag_unknown_warning_option=yes 10688else $as_nop 10689 xorg_cv_cc_flag_unknown_warning_option=no 10690fi 10691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10692fi 10693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10696 CFLAGS="$xorg_testset_save_CFLAGS" 10697fi 10698 10699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10702 fi 10703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10707then : 10708 printf %s "(cached) " >&6 10709else $as_nop 10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10711/* end confdefs.h. */ 10712int i; 10713_ACEOF 10714if ac_fn_c_try_compile "$LINENO" 10715then : 10716 xorg_cv_cc_flag_unused_command_line_argument=yes 10717else $as_nop 10718 xorg_cv_cc_flag_unused_command_line_argument=no 10719fi 10720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10721fi 10722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10725 CFLAGS="$xorg_testset_save_CFLAGS" 10726fi 10727 10728found="no" 10729 10730 if test $found = "no" ; then 10731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10733 fi 10734 10735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10737 fi 10738 10739 CFLAGS="$CFLAGS -pedantic" 10740 10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10742printf %s "checking if $CC supports -pedantic... " >&6; } 10743 cacheid=xorg_cv_cc_flag__pedantic 10744 if eval test \${$cacheid+y} 10745then : 10746 printf %s "(cached) " >&6 10747else $as_nop 10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10749/* end confdefs.h. */ 10750int i; 10751int 10752main (void) 10753{ 10754 10755 ; 10756 return 0; 10757} 10758_ACEOF 10759if ac_fn_c_try_link "$LINENO" 10760then : 10761 eval $cacheid=yes 10762else $as_nop 10763 eval $cacheid=no 10764fi 10765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10766 conftest$ac_exeext conftest.$ac_ext 10767fi 10768 10769 10770 CFLAGS="$xorg_testset_save_CFLAGS" 10771 10772 eval supported=\$$cacheid 10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10774printf "%s\n" "$supported" >&6; } 10775 if test "$supported" = "yes" ; then 10776 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10777 found="yes" 10778 fi 10779 fi 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795xorg_testset_save_CFLAGS="$CFLAGS" 10796 10797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10802then : 10803 printf %s "(cached) " >&6 10804else $as_nop 10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10806/* end confdefs.h. */ 10807int i; 10808_ACEOF 10809if ac_fn_c_try_compile "$LINENO" 10810then : 10811 xorg_cv_cc_flag_unknown_warning_option=yes 10812else $as_nop 10813 xorg_cv_cc_flag_unknown_warning_option=no 10814fi 10815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10816fi 10817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10820 CFLAGS="$xorg_testset_save_CFLAGS" 10821fi 10822 10823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10826 fi 10827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10830if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10831then : 10832 printf %s "(cached) " >&6 10833else $as_nop 10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10835/* end confdefs.h. */ 10836int i; 10837_ACEOF 10838if ac_fn_c_try_compile "$LINENO" 10839then : 10840 xorg_cv_cc_flag_unused_command_line_argument=yes 10841else $as_nop 10842 xorg_cv_cc_flag_unused_command_line_argument=no 10843fi 10844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10845fi 10846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10849 CFLAGS="$xorg_testset_save_CFLAGS" 10850fi 10851 10852found="no" 10853 10854 if test $found = "no" ; then 10855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10857 fi 10858 10859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10861 fi 10862 10863 CFLAGS="$CFLAGS -Werror" 10864 10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10866printf %s "checking if $CC supports -Werror... " >&6; } 10867 cacheid=xorg_cv_cc_flag__Werror 10868 if eval test \${$cacheid+y} 10869then : 10870 printf %s "(cached) " >&6 10871else $as_nop 10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10873/* end confdefs.h. */ 10874int i; 10875int 10876main (void) 10877{ 10878 10879 ; 10880 return 0; 10881} 10882_ACEOF 10883if ac_fn_c_try_link "$LINENO" 10884then : 10885 eval $cacheid=yes 10886else $as_nop 10887 eval $cacheid=no 10888fi 10889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10890 conftest$ac_exeext conftest.$ac_ext 10891fi 10892 10893 10894 CFLAGS="$xorg_testset_save_CFLAGS" 10895 10896 eval supported=\$$cacheid 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10898printf "%s\n" "$supported" >&6; } 10899 if test "$supported" = "yes" ; then 10900 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10901 found="yes" 10902 fi 10903 fi 10904 10905 if test $found = "no" ; then 10906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10908 fi 10909 10910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10912 fi 10913 10914 CFLAGS="$CFLAGS -errwarn" 10915 10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10917printf %s "checking if $CC supports -errwarn... " >&6; } 10918 cacheid=xorg_cv_cc_flag__errwarn 10919 if eval test \${$cacheid+y} 10920then : 10921 printf %s "(cached) " >&6 10922else $as_nop 10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10924/* end confdefs.h. */ 10925int i; 10926int 10927main (void) 10928{ 10929 10930 ; 10931 return 0; 10932} 10933_ACEOF 10934if ac_fn_c_try_link "$LINENO" 10935then : 10936 eval $cacheid=yes 10937else $as_nop 10938 eval $cacheid=no 10939fi 10940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10941 conftest$ac_exeext conftest.$ac_ext 10942fi 10943 10944 10945 CFLAGS="$xorg_testset_save_CFLAGS" 10946 10947 eval supported=\$$cacheid 10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10949printf "%s\n" "$supported" >&6; } 10950 if test "$supported" = "yes" ; then 10951 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10952 found="yes" 10953 fi 10954 fi 10955 10956 10957 10958# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10959# activate it with -Werror, so we add it here explicitly. 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973xorg_testset_save_CFLAGS="$CFLAGS" 10974 10975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10979if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10980then : 10981 printf %s "(cached) " >&6 10982else $as_nop 10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10984/* end confdefs.h. */ 10985int i; 10986_ACEOF 10987if ac_fn_c_try_compile "$LINENO" 10988then : 10989 xorg_cv_cc_flag_unknown_warning_option=yes 10990else $as_nop 10991 xorg_cv_cc_flag_unknown_warning_option=no 10992fi 10993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10994fi 10995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10998 CFLAGS="$xorg_testset_save_CFLAGS" 10999fi 11000 11001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11004 fi 11005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11008if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11009then : 11010 printf %s "(cached) " >&6 11011else $as_nop 11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11013/* end confdefs.h. */ 11014int i; 11015_ACEOF 11016if ac_fn_c_try_compile "$LINENO" 11017then : 11018 xorg_cv_cc_flag_unused_command_line_argument=yes 11019else $as_nop 11020 xorg_cv_cc_flag_unused_command_line_argument=no 11021fi 11022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11023fi 11024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11027 CFLAGS="$xorg_testset_save_CFLAGS" 11028fi 11029 11030found="no" 11031 11032 if test $found = "no" ; then 11033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11035 fi 11036 11037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11039 fi 11040 11041 CFLAGS="$CFLAGS -Werror=attributes" 11042 11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11044printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11045 cacheid=xorg_cv_cc_flag__Werror_attributes 11046 if eval test \${$cacheid+y} 11047then : 11048 printf %s "(cached) " >&6 11049else $as_nop 11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11051/* end confdefs.h. */ 11052int i; 11053int 11054main (void) 11055{ 11056 11057 ; 11058 return 0; 11059} 11060_ACEOF 11061if ac_fn_c_try_link "$LINENO" 11062then : 11063 eval $cacheid=yes 11064else $as_nop 11065 eval $cacheid=no 11066fi 11067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11068 conftest$ac_exeext conftest.$ac_ext 11069fi 11070 11071 11072 CFLAGS="$xorg_testset_save_CFLAGS" 11073 11074 eval supported=\$$cacheid 11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11076printf "%s\n" "$supported" >&6; } 11077 if test "$supported" = "yes" ; then 11078 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11079 found="yes" 11080 fi 11081 fi 11082 11083 11084 11085if test "x$STRICT_COMPILE" = "xyes"; then 11086 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11087 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11088fi 11089 11090 11091 11092 11093 11094 11095cat >>confdefs.h <<_ACEOF 11096#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11097_ACEOF 11098 11099 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11100 if test "x$PVM" = "x"; then 11101 PVM="0" 11102 fi 11103 11104printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11105 11106 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11107 if test "x$PVP" = "x"; then 11108 PVP="0" 11109 fi 11110 11111printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11112 11113 11114 11115CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11116mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11117|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11118touch \$(top_srcdir)/ChangeLog; \ 11119echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11120 11121 11122 11123 11124macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11125INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11126mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11127|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11128touch \$(top_srcdir)/INSTALL; \ 11129echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11130 11131 11132 11133 11134 11135 11136case $host_os in 11137 solaris*) 11138 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11139 # check for a man page file found in later versions that use 11140 # traditional section numbers instead 11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11142printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11143if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11144then : 11145 printf %s "(cached) " >&6 11146else $as_nop 11147 test "$cross_compiling" = yes && 11148 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11149if test -r "/usr/share/man/man7/attributes.7"; then 11150 ac_cv_file__usr_share_man_man7_attributes_7=yes 11151else 11152 ac_cv_file__usr_share_man_man7_attributes_7=no 11153fi 11154fi 11155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11156printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11157if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11158then : 11159 SYSV_MAN_SECTIONS=false 11160else $as_nop 11161 SYSV_MAN_SECTIONS=true 11162fi 11163 11164 ;; 11165 *) SYSV_MAN_SECTIONS=false ;; 11166esac 11167 11168if test x$APP_MAN_SUFFIX = x ; then 11169 APP_MAN_SUFFIX=1 11170fi 11171if test x$APP_MAN_DIR = x ; then 11172 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11173fi 11174 11175if test x$LIB_MAN_SUFFIX = x ; then 11176 LIB_MAN_SUFFIX=3 11177fi 11178if test x$LIB_MAN_DIR = x ; then 11179 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11180fi 11181 11182if test x$FILE_MAN_SUFFIX = x ; then 11183 case $SYSV_MAN_SECTIONS in 11184 true) FILE_MAN_SUFFIX=4 ;; 11185 *) FILE_MAN_SUFFIX=5 ;; 11186 esac 11187fi 11188if test x$FILE_MAN_DIR = x ; then 11189 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11190fi 11191 11192if test x$MISC_MAN_SUFFIX = x ; then 11193 case $SYSV_MAN_SECTIONS in 11194 true) MISC_MAN_SUFFIX=5 ;; 11195 *) MISC_MAN_SUFFIX=7 ;; 11196 esac 11197fi 11198if test x$MISC_MAN_DIR = x ; then 11199 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11200fi 11201 11202if test x$DRIVER_MAN_SUFFIX = x ; then 11203 case $SYSV_MAN_SECTIONS in 11204 true) DRIVER_MAN_SUFFIX=7 ;; 11205 *) DRIVER_MAN_SUFFIX=4 ;; 11206 esac 11207fi 11208if test x$DRIVER_MAN_DIR = x ; then 11209 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11210fi 11211 11212if test x$ADMIN_MAN_SUFFIX = x ; then 11213 case $SYSV_MAN_SECTIONS in 11214 true) ADMIN_MAN_SUFFIX=1m ;; 11215 *) ADMIN_MAN_SUFFIX=8 ;; 11216 esac 11217fi 11218if test x$ADMIN_MAN_DIR = x ; then 11219 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11220fi 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236XORG_MAN_PAGE="X Version 11" 11237 11238MAN_SUBSTS="\ 11239 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11240 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11241 -e 's|__xservername__|Xorg|g' \ 11242 -e 's|__xconfigfile__|xorg.conf|g' \ 11243 -e 's|__projectroot__|\$(prefix)|g' \ 11244 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11245 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11246 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11247 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11248 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11249 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11250 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11251 11252 11253 11254# Check whether --enable-silent-rules was given. 11255if test ${enable_silent_rules+y} 11256then : 11257 enableval=$enable_silent_rules; 11258fi 11259 11260case $enable_silent_rules in # ((( 11261 yes) AM_DEFAULT_VERBOSITY=0;; 11262 no) AM_DEFAULT_VERBOSITY=1;; 11263 *) AM_DEFAULT_VERBOSITY=0;; 11264esac 11265am_make=${MAKE-make} 11266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11267printf %s "checking whether $am_make supports nested variables... " >&6; } 11268if test ${am_cv_make_support_nested_variables+y} 11269then : 11270 printf %s "(cached) " >&6 11271else $as_nop 11272 if printf "%s\n" 'TRUE=$(BAR$(V)) 11273BAR0=false 11274BAR1=true 11275V=1 11276am__doit: 11277 @$(TRUE) 11278.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11279 am_cv_make_support_nested_variables=yes 11280else 11281 am_cv_make_support_nested_variables=no 11282fi 11283fi 11284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11285printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11286if test $am_cv_make_support_nested_variables = yes; then 11287 AM_V='$(V)' 11288 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11289else 11290 AM_V=$AM_DEFAULT_VERBOSITY 11291 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11292fi 11293AM_BACKSLASH='\' 11294 11295 11296 11297# Initialize libtool 11298# Check whether --enable-static was given. 11299if test ${enable_static+y} 11300then : 11301 enableval=$enable_static; p=${PACKAGE-default} 11302 case $enableval in 11303 yes) enable_static=yes ;; 11304 no) enable_static=no ;; 11305 *) 11306 enable_static=no 11307 # Look at the argument we got. We use all the common list separators. 11308 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11309 for pkg in $enableval; do 11310 IFS=$lt_save_ifs 11311 if test "X$pkg" = "X$p"; then 11312 enable_static=yes 11313 fi 11314 done 11315 IFS=$lt_save_ifs 11316 ;; 11317 esac 11318else $as_nop 11319 enable_static=no 11320fi 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330case `pwd` in 11331 *\ * | *\ *) 11332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11333printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11334esac 11335 11336 11337 11338macro_version='2.4.7' 11339macro_revision='2.4.7' 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354ltmain=$ac_aux_dir/ltmain.sh 11355 11356# Backslashify metacharacters that are still active within 11357# double-quoted strings. 11358sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11359 11360# Same as above, but do not quote variable references. 11361double_quote_subst='s/\(["`\\]\)/\\\1/g' 11362 11363# Sed substitution to delay expansion of an escaped shell variable in a 11364# double_quote_subst'ed string. 11365delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11366 11367# Sed substitution to delay expansion of an escaped single quote. 11368delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11369 11370# Sed substitution to avoid accidental globbing in evaled expressions 11371no_glob_subst='s/\*/\\\*/g' 11372 11373ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11374ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11375ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11376 11377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11378printf %s "checking how to print strings... " >&6; } 11379# Test print first, because it will be a builtin if present. 11380if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11381 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11382 ECHO='print -r --' 11383elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11384 ECHO='printf %s\n' 11385else 11386 # Use this function as a fallback that always works. 11387 func_fallback_echo () 11388 { 11389 eval 'cat <<_LTECHO_EOF 11390$1 11391_LTECHO_EOF' 11392 } 11393 ECHO='func_fallback_echo' 11394fi 11395 11396# func_echo_all arg... 11397# Invoke $ECHO with all args, space-separated. 11398func_echo_all () 11399{ 11400 $ECHO "" 11401} 11402 11403case $ECHO in 11404 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11405printf "%s\n" "printf" >&6; } ;; 11406 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11407printf "%s\n" "print -r" >&6; } ;; 11408 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11409printf "%s\n" "cat" >&6; } ;; 11410esac 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11426printf %s "checking for a sed that does not truncate output... " >&6; } 11427if test ${ac_cv_path_SED+y} 11428then : 11429 printf %s "(cached) " >&6 11430else $as_nop 11431 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11432 for ac_i in 1 2 3 4 5 6 7; do 11433 ac_script="$ac_script$as_nl$ac_script" 11434 done 11435 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11436 { ac_script=; unset ac_script;} 11437 if test -z "$SED"; then 11438 ac_path_SED_found=false 11439 # Loop through the user's path and test for each of PROGNAME-LIST 11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11441for as_dir in $PATH 11442do 11443 IFS=$as_save_IFS 11444 case $as_dir in #((( 11445 '') as_dir=./ ;; 11446 */) ;; 11447 *) as_dir=$as_dir/ ;; 11448 esac 11449 for ac_prog in sed gsed 11450 do 11451 for ac_exec_ext in '' $ac_executable_extensions; do 11452 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11453 as_fn_executable_p "$ac_path_SED" || continue 11454# Check for GNU ac_path_SED and select it if it is found. 11455 # Check for GNU $ac_path_SED 11456case `"$ac_path_SED" --version 2>&1` in 11457*GNU*) 11458 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11459*) 11460 ac_count=0 11461 printf %s 0123456789 >"conftest.in" 11462 while : 11463 do 11464 cat "conftest.in" "conftest.in" >"conftest.tmp" 11465 mv "conftest.tmp" "conftest.in" 11466 cp "conftest.in" "conftest.nl" 11467 printf "%s\n" '' >> "conftest.nl" 11468 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11470 as_fn_arith $ac_count + 1 && ac_count=$as_val 11471 if test $ac_count -gt ${ac_path_SED_max-0}; then 11472 # Best one so far, save it but keep looking for a better one 11473 ac_cv_path_SED="$ac_path_SED" 11474 ac_path_SED_max=$ac_count 11475 fi 11476 # 10*(2^10) chars as input seems more than enough 11477 test $ac_count -gt 10 && break 11478 done 11479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11480esac 11481 11482 $ac_path_SED_found && break 3 11483 done 11484 done 11485 done 11486IFS=$as_save_IFS 11487 if test -z "$ac_cv_path_SED"; then 11488 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11489 fi 11490else 11491 ac_cv_path_SED=$SED 11492fi 11493 11494fi 11495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11496printf "%s\n" "$ac_cv_path_SED" >&6; } 11497 SED="$ac_cv_path_SED" 11498 rm -f conftest.sed 11499 11500test -z "$SED" && SED=sed 11501Xsed="$SED -e 1s/^X//" 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11514printf %s "checking for grep that handles long lines and -e... " >&6; } 11515if test ${ac_cv_path_GREP+y} 11516then : 11517 printf %s "(cached) " >&6 11518else $as_nop 11519 if test -z "$GREP"; then 11520 ac_path_GREP_found=false 11521 # Loop through the user's path and test for each of PROGNAME-LIST 11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11523for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11524do 11525 IFS=$as_save_IFS 11526 case $as_dir in #((( 11527 '') as_dir=./ ;; 11528 */) ;; 11529 *) as_dir=$as_dir/ ;; 11530 esac 11531 for ac_prog in grep ggrep 11532 do 11533 for ac_exec_ext in '' $ac_executable_extensions; do 11534 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11535 as_fn_executable_p "$ac_path_GREP" || continue 11536# Check for GNU ac_path_GREP and select it if it is found. 11537 # Check for GNU $ac_path_GREP 11538case `"$ac_path_GREP" --version 2>&1` in 11539*GNU*) 11540 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11541*) 11542 ac_count=0 11543 printf %s 0123456789 >"conftest.in" 11544 while : 11545 do 11546 cat "conftest.in" "conftest.in" >"conftest.tmp" 11547 mv "conftest.tmp" "conftest.in" 11548 cp "conftest.in" "conftest.nl" 11549 printf "%s\n" 'GREP' >> "conftest.nl" 11550 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11552 as_fn_arith $ac_count + 1 && ac_count=$as_val 11553 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11554 # Best one so far, save it but keep looking for a better one 11555 ac_cv_path_GREP="$ac_path_GREP" 11556 ac_path_GREP_max=$ac_count 11557 fi 11558 # 10*(2^10) chars as input seems more than enough 11559 test $ac_count -gt 10 && break 11560 done 11561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11562esac 11563 11564 $ac_path_GREP_found && break 3 11565 done 11566 done 11567 done 11568IFS=$as_save_IFS 11569 if test -z "$ac_cv_path_GREP"; then 11570 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11571 fi 11572else 11573 ac_cv_path_GREP=$GREP 11574fi 11575 11576fi 11577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11578printf "%s\n" "$ac_cv_path_GREP" >&6; } 11579 GREP="$ac_cv_path_GREP" 11580 11581 11582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11583printf %s "checking for egrep... " >&6; } 11584if test ${ac_cv_path_EGREP+y} 11585then : 11586 printf %s "(cached) " >&6 11587else $as_nop 11588 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11589 then ac_cv_path_EGREP="$GREP -E" 11590 else 11591 if test -z "$EGREP"; then 11592 ac_path_EGREP_found=false 11593 # Loop through the user's path and test for each of PROGNAME-LIST 11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11596do 11597 IFS=$as_save_IFS 11598 case $as_dir in #((( 11599 '') as_dir=./ ;; 11600 */) ;; 11601 *) as_dir=$as_dir/ ;; 11602 esac 11603 for ac_prog in egrep 11604 do 11605 for ac_exec_ext in '' $ac_executable_extensions; do 11606 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11607 as_fn_executable_p "$ac_path_EGREP" || continue 11608# Check for GNU ac_path_EGREP and select it if it is found. 11609 # Check for GNU $ac_path_EGREP 11610case `"$ac_path_EGREP" --version 2>&1` in 11611*GNU*) 11612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11613*) 11614 ac_count=0 11615 printf %s 0123456789 >"conftest.in" 11616 while : 11617 do 11618 cat "conftest.in" "conftest.in" >"conftest.tmp" 11619 mv "conftest.tmp" "conftest.in" 11620 cp "conftest.in" "conftest.nl" 11621 printf "%s\n" 'EGREP' >> "conftest.nl" 11622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11624 as_fn_arith $ac_count + 1 && ac_count=$as_val 11625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11626 # Best one so far, save it but keep looking for a better one 11627 ac_cv_path_EGREP="$ac_path_EGREP" 11628 ac_path_EGREP_max=$ac_count 11629 fi 11630 # 10*(2^10) chars as input seems more than enough 11631 test $ac_count -gt 10 && break 11632 done 11633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11634esac 11635 11636 $ac_path_EGREP_found && break 3 11637 done 11638 done 11639 done 11640IFS=$as_save_IFS 11641 if test -z "$ac_cv_path_EGREP"; then 11642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11643 fi 11644else 11645 ac_cv_path_EGREP=$EGREP 11646fi 11647 11648 fi 11649fi 11650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11651printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11652 EGREP="$ac_cv_path_EGREP" 11653 11654 11655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11656printf %s "checking for fgrep... " >&6; } 11657if test ${ac_cv_path_FGREP+y} 11658then : 11659 printf %s "(cached) " >&6 11660else $as_nop 11661 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11662 then ac_cv_path_FGREP="$GREP -F" 11663 else 11664 if test -z "$FGREP"; then 11665 ac_path_FGREP_found=false 11666 # Loop through the user's path and test for each of PROGNAME-LIST 11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11668for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11669do 11670 IFS=$as_save_IFS 11671 case $as_dir in #((( 11672 '') as_dir=./ ;; 11673 */) ;; 11674 *) as_dir=$as_dir/ ;; 11675 esac 11676 for ac_prog in fgrep 11677 do 11678 for ac_exec_ext in '' $ac_executable_extensions; do 11679 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11680 as_fn_executable_p "$ac_path_FGREP" || continue 11681# Check for GNU ac_path_FGREP and select it if it is found. 11682 # Check for GNU $ac_path_FGREP 11683case `"$ac_path_FGREP" --version 2>&1` in 11684*GNU*) 11685 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11686*) 11687 ac_count=0 11688 printf %s 0123456789 >"conftest.in" 11689 while : 11690 do 11691 cat "conftest.in" "conftest.in" >"conftest.tmp" 11692 mv "conftest.tmp" "conftest.in" 11693 cp "conftest.in" "conftest.nl" 11694 printf "%s\n" 'FGREP' >> "conftest.nl" 11695 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11697 as_fn_arith $ac_count + 1 && ac_count=$as_val 11698 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11699 # Best one so far, save it but keep looking for a better one 11700 ac_cv_path_FGREP="$ac_path_FGREP" 11701 ac_path_FGREP_max=$ac_count 11702 fi 11703 # 10*(2^10) chars as input seems more than enough 11704 test $ac_count -gt 10 && break 11705 done 11706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11707esac 11708 11709 $ac_path_FGREP_found && break 3 11710 done 11711 done 11712 done 11713IFS=$as_save_IFS 11714 if test -z "$ac_cv_path_FGREP"; then 11715 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11716 fi 11717else 11718 ac_cv_path_FGREP=$FGREP 11719fi 11720 11721 fi 11722fi 11723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11724printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11725 FGREP="$ac_cv_path_FGREP" 11726 11727 11728test -z "$GREP" && GREP=grep 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748# Check whether --with-gnu-ld was given. 11749if test ${with_gnu_ld+y} 11750then : 11751 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11752else $as_nop 11753 with_gnu_ld=no 11754fi 11755 11756ac_prog=ld 11757if test yes = "$GCC"; then 11758 # Check if gcc -print-prog-name=ld gives a path. 11759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11760printf %s "checking for ld used by $CC... " >&6; } 11761 case $host in 11762 *-*-mingw*) 11763 # gcc leaves a trailing carriage return, which upsets mingw 11764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11765 *) 11766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11767 esac 11768 case $ac_prog in 11769 # Accept absolute paths. 11770 [\\/]* | ?:[\\/]*) 11771 re_direlt='/[^/][^/]*/\.\./' 11772 # Canonicalize the pathname of ld 11773 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11774 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11775 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11776 done 11777 test -z "$LD" && LD=$ac_prog 11778 ;; 11779 "") 11780 # If it fails, then pretend we aren't using GCC. 11781 ac_prog=ld 11782 ;; 11783 *) 11784 # If it is relative, then search for the first ld in PATH. 11785 with_gnu_ld=unknown 11786 ;; 11787 esac 11788elif test yes = "$with_gnu_ld"; then 11789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11790printf %s "checking for GNU ld... " >&6; } 11791else 11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11793printf %s "checking for non-GNU ld... " >&6; } 11794fi 11795if test ${lt_cv_path_LD+y} 11796then : 11797 printf %s "(cached) " >&6 11798else $as_nop 11799 if test -z "$LD"; then 11800 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11801 for ac_dir in $PATH; do 11802 IFS=$lt_save_ifs 11803 test -z "$ac_dir" && ac_dir=. 11804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11805 lt_cv_path_LD=$ac_dir/$ac_prog 11806 # Check to see if the program is GNU ld. I'd rather use --version, 11807 # but apparently some variants of GNU ld only accept -v. 11808 # Break only if it was the GNU/non-GNU ld that we prefer. 11809 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11810 *GNU* | *'with BFD'*) 11811 test no != "$with_gnu_ld" && break 11812 ;; 11813 *) 11814 test yes != "$with_gnu_ld" && break 11815 ;; 11816 esac 11817 fi 11818 done 11819 IFS=$lt_save_ifs 11820else 11821 lt_cv_path_LD=$LD # Let the user override the test with a path. 11822fi 11823fi 11824 11825LD=$lt_cv_path_LD 11826if test -n "$LD"; then 11827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11828printf "%s\n" "$LD" >&6; } 11829else 11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11831printf "%s\n" "no" >&6; } 11832fi 11833test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11835printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11836if test ${lt_cv_prog_gnu_ld+y} 11837then : 11838 printf %s "(cached) " >&6 11839else $as_nop 11840 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11841case `$LD -v 2>&1 </dev/null` in 11842*GNU* | *'with BFD'*) 11843 lt_cv_prog_gnu_ld=yes 11844 ;; 11845*) 11846 lt_cv_prog_gnu_ld=no 11847 ;; 11848esac 11849fi 11850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11851printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11852with_gnu_ld=$lt_cv_prog_gnu_ld 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11863printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11864if test ${lt_cv_path_NM+y} 11865then : 11866 printf %s "(cached) " >&6 11867else $as_nop 11868 if test -n "$NM"; then 11869 # Let the user override the test. 11870 lt_cv_path_NM=$NM 11871else 11872 lt_nm_to_check=${ac_tool_prefix}nm 11873 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11874 lt_nm_to_check="$lt_nm_to_check nm" 11875 fi 11876 for lt_tmp_nm in $lt_nm_to_check; do 11877 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11878 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11879 IFS=$lt_save_ifs 11880 test -z "$ac_dir" && ac_dir=. 11881 tmp_nm=$ac_dir/$lt_tmp_nm 11882 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11883 # Check to see if the nm accepts a BSD-compat flag. 11884 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11885 # nm: unknown option "B" ignored 11886 # Tru64's nm complains that /dev/null is an invalid object file 11887 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11888 case $build_os in 11889 mingw*) lt_bad_file=conftest.nm/nofile ;; 11890 *) lt_bad_file=/dev/null ;; 11891 esac 11892 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11893 *$lt_bad_file* | *'Invalid file or object type'*) 11894 lt_cv_path_NM="$tmp_nm -B" 11895 break 2 11896 ;; 11897 *) 11898 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11899 */dev/null*) 11900 lt_cv_path_NM="$tmp_nm -p" 11901 break 2 11902 ;; 11903 *) 11904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11905 continue # so that we can try to find one that supports BSD flags 11906 ;; 11907 esac 11908 ;; 11909 esac 11910 fi 11911 done 11912 IFS=$lt_save_ifs 11913 done 11914 : ${lt_cv_path_NM=no} 11915fi 11916fi 11917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11918printf "%s\n" "$lt_cv_path_NM" >&6; } 11919if test no != "$lt_cv_path_NM"; then 11920 NM=$lt_cv_path_NM 11921else 11922 # Didn't find any BSD compatible name lister, look for dumpbin. 11923 if test -n "$DUMPBIN"; then : 11924 # Let the user override the test. 11925 else 11926 if test -n "$ac_tool_prefix"; then 11927 for ac_prog in dumpbin "link -dump" 11928 do 11929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11930set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11932printf %s "checking for $ac_word... " >&6; } 11933if test ${ac_cv_prog_DUMPBIN+y} 11934then : 11935 printf %s "(cached) " >&6 11936else $as_nop 11937 if test -n "$DUMPBIN"; then 11938 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11939else 11940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11941for as_dir in $PATH 11942do 11943 IFS=$as_save_IFS 11944 case $as_dir in #((( 11945 '') as_dir=./ ;; 11946 */) ;; 11947 *) as_dir=$as_dir/ ;; 11948 esac 11949 for ac_exec_ext in '' $ac_executable_extensions; do 11950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11951 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11953 break 2 11954 fi 11955done 11956 done 11957IFS=$as_save_IFS 11958 11959fi 11960fi 11961DUMPBIN=$ac_cv_prog_DUMPBIN 11962if test -n "$DUMPBIN"; then 11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11964printf "%s\n" "$DUMPBIN" >&6; } 11965else 11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11967printf "%s\n" "no" >&6; } 11968fi 11969 11970 11971 test -n "$DUMPBIN" && break 11972 done 11973fi 11974if test -z "$DUMPBIN"; then 11975 ac_ct_DUMPBIN=$DUMPBIN 11976 for ac_prog in dumpbin "link -dump" 11977do 11978 # Extract the first word of "$ac_prog", so it can be a program name with args. 11979set dummy $ac_prog; ac_word=$2 11980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11981printf %s "checking for $ac_word... " >&6; } 11982if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11983then : 11984 printf %s "(cached) " >&6 11985else $as_nop 11986 if test -n "$ac_ct_DUMPBIN"; then 11987 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11988else 11989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11990for as_dir in $PATH 11991do 11992 IFS=$as_save_IFS 11993 case $as_dir in #((( 11994 '') as_dir=./ ;; 11995 */) ;; 11996 *) as_dir=$as_dir/ ;; 11997 esac 11998 for ac_exec_ext in '' $ac_executable_extensions; do 11999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12000 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12002 break 2 12003 fi 12004done 12005 done 12006IFS=$as_save_IFS 12007 12008fi 12009fi 12010ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12011if test -n "$ac_ct_DUMPBIN"; then 12012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12013printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12014else 12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12016printf "%s\n" "no" >&6; } 12017fi 12018 12019 12020 test -n "$ac_ct_DUMPBIN" && break 12021done 12022 12023 if test "x$ac_ct_DUMPBIN" = x; then 12024 DUMPBIN=":" 12025 else 12026 case $cross_compiling:$ac_tool_warned in 12027yes:) 12028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12029printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12030ac_tool_warned=yes ;; 12031esac 12032 DUMPBIN=$ac_ct_DUMPBIN 12033 fi 12034fi 12035 12036 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12037 *COFF*) 12038 DUMPBIN="$DUMPBIN -symbols -headers" 12039 ;; 12040 *) 12041 DUMPBIN=: 12042 ;; 12043 esac 12044 fi 12045 12046 if test : != "$DUMPBIN"; then 12047 NM=$DUMPBIN 12048 fi 12049fi 12050test -z "$NM" && NM=nm 12051 12052 12053 12054 12055 12056 12057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12058printf %s "checking the name lister ($NM) interface... " >&6; } 12059if test ${lt_cv_nm_interface+y} 12060then : 12061 printf %s "(cached) " >&6 12062else $as_nop 12063 lt_cv_nm_interface="BSD nm" 12064 echo "int some_variable = 0;" > conftest.$ac_ext 12065 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12066 (eval "$ac_compile" 2>conftest.err) 12067 cat conftest.err >&5 12068 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12069 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12070 cat conftest.err >&5 12071 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12072 cat conftest.out >&5 12073 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12074 lt_cv_nm_interface="MS dumpbin" 12075 fi 12076 rm -f conftest* 12077fi 12078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12079printf "%s\n" "$lt_cv_nm_interface" >&6; } 12080 12081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12082printf %s "checking whether ln -s works... " >&6; } 12083LN_S=$as_ln_s 12084if test "$LN_S" = "ln -s"; then 12085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12086printf "%s\n" "yes" >&6; } 12087else 12088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12089printf "%s\n" "no, using $LN_S" >&6; } 12090fi 12091 12092# find the maximum length of command line arguments 12093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12094printf %s "checking the maximum length of command line arguments... " >&6; } 12095if test ${lt_cv_sys_max_cmd_len+y} 12096then : 12097 printf %s "(cached) " >&6 12098else $as_nop 12099 i=0 12100 teststring=ABCD 12101 12102 case $build_os in 12103 msdosdjgpp*) 12104 # On DJGPP, this test can blow up pretty badly due to problems in libc 12105 # (any single argument exceeding 2000 bytes causes a buffer overrun 12106 # during glob expansion). Even if it were fixed, the result of this 12107 # check would be larger than it should be. 12108 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12109 ;; 12110 12111 gnu*) 12112 # Under GNU Hurd, this test is not required because there is 12113 # no limit to the length of command line arguments. 12114 # Libtool will interpret -1 as no limit whatsoever 12115 lt_cv_sys_max_cmd_len=-1; 12116 ;; 12117 12118 cygwin* | mingw* | cegcc*) 12119 # On Win9x/ME, this test blows up -- it succeeds, but takes 12120 # about 5 minutes as the teststring grows exponentially. 12121 # Worse, since 9x/ME are not pre-emptively multitasking, 12122 # you end up with a "frozen" computer, even though with patience 12123 # the test eventually succeeds (with a max line length of 256k). 12124 # Instead, let's just punt: use the minimum linelength reported by 12125 # all of the supported platforms: 8192 (on NT/2K/XP). 12126 lt_cv_sys_max_cmd_len=8192; 12127 ;; 12128 12129 mint*) 12130 # On MiNT this can take a long time and run out of memory. 12131 lt_cv_sys_max_cmd_len=8192; 12132 ;; 12133 12134 amigaos*) 12135 # On AmigaOS with pdksh, this test takes hours, literally. 12136 # So we just punt and use a minimum line length of 8192. 12137 lt_cv_sys_max_cmd_len=8192; 12138 ;; 12139 12140 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12141 # This has been around since 386BSD, at least. Likely further. 12142 if test -x /sbin/sysctl; then 12143 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12144 elif test -x /usr/sbin/sysctl; then 12145 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12146 else 12147 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12148 fi 12149 # And add a safety zone 12150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12152 ;; 12153 12154 interix*) 12155 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12156 lt_cv_sys_max_cmd_len=196608 12157 ;; 12158 12159 os2*) 12160 # The test takes a long time on OS/2. 12161 lt_cv_sys_max_cmd_len=8192 12162 ;; 12163 12164 osf*) 12165 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12166 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12167 # nice to cause kernel panics so lets avoid the loop below. 12168 # First set a reasonable default. 12169 lt_cv_sys_max_cmd_len=16384 12170 # 12171 if test -x /sbin/sysconfig; then 12172 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12173 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12174 esac 12175 fi 12176 ;; 12177 sco3.2v5*) 12178 lt_cv_sys_max_cmd_len=102400 12179 ;; 12180 sysv5* | sco5v6* | sysv4.2uw2*) 12181 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12182 if test -n "$kargmax"; then 12183 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12184 else 12185 lt_cv_sys_max_cmd_len=32768 12186 fi 12187 ;; 12188 *) 12189 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12190 if test -n "$lt_cv_sys_max_cmd_len" && \ 12191 test undefined != "$lt_cv_sys_max_cmd_len"; then 12192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12194 else 12195 # Make teststring a little bigger before we do anything with it. 12196 # a 1K string should be a reasonable start. 12197 for i in 1 2 3 4 5 6 7 8; do 12198 teststring=$teststring$teststring 12199 done 12200 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12201 # If test is not a shell built-in, we'll probably end up computing a 12202 # maximum length that is only half of the actual maximum length, but 12203 # we can't tell. 12204 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12205 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12206 test 17 != "$i" # 1/2 MB should be enough 12207 do 12208 i=`expr $i + 1` 12209 teststring=$teststring$teststring 12210 done 12211 # Only check the string length outside the loop. 12212 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12213 teststring= 12214 # Add a significant safety factor because C++ compilers can tack on 12215 # massive amounts of additional arguments before passing them to the 12216 # linker. It appears as though 1/2 is a usable value. 12217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12218 fi 12219 ;; 12220 esac 12221 12222fi 12223 12224if test -n "$lt_cv_sys_max_cmd_len"; then 12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12226printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12227else 12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12229printf "%s\n" "none" >&6; } 12230fi 12231max_cmd_len=$lt_cv_sys_max_cmd_len 12232 12233 12234 12235 12236 12237 12238: ${CP="cp -f"} 12239: ${MV="mv -f"} 12240: ${RM="rm -f"} 12241 12242if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12243 lt_unset=unset 12244else 12245 lt_unset=false 12246fi 12247 12248 12249 12250 12251 12252# test EBCDIC or ASCII 12253case `echo X|tr X '\101'` in 12254 A) # ASCII based system 12255 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12256 lt_SP2NL='tr \040 \012' 12257 lt_NL2SP='tr \015\012 \040\040' 12258 ;; 12259 *) # EBCDIC based system 12260 lt_SP2NL='tr \100 \n' 12261 lt_NL2SP='tr \r\n \100\100' 12262 ;; 12263esac 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12274printf %s "checking how to convert $build file names to $host format... " >&6; } 12275if test ${lt_cv_to_host_file_cmd+y} 12276then : 12277 printf %s "(cached) " >&6 12278else $as_nop 12279 case $host in 12280 *-*-mingw* ) 12281 case $build in 12282 *-*-mingw* ) # actually msys 12283 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12284 ;; 12285 *-*-cygwin* ) 12286 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12287 ;; 12288 * ) # otherwise, assume *nix 12289 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12290 ;; 12291 esac 12292 ;; 12293 *-*-cygwin* ) 12294 case $build in 12295 *-*-mingw* ) # actually msys 12296 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12297 ;; 12298 *-*-cygwin* ) 12299 lt_cv_to_host_file_cmd=func_convert_file_noop 12300 ;; 12301 * ) # otherwise, assume *nix 12302 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12303 ;; 12304 esac 12305 ;; 12306 * ) # unhandled hosts (and "normal" native builds) 12307 lt_cv_to_host_file_cmd=func_convert_file_noop 12308 ;; 12309esac 12310 12311fi 12312 12313to_host_file_cmd=$lt_cv_to_host_file_cmd 12314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12315printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12316 12317 12318 12319 12320 12321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12322printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12323if test ${lt_cv_to_tool_file_cmd+y} 12324then : 12325 printf %s "(cached) " >&6 12326else $as_nop 12327 #assume ordinary cross tools, or native build. 12328lt_cv_to_tool_file_cmd=func_convert_file_noop 12329case $host in 12330 *-*-mingw* ) 12331 case $build in 12332 *-*-mingw* ) # actually msys 12333 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12334 ;; 12335 esac 12336 ;; 12337esac 12338 12339fi 12340 12341to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12343printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12344 12345 12346 12347 12348 12349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12350printf %s "checking for $LD option to reload object files... " >&6; } 12351if test ${lt_cv_ld_reload_flag+y} 12352then : 12353 printf %s "(cached) " >&6 12354else $as_nop 12355 lt_cv_ld_reload_flag='-r' 12356fi 12357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12358printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12359reload_flag=$lt_cv_ld_reload_flag 12360case $reload_flag in 12361"" | " "*) ;; 12362*) reload_flag=" $reload_flag" ;; 12363esac 12364reload_cmds='$LD$reload_flag -o $output$reload_objs' 12365case $host_os in 12366 cygwin* | mingw* | pw32* | cegcc*) 12367 if test yes != "$GCC"; then 12368 reload_cmds=false 12369 fi 12370 ;; 12371 darwin*) 12372 if test yes = "$GCC"; then 12373 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12374 else 12375 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12376 fi 12377 ;; 12378esac 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388if test -n "$ac_tool_prefix"; then 12389 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12390set dummy ${ac_tool_prefix}file; ac_word=$2 12391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12392printf %s "checking for $ac_word... " >&6; } 12393if test ${ac_cv_prog_FILECMD+y} 12394then : 12395 printf %s "(cached) " >&6 12396else $as_nop 12397 if test -n "$FILECMD"; then 12398 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12399else 12400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12401for as_dir in $PATH 12402do 12403 IFS=$as_save_IFS 12404 case $as_dir in #((( 12405 '') as_dir=./ ;; 12406 */) ;; 12407 *) as_dir=$as_dir/ ;; 12408 esac 12409 for ac_exec_ext in '' $ac_executable_extensions; do 12410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12411 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12413 break 2 12414 fi 12415done 12416 done 12417IFS=$as_save_IFS 12418 12419fi 12420fi 12421FILECMD=$ac_cv_prog_FILECMD 12422if test -n "$FILECMD"; then 12423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12424printf "%s\n" "$FILECMD" >&6; } 12425else 12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12427printf "%s\n" "no" >&6; } 12428fi 12429 12430 12431fi 12432if test -z "$ac_cv_prog_FILECMD"; then 12433 ac_ct_FILECMD=$FILECMD 12434 # Extract the first word of "file", so it can be a program name with args. 12435set dummy file; ac_word=$2 12436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12437printf %s "checking for $ac_word... " >&6; } 12438if test ${ac_cv_prog_ac_ct_FILECMD+y} 12439then : 12440 printf %s "(cached) " >&6 12441else $as_nop 12442 if test -n "$ac_ct_FILECMD"; then 12443 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12444else 12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12446for as_dir in $PATH 12447do 12448 IFS=$as_save_IFS 12449 case $as_dir in #((( 12450 '') as_dir=./ ;; 12451 */) ;; 12452 *) as_dir=$as_dir/ ;; 12453 esac 12454 for ac_exec_ext in '' $ac_executable_extensions; do 12455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12456 ac_cv_prog_ac_ct_FILECMD="file" 12457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12458 break 2 12459 fi 12460done 12461 done 12462IFS=$as_save_IFS 12463 12464fi 12465fi 12466ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12467if test -n "$ac_ct_FILECMD"; then 12468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12469printf "%s\n" "$ac_ct_FILECMD" >&6; } 12470else 12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12472printf "%s\n" "no" >&6; } 12473fi 12474 12475 if test "x$ac_ct_FILECMD" = x; then 12476 FILECMD=":" 12477 else 12478 case $cross_compiling:$ac_tool_warned in 12479yes:) 12480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12481printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12482ac_tool_warned=yes ;; 12483esac 12484 FILECMD=$ac_ct_FILECMD 12485 fi 12486else 12487 FILECMD="$ac_cv_prog_FILECMD" 12488fi 12489 12490 12491 12492 12493 12494 12495 12496if test -n "$ac_tool_prefix"; then 12497 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12498set dummy ${ac_tool_prefix}objdump; ac_word=$2 12499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12500printf %s "checking for $ac_word... " >&6; } 12501if test ${ac_cv_prog_OBJDUMP+y} 12502then : 12503 printf %s "(cached) " >&6 12504else $as_nop 12505 if test -n "$OBJDUMP"; then 12506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12507else 12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12509for as_dir in $PATH 12510do 12511 IFS=$as_save_IFS 12512 case $as_dir in #((( 12513 '') as_dir=./ ;; 12514 */) ;; 12515 *) as_dir=$as_dir/ ;; 12516 esac 12517 for ac_exec_ext in '' $ac_executable_extensions; do 12518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12519 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12521 break 2 12522 fi 12523done 12524 done 12525IFS=$as_save_IFS 12526 12527fi 12528fi 12529OBJDUMP=$ac_cv_prog_OBJDUMP 12530if test -n "$OBJDUMP"; then 12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12532printf "%s\n" "$OBJDUMP" >&6; } 12533else 12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12535printf "%s\n" "no" >&6; } 12536fi 12537 12538 12539fi 12540if test -z "$ac_cv_prog_OBJDUMP"; then 12541 ac_ct_OBJDUMP=$OBJDUMP 12542 # Extract the first word of "objdump", so it can be a program name with args. 12543set dummy objdump; ac_word=$2 12544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12545printf %s "checking for $ac_word... " >&6; } 12546if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12547then : 12548 printf %s "(cached) " >&6 12549else $as_nop 12550 if test -n "$ac_ct_OBJDUMP"; then 12551 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12552else 12553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12554for as_dir in $PATH 12555do 12556 IFS=$as_save_IFS 12557 case $as_dir in #((( 12558 '') as_dir=./ ;; 12559 */) ;; 12560 *) as_dir=$as_dir/ ;; 12561 esac 12562 for ac_exec_ext in '' $ac_executable_extensions; do 12563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12564 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12566 break 2 12567 fi 12568done 12569 done 12570IFS=$as_save_IFS 12571 12572fi 12573fi 12574ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12575if test -n "$ac_ct_OBJDUMP"; then 12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12577printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12578else 12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12580printf "%s\n" "no" >&6; } 12581fi 12582 12583 if test "x$ac_ct_OBJDUMP" = x; then 12584 OBJDUMP="false" 12585 else 12586 case $cross_compiling:$ac_tool_warned in 12587yes:) 12588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12589printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12590ac_tool_warned=yes ;; 12591esac 12592 OBJDUMP=$ac_ct_OBJDUMP 12593 fi 12594else 12595 OBJDUMP="$ac_cv_prog_OBJDUMP" 12596fi 12597 12598test -z "$OBJDUMP" && OBJDUMP=objdump 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12609printf %s "checking how to recognize dependent libraries... " >&6; } 12610if test ${lt_cv_deplibs_check_method+y} 12611then : 12612 printf %s "(cached) " >&6 12613else $as_nop 12614 lt_cv_file_magic_cmd='$MAGIC_CMD' 12615lt_cv_file_magic_test_file= 12616lt_cv_deplibs_check_method='unknown' 12617# Need to set the preceding variable on all platforms that support 12618# interlibrary dependencies. 12619# 'none' -- dependencies not supported. 12620# 'unknown' -- same as none, but documents that we really don't know. 12621# 'pass_all' -- all dependencies passed with no checks. 12622# 'test_compile' -- check by making test program. 12623# 'file_magic [[regex]]' -- check by looking for files in library path 12624# that responds to the $file_magic_cmd with a given extended regex. 12625# If you have 'file' or equivalent on your system and you're not sure 12626# whether 'pass_all' will *always* work, you probably want this one. 12627 12628case $host_os in 12629aix[4-9]*) 12630 lt_cv_deplibs_check_method=pass_all 12631 ;; 12632 12633beos*) 12634 lt_cv_deplibs_check_method=pass_all 12635 ;; 12636 12637bsdi[45]*) 12638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12639 lt_cv_file_magic_cmd='$FILECMD -L' 12640 lt_cv_file_magic_test_file=/shlib/libc.so 12641 ;; 12642 12643cygwin*) 12644 # func_win32_libid is a shell function defined in ltmain.sh 12645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12646 lt_cv_file_magic_cmd='func_win32_libid' 12647 ;; 12648 12649mingw* | pw32*) 12650 # Base MSYS/MinGW do not provide the 'file' command needed by 12651 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12652 # unless we find 'file', for example because we are cross-compiling. 12653 if ( file / ) >/dev/null 2>&1; then 12654 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12655 lt_cv_file_magic_cmd='func_win32_libid' 12656 else 12657 # Keep this pattern in sync with the one in func_win32_libid. 12658 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12659 lt_cv_file_magic_cmd='$OBJDUMP -f' 12660 fi 12661 ;; 12662 12663cegcc*) 12664 # use the weaker test based on 'objdump'. See mingw*. 12665 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12666 lt_cv_file_magic_cmd='$OBJDUMP -f' 12667 ;; 12668 12669darwin* | rhapsody*) 12670 lt_cv_deplibs_check_method=pass_all 12671 ;; 12672 12673freebsd* | dragonfly* | midnightbsd*) 12674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12675 case $host_cpu in 12676 i*86 ) 12677 # Not sure whether the presence of OpenBSD here was a mistake. 12678 # Let's accept both of them until this is cleared up. 12679 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12680 lt_cv_file_magic_cmd=$FILECMD 12681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12682 ;; 12683 esac 12684 else 12685 lt_cv_deplibs_check_method=pass_all 12686 fi 12687 ;; 12688 12689haiku*) 12690 lt_cv_deplibs_check_method=pass_all 12691 ;; 12692 12693hpux10.20* | hpux11*) 12694 lt_cv_file_magic_cmd=$FILECMD 12695 case $host_cpu in 12696 ia64*) 12697 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12698 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12699 ;; 12700 hppa*64*) 12701 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]' 12702 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12703 ;; 12704 *) 12705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12706 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12707 ;; 12708 esac 12709 ;; 12710 12711interix[3-9]*) 12712 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12714 ;; 12715 12716irix5* | irix6* | nonstopux*) 12717 case $LD in 12718 *-32|*"-32 ") libmagic=32-bit;; 12719 *-n32|*"-n32 ") libmagic=N32;; 12720 *-64|*"-64 ") libmagic=64-bit;; 12721 *) libmagic=never-match;; 12722 esac 12723 lt_cv_deplibs_check_method=pass_all 12724 ;; 12725 12726# This must be glibc/ELF. 12727linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12728 lt_cv_deplibs_check_method=pass_all 12729 ;; 12730 12731netbsd*) 12732 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12734 else 12735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12736 fi 12737 ;; 12738 12739newos6*) 12740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12741 lt_cv_file_magic_cmd=$FILECMD 12742 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12743 ;; 12744 12745*nto* | *qnx*) 12746 lt_cv_deplibs_check_method=pass_all 12747 ;; 12748 12749openbsd* | bitrig*) 12750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12752 else 12753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12754 fi 12755 ;; 12756 12757osf3* | osf4* | osf5*) 12758 lt_cv_deplibs_check_method=pass_all 12759 ;; 12760 12761rdos*) 12762 lt_cv_deplibs_check_method=pass_all 12763 ;; 12764 12765solaris*) 12766 lt_cv_deplibs_check_method=pass_all 12767 ;; 12768 12769sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12770 lt_cv_deplibs_check_method=pass_all 12771 ;; 12772 12773sysv4 | sysv4.3*) 12774 case $host_vendor in 12775 motorola) 12776 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]' 12777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12778 ;; 12779 ncr) 12780 lt_cv_deplibs_check_method=pass_all 12781 ;; 12782 sequent) 12783 lt_cv_file_magic_cmd='/bin/file' 12784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12785 ;; 12786 sni) 12787 lt_cv_file_magic_cmd='/bin/file' 12788 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12789 lt_cv_file_magic_test_file=/lib/libc.so 12790 ;; 12791 siemens) 12792 lt_cv_deplibs_check_method=pass_all 12793 ;; 12794 pc) 12795 lt_cv_deplibs_check_method=pass_all 12796 ;; 12797 esac 12798 ;; 12799 12800tpf*) 12801 lt_cv_deplibs_check_method=pass_all 12802 ;; 12803os2*) 12804 lt_cv_deplibs_check_method=pass_all 12805 ;; 12806esac 12807 12808fi 12809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12810printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12811 12812file_magic_glob= 12813want_nocaseglob=no 12814if test "$build" = "$host"; then 12815 case $host_os in 12816 mingw* | pw32*) 12817 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12818 want_nocaseglob=yes 12819 else 12820 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12821 fi 12822 ;; 12823 esac 12824fi 12825 12826file_magic_cmd=$lt_cv_file_magic_cmd 12827deplibs_check_method=$lt_cv_deplibs_check_method 12828test -z "$deplibs_check_method" && deplibs_check_method=unknown 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851if test -n "$ac_tool_prefix"; then 12852 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12853set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12855printf %s "checking for $ac_word... " >&6; } 12856if test ${ac_cv_prog_DLLTOOL+y} 12857then : 12858 printf %s "(cached) " >&6 12859else $as_nop 12860 if test -n "$DLLTOOL"; then 12861 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12862else 12863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12864for as_dir in $PATH 12865do 12866 IFS=$as_save_IFS 12867 case $as_dir in #((( 12868 '') as_dir=./ ;; 12869 */) ;; 12870 *) as_dir=$as_dir/ ;; 12871 esac 12872 for ac_exec_ext in '' $ac_executable_extensions; do 12873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12874 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12876 break 2 12877 fi 12878done 12879 done 12880IFS=$as_save_IFS 12881 12882fi 12883fi 12884DLLTOOL=$ac_cv_prog_DLLTOOL 12885if test -n "$DLLTOOL"; then 12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12887printf "%s\n" "$DLLTOOL" >&6; } 12888else 12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12890printf "%s\n" "no" >&6; } 12891fi 12892 12893 12894fi 12895if test -z "$ac_cv_prog_DLLTOOL"; then 12896 ac_ct_DLLTOOL=$DLLTOOL 12897 # Extract the first word of "dlltool", so it can be a program name with args. 12898set dummy dlltool; ac_word=$2 12899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12900printf %s "checking for $ac_word... " >&6; } 12901if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12902then : 12903 printf %s "(cached) " >&6 12904else $as_nop 12905 if test -n "$ac_ct_DLLTOOL"; then 12906 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12907else 12908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12909for as_dir in $PATH 12910do 12911 IFS=$as_save_IFS 12912 case $as_dir in #((( 12913 '') as_dir=./ ;; 12914 */) ;; 12915 *) as_dir=$as_dir/ ;; 12916 esac 12917 for ac_exec_ext in '' $ac_executable_extensions; do 12918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12919 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12921 break 2 12922 fi 12923done 12924 done 12925IFS=$as_save_IFS 12926 12927fi 12928fi 12929ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12930if test -n "$ac_ct_DLLTOOL"; then 12931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12932printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12933else 12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12935printf "%s\n" "no" >&6; } 12936fi 12937 12938 if test "x$ac_ct_DLLTOOL" = x; then 12939 DLLTOOL="false" 12940 else 12941 case $cross_compiling:$ac_tool_warned in 12942yes:) 12943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12945ac_tool_warned=yes ;; 12946esac 12947 DLLTOOL=$ac_ct_DLLTOOL 12948 fi 12949else 12950 DLLTOOL="$ac_cv_prog_DLLTOOL" 12951fi 12952 12953test -z "$DLLTOOL" && DLLTOOL=dlltool 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12965printf %s "checking how to associate runtime and link libraries... " >&6; } 12966if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12967then : 12968 printf %s "(cached) " >&6 12969else $as_nop 12970 lt_cv_sharedlib_from_linklib_cmd='unknown' 12971 12972case $host_os in 12973cygwin* | mingw* | pw32* | cegcc*) 12974 # two different shell functions defined in ltmain.sh; 12975 # decide which one to use based on capabilities of $DLLTOOL 12976 case `$DLLTOOL --help 2>&1` in 12977 *--identify-strict*) 12978 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12979 ;; 12980 *) 12981 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12982 ;; 12983 esac 12984 ;; 12985*) 12986 # fallback: assume linklib IS sharedlib 12987 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12988 ;; 12989esac 12990 12991fi 12992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12993printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12994sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12995test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12996 12997 12998 12999 13000 13001 13002 13003if test -n "$ac_tool_prefix"; then 13004 for ac_prog in ar 13005 do 13006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13007set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13009printf %s "checking for $ac_word... " >&6; } 13010if test ${ac_cv_prog_AR+y} 13011then : 13012 printf %s "(cached) " >&6 13013else $as_nop 13014 if test -n "$AR"; then 13015 ac_cv_prog_AR="$AR" # Let the user override the test. 13016else 13017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13018for as_dir in $PATH 13019do 13020 IFS=$as_save_IFS 13021 case $as_dir in #((( 13022 '') as_dir=./ ;; 13023 */) ;; 13024 *) as_dir=$as_dir/ ;; 13025 esac 13026 for ac_exec_ext in '' $ac_executable_extensions; do 13027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13028 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13030 break 2 13031 fi 13032done 13033 done 13034IFS=$as_save_IFS 13035 13036fi 13037fi 13038AR=$ac_cv_prog_AR 13039if test -n "$AR"; then 13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13041printf "%s\n" "$AR" >&6; } 13042else 13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13044printf "%s\n" "no" >&6; } 13045fi 13046 13047 13048 test -n "$AR" && break 13049 done 13050fi 13051if test -z "$AR"; then 13052 ac_ct_AR=$AR 13053 for ac_prog in ar 13054do 13055 # Extract the first word of "$ac_prog", so it can be a program name with args. 13056set dummy $ac_prog; ac_word=$2 13057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13058printf %s "checking for $ac_word... " >&6; } 13059if test ${ac_cv_prog_ac_ct_AR+y} 13060then : 13061 printf %s "(cached) " >&6 13062else $as_nop 13063 if test -n "$ac_ct_AR"; then 13064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13065else 13066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13067for as_dir in $PATH 13068do 13069 IFS=$as_save_IFS 13070 case $as_dir in #((( 13071 '') as_dir=./ ;; 13072 */) ;; 13073 *) as_dir=$as_dir/ ;; 13074 esac 13075 for ac_exec_ext in '' $ac_executable_extensions; do 13076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13077 ac_cv_prog_ac_ct_AR="$ac_prog" 13078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13079 break 2 13080 fi 13081done 13082 done 13083IFS=$as_save_IFS 13084 13085fi 13086fi 13087ac_ct_AR=$ac_cv_prog_ac_ct_AR 13088if test -n "$ac_ct_AR"; then 13089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13090printf "%s\n" "$ac_ct_AR" >&6; } 13091else 13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13093printf "%s\n" "no" >&6; } 13094fi 13095 13096 13097 test -n "$ac_ct_AR" && break 13098done 13099 13100 if test "x$ac_ct_AR" = x; then 13101 AR="false" 13102 else 13103 case $cross_compiling:$ac_tool_warned in 13104yes:) 13105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13106printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13107ac_tool_warned=yes ;; 13108esac 13109 AR=$ac_ct_AR 13110 fi 13111fi 13112 13113: ${AR=ar} 13114 13115 13116 13117 13118 13119 13120# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13121# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13122# higher priority because thats what people were doing historically (setting 13123# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13124# variable obsoleted/removed. 13125 13126test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13127lt_ar_flags=$AR_FLAGS 13128 13129 13130 13131 13132 13133 13134# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13135# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13136 13137 13138 13139 13140 13141 13142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13143printf %s "checking for archiver @FILE support... " >&6; } 13144if test ${lt_cv_ar_at_file+y} 13145then : 13146 printf %s "(cached) " >&6 13147else $as_nop 13148 lt_cv_ar_at_file=no 13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13150/* end confdefs.h. */ 13151 13152int 13153main (void) 13154{ 13155 13156 ; 13157 return 0; 13158} 13159_ACEOF 13160if ac_fn_c_try_compile "$LINENO" 13161then : 13162 echo conftest.$ac_objext > conftest.lst 13163 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13165 (eval $lt_ar_try) 2>&5 13166 ac_status=$? 13167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13168 test $ac_status = 0; } 13169 if test 0 -eq "$ac_status"; then 13170 # Ensure the archiver fails upon bogus file names. 13171 rm -f conftest.$ac_objext libconftest.a 13172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13173 (eval $lt_ar_try) 2>&5 13174 ac_status=$? 13175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13176 test $ac_status = 0; } 13177 if test 0 -ne "$ac_status"; then 13178 lt_cv_ar_at_file=@ 13179 fi 13180 fi 13181 rm -f conftest.* libconftest.a 13182 13183fi 13184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13185 13186fi 13187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13188printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13189 13190if test no = "$lt_cv_ar_at_file"; then 13191 archiver_list_spec= 13192else 13193 archiver_list_spec=$lt_cv_ar_at_file 13194fi 13195 13196 13197 13198 13199 13200 13201 13202if test -n "$ac_tool_prefix"; then 13203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13204set dummy ${ac_tool_prefix}strip; ac_word=$2 13205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13206printf %s "checking for $ac_word... " >&6; } 13207if test ${ac_cv_prog_STRIP+y} 13208then : 13209 printf %s "(cached) " >&6 13210else $as_nop 13211 if test -n "$STRIP"; then 13212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13213else 13214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13215for as_dir in $PATH 13216do 13217 IFS=$as_save_IFS 13218 case $as_dir in #((( 13219 '') as_dir=./ ;; 13220 */) ;; 13221 *) as_dir=$as_dir/ ;; 13222 esac 13223 for ac_exec_ext in '' $ac_executable_extensions; do 13224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13225 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13227 break 2 13228 fi 13229done 13230 done 13231IFS=$as_save_IFS 13232 13233fi 13234fi 13235STRIP=$ac_cv_prog_STRIP 13236if test -n "$STRIP"; then 13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13238printf "%s\n" "$STRIP" >&6; } 13239else 13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13241printf "%s\n" "no" >&6; } 13242fi 13243 13244 13245fi 13246if test -z "$ac_cv_prog_STRIP"; then 13247 ac_ct_STRIP=$STRIP 13248 # Extract the first word of "strip", so it can be a program name with args. 13249set dummy strip; ac_word=$2 13250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13251printf %s "checking for $ac_word... " >&6; } 13252if test ${ac_cv_prog_ac_ct_STRIP+y} 13253then : 13254 printf %s "(cached) " >&6 13255else $as_nop 13256 if test -n "$ac_ct_STRIP"; then 13257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13258else 13259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13260for as_dir in $PATH 13261do 13262 IFS=$as_save_IFS 13263 case $as_dir in #((( 13264 '') as_dir=./ ;; 13265 */) ;; 13266 *) as_dir=$as_dir/ ;; 13267 esac 13268 for ac_exec_ext in '' $ac_executable_extensions; do 13269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13270 ac_cv_prog_ac_ct_STRIP="strip" 13271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13272 break 2 13273 fi 13274done 13275 done 13276IFS=$as_save_IFS 13277 13278fi 13279fi 13280ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13281if test -n "$ac_ct_STRIP"; then 13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13283printf "%s\n" "$ac_ct_STRIP" >&6; } 13284else 13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13286printf "%s\n" "no" >&6; } 13287fi 13288 13289 if test "x$ac_ct_STRIP" = x; then 13290 STRIP=":" 13291 else 13292 case $cross_compiling:$ac_tool_warned in 13293yes:) 13294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13295printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13296ac_tool_warned=yes ;; 13297esac 13298 STRIP=$ac_ct_STRIP 13299 fi 13300else 13301 STRIP="$ac_cv_prog_STRIP" 13302fi 13303 13304test -z "$STRIP" && STRIP=: 13305 13306 13307 13308 13309 13310 13311if test -n "$ac_tool_prefix"; then 13312 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13313set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13315printf %s "checking for $ac_word... " >&6; } 13316if test ${ac_cv_prog_RANLIB+y} 13317then : 13318 printf %s "(cached) " >&6 13319else $as_nop 13320 if test -n "$RANLIB"; then 13321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13322else 13323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13324for as_dir in $PATH 13325do 13326 IFS=$as_save_IFS 13327 case $as_dir in #((( 13328 '') as_dir=./ ;; 13329 */) ;; 13330 *) as_dir=$as_dir/ ;; 13331 esac 13332 for ac_exec_ext in '' $ac_executable_extensions; do 13333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13336 break 2 13337 fi 13338done 13339 done 13340IFS=$as_save_IFS 13341 13342fi 13343fi 13344RANLIB=$ac_cv_prog_RANLIB 13345if test -n "$RANLIB"; then 13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13347printf "%s\n" "$RANLIB" >&6; } 13348else 13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13350printf "%s\n" "no" >&6; } 13351fi 13352 13353 13354fi 13355if test -z "$ac_cv_prog_RANLIB"; then 13356 ac_ct_RANLIB=$RANLIB 13357 # Extract the first word of "ranlib", so it can be a program name with args. 13358set dummy ranlib; ac_word=$2 13359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13360printf %s "checking for $ac_word... " >&6; } 13361if test ${ac_cv_prog_ac_ct_RANLIB+y} 13362then : 13363 printf %s "(cached) " >&6 13364else $as_nop 13365 if test -n "$ac_ct_RANLIB"; then 13366 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13367else 13368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13369for as_dir in $PATH 13370do 13371 IFS=$as_save_IFS 13372 case $as_dir in #((( 13373 '') as_dir=./ ;; 13374 */) ;; 13375 *) as_dir=$as_dir/ ;; 13376 esac 13377 for ac_exec_ext in '' $ac_executable_extensions; do 13378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13379 ac_cv_prog_ac_ct_RANLIB="ranlib" 13380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13381 break 2 13382 fi 13383done 13384 done 13385IFS=$as_save_IFS 13386 13387fi 13388fi 13389ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13390if test -n "$ac_ct_RANLIB"; then 13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13392printf "%s\n" "$ac_ct_RANLIB" >&6; } 13393else 13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13395printf "%s\n" "no" >&6; } 13396fi 13397 13398 if test "x$ac_ct_RANLIB" = x; then 13399 RANLIB=":" 13400 else 13401 case $cross_compiling:$ac_tool_warned in 13402yes:) 13403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13404printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13405ac_tool_warned=yes ;; 13406esac 13407 RANLIB=$ac_ct_RANLIB 13408 fi 13409else 13410 RANLIB="$ac_cv_prog_RANLIB" 13411fi 13412 13413test -z "$RANLIB" && RANLIB=: 13414 13415 13416 13417 13418 13419 13420# Determine commands to create old-style static archives. 13421old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13422old_postinstall_cmds='chmod 644 $oldlib' 13423old_postuninstall_cmds= 13424 13425if test -n "$RANLIB"; then 13426 case $host_os in 13427 bitrig* | openbsd*) 13428 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13429 ;; 13430 *) 13431 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13432 ;; 13433 esac 13434 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13435fi 13436 13437case $host_os in 13438 darwin*) 13439 lock_old_archive_extraction=yes ;; 13440 *) 13441 lock_old_archive_extraction=no ;; 13442esac 13443 13444 13445 13446 13447 13448 13449 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# If no C compiler was specified, use CC. 13483LTCC=${LTCC-"$CC"} 13484 13485# If no C compiler flags were specified, use CFLAGS. 13486LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13487 13488# Allow CC to be a program name with arguments. 13489compiler=$CC 13490 13491 13492# Check for command to grab the raw symbol name followed by C symbol from nm. 13493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13494printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13495if test ${lt_cv_sys_global_symbol_pipe+y} 13496then : 13497 printf %s "(cached) " >&6 13498else $as_nop 13499 13500# These are sane defaults that work on at least a few old systems. 13501# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13502 13503# Character class describing NM global symbol codes. 13504symcode='[BCDEGRST]' 13505 13506# Regexp to match symbols that can be accessed directly from C. 13507sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13508 13509# Define system-specific variables. 13510case $host_os in 13511aix*) 13512 symcode='[BCDT]' 13513 ;; 13514cygwin* | mingw* | pw32* | cegcc*) 13515 symcode='[ABCDGISTW]' 13516 ;; 13517hpux*) 13518 if test ia64 = "$host_cpu"; then 13519 symcode='[ABCDEGRST]' 13520 fi 13521 ;; 13522irix* | nonstopux*) 13523 symcode='[BCDEGRST]' 13524 ;; 13525osf*) 13526 symcode='[BCDEGQRST]' 13527 ;; 13528solaris*) 13529 symcode='[BDRT]' 13530 ;; 13531sco3.2v5*) 13532 symcode='[DT]' 13533 ;; 13534sysv4.2uw2*) 13535 symcode='[DT]' 13536 ;; 13537sysv5* | sco5v6* | unixware* | OpenUNIX*) 13538 symcode='[ABDT]' 13539 ;; 13540sysv4) 13541 symcode='[DFNSTU]' 13542 ;; 13543esac 13544 13545# If we're using GNU nm, then use its standard symbol codes. 13546case `$NM -V 2>&1` in 13547*GNU* | *'with BFD'*) 13548 symcode='[ABCDGIRSTW]' ;; 13549esac 13550 13551if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13552 # Gets list of data symbols to import. 13553 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13554 # Adjust the below global symbol transforms to fixup imported variables. 13555 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13556 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13557 lt_c_name_lib_hook="\ 13558 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13559 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13560else 13561 # Disable hooks by default. 13562 lt_cv_sys_global_symbol_to_import= 13563 lt_cdecl_hook= 13564 lt_c_name_hook= 13565 lt_c_name_lib_hook= 13566fi 13567 13568# Transform an extracted symbol line into a proper C declaration. 13569# Some systems (esp. on ia64) link data and code symbols differently, 13570# so use this general approach. 13571lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13572$lt_cdecl_hook\ 13573" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13574" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13575 13576# Transform an extracted symbol line into symbol name and symbol address 13577lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13578$lt_c_name_hook\ 13579" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13580" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13581 13582# Transform an extracted symbol line into symbol name with lib prefix and 13583# symbol address. 13584lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13585$lt_c_name_lib_hook\ 13586" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13587" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13588" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13589 13590# Handle CRLF in mingw tool chain 13591opt_cr= 13592case $build_os in 13593mingw*) 13594 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13595 ;; 13596esac 13597 13598# Try without a prefix underscore, then with it. 13599for ac_symprfx in "" "_"; do 13600 13601 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13602 symxfrm="\\1 $ac_symprfx\\2 \\2" 13603 13604 # Write the raw and C identifiers. 13605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13606 # Fake it for dumpbin and say T for any non-static function, 13607 # D for any global variable and I for any imported variable. 13608 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13609 # which start with @ or ?. 13610 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13611" {last_section=section; section=\$ 3};"\ 13612" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13613" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13614" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13615" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13616" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13617" \$ 0!~/External *\|/{next};"\ 13618" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13619" {if(hide[section]) next};"\ 13620" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13621" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13622" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13623" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13624" ' prfx=^$ac_symprfx" 13625 else 13626 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13627 fi 13628 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13629 13630 # Check to see that the pipe works correctly. 13631 pipe_works=no 13632 13633 rm -f conftest* 13634 cat > conftest.$ac_ext <<_LT_EOF 13635#ifdef __cplusplus 13636extern "C" { 13637#endif 13638char nm_test_var; 13639void nm_test_func(void); 13640void nm_test_func(void){} 13641#ifdef __cplusplus 13642} 13643#endif 13644int main(){nm_test_var='a';nm_test_func();return(0);} 13645_LT_EOF 13646 13647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13648 (eval $ac_compile) 2>&5 13649 ac_status=$? 13650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13651 test $ac_status = 0; }; then 13652 # Now try to grab the symbols. 13653 nlist=conftest.nm 13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13655 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13656 ac_status=$? 13657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13658 test $ac_status = 0; } && test -s "$nlist"; then 13659 # Try sorting and uniquifying the output. 13660 if sort "$nlist" | uniq > "$nlist"T; then 13661 mv -f "$nlist"T "$nlist" 13662 else 13663 rm -f "$nlist"T 13664 fi 13665 13666 # Make sure that we snagged all the symbols we need. 13667 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13668 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13669 cat <<_LT_EOF > conftest.$ac_ext 13670/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13671#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13672/* DATA imports from DLLs on WIN32 can't be const, because runtime 13673 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13674# define LT_DLSYM_CONST 13675#elif defined __osf__ 13676/* This system does not cope well with relocations in const data. */ 13677# define LT_DLSYM_CONST 13678#else 13679# define LT_DLSYM_CONST const 13680#endif 13681 13682#ifdef __cplusplus 13683extern "C" { 13684#endif 13685 13686_LT_EOF 13687 # Now generate the symbol file. 13688 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13689 13690 cat <<_LT_EOF >> conftest.$ac_ext 13691 13692/* The mapping between symbol names and symbols. */ 13693LT_DLSYM_CONST struct { 13694 const char *name; 13695 void *address; 13696} 13697lt__PROGRAM__LTX_preloaded_symbols[] = 13698{ 13699 { "@PROGRAM@", (void *) 0 }, 13700_LT_EOF 13701 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13702 cat <<\_LT_EOF >> conftest.$ac_ext 13703 {0, (void *) 0} 13704}; 13705 13706/* This works around a problem in FreeBSD linker */ 13707#ifdef FREEBSD_WORKAROUND 13708static const void *lt_preloaded_setup() { 13709 return lt__PROGRAM__LTX_preloaded_symbols; 13710} 13711#endif 13712 13713#ifdef __cplusplus 13714} 13715#endif 13716_LT_EOF 13717 # Now try linking the two files. 13718 mv conftest.$ac_objext conftstm.$ac_objext 13719 lt_globsym_save_LIBS=$LIBS 13720 lt_globsym_save_CFLAGS=$CFLAGS 13721 LIBS=conftstm.$ac_objext 13722 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13724 (eval $ac_link) 2>&5 13725 ac_status=$? 13726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13727 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13728 pipe_works=yes 13729 fi 13730 LIBS=$lt_globsym_save_LIBS 13731 CFLAGS=$lt_globsym_save_CFLAGS 13732 else 13733 echo "cannot find nm_test_func in $nlist" >&5 13734 fi 13735 else 13736 echo "cannot find nm_test_var in $nlist" >&5 13737 fi 13738 else 13739 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13740 fi 13741 else 13742 echo "$progname: failed program was:" >&5 13743 cat conftest.$ac_ext >&5 13744 fi 13745 rm -rf conftest* conftst* 13746 13747 # Do not use the global_symbol_pipe unless it works. 13748 if test yes = "$pipe_works"; then 13749 break 13750 else 13751 lt_cv_sys_global_symbol_pipe= 13752 fi 13753done 13754 13755fi 13756 13757if test -z "$lt_cv_sys_global_symbol_pipe"; then 13758 lt_cv_sys_global_symbol_to_cdecl= 13759fi 13760if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13762printf "%s\n" "failed" >&6; } 13763else 13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13765printf "%s\n" "ok" >&6; } 13766fi 13767 13768# Response file support. 13769if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13770 nm_file_list_spec='@' 13771elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13772 nm_file_list_spec='@' 13773fi 13774 13775 13776 13777 13778 13779 13780 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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13812printf %s "checking for sysroot... " >&6; } 13813 13814# Check whether --with-sysroot was given. 13815if test ${with_sysroot+y} 13816then : 13817 withval=$with_sysroot; 13818else $as_nop 13819 with_sysroot=no 13820fi 13821 13822 13823lt_sysroot= 13824case $with_sysroot in #( 13825 yes) 13826 if test yes = "$GCC"; then 13827 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13828 fi 13829 ;; #( 13830 /*) 13831 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13832 ;; #( 13833 no|'') 13834 ;; #( 13835 *) 13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13837printf "%s\n" "$with_sysroot" >&6; } 13838 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13839 ;; 13840esac 13841 13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13843printf "%s\n" "${lt_sysroot:-no}" >&6; } 13844 13845 13846 13847 13848 13849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13850printf %s "checking for a working dd... " >&6; } 13851if test ${ac_cv_path_lt_DD+y} 13852then : 13853 printf %s "(cached) " >&6 13854else $as_nop 13855 printf 0123456789abcdef0123456789abcdef >conftest.i 13856cat conftest.i conftest.i >conftest2.i 13857: ${lt_DD:=$DD} 13858if test -z "$lt_DD"; then 13859 ac_path_lt_DD_found=false 13860 # Loop through the user's path and test for each of PROGNAME-LIST 13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13862for as_dir in $PATH 13863do 13864 IFS=$as_save_IFS 13865 case $as_dir in #((( 13866 '') as_dir=./ ;; 13867 */) ;; 13868 *) as_dir=$as_dir/ ;; 13869 esac 13870 for ac_prog in dd 13871 do 13872 for ac_exec_ext in '' $ac_executable_extensions; do 13873 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13874 as_fn_executable_p "$ac_path_lt_DD" || continue 13875if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13876 cmp -s conftest.i conftest.out \ 13877 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13878fi 13879 $ac_path_lt_DD_found && break 3 13880 done 13881 done 13882 done 13883IFS=$as_save_IFS 13884 if test -z "$ac_cv_path_lt_DD"; then 13885 : 13886 fi 13887else 13888 ac_cv_path_lt_DD=$lt_DD 13889fi 13890 13891rm -f conftest.i conftest2.i conftest.out 13892fi 13893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13894printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13895 13896 13897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13898printf %s "checking how to truncate binary pipes... " >&6; } 13899if test ${lt_cv_truncate_bin+y} 13900then : 13901 printf %s "(cached) " >&6 13902else $as_nop 13903 printf 0123456789abcdef0123456789abcdef >conftest.i 13904cat conftest.i conftest.i >conftest2.i 13905lt_cv_truncate_bin= 13906if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13907 cmp -s conftest.i conftest.out \ 13908 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13909fi 13910rm -f conftest.i conftest2.i conftest.out 13911test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13912fi 13913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13914printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13915 13916 13917 13918 13919 13920 13921 13922# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13923func_cc_basename () 13924{ 13925 for cc_temp in $*""; do 13926 case $cc_temp in 13927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13929 \-*) ;; 13930 *) break;; 13931 esac 13932 done 13933 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13934} 13935 13936# Check whether --enable-libtool-lock was given. 13937if test ${enable_libtool_lock+y} 13938then : 13939 enableval=$enable_libtool_lock; 13940fi 13941 13942test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13943 13944# Some flags need to be propagated to the compiler or linker for good 13945# libtool support. 13946case $host in 13947ia64-*-hpux*) 13948 # Find out what ABI is being produced by ac_compile, and set mode 13949 # options accordingly. 13950 echo 'int i;' > conftest.$ac_ext 13951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13952 (eval $ac_compile) 2>&5 13953 ac_status=$? 13954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13955 test $ac_status = 0; }; then 13956 case `$FILECMD conftest.$ac_objext` in 13957 *ELF-32*) 13958 HPUX_IA64_MODE=32 13959 ;; 13960 *ELF-64*) 13961 HPUX_IA64_MODE=64 13962 ;; 13963 esac 13964 fi 13965 rm -rf conftest* 13966 ;; 13967*-*-irix6*) 13968 # Find out what ABI is being produced by ac_compile, and set linker 13969 # options accordingly. 13970 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13972 (eval $ac_compile) 2>&5 13973 ac_status=$? 13974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13975 test $ac_status = 0; }; then 13976 if test yes = "$lt_cv_prog_gnu_ld"; then 13977 case `$FILECMD conftest.$ac_objext` in 13978 *32-bit*) 13979 LD="${LD-ld} -melf32bsmip" 13980 ;; 13981 *N32*) 13982 LD="${LD-ld} -melf32bmipn32" 13983 ;; 13984 *64-bit*) 13985 LD="${LD-ld} -melf64bmip" 13986 ;; 13987 esac 13988 else 13989 case `$FILECMD conftest.$ac_objext` in 13990 *32-bit*) 13991 LD="${LD-ld} -32" 13992 ;; 13993 *N32*) 13994 LD="${LD-ld} -n32" 13995 ;; 13996 *64-bit*) 13997 LD="${LD-ld} -64" 13998 ;; 13999 esac 14000 fi 14001 fi 14002 rm -rf conftest* 14003 ;; 14004 14005mips64*-*linux*) 14006 # Find out what ABI is being produced by ac_compile, and set linker 14007 # options accordingly. 14008 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14010 (eval $ac_compile) 2>&5 14011 ac_status=$? 14012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14013 test $ac_status = 0; }; then 14014 emul=elf 14015 case `$FILECMD conftest.$ac_objext` in 14016 *32-bit*) 14017 emul="${emul}32" 14018 ;; 14019 *64-bit*) 14020 emul="${emul}64" 14021 ;; 14022 esac 14023 case `$FILECMD conftest.$ac_objext` in 14024 *MSB*) 14025 emul="${emul}btsmip" 14026 ;; 14027 *LSB*) 14028 emul="${emul}ltsmip" 14029 ;; 14030 esac 14031 case `$FILECMD conftest.$ac_objext` in 14032 *N32*) 14033 emul="${emul}n32" 14034 ;; 14035 esac 14036 LD="${LD-ld} -m $emul" 14037 fi 14038 rm -rf conftest* 14039 ;; 14040 14041x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14042s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14043 # Find out what ABI is being produced by ac_compile, and set linker 14044 # options accordingly. Note that the listed cases only cover the 14045 # situations where additional linker options are needed (such as when 14046 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14047 # vice versa); the common cases where no linker options are needed do 14048 # not appear in the list. 14049 echo 'int i;' > conftest.$ac_ext 14050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14051 (eval $ac_compile) 2>&5 14052 ac_status=$? 14053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14054 test $ac_status = 0; }; then 14055 case `$FILECMD conftest.o` in 14056 *32-bit*) 14057 case $host in 14058 x86_64-*kfreebsd*-gnu) 14059 LD="${LD-ld} -m elf_i386_fbsd" 14060 ;; 14061 x86_64-*linux*) 14062 case `$FILECMD conftest.o` in 14063 *x86-64*) 14064 LD="${LD-ld} -m elf32_x86_64" 14065 ;; 14066 *) 14067 LD="${LD-ld} -m elf_i386" 14068 ;; 14069 esac 14070 ;; 14071 powerpc64le-*linux*) 14072 LD="${LD-ld} -m elf32lppclinux" 14073 ;; 14074 powerpc64-*linux*) 14075 LD="${LD-ld} -m elf32ppclinux" 14076 ;; 14077 s390x-*linux*) 14078 LD="${LD-ld} -m elf_s390" 14079 ;; 14080 sparc64-*linux*) 14081 LD="${LD-ld} -m elf32_sparc" 14082 ;; 14083 esac 14084 ;; 14085 *64-bit*) 14086 case $host in 14087 x86_64-*kfreebsd*-gnu) 14088 LD="${LD-ld} -m elf_x86_64_fbsd" 14089 ;; 14090 x86_64-*linux*) 14091 LD="${LD-ld} -m elf_x86_64" 14092 ;; 14093 powerpcle-*linux*) 14094 LD="${LD-ld} -m elf64lppc" 14095 ;; 14096 powerpc-*linux*) 14097 LD="${LD-ld} -m elf64ppc" 14098 ;; 14099 s390*-*linux*|s390*-*tpf*) 14100 LD="${LD-ld} -m elf64_s390" 14101 ;; 14102 sparc*-*linux*) 14103 LD="${LD-ld} -m elf64_sparc" 14104 ;; 14105 esac 14106 ;; 14107 esac 14108 fi 14109 rm -rf conftest* 14110 ;; 14111 14112*-*-sco3.2v5*) 14113 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14114 SAVE_CFLAGS=$CFLAGS 14115 CFLAGS="$CFLAGS -belf" 14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14117printf %s "checking whether the C compiler needs -belf... " >&6; } 14118if test ${lt_cv_cc_needs_belf+y} 14119then : 14120 printf %s "(cached) " >&6 14121else $as_nop 14122 ac_ext=c 14123ac_cpp='$CPP $CPPFLAGS' 14124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14126ac_compiler_gnu=$ac_cv_c_compiler_gnu 14127 14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14129/* end confdefs.h. */ 14130 14131int 14132main (void) 14133{ 14134 14135 ; 14136 return 0; 14137} 14138_ACEOF 14139if ac_fn_c_try_link "$LINENO" 14140then : 14141 lt_cv_cc_needs_belf=yes 14142else $as_nop 14143 lt_cv_cc_needs_belf=no 14144fi 14145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14146 conftest$ac_exeext conftest.$ac_ext 14147 ac_ext=c 14148ac_cpp='$CPP $CPPFLAGS' 14149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14151ac_compiler_gnu=$ac_cv_c_compiler_gnu 14152 14153fi 14154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14155printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14156 if test yes != "$lt_cv_cc_needs_belf"; then 14157 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14158 CFLAGS=$SAVE_CFLAGS 14159 fi 14160 ;; 14161*-*solaris*) 14162 # Find out what ABI is being produced by ac_compile, and set linker 14163 # options accordingly. 14164 echo 'int i;' > conftest.$ac_ext 14165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14166 (eval $ac_compile) 2>&5 14167 ac_status=$? 14168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14169 test $ac_status = 0; }; then 14170 case `$FILECMD conftest.o` in 14171 *64-bit*) 14172 case $lt_cv_prog_gnu_ld in 14173 yes*) 14174 case $host in 14175 i?86-*-solaris*|x86_64-*-solaris*) 14176 LD="${LD-ld} -m elf_x86_64" 14177 ;; 14178 sparc*-*-solaris*) 14179 LD="${LD-ld} -m elf64_sparc" 14180 ;; 14181 esac 14182 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14183 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14184 LD=${LD-ld}_sol2 14185 fi 14186 ;; 14187 *) 14188 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14189 LD="${LD-ld} -64" 14190 fi 14191 ;; 14192 esac 14193 ;; 14194 esac 14195 fi 14196 rm -rf conftest* 14197 ;; 14198esac 14199 14200need_locks=$enable_libtool_lock 14201 14202if test -n "$ac_tool_prefix"; then 14203 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14204set dummy ${ac_tool_prefix}mt; ac_word=$2 14205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14206printf %s "checking for $ac_word... " >&6; } 14207if test ${ac_cv_prog_MANIFEST_TOOL+y} 14208then : 14209 printf %s "(cached) " >&6 14210else $as_nop 14211 if test -n "$MANIFEST_TOOL"; then 14212 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14213else 14214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14215for as_dir in $PATH 14216do 14217 IFS=$as_save_IFS 14218 case $as_dir in #((( 14219 '') as_dir=./ ;; 14220 */) ;; 14221 *) as_dir=$as_dir/ ;; 14222 esac 14223 for ac_exec_ext in '' $ac_executable_extensions; do 14224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14225 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14227 break 2 14228 fi 14229done 14230 done 14231IFS=$as_save_IFS 14232 14233fi 14234fi 14235MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14236if test -n "$MANIFEST_TOOL"; then 14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14238printf "%s\n" "$MANIFEST_TOOL" >&6; } 14239else 14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14241printf "%s\n" "no" >&6; } 14242fi 14243 14244 14245fi 14246if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14247 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14248 # Extract the first word of "mt", so it can be a program name with args. 14249set dummy mt; ac_word=$2 14250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14251printf %s "checking for $ac_word... " >&6; } 14252if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14253then : 14254 printf %s "(cached) " >&6 14255else $as_nop 14256 if test -n "$ac_ct_MANIFEST_TOOL"; then 14257 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14258else 14259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14260for as_dir in $PATH 14261do 14262 IFS=$as_save_IFS 14263 case $as_dir in #((( 14264 '') as_dir=./ ;; 14265 */) ;; 14266 *) as_dir=$as_dir/ ;; 14267 esac 14268 for ac_exec_ext in '' $ac_executable_extensions; do 14269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14270 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14272 break 2 14273 fi 14274done 14275 done 14276IFS=$as_save_IFS 14277 14278fi 14279fi 14280ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14281if test -n "$ac_ct_MANIFEST_TOOL"; then 14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14283printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14284else 14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14286printf "%s\n" "no" >&6; } 14287fi 14288 14289 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14290 MANIFEST_TOOL=":" 14291 else 14292 case $cross_compiling:$ac_tool_warned in 14293yes:) 14294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14295printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14296ac_tool_warned=yes ;; 14297esac 14298 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14299 fi 14300else 14301 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14302fi 14303 14304test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14306printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14307if test ${lt_cv_path_mainfest_tool+y} 14308then : 14309 printf %s "(cached) " >&6 14310else $as_nop 14311 lt_cv_path_mainfest_tool=no 14312 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14313 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14314 cat conftest.err >&5 14315 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14316 lt_cv_path_mainfest_tool=yes 14317 fi 14318 rm -f conftest* 14319fi 14320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14321printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14322if test yes != "$lt_cv_path_mainfest_tool"; then 14323 MANIFEST_TOOL=: 14324fi 14325 14326 14327 14328 14329 14330 14331 case $host_os in 14332 rhapsody* | darwin*) 14333 if test -n "$ac_tool_prefix"; then 14334 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14335set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14337printf %s "checking for $ac_word... " >&6; } 14338if test ${ac_cv_prog_DSYMUTIL+y} 14339then : 14340 printf %s "(cached) " >&6 14341else $as_nop 14342 if test -n "$DSYMUTIL"; then 14343 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14344else 14345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14346for as_dir in $PATH 14347do 14348 IFS=$as_save_IFS 14349 case $as_dir in #((( 14350 '') as_dir=./ ;; 14351 */) ;; 14352 *) as_dir=$as_dir/ ;; 14353 esac 14354 for ac_exec_ext in '' $ac_executable_extensions; do 14355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14356 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14358 break 2 14359 fi 14360done 14361 done 14362IFS=$as_save_IFS 14363 14364fi 14365fi 14366DSYMUTIL=$ac_cv_prog_DSYMUTIL 14367if test -n "$DSYMUTIL"; then 14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14369printf "%s\n" "$DSYMUTIL" >&6; } 14370else 14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14372printf "%s\n" "no" >&6; } 14373fi 14374 14375 14376fi 14377if test -z "$ac_cv_prog_DSYMUTIL"; then 14378 ac_ct_DSYMUTIL=$DSYMUTIL 14379 # Extract the first word of "dsymutil", so it can be a program name with args. 14380set dummy dsymutil; ac_word=$2 14381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14382printf %s "checking for $ac_word... " >&6; } 14383if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14384then : 14385 printf %s "(cached) " >&6 14386else $as_nop 14387 if test -n "$ac_ct_DSYMUTIL"; then 14388 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14389else 14390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14391for as_dir in $PATH 14392do 14393 IFS=$as_save_IFS 14394 case $as_dir in #((( 14395 '') as_dir=./ ;; 14396 */) ;; 14397 *) as_dir=$as_dir/ ;; 14398 esac 14399 for ac_exec_ext in '' $ac_executable_extensions; do 14400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14401 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14403 break 2 14404 fi 14405done 14406 done 14407IFS=$as_save_IFS 14408 14409fi 14410fi 14411ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14412if test -n "$ac_ct_DSYMUTIL"; then 14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14414printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14415else 14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14417printf "%s\n" "no" >&6; } 14418fi 14419 14420 if test "x$ac_ct_DSYMUTIL" = x; then 14421 DSYMUTIL=":" 14422 else 14423 case $cross_compiling:$ac_tool_warned in 14424yes:) 14425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14426printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14427ac_tool_warned=yes ;; 14428esac 14429 DSYMUTIL=$ac_ct_DSYMUTIL 14430 fi 14431else 14432 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14433fi 14434 14435 if test -n "$ac_tool_prefix"; then 14436 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14437set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14439printf %s "checking for $ac_word... " >&6; } 14440if test ${ac_cv_prog_NMEDIT+y} 14441then : 14442 printf %s "(cached) " >&6 14443else $as_nop 14444 if test -n "$NMEDIT"; then 14445 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14446else 14447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14448for as_dir in $PATH 14449do 14450 IFS=$as_save_IFS 14451 case $as_dir in #((( 14452 '') as_dir=./ ;; 14453 */) ;; 14454 *) as_dir=$as_dir/ ;; 14455 esac 14456 for ac_exec_ext in '' $ac_executable_extensions; do 14457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14458 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14460 break 2 14461 fi 14462done 14463 done 14464IFS=$as_save_IFS 14465 14466fi 14467fi 14468NMEDIT=$ac_cv_prog_NMEDIT 14469if test -n "$NMEDIT"; then 14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14471printf "%s\n" "$NMEDIT" >&6; } 14472else 14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14474printf "%s\n" "no" >&6; } 14475fi 14476 14477 14478fi 14479if test -z "$ac_cv_prog_NMEDIT"; then 14480 ac_ct_NMEDIT=$NMEDIT 14481 # Extract the first word of "nmedit", so it can be a program name with args. 14482set dummy nmedit; ac_word=$2 14483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14484printf %s "checking for $ac_word... " >&6; } 14485if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14486then : 14487 printf %s "(cached) " >&6 14488else $as_nop 14489 if test -n "$ac_ct_NMEDIT"; then 14490 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14491else 14492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14493for as_dir in $PATH 14494do 14495 IFS=$as_save_IFS 14496 case $as_dir in #((( 14497 '') as_dir=./ ;; 14498 */) ;; 14499 *) as_dir=$as_dir/ ;; 14500 esac 14501 for ac_exec_ext in '' $ac_executable_extensions; do 14502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14503 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14505 break 2 14506 fi 14507done 14508 done 14509IFS=$as_save_IFS 14510 14511fi 14512fi 14513ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14514if test -n "$ac_ct_NMEDIT"; then 14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14516printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14517else 14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14519printf "%s\n" "no" >&6; } 14520fi 14521 14522 if test "x$ac_ct_NMEDIT" = x; then 14523 NMEDIT=":" 14524 else 14525 case $cross_compiling:$ac_tool_warned in 14526yes:) 14527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14528printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14529ac_tool_warned=yes ;; 14530esac 14531 NMEDIT=$ac_ct_NMEDIT 14532 fi 14533else 14534 NMEDIT="$ac_cv_prog_NMEDIT" 14535fi 14536 14537 if test -n "$ac_tool_prefix"; then 14538 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14539set dummy ${ac_tool_prefix}lipo; ac_word=$2 14540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14541printf %s "checking for $ac_word... " >&6; } 14542if test ${ac_cv_prog_LIPO+y} 14543then : 14544 printf %s "(cached) " >&6 14545else $as_nop 14546 if test -n "$LIPO"; then 14547 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14548else 14549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14550for as_dir in $PATH 14551do 14552 IFS=$as_save_IFS 14553 case $as_dir in #((( 14554 '') as_dir=./ ;; 14555 */) ;; 14556 *) as_dir=$as_dir/ ;; 14557 esac 14558 for ac_exec_ext in '' $ac_executable_extensions; do 14559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14560 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14562 break 2 14563 fi 14564done 14565 done 14566IFS=$as_save_IFS 14567 14568fi 14569fi 14570LIPO=$ac_cv_prog_LIPO 14571if test -n "$LIPO"; then 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14573printf "%s\n" "$LIPO" >&6; } 14574else 14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14576printf "%s\n" "no" >&6; } 14577fi 14578 14579 14580fi 14581if test -z "$ac_cv_prog_LIPO"; then 14582 ac_ct_LIPO=$LIPO 14583 # Extract the first word of "lipo", so it can be a program name with args. 14584set dummy lipo; ac_word=$2 14585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14586printf %s "checking for $ac_word... " >&6; } 14587if test ${ac_cv_prog_ac_ct_LIPO+y} 14588then : 14589 printf %s "(cached) " >&6 14590else $as_nop 14591 if test -n "$ac_ct_LIPO"; then 14592 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14593else 14594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14595for as_dir in $PATH 14596do 14597 IFS=$as_save_IFS 14598 case $as_dir in #((( 14599 '') as_dir=./ ;; 14600 */) ;; 14601 *) as_dir=$as_dir/ ;; 14602 esac 14603 for ac_exec_ext in '' $ac_executable_extensions; do 14604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14605 ac_cv_prog_ac_ct_LIPO="lipo" 14606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14607 break 2 14608 fi 14609done 14610 done 14611IFS=$as_save_IFS 14612 14613fi 14614fi 14615ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14616if test -n "$ac_ct_LIPO"; then 14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14618printf "%s\n" "$ac_ct_LIPO" >&6; } 14619else 14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14621printf "%s\n" "no" >&6; } 14622fi 14623 14624 if test "x$ac_ct_LIPO" = x; then 14625 LIPO=":" 14626 else 14627 case $cross_compiling:$ac_tool_warned in 14628yes:) 14629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14631ac_tool_warned=yes ;; 14632esac 14633 LIPO=$ac_ct_LIPO 14634 fi 14635else 14636 LIPO="$ac_cv_prog_LIPO" 14637fi 14638 14639 if test -n "$ac_tool_prefix"; then 14640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14641set dummy ${ac_tool_prefix}otool; ac_word=$2 14642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14643printf %s "checking for $ac_word... " >&6; } 14644if test ${ac_cv_prog_OTOOL+y} 14645then : 14646 printf %s "(cached) " >&6 14647else $as_nop 14648 if test -n "$OTOOL"; then 14649 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14650else 14651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14652for as_dir in $PATH 14653do 14654 IFS=$as_save_IFS 14655 case $as_dir in #((( 14656 '') as_dir=./ ;; 14657 */) ;; 14658 *) as_dir=$as_dir/ ;; 14659 esac 14660 for ac_exec_ext in '' $ac_executable_extensions; do 14661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14662 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14664 break 2 14665 fi 14666done 14667 done 14668IFS=$as_save_IFS 14669 14670fi 14671fi 14672OTOOL=$ac_cv_prog_OTOOL 14673if test -n "$OTOOL"; then 14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14675printf "%s\n" "$OTOOL" >&6; } 14676else 14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14678printf "%s\n" "no" >&6; } 14679fi 14680 14681 14682fi 14683if test -z "$ac_cv_prog_OTOOL"; then 14684 ac_ct_OTOOL=$OTOOL 14685 # Extract the first word of "otool", so it can be a program name with args. 14686set dummy otool; ac_word=$2 14687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14688printf %s "checking for $ac_word... " >&6; } 14689if test ${ac_cv_prog_ac_ct_OTOOL+y} 14690then : 14691 printf %s "(cached) " >&6 14692else $as_nop 14693 if test -n "$ac_ct_OTOOL"; then 14694 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14695else 14696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14697for as_dir in $PATH 14698do 14699 IFS=$as_save_IFS 14700 case $as_dir in #((( 14701 '') as_dir=./ ;; 14702 */) ;; 14703 *) as_dir=$as_dir/ ;; 14704 esac 14705 for ac_exec_ext in '' $ac_executable_extensions; do 14706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14707 ac_cv_prog_ac_ct_OTOOL="otool" 14708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14709 break 2 14710 fi 14711done 14712 done 14713IFS=$as_save_IFS 14714 14715fi 14716fi 14717ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14718if test -n "$ac_ct_OTOOL"; then 14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14720printf "%s\n" "$ac_ct_OTOOL" >&6; } 14721else 14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14723printf "%s\n" "no" >&6; } 14724fi 14725 14726 if test "x$ac_ct_OTOOL" = x; then 14727 OTOOL=":" 14728 else 14729 case $cross_compiling:$ac_tool_warned in 14730yes:) 14731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14732printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14733ac_tool_warned=yes ;; 14734esac 14735 OTOOL=$ac_ct_OTOOL 14736 fi 14737else 14738 OTOOL="$ac_cv_prog_OTOOL" 14739fi 14740 14741 if test -n "$ac_tool_prefix"; then 14742 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14743set dummy ${ac_tool_prefix}otool64; ac_word=$2 14744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14745printf %s "checking for $ac_word... " >&6; } 14746if test ${ac_cv_prog_OTOOL64+y} 14747then : 14748 printf %s "(cached) " >&6 14749else $as_nop 14750 if test -n "$OTOOL64"; then 14751 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14752else 14753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14754for as_dir in $PATH 14755do 14756 IFS=$as_save_IFS 14757 case $as_dir in #((( 14758 '') as_dir=./ ;; 14759 */) ;; 14760 *) as_dir=$as_dir/ ;; 14761 esac 14762 for ac_exec_ext in '' $ac_executable_extensions; do 14763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14764 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14766 break 2 14767 fi 14768done 14769 done 14770IFS=$as_save_IFS 14771 14772fi 14773fi 14774OTOOL64=$ac_cv_prog_OTOOL64 14775if test -n "$OTOOL64"; then 14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14777printf "%s\n" "$OTOOL64" >&6; } 14778else 14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14780printf "%s\n" "no" >&6; } 14781fi 14782 14783 14784fi 14785if test -z "$ac_cv_prog_OTOOL64"; then 14786 ac_ct_OTOOL64=$OTOOL64 14787 # Extract the first word of "otool64", so it can be a program name with args. 14788set dummy otool64; ac_word=$2 14789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14790printf %s "checking for $ac_word... " >&6; } 14791if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14792then : 14793 printf %s "(cached) " >&6 14794else $as_nop 14795 if test -n "$ac_ct_OTOOL64"; then 14796 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14797else 14798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14799for as_dir in $PATH 14800do 14801 IFS=$as_save_IFS 14802 case $as_dir in #((( 14803 '') as_dir=./ ;; 14804 */) ;; 14805 *) as_dir=$as_dir/ ;; 14806 esac 14807 for ac_exec_ext in '' $ac_executable_extensions; do 14808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14809 ac_cv_prog_ac_ct_OTOOL64="otool64" 14810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14811 break 2 14812 fi 14813done 14814 done 14815IFS=$as_save_IFS 14816 14817fi 14818fi 14819ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14820if test -n "$ac_ct_OTOOL64"; then 14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14822printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14823else 14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14825printf "%s\n" "no" >&6; } 14826fi 14827 14828 if test "x$ac_ct_OTOOL64" = x; then 14829 OTOOL64=":" 14830 else 14831 case $cross_compiling:$ac_tool_warned in 14832yes:) 14833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14835ac_tool_warned=yes ;; 14836esac 14837 OTOOL64=$ac_ct_OTOOL64 14838 fi 14839else 14840 OTOOL64="$ac_cv_prog_OTOOL64" 14841fi 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14870printf %s "checking for -single_module linker flag... " >&6; } 14871if test ${lt_cv_apple_cc_single_mod+y} 14872then : 14873 printf %s "(cached) " >&6 14874else $as_nop 14875 lt_cv_apple_cc_single_mod=no 14876 if test -z "$LT_MULTI_MODULE"; then 14877 # By default we will add the -single_module flag. You can override 14878 # by either setting the environment variable LT_MULTI_MODULE 14879 # non-empty at configure time, or by adding -multi_module to the 14880 # link flags. 14881 rm -rf libconftest.dylib* 14882 echo "int foo(void){return 1;}" > conftest.c 14883 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14884-dynamiclib -Wl,-single_module conftest.c" >&5 14885 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14886 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14887 _lt_result=$? 14888 # If there is a non-empty error log, and "single_module" 14889 # appears in it, assume the flag caused a linker warning 14890 if test -s conftest.err && $GREP single_module conftest.err; then 14891 cat conftest.err >&5 14892 # Otherwise, if the output was created with a 0 exit code from 14893 # the compiler, it worked. 14894 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14895 lt_cv_apple_cc_single_mod=yes 14896 else 14897 cat conftest.err >&5 14898 fi 14899 rm -rf libconftest.dylib* 14900 rm -f conftest.* 14901 fi 14902fi 14903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14904printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14905 14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14907printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14908if test ${lt_cv_ld_exported_symbols_list+y} 14909then : 14910 printf %s "(cached) " >&6 14911else $as_nop 14912 lt_cv_ld_exported_symbols_list=no 14913 save_LDFLAGS=$LDFLAGS 14914 echo "_main" > conftest.sym 14915 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917/* end confdefs.h. */ 14918 14919int 14920main (void) 14921{ 14922 14923 ; 14924 return 0; 14925} 14926_ACEOF 14927if ac_fn_c_try_link "$LINENO" 14928then : 14929 lt_cv_ld_exported_symbols_list=yes 14930else $as_nop 14931 lt_cv_ld_exported_symbols_list=no 14932fi 14933rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14934 conftest$ac_exeext conftest.$ac_ext 14935 LDFLAGS=$save_LDFLAGS 14936 14937fi 14938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14939printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14940 14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14942printf %s "checking for -force_load linker flag... " >&6; } 14943if test ${lt_cv_ld_force_load+y} 14944then : 14945 printf %s "(cached) " >&6 14946else $as_nop 14947 lt_cv_ld_force_load=no 14948 cat > conftest.c << _LT_EOF 14949int forced_loaded() { return 2;} 14950_LT_EOF 14951 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14952 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14953 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14954 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14955 echo "$RANLIB libconftest.a" >&5 14956 $RANLIB libconftest.a 2>&5 14957 cat > conftest.c << _LT_EOF 14958int main() { return 0;} 14959_LT_EOF 14960 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14961 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14962 _lt_result=$? 14963 if test -s conftest.err && $GREP force_load conftest.err; then 14964 cat conftest.err >&5 14965 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14966 lt_cv_ld_force_load=yes 14967 else 14968 cat conftest.err >&5 14969 fi 14970 rm -f conftest.err libconftest.a conftest conftest.c 14971 rm -rf conftest.dSYM 14972 14973fi 14974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14975printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14976 case $host_os in 14977 rhapsody* | darwin1.[012]) 14978 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14979 darwin1.*) 14980 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14981 darwin*) 14982 case $MACOSX_DEPLOYMENT_TARGET,$host in 14983 10.[012],*|,*powerpc*-darwin[5-8]*) 14984 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14985 *) 14986 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14987 esac 14988 ;; 14989 esac 14990 if test yes = "$lt_cv_apple_cc_single_mod"; then 14991 _lt_dar_single_mod='$single_module' 14992 fi 14993 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14994 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14995 else 14996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14997 fi 14998 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14999 _lt_dsymutil='~$DSYMUTIL $lib || :' 15000 else 15001 _lt_dsymutil= 15002 fi 15003 ;; 15004 esac 15005 15006# func_munge_path_list VARIABLE PATH 15007# ----------------------------------- 15008# VARIABLE is name of variable containing _space_ separated list of 15009# directories to be munged by the contents of PATH, which is string 15010# having a format: 15011# "DIR[:DIR]:" 15012# string "DIR[ DIR]" will be prepended to VARIABLE 15013# ":DIR[:DIR]" 15014# string "DIR[ DIR]" will be appended to VARIABLE 15015# "DIRP[:DIRP]::[DIRA:]DIRA" 15016# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15017# "DIRA[ DIRA]" will be appended to VARIABLE 15018# "DIR[:DIR]" 15019# VARIABLE will be replaced by "DIR[ DIR]" 15020func_munge_path_list () 15021{ 15022 case x$2 in 15023 x) 15024 ;; 15025 *:) 15026 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15027 ;; 15028 x:*) 15029 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15030 ;; 15031 *::*) 15032 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15033 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15034 ;; 15035 *) 15036 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15037 ;; 15038 esac 15039} 15040 15041ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15042" 15043if test "x$ac_cv_header_dlfcn_h" = xyes 15044then : 15045 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15046 15047fi 15048 15049 15050 15051 15052 15053# Set options 15054 15055 15056 15057 enable_dlopen=no 15058 15059 15060 enable_win32_dll=no 15061 15062 15063 # Check whether --enable-shared was given. 15064if test ${enable_shared+y} 15065then : 15066 enableval=$enable_shared; p=${PACKAGE-default} 15067 case $enableval in 15068 yes) enable_shared=yes ;; 15069 no) enable_shared=no ;; 15070 *) 15071 enable_shared=no 15072 # Look at the argument we got. We use all the common list separators. 15073 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15074 for pkg in $enableval; do 15075 IFS=$lt_save_ifs 15076 if test "X$pkg" = "X$p"; then 15077 enable_shared=yes 15078 fi 15079 done 15080 IFS=$lt_save_ifs 15081 ;; 15082 esac 15083else $as_nop 15084 enable_shared=yes 15085fi 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097# Check whether --with-pic was given. 15098if test ${with_pic+y} 15099then : 15100 withval=$with_pic; lt_p=${PACKAGE-default} 15101 case $withval in 15102 yes|no) pic_mode=$withval ;; 15103 *) 15104 pic_mode=default 15105 # Look at the argument we got. We use all the common list separators. 15106 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15107 for lt_pkg in $withval; do 15108 IFS=$lt_save_ifs 15109 if test "X$lt_pkg" = "X$lt_p"; then 15110 pic_mode=yes 15111 fi 15112 done 15113 IFS=$lt_save_ifs 15114 ;; 15115 esac 15116else $as_nop 15117 pic_mode=default 15118fi 15119 15120 15121 15122 15123 15124 15125 15126 15127 # Check whether --enable-fast-install was given. 15128if test ${enable_fast_install+y} 15129then : 15130 enableval=$enable_fast_install; p=${PACKAGE-default} 15131 case $enableval in 15132 yes) enable_fast_install=yes ;; 15133 no) enable_fast_install=no ;; 15134 *) 15135 enable_fast_install=no 15136 # Look at the argument we got. We use all the common list separators. 15137 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15138 for pkg in $enableval; do 15139 IFS=$lt_save_ifs 15140 if test "X$pkg" = "X$p"; then 15141 enable_fast_install=yes 15142 fi 15143 done 15144 IFS=$lt_save_ifs 15145 ;; 15146 esac 15147else $as_nop 15148 enable_fast_install=yes 15149fi 15150 15151 15152 15153 15154 15155 15156 15157 15158 shared_archive_member_spec= 15159case $host,$enable_shared in 15160power*-*-aix[5-9]*,yes) 15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15162printf %s "checking which variant of shared library versioning to provide... " >&6; } 15163 15164# Check whether --with-aix-soname was given. 15165if test ${with_aix_soname+y} 15166then : 15167 withval=$with_aix_soname; case $withval in 15168 aix|svr4|both) 15169 ;; 15170 *) 15171 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15172 ;; 15173 esac 15174 lt_cv_with_aix_soname=$with_aix_soname 15175else $as_nop 15176 if test ${lt_cv_with_aix_soname+y} 15177then : 15178 printf %s "(cached) " >&6 15179else $as_nop 15180 lt_cv_with_aix_soname=aix 15181fi 15182 15183 with_aix_soname=$lt_cv_with_aix_soname 15184fi 15185 15186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15187printf "%s\n" "$with_aix_soname" >&6; } 15188 if test aix != "$with_aix_soname"; then 15189 # For the AIX way of multilib, we name the shared archive member 15190 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15191 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15192 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15193 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15194 if test 64 = "${OBJECT_MODE-32}"; then 15195 shared_archive_member_spec=shr_64 15196 else 15197 shared_archive_member_spec=shr 15198 fi 15199 fi 15200 ;; 15201*) 15202 with_aix_soname=aix 15203 ;; 15204esac 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215# This can be used to rebuild libtool when needed 15216LIBTOOL_DEPS=$ltmain 15217 15218# Always use our own libtool. 15219LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250test -z "$LN_S" && LN_S="ln -s" 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265if test -n "${ZSH_VERSION+set}"; then 15266 setopt NO_GLOB_SUBST 15267fi 15268 15269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15270printf %s "checking for objdir... " >&6; } 15271if test ${lt_cv_objdir+y} 15272then : 15273 printf %s "(cached) " >&6 15274else $as_nop 15275 rm -f .libs 2>/dev/null 15276mkdir .libs 2>/dev/null 15277if test -d .libs; then 15278 lt_cv_objdir=.libs 15279else 15280 # MS-DOS does not allow filenames that begin with a dot. 15281 lt_cv_objdir=_libs 15282fi 15283rmdir .libs 2>/dev/null 15284fi 15285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15286printf "%s\n" "$lt_cv_objdir" >&6; } 15287objdir=$lt_cv_objdir 15288 15289 15290 15291 15292 15293printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15294 15295 15296 15297 15298case $host_os in 15299aix3*) 15300 # AIX sometimes has problems with the GCC collect2 program. For some 15301 # reason, if we set the COLLECT_NAMES environment variable, the problems 15302 # vanish in a puff of smoke. 15303 if test set != "${COLLECT_NAMES+set}"; then 15304 COLLECT_NAMES= 15305 export COLLECT_NAMES 15306 fi 15307 ;; 15308esac 15309 15310# Global variables: 15311ofile=libtool 15312can_build_shared=yes 15313 15314# All known linkers require a '.a' archive for static linking (except MSVC and 15315# ICC, which need '.lib'). 15316libext=a 15317 15318with_gnu_ld=$lt_cv_prog_gnu_ld 15319 15320old_CC=$CC 15321old_CFLAGS=$CFLAGS 15322 15323# Set sane defaults for various variables 15324test -z "$CC" && CC=cc 15325test -z "$LTCC" && LTCC=$CC 15326test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15327test -z "$LD" && LD=ld 15328test -z "$ac_objext" && ac_objext=o 15329 15330func_cc_basename $compiler 15331cc_basename=$func_cc_basename_result 15332 15333 15334# Only perform the check for file, if the check method requires it 15335test -z "$MAGIC_CMD" && MAGIC_CMD=file 15336case $deplibs_check_method in 15337file_magic*) 15338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15340printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15341if test ${lt_cv_path_MAGIC_CMD+y} 15342then : 15343 printf %s "(cached) " >&6 15344else $as_nop 15345 case $MAGIC_CMD in 15346[\\/*] | ?:[\\/]*) 15347 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15348 ;; 15349*) 15350 lt_save_MAGIC_CMD=$MAGIC_CMD 15351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15353 for ac_dir in $ac_dummy; do 15354 IFS=$lt_save_ifs 15355 test -z "$ac_dir" && ac_dir=. 15356 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15357 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15358 if test -n "$file_magic_test_file"; then 15359 case $deplibs_check_method in 15360 "file_magic "*) 15361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15362 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15364 $EGREP "$file_magic_regex" > /dev/null; then 15365 : 15366 else 15367 cat <<_LT_EOF 1>&2 15368 15369*** Warning: the command libtool uses to detect shared libraries, 15370*** $file_magic_cmd, produces output that libtool cannot recognize. 15371*** The result is that libtool may fail to recognize shared libraries 15372*** as such. This will affect the creation of libtool libraries that 15373*** depend on shared libraries, but programs linked with such libtool 15374*** libraries will work regardless of this problem. Nevertheless, you 15375*** may want to report the problem to your system manager and/or to 15376*** bug-libtool@gnu.org 15377 15378_LT_EOF 15379 fi ;; 15380 esac 15381 fi 15382 break 15383 fi 15384 done 15385 IFS=$lt_save_ifs 15386 MAGIC_CMD=$lt_save_MAGIC_CMD 15387 ;; 15388esac 15389fi 15390 15391MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15392if test -n "$MAGIC_CMD"; then 15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15394printf "%s\n" "$MAGIC_CMD" >&6; } 15395else 15396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15397printf "%s\n" "no" >&6; } 15398fi 15399 15400 15401 15402 15403 15404if test -z "$lt_cv_path_MAGIC_CMD"; then 15405 if test -n "$ac_tool_prefix"; then 15406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15407printf %s "checking for file... " >&6; } 15408if test ${lt_cv_path_MAGIC_CMD+y} 15409then : 15410 printf %s "(cached) " >&6 15411else $as_nop 15412 case $MAGIC_CMD in 15413[\\/*] | ?:[\\/]*) 15414 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15415 ;; 15416*) 15417 lt_save_MAGIC_CMD=$MAGIC_CMD 15418 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15419 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15420 for ac_dir in $ac_dummy; do 15421 IFS=$lt_save_ifs 15422 test -z "$ac_dir" && ac_dir=. 15423 if test -f "$ac_dir/file"; then 15424 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15425 if test -n "$file_magic_test_file"; then 15426 case $deplibs_check_method in 15427 "file_magic "*) 15428 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15429 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15430 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15431 $EGREP "$file_magic_regex" > /dev/null; then 15432 : 15433 else 15434 cat <<_LT_EOF 1>&2 15435 15436*** Warning: the command libtool uses to detect shared libraries, 15437*** $file_magic_cmd, produces output that libtool cannot recognize. 15438*** The result is that libtool may fail to recognize shared libraries 15439*** as such. This will affect the creation of libtool libraries that 15440*** depend on shared libraries, but programs linked with such libtool 15441*** libraries will work regardless of this problem. Nevertheless, you 15442*** may want to report the problem to your system manager and/or to 15443*** bug-libtool@gnu.org 15444 15445_LT_EOF 15446 fi ;; 15447 esac 15448 fi 15449 break 15450 fi 15451 done 15452 IFS=$lt_save_ifs 15453 MAGIC_CMD=$lt_save_MAGIC_CMD 15454 ;; 15455esac 15456fi 15457 15458MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15459if test -n "$MAGIC_CMD"; then 15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15461printf "%s\n" "$MAGIC_CMD" >&6; } 15462else 15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15464printf "%s\n" "no" >&6; } 15465fi 15466 15467 15468 else 15469 MAGIC_CMD=: 15470 fi 15471fi 15472 15473 fi 15474 ;; 15475esac 15476 15477# Use C for the default configuration in the libtool script 15478 15479lt_save_CC=$CC 15480ac_ext=c 15481ac_cpp='$CPP $CPPFLAGS' 15482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15484ac_compiler_gnu=$ac_cv_c_compiler_gnu 15485 15486 15487# Source file extension for C test sources. 15488ac_ext=c 15489 15490# Object file extension for compiled C test sources. 15491objext=o 15492objext=$objext 15493 15494# Code to be used in simple compile tests 15495lt_simple_compile_test_code="int some_variable = 0;" 15496 15497# Code to be used in simple link tests 15498lt_simple_link_test_code='int main(){return(0);}' 15499 15500 15501 15502 15503 15504 15505 15506# If no C compiler was specified, use CC. 15507LTCC=${LTCC-"$CC"} 15508 15509# If no C compiler flags were specified, use CFLAGS. 15510LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15511 15512# Allow CC to be a program name with arguments. 15513compiler=$CC 15514 15515# Save the default compiler, since it gets overwritten when the other 15516# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15517compiler_DEFAULT=$CC 15518 15519# save warnings/boilerplate of simple test code 15520ac_outfile=conftest.$ac_objext 15521echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15522eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15523_lt_compiler_boilerplate=`cat conftest.err` 15524$RM conftest* 15525 15526ac_outfile=conftest.$ac_objext 15527echo "$lt_simple_link_test_code" >conftest.$ac_ext 15528eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15529_lt_linker_boilerplate=`cat conftest.err` 15530$RM -r conftest* 15531 15532 15533if test -n "$compiler"; then 15534 15535lt_prog_compiler_no_builtin_flag= 15536 15537if test yes = "$GCC"; then 15538 case $cc_basename in 15539 nvcc*) 15540 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15541 *) 15542 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15543 esac 15544 15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15546printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15547if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15548then : 15549 printf %s "(cached) " >&6 15550else $as_nop 15551 lt_cv_prog_compiler_rtti_exceptions=no 15552 ac_outfile=conftest.$ac_objext 15553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15554 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15555 # Insert the option either (1) after the last *FLAGS variable, or 15556 # (2) before a word containing "conftest.", or (3) at the end. 15557 # Note that $ac_compile itself does not contain backslashes and begins 15558 # with a dollar sign (not a hyphen), so the echo should work correctly. 15559 # The option is referenced via a variable to avoid confusing sed. 15560 lt_compile=`echo "$ac_compile" | $SED \ 15561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15563 -e 's:$: $lt_compiler_flag:'` 15564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15565 (eval "$lt_compile" 2>conftest.err) 15566 ac_status=$? 15567 cat conftest.err >&5 15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15569 if (exit $ac_status) && test -s "$ac_outfile"; then 15570 # The compiler can only warn and ignore the option if not recognized 15571 # So say no if there are warnings other than the usual output. 15572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15575 lt_cv_prog_compiler_rtti_exceptions=yes 15576 fi 15577 fi 15578 $RM conftest* 15579 15580fi 15581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15582printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15583 15584if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15585 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15586else 15587 : 15588fi 15589 15590fi 15591 15592 15593 15594 15595 15596 15597 lt_prog_compiler_wl= 15598lt_prog_compiler_pic= 15599lt_prog_compiler_static= 15600 15601 15602 if test yes = "$GCC"; then 15603 lt_prog_compiler_wl='-Wl,' 15604 lt_prog_compiler_static='-static' 15605 15606 case $host_os in 15607 aix*) 15608 # All AIX code is PIC. 15609 if test ia64 = "$host_cpu"; then 15610 # AIX 5 now supports IA64 processor 15611 lt_prog_compiler_static='-Bstatic' 15612 fi 15613 lt_prog_compiler_pic='-fPIC' 15614 ;; 15615 15616 amigaos*) 15617 case $host_cpu in 15618 powerpc) 15619 # see comment about AmigaOS4 .so support 15620 lt_prog_compiler_pic='-fPIC' 15621 ;; 15622 m68k) 15623 # FIXME: we need at least 68020 code to build shared libraries, but 15624 # adding the '-m68020' flag to GCC prevents building anything better, 15625 # like '-m68040'. 15626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15627 ;; 15628 esac 15629 ;; 15630 15631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15632 # PIC is the default for these OSes. 15633 ;; 15634 15635 mingw* | cygwin* | pw32* | os2* | cegcc*) 15636 # This hack is so that the source file can tell whether it is being 15637 # built for inclusion in a dll (and should export symbols for example). 15638 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15639 # (--disable-auto-import) libraries 15640 lt_prog_compiler_pic='-DDLL_EXPORT' 15641 case $host_os in 15642 os2*) 15643 lt_prog_compiler_static='$wl-static' 15644 ;; 15645 esac 15646 ;; 15647 15648 darwin* | rhapsody*) 15649 # PIC is the default on this platform 15650 # Common symbols not allowed in MH_DYLIB files 15651 lt_prog_compiler_pic='-fno-common' 15652 ;; 15653 15654 haiku*) 15655 # PIC is the default for Haiku. 15656 # The "-static" flag exists, but is broken. 15657 lt_prog_compiler_static= 15658 ;; 15659 15660 hpux*) 15661 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15662 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15663 # sets the default TLS model and affects inlining. 15664 case $host_cpu in 15665 hppa*64*) 15666 # +Z the default 15667 ;; 15668 *) 15669 lt_prog_compiler_pic='-fPIC' 15670 ;; 15671 esac 15672 ;; 15673 15674 interix[3-9]*) 15675 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15676 # Instead, we relocate shared libraries at runtime. 15677 ;; 15678 15679 msdosdjgpp*) 15680 # Just because we use GCC doesn't mean we suddenly get shared libraries 15681 # on systems that don't support them. 15682 lt_prog_compiler_can_build_shared=no 15683 enable_shared=no 15684 ;; 15685 15686 *nto* | *qnx*) 15687 # QNX uses GNU C++, but need to define -shared option too, otherwise 15688 # it will coredump. 15689 lt_prog_compiler_pic='-fPIC -shared' 15690 ;; 15691 15692 sysv4*MP*) 15693 if test -d /usr/nec; then 15694 lt_prog_compiler_pic=-Kconform_pic 15695 fi 15696 ;; 15697 15698 *) 15699 lt_prog_compiler_pic='-fPIC' 15700 ;; 15701 esac 15702 15703 case $cc_basename in 15704 nvcc*) # Cuda Compiler Driver 2.2 15705 lt_prog_compiler_wl='-Xlinker ' 15706 if test -n "$lt_prog_compiler_pic"; then 15707 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15708 fi 15709 ;; 15710 esac 15711 else 15712 # PORTME Check for flag to pass linker flags through the system compiler. 15713 case $host_os in 15714 aix*) 15715 lt_prog_compiler_wl='-Wl,' 15716 if test ia64 = "$host_cpu"; then 15717 # AIX 5 now supports IA64 processor 15718 lt_prog_compiler_static='-Bstatic' 15719 else 15720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15721 fi 15722 ;; 15723 15724 darwin* | rhapsody*) 15725 # PIC is the default on this platform 15726 # Common symbols not allowed in MH_DYLIB files 15727 lt_prog_compiler_pic='-fno-common' 15728 case $cc_basename in 15729 nagfor*) 15730 # NAG Fortran compiler 15731 lt_prog_compiler_wl='-Wl,-Wl,,' 15732 lt_prog_compiler_pic='-PIC' 15733 lt_prog_compiler_static='-Bstatic' 15734 ;; 15735 esac 15736 ;; 15737 15738 mingw* | cygwin* | pw32* | os2* | cegcc*) 15739 # This hack is so that the source file can tell whether it is being 15740 # built for inclusion in a dll (and should export symbols for example). 15741 lt_prog_compiler_pic='-DDLL_EXPORT' 15742 case $host_os in 15743 os2*) 15744 lt_prog_compiler_static='$wl-static' 15745 ;; 15746 esac 15747 ;; 15748 15749 hpux9* | hpux10* | hpux11*) 15750 lt_prog_compiler_wl='-Wl,' 15751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15752 # not for PA HP-UX. 15753 case $host_cpu in 15754 hppa*64*|ia64*) 15755 # +Z the default 15756 ;; 15757 *) 15758 lt_prog_compiler_pic='+Z' 15759 ;; 15760 esac 15761 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15762 lt_prog_compiler_static='$wl-a ${wl}archive' 15763 ;; 15764 15765 irix5* | irix6* | nonstopux*) 15766 lt_prog_compiler_wl='-Wl,' 15767 # PIC (with -KPIC) is the default. 15768 lt_prog_compiler_static='-non_shared' 15769 ;; 15770 15771 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15772 case $cc_basename in 15773 # old Intel for x86_64, which still supported -KPIC. 15774 ecc*) 15775 lt_prog_compiler_wl='-Wl,' 15776 lt_prog_compiler_pic='-KPIC' 15777 lt_prog_compiler_static='-static' 15778 ;; 15779 # icc used to be incompatible with GCC. 15780 # ICC 10 doesn't accept -KPIC any more. 15781 icc* | ifort*) 15782 lt_prog_compiler_wl='-Wl,' 15783 lt_prog_compiler_pic='-fPIC' 15784 lt_prog_compiler_static='-static' 15785 ;; 15786 # Lahey Fortran 8.1. 15787 lf95*) 15788 lt_prog_compiler_wl='-Wl,' 15789 lt_prog_compiler_pic='--shared' 15790 lt_prog_compiler_static='--static' 15791 ;; 15792 nagfor*) 15793 # NAG Fortran compiler 15794 lt_prog_compiler_wl='-Wl,-Wl,,' 15795 lt_prog_compiler_pic='-PIC' 15796 lt_prog_compiler_static='-Bstatic' 15797 ;; 15798 tcc*) 15799 # Fabrice Bellard et al's Tiny C Compiler 15800 lt_prog_compiler_wl='-Wl,' 15801 lt_prog_compiler_pic='-fPIC' 15802 lt_prog_compiler_static='-static' 15803 ;; 15804 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15805 # Portland Group compilers (*not* the Pentium gcc compiler, 15806 # which looks to be a dead project) 15807 lt_prog_compiler_wl='-Wl,' 15808 lt_prog_compiler_pic='-fpic' 15809 lt_prog_compiler_static='-Bstatic' 15810 ;; 15811 ccc*) 15812 lt_prog_compiler_wl='-Wl,' 15813 # All Alpha code is PIC. 15814 lt_prog_compiler_static='-non_shared' 15815 ;; 15816 xl* | bgxl* | bgf* | mpixl*) 15817 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15818 lt_prog_compiler_wl='-Wl,' 15819 lt_prog_compiler_pic='-qpic' 15820 lt_prog_compiler_static='-qstaticlink' 15821 ;; 15822 *) 15823 case `$CC -V 2>&1 | $SED 5q` in 15824 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15825 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15826 lt_prog_compiler_pic='-KPIC' 15827 lt_prog_compiler_static='-Bstatic' 15828 lt_prog_compiler_wl='' 15829 ;; 15830 *Sun\ F* | *Sun*Fortran*) 15831 lt_prog_compiler_pic='-KPIC' 15832 lt_prog_compiler_static='-Bstatic' 15833 lt_prog_compiler_wl='-Qoption ld ' 15834 ;; 15835 *Sun\ C*) 15836 # Sun C 5.9 15837 lt_prog_compiler_pic='-KPIC' 15838 lt_prog_compiler_static='-Bstatic' 15839 lt_prog_compiler_wl='-Wl,' 15840 ;; 15841 *Intel*\ [CF]*Compiler*) 15842 lt_prog_compiler_wl='-Wl,' 15843 lt_prog_compiler_pic='-fPIC' 15844 lt_prog_compiler_static='-static' 15845 ;; 15846 *Portland\ Group*) 15847 lt_prog_compiler_wl='-Wl,' 15848 lt_prog_compiler_pic='-fpic' 15849 lt_prog_compiler_static='-Bstatic' 15850 ;; 15851 esac 15852 ;; 15853 esac 15854 ;; 15855 15856 newsos6) 15857 lt_prog_compiler_pic='-KPIC' 15858 lt_prog_compiler_static='-Bstatic' 15859 ;; 15860 15861 *nto* | *qnx*) 15862 # QNX uses GNU C++, but need to define -shared option too, otherwise 15863 # it will coredump. 15864 lt_prog_compiler_pic='-fPIC -shared' 15865 ;; 15866 15867 osf3* | osf4* | osf5*) 15868 lt_prog_compiler_wl='-Wl,' 15869 # All OSF/1 code is PIC. 15870 lt_prog_compiler_static='-non_shared' 15871 ;; 15872 15873 rdos*) 15874 lt_prog_compiler_static='-non_shared' 15875 ;; 15876 15877 solaris*) 15878 lt_prog_compiler_pic='-KPIC' 15879 lt_prog_compiler_static='-Bstatic' 15880 case $cc_basename in 15881 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15882 lt_prog_compiler_wl='-Qoption ld ';; 15883 *) 15884 lt_prog_compiler_wl='-Wl,';; 15885 esac 15886 ;; 15887 15888 sunos4*) 15889 lt_prog_compiler_wl='-Qoption ld ' 15890 lt_prog_compiler_pic='-PIC' 15891 lt_prog_compiler_static='-Bstatic' 15892 ;; 15893 15894 sysv4 | sysv4.2uw2* | sysv4.3*) 15895 lt_prog_compiler_wl='-Wl,' 15896 lt_prog_compiler_pic='-KPIC' 15897 lt_prog_compiler_static='-Bstatic' 15898 ;; 15899 15900 sysv4*MP*) 15901 if test -d /usr/nec; then 15902 lt_prog_compiler_pic='-Kconform_pic' 15903 lt_prog_compiler_static='-Bstatic' 15904 fi 15905 ;; 15906 15907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15908 lt_prog_compiler_wl='-Wl,' 15909 lt_prog_compiler_pic='-KPIC' 15910 lt_prog_compiler_static='-Bstatic' 15911 ;; 15912 15913 unicos*) 15914 lt_prog_compiler_wl='-Wl,' 15915 lt_prog_compiler_can_build_shared=no 15916 ;; 15917 15918 uts4*) 15919 lt_prog_compiler_pic='-pic' 15920 lt_prog_compiler_static='-Bstatic' 15921 ;; 15922 15923 *) 15924 lt_prog_compiler_can_build_shared=no 15925 ;; 15926 esac 15927 fi 15928 15929case $host_os in 15930 # For platforms that do not support PIC, -DPIC is meaningless: 15931 *djgpp*) 15932 lt_prog_compiler_pic= 15933 ;; 15934 *) 15935 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15936 ;; 15937esac 15938 15939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15940printf %s "checking for $compiler option to produce PIC... " >&6; } 15941if test ${lt_cv_prog_compiler_pic+y} 15942then : 15943 printf %s "(cached) " >&6 15944else $as_nop 15945 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15946fi 15947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15948printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15949lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15950 15951# 15952# Check to make sure the PIC flag actually works. 15953# 15954if test -n "$lt_prog_compiler_pic"; then 15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15956printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15957if test ${lt_cv_prog_compiler_pic_works+y} 15958then : 15959 printf %s "(cached) " >&6 15960else $as_nop 15961 lt_cv_prog_compiler_pic_works=no 15962 ac_outfile=conftest.$ac_objext 15963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15965 # Insert the option either (1) after the last *FLAGS variable, or 15966 # (2) before a word containing "conftest.", or (3) at the end. 15967 # Note that $ac_compile itself does not contain backslashes and begins 15968 # with a dollar sign (not a hyphen), so the echo should work correctly. 15969 # The option is referenced via a variable to avoid confusing sed. 15970 lt_compile=`echo "$ac_compile" | $SED \ 15971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15973 -e 's:$: $lt_compiler_flag:'` 15974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15975 (eval "$lt_compile" 2>conftest.err) 15976 ac_status=$? 15977 cat conftest.err >&5 15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15979 if (exit $ac_status) && test -s "$ac_outfile"; then 15980 # The compiler can only warn and ignore the option if not recognized 15981 # So say no if there are warnings other than the usual output. 15982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15985 lt_cv_prog_compiler_pic_works=yes 15986 fi 15987 fi 15988 $RM conftest* 15989 15990fi 15991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15992printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15993 15994if test yes = "$lt_cv_prog_compiler_pic_works"; then 15995 case $lt_prog_compiler_pic in 15996 "" | " "*) ;; 15997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15998 esac 15999else 16000 lt_prog_compiler_pic= 16001 lt_prog_compiler_can_build_shared=no 16002fi 16003 16004fi 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016# 16017# Check to make sure the static flag actually works. 16018# 16019wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16021printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16022if test ${lt_cv_prog_compiler_static_works+y} 16023then : 16024 printf %s "(cached) " >&6 16025else $as_nop 16026 lt_cv_prog_compiler_static_works=no 16027 save_LDFLAGS=$LDFLAGS 16028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16029 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16031 # The linker can only warn and ignore the option if not recognized 16032 # So say no if there are warnings 16033 if test -s conftest.err; then 16034 # Append any errors to the config.log. 16035 cat conftest.err 1>&5 16036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16038 if diff conftest.exp conftest.er2 >/dev/null; then 16039 lt_cv_prog_compiler_static_works=yes 16040 fi 16041 else 16042 lt_cv_prog_compiler_static_works=yes 16043 fi 16044 fi 16045 $RM -r conftest* 16046 LDFLAGS=$save_LDFLAGS 16047 16048fi 16049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16050printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16051 16052if test yes = "$lt_cv_prog_compiler_static_works"; then 16053 : 16054else 16055 lt_prog_compiler_static= 16056fi 16057 16058 16059 16060 16061 16062 16063 16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16065printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16066if test ${lt_cv_prog_compiler_c_o+y} 16067then : 16068 printf %s "(cached) " >&6 16069else $as_nop 16070 lt_cv_prog_compiler_c_o=no 16071 $RM -r conftest 2>/dev/null 16072 mkdir conftest 16073 cd conftest 16074 mkdir out 16075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16076 16077 lt_compiler_flag="-o out/conftest2.$ac_objext" 16078 # Insert the option either (1) after the last *FLAGS variable, or 16079 # (2) before a word containing "conftest.", or (3) at the end. 16080 # Note that $ac_compile itself does not contain backslashes and begins 16081 # with a dollar sign (not a hyphen), so the echo should work correctly. 16082 lt_compile=`echo "$ac_compile" | $SED \ 16083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16085 -e 's:$: $lt_compiler_flag:'` 16086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16087 (eval "$lt_compile" 2>out/conftest.err) 16088 ac_status=$? 16089 cat out/conftest.err >&5 16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16091 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16092 then 16093 # The compiler can only warn and ignore the option if not recognized 16094 # So say no if there are warnings 16095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16098 lt_cv_prog_compiler_c_o=yes 16099 fi 16100 fi 16101 chmod u+w . 2>&5 16102 $RM conftest* 16103 # SGI C++ compiler will create directory out/ii_files/ for 16104 # template instantiation 16105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16106 $RM out/* && rmdir out 16107 cd .. 16108 $RM -r conftest 16109 $RM conftest* 16110 16111fi 16112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16113printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16114 16115 16116 16117 16118 16119 16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16121printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16122if test ${lt_cv_prog_compiler_c_o+y} 16123then : 16124 printf %s "(cached) " >&6 16125else $as_nop 16126 lt_cv_prog_compiler_c_o=no 16127 $RM -r conftest 2>/dev/null 16128 mkdir conftest 16129 cd conftest 16130 mkdir out 16131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16132 16133 lt_compiler_flag="-o out/conftest2.$ac_objext" 16134 # Insert the option either (1) after the last *FLAGS variable, or 16135 # (2) before a word containing "conftest.", or (3) at the end. 16136 # Note that $ac_compile itself does not contain backslashes and begins 16137 # with a dollar sign (not a hyphen), so the echo should work correctly. 16138 lt_compile=`echo "$ac_compile" | $SED \ 16139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16141 -e 's:$: $lt_compiler_flag:'` 16142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16143 (eval "$lt_compile" 2>out/conftest.err) 16144 ac_status=$? 16145 cat out/conftest.err >&5 16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16147 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16148 then 16149 # The compiler can only warn and ignore the option if not recognized 16150 # So say no if there are warnings 16151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16154 lt_cv_prog_compiler_c_o=yes 16155 fi 16156 fi 16157 chmod u+w . 2>&5 16158 $RM conftest* 16159 # SGI C++ compiler will create directory out/ii_files/ for 16160 # template instantiation 16161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16162 $RM out/* && rmdir out 16163 cd .. 16164 $RM -r conftest 16165 $RM conftest* 16166 16167fi 16168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16169printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16170 16171 16172 16173 16174hard_links=nottested 16175if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16176 # do not overwrite the value of need_locks provided by the user 16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16178printf %s "checking if we can lock with hard links... " >&6; } 16179 hard_links=yes 16180 $RM conftest* 16181 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16182 touch conftest.a 16183 ln conftest.a conftest.b 2>&5 || hard_links=no 16184 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16186printf "%s\n" "$hard_links" >&6; } 16187 if test no = "$hard_links"; then 16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16189printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16190 need_locks=warn 16191 fi 16192else 16193 need_locks=no 16194fi 16195 16196 16197 16198 16199 16200 16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16202printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16203 16204 runpath_var= 16205 allow_undefined_flag= 16206 always_export_symbols=no 16207 archive_cmds= 16208 archive_expsym_cmds= 16209 compiler_needs_object=no 16210 enable_shared_with_static_runtimes=no 16211 export_dynamic_flag_spec= 16212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16213 hardcode_automatic=no 16214 hardcode_direct=no 16215 hardcode_direct_absolute=no 16216 hardcode_libdir_flag_spec= 16217 hardcode_libdir_separator= 16218 hardcode_minus_L=no 16219 hardcode_shlibpath_var=unsupported 16220 inherit_rpath=no 16221 link_all_deplibs=unknown 16222 module_cmds= 16223 module_expsym_cmds= 16224 old_archive_from_new_cmds= 16225 old_archive_from_expsyms_cmds= 16226 thread_safe_flag_spec= 16227 whole_archive_flag_spec= 16228 # include_expsyms should be a list of space-separated symbols to be *always* 16229 # included in the symbol list 16230 include_expsyms= 16231 # exclude_expsyms can be an extended regexp of symbols to exclude 16232 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16233 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16234 # as well as any symbol that contains 'd'. 16235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16237 # platforms (ab)use it in PIC code, but their linkers get confused if 16238 # the symbol is explicitly referenced. Since portable code cannot 16239 # rely on this symbol name, it's probably fine to never include it in 16240 # preloaded symbol tables. 16241 # Exclude shared library initialization/finalization symbols. 16242 extract_expsyms_cmds= 16243 16244 case $host_os in 16245 cygwin* | mingw* | pw32* | cegcc*) 16246 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16247 # When not using gcc, we currently assume that we are using 16248 # Microsoft Visual C++ or Intel C++ Compiler. 16249 if test yes != "$GCC"; then 16250 with_gnu_ld=no 16251 fi 16252 ;; 16253 interix*) 16254 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16255 with_gnu_ld=yes 16256 ;; 16257 openbsd* | bitrig*) 16258 with_gnu_ld=no 16259 ;; 16260 esac 16261 16262 ld_shlibs=yes 16263 16264 # On some targets, GNU ld is compatible enough with the native linker 16265 # that we're better off using the native interface for both. 16266 lt_use_gnu_ld_interface=no 16267 if test yes = "$with_gnu_ld"; then 16268 case $host_os in 16269 aix*) 16270 # The AIX port of GNU ld has always aspired to compatibility 16271 # with the native linker. However, as the warning in the GNU ld 16272 # block says, versions before 2.19.5* couldn't really create working 16273 # shared libraries, regardless of the interface used. 16274 case `$LD -v 2>&1` in 16275 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16276 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16277 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16278 *) 16279 lt_use_gnu_ld_interface=yes 16280 ;; 16281 esac 16282 ;; 16283 *) 16284 lt_use_gnu_ld_interface=yes 16285 ;; 16286 esac 16287 fi 16288 16289 if test yes = "$lt_use_gnu_ld_interface"; then 16290 # If archive_cmds runs LD, not CC, wlarc should be empty 16291 wlarc='$wl' 16292 16293 # Set some defaults for GNU ld with shared library support. These 16294 # are reset later if shared libraries are not supported. Putting them 16295 # here allows them to be overridden if necessary. 16296 runpath_var=LD_RUN_PATH 16297 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16298 export_dynamic_flag_spec='$wl--export-dynamic' 16299 # ancient GNU ld didn't support --whole-archive et. al. 16300 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16301 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16302 else 16303 whole_archive_flag_spec= 16304 fi 16305 supports_anon_versioning=no 16306 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16307 *GNU\ gold*) supports_anon_versioning=yes ;; 16308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16311 *\ 2.11.*) ;; # other 2.11 versions 16312 *) supports_anon_versioning=yes ;; 16313 esac 16314 16315 # See if GNU ld supports shared libraries. 16316 case $host_os in 16317 aix[3-9]*) 16318 # On AIX/PPC, the GNU linker is very broken 16319 if test ia64 != "$host_cpu"; then 16320 ld_shlibs=no 16321 cat <<_LT_EOF 1>&2 16322 16323*** Warning: the GNU linker, at least up to release 2.19, is reported 16324*** to be unable to reliably create shared libraries on AIX. 16325*** Therefore, libtool is disabling shared libraries support. If you 16326*** really care for shared libraries, you may want to install binutils 16327*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16328*** You will then need to restart the configuration process. 16329 16330_LT_EOF 16331 fi 16332 ;; 16333 16334 amigaos*) 16335 case $host_cpu in 16336 powerpc) 16337 # see comment about AmigaOS4 .so support 16338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16339 archive_expsym_cmds='' 16340 ;; 16341 m68k) 16342 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)' 16343 hardcode_libdir_flag_spec='-L$libdir' 16344 hardcode_minus_L=yes 16345 ;; 16346 esac 16347 ;; 16348 16349 beos*) 16350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16351 allow_undefined_flag=unsupported 16352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16353 # support --undefined. This deserves some investigation. FIXME 16354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16355 else 16356 ld_shlibs=no 16357 fi 16358 ;; 16359 16360 cygwin* | mingw* | pw32* | cegcc*) 16361 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16362 # as there is no search path for DLLs. 16363 hardcode_libdir_flag_spec='-L$libdir' 16364 export_dynamic_flag_spec='$wl--export-all-symbols' 16365 allow_undefined_flag=unsupported 16366 always_export_symbols=no 16367 enable_shared_with_static_runtimes=yes 16368 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' 16369 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16370 16371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16373 # If the export-symbols file already is a .def file, use it as 16374 # is; otherwise, prepend EXPORTS... 16375 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16376 cp $export_symbols $output_objdir/$soname.def; 16377 else 16378 echo EXPORTS > $output_objdir/$soname.def; 16379 cat $export_symbols >> $output_objdir/$soname.def; 16380 fi~ 16381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16382 else 16383 ld_shlibs=no 16384 fi 16385 ;; 16386 16387 haiku*) 16388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16389 link_all_deplibs=yes 16390 ;; 16391 16392 os2*) 16393 hardcode_libdir_flag_spec='-L$libdir' 16394 hardcode_minus_L=yes 16395 allow_undefined_flag=unsupported 16396 shrext_cmds=.dll 16397 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16398 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16399 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16400 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16401 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16402 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16403 emximp -o $lib $output_objdir/$libname.def' 16404 archive_expsym_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 prefix_cmds="$SED"~ 16409 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16410 prefix_cmds="$prefix_cmds -e 1d"; 16411 fi~ 16412 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16413 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16414 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16415 emximp -o $lib $output_objdir/$libname.def' 16416 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16417 enable_shared_with_static_runtimes=yes 16418 file_list_spec='@' 16419 ;; 16420 16421 interix[3-9]*) 16422 hardcode_direct=no 16423 hardcode_shlibpath_var=no 16424 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16425 export_dynamic_flag_spec='$wl-E' 16426 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16427 # Instead, shared libraries are loaded at an image base (0x10000000 by 16428 # default) and relocated if they conflict, which is a slow very memory 16429 # consuming and fragmenting process. To avoid this, we pick a random, 16430 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16431 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16433 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' 16434 ;; 16435 16436 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16437 tmp_diet=no 16438 if test linux-dietlibc = "$host_os"; then 16439 case $cc_basename in 16440 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16441 esac 16442 fi 16443 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16444 && test no = "$tmp_diet" 16445 then 16446 tmp_addflag=' $pic_flag' 16447 tmp_sharedflag='-shared' 16448 case $cc_basename,$host_cpu in 16449 pgcc*) # Portland Group C compiler 16450 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' 16451 tmp_addflag=' $pic_flag' 16452 ;; 16453 pgf77* | pgf90* | pgf95* | pgfortran*) 16454 # Portland Group f77 and f90 compilers 16455 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' 16456 tmp_addflag=' $pic_flag -Mnomain' ;; 16457 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16458 tmp_addflag=' -i_dynamic' ;; 16459 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16460 tmp_addflag=' -i_dynamic -nofor_main' ;; 16461 ifc* | ifort*) # Intel Fortran compiler 16462 tmp_addflag=' -nofor_main' ;; 16463 lf95*) # Lahey Fortran 8.1 16464 whole_archive_flag_spec= 16465 tmp_sharedflag='--shared' ;; 16466 nagfor*) # NAGFOR 5.3 16467 tmp_sharedflag='-Wl,-shared' ;; 16468 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16469 tmp_sharedflag='-qmkshrobj' 16470 tmp_addflag= ;; 16471 nvcc*) # Cuda Compiler Driver 2.2 16472 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' 16473 compiler_needs_object=yes 16474 ;; 16475 esac 16476 case `$CC -V 2>&1 | $SED 5q` in 16477 *Sun\ C*) # Sun C 5.9 16478 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' 16479 compiler_needs_object=yes 16480 tmp_sharedflag='-G' ;; 16481 *Sun\ F*) # Sun Fortran 8.3 16482 tmp_sharedflag='-G' ;; 16483 esac 16484 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16485 16486 if test yes = "$supports_anon_versioning"; then 16487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16488 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16489 echo "local: *; };" >> $output_objdir/$libname.ver~ 16490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16491 fi 16492 16493 case $cc_basename in 16494 tcc*) 16495 export_dynamic_flag_spec='-rdynamic' 16496 ;; 16497 xlf* | bgf* | bgxlf* | mpixlf*) 16498 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16499 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16500 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16501 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16502 if test yes = "$supports_anon_versioning"; then 16503 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16504 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16505 echo "local: *; };" >> $output_objdir/$libname.ver~ 16506 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16507 fi 16508 ;; 16509 esac 16510 else 16511 ld_shlibs=no 16512 fi 16513 ;; 16514 16515 netbsd*) 16516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16517 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16518 wlarc= 16519 else 16520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16521 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16522 fi 16523 ;; 16524 16525 solaris*) 16526 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16527 ld_shlibs=no 16528 cat <<_LT_EOF 1>&2 16529 16530*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16531*** create shared libraries on Solaris systems. Therefore, libtool 16532*** is disabling shared libraries support. We urge you to upgrade GNU 16533*** binutils to release 2.9.1 or newer. Another option is to modify 16534*** your PATH or compiler configuration so that the native linker is 16535*** used, and then restart. 16536 16537_LT_EOF 16538 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16540 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16541 else 16542 ld_shlibs=no 16543 fi 16544 ;; 16545 16546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16547 case `$LD -v 2>&1` in 16548 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16549 ld_shlibs=no 16550 cat <<_LT_EOF 1>&2 16551 16552*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16553*** reliably create shared libraries on SCO systems. Therefore, libtool 16554*** is disabling shared libraries support. We urge you to upgrade GNU 16555*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16556*** your PATH or compiler configuration so that the native linker is 16557*** used, and then restart. 16558 16559_LT_EOF 16560 ;; 16561 *) 16562 # For security reasons, it is highly recommended that you always 16563 # use absolute paths for naming shared libraries, and exclude the 16564 # DT_RUNPATH tag from executables and libraries. But doing so 16565 # requires that you compile everything twice, which is a pain. 16566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16569 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16570 else 16571 ld_shlibs=no 16572 fi 16573 ;; 16574 esac 16575 ;; 16576 16577 sunos4*) 16578 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16579 wlarc= 16580 hardcode_direct=yes 16581 hardcode_shlibpath_var=no 16582 ;; 16583 16584 *) 16585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16586 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16587 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16588 else 16589 ld_shlibs=no 16590 fi 16591 ;; 16592 esac 16593 16594 if test no = "$ld_shlibs"; then 16595 runpath_var= 16596 hardcode_libdir_flag_spec= 16597 export_dynamic_flag_spec= 16598 whole_archive_flag_spec= 16599 fi 16600 else 16601 # PORTME fill in a description of your system's linker (not GNU ld) 16602 case $host_os in 16603 aix3*) 16604 allow_undefined_flag=unsupported 16605 always_export_symbols=yes 16606 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' 16607 # Note: this linker hardcodes the directories in LIBPATH if there 16608 # are no directories specified by -L. 16609 hardcode_minus_L=yes 16610 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16611 # Neither direct hardcoding nor static linking is supported with a 16612 # broken collect2. 16613 hardcode_direct=unsupported 16614 fi 16615 ;; 16616 16617 aix[4-9]*) 16618 if test ia64 = "$host_cpu"; then 16619 # On IA64, the linker does run time linking by default, so we don't 16620 # have to do anything special. 16621 aix_use_runtimelinking=no 16622 exp_sym_flag='-Bexport' 16623 no_entry_flag= 16624 else 16625 # If we're using GNU nm, then we don't want the "-C" option. 16626 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16627 # Without the "-l" option, or with the "-B" option, AIX nm treats 16628 # weak defined symbols like other global defined symbols, whereas 16629 # GNU nm marks them as "W". 16630 # While the 'weak' keyword is ignored in the Export File, we need 16631 # it in the Import File for the 'aix-soname' feature, so we have 16632 # to replace the "-B" option with "-P" for AIX nm. 16633 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16634 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' 16635 else 16636 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' 16637 fi 16638 aix_use_runtimelinking=no 16639 16640 # Test if we are trying to use run time linking or normal 16641 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16642 # have runtime linking enabled, and use it for executables. 16643 # For shared libraries, we enable/disable runtime linking 16644 # depending on the kind of the shared library created - 16645 # when "with_aix_soname,aix_use_runtimelinking" is: 16646 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16647 # "aix,yes" lib.so shared, rtl:yes, for executables 16648 # lib.a static archive 16649 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16650 # lib.a(lib.so.V) shared, rtl:no, for executables 16651 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16652 # lib.a(lib.so.V) shared, rtl:no 16653 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16654 # lib.a static archive 16655 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16656 for ld_flag in $LDFLAGS; do 16657 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16658 aix_use_runtimelinking=yes 16659 break 16660 fi 16661 done 16662 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16663 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16664 # so we don't have lib.a shared libs to link our executables. 16665 # We have to force runtime linking in this case. 16666 aix_use_runtimelinking=yes 16667 LDFLAGS="$LDFLAGS -Wl,-brtl" 16668 fi 16669 ;; 16670 esac 16671 16672 exp_sym_flag='-bexport' 16673 no_entry_flag='-bnoentry' 16674 fi 16675 16676 # When large executables or shared objects are built, AIX ld can 16677 # have problems creating the table of contents. If linking a library 16678 # or program results in "error TOC overflow" add -mminimal-toc to 16679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16681 16682 archive_cmds='' 16683 hardcode_direct=yes 16684 hardcode_direct_absolute=yes 16685 hardcode_libdir_separator=':' 16686 link_all_deplibs=yes 16687 file_list_spec='$wl-f,' 16688 case $with_aix_soname,$aix_use_runtimelinking in 16689 aix,*) ;; # traditional, no import file 16690 svr4,* | *,yes) # use import file 16691 # The Import File defines what to hardcode. 16692 hardcode_direct=no 16693 hardcode_direct_absolute=no 16694 ;; 16695 esac 16696 16697 if test yes = "$GCC"; then 16698 case $host_os in aix4.[012]|aix4.[012].*) 16699 # We only want to do this on AIX 4.2 and lower, the check 16700 # below for broken collect2 doesn't work under 4.3+ 16701 collect2name=`$CC -print-prog-name=collect2` 16702 if test -f "$collect2name" && 16703 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16704 then 16705 # We have reworked collect2 16706 : 16707 else 16708 # We have old collect2 16709 hardcode_direct=unsupported 16710 # It fails to find uninstalled libraries when the uninstalled 16711 # path is not listed in the libpath. Setting hardcode_minus_L 16712 # to unsupported forces relinking 16713 hardcode_minus_L=yes 16714 hardcode_libdir_flag_spec='-L$libdir' 16715 hardcode_libdir_separator= 16716 fi 16717 ;; 16718 esac 16719 shared_flag='-shared' 16720 if test yes = "$aix_use_runtimelinking"; then 16721 shared_flag="$shared_flag "'$wl-G' 16722 fi 16723 # Need to ensure runtime linking is disabled for the traditional 16724 # shared library, or the linker may eventually find shared libraries 16725 # /with/ Import File - we do not want to mix them. 16726 shared_flag_aix='-shared' 16727 shared_flag_svr4='-shared $wl-G' 16728 else 16729 # not using gcc 16730 if test ia64 = "$host_cpu"; then 16731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16732 # chokes on -Wl,-G. The following line is correct: 16733 shared_flag='-G' 16734 else 16735 if test yes = "$aix_use_runtimelinking"; then 16736 shared_flag='$wl-G' 16737 else 16738 shared_flag='$wl-bM:SRE' 16739 fi 16740 shared_flag_aix='$wl-bM:SRE' 16741 shared_flag_svr4='$wl-G' 16742 fi 16743 fi 16744 16745 export_dynamic_flag_spec='$wl-bexpall' 16746 # It seems that -bexpall does not export symbols beginning with 16747 # underscore (_), so it is better to generate a list of symbols to export. 16748 always_export_symbols=yes 16749 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16750 # Warning - without using the other runtime loading flags (-brtl), 16751 # -berok will link without error, but may produce a broken library. 16752 allow_undefined_flag='-berok' 16753 # Determine the default libpath from the value encoded in an 16754 # empty executable. 16755 if test set = "${lt_cv_aix_libpath+set}"; then 16756 aix_libpath=$lt_cv_aix_libpath 16757else 16758 if test ${lt_cv_aix_libpath_+y} 16759then : 16760 printf %s "(cached) " >&6 16761else $as_nop 16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16763/* end confdefs.h. */ 16764 16765int 16766main (void) 16767{ 16768 16769 ; 16770 return 0; 16771} 16772_ACEOF 16773if ac_fn_c_try_link "$LINENO" 16774then : 16775 16776 lt_aix_libpath_sed=' 16777 /Import File Strings/,/^$/ { 16778 /^0/ { 16779 s/^0 *\([^ ]*\) *$/\1/ 16780 p 16781 } 16782 }' 16783 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16784 # Check for a 64-bit object if we didn't find anything. 16785 if test -z "$lt_cv_aix_libpath_"; then 16786 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16787 fi 16788fi 16789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16790 conftest$ac_exeext conftest.$ac_ext 16791 if test -z "$lt_cv_aix_libpath_"; then 16792 lt_cv_aix_libpath_=/usr/lib:/lib 16793 fi 16794 16795fi 16796 16797 aix_libpath=$lt_cv_aix_libpath_ 16798fi 16799 16800 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16801 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 16802 else 16803 if test ia64 = "$host_cpu"; then 16804 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16805 allow_undefined_flag="-z nodefs" 16806 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" 16807 else 16808 # Determine the default libpath from the value encoded in an 16809 # empty executable. 16810 if test set = "${lt_cv_aix_libpath+set}"; then 16811 aix_libpath=$lt_cv_aix_libpath 16812else 16813 if test ${lt_cv_aix_libpath_+y} 16814then : 16815 printf %s "(cached) " >&6 16816else $as_nop 16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16818/* end confdefs.h. */ 16819 16820int 16821main (void) 16822{ 16823 16824 ; 16825 return 0; 16826} 16827_ACEOF 16828if ac_fn_c_try_link "$LINENO" 16829then : 16830 16831 lt_aix_libpath_sed=' 16832 /Import File Strings/,/^$/ { 16833 /^0/ { 16834 s/^0 *\([^ ]*\) *$/\1/ 16835 p 16836 } 16837 }' 16838 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16839 # Check for a 64-bit object if we didn't find anything. 16840 if test -z "$lt_cv_aix_libpath_"; then 16841 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16842 fi 16843fi 16844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16845 conftest$ac_exeext conftest.$ac_ext 16846 if test -z "$lt_cv_aix_libpath_"; then 16847 lt_cv_aix_libpath_=/usr/lib:/lib 16848 fi 16849 16850fi 16851 16852 aix_libpath=$lt_cv_aix_libpath_ 16853fi 16854 16855 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16856 # Warning - without using the other run time loading flags, 16857 # -berok will link without error, but may produce a broken library. 16858 no_undefined_flag=' $wl-bernotok' 16859 allow_undefined_flag=' $wl-berok' 16860 if test yes = "$with_gnu_ld"; then 16861 # We only use this code for GNU lds that support --whole-archive. 16862 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16863 else 16864 # Exported symbols can be pulled into shared objects from archives 16865 whole_archive_flag_spec='$convenience' 16866 fi 16867 archive_cmds_need_lc=yes 16868 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16869 # -brtl affects multiple linker settings, -berok does not and is overridden later 16870 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16871 if test svr4 != "$with_aix_soname"; then 16872 # This is similar to how AIX traditionally builds its shared libraries. 16873 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' 16874 fi 16875 if test aix != "$with_aix_soname"; then 16876 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' 16877 else 16878 # used by -dlpreopen to get the symbols 16879 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16880 fi 16881 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16882 fi 16883 fi 16884 ;; 16885 16886 amigaos*) 16887 case $host_cpu in 16888 powerpc) 16889 # see comment about AmigaOS4 .so support 16890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16891 archive_expsym_cmds='' 16892 ;; 16893 m68k) 16894 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)' 16895 hardcode_libdir_flag_spec='-L$libdir' 16896 hardcode_minus_L=yes 16897 ;; 16898 esac 16899 ;; 16900 16901 bsdi[45]*) 16902 export_dynamic_flag_spec=-rdynamic 16903 ;; 16904 16905 cygwin* | mingw* | pw32* | cegcc*) 16906 # When not using gcc, we currently assume that we are using 16907 # Microsoft Visual C++ or Intel C++ Compiler. 16908 # hardcode_libdir_flag_spec is actually meaningless, as there is 16909 # no search path for DLLs. 16910 case $cc_basename in 16911 cl* | icl*) 16912 # Native MSVC or ICC 16913 hardcode_libdir_flag_spec=' ' 16914 allow_undefined_flag=unsupported 16915 always_export_symbols=yes 16916 file_list_spec='@' 16917 # Tell ltmain to make .lib files, not .a files. 16918 libext=lib 16919 # Tell ltmain to make .dll files, not .so files. 16920 shrext_cmds=.dll 16921 # FIXME: Setting linknames here is a bad hack. 16922 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16923 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16924 cp "$export_symbols" "$output_objdir/$soname.def"; 16925 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16926 else 16927 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16928 fi~ 16929 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16930 linknames=' 16931 # The linker will not automatically build a static lib if we build a DLL. 16932 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16933 enable_shared_with_static_runtimes=yes 16934 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16936 # Don't use ranlib 16937 old_postinstall_cmds='chmod 644 $oldlib' 16938 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16939 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16940 case $lt_outputfile in 16941 *.exe|*.EXE) ;; 16942 *) 16943 lt_outputfile=$lt_outputfile.exe 16944 lt_tool_outputfile=$lt_tool_outputfile.exe 16945 ;; 16946 esac~ 16947 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16948 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16949 $RM "$lt_outputfile.manifest"; 16950 fi' 16951 ;; 16952 *) 16953 # Assume MSVC and ICC wrapper 16954 hardcode_libdir_flag_spec=' ' 16955 allow_undefined_flag=unsupported 16956 # Tell ltmain to make .lib files, not .a files. 16957 libext=lib 16958 # Tell ltmain to make .dll files, not .so files. 16959 shrext_cmds=.dll 16960 # FIXME: Setting linknames here is a bad hack. 16961 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16962 # The linker will automatically build a .lib file if we build a DLL. 16963 old_archive_from_new_cmds='true' 16964 # FIXME: Should let the user specify the lib program. 16965 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16966 enable_shared_with_static_runtimes=yes 16967 ;; 16968 esac 16969 ;; 16970 16971 darwin* | rhapsody*) 16972 16973 16974 archive_cmds_need_lc=no 16975 hardcode_direct=no 16976 hardcode_automatic=yes 16977 hardcode_shlibpath_var=unsupported 16978 if test yes = "$lt_cv_ld_force_load"; then 16979 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\"`' 16980 16981 else 16982 whole_archive_flag_spec='' 16983 fi 16984 link_all_deplibs=yes 16985 allow_undefined_flag=$_lt_dar_allow_undefined 16986 case $cc_basename in 16987 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16988 *) _lt_dar_can_shared=$GCC ;; 16989 esac 16990 if test yes = "$_lt_dar_can_shared"; then 16991 output_verbose_link_cmd=func_echo_all 16992 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16993 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16994 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" 16995 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" 16996 16997 else 16998 ld_shlibs=no 16999 fi 17000 17001 ;; 17002 17003 dgux*) 17004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17005 hardcode_libdir_flag_spec='-L$libdir' 17006 hardcode_shlibpath_var=no 17007 ;; 17008 17009 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17010 # support. Future versions do this automatically, but an explicit c++rt0.o 17011 # does not break anything, and helps significantly (at the cost of a little 17012 # extra space). 17013 freebsd2.2*) 17014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17015 hardcode_libdir_flag_spec='-R$libdir' 17016 hardcode_direct=yes 17017 hardcode_shlibpath_var=no 17018 ;; 17019 17020 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17021 freebsd2.*) 17022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17023 hardcode_direct=yes 17024 hardcode_minus_L=yes 17025 hardcode_shlibpath_var=no 17026 ;; 17027 17028 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17029 freebsd* | dragonfly* | midnightbsd*) 17030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17031 hardcode_libdir_flag_spec='-R$libdir' 17032 hardcode_direct=yes 17033 hardcode_shlibpath_var=no 17034 ;; 17035 17036 hpux9*) 17037 if test yes = "$GCC"; then 17038 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' 17039 else 17040 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' 17041 fi 17042 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17043 hardcode_libdir_separator=: 17044 hardcode_direct=yes 17045 17046 # hardcode_minus_L: Not really in the search PATH, 17047 # but as the default location of the library. 17048 hardcode_minus_L=yes 17049 export_dynamic_flag_spec='$wl-E' 17050 ;; 17051 17052 hpux10*) 17053 if test yes,no = "$GCC,$with_gnu_ld"; then 17054 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17055 else 17056 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17057 fi 17058 if test no = "$with_gnu_ld"; then 17059 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17060 hardcode_libdir_separator=: 17061 hardcode_direct=yes 17062 hardcode_direct_absolute=yes 17063 export_dynamic_flag_spec='$wl-E' 17064 # hardcode_minus_L: Not really in the search PATH, 17065 # but as the default location of the library. 17066 hardcode_minus_L=yes 17067 fi 17068 ;; 17069 17070 hpux11*) 17071 if test yes,no = "$GCC,$with_gnu_ld"; then 17072 case $host_cpu in 17073 hppa*64*) 17074 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17075 ;; 17076 ia64*) 17077 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17078 ;; 17079 *) 17080 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17081 ;; 17082 esac 17083 else 17084 case $host_cpu in 17085 hppa*64*) 17086 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17087 ;; 17088 ia64*) 17089 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17090 ;; 17091 *) 17092 17093 # Older versions of the 11.00 compiler do not understand -b yet 17094 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17096printf %s "checking if $CC understands -b... " >&6; } 17097if test ${lt_cv_prog_compiler__b+y} 17098then : 17099 printf %s "(cached) " >&6 17100else $as_nop 17101 lt_cv_prog_compiler__b=no 17102 save_LDFLAGS=$LDFLAGS 17103 LDFLAGS="$LDFLAGS -b" 17104 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17106 # The linker can only warn and ignore the option if not recognized 17107 # So say no if there are warnings 17108 if test -s conftest.err; then 17109 # Append any errors to the config.log. 17110 cat conftest.err 1>&5 17111 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17113 if diff conftest.exp conftest.er2 >/dev/null; then 17114 lt_cv_prog_compiler__b=yes 17115 fi 17116 else 17117 lt_cv_prog_compiler__b=yes 17118 fi 17119 fi 17120 $RM -r conftest* 17121 LDFLAGS=$save_LDFLAGS 17122 17123fi 17124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17125printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17126 17127if test yes = "$lt_cv_prog_compiler__b"; then 17128 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17129else 17130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17131fi 17132 17133 ;; 17134 esac 17135 fi 17136 if test no = "$with_gnu_ld"; then 17137 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17138 hardcode_libdir_separator=: 17139 17140 case $host_cpu in 17141 hppa*64*|ia64*) 17142 hardcode_direct=no 17143 hardcode_shlibpath_var=no 17144 ;; 17145 *) 17146 hardcode_direct=yes 17147 hardcode_direct_absolute=yes 17148 export_dynamic_flag_spec='$wl-E' 17149 17150 # hardcode_minus_L: Not really in the search PATH, 17151 # but as the default location of the library. 17152 hardcode_minus_L=yes 17153 ;; 17154 esac 17155 fi 17156 ;; 17157 17158 irix5* | irix6* | nonstopux*) 17159 if test yes = "$GCC"; then 17160 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' 17161 # Try to use the -exported_symbol ld option, if it does not 17162 # work, assume that -exports_file does not work either and 17163 # implicitly export all symbols. 17164 # This should be the same for all languages, so no per-tag cache variable. 17165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17166printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17167if test ${lt_cv_irix_exported_symbol+y} 17168then : 17169 printf %s "(cached) " >&6 17170else $as_nop 17171 save_LDFLAGS=$LDFLAGS 17172 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17174/* end confdefs.h. */ 17175int foo (void) { return 0; } 17176_ACEOF 17177if ac_fn_c_try_link "$LINENO" 17178then : 17179 lt_cv_irix_exported_symbol=yes 17180else $as_nop 17181 lt_cv_irix_exported_symbol=no 17182fi 17183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17184 conftest$ac_exeext conftest.$ac_ext 17185 LDFLAGS=$save_LDFLAGS 17186fi 17187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17188printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17189 if test yes = "$lt_cv_irix_exported_symbol"; then 17190 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' 17191 fi 17192 else 17193 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' 17194 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' 17195 fi 17196 archive_cmds_need_lc='no' 17197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17198 hardcode_libdir_separator=: 17199 inherit_rpath=yes 17200 link_all_deplibs=yes 17201 ;; 17202 17203 linux*) 17204 case $cc_basename in 17205 tcc*) 17206 # Fabrice Bellard et al's Tiny C Compiler 17207 ld_shlibs=yes 17208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17209 ;; 17210 esac 17211 ;; 17212 17213 netbsd*) 17214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17216 else 17217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17218 fi 17219 hardcode_libdir_flag_spec='-R$libdir' 17220 hardcode_direct=yes 17221 hardcode_shlibpath_var=no 17222 ;; 17223 17224 newsos6) 17225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17226 hardcode_direct=yes 17227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17228 hardcode_libdir_separator=: 17229 hardcode_shlibpath_var=no 17230 ;; 17231 17232 *nto* | *qnx*) 17233 ;; 17234 17235 openbsd* | bitrig*) 17236 if test -f /usr/libexec/ld.so; then 17237 hardcode_direct=yes 17238 hardcode_shlibpath_var=no 17239 hardcode_direct_absolute=yes 17240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17242 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17243 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17244 export_dynamic_flag_spec='$wl-E' 17245 else 17246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17247 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17248 fi 17249 else 17250 ld_shlibs=no 17251 fi 17252 ;; 17253 17254 os2*) 17255 hardcode_libdir_flag_spec='-L$libdir' 17256 hardcode_minus_L=yes 17257 allow_undefined_flag=unsupported 17258 shrext_cmds=.dll 17259 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17260 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17261 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17262 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17263 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17264 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17265 emximp -o $lib $output_objdir/$libname.def' 17266 archive_expsym_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 prefix_cmds="$SED"~ 17271 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17272 prefix_cmds="$prefix_cmds -e 1d"; 17273 fi~ 17274 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17275 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17276 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17277 emximp -o $lib $output_objdir/$libname.def' 17278 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17279 enable_shared_with_static_runtimes=yes 17280 file_list_spec='@' 17281 ;; 17282 17283 osf3*) 17284 if test yes = "$GCC"; then 17285 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17286 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' 17287 else 17288 allow_undefined_flag=' -expect_unresolved \*' 17289 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' 17290 fi 17291 archive_cmds_need_lc='no' 17292 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17293 hardcode_libdir_separator=: 17294 ;; 17295 17296 osf4* | osf5*) # as osf3* with the addition of -msym flag 17297 if test yes = "$GCC"; then 17298 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17299 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' 17300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17301 else 17302 allow_undefined_flag=' -expect_unresolved \*' 17303 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' 17304 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~ 17305 $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' 17306 17307 # Both c and cxx compiler support -rpath directly 17308 hardcode_libdir_flag_spec='-rpath $libdir' 17309 fi 17310 archive_cmds_need_lc='no' 17311 hardcode_libdir_separator=: 17312 ;; 17313 17314 solaris*) 17315 no_undefined_flag=' -z defs' 17316 if test yes = "$GCC"; then 17317 wlarc='$wl' 17318 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17320 $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' 17321 else 17322 case `$CC -V 2>&1` in 17323 *"Compilers 5.0"*) 17324 wlarc='' 17325 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17327 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17328 ;; 17329 *) 17330 wlarc='$wl' 17331 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17333 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17334 ;; 17335 esac 17336 fi 17337 hardcode_libdir_flag_spec='-R$libdir' 17338 hardcode_shlibpath_var=no 17339 case $host_os in 17340 solaris2.[0-5] | solaris2.[0-5].*) ;; 17341 *) 17342 # The compiler driver will combine and reorder linker options, 17343 # but understands '-z linker_flag'. GCC discards it without '$wl', 17344 # but is careful enough not to reorder. 17345 # Supported since Solaris 2.6 (maybe 2.5.1?) 17346 if test yes = "$GCC"; then 17347 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17348 else 17349 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17350 fi 17351 ;; 17352 esac 17353 link_all_deplibs=yes 17354 ;; 17355 17356 sunos4*) 17357 if test sequent = "$host_vendor"; then 17358 # Use $CC to link under sequent, because it throws in some extra .o 17359 # files that make .init and .fini sections work. 17360 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17361 else 17362 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17363 fi 17364 hardcode_libdir_flag_spec='-L$libdir' 17365 hardcode_direct=yes 17366 hardcode_minus_L=yes 17367 hardcode_shlibpath_var=no 17368 ;; 17369 17370 sysv4) 17371 case $host_vendor in 17372 sni) 17373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17374 hardcode_direct=yes # is this really true??? 17375 ;; 17376 siemens) 17377 ## LD is ld it makes a PLAMLIB 17378 ## CC just makes a GrossModule. 17379 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17380 reload_cmds='$CC -r -o $output$reload_objs' 17381 hardcode_direct=no 17382 ;; 17383 motorola) 17384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17385 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17386 ;; 17387 esac 17388 runpath_var='LD_RUN_PATH' 17389 hardcode_shlibpath_var=no 17390 ;; 17391 17392 sysv4.3*) 17393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17394 hardcode_shlibpath_var=no 17395 export_dynamic_flag_spec='-Bexport' 17396 ;; 17397 17398 sysv4*MP*) 17399 if test -d /usr/nec; then 17400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17401 hardcode_shlibpath_var=no 17402 runpath_var=LD_RUN_PATH 17403 hardcode_runpath_var=yes 17404 ld_shlibs=yes 17405 fi 17406 ;; 17407 17408 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17409 no_undefined_flag='$wl-z,text' 17410 archive_cmds_need_lc=no 17411 hardcode_shlibpath_var=no 17412 runpath_var='LD_RUN_PATH' 17413 17414 if test yes = "$GCC"; then 17415 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17416 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17417 else 17418 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17419 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17420 fi 17421 ;; 17422 17423 sysv5* | sco3.2v5* | sco5v6*) 17424 # Note: We CANNOT use -z defs as we might desire, because we do not 17425 # link with -lc, and that would cause any symbols used from libc to 17426 # always be unresolved, which means just about no library would 17427 # ever link correctly. If we're not using GNU ld we use -z text 17428 # though, which does catch some bad symbols but isn't as heavy-handed 17429 # as -z defs. 17430 no_undefined_flag='$wl-z,text' 17431 allow_undefined_flag='$wl-z,nodefs' 17432 archive_cmds_need_lc=no 17433 hardcode_shlibpath_var=no 17434 hardcode_libdir_flag_spec='$wl-R,$libdir' 17435 hardcode_libdir_separator=':' 17436 link_all_deplibs=yes 17437 export_dynamic_flag_spec='$wl-Bexport' 17438 runpath_var='LD_RUN_PATH' 17439 17440 if test yes = "$GCC"; then 17441 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17442 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17443 else 17444 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17445 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17446 fi 17447 ;; 17448 17449 uts4*) 17450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17451 hardcode_libdir_flag_spec='-L$libdir' 17452 hardcode_shlibpath_var=no 17453 ;; 17454 17455 *) 17456 ld_shlibs=no 17457 ;; 17458 esac 17459 17460 if test sni = "$host_vendor"; then 17461 case $host in 17462 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17463 export_dynamic_flag_spec='$wl-Blargedynsym' 17464 ;; 17465 esac 17466 fi 17467 fi 17468 17469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17470printf "%s\n" "$ld_shlibs" >&6; } 17471test no = "$ld_shlibs" && can_build_shared=no 17472 17473with_gnu_ld=$with_gnu_ld 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489# 17490# Do we need to explicitly link libc? 17491# 17492case "x$archive_cmds_need_lc" in 17493x|xyes) 17494 # Assume -lc should be added 17495 archive_cmds_need_lc=yes 17496 17497 if test yes,yes = "$GCC,$enable_shared"; then 17498 case $archive_cmds in 17499 *'~'*) 17500 # FIXME: we may have to deal with multi-command sequences. 17501 ;; 17502 '$CC '*) 17503 # Test whether the compiler implicitly links with -lc since on some 17504 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17505 # to ld, don't add -lc before -lgcc. 17506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17507printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17508if test ${lt_cv_archive_cmds_need_lc+y} 17509then : 17510 printf %s "(cached) " >&6 17511else $as_nop 17512 $RM conftest* 17513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17514 17515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17516 (eval $ac_compile) 2>&5 17517 ac_status=$? 17518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17519 test $ac_status = 0; } 2>conftest.err; then 17520 soname=conftest 17521 lib=conftest 17522 libobjs=conftest.$ac_objext 17523 deplibs= 17524 wl=$lt_prog_compiler_wl 17525 pic_flag=$lt_prog_compiler_pic 17526 compiler_flags=-v 17527 linker_flags=-v 17528 verstring= 17529 output_objdir=. 17530 libname=conftest 17531 lt_save_allow_undefined_flag=$allow_undefined_flag 17532 allow_undefined_flag= 17533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17534 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17535 ac_status=$? 17536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17537 test $ac_status = 0; } 17538 then 17539 lt_cv_archive_cmds_need_lc=no 17540 else 17541 lt_cv_archive_cmds_need_lc=yes 17542 fi 17543 allow_undefined_flag=$lt_save_allow_undefined_flag 17544 else 17545 cat conftest.err 1>&5 17546 fi 17547 $RM conftest* 17548 17549fi 17550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17551printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17552 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17553 ;; 17554 esac 17555 fi 17556 ;; 17557esac 17558 17559 17560 17561 17562 17563 17564 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17711printf %s "checking dynamic linker characteristics... " >&6; } 17712 17713if test yes = "$GCC"; then 17714 case $host_os in 17715 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17716 *) lt_awk_arg='/^libraries:/' ;; 17717 esac 17718 case $host_os in 17719 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17720 *) lt_sed_strip_eq='s|=/|/|g' ;; 17721 esac 17722 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17723 case $lt_search_path_spec in 17724 *\;*) 17725 # if the path contains ";" then we assume it to be the separator 17726 # otherwise default to the standard path separator (i.e. ":") - it is 17727 # assumed that no part of a normal pathname contains ";" but that should 17728 # okay in the real world where ";" in dirpaths is itself problematic. 17729 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17730 ;; 17731 *) 17732 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17733 ;; 17734 esac 17735 # Ok, now we have the path, separated by spaces, we can step through it 17736 # and add multilib dir if necessary... 17737 lt_tmp_lt_search_path_spec= 17738 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17739 # ...but if some path component already ends with the multilib dir we assume 17740 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17741 case "$lt_multi_os_dir; $lt_search_path_spec " in 17742 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17743 lt_multi_os_dir= 17744 ;; 17745 esac 17746 for lt_sys_path in $lt_search_path_spec; do 17747 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17749 elif test -n "$lt_multi_os_dir"; then 17750 test -d "$lt_sys_path" && \ 17751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17752 fi 17753 done 17754 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17755BEGIN {RS = " "; FS = "/|\n";} { 17756 lt_foo = ""; 17757 lt_count = 0; 17758 for (lt_i = NF; lt_i > 0; lt_i--) { 17759 if ($lt_i != "" && $lt_i != ".") { 17760 if ($lt_i == "..") { 17761 lt_count++; 17762 } else { 17763 if (lt_count == 0) { 17764 lt_foo = "/" $lt_i lt_foo; 17765 } else { 17766 lt_count--; 17767 } 17768 } 17769 } 17770 } 17771 if (lt_foo != "") { lt_freq[lt_foo]++; } 17772 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17773}'` 17774 # AWK program above erroneously prepends '/' to C:/dos/paths 17775 # for these hosts. 17776 case $host_os in 17777 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17778 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17779 esac 17780 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17781else 17782 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17783fi 17784library_names_spec= 17785libname_spec='lib$name' 17786soname_spec= 17787shrext_cmds=.so 17788postinstall_cmds= 17789postuninstall_cmds= 17790finish_cmds= 17791finish_eval= 17792shlibpath_var= 17793shlibpath_overrides_runpath=unknown 17794version_type=none 17795dynamic_linker="$host_os ld.so" 17796sys_lib_dlsearch_path_spec="/lib /usr/lib" 17797need_lib_prefix=unknown 17798hardcode_into_libs=no 17799 17800# when you set need_version to no, make sure it does not cause -set_version 17801# flags to be left without arguments 17802need_version=unknown 17803 17804 17805 17806case $host_os in 17807aix3*) 17808 version_type=linux # correct to gnu/linux during the next big refactor 17809 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17810 shlibpath_var=LIBPATH 17811 17812 # AIX 3 has no versioning support, so we append a major version to the name. 17813 soname_spec='$libname$release$shared_ext$major' 17814 ;; 17815 17816aix[4-9]*) 17817 version_type=linux # correct to gnu/linux during the next big refactor 17818 need_lib_prefix=no 17819 need_version=no 17820 hardcode_into_libs=yes 17821 if test ia64 = "$host_cpu"; then 17822 # AIX 5 supports IA64 17823 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17824 shlibpath_var=LD_LIBRARY_PATH 17825 else 17826 # With GCC up to 2.95.x, collect2 would create an import file 17827 # for dependence libraries. The import file would start with 17828 # the line '#! .'. This would cause the generated library to 17829 # depend on '.', always an invalid library. This was fixed in 17830 # development snapshots of GCC prior to 3.0. 17831 case $host_os in 17832 aix4 | aix4.[01] | aix4.[01].*) 17833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17834 echo ' yes ' 17835 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17836 : 17837 else 17838 can_build_shared=no 17839 fi 17840 ;; 17841 esac 17842 # Using Import Files as archive members, it is possible to support 17843 # filename-based versioning of shared library archives on AIX. While 17844 # this would work for both with and without runtime linking, it will 17845 # prevent static linking of such archives. So we do filename-based 17846 # shared library versioning with .so extension only, which is used 17847 # when both runtime linking and shared linking is enabled. 17848 # Unfortunately, runtime linking may impact performance, so we do 17849 # not want this to be the default eventually. Also, we use the 17850 # versioned .so libs for executables only if there is the -brtl 17851 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17852 # To allow for filename-based versioning support, we need to create 17853 # libNAME.so.V as an archive file, containing: 17854 # *) an Import File, referring to the versioned filename of the 17855 # archive as well as the shared archive member, telling the 17856 # bitwidth (32 or 64) of that shared object, and providing the 17857 # list of exported symbols of that shared object, eventually 17858 # decorated with the 'weak' keyword 17859 # *) the shared object with the F_LOADONLY flag set, to really avoid 17860 # it being seen by the linker. 17861 # At run time we better use the real file rather than another symlink, 17862 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17863 17864 case $with_aix_soname,$aix_use_runtimelinking in 17865 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17866 # soname into executable. Probably we can add versioning support to 17867 # collect2, so additional links can be useful in future. 17868 aix,yes) # traditional libtool 17869 dynamic_linker='AIX unversionable lib.so' 17870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17871 # instead of lib<name>.a to let people know that these are not 17872 # typical AIX shared libraries. 17873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17874 ;; 17875 aix,no) # traditional AIX only 17876 dynamic_linker='AIX lib.a(lib.so.V)' 17877 # We preserve .a as extension for shared libraries through AIX4.2 17878 # and later when we are not doing run time linking. 17879 library_names_spec='$libname$release.a $libname.a' 17880 soname_spec='$libname$release$shared_ext$major' 17881 ;; 17882 svr4,*) # full svr4 only 17883 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17884 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17885 # We do not specify a path in Import Files, so LIBPATH fires. 17886 shlibpath_overrides_runpath=yes 17887 ;; 17888 *,yes) # both, prefer svr4 17889 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17890 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17891 # unpreferred sharedlib libNAME.a needs extra handling 17892 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"' 17893 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"' 17894 # We do not specify a path in Import Files, so LIBPATH fires. 17895 shlibpath_overrides_runpath=yes 17896 ;; 17897 *,no) # both, prefer aix 17898 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17899 library_names_spec='$libname$release.a $libname.a' 17900 soname_spec='$libname$release$shared_ext$major' 17901 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17902 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)' 17903 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"' 17904 ;; 17905 esac 17906 shlibpath_var=LIBPATH 17907 fi 17908 ;; 17909 17910amigaos*) 17911 case $host_cpu in 17912 powerpc) 17913 # Since July 2007 AmigaOS4 officially supports .so libraries. 17914 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17916 ;; 17917 m68k) 17918 library_names_spec='$libname.ixlibrary $libname.a' 17919 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17920 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' 17921 ;; 17922 esac 17923 ;; 17924 17925beos*) 17926 library_names_spec='$libname$shared_ext' 17927 dynamic_linker="$host_os ld.so" 17928 shlibpath_var=LIBRARY_PATH 17929 ;; 17930 17931bsdi[45]*) 17932 version_type=linux # correct to gnu/linux during the next big refactor 17933 need_version=no 17934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17935 soname_spec='$libname$release$shared_ext$major' 17936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17937 shlibpath_var=LD_LIBRARY_PATH 17938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17940 # the default ld.so.conf also contains /usr/contrib/lib and 17941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17942 # libtool to hard-code these into programs 17943 ;; 17944 17945cygwin* | mingw* | pw32* | cegcc*) 17946 version_type=windows 17947 shrext_cmds=.dll 17948 need_version=no 17949 need_lib_prefix=no 17950 17951 case $GCC,$cc_basename in 17952 yes,*) 17953 # gcc 17954 library_names_spec='$libname.dll.a' 17955 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17956 postinstall_cmds='base_file=`basename \$file`~ 17957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17958 dldir=$destdir/`dirname \$dlpath`~ 17959 test -d \$dldir || mkdir -p \$dldir~ 17960 $install_prog $dir/$dlname \$dldir/$dlname~ 17961 chmod a+x \$dldir/$dlname~ 17962 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17963 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17964 fi' 17965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17966 dlpath=$dir/\$dldll~ 17967 $RM \$dlpath' 17968 shlibpath_overrides_runpath=yes 17969 17970 case $host_os in 17971 cygwin*) 17972 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17973 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17974 17975 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17976 ;; 17977 mingw* | cegcc*) 17978 # MinGW DLLs use traditional 'lib' prefix 17979 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17980 ;; 17981 pw32*) 17982 # pw32 DLLs use 'pw' prefix rather than 'lib' 17983 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17984 ;; 17985 esac 17986 dynamic_linker='Win32 ld.exe' 17987 ;; 17988 17989 *,cl* | *,icl*) 17990 # Native MSVC or ICC 17991 libname_spec='$name' 17992 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17993 library_names_spec='$libname.dll.lib' 17994 17995 case $build_os in 17996 mingw*) 17997 sys_lib_search_path_spec= 17998 lt_save_ifs=$IFS 17999 IFS=';' 18000 for lt_path in $LIB 18001 do 18002 IFS=$lt_save_ifs 18003 # Let DOS variable expansion print the short 8.3 style file name. 18004 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18005 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18006 done 18007 IFS=$lt_save_ifs 18008 # Convert to MSYS style. 18009 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18010 ;; 18011 cygwin*) 18012 # Convert to unix form, then to dos form, then back to unix form 18013 # but this time dos style (no spaces!) so that the unix form looks 18014 # like /cygdrive/c/PROGRA~1:/cygdr... 18015 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18016 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18017 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18018 ;; 18019 *) 18020 sys_lib_search_path_spec=$LIB 18021 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18022 # It is most probably a Windows format PATH. 18023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18024 else 18025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18026 fi 18027 # FIXME: find the short name or the path components, as spaces are 18028 # common. (e.g. "Program Files" -> "PROGRA~1") 18029 ;; 18030 esac 18031 18032 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18033 postinstall_cmds='base_file=`basename \$file`~ 18034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18035 dldir=$destdir/`dirname \$dlpath`~ 18036 test -d \$dldir || mkdir -p \$dldir~ 18037 $install_prog $dir/$dlname \$dldir/$dlname' 18038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18039 dlpath=$dir/\$dldll~ 18040 $RM \$dlpath' 18041 shlibpath_overrides_runpath=yes 18042 dynamic_linker='Win32 link.exe' 18043 ;; 18044 18045 *) 18046 # Assume MSVC and ICC wrapper 18047 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18048 dynamic_linker='Win32 ld.exe' 18049 ;; 18050 esac 18051 # FIXME: first we should search . and the directory the executable is in 18052 shlibpath_var=PATH 18053 ;; 18054 18055darwin* | rhapsody*) 18056 dynamic_linker="$host_os dyld" 18057 version_type=darwin 18058 need_lib_prefix=no 18059 need_version=no 18060 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18061 soname_spec='$libname$release$major$shared_ext' 18062 shlibpath_overrides_runpath=yes 18063 shlibpath_var=DYLD_LIBRARY_PATH 18064 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18065 18066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18068 ;; 18069 18070dgux*) 18071 version_type=linux # correct to gnu/linux during the next big refactor 18072 need_lib_prefix=no 18073 need_version=no 18074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18075 soname_spec='$libname$release$shared_ext$major' 18076 shlibpath_var=LD_LIBRARY_PATH 18077 ;; 18078 18079freebsd* | dragonfly* | midnightbsd*) 18080 # DragonFly does not have aout. When/if they implement a new 18081 # versioning mechanism, adjust this. 18082 if test -x /usr/bin/objformat; then 18083 objformat=`/usr/bin/objformat` 18084 else 18085 case $host_os in 18086 freebsd[23].*) objformat=aout ;; 18087 *) objformat=elf ;; 18088 esac 18089 fi 18090 version_type=freebsd-$objformat 18091 case $version_type in 18092 freebsd-elf*) 18093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18094 soname_spec='$libname$release$shared_ext$major' 18095 need_version=no 18096 need_lib_prefix=no 18097 ;; 18098 freebsd-*) 18099 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18100 need_version=yes 18101 ;; 18102 esac 18103 shlibpath_var=LD_LIBRARY_PATH 18104 case $host_os in 18105 freebsd2.*) 18106 shlibpath_overrides_runpath=yes 18107 ;; 18108 freebsd3.[01]* | freebsdelf3.[01]*) 18109 shlibpath_overrides_runpath=yes 18110 hardcode_into_libs=yes 18111 ;; 18112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18114 shlibpath_overrides_runpath=no 18115 hardcode_into_libs=yes 18116 ;; 18117 *) # from 4.6 on, and DragonFly 18118 shlibpath_overrides_runpath=yes 18119 hardcode_into_libs=yes 18120 ;; 18121 esac 18122 ;; 18123 18124haiku*) 18125 version_type=linux # correct to gnu/linux during the next big refactor 18126 need_lib_prefix=no 18127 need_version=no 18128 dynamic_linker="$host_os runtime_loader" 18129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18130 soname_spec='$libname$release$shared_ext$major' 18131 shlibpath_var=LIBRARY_PATH 18132 shlibpath_overrides_runpath=no 18133 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18134 hardcode_into_libs=yes 18135 ;; 18136 18137hpux9* | hpux10* | hpux11*) 18138 # Give a soname corresponding to the major version so that dld.sl refuses to 18139 # link against other versions. 18140 version_type=sunos 18141 need_lib_prefix=no 18142 need_version=no 18143 case $host_cpu in 18144 ia64*) 18145 shrext_cmds='.so' 18146 hardcode_into_libs=yes 18147 dynamic_linker="$host_os dld.so" 18148 shlibpath_var=LD_LIBRARY_PATH 18149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18151 soname_spec='$libname$release$shared_ext$major' 18152 if test 32 = "$HPUX_IA64_MODE"; then 18153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18154 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18155 else 18156 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18157 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18158 fi 18159 ;; 18160 hppa*64*) 18161 shrext_cmds='.sl' 18162 hardcode_into_libs=yes 18163 dynamic_linker="$host_os dld.sl" 18164 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18167 soname_spec='$libname$release$shared_ext$major' 18168 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18170 ;; 18171 *) 18172 shrext_cmds='.sl' 18173 dynamic_linker="$host_os dld.sl" 18174 shlibpath_var=SHLIB_PATH 18175 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18177 soname_spec='$libname$release$shared_ext$major' 18178 ;; 18179 esac 18180 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18181 postinstall_cmds='chmod 555 $lib' 18182 # or fails outright, so override atomically: 18183 install_override_mode=555 18184 ;; 18185 18186interix[3-9]*) 18187 version_type=linux # correct to gnu/linux during the next big refactor 18188 need_lib_prefix=no 18189 need_version=no 18190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18191 soname_spec='$libname$release$shared_ext$major' 18192 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18193 shlibpath_var=LD_LIBRARY_PATH 18194 shlibpath_overrides_runpath=no 18195 hardcode_into_libs=yes 18196 ;; 18197 18198irix5* | irix6* | nonstopux*) 18199 case $host_os in 18200 nonstopux*) version_type=nonstopux ;; 18201 *) 18202 if test yes = "$lt_cv_prog_gnu_ld"; then 18203 version_type=linux # correct to gnu/linux during the next big refactor 18204 else 18205 version_type=irix 18206 fi ;; 18207 esac 18208 need_lib_prefix=no 18209 need_version=no 18210 soname_spec='$libname$release$shared_ext$major' 18211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18212 case $host_os in 18213 irix5* | nonstopux*) 18214 libsuff= shlibsuff= 18215 ;; 18216 *) 18217 case $LD in # libtool.m4 will add one of these switches to LD 18218 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18219 libsuff= shlibsuff= libmagic=32-bit;; 18220 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18221 libsuff=32 shlibsuff=N32 libmagic=N32;; 18222 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18223 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18224 *) libsuff= shlibsuff= libmagic=never-match;; 18225 esac 18226 ;; 18227 esac 18228 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18229 shlibpath_overrides_runpath=no 18230 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18231 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18232 hardcode_into_libs=yes 18233 ;; 18234 18235# No shared lib support for Linux oldld, aout, or coff. 18236linux*oldld* | linux*aout* | linux*coff*) 18237 dynamic_linker=no 18238 ;; 18239 18240linux*android*) 18241 version_type=none # Android doesn't support versioned libraries. 18242 need_lib_prefix=no 18243 need_version=no 18244 library_names_spec='$libname$release$shared_ext' 18245 soname_spec='$libname$release$shared_ext' 18246 finish_cmds= 18247 shlibpath_var=LD_LIBRARY_PATH 18248 shlibpath_overrides_runpath=yes 18249 18250 # This implies no fast_install, which is unacceptable. 18251 # Some rework will be needed to allow for fast_install 18252 # before this can be enabled. 18253 hardcode_into_libs=yes 18254 18255 dynamic_linker='Android linker' 18256 # Don't embed -rpath directories since the linker doesn't support them. 18257 hardcode_libdir_flag_spec='-L$libdir' 18258 ;; 18259 18260# This must be glibc/ELF. 18261linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18262 version_type=linux # correct to gnu/linux during the next big refactor 18263 need_lib_prefix=no 18264 need_version=no 18265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18266 soname_spec='$libname$release$shared_ext$major' 18267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18268 shlibpath_var=LD_LIBRARY_PATH 18269 shlibpath_overrides_runpath=no 18270 18271 # Some binutils ld are patched to set DT_RUNPATH 18272 if test ${lt_cv_shlibpath_overrides_runpath+y} 18273then : 18274 printf %s "(cached) " >&6 18275else $as_nop 18276 lt_cv_shlibpath_overrides_runpath=no 18277 save_LDFLAGS=$LDFLAGS 18278 save_libdir=$libdir 18279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18282/* end confdefs.h. */ 18283 18284int 18285main (void) 18286{ 18287 18288 ; 18289 return 0; 18290} 18291_ACEOF 18292if ac_fn_c_try_link "$LINENO" 18293then : 18294 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18295then : 18296 lt_cv_shlibpath_overrides_runpath=yes 18297fi 18298fi 18299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18300 conftest$ac_exeext conftest.$ac_ext 18301 LDFLAGS=$save_LDFLAGS 18302 libdir=$save_libdir 18303 18304fi 18305 18306 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18307 18308 # This implies no fast_install, which is unacceptable. 18309 # Some rework will be needed to allow for fast_install 18310 # before this can be enabled. 18311 hardcode_into_libs=yes 18312 18313 # Ideally, we could use ldconfig to report *all* directores which are 18314 # searched for libraries, however this is still not possible. Aside from not 18315 # being certain /sbin/ldconfig is available, command 18316 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18317 # even though it is searched at run-time. Try to do the best guess by 18318 # appending ld.so.conf contents (and includes) to the search path. 18319 if test -f /etc/ld.so.conf; then 18320 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' ' '` 18321 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18322 fi 18323 18324 # We used to test for /lib/ld.so.1 and disable shared libraries on 18325 # powerpc, because MkLinux only supported shared libraries with the 18326 # GNU dynamic linker. Since this was broken with cross compilers, 18327 # most powerpc-linux boxes support dynamic linking these days and 18328 # people can always --disable-shared, the test was removed, and we 18329 # assume the GNU/Linux dynamic linker is in use. 18330 dynamic_linker='GNU/Linux ld.so' 18331 ;; 18332 18333netbsd*) 18334 version_type=sunos 18335 need_lib_prefix=no 18336 need_version=no 18337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18338 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18340 dynamic_linker='NetBSD (a.out) ld.so' 18341 else 18342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18343 soname_spec='$libname$release$shared_ext$major' 18344 dynamic_linker='NetBSD ld.elf_so' 18345 fi 18346 shlibpath_var=LD_LIBRARY_PATH 18347 shlibpath_overrides_runpath=yes 18348 hardcode_into_libs=yes 18349 ;; 18350 18351newsos6) 18352 version_type=linux # correct to gnu/linux during the next big refactor 18353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18354 shlibpath_var=LD_LIBRARY_PATH 18355 shlibpath_overrides_runpath=yes 18356 ;; 18357 18358*nto* | *qnx*) 18359 version_type=qnx 18360 need_lib_prefix=no 18361 need_version=no 18362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18363 soname_spec='$libname$release$shared_ext$major' 18364 shlibpath_var=LD_LIBRARY_PATH 18365 shlibpath_overrides_runpath=no 18366 hardcode_into_libs=yes 18367 dynamic_linker='ldqnx.so' 18368 ;; 18369 18370openbsd* | bitrig*) 18371 version_type=sunos 18372 sys_lib_dlsearch_path_spec=/usr/lib 18373 need_lib_prefix=no 18374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18375 need_version=no 18376 else 18377 need_version=yes 18378 fi 18379 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18381 shlibpath_var=LD_LIBRARY_PATH 18382 shlibpath_overrides_runpath=yes 18383 ;; 18384 18385os2*) 18386 libname_spec='$name' 18387 version_type=windows 18388 shrext_cmds=.dll 18389 need_version=no 18390 need_lib_prefix=no 18391 # OS/2 can only load a DLL with a base name of 8 characters or less. 18392 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18393 v=$($ECHO $release$versuffix | tr -d .-); 18394 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18395 $ECHO $n$v`$shared_ext' 18396 library_names_spec='${libname}_dll.$libext' 18397 dynamic_linker='OS/2 ld.exe' 18398 shlibpath_var=BEGINLIBPATH 18399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18401 postinstall_cmds='base_file=`basename \$file`~ 18402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18403 dldir=$destdir/`dirname \$dlpath`~ 18404 test -d \$dldir || mkdir -p \$dldir~ 18405 $install_prog $dir/$dlname \$dldir/$dlname~ 18406 chmod a+x \$dldir/$dlname~ 18407 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18408 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18409 fi' 18410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18411 dlpath=$dir/\$dldll~ 18412 $RM \$dlpath' 18413 ;; 18414 18415osf3* | osf4* | osf5*) 18416 version_type=osf 18417 need_lib_prefix=no 18418 need_version=no 18419 soname_spec='$libname$release$shared_ext$major' 18420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18421 shlibpath_var=LD_LIBRARY_PATH 18422 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18424 ;; 18425 18426rdos*) 18427 dynamic_linker=no 18428 ;; 18429 18430solaris*) 18431 version_type=linux # correct to gnu/linux during the next big refactor 18432 need_lib_prefix=no 18433 need_version=no 18434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18435 soname_spec='$libname$release$shared_ext$major' 18436 shlibpath_var=LD_LIBRARY_PATH 18437 shlibpath_overrides_runpath=yes 18438 hardcode_into_libs=yes 18439 # ldd complains unless libraries are executable 18440 postinstall_cmds='chmod +x $lib' 18441 ;; 18442 18443sunos4*) 18444 version_type=sunos 18445 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18446 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18447 shlibpath_var=LD_LIBRARY_PATH 18448 shlibpath_overrides_runpath=yes 18449 if test yes = "$with_gnu_ld"; then 18450 need_lib_prefix=no 18451 fi 18452 need_version=yes 18453 ;; 18454 18455sysv4 | sysv4.3*) 18456 version_type=linux # correct to gnu/linux during the next big refactor 18457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18458 soname_spec='$libname$release$shared_ext$major' 18459 shlibpath_var=LD_LIBRARY_PATH 18460 case $host_vendor in 18461 sni) 18462 shlibpath_overrides_runpath=no 18463 need_lib_prefix=no 18464 runpath_var=LD_RUN_PATH 18465 ;; 18466 siemens) 18467 need_lib_prefix=no 18468 ;; 18469 motorola) 18470 need_lib_prefix=no 18471 need_version=no 18472 shlibpath_overrides_runpath=no 18473 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18474 ;; 18475 esac 18476 ;; 18477 18478sysv4*MP*) 18479 if test -d /usr/nec; then 18480 version_type=linux # correct to gnu/linux during the next big refactor 18481 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18482 soname_spec='$libname$shared_ext.$major' 18483 shlibpath_var=LD_LIBRARY_PATH 18484 fi 18485 ;; 18486 18487sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18488 version_type=sco 18489 need_lib_prefix=no 18490 need_version=no 18491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18492 soname_spec='$libname$release$shared_ext$major' 18493 shlibpath_var=LD_LIBRARY_PATH 18494 shlibpath_overrides_runpath=yes 18495 hardcode_into_libs=yes 18496 if test yes = "$with_gnu_ld"; then 18497 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18498 else 18499 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18500 case $host_os in 18501 sco3.2v5*) 18502 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18503 ;; 18504 esac 18505 fi 18506 sys_lib_dlsearch_path_spec='/usr/lib' 18507 ;; 18508 18509tpf*) 18510 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18511 version_type=linux # correct to gnu/linux during the next big refactor 18512 need_lib_prefix=no 18513 need_version=no 18514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18515 shlibpath_var=LD_LIBRARY_PATH 18516 shlibpath_overrides_runpath=no 18517 hardcode_into_libs=yes 18518 ;; 18519 18520uts4*) 18521 version_type=linux # correct to gnu/linux during the next big refactor 18522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18523 soname_spec='$libname$release$shared_ext$major' 18524 shlibpath_var=LD_LIBRARY_PATH 18525 ;; 18526 18527*) 18528 dynamic_linker=no 18529 ;; 18530esac 18531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18532printf "%s\n" "$dynamic_linker" >&6; } 18533test no = "$dynamic_linker" && can_build_shared=no 18534 18535variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18536if test yes = "$GCC"; then 18537 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18538fi 18539 18540if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18541 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18542fi 18543 18544if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18545 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18546fi 18547 18548# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18549configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18550 18551# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18552func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18553 18554# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18555configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18556 18557 18558 18559 18560 18561 18562 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18654printf %s "checking how to hardcode library paths into programs... " >&6; } 18655hardcode_action= 18656if test -n "$hardcode_libdir_flag_spec" || 18657 test -n "$runpath_var" || 18658 test yes = "$hardcode_automatic"; then 18659 18660 # We can hardcode non-existent directories. 18661 if test no != "$hardcode_direct" && 18662 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18663 # have to relink, otherwise we might link with an installed library 18664 # when we should be linking with a yet-to-be-installed one 18665 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18666 test no != "$hardcode_minus_L"; then 18667 # Linking always hardcodes the temporary library directory. 18668 hardcode_action=relink 18669 else 18670 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18671 hardcode_action=immediate 18672 fi 18673else 18674 # We cannot hardcode anything, or else we can only hardcode existing 18675 # directories. 18676 hardcode_action=unsupported 18677fi 18678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18679printf "%s\n" "$hardcode_action" >&6; } 18680 18681if test relink = "$hardcode_action" || 18682 test yes = "$inherit_rpath"; then 18683 # Fast installation is not supported 18684 enable_fast_install=no 18685elif test yes = "$shlibpath_overrides_runpath" || 18686 test no = "$enable_shared"; then 18687 # Fast installation is not necessary 18688 enable_fast_install=needless 18689fi 18690 18691 18692 18693 18694 18695 18696 if test yes != "$enable_dlopen"; then 18697 enable_dlopen=unknown 18698 enable_dlopen_self=unknown 18699 enable_dlopen_self_static=unknown 18700else 18701 lt_cv_dlopen=no 18702 lt_cv_dlopen_libs= 18703 18704 case $host_os in 18705 beos*) 18706 lt_cv_dlopen=load_add_on 18707 lt_cv_dlopen_libs= 18708 lt_cv_dlopen_self=yes 18709 ;; 18710 18711 mingw* | pw32* | cegcc*) 18712 lt_cv_dlopen=LoadLibrary 18713 lt_cv_dlopen_libs= 18714 ;; 18715 18716 cygwin*) 18717 lt_cv_dlopen=dlopen 18718 lt_cv_dlopen_libs= 18719 ;; 18720 18721 darwin*) 18722 # if libdl is installed we need to link against it 18723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18724printf %s "checking for dlopen in -ldl... " >&6; } 18725if test ${ac_cv_lib_dl_dlopen+y} 18726then : 18727 printf %s "(cached) " >&6 18728else $as_nop 18729 ac_check_lib_save_LIBS=$LIBS 18730LIBS="-ldl $LIBS" 18731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18732/* end confdefs.h. */ 18733 18734/* Override any GCC internal prototype to avoid an error. 18735 Use char because int might match the return type of a GCC 18736 builtin and then its argument prototype would still apply. */ 18737char dlopen (); 18738int 18739main (void) 18740{ 18741return dlopen (); 18742 ; 18743 return 0; 18744} 18745_ACEOF 18746if ac_fn_c_try_link "$LINENO" 18747then : 18748 ac_cv_lib_dl_dlopen=yes 18749else $as_nop 18750 ac_cv_lib_dl_dlopen=no 18751fi 18752rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18753 conftest$ac_exeext conftest.$ac_ext 18754LIBS=$ac_check_lib_save_LIBS 18755fi 18756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18757printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18758if test "x$ac_cv_lib_dl_dlopen" = xyes 18759then : 18760 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18761else $as_nop 18762 18763 lt_cv_dlopen=dyld 18764 lt_cv_dlopen_libs= 18765 lt_cv_dlopen_self=yes 18766 18767fi 18768 18769 ;; 18770 18771 tpf*) 18772 # Don't try to run any link tests for TPF. We know it's impossible 18773 # because TPF is a cross-compiler, and we know how we open DSOs. 18774 lt_cv_dlopen=dlopen 18775 lt_cv_dlopen_libs= 18776 lt_cv_dlopen_self=no 18777 ;; 18778 18779 *) 18780 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18781if test "x$ac_cv_func_shl_load" = xyes 18782then : 18783 lt_cv_dlopen=shl_load 18784else $as_nop 18785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18786printf %s "checking for shl_load in -ldld... " >&6; } 18787if test ${ac_cv_lib_dld_shl_load+y} 18788then : 18789 printf %s "(cached) " >&6 18790else $as_nop 18791 ac_check_lib_save_LIBS=$LIBS 18792LIBS="-ldld $LIBS" 18793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18794/* end confdefs.h. */ 18795 18796/* Override any GCC internal prototype to avoid an error. 18797 Use char because int might match the return type of a GCC 18798 builtin and then its argument prototype would still apply. */ 18799char shl_load (); 18800int 18801main (void) 18802{ 18803return shl_load (); 18804 ; 18805 return 0; 18806} 18807_ACEOF 18808if ac_fn_c_try_link "$LINENO" 18809then : 18810 ac_cv_lib_dld_shl_load=yes 18811else $as_nop 18812 ac_cv_lib_dld_shl_load=no 18813fi 18814rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18815 conftest$ac_exeext conftest.$ac_ext 18816LIBS=$ac_check_lib_save_LIBS 18817fi 18818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18819printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18820if test "x$ac_cv_lib_dld_shl_load" = xyes 18821then : 18822 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18823else $as_nop 18824 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18825if test "x$ac_cv_func_dlopen" = xyes 18826then : 18827 lt_cv_dlopen=dlopen 18828else $as_nop 18829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18830printf %s "checking for dlopen in -ldl... " >&6; } 18831if test ${ac_cv_lib_dl_dlopen+y} 18832then : 18833 printf %s "(cached) " >&6 18834else $as_nop 18835 ac_check_lib_save_LIBS=$LIBS 18836LIBS="-ldl $LIBS" 18837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18838/* end confdefs.h. */ 18839 18840/* Override any GCC internal prototype to avoid an error. 18841 Use char because int might match the return type of a GCC 18842 builtin and then its argument prototype would still apply. */ 18843char dlopen (); 18844int 18845main (void) 18846{ 18847return dlopen (); 18848 ; 18849 return 0; 18850} 18851_ACEOF 18852if ac_fn_c_try_link "$LINENO" 18853then : 18854 ac_cv_lib_dl_dlopen=yes 18855else $as_nop 18856 ac_cv_lib_dl_dlopen=no 18857fi 18858rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18859 conftest$ac_exeext conftest.$ac_ext 18860LIBS=$ac_check_lib_save_LIBS 18861fi 18862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18863printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18864if test "x$ac_cv_lib_dl_dlopen" = xyes 18865then : 18866 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18867else $as_nop 18868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18869printf %s "checking for dlopen in -lsvld... " >&6; } 18870if test ${ac_cv_lib_svld_dlopen+y} 18871then : 18872 printf %s "(cached) " >&6 18873else $as_nop 18874 ac_check_lib_save_LIBS=$LIBS 18875LIBS="-lsvld $LIBS" 18876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18877/* end confdefs.h. */ 18878 18879/* Override any GCC internal prototype to avoid an error. 18880 Use char because int might match the return type of a GCC 18881 builtin and then its argument prototype would still apply. */ 18882char dlopen (); 18883int 18884main (void) 18885{ 18886return dlopen (); 18887 ; 18888 return 0; 18889} 18890_ACEOF 18891if ac_fn_c_try_link "$LINENO" 18892then : 18893 ac_cv_lib_svld_dlopen=yes 18894else $as_nop 18895 ac_cv_lib_svld_dlopen=no 18896fi 18897rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18898 conftest$ac_exeext conftest.$ac_ext 18899LIBS=$ac_check_lib_save_LIBS 18900fi 18901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18902printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18903if test "x$ac_cv_lib_svld_dlopen" = xyes 18904then : 18905 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18906else $as_nop 18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18908printf %s "checking for dld_link in -ldld... " >&6; } 18909if test ${ac_cv_lib_dld_dld_link+y} 18910then : 18911 printf %s "(cached) " >&6 18912else $as_nop 18913 ac_check_lib_save_LIBS=$LIBS 18914LIBS="-ldld $LIBS" 18915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18916/* end confdefs.h. */ 18917 18918/* Override any GCC internal prototype to avoid an error. 18919 Use char because int might match the return type of a GCC 18920 builtin and then its argument prototype would still apply. */ 18921char dld_link (); 18922int 18923main (void) 18924{ 18925return dld_link (); 18926 ; 18927 return 0; 18928} 18929_ACEOF 18930if ac_fn_c_try_link "$LINENO" 18931then : 18932 ac_cv_lib_dld_dld_link=yes 18933else $as_nop 18934 ac_cv_lib_dld_dld_link=no 18935fi 18936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18937 conftest$ac_exeext conftest.$ac_ext 18938LIBS=$ac_check_lib_save_LIBS 18939fi 18940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18941printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18942if test "x$ac_cv_lib_dld_dld_link" = xyes 18943then : 18944 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18945fi 18946 18947 18948fi 18949 18950 18951fi 18952 18953 18954fi 18955 18956 18957fi 18958 18959 18960fi 18961 18962 ;; 18963 esac 18964 18965 if test no = "$lt_cv_dlopen"; then 18966 enable_dlopen=no 18967 else 18968 enable_dlopen=yes 18969 fi 18970 18971 case $lt_cv_dlopen in 18972 dlopen) 18973 save_CPPFLAGS=$CPPFLAGS 18974 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18975 18976 save_LDFLAGS=$LDFLAGS 18977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18978 18979 save_LIBS=$LIBS 18980 LIBS="$lt_cv_dlopen_libs $LIBS" 18981 18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18983printf %s "checking whether a program can dlopen itself... " >&6; } 18984if test ${lt_cv_dlopen_self+y} 18985then : 18986 printf %s "(cached) " >&6 18987else $as_nop 18988 if test yes = "$cross_compiling"; then : 18989 lt_cv_dlopen_self=cross 18990else 18991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18992 lt_status=$lt_dlunknown 18993 cat > conftest.$ac_ext <<_LT_EOF 18994#line $LINENO "configure" 18995#include "confdefs.h" 18996 18997#if HAVE_DLFCN_H 18998#include <dlfcn.h> 18999#endif 19000 19001#include <stdio.h> 19002 19003#ifdef RTLD_GLOBAL 19004# define LT_DLGLOBAL RTLD_GLOBAL 19005#else 19006# ifdef DL_GLOBAL 19007# define LT_DLGLOBAL DL_GLOBAL 19008# else 19009# define LT_DLGLOBAL 0 19010# endif 19011#endif 19012 19013/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19014 find out it does not work in some platform. */ 19015#ifndef LT_DLLAZY_OR_NOW 19016# ifdef RTLD_LAZY 19017# define LT_DLLAZY_OR_NOW RTLD_LAZY 19018# else 19019# ifdef DL_LAZY 19020# define LT_DLLAZY_OR_NOW DL_LAZY 19021# else 19022# ifdef RTLD_NOW 19023# define LT_DLLAZY_OR_NOW RTLD_NOW 19024# else 19025# ifdef DL_NOW 19026# define LT_DLLAZY_OR_NOW DL_NOW 19027# else 19028# define LT_DLLAZY_OR_NOW 0 19029# endif 19030# endif 19031# endif 19032# endif 19033#endif 19034 19035/* When -fvisibility=hidden is used, assume the code has been annotated 19036 correspondingly for the symbols needed. */ 19037#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19038int fnord () __attribute__((visibility("default"))); 19039#endif 19040 19041int fnord () { return 42; } 19042int main () 19043{ 19044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19045 int status = $lt_dlunknown; 19046 19047 if (self) 19048 { 19049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19050 else 19051 { 19052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19053 else puts (dlerror ()); 19054 } 19055 /* dlclose (self); */ 19056 } 19057 else 19058 puts (dlerror ()); 19059 19060 return status; 19061} 19062_LT_EOF 19063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19064 (eval $ac_link) 2>&5 19065 ac_status=$? 19066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19067 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19068 (./conftest; exit; ) >&5 2>/dev/null 19069 lt_status=$? 19070 case x$lt_status in 19071 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19072 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19073 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19074 esac 19075 else : 19076 # compilation failed 19077 lt_cv_dlopen_self=no 19078 fi 19079fi 19080rm -fr conftest* 19081 19082 19083fi 19084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19085printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19086 19087 if test yes = "$lt_cv_dlopen_self"; then 19088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19090printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19091if test ${lt_cv_dlopen_self_static+y} 19092then : 19093 printf %s "(cached) " >&6 19094else $as_nop 19095 if test yes = "$cross_compiling"; then : 19096 lt_cv_dlopen_self_static=cross 19097else 19098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19099 lt_status=$lt_dlunknown 19100 cat > conftest.$ac_ext <<_LT_EOF 19101#line $LINENO "configure" 19102#include "confdefs.h" 19103 19104#if HAVE_DLFCN_H 19105#include <dlfcn.h> 19106#endif 19107 19108#include <stdio.h> 19109 19110#ifdef RTLD_GLOBAL 19111# define LT_DLGLOBAL RTLD_GLOBAL 19112#else 19113# ifdef DL_GLOBAL 19114# define LT_DLGLOBAL DL_GLOBAL 19115# else 19116# define LT_DLGLOBAL 0 19117# endif 19118#endif 19119 19120/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19121 find out it does not work in some platform. */ 19122#ifndef LT_DLLAZY_OR_NOW 19123# ifdef RTLD_LAZY 19124# define LT_DLLAZY_OR_NOW RTLD_LAZY 19125# else 19126# ifdef DL_LAZY 19127# define LT_DLLAZY_OR_NOW DL_LAZY 19128# else 19129# ifdef RTLD_NOW 19130# define LT_DLLAZY_OR_NOW RTLD_NOW 19131# else 19132# ifdef DL_NOW 19133# define LT_DLLAZY_OR_NOW DL_NOW 19134# else 19135# define LT_DLLAZY_OR_NOW 0 19136# endif 19137# endif 19138# endif 19139# endif 19140#endif 19141 19142/* When -fvisibility=hidden is used, assume the code has been annotated 19143 correspondingly for the symbols needed. */ 19144#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19145int fnord () __attribute__((visibility("default"))); 19146#endif 19147 19148int fnord () { return 42; } 19149int main () 19150{ 19151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19152 int status = $lt_dlunknown; 19153 19154 if (self) 19155 { 19156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19157 else 19158 { 19159 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19160 else puts (dlerror ()); 19161 } 19162 /* dlclose (self); */ 19163 } 19164 else 19165 puts (dlerror ()); 19166 19167 return status; 19168} 19169_LT_EOF 19170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19171 (eval $ac_link) 2>&5 19172 ac_status=$? 19173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19174 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19175 (./conftest; exit; ) >&5 2>/dev/null 19176 lt_status=$? 19177 case x$lt_status in 19178 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19179 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19180 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19181 esac 19182 else : 19183 # compilation failed 19184 lt_cv_dlopen_self_static=no 19185 fi 19186fi 19187rm -fr conftest* 19188 19189 19190fi 19191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19192printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19193 fi 19194 19195 CPPFLAGS=$save_CPPFLAGS 19196 LDFLAGS=$save_LDFLAGS 19197 LIBS=$save_LIBS 19198 ;; 19199 esac 19200 19201 case $lt_cv_dlopen_self in 19202 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19203 *) enable_dlopen_self=unknown ;; 19204 esac 19205 19206 case $lt_cv_dlopen_self_static in 19207 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19208 *) enable_dlopen_self_static=unknown ;; 19209 esac 19210fi 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228striplib= 19229old_striplib= 19230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19231printf %s "checking whether stripping libraries is possible... " >&6; } 19232if test -z "$STRIP"; then 19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19234printf "%s\n" "no" >&6; } 19235else 19236 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19237 old_striplib="$STRIP --strip-debug" 19238 striplib="$STRIP --strip-unneeded" 19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19240printf "%s\n" "yes" >&6; } 19241 else 19242 case $host_os in 19243 darwin*) 19244 # FIXME - insert some real tests, host_os isn't really good enough 19245 striplib="$STRIP -x" 19246 old_striplib="$STRIP -S" 19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19248printf "%s\n" "yes" >&6; } 19249 ;; 19250 freebsd*) 19251 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19252 old_striplib="$STRIP --strip-debug" 19253 striplib="$STRIP --strip-unneeded" 19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19255printf "%s\n" "yes" >&6; } 19256 else 19257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19258printf "%s\n" "no" >&6; } 19259 fi 19260 ;; 19261 *) 19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19263printf "%s\n" "no" >&6; } 19264 ;; 19265 esac 19266 fi 19267fi 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 # Report what library types will actually be built 19281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19282printf %s "checking if libtool supports shared libraries... " >&6; } 19283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19284printf "%s\n" "$can_build_shared" >&6; } 19285 19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19287printf %s "checking whether to build shared libraries... " >&6; } 19288 test no = "$can_build_shared" && enable_shared=no 19289 19290 # On AIX, shared libraries and static libraries use the same namespace, and 19291 # are all built from PIC. 19292 case $host_os in 19293 aix3*) 19294 test yes = "$enable_shared" && enable_static=no 19295 if test -n "$RANLIB"; then 19296 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19297 postinstall_cmds='$RANLIB $lib' 19298 fi 19299 ;; 19300 19301 aix[4-9]*) 19302 if test ia64 != "$host_cpu"; then 19303 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19304 yes,aix,yes) ;; # shared object as lib.so file only 19305 yes,svr4,*) ;; # shared object as lib.so archive member only 19306 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19307 esac 19308 fi 19309 ;; 19310 esac 19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19312printf "%s\n" "$enable_shared" >&6; } 19313 19314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19315printf %s "checking whether to build static libraries... " >&6; } 19316 # Make sure either enable_shared or enable_static is yes. 19317 test yes = "$enable_shared" || enable_static=yes 19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19319printf "%s\n" "$enable_static" >&6; } 19320 19321 19322 19323 19324fi 19325ac_ext=c 19326ac_cpp='$CPP $CPPFLAGS' 19327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19329ac_compiler_gnu=$ac_cv_c_compiler_gnu 19330 19331CC=$lt_save_CC 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 ac_config_commands="$ac_config_commands libtool" 19348 19349 19350 19351 19352# Only expand once: 19353 19354 19355 19356if test "x$GCC" = "xyes"; then 19357 CPPFLAGS="$CPPFLAGS -Wall" 19358fi 19359 19360 19361 19362# Define a configure option for an alternate module directory 19363 19364# Check whether --with-xorg-module-dir was given. 19365if test ${with_xorg_module_dir+y} 19366then : 19367 withval=$with_xorg_module_dir; moduledir="$withval" 19368else $as_nop 19369 moduledir="$libdir/xorg/modules" 19370fi 19371 19372 19373# Check whether --enable-dri was given. 19374if test ${enable_dri+y} 19375then : 19376 enableval=$enable_dri; DRI="$enableval" 19377else $as_nop 19378 DRI=auto 19379fi 19380 19381 19382# Check whether --enable-exa was given. 19383if test ${enable_exa+y} 19384then : 19385 enableval=$enable_exa; EXA="$enableval" 19386else $as_nop 19387 EXA=yes 19388fi 19389 19390 19391# Store the list of server defined optional extensions in REQUIRED_MODULES 19392 19393 19394 SAVE_CFLAGS="$CFLAGS" 19395 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19397/* end confdefs.h. */ 19398 19399#include "xorg-server.h" 19400#if !defined RANDR 19401#error RANDR not defined 19402#endif 19403 19404int 19405main (void) 19406{ 19407 19408 ; 19409 return 0; 19410} 19411_ACEOF 19412if ac_fn_c_try_compile "$LINENO" 19413then : 19414 _EXT_CHECK=yes 19415else $as_nop 19416 _EXT_CHECK=no 19417fi 19418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19419 CFLAGS="$SAVE_CFLAGS" 19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19421printf %s "checking if RANDR is defined... " >&6; } 19422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19423printf "%s\n" "$_EXT_CHECK" >&6; } 19424 if test "$_EXT_CHECK" != no; then 19425 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19426 fi 19427 19428 19429 19430 SAVE_CFLAGS="$CFLAGS" 19431 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19433/* end confdefs.h. */ 19434 19435#include "xorg-server.h" 19436#if !defined RENDER 19437#error RENDER not defined 19438#endif 19439 19440int 19441main (void) 19442{ 19443 19444 ; 19445 return 0; 19446} 19447_ACEOF 19448if ac_fn_c_try_compile "$LINENO" 19449then : 19450 _EXT_CHECK=yes 19451else $as_nop 19452 _EXT_CHECK=no 19453fi 19454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19455 CFLAGS="$SAVE_CFLAGS" 19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19457printf %s "checking if RENDER is defined... " >&6; } 19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19459printf "%s\n" "$_EXT_CHECK" >&6; } 19460 if test "$_EXT_CHECK" != no; then 19461 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19462 fi 19463 19464 19465 19466 SAVE_CFLAGS="$CFLAGS" 19467 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19469/* end confdefs.h. */ 19470 19471#include "xorg-server.h" 19472#if !defined XV 19473#error XV not defined 19474#endif 19475 19476int 19477main (void) 19478{ 19479 19480 ; 19481 return 0; 19482} 19483_ACEOF 19484if ac_fn_c_try_compile "$LINENO" 19485then : 19486 _EXT_CHECK=yes 19487else $as_nop 19488 _EXT_CHECK=no 19489fi 19490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19491 CFLAGS="$SAVE_CFLAGS" 19492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19493printf %s "checking if XV is defined... " >&6; } 19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19495printf "%s\n" "$_EXT_CHECK" >&6; } 19496 if test "$_EXT_CHECK" != no; then 19497 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19498 fi 19499 19500 19501 19502 SAVE_CFLAGS="$CFLAGS" 19503 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19505/* end confdefs.h. */ 19506 19507#include "xorg-server.h" 19508#if !defined XF86MISC 19509#error XF86MISC not defined 19510#endif 19511 19512int 19513main (void) 19514{ 19515 19516 ; 19517 return 0; 19518} 19519_ACEOF 19520if ac_fn_c_try_compile "$LINENO" 19521then : 19522 _EXT_CHECK=yes 19523else $as_nop 19524 _EXT_CHECK=no 19525fi 19526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19527 CFLAGS="$SAVE_CFLAGS" 19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XF86MISC is defined" >&5 19529printf %s "checking if XF86MISC is defined... " >&6; } 19530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19531printf "%s\n" "$_EXT_CHECK" >&6; } 19532 if test "$_EXT_CHECK" != no; then 19533 REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto" 19534 fi 19535 19536 19537 19538 SAVE_CFLAGS="$CFLAGS" 19539 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19541/* end confdefs.h. */ 19542 19543#include "xorg-server.h" 19544#if !defined DPMSExtension 19545#error DPMSExtension not defined 19546#endif 19547 19548int 19549main (void) 19550{ 19551 19552 ; 19553 return 0; 19554} 19555_ACEOF 19556if ac_fn_c_try_compile "$LINENO" 19557then : 19558 _EXT_CHECK=yes 19559else $as_nop 19560 _EXT_CHECK=no 19561fi 19562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19563 CFLAGS="$SAVE_CFLAGS" 19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19565printf %s "checking if DPMSExtension is defined... " >&6; } 19566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19567printf "%s\n" "$_EXT_CHECK" >&6; } 19568 if test "$_EXT_CHECK" != no; then 19569 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19570 fi 19571 19572 19573# Obtain compiler/linker options for the driver dependencies 19574 19575pkg_failed=no 19576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19577printf %s "checking for XORG... " >&6; } 19578 19579if test -n "$XORG_CFLAGS"; then 19580 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19581 elif test -n "$PKG_CONFIG"; then 19582 if test -n "$PKG_CONFIG" && \ 19583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19584 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 19585 ac_status=$? 19586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19587 test $ac_status = 0; }; then 19588 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19589 test "x$?" != "x0" && pkg_failed=yes 19590else 19591 pkg_failed=yes 19592fi 19593 else 19594 pkg_failed=untried 19595fi 19596if test -n "$XORG_LIBS"; then 19597 pkg_cv_XORG_LIBS="$XORG_LIBS" 19598 elif test -n "$PKG_CONFIG"; then 19599 if test -n "$PKG_CONFIG" && \ 19600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19601 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 19602 ac_status=$? 19603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19604 test $ac_status = 0; }; then 19605 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19606 test "x$?" != "x0" && pkg_failed=yes 19607else 19608 pkg_failed=yes 19609fi 19610 else 19611 pkg_failed=untried 19612fi 19613 19614 19615 19616if test $pkg_failed = yes; then 19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19618printf "%s\n" "no" >&6; } 19619 19620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19621 _pkg_short_errors_supported=yes 19622else 19623 _pkg_short_errors_supported=no 19624fi 19625 if test $_pkg_short_errors_supported = yes; then 19626 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19627 else 19628 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19629 fi 19630 # Put the nasty error message in config.log where it belongs 19631 echo "$XORG_PKG_ERRORS" >&5 19632 19633 as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met: 19634 19635$XORG_PKG_ERRORS 19636 19637Consider adjusting the PKG_CONFIG_PATH environment variable if you 19638installed software in a non-standard prefix. 19639 19640Alternatively, you may set the environment variables XORG_CFLAGS 19641and XORG_LIBS to avoid the need to call pkg-config. 19642See the pkg-config man page for more details." "$LINENO" 5 19643elif test $pkg_failed = untried; then 19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19645printf "%s\n" "no" >&6; } 19646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19647printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19648as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19649is in your PATH or set the PKG_CONFIG environment variable to the full 19650path to pkg-config. 19651 19652Alternatively, you may set the environment variables XORG_CFLAGS 19653and XORG_LIBS to avoid the need to call pkg-config. 19654See the pkg-config man page for more details. 19655 19656To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19657See \`config.log' for more details" "$LINENO" 5; } 19658else 19659 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19660 XORG_LIBS=$pkg_cv_XORG_LIBS 19661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19662printf "%s\n" "yes" >&6; } 19663 19664fi 19665 19666pkg_failed=no 19667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19668printf %s "checking for XEXT... " >&6; } 19669 19670if test -n "$XEXT_CFLAGS"; then 19671 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19672 elif test -n "$PKG_CONFIG"; then 19673 if test -n "$PKG_CONFIG" && \ 19674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19675 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19676 ac_status=$? 19677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19678 test $ac_status = 0; }; then 19679 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19680 test "x$?" != "x0" && pkg_failed=yes 19681else 19682 pkg_failed=yes 19683fi 19684 else 19685 pkg_failed=untried 19686fi 19687if test -n "$XEXT_LIBS"; then 19688 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19689 elif test -n "$PKG_CONFIG"; then 19690 if test -n "$PKG_CONFIG" && \ 19691 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19692 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19693 ac_status=$? 19694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19695 test $ac_status = 0; }; then 19696 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19697 test "x$?" != "x0" && pkg_failed=yes 19698else 19699 pkg_failed=yes 19700fi 19701 else 19702 pkg_failed=untried 19703fi 19704 19705 19706 19707if test $pkg_failed = yes; then 19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19709printf "%s\n" "no" >&6; } 19710 19711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19712 _pkg_short_errors_supported=yes 19713else 19714 _pkg_short_errors_supported=no 19715fi 19716 if test $_pkg_short_errors_supported = yes; then 19717 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19718 else 19719 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19720 fi 19721 # Put the nasty error message in config.log where it belongs 19722 echo "$XEXT_PKG_ERRORS" >&5 19723 19724 HAVE_XEXTPROTO_71="no" 19725elif test $pkg_failed = untried; then 19726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19727printf "%s\n" "no" >&6; } 19728 HAVE_XEXTPROTO_71="no" 19729else 19730 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19731 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19733printf "%s\n" "yes" >&6; } 19734 HAVE_XEXTPROTO_71="yes"; 19735printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19736 19737fi 19738 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19739 HAVE_XEXTPROTO_71_TRUE= 19740 HAVE_XEXTPROTO_71_FALSE='#' 19741else 19742 HAVE_XEXTPROTO_71_TRUE='#' 19743 HAVE_XEXTPROTO_71_FALSE= 19744fi 19745 19746sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 19747 19748# Checks for libraries. 19749 19750if test "$DRI" != no; then 19751 if test -f "${sdkdir}/dri.h"; then 19752 have_dri_h="yes" 19753 else 19754 have_dri_h="no" 19755 fi 19756 if test -f "${sdkdir}/sarea.h"; then 19757 have_sarea_h="yes" 19758 else 19759 have_sarea_h="no" 19760 fi 19761 if test -f "${sdkdir}/dristruct.h"; then 19762 have_dristruct_h="yes" 19763 else 19764 have_dristruct_h="no" 19765 fi 19766 if test -f "${sdkdir}/damage.h"; then 19767 have_damage_h="yes" 19768 else 19769 have_damage_h="no" 19770 fi 19771fi 19772 19773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 19774printf %s "checking whether to include DRI support... " >&6; } 19775if test x$DRI = xauto; then 19776 if test "$have_dri_h" = yes -a \ 19777 "$have_sarea_h" = yes -a \ 19778 "$have_dristruct_h" = yes; then 19779 DRI="yes" 19780 else 19781 DRI="no" 19782 fi 19783fi 19784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 19785printf "%s\n" "$DRI" >&6; } 19786 19787 if test x$DRI = xyes; then 19788 DRI_TRUE= 19789 DRI_FALSE='#' 19790else 19791 DRI_TRUE='#' 19792 DRI_FALSE= 19793fi 19794 19795if test "$DRI" = yes; then 19796 19797pkg_failed=no 19798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 19799printf %s "checking for DRI... " >&6; } 19800 19801if test -n "$DRI_CFLAGS"; then 19802 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 19803 elif test -n "$PKG_CONFIG"; then 19804 if test -n "$PKG_CONFIG" && \ 19805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5 19806 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 19807 ac_status=$? 19808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19809 test $ac_status = 0; }; then 19810 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null` 19811 test "x$?" != "x0" && pkg_failed=yes 19812else 19813 pkg_failed=yes 19814fi 19815 else 19816 pkg_failed=untried 19817fi 19818if test -n "$DRI_LIBS"; then 19819 pkg_cv_DRI_LIBS="$DRI_LIBS" 19820 elif test -n "$PKG_CONFIG"; then 19821 if test -n "$PKG_CONFIG" && \ 19822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5 19823 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 19824 ac_status=$? 19825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19826 test $ac_status = 0; }; then 19827 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null` 19828 test "x$?" != "x0" && pkg_failed=yes 19829else 19830 pkg_failed=yes 19831fi 19832 else 19833 pkg_failed=untried 19834fi 19835 19836 19837 19838if test $pkg_failed = yes; then 19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19840printf "%s\n" "no" >&6; } 19841 19842if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19843 _pkg_short_errors_supported=yes 19844else 19845 _pkg_short_errors_supported=no 19846fi 19847 if test $_pkg_short_errors_supported = yes; then 19848 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1` 19849 else 19850 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1` 19851 fi 19852 # Put the nasty error message in config.log where it belongs 19853 echo "$DRI_PKG_ERRORS" >&5 19854 19855 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met: 19856 19857$DRI_PKG_ERRORS 19858 19859Consider adjusting the PKG_CONFIG_PATH environment variable if you 19860installed software in a non-standard prefix. 19861 19862Alternatively, you may set the environment variables DRI_CFLAGS 19863and DRI_LIBS to avoid the need to call pkg-config. 19864See the pkg-config man page for more details." "$LINENO" 5 19865elif test $pkg_failed = untried; then 19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19867printf "%s\n" "no" >&6; } 19868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19869printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19870as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19871is in your PATH or set the PKG_CONFIG environment variable to the full 19872path to pkg-config. 19873 19874Alternatively, you may set the environment variables DRI_CFLAGS 19875and DRI_LIBS to avoid the need to call pkg-config. 19876See the pkg-config man page for more details. 19877 19878To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19879See \`config.log' for more details" "$LINENO" 5; } 19880else 19881 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19882 DRI_LIBS=$pkg_cv_DRI_LIBS 19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19884printf "%s\n" "yes" >&6; } 19885 19886fi 19887 19888printf "%s\n" "#define R128DRI 1" >>confdefs.h 19889 19890 19891printf "%s\n" "#define R128DRI_DEVEL 1" >>confdefs.h 19892 19893fi 19894 19895SAVE_CPPFLAGS="$CPPFLAGS" 19896CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19897# Properly handle EXA. 19898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5 19899printf %s "checking whether to enable EXA support... " >&6; } 19900if test "x$EXA" = xyes; then 19901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19902printf "%s\n" "yes" >&6; } 19903 if test -f "${sdkdir}/exa.h" 19904then : 19905 have_exa_h="yes" 19906else $as_nop 19907 have_exa_h="no" 19908fi 19909else 19910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19911printf "%s\n" "no" >&6; } 19912fi 19913 19914SAVE_CPPFLAGS="$CPPFLAGS" 19915CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19916if test "x$have_exa_h" = xyes; then 19917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5 19918printf %s "checking whether EXA version is at least 2.0.0... " >&6; } 19919 ac_ext=c 19920ac_cpp='$CPP $CPPFLAGS' 19921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19923ac_compiler_gnu=$ac_cv_c_compiler_gnu 19924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 19925printf %s "checking how to run the C preprocessor... " >&6; } 19926# On Suns, sometimes $CPP names a directory. 19927if test -n "$CPP" && test -d "$CPP"; then 19928 CPP= 19929fi 19930if test -z "$CPP"; then 19931 if test ${ac_cv_prog_CPP+y} 19932then : 19933 printf %s "(cached) " >&6 19934else $as_nop 19935 # Double quotes because $CC needs to be expanded 19936 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 19937 do 19938 ac_preproc_ok=false 19939for ac_c_preproc_warn_flag in '' yes 19940do 19941 # Use a header file that comes with gcc, so configuring glibc 19942 # with a fresh cross-compiler works. 19943 # On the NeXT, cc -E runs the code through the compiler's parser, 19944 # not just through cpp. "Syntax error" is here to catch this case. 19945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19946/* end confdefs.h. */ 19947#include <limits.h> 19948 Syntax error 19949_ACEOF 19950if ac_fn_c_try_cpp "$LINENO" 19951then : 19952 19953else $as_nop 19954 # Broken: fails on valid input. 19955continue 19956fi 19957rm -f conftest.err conftest.i conftest.$ac_ext 19958 19959 # OK, works on sane cases. Now check whether nonexistent headers 19960 # can be detected and how. 19961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19962/* end confdefs.h. */ 19963#include <ac_nonexistent.h> 19964_ACEOF 19965if ac_fn_c_try_cpp "$LINENO" 19966then : 19967 # Broken: success on invalid input. 19968continue 19969else $as_nop 19970 # Passes both tests. 19971ac_preproc_ok=: 19972break 19973fi 19974rm -f conftest.err conftest.i conftest.$ac_ext 19975 19976done 19977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19978rm -f conftest.i conftest.err conftest.$ac_ext 19979if $ac_preproc_ok 19980then : 19981 break 19982fi 19983 19984 done 19985 ac_cv_prog_CPP=$CPP 19986 19987fi 19988 CPP=$ac_cv_prog_CPP 19989else 19990 ac_cv_prog_CPP=$CPP 19991fi 19992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 19993printf "%s\n" "$CPP" >&6; } 19994ac_preproc_ok=false 19995for ac_c_preproc_warn_flag in '' yes 19996do 19997 # Use a header file that comes with gcc, so configuring glibc 19998 # with a fresh cross-compiler works. 19999 # On the NeXT, cc -E runs the code through the compiler's parser, 20000 # not just through cpp. "Syntax error" is here to catch this case. 20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20002/* end confdefs.h. */ 20003#include <limits.h> 20004 Syntax error 20005_ACEOF 20006if ac_fn_c_try_cpp "$LINENO" 20007then : 20008 20009else $as_nop 20010 # Broken: fails on valid input. 20011continue 20012fi 20013rm -f conftest.err conftest.i conftest.$ac_ext 20014 20015 # OK, works on sane cases. Now check whether nonexistent headers 20016 # can be detected and how. 20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20018/* end confdefs.h. */ 20019#include <ac_nonexistent.h> 20020_ACEOF 20021if ac_fn_c_try_cpp "$LINENO" 20022then : 20023 # Broken: success on invalid input. 20024continue 20025else $as_nop 20026 # Passes both tests. 20027ac_preproc_ok=: 20028break 20029fi 20030rm -f conftest.err conftest.i conftest.$ac_ext 20031 20032done 20033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20034rm -f conftest.i conftest.err conftest.$ac_ext 20035if $ac_preproc_ok 20036then : 20037 20038else $as_nop 20039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20041as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20042See \`config.log' for more details" "$LINENO" 5; } 20043fi 20044 20045ac_ext=c 20046ac_cpp='$CPP $CPPFLAGS' 20047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20049ac_compiler_gnu=$ac_cv_c_compiler_gnu 20050 20051 20052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20053/* end confdefs.h. */ 20054 20055#include "xorg-server.h" 20056#include "exa.h" 20057#if EXA_VERSION_MAJOR < 2 20058#error OLD EXA! 20059#endif 20060 20061int 20062main (void) 20063{ 20064 20065 ; 20066 return 0; 20067} 20068_ACEOF 20069if ac_fn_c_try_cpp "$LINENO" 20070then : 20071 USE_EXA=yes 20072else $as_nop 20073 USE_EXA=no 20074fi 20075rm -f conftest.err conftest.i conftest.$ac_ext 20076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5 20077printf "%s\n" "$USE_EXA" >&6; } 20078 20079 if test "x$USE_EXA" = xyes; then 20080 20081printf "%s\n" "#define USE_EXA 1" >>confdefs.h 20082 20083 fi 20084fi 20085 20086ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 20087" "$ac_c_undeclared_builtin_options" "CFLAGS" 20088if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 20089then : 20090 XSERVER_LIBPCIACCESS=yes 20091else $as_nop 20092 XSERVER_LIBPCIACCESS=no 20093fi 20094CPPFLAGS="$SAVE_CPPFLAGS" 20095 20096# Check whether --enable-xaa was given. 20097if test ${enable_xaa+y} 20098then : 20099 enableval=$enable_xaa; XAA="$enableval" 20100else $as_nop 20101 XAA=auto 20102fi 20103 20104if test "x$XAA" != xno; then 20105 save_CFLAGS=$CFLAGS 20106 save_CPPFLAGS=$CPPFLAGS 20107 CFLAGS=$XORG_CFLAGS 20108 CPPFLAGS="$XORG_CFLAGS" 20109 for ac_header in xaa.h 20110do : 20111 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 20112if test "x$ac_cv_header_xaa_h" = xyes 20113then : 20114 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 20115 XAA=yes 20116else $as_nop 20117 XAA=no 20118fi 20119 20120done 20121 CFLAGS=$save_CFLAGS 20122 CPPFLAGS=$save_CPPFLAGS 20123fi 20124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 20125printf %s "checking whether to include XAA support... " >&6; } 20126 if test "x$XAA" = xyes; then 20127 XAA_TRUE= 20128 XAA_FALSE='#' 20129else 20130 XAA_TRUE='#' 20131 XAA_FALSE= 20132fi 20133 20134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 20135printf "%s\n" "$XAA" >&6; } 20136 20137 if test "x$USE_EXA" = xyes; then 20138 USE_EXA_TRUE= 20139 USE_EXA_FALSE='#' 20140else 20141 USE_EXA_TRUE='#' 20142 USE_EXA_FALSE= 20143fi 20144 20145 20146if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20147 20148pkg_failed=no 20149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 20150printf %s "checking for PCIACCESS... " >&6; } 20151 20152if test -n "$PCIACCESS_CFLAGS"; then 20153 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 20154 elif test -n "$PKG_CONFIG"; then 20155 if test -n "$PKG_CONFIG" && \ 20156 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 20157 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 20158 ac_status=$? 20159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20160 test $ac_status = 0; }; then 20161 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 20162 test "x$?" != "x0" && pkg_failed=yes 20163else 20164 pkg_failed=yes 20165fi 20166 else 20167 pkg_failed=untried 20168fi 20169if test -n "$PCIACCESS_LIBS"; then 20170 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20171 elif test -n "$PKG_CONFIG"; then 20172 if test -n "$PKG_CONFIG" && \ 20173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 20174 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 20175 ac_status=$? 20176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20177 test $ac_status = 0; }; then 20178 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 20179 test "x$?" != "x0" && pkg_failed=yes 20180else 20181 pkg_failed=yes 20182fi 20183 else 20184 pkg_failed=untried 20185fi 20186 20187 20188 20189if test $pkg_failed = yes; then 20190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20191printf "%s\n" "no" >&6; } 20192 20193if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20194 _pkg_short_errors_supported=yes 20195else 20196 _pkg_short_errors_supported=no 20197fi 20198 if test $_pkg_short_errors_supported = yes; then 20199 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 20200 else 20201 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 20202 fi 20203 # Put the nasty error message in config.log where it belongs 20204 echo "$PCIACCESS_PKG_ERRORS" >&5 20205 20206 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 20207 20208$PCIACCESS_PKG_ERRORS 20209 20210Consider adjusting the PKG_CONFIG_PATH environment variable if you 20211installed software in a non-standard prefix. 20212 20213Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20214and PCIACCESS_LIBS to avoid the need to call pkg-config. 20215See the pkg-config man page for more details." "$LINENO" 5 20216elif test $pkg_failed = untried; then 20217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20218printf "%s\n" "no" >&6; } 20219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20220printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20221as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20222is in your PATH or set the PKG_CONFIG environment variable to the full 20223path to pkg-config. 20224 20225Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20226and PCIACCESS_LIBS to avoid the need to call pkg-config. 20227See the pkg-config man page for more details. 20228 20229To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20230See \`config.log' for more details" "$LINENO" 5; } 20231else 20232 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20233 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20235printf "%s\n" "yes" >&6; } 20236 20237fi 20238 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 20239fi 20240 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20241 XSERVER_LIBPCIACCESS_TRUE= 20242 XSERVER_LIBPCIACCESS_FALSE='#' 20243else 20244 XSERVER_LIBPCIACCESS_TRUE='#' 20245 XSERVER_LIBPCIACCESS_FALSE= 20246fi 20247 20248 20249# Checks for headers/macros for byte swapping 20250# Known variants: 20251# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 20252# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 20253# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 20254# and a fallback to local macros if none of the above are found 20255 20256# if <byteswap.h> is found, assume it's the correct version 20257ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 20258if test "x$ac_cv_header_byteswap_h" = xyes 20259then : 20260 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h 20261 20262fi 20263 20264 20265# if <sys/endian.h> is found, have to check which version 20266ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 20267if test "x$ac_cv_header_sys_endian_h" = xyes 20268then : 20269 HAVE_SYS_ENDIAN_H="yes" 20270else $as_nop 20271 HAVE_SYS_ENDIAN_H="no" 20272fi 20273 20274 20275if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 20276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 20277printf %s "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20279/* end confdefs.h. */ 20280 20281#include <sys/types.h> 20282#include <sys/endian.h> 20283 20284int 20285main (void) 20286{ 20287 20288int a = 1, b; 20289b = __swap16(a); 20290 20291 ; 20292 return 0; 20293} 20294 20295_ACEOF 20296if ac_fn_c_try_link "$LINENO" 20297then : 20298 SYS_ENDIAN__SWAP='yes' 20299else $as_nop 20300 SYS_ENDIAN__SWAP='no' 20301fi 20302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20303 conftest$ac_exeext conftest.$ac_ext 20304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 20305printf "%s\n" "$SYS_ENDIAN__SWAP" >&6; } 20306 20307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 20308printf %s "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 20309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20310/* end confdefs.h. */ 20311 20312#include <sys/types.h> 20313#include <sys/endian.h> 20314 20315int 20316main (void) 20317{ 20318 20319int a = 1, b; 20320b = bswap16(a); 20321 20322 ; 20323 return 0; 20324} 20325 20326_ACEOF 20327if ac_fn_c_try_link "$LINENO" 20328then : 20329 SYS_ENDIAN_BSWAP='yes' 20330else $as_nop 20331 SYS_ENDIAN_BSWAP='no' 20332fi 20333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20334 conftest$ac_exeext conftest.$ac_ext 20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 20336printf "%s\n" "$SYS_ENDIAN_BSWAP" >&6; } 20337 20338 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 20339 USE_SYS_ENDIAN_H=yes 20340 BSWAP=bswap 20341 else 20342 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 20343 USE_SYS_ENDIAN_H=yes 20344 BSWAP=__swap 20345 else 20346 USE_SYS_ENDIAN_H=no 20347 fi 20348 fi 20349 20350 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 20351 20352printf "%s\n" "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 20353 20354 20355printf "%s\n" "#define bswap_16 ${BSWAP}16" >>confdefs.h 20356 20357 20358printf "%s\n" "#define bswap_32 ${BSWAP}32" >>confdefs.h 20359 20360 20361printf "%s\n" "#define bswap_64 ${BSWAP}64" >>confdefs.h 20362 20363 fi 20364fi 20365 20366 20367 20368DRIVER_NAME=r128 20369 20370 20371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install 20372the ati wrapper as well: 20373 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati 20374" >&5 20375printf "%s\n" "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install 20376the ati wrapper as well: 20377 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati 20378" >&6;} 20379 20380ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20381 20382cat >confcache <<\_ACEOF 20383# This file is a shell script that caches the results of configure 20384# tests run on this system so they can be shared between configure 20385# scripts and configure runs, see configure's option --config-cache. 20386# It is not useful on other systems. If it contains results you don't 20387# want to keep, you may remove or edit it. 20388# 20389# config.status only pays attention to the cache file if you give it 20390# the --recheck option to rerun configure. 20391# 20392# `ac_cv_env_foo' variables (set or unset) will be overridden when 20393# loading this file, other *unset* `ac_cv_foo' will be assigned the 20394# following values. 20395 20396_ACEOF 20397 20398# The following way of writing the cache mishandles newlines in values, 20399# but we know of no workaround that is simple, portable, and efficient. 20400# So, we kill variables containing newlines. 20401# Ultrix sh set writes to stderr and can't be redirected directly, 20402# and sets the high bit in the cache file unless we assign to the vars. 20403( 20404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20405 eval ac_val=\$$ac_var 20406 case $ac_val in #( 20407 *${as_nl}*) 20408 case $ac_var in #( 20409 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20410printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20411 esac 20412 case $ac_var in #( 20413 _ | IFS | as_nl) ;; #( 20414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20415 *) { eval $ac_var=; unset $ac_var;} ;; 20416 esac ;; 20417 esac 20418 done 20419 20420 (set) 2>&1 | 20421 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20422 *${as_nl}ac_space=\ *) 20423 # `set' does not quote correctly, so add quotes: double-quote 20424 # substitution turns \\\\ into \\, and sed turns \\ into \. 20425 sed -n \ 20426 "s/'/'\\\\''/g; 20427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20428 ;; #( 20429 *) 20430 # `set' quotes correctly as required by POSIX, so do not add quotes. 20431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20432 ;; 20433 esac | 20434 sort 20435) | 20436 sed ' 20437 /^ac_cv_env_/b end 20438 t clear 20439 :clear 20440 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20441 t end 20442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20443 :end' >>confcache 20444if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20445 if test -w "$cache_file"; then 20446 if test "x$cache_file" != "x/dev/null"; then 20447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20448printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20449 if test ! -f "$cache_file" || test -h "$cache_file"; then 20450 cat confcache >"$cache_file" 20451 else 20452 case $cache_file in #( 20453 */* | ?:*) 20454 mv -f confcache "$cache_file"$$ && 20455 mv -f "$cache_file"$$ "$cache_file" ;; #( 20456 *) 20457 mv -f confcache "$cache_file" ;; 20458 esac 20459 fi 20460 fi 20461 else 20462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20463printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20464 fi 20465fi 20466rm -f confcache 20467 20468test "x$prefix" = xNONE && prefix=$ac_default_prefix 20469# Let make expand exec_prefix. 20470test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20471 20472DEFS=-DHAVE_CONFIG_H 20473 20474ac_libobjs= 20475ac_ltlibobjs= 20476U= 20477for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20478 # 1. Remove the extension, and $U if already installed. 20479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20480 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20482 # will be set to the directory where LIBOBJS objects are built. 20483 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20484 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20485done 20486LIBOBJS=$ac_libobjs 20487 20488LTLIBOBJS=$ac_ltlibobjs 20489 20490 20491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20492printf %s "checking that generated files are newer than configure... " >&6; } 20493 if test -n "$am_sleep_pid"; then 20494 # Hide warnings about reused PIDs. 20495 wait $am_sleep_pid 2>/dev/null 20496 fi 20497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20498printf "%s\n" "done" >&6; } 20499 if test -n "$EXEEXT"; then 20500 am__EXEEXT_TRUE= 20501 am__EXEEXT_FALSE='#' 20502else 20503 am__EXEEXT_TRUE='#' 20504 am__EXEEXT_FALSE= 20505fi 20506 20507if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20508 as_fn_error $? "conditional \"AMDEP\" was never defined. 20509Usually this means the macro was only invoked conditionally." "$LINENO" 5 20510fi 20511if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20512 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20513Usually this means the macro was only invoked conditionally." "$LINENO" 5 20514fi 20515if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20516 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20517Usually this means the macro was only invoked conditionally." "$LINENO" 5 20518fi 20519if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 20520 as_fn_error $? "conditional \"DRI\" was never defined. 20521Usually this means the macro was only invoked conditionally." "$LINENO" 5 20522fi 20523if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 20524 as_fn_error $? "conditional \"XAA\" was never defined. 20525Usually this means the macro was only invoked conditionally." "$LINENO" 5 20526fi 20527if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 20528 as_fn_error $? "conditional \"USE_EXA\" was never defined. 20529Usually this means the macro was only invoked conditionally." "$LINENO" 5 20530fi 20531if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 20532 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 20533Usually this means the macro was only invoked conditionally." "$LINENO" 5 20534fi 20535 20536: "${CONFIG_STATUS=./config.status}" 20537ac_write_fail=0 20538ac_clean_files_save=$ac_clean_files 20539ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20541printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20542as_write_fail=0 20543cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20544#! $SHELL 20545# Generated by $as_me. 20546# Run this file to recreate the current configuration. 20547# Compiler output produced by configure, useful for debugging 20548# configure, is in config.log if it exists. 20549 20550debug=false 20551ac_cs_recheck=false 20552ac_cs_silent=false 20553 20554SHELL=\${CONFIG_SHELL-$SHELL} 20555export SHELL 20556_ASEOF 20557cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20558## -------------------- ## 20559## M4sh Initialization. ## 20560## -------------------- ## 20561 20562# Be more Bourne compatible 20563DUALCASE=1; export DUALCASE # for MKS sh 20564as_nop=: 20565if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20566then : 20567 emulate sh 20568 NULLCMD=: 20569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20570 # is contrary to our usage. Disable this feature. 20571 alias -g '${1+"$@"}'='"$@"' 20572 setopt NO_GLOB_SUBST 20573else $as_nop 20574 case `(set -o) 2>/dev/null` in #( 20575 *posix*) : 20576 set -o posix ;; #( 20577 *) : 20578 ;; 20579esac 20580fi 20581 20582 20583 20584# Reset variables that may have inherited troublesome values from 20585# the environment. 20586 20587# IFS needs to be set, to space, tab, and newline, in precisely that order. 20588# (If _AS_PATH_WALK were called with IFS unset, it would have the 20589# side effect of setting IFS to empty, thus disabling word splitting.) 20590# Quoting is to prevent editors from complaining about space-tab. 20591as_nl=' 20592' 20593export as_nl 20594IFS=" "" $as_nl" 20595 20596PS1='$ ' 20597PS2='> ' 20598PS4='+ ' 20599 20600# Ensure predictable behavior from utilities with locale-dependent output. 20601LC_ALL=C 20602export LC_ALL 20603LANGUAGE=C 20604export LANGUAGE 20605 20606# We cannot yet rely on "unset" to work, but we need these variables 20607# to be unset--not just set to an empty or harmless value--now, to 20608# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20609# also avoids known problems related to "unset" and subshell syntax 20610# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20611for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20612do eval test \${$as_var+y} \ 20613 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20614done 20615 20616# Ensure that fds 0, 1, and 2 are open. 20617if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20618if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20619if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20620 20621# The user is always right. 20622if ${PATH_SEPARATOR+false} :; then 20623 PATH_SEPARATOR=: 20624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20626 PATH_SEPARATOR=';' 20627 } 20628fi 20629 20630 20631# Find who we are. Look in the path if we contain no directory separator. 20632as_myself= 20633case $0 in #(( 20634 *[\\/]* ) as_myself=$0 ;; 20635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20636for as_dir in $PATH 20637do 20638 IFS=$as_save_IFS 20639 case $as_dir in #((( 20640 '') as_dir=./ ;; 20641 */) ;; 20642 *) as_dir=$as_dir/ ;; 20643 esac 20644 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20645 done 20646IFS=$as_save_IFS 20647 20648 ;; 20649esac 20650# We did not find ourselves, most probably we were run as `sh COMMAND' 20651# in which case we are not to be found in the path. 20652if test "x$as_myself" = x; then 20653 as_myself=$0 20654fi 20655if test ! -f "$as_myself"; then 20656 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20657 exit 1 20658fi 20659 20660 20661 20662# as_fn_error STATUS ERROR [LINENO LOG_FD] 20663# ---------------------------------------- 20664# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20665# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20666# script with STATUS, using 1 if that was 0. 20667as_fn_error () 20668{ 20669 as_status=$1; test $as_status -eq 0 && as_status=1 20670 if test "$4"; then 20671 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20673 fi 20674 printf "%s\n" "$as_me: error: $2" >&2 20675 as_fn_exit $as_status 20676} # as_fn_error 20677 20678 20679 20680# as_fn_set_status STATUS 20681# ----------------------- 20682# Set $? to STATUS, without forking. 20683as_fn_set_status () 20684{ 20685 return $1 20686} # as_fn_set_status 20687 20688# as_fn_exit STATUS 20689# ----------------- 20690# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20691as_fn_exit () 20692{ 20693 set +e 20694 as_fn_set_status $1 20695 exit $1 20696} # as_fn_exit 20697 20698# as_fn_unset VAR 20699# --------------- 20700# Portably unset VAR. 20701as_fn_unset () 20702{ 20703 { eval $1=; unset $1;} 20704} 20705as_unset=as_fn_unset 20706 20707# as_fn_append VAR VALUE 20708# ---------------------- 20709# Append the text in VALUE to the end of the definition contained in VAR. Take 20710# advantage of any shell optimizations that allow amortized linear growth over 20711# repeated appends, instead of the typical quadratic growth present in naive 20712# implementations. 20713if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20714then : 20715 eval 'as_fn_append () 20716 { 20717 eval $1+=\$2 20718 }' 20719else $as_nop 20720 as_fn_append () 20721 { 20722 eval $1=\$$1\$2 20723 } 20724fi # as_fn_append 20725 20726# as_fn_arith ARG... 20727# ------------------ 20728# Perform arithmetic evaluation on the ARGs, and store the result in the 20729# global $as_val. Take advantage of shells that can avoid forks. The arguments 20730# must be portable across $(()) and expr. 20731if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20732then : 20733 eval 'as_fn_arith () 20734 { 20735 as_val=$(( $* )) 20736 }' 20737else $as_nop 20738 as_fn_arith () 20739 { 20740 as_val=`expr "$@" || test $? -eq 1` 20741 } 20742fi # as_fn_arith 20743 20744 20745if expr a : '\(a\)' >/dev/null 2>&1 && 20746 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20747 as_expr=expr 20748else 20749 as_expr=false 20750fi 20751 20752if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20753 as_basename=basename 20754else 20755 as_basename=false 20756fi 20757 20758if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20759 as_dirname=dirname 20760else 20761 as_dirname=false 20762fi 20763 20764as_me=`$as_basename -- "$0" || 20765$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20766 X"$0" : 'X\(//\)$' \| \ 20767 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20768printf "%s\n" X/"$0" | 20769 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20770 s//\1/ 20771 q 20772 } 20773 /^X\/\(\/\/\)$/{ 20774 s//\1/ 20775 q 20776 } 20777 /^X\/\(\/\).*/{ 20778 s//\1/ 20779 q 20780 } 20781 s/.*/./; q'` 20782 20783# Avoid depending upon Character Ranges. 20784as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20785as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20786as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20787as_cr_digits='0123456789' 20788as_cr_alnum=$as_cr_Letters$as_cr_digits 20789 20790 20791# Determine whether it's possible to make 'echo' print without a newline. 20792# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20793# for compatibility with existing Makefiles. 20794ECHO_C= ECHO_N= ECHO_T= 20795case `echo -n x` in #((((( 20796-n*) 20797 case `echo 'xy\c'` in 20798 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20799 xy) ECHO_C='\c';; 20800 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20801 ECHO_T=' ';; 20802 esac;; 20803*) 20804 ECHO_N='-n';; 20805esac 20806 20807# For backward compatibility with old third-party macros, we provide 20808# the shell variables $as_echo and $as_echo_n. New code should use 20809# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20810as_echo='printf %s\n' 20811as_echo_n='printf %s' 20812 20813rm -f conf$$ conf$$.exe conf$$.file 20814if test -d conf$$.dir; then 20815 rm -f conf$$.dir/conf$$.file 20816else 20817 rm -f conf$$.dir 20818 mkdir conf$$.dir 2>/dev/null 20819fi 20820if (echo >conf$$.file) 2>/dev/null; then 20821 if ln -s conf$$.file conf$$ 2>/dev/null; then 20822 as_ln_s='ln -s' 20823 # ... but there are two gotchas: 20824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20826 # In both cases, we have to default to `cp -pR'. 20827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20828 as_ln_s='cp -pR' 20829 elif ln conf$$.file conf$$ 2>/dev/null; then 20830 as_ln_s=ln 20831 else 20832 as_ln_s='cp -pR' 20833 fi 20834else 20835 as_ln_s='cp -pR' 20836fi 20837rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20838rmdir conf$$.dir 2>/dev/null 20839 20840 20841# as_fn_mkdir_p 20842# ------------- 20843# Create "$as_dir" as a directory, including parents if necessary. 20844as_fn_mkdir_p () 20845{ 20846 20847 case $as_dir in #( 20848 -*) as_dir=./$as_dir;; 20849 esac 20850 test -d "$as_dir" || eval $as_mkdir_p || { 20851 as_dirs= 20852 while :; do 20853 case $as_dir in #( 20854 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20855 *) as_qdir=$as_dir;; 20856 esac 20857 as_dirs="'$as_qdir' $as_dirs" 20858 as_dir=`$as_dirname -- "$as_dir" || 20859$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20860 X"$as_dir" : 'X\(//\)[^/]' \| \ 20861 X"$as_dir" : 'X\(//\)$' \| \ 20862 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20863printf "%s\n" X"$as_dir" | 20864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20865 s//\1/ 20866 q 20867 } 20868 /^X\(\/\/\)[^/].*/{ 20869 s//\1/ 20870 q 20871 } 20872 /^X\(\/\/\)$/{ 20873 s//\1/ 20874 q 20875 } 20876 /^X\(\/\).*/{ 20877 s//\1/ 20878 q 20879 } 20880 s/.*/./; q'` 20881 test -d "$as_dir" && break 20882 done 20883 test -z "$as_dirs" || eval "mkdir $as_dirs" 20884 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20885 20886 20887} # as_fn_mkdir_p 20888if mkdir -p . 2>/dev/null; then 20889 as_mkdir_p='mkdir -p "$as_dir"' 20890else 20891 test -d ./-p && rmdir ./-p 20892 as_mkdir_p=false 20893fi 20894 20895 20896# as_fn_executable_p FILE 20897# ----------------------- 20898# Test if FILE is an executable regular file. 20899as_fn_executable_p () 20900{ 20901 test -f "$1" && test -x "$1" 20902} # as_fn_executable_p 20903as_test_x='test -x' 20904as_executable_p=as_fn_executable_p 20905 20906# Sed expression to map a string onto a valid CPP name. 20907as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20908 20909# Sed expression to map a string onto a valid variable name. 20910as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20911 20912 20913exec 6>&1 20914## ----------------------------------- ## 20915## Main body of $CONFIG_STATUS script. ## 20916## ----------------------------------- ## 20917_ASEOF 20918test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20919 20920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20921# Save the log message, to keep $0 and so on meaningful, and to 20922# report actual input values of CONFIG_FILES etc. instead of their 20923# values after options handling. 20924ac_log=" 20925This file was extended by xf86-video-r128 $as_me 6.12.1, which was 20926generated by GNU Autoconf 2.71. Invocation command line was 20927 20928 CONFIG_FILES = $CONFIG_FILES 20929 CONFIG_HEADERS = $CONFIG_HEADERS 20930 CONFIG_LINKS = $CONFIG_LINKS 20931 CONFIG_COMMANDS = $CONFIG_COMMANDS 20932 $ $0 $@ 20933 20934on `(hostname || uname -n) 2>/dev/null | sed 1q` 20935" 20936 20937_ACEOF 20938 20939case $ac_config_files in *" 20940"*) set x $ac_config_files; shift; ac_config_files=$*;; 20941esac 20942 20943case $ac_config_headers in *" 20944"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20945esac 20946 20947 20948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20949# Files that config.status was made for. 20950config_files="$ac_config_files" 20951config_headers="$ac_config_headers" 20952config_commands="$ac_config_commands" 20953 20954_ACEOF 20955 20956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20957ac_cs_usage="\ 20958\`$as_me' instantiates files and other configuration actions 20959from templates according to the current configuration. Unless the files 20960and actions are specified as TAGs, all are instantiated by default. 20961 20962Usage: $0 [OPTION]... [TAG]... 20963 20964 -h, --help print this help, then exit 20965 -V, --version print version number and configuration settings, then exit 20966 --config print configuration, then exit 20967 -q, --quiet, --silent 20968 do not print progress messages 20969 -d, --debug don't remove temporary files 20970 --recheck update $as_me by reconfiguring in the same conditions 20971 --file=FILE[:TEMPLATE] 20972 instantiate the configuration file FILE 20973 --header=FILE[:TEMPLATE] 20974 instantiate the configuration header FILE 20975 20976Configuration files: 20977$config_files 20978 20979Configuration headers: 20980$config_headers 20981 20982Configuration commands: 20983$config_commands 20984 20985Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-r128/-/issues>." 20986 20987_ACEOF 20988ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20989ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20991ac_cs_config='$ac_cs_config_escaped' 20992ac_cs_version="\\ 20993xf86-video-r128 config.status 6.12.1 20994configured by $0, generated by GNU Autoconf 2.71, 20995 with options \\"\$ac_cs_config\\" 20996 20997Copyright (C) 2021 Free Software Foundation, Inc. 20998This config.status script is free software; the Free Software Foundation 20999gives unlimited permission to copy, distribute and modify it." 21000 21001ac_pwd='$ac_pwd' 21002srcdir='$srcdir' 21003INSTALL='$INSTALL' 21004MKDIR_P='$MKDIR_P' 21005AWK='$AWK' 21006test -n "\$AWK" || AWK=awk 21007_ACEOF 21008 21009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21010# The default lists apply if the user does not specify any file. 21011ac_need_defaults=: 21012while test $# != 0 21013do 21014 case $1 in 21015 --*=?*) 21016 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21018 ac_shift=: 21019 ;; 21020 --*=) 21021 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21022 ac_optarg= 21023 ac_shift=: 21024 ;; 21025 *) 21026 ac_option=$1 21027 ac_optarg=$2 21028 ac_shift=shift 21029 ;; 21030 esac 21031 21032 case $ac_option in 21033 # Handling of the options. 21034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21035 ac_cs_recheck=: ;; 21036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21037 printf "%s\n" "$ac_cs_version"; exit ;; 21038 --config | --confi | --conf | --con | --co | --c ) 21039 printf "%s\n" "$ac_cs_config"; exit ;; 21040 --debug | --debu | --deb | --de | --d | -d ) 21041 debug=: ;; 21042 --file | --fil | --fi | --f ) 21043 $ac_shift 21044 case $ac_optarg in 21045 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21046 '') as_fn_error $? "missing file argument" ;; 21047 esac 21048 as_fn_append CONFIG_FILES " '$ac_optarg'" 21049 ac_need_defaults=false;; 21050 --header | --heade | --head | --hea ) 21051 $ac_shift 21052 case $ac_optarg in 21053 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21054 esac 21055 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21056 ac_need_defaults=false;; 21057 --he | --h) 21058 # Conflict between --help and --header 21059 as_fn_error $? "ambiguous option: \`$1' 21060Try \`$0 --help' for more information.";; 21061 --help | --hel | -h ) 21062 printf "%s\n" "$ac_cs_usage"; exit ;; 21063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21064 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21065 ac_cs_silent=: ;; 21066 21067 # This is an error. 21068 -*) as_fn_error $? "unrecognized option: \`$1' 21069Try \`$0 --help' for more information." ;; 21070 21071 *) as_fn_append ac_config_targets " $1" 21072 ac_need_defaults=false ;; 21073 21074 esac 21075 shift 21076done 21077 21078ac_configure_extra_args= 21079 21080if $ac_cs_silent; then 21081 exec 6>/dev/null 21082 ac_configure_extra_args="$ac_configure_extra_args --silent" 21083fi 21084 21085_ACEOF 21086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21087if \$ac_cs_recheck; then 21088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21089 shift 21090 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21091 CONFIG_SHELL='$SHELL' 21092 export CONFIG_SHELL 21093 exec "\$@" 21094fi 21095 21096_ACEOF 21097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21098exec 5>>config.log 21099{ 21100 echo 21101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21102## Running $as_me. ## 21103_ASBOX 21104 printf "%s\n" "$ac_log" 21105} >&5 21106 21107_ACEOF 21108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21109# 21110# INIT-COMMANDS 21111# 21112AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21113 21114 21115# The HP-UX ksh and POSIX shell print the target directory to stdout 21116# if CDPATH is set. 21117(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21118 21119sed_quote_subst='$sed_quote_subst' 21120double_quote_subst='$double_quote_subst' 21121delay_variable_subst='$delay_variable_subst' 21122enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21123macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21124macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21125enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21126pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21127enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21128shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21129SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21130ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21131PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21132host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21133host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21134host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21135build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21136build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21137build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21138SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21139Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21140GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21141EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21142FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21143LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21144NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21145LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21146max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21147ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21148exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21149lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21150lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21151lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21152lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21153lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21154reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21155reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21156FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21157OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21158deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21159file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21160file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21161want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21162DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21163sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21164AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21165lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21166AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21167archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21168STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21169RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21170old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21171old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21172old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21173lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21174CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21175CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21176compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21177GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21178lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21179lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21180lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21181lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21182lt_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"`' 21183lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21184nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21185lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21186lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21187objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21188MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21189lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21190lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21191lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21192lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21193lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21194need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21195MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21196DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21197NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21198LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21199OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21200OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21201libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21202shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21203extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21204archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21205enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21206export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21207whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21208compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21209old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21210old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21211archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21212archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21213module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21214module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21215with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21216allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21217no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21218hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21219hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21220hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21221hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21222hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21223hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21224hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21225inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21226link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21227always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21228export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21229exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21230include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21231prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21232postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21233file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21234variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21235need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21236need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21237version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21238runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21239shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21240shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21241libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21242library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21243soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21244install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21245postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21246postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21247finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21248finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21249hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21250sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21251configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21252configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21253hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21254enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21255enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21256enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21257old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21258striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21259 21260LTCC='$LTCC' 21261LTCFLAGS='$LTCFLAGS' 21262compiler='$compiler_DEFAULT' 21263 21264# A function that is used when there is no print builtin or printf. 21265func_fallback_echo () 21266{ 21267 eval 'cat <<_LTECHO_EOF 21268\$1 21269_LTECHO_EOF' 21270} 21271 21272# Quote evaled strings. 21273for var in SHELL \ 21274ECHO \ 21275PATH_SEPARATOR \ 21276SED \ 21277GREP \ 21278EGREP \ 21279FGREP \ 21280LD \ 21281NM \ 21282LN_S \ 21283lt_SP2NL \ 21284lt_NL2SP \ 21285reload_flag \ 21286FILECMD \ 21287OBJDUMP \ 21288deplibs_check_method \ 21289file_magic_cmd \ 21290file_magic_glob \ 21291want_nocaseglob \ 21292DLLTOOL \ 21293sharedlib_from_linklib_cmd \ 21294AR \ 21295archiver_list_spec \ 21296STRIP \ 21297RANLIB \ 21298CC \ 21299CFLAGS \ 21300compiler \ 21301lt_cv_sys_global_symbol_pipe \ 21302lt_cv_sys_global_symbol_to_cdecl \ 21303lt_cv_sys_global_symbol_to_import \ 21304lt_cv_sys_global_symbol_to_c_name_address \ 21305lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21306lt_cv_nm_interface \ 21307nm_file_list_spec \ 21308lt_cv_truncate_bin \ 21309lt_prog_compiler_no_builtin_flag \ 21310lt_prog_compiler_pic \ 21311lt_prog_compiler_wl \ 21312lt_prog_compiler_static \ 21313lt_cv_prog_compiler_c_o \ 21314need_locks \ 21315MANIFEST_TOOL \ 21316DSYMUTIL \ 21317NMEDIT \ 21318LIPO \ 21319OTOOL \ 21320OTOOL64 \ 21321shrext_cmds \ 21322export_dynamic_flag_spec \ 21323whole_archive_flag_spec \ 21324compiler_needs_object \ 21325with_gnu_ld \ 21326allow_undefined_flag \ 21327no_undefined_flag \ 21328hardcode_libdir_flag_spec \ 21329hardcode_libdir_separator \ 21330exclude_expsyms \ 21331include_expsyms \ 21332file_list_spec \ 21333variables_saved_for_relink \ 21334libname_spec \ 21335library_names_spec \ 21336soname_spec \ 21337install_override_mode \ 21338finish_eval \ 21339old_striplib \ 21340striplib; do 21341 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21342 *[\\\\\\\`\\"\\\$]*) 21343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21344 ;; 21345 *) 21346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21347 ;; 21348 esac 21349done 21350 21351# Double-quote double-evaled strings. 21352for var in reload_cmds \ 21353old_postinstall_cmds \ 21354old_postuninstall_cmds \ 21355old_archive_cmds \ 21356extract_expsyms_cmds \ 21357old_archive_from_new_cmds \ 21358old_archive_from_expsyms_cmds \ 21359archive_cmds \ 21360archive_expsym_cmds \ 21361module_cmds \ 21362module_expsym_cmds \ 21363export_symbols_cmds \ 21364prelink_cmds \ 21365postlink_cmds \ 21366postinstall_cmds \ 21367postuninstall_cmds \ 21368finish_cmds \ 21369sys_lib_search_path_spec \ 21370configure_time_dlsearch_path \ 21371configure_time_lt_sys_library_path; do 21372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21373 *[\\\\\\\`\\"\\\$]*) 21374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21375 ;; 21376 *) 21377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21378 ;; 21379 esac 21380done 21381 21382ac_aux_dir='$ac_aux_dir' 21383 21384# See if we are running on zsh, and set the options that allow our 21385# commands through without removal of \ escapes INIT. 21386if test -n "\${ZSH_VERSION+set}"; then 21387 setopt NO_GLOB_SUBST 21388fi 21389 21390 21391 PACKAGE='$PACKAGE' 21392 VERSION='$VERSION' 21393 RM='$RM' 21394 ofile='$ofile' 21395 21396 21397 21398 21399_ACEOF 21400 21401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21402 21403# Handling of arguments. 21404for ac_config_target in $ac_config_targets 21405do 21406 case $ac_config_target in 21407 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21408 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21409 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21411 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21412 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21413 21414 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21415 esac 21416done 21417 21418 21419# If the user did not use the arguments to specify the items to instantiate, 21420# then the envvar interface is used. Set only those that are not. 21421# We use the long form for the default assignment because of an extremely 21422# bizarre bug on SunOS 4.1.3. 21423if $ac_need_defaults; then 21424 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21425 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21426 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21427fi 21428 21429# Have a temporary directory for convenience. Make it in the build tree 21430# simply because there is no reason against having it here, and in addition, 21431# creating and moving files from /tmp can sometimes cause problems. 21432# Hook for its removal unless debugging. 21433# Note that there is a small window in which the directory will not be cleaned: 21434# after its creation but before its name has been assigned to `$tmp'. 21435$debug || 21436{ 21437 tmp= ac_tmp= 21438 trap 'exit_status=$? 21439 : "${ac_tmp:=$tmp}" 21440 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21441' 0 21442 trap 'as_fn_exit 1' 1 2 13 15 21443} 21444# Create a (secure) tmp directory for tmp files. 21445 21446{ 21447 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21448 test -d "$tmp" 21449} || 21450{ 21451 tmp=./conf$$-$RANDOM 21452 (umask 077 && mkdir "$tmp") 21453} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21454ac_tmp=$tmp 21455 21456# Set up the scripts for CONFIG_FILES section. 21457# No need to generate them if there are no CONFIG_FILES. 21458# This happens for instance with `./config.status config.h'. 21459if test -n "$CONFIG_FILES"; then 21460 21461 21462ac_cr=`echo X | tr X '\015'` 21463# On cygwin, bash can eat \r inside `` if the user requested igncr. 21464# But we know of no other shell where ac_cr would be empty at this 21465# point, so we can use a bashism as a fallback. 21466if test "x$ac_cr" = x; then 21467 eval ac_cr=\$\'\\r\' 21468fi 21469ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21470if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21471 ac_cs_awk_cr='\\r' 21472else 21473 ac_cs_awk_cr=$ac_cr 21474fi 21475 21476echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21477_ACEOF 21478 21479 21480{ 21481 echo "cat >conf$$subs.awk <<_ACEOF" && 21482 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21483 echo "_ACEOF" 21484} >conf$$subs.sh || 21485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21486ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21487ac_delim='%!_!# ' 21488for ac_last_try in false false false false false :; do 21489 . ./conf$$subs.sh || 21490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21491 21492 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21493 if test $ac_delim_n = $ac_delim_num; then 21494 break 21495 elif $ac_last_try; then 21496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21497 else 21498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21499 fi 21500done 21501rm -f conf$$subs.sh 21502 21503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21504cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21505_ACEOF 21506sed -n ' 21507h 21508s/^/S["/; s/!.*/"]=/ 21509p 21510g 21511s/^[^!]*!// 21512:repl 21513t repl 21514s/'"$ac_delim"'$// 21515t delim 21516:nl 21517h 21518s/\(.\{148\}\)..*/\1/ 21519t more1 21520s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21521p 21522n 21523b repl 21524:more1 21525s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21526p 21527g 21528s/.\{148\}// 21529t nl 21530:delim 21531h 21532s/\(.\{148\}\)..*/\1/ 21533t more2 21534s/["\\]/\\&/g; s/^/"/; s/$/"/ 21535p 21536b 21537:more2 21538s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21539p 21540g 21541s/.\{148\}// 21542t delim 21543' <conf$$subs.awk | sed ' 21544/^[^""]/{ 21545 N 21546 s/\n// 21547} 21548' >>$CONFIG_STATUS || ac_write_fail=1 21549rm -f conf$$subs.awk 21550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21551_ACAWK 21552cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21553 for (key in S) S_is_set[key] = 1 21554 FS = "" 21555 21556} 21557{ 21558 line = $ 0 21559 nfields = split(line, field, "@") 21560 substed = 0 21561 len = length(field[1]) 21562 for (i = 2; i < nfields; i++) { 21563 key = field[i] 21564 keylen = length(key) 21565 if (S_is_set[key]) { 21566 value = S[key] 21567 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21568 len += length(value) + length(field[++i]) 21569 substed = 1 21570 } else 21571 len += 1 + keylen 21572 } 21573 21574 print line 21575} 21576 21577_ACAWK 21578_ACEOF 21579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21580if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21581 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21582else 21583 cat 21584fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21585 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21586_ACEOF 21587 21588# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21589# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21590# trailing colons and then remove the whole line if VPATH becomes empty 21591# (actually we leave an empty line to preserve line numbers). 21592if test "x$srcdir" = x.; then 21593 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21594h 21595s/// 21596s/^/:/ 21597s/[ ]*$/:/ 21598s/:\$(srcdir):/:/g 21599s/:\${srcdir}:/:/g 21600s/:@srcdir@:/:/g 21601s/^:*// 21602s/:*$// 21603x 21604s/\(=[ ]*\).*/\1/ 21605G 21606s/\n// 21607s/^[^=]*=[ ]*$// 21608}' 21609fi 21610 21611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21612fi # test -n "$CONFIG_FILES" 21613 21614# Set up the scripts for CONFIG_HEADERS section. 21615# No need to generate them if there are no CONFIG_HEADERS. 21616# This happens for instance with `./config.status Makefile'. 21617if test -n "$CONFIG_HEADERS"; then 21618cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21619BEGIN { 21620_ACEOF 21621 21622# Transform confdefs.h into an awk script `defines.awk', embedded as 21623# here-document in config.status, that substitutes the proper values into 21624# config.h.in to produce config.h. 21625 21626# Create a delimiter string that does not exist in confdefs.h, to ease 21627# handling of long lines. 21628ac_delim='%!_!# ' 21629for ac_last_try in false false :; do 21630 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21631 if test -z "$ac_tt"; then 21632 break 21633 elif $ac_last_try; then 21634 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21635 else 21636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21637 fi 21638done 21639 21640# For the awk script, D is an array of macro values keyed by name, 21641# likewise P contains macro parameters if any. Preserve backslash 21642# newline sequences. 21643 21644ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21645sed -n ' 21646s/.\{148\}/&'"$ac_delim"'/g 21647t rset 21648:rset 21649s/^[ ]*#[ ]*define[ ][ ]*/ / 21650t def 21651d 21652:def 21653s/\\$// 21654t bsnl 21655s/["\\]/\\&/g 21656s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21657D["\1"]=" \3"/p 21658s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21659d 21660:bsnl 21661s/["\\]/\\&/g 21662s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21663D["\1"]=" \3\\\\\\n"\\/p 21664t cont 21665s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21666t cont 21667d 21668:cont 21669n 21670s/.\{148\}/&'"$ac_delim"'/g 21671t clear 21672:clear 21673s/\\$// 21674t bsnlc 21675s/["\\]/\\&/g; s/^/"/; s/$/"/p 21676d 21677:bsnlc 21678s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21679b cont 21680' <confdefs.h | sed ' 21681s/'"$ac_delim"'/"\\\ 21682"/g' >>$CONFIG_STATUS || ac_write_fail=1 21683 21684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21685 for (key in D) D_is_set[key] = 1 21686 FS = "" 21687} 21688/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21689 line = \$ 0 21690 split(line, arg, " ") 21691 if (arg[1] == "#") { 21692 defundef = arg[2] 21693 mac1 = arg[3] 21694 } else { 21695 defundef = substr(arg[1], 2) 21696 mac1 = arg[2] 21697 } 21698 split(mac1, mac2, "(") #) 21699 macro = mac2[1] 21700 prefix = substr(line, 1, index(line, defundef) - 1) 21701 if (D_is_set[macro]) { 21702 # Preserve the white space surrounding the "#". 21703 print prefix "define", macro P[macro] D[macro] 21704 next 21705 } else { 21706 # Replace #undef with comments. This is necessary, for example, 21707 # in the case of _POSIX_SOURCE, which is predefined and required 21708 # on some systems where configure will not decide to define it. 21709 if (defundef == "undef") { 21710 print "/*", prefix defundef, macro, "*/" 21711 next 21712 } 21713 } 21714} 21715{ print } 21716_ACAWK 21717_ACEOF 21718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21719 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21720fi # test -n "$CONFIG_HEADERS" 21721 21722 21723eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21724shift 21725for ac_tag 21726do 21727 case $ac_tag in 21728 :[FHLC]) ac_mode=$ac_tag; continue;; 21729 esac 21730 case $ac_mode$ac_tag in 21731 :[FHL]*:*);; 21732 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21733 :[FH]-) ac_tag=-:-;; 21734 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21735 esac 21736 ac_save_IFS=$IFS 21737 IFS=: 21738 set x $ac_tag 21739 IFS=$ac_save_IFS 21740 shift 21741 ac_file=$1 21742 shift 21743 21744 case $ac_mode in 21745 :L) ac_source=$1;; 21746 :[FH]) 21747 ac_file_inputs= 21748 for ac_f 21749 do 21750 case $ac_f in 21751 -) ac_f="$ac_tmp/stdin";; 21752 *) # Look for the file first in the build tree, then in the source tree 21753 # (if the path is not absolute). The absolute path cannot be DOS-style, 21754 # because $ac_f cannot contain `:'. 21755 test -f "$ac_f" || 21756 case $ac_f in 21757 [\\/$]*) false;; 21758 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21759 esac || 21760 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21761 esac 21762 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21763 as_fn_append ac_file_inputs " '$ac_f'" 21764 done 21765 21766 # Let's still pretend it is `configure' which instantiates (i.e., don't 21767 # use $as_me), people would be surprised to read: 21768 # /* config.h. Generated by config.status. */ 21769 configure_input='Generated from '` 21770 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21771 `' by configure.' 21772 if test x"$ac_file" != x-; then 21773 configure_input="$ac_file. $configure_input" 21774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21775printf "%s\n" "$as_me: creating $ac_file" >&6;} 21776 fi 21777 # Neutralize special characters interpreted by sed in replacement strings. 21778 case $configure_input in #( 21779 *\&* | *\|* | *\\* ) 21780 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21781 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21782 *) ac_sed_conf_input=$configure_input;; 21783 esac 21784 21785 case $ac_tag in 21786 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21788 esac 21789 ;; 21790 esac 21791 21792 ac_dir=`$as_dirname -- "$ac_file" || 21793$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21794 X"$ac_file" : 'X\(//\)[^/]' \| \ 21795 X"$ac_file" : 'X\(//\)$' \| \ 21796 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21797printf "%s\n" X"$ac_file" | 21798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21799 s//\1/ 21800 q 21801 } 21802 /^X\(\/\/\)[^/].*/{ 21803 s//\1/ 21804 q 21805 } 21806 /^X\(\/\/\)$/{ 21807 s//\1/ 21808 q 21809 } 21810 /^X\(\/\).*/{ 21811 s//\1/ 21812 q 21813 } 21814 s/.*/./; q'` 21815 as_dir="$ac_dir"; as_fn_mkdir_p 21816 ac_builddir=. 21817 21818case "$ac_dir" in 21819.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21820*) 21821 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21822 # A ".." for each directory in $ac_dir_suffix. 21823 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21824 case $ac_top_builddir_sub in 21825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21827 esac ;; 21828esac 21829ac_abs_top_builddir=$ac_pwd 21830ac_abs_builddir=$ac_pwd$ac_dir_suffix 21831# for backward compatibility: 21832ac_top_builddir=$ac_top_build_prefix 21833 21834case $srcdir in 21835 .) # We are building in place. 21836 ac_srcdir=. 21837 ac_top_srcdir=$ac_top_builddir_sub 21838 ac_abs_top_srcdir=$ac_pwd ;; 21839 [\\/]* | ?:[\\/]* ) # Absolute name. 21840 ac_srcdir=$srcdir$ac_dir_suffix; 21841 ac_top_srcdir=$srcdir 21842 ac_abs_top_srcdir=$srcdir ;; 21843 *) # Relative name. 21844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21845 ac_top_srcdir=$ac_top_build_prefix$srcdir 21846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21847esac 21848ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21849 21850 21851 case $ac_mode in 21852 :F) 21853 # 21854 # CONFIG_FILE 21855 # 21856 21857 case $INSTALL in 21858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21859 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21860 esac 21861 ac_MKDIR_P=$MKDIR_P 21862 case $MKDIR_P in 21863 [\\/$]* | ?:[\\/]* ) ;; 21864 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21865 esac 21866_ACEOF 21867 21868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21869# If the template does not know about datarootdir, expand it. 21870# FIXME: This hack should be removed a few years after 2.60. 21871ac_datarootdir_hack=; ac_datarootdir_seen= 21872ac_sed_dataroot=' 21873/datarootdir/ { 21874 p 21875 q 21876} 21877/@datadir@/p 21878/@docdir@/p 21879/@infodir@/p 21880/@localedir@/p 21881/@mandir@/p' 21882case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21883*datarootdir*) ac_datarootdir_seen=yes;; 21884*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21886printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21887_ACEOF 21888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21889 ac_datarootdir_hack=' 21890 s&@datadir@&$datadir&g 21891 s&@docdir@&$docdir&g 21892 s&@infodir@&$infodir&g 21893 s&@localedir@&$localedir&g 21894 s&@mandir@&$mandir&g 21895 s&\\\${datarootdir}&$datarootdir&g' ;; 21896esac 21897_ACEOF 21898 21899# Neutralize VPATH when `$srcdir' = `.'. 21900# Shell code in configure.ac might set extrasub. 21901# FIXME: do we really want to maintain this feature? 21902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21903ac_sed_extra="$ac_vpsub 21904$extrasub 21905_ACEOF 21906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21907:t 21908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21909s|@configure_input@|$ac_sed_conf_input|;t t 21910s&@top_builddir@&$ac_top_builddir_sub&;t t 21911s&@top_build_prefix@&$ac_top_build_prefix&;t t 21912s&@srcdir@&$ac_srcdir&;t t 21913s&@abs_srcdir@&$ac_abs_srcdir&;t t 21914s&@top_srcdir@&$ac_top_srcdir&;t t 21915s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21916s&@builddir@&$ac_builddir&;t t 21917s&@abs_builddir@&$ac_abs_builddir&;t t 21918s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21919s&@INSTALL@&$ac_INSTALL&;t t 21920s&@MKDIR_P@&$ac_MKDIR_P&;t t 21921$ac_datarootdir_hack 21922" 21923eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21924 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21925 21926test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21927 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21929 "$ac_tmp/out"`; test -z "$ac_out"; } && 21930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21931which seems to be undefined. Please make sure it is defined" >&5 21932printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21933which seems to be undefined. Please make sure it is defined" >&2;} 21934 21935 rm -f "$ac_tmp/stdin" 21936 case $ac_file in 21937 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21938 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21939 esac \ 21940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21941 ;; 21942 :H) 21943 # 21944 # CONFIG_HEADER 21945 # 21946 if test x"$ac_file" != x-; then 21947 { 21948 printf "%s\n" "/* $configure_input */" >&1 \ 21949 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21950 } >"$ac_tmp/config.h" \ 21951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21952 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21954printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21955 else 21956 rm -f "$ac_file" 21957 mv "$ac_tmp/config.h" "$ac_file" \ 21958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21959 fi 21960 else 21961 printf "%s\n" "/* $configure_input */" >&1 \ 21962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21963 || as_fn_error $? "could not create -" "$LINENO" 5 21964 fi 21965# Compute "$ac_file"'s index in $config_headers. 21966_am_arg="$ac_file" 21967_am_stamp_count=1 21968for _am_header in $config_headers :; do 21969 case $_am_header in 21970 $_am_arg | $_am_arg:* ) 21971 break ;; 21972 * ) 21973 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21974 esac 21975done 21976echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21977$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21978 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21979 X"$_am_arg" : 'X\(//\)$' \| \ 21980 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21981printf "%s\n" X"$_am_arg" | 21982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21983 s//\1/ 21984 q 21985 } 21986 /^X\(\/\/\)[^/].*/{ 21987 s//\1/ 21988 q 21989 } 21990 /^X\(\/\/\)$/{ 21991 s//\1/ 21992 q 21993 } 21994 /^X\(\/\).*/{ 21995 s//\1/ 21996 q 21997 } 21998 s/.*/./; q'`/stamp-h$_am_stamp_count 21999 ;; 22000 22001 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22002printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22003 ;; 22004 esac 22005 22006 22007 case $ac_file$ac_mode in 22008 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22009 # Older Autoconf quotes --file arguments for eval, but not when files 22010 # are listed without --file. Let's play safe and only enable the eval 22011 # if we detect the quoting. 22012 # TODO: see whether this extra hack can be removed once we start 22013 # requiring Autoconf 2.70 or later. 22014 case $CONFIG_FILES in #( 22015 *\'*) : 22016 eval set x "$CONFIG_FILES" ;; #( 22017 *) : 22018 set x $CONFIG_FILES ;; #( 22019 *) : 22020 ;; 22021esac 22022 shift 22023 # Used to flag and report bootstrapping failures. 22024 am_rc=0 22025 for am_mf 22026 do 22027 # Strip MF so we end up with the name of the file. 22028 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22029 # Check whether this is an Automake generated Makefile which includes 22030 # dependency-tracking related rules and includes. 22031 # Grep'ing the whole file directly is not great: AIX grep has a line 22032 # limit of 2048, but all sed's we know have understand at least 4000. 22033 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22034 || continue 22035 am_dirpart=`$as_dirname -- "$am_mf" || 22036$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22037 X"$am_mf" : 'X\(//\)[^/]' \| \ 22038 X"$am_mf" : 'X\(//\)$' \| \ 22039 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22040printf "%s\n" X"$am_mf" | 22041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22042 s//\1/ 22043 q 22044 } 22045 /^X\(\/\/\)[^/].*/{ 22046 s//\1/ 22047 q 22048 } 22049 /^X\(\/\/\)$/{ 22050 s//\1/ 22051 q 22052 } 22053 /^X\(\/\).*/{ 22054 s//\1/ 22055 q 22056 } 22057 s/.*/./; q'` 22058 am_filepart=`$as_basename -- "$am_mf" || 22059$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22060 X"$am_mf" : 'X\(//\)$' \| \ 22061 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22062printf "%s\n" X/"$am_mf" | 22063 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22064 s//\1/ 22065 q 22066 } 22067 /^X\/\(\/\/\)$/{ 22068 s//\1/ 22069 q 22070 } 22071 /^X\/\(\/\).*/{ 22072 s//\1/ 22073 q 22074 } 22075 s/.*/./; q'` 22076 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22077 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22078 | $MAKE -f - am--depfiles" >&5 22079 (cd "$am_dirpart" \ 22080 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22081 | $MAKE -f - am--depfiles) >&5 2>&5 22082 ac_status=$? 22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22084 (exit $ac_status); } || am_rc=$? 22085 done 22086 if test $am_rc -ne 0; then 22087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22088printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22089as_fn_error $? "Something went wrong bootstrapping makefile fragments 22090 for automatic dependency tracking. If GNU make was not used, consider 22091 re-running the configure script with MAKE=\"gmake\" (or whatever is 22092 necessary). You can also try re-running configure with the 22093 '--disable-dependency-tracking' option to at least be able to build 22094 the package (albeit without support for automatic dependency tracking). 22095See \`config.log' for more details" "$LINENO" 5; } 22096 fi 22097 { am_dirpart=; unset am_dirpart;} 22098 { am_filepart=; unset am_filepart;} 22099 { am_mf=; unset am_mf;} 22100 { am_rc=; unset am_rc;} 22101 rm -f conftest-deps.mk 22102} 22103 ;; 22104 "libtool":C) 22105 22106 # See if we are running on zsh, and set the options that allow our 22107 # commands through without removal of \ escapes. 22108 if test -n "${ZSH_VERSION+set}"; then 22109 setopt NO_GLOB_SUBST 22110 fi 22111 22112 cfgfile=${ofile}T 22113 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22114 $RM "$cfgfile" 22115 22116 cat <<_LT_EOF >> "$cfgfile" 22117#! $SHELL 22118# Generated automatically by $as_me ($PACKAGE) $VERSION 22119# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22120# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22121 22122# Provide generalized library-building support services. 22123# Written by Gordon Matzigkeit, 1996 22124 22125# Copyright (C) 2014 Free Software Foundation, Inc. 22126# This is free software; see the source for copying conditions. There is NO 22127# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22128 22129# GNU Libtool is free software; you can redistribute it and/or modify 22130# it under the terms of the GNU General Public License as published by 22131# the Free Software Foundation; either version 2 of of the License, or 22132# (at your option) any later version. 22133# 22134# As a special exception to the GNU General Public License, if you 22135# distribute this file as part of a program or library that is built 22136# using GNU Libtool, you may include this file under the same 22137# distribution terms that you use for the rest of that program. 22138# 22139# GNU Libtool is distributed in the hope that it will be useful, but 22140# WITHOUT ANY WARRANTY; without even the implied warranty of 22141# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22142# GNU General Public License for more details. 22143# 22144# You should have received a copy of the GNU General Public License 22145# along with this program. If not, see <http://www.gnu.org/licenses/>. 22146 22147 22148# The names of the tagged configurations supported by this script. 22149available_tags='' 22150 22151# Configured defaults for sys_lib_dlsearch_path munging. 22152: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22153 22154# ### BEGIN LIBTOOL CONFIG 22155 22156# Whether or not to build static libraries. 22157build_old_libs=$enable_static 22158 22159# Which release of libtool.m4 was used? 22160macro_version=$macro_version 22161macro_revision=$macro_revision 22162 22163# Whether or not to build shared libraries. 22164build_libtool_libs=$enable_shared 22165 22166# What type of objects to build. 22167pic_mode=$pic_mode 22168 22169# Whether or not to optimize for fast installation. 22170fast_install=$enable_fast_install 22171 22172# Shared archive member basename,for filename based shared library versioning on AIX. 22173shared_archive_member_spec=$shared_archive_member_spec 22174 22175# Shell to use when invoking shell scripts. 22176SHELL=$lt_SHELL 22177 22178# An echo program that protects backslashes. 22179ECHO=$lt_ECHO 22180 22181# The PATH separator for the build system. 22182PATH_SEPARATOR=$lt_PATH_SEPARATOR 22183 22184# The host system. 22185host_alias=$host_alias 22186host=$host 22187host_os=$host_os 22188 22189# The build system. 22190build_alias=$build_alias 22191build=$build 22192build_os=$build_os 22193 22194# A sed program that does not truncate output. 22195SED=$lt_SED 22196 22197# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22198Xsed="\$SED -e 1s/^X//" 22199 22200# A grep program that handles long lines. 22201GREP=$lt_GREP 22202 22203# An ERE matcher. 22204EGREP=$lt_EGREP 22205 22206# A literal string matcher. 22207FGREP=$lt_FGREP 22208 22209# A BSD- or MS-compatible name lister. 22210NM=$lt_NM 22211 22212# Whether we need soft or hard links. 22213LN_S=$lt_LN_S 22214 22215# What is the maximum length of a command? 22216max_cmd_len=$max_cmd_len 22217 22218# Object file suffix (normally "o"). 22219objext=$ac_objext 22220 22221# Executable file suffix (normally ""). 22222exeext=$exeext 22223 22224# whether the shell understands "unset". 22225lt_unset=$lt_unset 22226 22227# turn spaces into newlines. 22228SP2NL=$lt_lt_SP2NL 22229 22230# turn newlines into spaces. 22231NL2SP=$lt_lt_NL2SP 22232 22233# convert \$build file names to \$host format. 22234to_host_file_cmd=$lt_cv_to_host_file_cmd 22235 22236# convert \$build files to toolchain format. 22237to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22238 22239# A file(cmd) program that detects file types. 22240FILECMD=$lt_FILECMD 22241 22242# An object symbol dumper. 22243OBJDUMP=$lt_OBJDUMP 22244 22245# Method to check whether dependent libraries are shared objects. 22246deplibs_check_method=$lt_deplibs_check_method 22247 22248# Command to use when deplibs_check_method = "file_magic". 22249file_magic_cmd=$lt_file_magic_cmd 22250 22251# How to find potential files when deplibs_check_method = "file_magic". 22252file_magic_glob=$lt_file_magic_glob 22253 22254# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22255want_nocaseglob=$lt_want_nocaseglob 22256 22257# DLL creation program. 22258DLLTOOL=$lt_DLLTOOL 22259 22260# Command to associate shared and link libraries. 22261sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22262 22263# The archiver. 22264AR=$lt_AR 22265 22266# Flags to create an archive (by configure). 22267lt_ar_flags=$lt_ar_flags 22268 22269# Flags to create an archive. 22270AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22271 22272# How to feed a file listing to the archiver. 22273archiver_list_spec=$lt_archiver_list_spec 22274 22275# A symbol stripping program. 22276STRIP=$lt_STRIP 22277 22278# Commands used to install an old-style archive. 22279RANLIB=$lt_RANLIB 22280old_postinstall_cmds=$lt_old_postinstall_cmds 22281old_postuninstall_cmds=$lt_old_postuninstall_cmds 22282 22283# Whether to use a lock for old archive extraction. 22284lock_old_archive_extraction=$lock_old_archive_extraction 22285 22286# A C compiler. 22287LTCC=$lt_CC 22288 22289# LTCC compiler flags. 22290LTCFLAGS=$lt_CFLAGS 22291 22292# Take the output of nm and produce a listing of raw symbols and C names. 22293global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22294 22295# Transform the output of nm in a proper C declaration. 22296global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22297 22298# Transform the output of nm into a list of symbols to manually relocate. 22299global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22300 22301# Transform the output of nm in a C name address pair. 22302global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22303 22304# Transform the output of nm in a C name address pair when lib prefix is needed. 22305global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22306 22307# The name lister interface. 22308nm_interface=$lt_lt_cv_nm_interface 22309 22310# Specify filename containing input files for \$NM. 22311nm_file_list_spec=$lt_nm_file_list_spec 22312 22313# The root where to search for dependent libraries,and where our libraries should be installed. 22314lt_sysroot=$lt_sysroot 22315 22316# Command to truncate a binary pipe. 22317lt_truncate_bin=$lt_lt_cv_truncate_bin 22318 22319# The name of the directory that contains temporary libtool files. 22320objdir=$objdir 22321 22322# Used to examine libraries when file_magic_cmd begins with "file". 22323MAGIC_CMD=$MAGIC_CMD 22324 22325# Must we lock files when doing compilation? 22326need_locks=$lt_need_locks 22327 22328# Manifest tool. 22329MANIFEST_TOOL=$lt_MANIFEST_TOOL 22330 22331# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22332DSYMUTIL=$lt_DSYMUTIL 22333 22334# Tool to change global to local symbols on Mac OS X. 22335NMEDIT=$lt_NMEDIT 22336 22337# Tool to manipulate fat objects and archives on Mac OS X. 22338LIPO=$lt_LIPO 22339 22340# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22341OTOOL=$lt_OTOOL 22342 22343# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22344OTOOL64=$lt_OTOOL64 22345 22346# Old archive suffix (normally "a"). 22347libext=$libext 22348 22349# Shared library suffix (normally ".so"). 22350shrext_cmds=$lt_shrext_cmds 22351 22352# The commands to extract the exported symbol list from a shared archive. 22353extract_expsyms_cmds=$lt_extract_expsyms_cmds 22354 22355# Variables whose values should be saved in libtool wrapper scripts and 22356# restored at link time. 22357variables_saved_for_relink=$lt_variables_saved_for_relink 22358 22359# Do we need the "lib" prefix for modules? 22360need_lib_prefix=$need_lib_prefix 22361 22362# Do we need a version for libraries? 22363need_version=$need_version 22364 22365# Library versioning type. 22366version_type=$version_type 22367 22368# Shared library runtime path variable. 22369runpath_var=$runpath_var 22370 22371# Shared library path variable. 22372shlibpath_var=$shlibpath_var 22373 22374# Is shlibpath searched before the hard-coded library search path? 22375shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22376 22377# Format of library name prefix. 22378libname_spec=$lt_libname_spec 22379 22380# List of archive names. First name is the real one, the rest are links. 22381# The last name is the one that the linker finds with -lNAME 22382library_names_spec=$lt_library_names_spec 22383 22384# The coded name of the library, if different from the real name. 22385soname_spec=$lt_soname_spec 22386 22387# Permission mode override for installation of shared libraries. 22388install_override_mode=$lt_install_override_mode 22389 22390# Command to use after installation of a shared archive. 22391postinstall_cmds=$lt_postinstall_cmds 22392 22393# Command to use after uninstallation of a shared archive. 22394postuninstall_cmds=$lt_postuninstall_cmds 22395 22396# Commands used to finish a libtool library installation in a directory. 22397finish_cmds=$lt_finish_cmds 22398 22399# As "finish_cmds", except a single script fragment to be evaled but 22400# not shown. 22401finish_eval=$lt_finish_eval 22402 22403# Whether we should hardcode library paths into libraries. 22404hardcode_into_libs=$hardcode_into_libs 22405 22406# Compile-time system search path for libraries. 22407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22408 22409# Detected run-time system search path for libraries. 22410sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22411 22412# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22413configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22414 22415# Whether dlopen is supported. 22416dlopen_support=$enable_dlopen 22417 22418# Whether dlopen of programs is supported. 22419dlopen_self=$enable_dlopen_self 22420 22421# Whether dlopen of statically linked programs is supported. 22422dlopen_self_static=$enable_dlopen_self_static 22423 22424# Commands to strip libraries. 22425old_striplib=$lt_old_striplib 22426striplib=$lt_striplib 22427 22428 22429# The linker used to build libraries. 22430LD=$lt_LD 22431 22432# How to create reloadable object files. 22433reload_flag=$lt_reload_flag 22434reload_cmds=$lt_reload_cmds 22435 22436# Commands used to build an old-style archive. 22437old_archive_cmds=$lt_old_archive_cmds 22438 22439# A language specific compiler. 22440CC=$lt_compiler 22441 22442# Is the compiler the GNU compiler? 22443with_gcc=$GCC 22444 22445# Compiler flag to turn off builtin functions. 22446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22447 22448# Additional compiler flags for building library objects. 22449pic_flag=$lt_lt_prog_compiler_pic 22450 22451# How to pass a linker flag through the compiler. 22452wl=$lt_lt_prog_compiler_wl 22453 22454# Compiler flag to prevent dynamic linking. 22455link_static_flag=$lt_lt_prog_compiler_static 22456 22457# Does compiler simultaneously support -c and -o options? 22458compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22459 22460# Whether or not to add -lc for building shared libraries. 22461build_libtool_need_lc=$archive_cmds_need_lc 22462 22463# Whether or not to disallow shared libs when runtime libs are static. 22464allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22465 22466# Compiler flag to allow reflexive dlopens. 22467export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22468 22469# Compiler flag to generate shared objects directly from archives. 22470whole_archive_flag_spec=$lt_whole_archive_flag_spec 22471 22472# Whether the compiler copes with passing no objects directly. 22473compiler_needs_object=$lt_compiler_needs_object 22474 22475# Create an old-style archive from a shared archive. 22476old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22477 22478# Create a temporary old-style archive to link instead of a shared archive. 22479old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22480 22481# Commands used to build a shared archive. 22482archive_cmds=$lt_archive_cmds 22483archive_expsym_cmds=$lt_archive_expsym_cmds 22484 22485# Commands used to build a loadable module if different from building 22486# a shared archive. 22487module_cmds=$lt_module_cmds 22488module_expsym_cmds=$lt_module_expsym_cmds 22489 22490# Whether we are building with GNU ld or not. 22491with_gnu_ld=$lt_with_gnu_ld 22492 22493# Flag that allows shared libraries with undefined symbols to be built. 22494allow_undefined_flag=$lt_allow_undefined_flag 22495 22496# Flag that enforces no undefined symbols. 22497no_undefined_flag=$lt_no_undefined_flag 22498 22499# Flag to hardcode \$libdir into a binary during linking. 22500# This must work even if \$libdir does not exist 22501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22502 22503# Whether we need a single "-rpath" flag with a separated argument. 22504hardcode_libdir_separator=$lt_hardcode_libdir_separator 22505 22506# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22507# DIR into the resulting binary. 22508hardcode_direct=$hardcode_direct 22509 22510# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22511# DIR into the resulting binary and the resulting library dependency is 22512# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22513# library is relocated. 22514hardcode_direct_absolute=$hardcode_direct_absolute 22515 22516# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22517# into the resulting binary. 22518hardcode_minus_L=$hardcode_minus_L 22519 22520# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22521# into the resulting binary. 22522hardcode_shlibpath_var=$hardcode_shlibpath_var 22523 22524# Set to "yes" if building a shared library automatically hardcodes DIR 22525# into the library and all subsequent libraries and executables linked 22526# against it. 22527hardcode_automatic=$hardcode_automatic 22528 22529# Set to yes if linker adds runtime paths of dependent libraries 22530# to runtime path list. 22531inherit_rpath=$inherit_rpath 22532 22533# Whether libtool must link a program against all its dependency libraries. 22534link_all_deplibs=$link_all_deplibs 22535 22536# Set to "yes" if exported symbols are required. 22537always_export_symbols=$always_export_symbols 22538 22539# The commands to list exported symbols. 22540export_symbols_cmds=$lt_export_symbols_cmds 22541 22542# Symbols that should not be listed in the preloaded symbols. 22543exclude_expsyms=$lt_exclude_expsyms 22544 22545# Symbols that must always be exported. 22546include_expsyms=$lt_include_expsyms 22547 22548# Commands necessary for linking programs (against libraries) with templates. 22549prelink_cmds=$lt_prelink_cmds 22550 22551# Commands necessary for finishing linking programs. 22552postlink_cmds=$lt_postlink_cmds 22553 22554# Specify filename containing input files. 22555file_list_spec=$lt_file_list_spec 22556 22557# How to hardcode a shared library path into an executable. 22558hardcode_action=$hardcode_action 22559 22560# ### END LIBTOOL CONFIG 22561 22562_LT_EOF 22563 22564 cat <<'_LT_EOF' >> "$cfgfile" 22565 22566# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22567 22568# func_munge_path_list VARIABLE PATH 22569# ----------------------------------- 22570# VARIABLE is name of variable containing _space_ separated list of 22571# directories to be munged by the contents of PATH, which is string 22572# having a format: 22573# "DIR[:DIR]:" 22574# string "DIR[ DIR]" will be prepended to VARIABLE 22575# ":DIR[:DIR]" 22576# string "DIR[ DIR]" will be appended to VARIABLE 22577# "DIRP[:DIRP]::[DIRA:]DIRA" 22578# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22579# "DIRA[ DIRA]" will be appended to VARIABLE 22580# "DIR[:DIR]" 22581# VARIABLE will be replaced by "DIR[ DIR]" 22582func_munge_path_list () 22583{ 22584 case x$2 in 22585 x) 22586 ;; 22587 *:) 22588 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22589 ;; 22590 x:*) 22591 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22592 ;; 22593 *::*) 22594 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22595 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22596 ;; 22597 *) 22598 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22599 ;; 22600 esac 22601} 22602 22603 22604# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22605func_cc_basename () 22606{ 22607 for cc_temp in $*""; do 22608 case $cc_temp in 22609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22611 \-*) ;; 22612 *) break;; 22613 esac 22614 done 22615 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22616} 22617 22618 22619# ### END FUNCTIONS SHARED WITH CONFIGURE 22620 22621_LT_EOF 22622 22623 case $host_os in 22624 aix3*) 22625 cat <<\_LT_EOF >> "$cfgfile" 22626# AIX sometimes has problems with the GCC collect2 program. For some 22627# reason, if we set the COLLECT_NAMES environment variable, the problems 22628# vanish in a puff of smoke. 22629if test set != "${COLLECT_NAMES+set}"; then 22630 COLLECT_NAMES= 22631 export COLLECT_NAMES 22632fi 22633_LT_EOF 22634 ;; 22635 esac 22636 22637 22638 22639ltmain=$ac_aux_dir/ltmain.sh 22640 22641 22642 # We use sed instead of cat because bash on DJGPP gets confused if 22643 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22644 # text mode, it properly converts lines to CR/LF. This bash problem 22645 # is reportedly fixed, but why not run on old versions too? 22646 $SED '$q' "$ltmain" >> "$cfgfile" \ 22647 || (rm -f "$cfgfile"; exit 1) 22648 22649 mv -f "$cfgfile" "$ofile" || 22650 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22651 chmod +x "$ofile" 22652 22653 ;; 22654 22655 esac 22656done # for ac_tag 22657 22658 22659as_fn_exit 0 22660_ACEOF 22661ac_clean_files=$ac_clean_files_save 22662 22663test $ac_write_fail = 0 || 22664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22665 22666 22667# configure is writing to config.log, and then calls config.status. 22668# config.status does its own redirection, appending to config.log. 22669# Unfortunately, on DOS this fails, as config.log is still kept open 22670# by configure, so config.status won't be able to write to it; its 22671# output is simply discarded. So we exec the FD to /dev/null, 22672# effectively closing config.log, so it can be properly (re)opened and 22673# appended to by config.status. When coming back to configure, we 22674# need to make the FD available again. 22675if test "$no_create" != yes; then 22676 ac_cs_success=: 22677 ac_config_status_args= 22678 test "$silent" = yes && 22679 ac_config_status_args="$ac_config_status_args --quiet" 22680 exec 5>/dev/null 22681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22682 exec 5>>config.log 22683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22684 # would make configure fail if this is the last instruction. 22685 $ac_cs_success || as_fn_exit 1 22686fi 22687if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22689printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22690fi 22691 22692 22693