configure revision 66337f63
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libpciaccess 0.14. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libpciaccess' 593PACKAGE_TARNAME='libpciaccess' 594PACKAGE_VERSION='0.14' 595PACKAGE_STRING='libpciaccess 0.14' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess' 597PACKAGE_URL='' 598 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639PCIACCESS_LIBS 640PCIACCESS_CFLAGS 641CYGWIN_FALSE 642CYGWIN_TRUE 643GNU_FALSE 644GNU_TRUE 645SOLARIS_FALSE 646SOLARIS_TRUE 647OPENBSD_FALSE 648OPENBSD_TRUE 649NETBSD_FALSE 650NETBSD_TRUE 651FREEBSD_FALSE 652FREEBSD_TRUE 653LINUX_FALSE 654LINUX_TRUE 655PCIIDS_PATH 656MAN_SUBSTS 657XORG_MAN_PAGE 658ADMIN_MAN_DIR 659DRIVER_MAN_DIR 660MISC_MAN_DIR 661FILE_MAN_DIR 662LIB_MAN_DIR 663APP_MAN_DIR 664ADMIN_MAN_SUFFIX 665DRIVER_MAN_SUFFIX 666MISC_MAN_SUFFIX 667FILE_MAN_SUFFIX 668LIB_MAN_SUFFIX 669APP_MAN_SUFFIX 670INSTALL_CMD 671PKG_CONFIG_LIBDIR 672PKG_CONFIG_PATH 673PKG_CONFIG 674CHANGELOG_CMD 675STRICT_CFLAGS 676CWARNFLAGS 677BASE_CFLAGS 678LT_SYS_LIBRARY_PATH 679OTOOL64 680OTOOL 681LIPO 682NMEDIT 683DSYMUTIL 684MANIFEST_TOOL 685RANLIB 686ac_ct_AR 687AR 688DLLTOOL 689OBJDUMP 690LN_S 691NM 692ac_ct_DUMPBIN 693DUMPBIN 694LD 695FGREP 696SED 697host_os 698host_vendor 699host_cpu 700host 701build_os 702build_vendor 703build_cpu 704build 705LIBTOOL 706EGREP 707GREP 708CPP 709am__fastdepCC_FALSE 710am__fastdepCC_TRUE 711CCDEPMODE 712am__nodep 713AMDEPBACKSLASH 714AMDEP_FALSE 715AMDEP_TRUE 716am__quote 717am__include 718DEPDIR 719OBJEXT 720EXEEXT 721ac_ct_CC 722CPPFLAGS 723LDFLAGS 724CFLAGS 725CC 726AM_BACKSLASH 727AM_DEFAULT_VERBOSITY 728AM_DEFAULT_V 729AM_V 730am__untar 731am__tar 732AMTAR 733am__leading_dot 734SET_MAKE 735AWK 736mkdir_p 737MKDIR_P 738INSTALL_STRIP_PROGRAM 739STRIP 740install_sh 741MAKEINFO 742AUTOHEADER 743AUTOMAKE 744AUTOCONF 745ACLOCAL 746VERSION 747PACKAGE 748CYGPATH_W 749am__isrc 750INSTALL_DATA 751INSTALL_SCRIPT 752INSTALL_PROGRAM 753target_alias 754host_alias 755build_alias 756LIBS 757ECHO_T 758ECHO_N 759ECHO_C 760DEFS 761mandir 762localedir 763libdir 764psdir 765pdfdir 766dvidir 767htmldir 768infodir 769docdir 770oldincludedir 771includedir 772localstatedir 773sharedstatedir 774sysconfdir 775datadir 776datarootdir 777libexecdir 778sbindir 779bindir 780program_transform_name 781prefix 782exec_prefix 783PACKAGE_URL 784PACKAGE_BUGREPORT 785PACKAGE_STRING 786PACKAGE_VERSION 787PACKAGE_TARNAME 788PACKAGE_NAME 789PATH_SEPARATOR 790SHELL' 791ac_subst_files='' 792ac_user_opts=' 793enable_option_checking 794enable_silent_rules 795enable_dependency_tracking 796enable_shared 797enable_static 798with_pic 799enable_fast_install 800with_aix_soname 801with_gnu_ld 802with_sysroot 803enable_libtool_lock 804enable_selective_werror 805enable_strict_compilation 806with_pciids_path 807enable_linux_rom_fallback 808with_zlib 809enable_largefile 810' 811 ac_precious_vars='build_alias 812host_alias 813target_alias 814CC 815CFLAGS 816LDFLAGS 817LIBS 818CPPFLAGS 819CPP 820LT_SYS_LIBRARY_PATH 821PKG_CONFIG 822PKG_CONFIG_PATH 823PKG_CONFIG_LIBDIR' 824 825 826# Initialize some variables set by options. 827ac_init_help= 828ac_init_version=false 829ac_unrecognized_opts= 830ac_unrecognized_sep= 831# The variables have the same names as the options, with 832# dashes changed to underlines. 833cache_file=/dev/null 834exec_prefix=NONE 835no_create= 836no_recursion= 837prefix=NONE 838program_prefix=NONE 839program_suffix=NONE 840program_transform_name=s,x,x, 841silent= 842site= 843srcdir= 844verbose= 845x_includes=NONE 846x_libraries=NONE 847 848# Installation directory options. 849# These are left unexpanded so users can "make install exec_prefix=/foo" 850# and all the variables that are supposed to be based on exec_prefix 851# by default will actually change. 852# Use braces instead of parens because sh, perl, etc. also accept them. 853# (The list follows the same order as the GNU Coding Standards.) 854bindir='${exec_prefix}/bin' 855sbindir='${exec_prefix}/sbin' 856libexecdir='${exec_prefix}/libexec' 857datarootdir='${prefix}/share' 858datadir='${datarootdir}' 859sysconfdir='${prefix}/etc' 860sharedstatedir='${prefix}/com' 861localstatedir='${prefix}/var' 862includedir='${prefix}/include' 863oldincludedir='/usr/include' 864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 865infodir='${datarootdir}/info' 866htmldir='${docdir}' 867dvidir='${docdir}' 868pdfdir='${docdir}' 869psdir='${docdir}' 870libdir='${exec_prefix}/lib' 871localedir='${datarootdir}/locale' 872mandir='${datarootdir}/man' 873 874ac_prev= 875ac_dashdash= 876for ac_option 877do 878 # If the previous option needs an argument, assign it. 879 if test -n "$ac_prev"; then 880 eval $ac_prev=\$ac_option 881 ac_prev= 882 continue 883 fi 884 885 case $ac_option in 886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 887 *=) ac_optarg= ;; 888 *) ac_optarg=yes ;; 889 esac 890 891 # Accept the important Cygnus configure options, so we can diagnose typos. 892 893 case $ac_dashdash$ac_option in 894 --) 895 ac_dashdash=yes ;; 896 897 -bindir | --bindir | --bindi | --bind | --bin | --bi) 898 ac_prev=bindir ;; 899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 900 bindir=$ac_optarg ;; 901 902 -build | --build | --buil | --bui | --bu) 903 ac_prev=build_alias ;; 904 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 905 build_alias=$ac_optarg ;; 906 907 -cache-file | --cache-file | --cache-fil | --cache-fi \ 908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 909 ac_prev=cache_file ;; 910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 912 cache_file=$ac_optarg ;; 913 914 --config-cache | -C) 915 cache_file=config.cache ;; 916 917 -datadir | --datadir | --datadi | --datad) 918 ac_prev=datadir ;; 919 -datadir=* | --datadir=* | --datadi=* | --datad=*) 920 datadir=$ac_optarg ;; 921 922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 923 | --dataroo | --dataro | --datar) 924 ac_prev=datarootdir ;; 925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 927 datarootdir=$ac_optarg ;; 928 929 -disable-* | --disable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: $ac_useropt" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=no ;; 944 945 -docdir | --docdir | --docdi | --doc | --do) 946 ac_prev=docdir ;; 947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 948 docdir=$ac_optarg ;; 949 950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 951 ac_prev=dvidir ;; 952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 953 dvidir=$ac_optarg ;; 954 955 -enable-* | --enable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: $ac_useropt" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=\$ac_optarg ;; 970 971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 973 | --exec | --exe | --ex) 974 ac_prev=exec_prefix ;; 975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 977 | --exec=* | --exe=* | --ex=*) 978 exec_prefix=$ac_optarg ;; 979 980 -gas | --gas | --ga | --g) 981 # Obsolete; use --with-gas. 982 with_gas=yes ;; 983 984 -help | --help | --hel | --he | -h) 985 ac_init_help=long ;; 986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 987 ac_init_help=recursive ;; 988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 989 ac_init_help=short ;; 990 991 -host | --host | --hos | --ho) 992 ac_prev=host_alias ;; 993 -host=* | --host=* | --hos=* | --ho=*) 994 host_alias=$ac_optarg ;; 995 996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 997 ac_prev=htmldir ;; 998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 999 | --ht=*) 1000 htmldir=$ac_optarg ;; 1001 1002 -includedir | --includedir | --includedi | --included | --include \ 1003 | --includ | --inclu | --incl | --inc) 1004 ac_prev=includedir ;; 1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1006 | --includ=* | --inclu=* | --incl=* | --inc=*) 1007 includedir=$ac_optarg ;; 1008 1009 -infodir | --infodir | --infodi | --infod | --info | --inf) 1010 ac_prev=infodir ;; 1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1012 infodir=$ac_optarg ;; 1013 1014 -libdir | --libdir | --libdi | --libd) 1015 ac_prev=libdir ;; 1016 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1017 libdir=$ac_optarg ;; 1018 1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1020 | --libexe | --libex | --libe) 1021 ac_prev=libexecdir ;; 1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1023 | --libexe=* | --libex=* | --libe=*) 1024 libexecdir=$ac_optarg ;; 1025 1026 -localedir | --localedir | --localedi | --localed | --locale) 1027 ac_prev=localedir ;; 1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1029 localedir=$ac_optarg ;; 1030 1031 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1032 | --localstate | --localstat | --localsta | --localst | --locals) 1033 ac_prev=localstatedir ;; 1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1036 localstatedir=$ac_optarg ;; 1037 1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1039 ac_prev=mandir ;; 1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1041 mandir=$ac_optarg ;; 1042 1043 -nfp | --nfp | --nf) 1044 # Obsolete; use --without-fp. 1045 with_fp=no ;; 1046 1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1048 | --no-cr | --no-c | -n) 1049 no_create=yes ;; 1050 1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1053 no_recursion=yes ;; 1054 1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1057 | --oldin | --oldi | --old | --ol | --o) 1058 ac_prev=oldincludedir ;; 1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1062 oldincludedir=$ac_optarg ;; 1063 1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1065 ac_prev=prefix ;; 1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1067 prefix=$ac_optarg ;; 1068 1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1070 | --program-pre | --program-pr | --program-p) 1071 ac_prev=program_prefix ;; 1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1074 program_prefix=$ac_optarg ;; 1075 1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1077 | --program-suf | --program-su | --program-s) 1078 ac_prev=program_suffix ;; 1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1081 program_suffix=$ac_optarg ;; 1082 1083 -program-transform-name | --program-transform-name \ 1084 | --program-transform-nam | --program-transform-na \ 1085 | --program-transform-n | --program-transform- \ 1086 | --program-transform | --program-transfor \ 1087 | --program-transfo | --program-transf \ 1088 | --program-trans | --program-tran \ 1089 | --progr-tra | --program-tr | --program-t) 1090 ac_prev=program_transform_name ;; 1091 -program-transform-name=* | --program-transform-name=* \ 1092 | --program-transform-nam=* | --program-transform-na=* \ 1093 | --program-transform-n=* | --program-transform-=* \ 1094 | --program-transform=* | --program-transfor=* \ 1095 | --program-transfo=* | --program-transf=* \ 1096 | --program-trans=* | --program-tran=* \ 1097 | --progr-tra=* | --program-tr=* | --program-t=*) 1098 program_transform_name=$ac_optarg ;; 1099 1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1101 ac_prev=pdfdir ;; 1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1103 pdfdir=$ac_optarg ;; 1104 1105 -psdir | --psdir | --psdi | --psd | --ps) 1106 ac_prev=psdir ;; 1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1108 psdir=$ac_optarg ;; 1109 1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1111 | -silent | --silent | --silen | --sile | --sil) 1112 silent=yes ;; 1113 1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1115 ac_prev=sbindir ;; 1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1117 | --sbi=* | --sb=*) 1118 sbindir=$ac_optarg ;; 1119 1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1122 | --sharedst | --shareds | --shared | --share | --shar \ 1123 | --sha | --sh) 1124 ac_prev=sharedstatedir ;; 1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1128 | --sha=* | --sh=*) 1129 sharedstatedir=$ac_optarg ;; 1130 1131 -site | --site | --sit) 1132 ac_prev=site ;; 1133 -site=* | --site=* | --sit=*) 1134 site=$ac_optarg ;; 1135 1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1137 ac_prev=srcdir ;; 1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1139 srcdir=$ac_optarg ;; 1140 1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1142 | --syscon | --sysco | --sysc | --sys | --sy) 1143 ac_prev=sysconfdir ;; 1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1146 sysconfdir=$ac_optarg ;; 1147 1148 -target | --target | --targe | --targ | --tar | --ta | --t) 1149 ac_prev=target_alias ;; 1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1151 target_alias=$ac_optarg ;; 1152 1153 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1154 verbose=yes ;; 1155 1156 -version | --version | --versio | --versi | --vers | -V) 1157 ac_init_version=: ;; 1158 1159 -with-* | --with-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=\$ac_optarg ;; 1174 1175 -without-* | --without-*) 1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 as_fn_error $? "invalid package name: $ac_useropt" 1180 ac_useropt_orig=$ac_useropt 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 case $ac_user_opts in 1183 *" 1184"with_$ac_useropt" 1185"*) ;; 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1187 ac_unrecognized_sep=', ';; 1188 esac 1189 eval with_$ac_useropt=no ;; 1190 1191 --x) 1192 # Obsolete; use --with-x. 1193 with_x=yes ;; 1194 1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1196 | --x-incl | --x-inc | --x-in | --x-i) 1197 ac_prev=x_includes ;; 1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1200 x_includes=$ac_optarg ;; 1201 1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1204 ac_prev=x_libraries ;; 1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1207 x_libraries=$ac_optarg ;; 1208 1209 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1210Try \`$0 --help' for more information" 1211 ;; 1212 1213 *=*) 1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1215 # Reject names that are not valid shell variable names. 1216 case $ac_envvar in #( 1217 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1219 esac 1220 eval $ac_envvar=\$ac_optarg 1221 export $ac_envvar ;; 1222 1223 *) 1224 # FIXME: should be removed in autoconf 3.0. 1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1229 ;; 1230 1231 esac 1232done 1233 1234if test -n "$ac_prev"; then 1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1236 as_fn_error $? "missing argument to $ac_option" 1237fi 1238 1239if test -n "$ac_unrecognized_opts"; then 1240 case $enable_option_checking in 1241 no) ;; 1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1244 esac 1245fi 1246 1247# Check all directory arguments for consistency. 1248for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1249 datadir sysconfdir sharedstatedir localstatedir includedir \ 1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1251 libdir localedir mandir 1252do 1253 eval ac_val=\$$ac_var 1254 # Remove trailing slashes. 1255 case $ac_val in 1256 */ ) 1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1258 eval $ac_var=\$ac_val;; 1259 esac 1260 # Be sure to have absolute directory names. 1261 case $ac_val in 1262 [\\/$]* | ?:[\\/]* ) continue;; 1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1264 esac 1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1266done 1267 1268# There might be people who depend on the old broken behavior: `$host' 1269# used to hold the argument of --host etc. 1270# FIXME: To remove some day. 1271build=$build_alias 1272host=$host_alias 1273target=$target_alias 1274 1275# FIXME: To remove some day. 1276if test "x$host_alias" != x; then 1277 if test "x$build_alias" = x; then 1278 cross_compiling=maybe 1279 elif test "x$build_alias" != "x$host_alias"; then 1280 cross_compiling=yes 1281 fi 1282fi 1283 1284ac_tool_prefix= 1285test -n "$host_alias" && ac_tool_prefix=$host_alias- 1286 1287test "$silent" = yes && exec 6>/dev/null 1288 1289 1290ac_pwd=`pwd` && test -n "$ac_pwd" && 1291ac_ls_di=`ls -di .` && 1292ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1293 as_fn_error $? "working directory cannot be determined" 1294test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1295 as_fn_error $? "pwd does not report name of working directory" 1296 1297 1298# Find the source files, if location was not specified. 1299if test -z "$srcdir"; then 1300 ac_srcdir_defaulted=yes 1301 # Try the directory containing this script, then the parent directory. 1302 ac_confdir=`$as_dirname -- "$as_myself" || 1303$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1304 X"$as_myself" : 'X\(//\)[^/]' \| \ 1305 X"$as_myself" : 'X\(//\)$' \| \ 1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1307$as_echo X"$as_myself" | 1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)[^/].*/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\/\)$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\).*/{ 1321 s//\1/ 1322 q 1323 } 1324 s/.*/./; q'` 1325 srcdir=$ac_confdir 1326 if test ! -r "$srcdir/$ac_unique_file"; then 1327 srcdir=.. 1328 fi 1329else 1330 ac_srcdir_defaulted=no 1331fi 1332if test ! -r "$srcdir/$ac_unique_file"; then 1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1335fi 1336ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1337ac_abs_confdir=`( 1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1339 pwd)` 1340# When building in place, set srcdir=. 1341if test "$ac_abs_confdir" = "$ac_pwd"; then 1342 srcdir=. 1343fi 1344# Remove unnecessary trailing slashes from srcdir. 1345# Double slashes in file names in object file debugging info 1346# mess up M-x gdb in Emacs. 1347case $srcdir in 1348*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1349esac 1350for ac_var in $ac_precious_vars; do 1351 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1352 eval ac_env_${ac_var}_value=\$${ac_var} 1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1354 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1355done 1356 1357# 1358# Report the --help message. 1359# 1360if test "$ac_init_help" = "long"; then 1361 # Omit some internal or obsolete options to make the list less imposing. 1362 # This message is too long to be a string in the A/UX 3.1 sh. 1363 cat <<_ACEOF 1364\`configure' configures libpciaccess 0.14 to adapt to many kinds of systems. 1365 1366Usage: $0 [OPTION]... [VAR=VALUE]... 1367 1368To assign environment variables (e.g., CC, CFLAGS...), specify them as 1369VAR=VALUE. See below for descriptions of some of the useful variables. 1370 1371Defaults for the options are specified in brackets. 1372 1373Configuration: 1374 -h, --help display this help and exit 1375 --help=short display options specific to this package 1376 --help=recursive display the short help of all the included packages 1377 -V, --version display version information and exit 1378 -q, --quiet, --silent do not print \`checking ...' messages 1379 --cache-file=FILE cache test results in FILE [disabled] 1380 -C, --config-cache alias for \`--cache-file=config.cache' 1381 -n, --no-create do not create output files 1382 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1383 1384Installation directories: 1385 --prefix=PREFIX install architecture-independent files in PREFIX 1386 [$ac_default_prefix] 1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1388 [PREFIX] 1389 1390By default, \`make install' will install all the files in 1391\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1392an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1393for instance \`--prefix=\$HOME'. 1394 1395For better control, use the options below. 1396 1397Fine tuning of the installation directories: 1398 --bindir=DIR user executables [EPREFIX/bin] 1399 --sbindir=DIR system admin executables [EPREFIX/sbin] 1400 --libexecdir=DIR program executables [EPREFIX/libexec] 1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1404 --libdir=DIR object code libraries [EPREFIX/lib] 1405 --includedir=DIR C header files [PREFIX/include] 1406 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1409 --infodir=DIR info documentation [DATAROOTDIR/info] 1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1411 --mandir=DIR man documentation [DATAROOTDIR/man] 1412 --docdir=DIR documentation root [DATAROOTDIR/doc/libpciaccess] 1413 --htmldir=DIR html documentation [DOCDIR] 1414 --dvidir=DIR dvi documentation [DOCDIR] 1415 --pdfdir=DIR pdf documentation [DOCDIR] 1416 --psdir=DIR ps documentation [DOCDIR] 1417_ACEOF 1418 1419 cat <<\_ACEOF 1420 1421Program names: 1422 --program-prefix=PREFIX prepend PREFIX to installed program names 1423 --program-suffix=SUFFIX append SUFFIX to installed program names 1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1425 1426System types: 1427 --build=BUILD configure for building on BUILD [guessed] 1428 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1429_ACEOF 1430fi 1431 1432if test -n "$ac_init_help"; then 1433 case $ac_init_help in 1434 short | recursive ) echo "Configuration of libpciaccess 0.14:";; 1435 esac 1436 cat <<\_ACEOF 1437 1438Optional Features: 1439 --disable-option-checking ignore unrecognized --enable/--with options 1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1442 --enable-silent-rules less verbose build output (undo: "make V=1") 1443 --disable-silent-rules verbose build output (undo: "make V=0") 1444 --enable-dependency-tracking 1445 do not reject slow dependency extractors 1446 --disable-dependency-tracking 1447 speeds up one-time build 1448 --enable-shared[=PKGS] build shared libraries [default=yes] 1449 --enable-static[=PKGS] build static libraries [default=yes] 1450 --enable-fast-install[=PKGS] 1451 optimize for fast installation [default=yes] 1452 --disable-libtool-lock avoid locking (might break parallel builds) 1453 --disable-selective-werror 1454 Turn off selective compiler errors. (default: 1455 enabled) 1456 --enable-strict-compilation 1457 Enable all warnings from compiler and make them 1458 errors (default: disabled) 1459 --enable-linux-rom-fallback 1460 Enable support for falling back to /dev/mem for roms 1461 (default: disabled) 1462 --disable-largefile omit support for large files 1463 1464Optional Packages: 1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1468 both] 1469 --with-aix-soname=aix|svr4|both 1470 shared library versioning (aka "SONAME") variant to 1471 provide on AIX, [default=aix]. 1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1473 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1474 compiler's sysroot if not specified). 1475 --with-pciids-path=PCIIDS_PATH 1476 Path to pci.ids file 1477 --with-zlib Enable zlib support to read gzip compressed pci.ids 1478 1479Some influential environment variables: 1480 CC C compiler command 1481 CFLAGS C compiler flags 1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1483 nonstandard directory <lib dir> 1484 LIBS libraries to pass to the linker, e.g. -l<library> 1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1486 you have headers in a nonstandard directory <include dir> 1487 CPP C preprocessor 1488 LT_SYS_LIBRARY_PATH 1489 User-defined run-time library search path. 1490 PKG_CONFIG path to pkg-config utility 1491 PKG_CONFIG_PATH 1492 directories to add to pkg-config's search path 1493 PKG_CONFIG_LIBDIR 1494 path overriding pkg-config's built-in search path 1495 1496Use these variables to override the choices made by `configure' or to help 1497it to find libraries and programs with nonstandard names/locations. 1498 1499Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>. 1500_ACEOF 1501ac_status=$? 1502fi 1503 1504if test "$ac_init_help" = "recursive"; then 1505 # If there are subdirs, report their specific --help. 1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1507 test -d "$ac_dir" || 1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1509 continue 1510 ac_builddir=. 1511 1512case "$ac_dir" in 1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514*) 1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1516 # A ".." for each directory in $ac_dir_suffix. 1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1518 case $ac_top_builddir_sub in 1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1521 esac ;; 1522esac 1523ac_abs_top_builddir=$ac_pwd 1524ac_abs_builddir=$ac_pwd$ac_dir_suffix 1525# for backward compatibility: 1526ac_top_builddir=$ac_top_build_prefix 1527 1528case $srcdir in 1529 .) # We are building in place. 1530 ac_srcdir=. 1531 ac_top_srcdir=$ac_top_builddir_sub 1532 ac_abs_top_srcdir=$ac_pwd ;; 1533 [\\/]* | ?:[\\/]* ) # Absolute name. 1534 ac_srcdir=$srcdir$ac_dir_suffix; 1535 ac_top_srcdir=$srcdir 1536 ac_abs_top_srcdir=$srcdir ;; 1537 *) # Relative name. 1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1539 ac_top_srcdir=$ac_top_build_prefix$srcdir 1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1541esac 1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1543 1544 cd "$ac_dir" || { ac_status=$?; continue; } 1545 # Check for guested configure. 1546 if test -f "$ac_srcdir/configure.gnu"; then 1547 echo && 1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1549 elif test -f "$ac_srcdir/configure"; then 1550 echo && 1551 $SHELL "$ac_srcdir/configure" --help=recursive 1552 else 1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1554 fi || ac_status=$? 1555 cd "$ac_pwd" || { ac_status=$?; break; } 1556 done 1557fi 1558 1559test -n "$ac_init_help" && exit $ac_status 1560if $ac_init_version; then 1561 cat <<\_ACEOF 1562libpciaccess configure 0.14 1563generated by GNU Autoconf 2.69 1564 1565Copyright (C) 2012 Free Software Foundation, Inc. 1566This configure script is free software; the Free Software Foundation 1567gives unlimited permission to copy, distribute and modify it. 1568_ACEOF 1569 exit 1570fi 1571 1572## ------------------------ ## 1573## Autoconf initialization. ## 1574## ------------------------ ## 1575 1576# ac_fn_c_try_compile LINENO 1577# -------------------------- 1578# Try to compile conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_compile () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 rm -f conftest.$ac_objext 1583 if { { ac_try="$ac_compile" 1584case "(($ac_try" in 1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586 *) ac_try_echo=$ac_try;; 1587esac 1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589$as_echo "$ac_try_echo"; } >&5 1590 (eval "$ac_compile") 2>conftest.err 1591 ac_status=$? 1592 if test -s conftest.err; then 1593 grep -v '^ *+' conftest.err >conftest.er1 1594 cat conftest.er1 >&5 1595 mv -f conftest.er1 conftest.err 1596 fi 1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598 test $ac_status = 0; } && { 1599 test -z "$ac_c_werror_flag" || 1600 test ! -s conftest.err 1601 } && test -s conftest.$ac_objext; then : 1602 ac_retval=0 1603else 1604 $as_echo "$as_me: failed program was:" >&5 1605sed 's/^/| /' conftest.$ac_ext >&5 1606 1607 ac_retval=1 1608fi 1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1610 as_fn_set_status $ac_retval 1611 1612} # ac_fn_c_try_compile 1613 1614# ac_fn_c_try_cpp LINENO 1615# ---------------------- 1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1617ac_fn_c_try_cpp () 1618{ 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 if { { ac_try="$ac_cpp conftest.$ac_ext" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626$as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } > conftest.i && { 1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 }; then : 1639 ac_retval=0 1640else 1641 $as_echo "$as_me: failed program was:" >&5 1642sed 's/^/| /' conftest.$ac_ext >&5 1643 1644 ac_retval=1 1645fi 1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647 as_fn_set_status $ac_retval 1648 1649} # ac_fn_c_try_cpp 1650 1651# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1652# ------------------------------------------------------- 1653# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1654# the include files in INCLUDES and setting the cache variable VAR 1655# accordingly. 1656ac_fn_c_check_header_mongrel () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 if eval \${$3+:} false; then : 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1661$as_echo_n "checking for $2... " >&6; } 1662if eval \${$3+:} false; then : 1663 $as_echo_n "(cached) " >&6 1664fi 1665eval ac_res=\$$3 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1667$as_echo "$ac_res" >&6; } 1668else 1669 # Is the header compilable? 1670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1671$as_echo_n "checking $2 usability... " >&6; } 1672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1673/* end confdefs.h. */ 1674$4 1675#include <$2> 1676_ACEOF 1677if ac_fn_c_try_compile "$LINENO"; then : 1678 ac_header_compiler=yes 1679else 1680 ac_header_compiler=no 1681fi 1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1684$as_echo "$ac_header_compiler" >&6; } 1685 1686# Is the header present? 1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1688$as_echo_n "checking $2 presence... " >&6; } 1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1690/* end confdefs.h. */ 1691#include <$2> 1692_ACEOF 1693if ac_fn_c_try_cpp "$LINENO"; then : 1694 ac_header_preproc=yes 1695else 1696 ac_header_preproc=no 1697fi 1698rm -f conftest.err conftest.i conftest.$ac_ext 1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1700$as_echo "$ac_header_preproc" >&6; } 1701 1702# So? What about this header? 1703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1704 yes:no: ) 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1706$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1708$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1709 ;; 1710 no:yes:* ) 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1712$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1714$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1716$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1718$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1721( $as_echo "## --------------------------------------------------------------------------------------------- ## 1722## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ## 1723## --------------------------------------------------------------------------------------------- ##" 1724 ) | sed "s/^/$as_me: WARNING: /" >&2 1725 ;; 1726esac 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728$as_echo_n "checking for $2... " >&6; } 1729if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731else 1732 eval "$3=\$ac_header_compiler" 1733fi 1734eval ac_res=\$$3 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1736$as_echo "$ac_res" >&6; } 1737fi 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 1740} # ac_fn_c_check_header_mongrel 1741 1742# ac_fn_c_try_run LINENO 1743# ---------------------- 1744# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1745# that executables *can* be run. 1746ac_fn_c_try_run () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 if { { ac_try="$ac_link" 1750case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_link") 2>&5 1757 ac_status=$? 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1760 { { case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_try") 2>&5 1767 ac_status=$? 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1769 test $ac_status = 0; }; }; then : 1770 ac_retval=0 1771else 1772 $as_echo "$as_me: program exited with status $ac_status" >&5 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=$ac_status 1777fi 1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 as_fn_set_status $ac_retval 1781 1782} # ac_fn_c_try_run 1783 1784# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1785# ------------------------------------------------------- 1786# Tests whether HEADER exists and can be compiled using the include files in 1787# INCLUDES, setting the cache variable VAR accordingly. 1788ac_fn_c_check_header_compile () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1792$as_echo_n "checking for $2... " >&6; } 1793if eval \${$3+:} false; then : 1794 $as_echo_n "(cached) " >&6 1795else 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797/* end confdefs.h. */ 1798$4 1799#include <$2> 1800_ACEOF 1801if ac_fn_c_try_compile "$LINENO"; then : 1802 eval "$3=yes" 1803else 1804 eval "$3=no" 1805fi 1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1807fi 1808eval ac_res=\$$3 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810$as_echo "$ac_res" >&6; } 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 1813} # ac_fn_c_check_header_compile 1814 1815# ac_fn_c_try_link LINENO 1816# ----------------------- 1817# Try to link conftest.$ac_ext, and return whether this succeeded. 1818ac_fn_c_try_link () 1819{ 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 rm -f conftest.$ac_objext conftest$ac_exeext 1822 if { { ac_try="$ac_link" 1823case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826esac 1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828$as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_link") 2>conftest.err 1830 ac_status=$? 1831 if test -s conftest.err; then 1832 grep -v '^ *+' conftest.err >conftest.er1 1833 cat conftest.er1 >&5 1834 mv -f conftest.er1 conftest.err 1835 fi 1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1837 test $ac_status = 0; } && { 1838 test -z "$ac_c_werror_flag" || 1839 test ! -s conftest.err 1840 } && test -s conftest$ac_exeext && { 1841 test "$cross_compiling" = yes || 1842 test -x conftest$ac_exeext 1843 }; then : 1844 ac_retval=0 1845else 1846 $as_echo "$as_me: failed program was:" >&5 1847sed 's/^/| /' conftest.$ac_ext >&5 1848 1849 ac_retval=1 1850fi 1851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1853 # interfere with the next link command; also delete a directory that is 1854 # left behind by Apple's compiler. We do this before executing the actions. 1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_c_try_link 1860 1861# ac_fn_c_check_func LINENO FUNC VAR 1862# ---------------------------------- 1863# Tests whether FUNC exists, setting the cache variable VAR accordingly 1864ac_fn_c_check_func () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1868$as_echo_n "checking for $2... " >&6; } 1869if eval \${$3+:} false; then : 1870 $as_echo_n "(cached) " >&6 1871else 1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1873/* end confdefs.h. */ 1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1875 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1876#define $2 innocuous_$2 1877 1878/* System header to define __stub macros and hopefully few prototypes, 1879 which can conflict with char $2 (); below. 1880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1881 <limits.h> exists even on freestanding compilers. */ 1882 1883#ifdef __STDC__ 1884# include <limits.h> 1885#else 1886# include <assert.h> 1887#endif 1888 1889#undef $2 1890 1891/* Override any GCC internal prototype to avoid an error. 1892 Use char because int might match the return type of a GCC 1893 builtin and then its argument prototype would still apply. */ 1894#ifdef __cplusplus 1895extern "C" 1896#endif 1897char $2 (); 1898/* The GNU C library defines this for functions which it implements 1899 to always fail with ENOSYS. Some functions are actually named 1900 something starting with __ and the normal name is an alias. */ 1901#if defined __stub_$2 || defined __stub___$2 1902choke me 1903#endif 1904 1905int 1906main () 1907{ 1908return $2 (); 1909 ; 1910 return 0; 1911} 1912_ACEOF 1913if ac_fn_c_try_link "$LINENO"; then : 1914 eval "$3=yes" 1915else 1916 eval "$3=no" 1917fi 1918rm -f core conftest.err conftest.$ac_objext \ 1919 conftest$ac_exeext conftest.$ac_ext 1920fi 1921eval ac_res=\$$3 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923$as_echo "$ac_res" >&6; } 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1926} # ac_fn_c_check_func 1927 1928# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1929# --------------------------------------------- 1930# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1931# accordingly. 1932ac_fn_c_check_decl () 1933{ 1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1935 as_decl_name=`echo $2|sed 's/ *(.*//'` 1936 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1938$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1939if eval \${$3+:} false; then : 1940 $as_echo_n "(cached) " >&6 1941else 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int 1946main () 1947{ 1948#ifndef $as_decl_name 1949#ifdef __cplusplus 1950 (void) $as_decl_use; 1951#else 1952 (void) $as_decl_name; 1953#endif 1954#endif 1955 1956 ; 1957 return 0; 1958} 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO"; then : 1961 eval "$3=yes" 1962else 1963 eval "$3=no" 1964fi 1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 1972} # ac_fn_c_check_decl 1973 1974# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1975# ---------------------------------------------------- 1976# Tries to find if the field MEMBER exists in type AGGR, after including 1977# INCLUDES, setting cache variable VAR accordingly. 1978ac_fn_c_check_member () 1979{ 1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1982$as_echo_n "checking for $2.$3... " >&6; } 1983if eval \${$4+:} false; then : 1984 $as_echo_n "(cached) " >&6 1985else 1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1987/* end confdefs.h. */ 1988$5 1989int 1990main () 1991{ 1992static $2 ac_aggr; 1993if (ac_aggr.$3) 1994return 0; 1995 ; 1996 return 0; 1997} 1998_ACEOF 1999if ac_fn_c_try_compile "$LINENO"; then : 2000 eval "$4=yes" 2001else 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$5 2005int 2006main () 2007{ 2008static $2 ac_aggr; 2009if (sizeof ac_aggr.$3) 2010return 0; 2011 ; 2012 return 0; 2013} 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO"; then : 2016 eval "$4=yes" 2017else 2018 eval "$4=no" 2019fi 2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2021fi 2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2023fi 2024eval ac_res=\$$4 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2026$as_echo "$ac_res" >&6; } 2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2028 2029} # ac_fn_c_check_member 2030cat >config.log <<_ACEOF 2031This file contains any messages produced by compilers while 2032running configure, to aid debugging if configure makes a mistake. 2033 2034It was created by libpciaccess $as_me 0.14, which was 2035generated by GNU Autoconf 2.69. Invocation command line was 2036 2037 $ $0 $@ 2038 2039_ACEOF 2040exec 5>>config.log 2041{ 2042cat <<_ASUNAME 2043## --------- ## 2044## Platform. ## 2045## --------- ## 2046 2047hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2048uname -m = `(uname -m) 2>/dev/null || echo unknown` 2049uname -r = `(uname -r) 2>/dev/null || echo unknown` 2050uname -s = `(uname -s) 2>/dev/null || echo unknown` 2051uname -v = `(uname -v) 2>/dev/null || echo unknown` 2052 2053/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2054/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2055 2056/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2057/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2058/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2059/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2060/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2061/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2062/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2063 2064_ASUNAME 2065 2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2067for as_dir in $PATH 2068do 2069 IFS=$as_save_IFS 2070 test -z "$as_dir" && as_dir=. 2071 $as_echo "PATH: $as_dir" 2072 done 2073IFS=$as_save_IFS 2074 2075} >&5 2076 2077cat >&5 <<_ACEOF 2078 2079 2080## ----------- ## 2081## Core tests. ## 2082## ----------- ## 2083 2084_ACEOF 2085 2086 2087# Keep a trace of the command line. 2088# Strip out --no-create and --no-recursion so they do not pile up. 2089# Strip out --silent because we don't want to record it for future runs. 2090# Also quote any args containing shell meta-characters. 2091# Make two passes to allow for proper duplicate-argument suppression. 2092ac_configure_args= 2093ac_configure_args0= 2094ac_configure_args1= 2095ac_must_keep_next=false 2096for ac_pass in 1 2 2097do 2098 for ac_arg 2099 do 2100 case $ac_arg in 2101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2103 | -silent | --silent | --silen | --sile | --sil) 2104 continue ;; 2105 *\'*) 2106 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2107 esac 2108 case $ac_pass in 2109 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2110 2) 2111 as_fn_append ac_configure_args1 " '$ac_arg'" 2112 if test $ac_must_keep_next = true; then 2113 ac_must_keep_next=false # Got value, back to normal. 2114 else 2115 case $ac_arg in 2116 *=* | --config-cache | -C | -disable-* | --disable-* \ 2117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2119 | -with-* | --with-* | -without-* | --without-* | --x) 2120 case "$ac_configure_args0 " in 2121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2122 esac 2123 ;; 2124 -* ) ac_must_keep_next=true ;; 2125 esac 2126 fi 2127 as_fn_append ac_configure_args " '$ac_arg'" 2128 ;; 2129 esac 2130 done 2131done 2132{ ac_configure_args0=; unset ac_configure_args0;} 2133{ ac_configure_args1=; unset ac_configure_args1;} 2134 2135# When interrupted or exit'd, cleanup temporary files, and complete 2136# config.log. We remove comments because anyway the quotes in there 2137# would cause problems or look ugly. 2138# WARNING: Use '\'' to represent an apostrophe within the trap. 2139# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2140trap 'exit_status=$? 2141 # Save into config.log some information that might help in debugging. 2142 { 2143 echo 2144 2145 $as_echo "## ---------------- ## 2146## Cache variables. ## 2147## ---------------- ##" 2148 echo 2149 # The following way of writing the cache mishandles newlines in values, 2150( 2151 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2152 eval ac_val=\$$ac_var 2153 case $ac_val in #( 2154 *${as_nl}*) 2155 case $ac_var in #( 2156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2157$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2158 esac 2159 case $ac_var in #( 2160 _ | IFS | as_nl) ;; #( 2161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2162 *) { eval $ac_var=; unset $ac_var;} ;; 2163 esac ;; 2164 esac 2165 done 2166 (set) 2>&1 | 2167 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2168 *${as_nl}ac_space=\ *) 2169 sed -n \ 2170 "s/'\''/'\''\\\\'\'''\''/g; 2171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2172 ;; #( 2173 *) 2174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2175 ;; 2176 esac | 2177 sort 2178) 2179 echo 2180 2181 $as_echo "## ----------------- ## 2182## Output variables. ## 2183## ----------------- ##" 2184 echo 2185 for ac_var in $ac_subst_vars 2186 do 2187 eval ac_val=\$$ac_var 2188 case $ac_val in 2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2190 esac 2191 $as_echo "$ac_var='\''$ac_val'\''" 2192 done | sort 2193 echo 2194 2195 if test -n "$ac_subst_files"; then 2196 $as_echo "## ------------------- ## 2197## File substitutions. ## 2198## ------------------- ##" 2199 echo 2200 for ac_var in $ac_subst_files 2201 do 2202 eval ac_val=\$$ac_var 2203 case $ac_val in 2204 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2205 esac 2206 $as_echo "$ac_var='\''$ac_val'\''" 2207 done | sort 2208 echo 2209 fi 2210 2211 if test -s confdefs.h; then 2212 $as_echo "## ----------- ## 2213## confdefs.h. ## 2214## ----------- ##" 2215 echo 2216 cat confdefs.h 2217 echo 2218 fi 2219 test "$ac_signal" != 0 && 2220 $as_echo "$as_me: caught signal $ac_signal" 2221 $as_echo "$as_me: exit $exit_status" 2222 } >&5 2223 rm -f core *.core core.conftest.* && 2224 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2225 exit $exit_status 2226' 0 2227for ac_signal in 1 2 13 15; do 2228 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2229done 2230ac_signal=0 2231 2232# confdefs.h avoids OS command line length limits that DEFS can exceed. 2233rm -f -r conftest* confdefs.h 2234 2235$as_echo "/* confdefs.h */" > confdefs.h 2236 2237# Predefined preprocessor variables. 2238 2239cat >>confdefs.h <<_ACEOF 2240#define PACKAGE_NAME "$PACKAGE_NAME" 2241_ACEOF 2242 2243cat >>confdefs.h <<_ACEOF 2244#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2245_ACEOF 2246 2247cat >>confdefs.h <<_ACEOF 2248#define PACKAGE_VERSION "$PACKAGE_VERSION" 2249_ACEOF 2250 2251cat >>confdefs.h <<_ACEOF 2252#define PACKAGE_STRING "$PACKAGE_STRING" 2253_ACEOF 2254 2255cat >>confdefs.h <<_ACEOF 2256#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2257_ACEOF 2258 2259cat >>confdefs.h <<_ACEOF 2260#define PACKAGE_URL "$PACKAGE_URL" 2261_ACEOF 2262 2263 2264# Let the site file select an alternate cache file if it wants to. 2265# Prefer an explicitly selected file to automatically selected ones. 2266ac_site_file1=NONE 2267ac_site_file2=NONE 2268if test -n "$CONFIG_SITE"; then 2269 # We do not want a PATH search for config.site. 2270 case $CONFIG_SITE in #(( 2271 -*) ac_site_file1=./$CONFIG_SITE;; 2272 */*) ac_site_file1=$CONFIG_SITE;; 2273 *) ac_site_file1=./$CONFIG_SITE;; 2274 esac 2275elif test "x$prefix" != xNONE; then 2276 ac_site_file1=$prefix/share/config.site 2277 ac_site_file2=$prefix/etc/config.site 2278else 2279 ac_site_file1=$ac_default_prefix/share/config.site 2280 ac_site_file2=$ac_default_prefix/etc/config.site 2281fi 2282for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2283do 2284 test "x$ac_site_file" = xNONE && continue 2285 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2287$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2288 sed 's/^/| /' "$ac_site_file" >&5 2289 . "$ac_site_file" \ 2290 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2292as_fn_error $? "failed to load site script $ac_site_file 2293See \`config.log' for more details" "$LINENO" 5; } 2294 fi 2295done 2296 2297if test -r "$cache_file"; then 2298 # Some versions of bash will fail to source /dev/null (special files 2299 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2300 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2302$as_echo "$as_me: loading cache $cache_file" >&6;} 2303 case $cache_file in 2304 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2305 *) . "./$cache_file";; 2306 esac 2307 fi 2308else 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2310$as_echo "$as_me: creating cache $cache_file" >&6;} 2311 >$cache_file 2312fi 2313 2314# Check that the precious variables saved in the cache have kept the same 2315# value. 2316ac_cache_corrupted=false 2317for ac_var in $ac_precious_vars; do 2318 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2319 eval ac_new_set=\$ac_env_${ac_var}_set 2320 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2321 eval ac_new_val=\$ac_env_${ac_var}_value 2322 case $ac_old_set,$ac_new_set in 2323 set,) 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2325$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2326 ac_cache_corrupted=: ;; 2327 ,set) 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2329$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2330 ac_cache_corrupted=: ;; 2331 ,);; 2332 *) 2333 if test "x$ac_old_val" != "x$ac_new_val"; then 2334 # differences in whitespace do not lead to failure. 2335 ac_old_val_w=`echo x $ac_old_val` 2336 ac_new_val_w=`echo x $ac_new_val` 2337 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2339$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2340 ac_cache_corrupted=: 2341 else 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2343$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2344 eval $ac_var=\$ac_old_val 2345 fi 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2347$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2349$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2350 fi;; 2351 esac 2352 # Pass precious variables to config.status. 2353 if test "$ac_new_set" = set; then 2354 case $ac_new_val in 2355 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2356 *) ac_arg=$ac_var=$ac_new_val ;; 2357 esac 2358 case " $ac_configure_args " in 2359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2360 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2361 esac 2362 fi 2363done 2364if $ac_cache_corrupted; then 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2368$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2369 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2370fi 2371## -------------------- ## 2372## Main body of script. ## 2373## -------------------- ## 2374 2375ac_ext=c 2376ac_cpp='$CPP $CPPFLAGS' 2377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2379ac_compiler_gnu=$ac_cv_c_compiler_gnu 2380 2381 2382ac_config_headers="$ac_config_headers config.h" 2383 2384ac_aux_dir= 2385for ac_dir in . "$srcdir"/.; do 2386 if test -f "$ac_dir/install-sh"; then 2387 ac_aux_dir=$ac_dir 2388 ac_install_sh="$ac_aux_dir/install-sh -c" 2389 break 2390 elif test -f "$ac_dir/install.sh"; then 2391 ac_aux_dir=$ac_dir 2392 ac_install_sh="$ac_aux_dir/install.sh -c" 2393 break 2394 elif test -f "$ac_dir/shtool"; then 2395 ac_aux_dir=$ac_dir 2396 ac_install_sh="$ac_aux_dir/shtool install -c" 2397 break 2398 fi 2399done 2400if test -z "$ac_aux_dir"; then 2401 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2402fi 2403 2404# These three variables are undocumented and unsupported, 2405# and are intended to be withdrawn in a future Autoconf release. 2406# They can cause serious problems if a builder's source tree is in a directory 2407# whose full name contains unusual characters. 2408ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2409ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2410ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2411 2412 2413 2414# Initialize Automake 2415am__api_version='1.15' 2416 2417# Find a good install program. We prefer a C program (faster), 2418# so one script is as good as another. But avoid the broken or 2419# incompatible versions: 2420# SysV /etc/install, /usr/sbin/install 2421# SunOS /usr/etc/install 2422# IRIX /sbin/install 2423# AIX /bin/install 2424# AmigaOS /C/install, which installs bootblocks on floppy discs 2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2428# OS/2's system install, which has a completely different semantic 2429# ./install, which can be erroneously created by make from ./install.sh. 2430# Reject install programs that cannot install multiple files. 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2432$as_echo_n "checking for a BSD-compatible install... " >&6; } 2433if test -z "$INSTALL"; then 2434if ${ac_cv_path_install+:} false; then : 2435 $as_echo_n "(cached) " >&6 2436else 2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2438for as_dir in $PATH 2439do 2440 IFS=$as_save_IFS 2441 test -z "$as_dir" && as_dir=. 2442 # Account for people who put trailing slashes in PATH elements. 2443case $as_dir/ in #(( 2444 ./ | .// | /[cC]/* | \ 2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2447 /usr/ucb/* ) ;; 2448 *) 2449 # OSF1 and SCO ODT 3.0 have their own names for install. 2450 # Don't use installbsd from OSF since it installs stuff as root 2451 # by default. 2452 for ac_prog in ginstall scoinst install; do 2453 for ac_exec_ext in '' $ac_executable_extensions; do 2454 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2455 if test $ac_prog = install && 2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2457 # AIX install. It has an incompatible calling convention. 2458 : 2459 elif test $ac_prog = install && 2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2461 # program-specific install script used by HP pwplus--don't use. 2462 : 2463 else 2464 rm -rf conftest.one conftest.two conftest.dir 2465 echo one > conftest.one 2466 echo two > conftest.two 2467 mkdir conftest.dir 2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2469 test -s conftest.one && test -s conftest.two && 2470 test -s conftest.dir/conftest.one && 2471 test -s conftest.dir/conftest.two 2472 then 2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2474 break 3 2475 fi 2476 fi 2477 fi 2478 done 2479 done 2480 ;; 2481esac 2482 2483 done 2484IFS=$as_save_IFS 2485 2486rm -rf conftest.one conftest.two conftest.dir 2487 2488fi 2489 if test "${ac_cv_path_install+set}" = set; then 2490 INSTALL=$ac_cv_path_install 2491 else 2492 # As a last resort, use the slow shell script. Don't cache a 2493 # value for INSTALL within a source directory, because that will 2494 # break other packages using the cache if that directory is 2495 # removed, or if the value is a relative name. 2496 INSTALL=$ac_install_sh 2497 fi 2498fi 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2500$as_echo "$INSTALL" >&6; } 2501 2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2503# It thinks the first close brace ends the variable substitution. 2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2505 2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2507 2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2509 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2511$as_echo_n "checking whether build environment is sane... " >&6; } 2512# Reject unsafe characters in $srcdir or the absolute working directory 2513# name. Accept space and tab only in the latter. 2514am_lf=' 2515' 2516case `pwd` in 2517 *[\\\"\#\$\&\'\`$am_lf]*) 2518 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2519esac 2520case $srcdir in 2521 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2522 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2523esac 2524 2525# Do 'set' in a subshell so we don't clobber the current shell's 2526# arguments. Must try -L first in case configure is actually a 2527# symlink; some systems play weird games with the mod time of symlinks 2528# (eg FreeBSD returns the mod time of the symlink's containing 2529# directory). 2530if ( 2531 am_has_slept=no 2532 for am_try in 1 2; do 2533 echo "timestamp, slept: $am_has_slept" > conftest.file 2534 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2535 if test "$*" = "X"; then 2536 # -L didn't work. 2537 set X `ls -t "$srcdir/configure" conftest.file` 2538 fi 2539 if test "$*" != "X $srcdir/configure conftest.file" \ 2540 && test "$*" != "X conftest.file $srcdir/configure"; then 2541 2542 # If neither matched, then we have a broken ls. This can happen 2543 # if, for instance, CONFIG_SHELL is bash and it inherits a 2544 # broken ls alias from the environment. This has actually 2545 # happened. Such a system could not be considered "sane". 2546 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2547 alias in your environment" "$LINENO" 5 2548 fi 2549 if test "$2" = conftest.file || test $am_try -eq 2; then 2550 break 2551 fi 2552 # Just in case. 2553 sleep 1 2554 am_has_slept=yes 2555 done 2556 test "$2" = conftest.file 2557 ) 2558then 2559 # Ok. 2560 : 2561else 2562 as_fn_error $? "newly created file is older than distributed files! 2563Check your system clock" "$LINENO" 5 2564fi 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2566$as_echo "yes" >&6; } 2567# If we didn't sleep, we still need to ensure time stamps of config.status and 2568# generated files are strictly newer. 2569am_sleep_pid= 2570if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2571 ( sleep 1 ) & 2572 am_sleep_pid=$! 2573fi 2574 2575rm -f conftest.file 2576 2577test "$program_prefix" != NONE && 2578 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2579# Use a double $ so make ignores it. 2580test "$program_suffix" != NONE && 2581 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2582# Double any \ or $. 2583# By default was `s,x,x', remove it if useless. 2584ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2585program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2586 2587# Expand $ac_aux_dir to an absolute path. 2588am_aux_dir=`cd "$ac_aux_dir" && pwd` 2589 2590if test x"${MISSING+set}" != xset; then 2591 case $am_aux_dir in 2592 *\ * | *\ *) 2593 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2594 *) 2595 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2596 esac 2597fi 2598# Use eval to expand $SHELL 2599if eval "$MISSING --is-lightweight"; then 2600 am_missing_run="$MISSING " 2601else 2602 am_missing_run= 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2604$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2605fi 2606 2607if test x"${install_sh+set}" != xset; then 2608 case $am_aux_dir in 2609 *\ * | *\ *) 2610 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2611 *) 2612 install_sh="\${SHELL} $am_aux_dir/install-sh" 2613 esac 2614fi 2615 2616# Installed binaries are usually stripped using 'strip' when the user 2617# run "make install-strip". However 'strip' might not be the right 2618# tool to use in cross-compilation environments, therefore Automake 2619# will honor the 'STRIP' environment variable to overrule this program. 2620if test "$cross_compiling" != no; then 2621 if test -n "$ac_tool_prefix"; then 2622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2623set dummy ${ac_tool_prefix}strip; ac_word=$2 2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2625$as_echo_n "checking for $ac_word... " >&6; } 2626if ${ac_cv_prog_STRIP+:} false; then : 2627 $as_echo_n "(cached) " >&6 2628else 2629 if test -n "$STRIP"; then 2630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2631else 2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633for as_dir in $PATH 2634do 2635 IFS=$as_save_IFS 2636 test -z "$as_dir" && as_dir=. 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2639 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2641 break 2 2642 fi 2643done 2644 done 2645IFS=$as_save_IFS 2646 2647fi 2648fi 2649STRIP=$ac_cv_prog_STRIP 2650if test -n "$STRIP"; then 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2652$as_echo "$STRIP" >&6; } 2653else 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2655$as_echo "no" >&6; } 2656fi 2657 2658 2659fi 2660if test -z "$ac_cv_prog_STRIP"; then 2661 ac_ct_STRIP=$STRIP 2662 # Extract the first word of "strip", so it can be a program name with args. 2663set dummy strip; ac_word=$2 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2665$as_echo_n "checking for $ac_word... " >&6; } 2666if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 if test -n "$ac_ct_STRIP"; then 2670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2671else 2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH 2674do 2675 IFS=$as_save_IFS 2676 test -z "$as_dir" && as_dir=. 2677 for ac_exec_ext in '' $ac_executable_extensions; do 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2679 ac_cv_prog_ac_ct_STRIP="strip" 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 break 2 2682 fi 2683done 2684 done 2685IFS=$as_save_IFS 2686 2687fi 2688fi 2689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2690if test -n "$ac_ct_STRIP"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2692$as_echo "$ac_ct_STRIP" >&6; } 2693else 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2695$as_echo "no" >&6; } 2696fi 2697 2698 if test "x$ac_ct_STRIP" = x; then 2699 STRIP=":" 2700 else 2701 case $cross_compiling:$ac_tool_warned in 2702yes:) 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2705ac_tool_warned=yes ;; 2706esac 2707 STRIP=$ac_ct_STRIP 2708 fi 2709else 2710 STRIP="$ac_cv_prog_STRIP" 2711fi 2712 2713fi 2714INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2715 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2717$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2718if test -z "$MKDIR_P"; then 2719 if ${ac_cv_path_mkdir+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_prog in mkdir gmkdir; do 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2730 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2731 'mkdir (GNU coreutils) '* | \ 2732 'mkdir (coreutils) '* | \ 2733 'mkdir (fileutils) '4.1*) 2734 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2735 break 3;; 2736 esac 2737 done 2738 done 2739 done 2740IFS=$as_save_IFS 2741 2742fi 2743 2744 test -d ./--version && rmdir ./--version 2745 if test "${ac_cv_path_mkdir+set}" = set; then 2746 MKDIR_P="$ac_cv_path_mkdir -p" 2747 else 2748 # As a last resort, use the slow shell script. Don't cache a 2749 # value for MKDIR_P within a source directory, because that will 2750 # break other packages using the cache if that directory is 2751 # removed, or if the value is a relative name. 2752 MKDIR_P="$ac_install_sh -d" 2753 fi 2754fi 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2756$as_echo "$MKDIR_P" >&6; } 2757 2758for ac_prog in gawk mawk nawk awk 2759do 2760 # Extract the first word of "$ac_prog", so it can be a program name with args. 2761set dummy $ac_prog; ac_word=$2 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2763$as_echo_n "checking for $ac_word... " >&6; } 2764if ${ac_cv_prog_AWK+:} false; then : 2765 $as_echo_n "(cached) " >&6 2766else 2767 if test -n "$AWK"; then 2768 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2769else 2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2771for as_dir in $PATH 2772do 2773 IFS=$as_save_IFS 2774 test -z "$as_dir" && as_dir=. 2775 for ac_exec_ext in '' $ac_executable_extensions; do 2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2777 ac_cv_prog_AWK="$ac_prog" 2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2779 break 2 2780 fi 2781done 2782 done 2783IFS=$as_save_IFS 2784 2785fi 2786fi 2787AWK=$ac_cv_prog_AWK 2788if test -n "$AWK"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2790$as_echo "$AWK" >&6; } 2791else 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793$as_echo "no" >&6; } 2794fi 2795 2796 2797 test -n "$AWK" && break 2798done 2799 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2801$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2802set x ${MAKE-make} 2803ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2804if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2805 $as_echo_n "(cached) " >&6 2806else 2807 cat >conftest.make <<\_ACEOF 2808SHELL = /bin/sh 2809all: 2810 @echo '@@@%%%=$(MAKE)=@@@%%%' 2811_ACEOF 2812# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2813case `${MAKE-make} -f conftest.make 2>/dev/null` in 2814 *@@@%%%=?*=@@@%%%*) 2815 eval ac_cv_prog_make_${ac_make}_set=yes;; 2816 *) 2817 eval ac_cv_prog_make_${ac_make}_set=no;; 2818esac 2819rm -f conftest.make 2820fi 2821if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2823$as_echo "yes" >&6; } 2824 SET_MAKE= 2825else 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2827$as_echo "no" >&6; } 2828 SET_MAKE="MAKE=${MAKE-make}" 2829fi 2830 2831rm -rf .tst 2>/dev/null 2832mkdir .tst 2>/dev/null 2833if test -d .tst; then 2834 am__leading_dot=. 2835else 2836 am__leading_dot=_ 2837fi 2838rmdir .tst 2>/dev/null 2839 2840# Check whether --enable-silent-rules was given. 2841if test "${enable_silent_rules+set}" = set; then : 2842 enableval=$enable_silent_rules; 2843fi 2844 2845case $enable_silent_rules in # ((( 2846 yes) AM_DEFAULT_VERBOSITY=0;; 2847 no) AM_DEFAULT_VERBOSITY=1;; 2848 *) AM_DEFAULT_VERBOSITY=1;; 2849esac 2850am_make=${MAKE-make} 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2852$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2853if ${am_cv_make_support_nested_variables+:} false; then : 2854 $as_echo_n "(cached) " >&6 2855else 2856 if $as_echo 'TRUE=$(BAR$(V)) 2857BAR0=false 2858BAR1=true 2859V=1 2860am__doit: 2861 @$(TRUE) 2862.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2863 am_cv_make_support_nested_variables=yes 2864else 2865 am_cv_make_support_nested_variables=no 2866fi 2867fi 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2869$as_echo "$am_cv_make_support_nested_variables" >&6; } 2870if test $am_cv_make_support_nested_variables = yes; then 2871 AM_V='$(V)' 2872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2873else 2874 AM_V=$AM_DEFAULT_VERBOSITY 2875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2876fi 2877AM_BACKSLASH='\' 2878 2879if test "`cd $srcdir && pwd`" != "`pwd`"; then 2880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2881 # is not polluted with repeated "-I." 2882 am__isrc=' -I$(srcdir)' 2883 # test to see if srcdir already configured 2884 if test -f $srcdir/config.status; then 2885 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2886 fi 2887fi 2888 2889# test whether we have cygpath 2890if test -z "$CYGPATH_W"; then 2891 if (cygpath --version) >/dev/null 2>/dev/null; then 2892 CYGPATH_W='cygpath -w' 2893 else 2894 CYGPATH_W=echo 2895 fi 2896fi 2897 2898 2899# Define the identity of the package. 2900 PACKAGE='libpciaccess' 2901 VERSION='0.14' 2902 2903 2904cat >>confdefs.h <<_ACEOF 2905#define PACKAGE "$PACKAGE" 2906_ACEOF 2907 2908 2909cat >>confdefs.h <<_ACEOF 2910#define VERSION "$VERSION" 2911_ACEOF 2912 2913# Some tools Automake needs. 2914 2915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2916 2917 2918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2919 2920 2921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2922 2923 2924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2925 2926 2927MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2928 2929# For better backward compatibility. To be removed once Automake 1.9.x 2930# dies out for good. For more background, see: 2931# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2932# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2933mkdir_p='$(MKDIR_P)' 2934 2935# We need awk for the "check" target (and possibly the TAP driver). The 2936# system "awk" is bad on some platforms. 2937# Always define AMTAR for backward compatibility. Yes, it's still used 2938# in the wild :-( We should find a proper way to deprecate it ... 2939AMTAR='$${TAR-tar}' 2940 2941 2942# We'll loop over all known methods to create a tar archive until one works. 2943_am_tools='gnutar pax cpio none' 2944 2945am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2946 2947 2948 2949 2950 2951 2952# POSIX will say in a future version that running "rm -f" with no argument 2953# is OK; and we want to be able to make that assumption in our Makefile 2954# recipes. So use an aggressive probe to check that the usage we want is 2955# actually supported "in the wild" to an acceptable degree. 2956# See automake bug#10828. 2957# To make any issue more visible, cause the running configure to be aborted 2958# by default if the 'rm' program in use doesn't match our expectations; the 2959# user can still override this though. 2960if rm -f && rm -fr && rm -rf; then : OK; else 2961 cat >&2 <<'END' 2962Oops! 2963 2964Your 'rm' program seems unable to run without file operands specified 2965on the command line, even when the '-f' option is present. This is contrary 2966to the behaviour of most rm programs out there, and not conforming with 2967the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2968 2969Please tell bug-automake@gnu.org about your system, including the value 2970of your $PATH and any error possibly output before this message. This 2971can help us improve future automake versions. 2972 2973END 2974 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2975 echo 'Configuration will proceed anyway, since you have set the' >&2 2976 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2977 echo >&2 2978 else 2979 cat >&2 <<'END' 2980Aborting the configuration process, to ensure you take notice of the issue. 2981 2982You can download and install GNU coreutils to get an 'rm' implementation 2983that behaves properly: <http://www.gnu.org/software/coreutils/>. 2984 2985If you want to complete the configuration process using your problematic 2986'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2987to "yes", and re-run configure. 2988 2989END 2990 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2991 fi 2992fi 2993 2994DEPDIR="${am__leading_dot}deps" 2995 2996ac_config_commands="$ac_config_commands depfiles" 2997 2998 2999am_make=${MAKE-make} 3000cat > confinc << 'END' 3001am__doit: 3002 @echo this is the am__doit target 3003.PHONY: am__doit 3004END 3005# If we don't find an include directive, just comment out the code. 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3007$as_echo_n "checking for style of include used by $am_make... " >&6; } 3008am__include="#" 3009am__quote= 3010_am_result=none 3011# First try GNU make style include. 3012echo "include confinc" > confmf 3013# Ignore all kinds of additional output from 'make'. 3014case `$am_make -s -f confmf 2> /dev/null` in #( 3015*the\ am__doit\ target*) 3016 am__include=include 3017 am__quote= 3018 _am_result=GNU 3019 ;; 3020esac 3021# Now try BSD make style include. 3022if test "$am__include" = "#"; then 3023 echo '.include "confinc"' > confmf 3024 case `$am_make -s -f confmf 2> /dev/null` in #( 3025 *the\ am__doit\ target*) 3026 am__include=.include 3027 am__quote="\"" 3028 _am_result=BSD 3029 ;; 3030 esac 3031fi 3032 3033 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3035$as_echo "$_am_result" >&6; } 3036rm -f confinc confmf 3037 3038# Check whether --enable-dependency-tracking was given. 3039if test "${enable_dependency_tracking+set}" = set; then : 3040 enableval=$enable_dependency_tracking; 3041fi 3042 3043if test "x$enable_dependency_tracking" != xno; then 3044 am_depcomp="$ac_aux_dir/depcomp" 3045 AMDEPBACKSLASH='\' 3046 am__nodep='_no' 3047fi 3048 if test "x$enable_dependency_tracking" != xno; then 3049 AMDEP_TRUE= 3050 AMDEP_FALSE='#' 3051else 3052 AMDEP_TRUE='#' 3053 AMDEP_FALSE= 3054fi 3055 3056 3057ac_ext=c 3058ac_cpp='$CPP $CPPFLAGS' 3059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3061ac_compiler_gnu=$ac_cv_c_compiler_gnu 3062if test -n "$ac_tool_prefix"; then 3063 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3064set dummy ${ac_tool_prefix}gcc; ac_word=$2 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3066$as_echo_n "checking for $ac_word... " >&6; } 3067if ${ac_cv_prog_CC+:} false; then : 3068 $as_echo_n "(cached) " >&6 3069else 3070 if test -n "$CC"; then 3071 ac_cv_prog_CC="$CC" # Let the user override the test. 3072else 3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3074for as_dir in $PATH 3075do 3076 IFS=$as_save_IFS 3077 test -z "$as_dir" && as_dir=. 3078 for ac_exec_ext in '' $ac_executable_extensions; do 3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3080 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3082 break 2 3083 fi 3084done 3085 done 3086IFS=$as_save_IFS 3087 3088fi 3089fi 3090CC=$ac_cv_prog_CC 3091if test -n "$CC"; then 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3093$as_echo "$CC" >&6; } 3094else 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3096$as_echo "no" >&6; } 3097fi 3098 3099 3100fi 3101if test -z "$ac_cv_prog_CC"; then 3102 ac_ct_CC=$CC 3103 # Extract the first word of "gcc", so it can be a program name with args. 3104set dummy gcc; ac_word=$2 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3106$as_echo_n "checking for $ac_word... " >&6; } 3107if ${ac_cv_prog_ac_ct_CC+:} false; then : 3108 $as_echo_n "(cached) " >&6 3109else 3110 if test -n "$ac_ct_CC"; then 3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3112else 3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3114for as_dir in $PATH 3115do 3116 IFS=$as_save_IFS 3117 test -z "$as_dir" && as_dir=. 3118 for ac_exec_ext in '' $ac_executable_extensions; do 3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3120 ac_cv_prog_ac_ct_CC="gcc" 3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3122 break 2 3123 fi 3124done 3125 done 3126IFS=$as_save_IFS 3127 3128fi 3129fi 3130ac_ct_CC=$ac_cv_prog_ac_ct_CC 3131if test -n "$ac_ct_CC"; then 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3133$as_echo "$ac_ct_CC" >&6; } 3134else 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136$as_echo "no" >&6; } 3137fi 3138 3139 if test "x$ac_ct_CC" = x; then 3140 CC="" 3141 else 3142 case $cross_compiling:$ac_tool_warned in 3143yes:) 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3146ac_tool_warned=yes ;; 3147esac 3148 CC=$ac_ct_CC 3149 fi 3150else 3151 CC="$ac_cv_prog_CC" 3152fi 3153 3154if test -z "$CC"; then 3155 if test -n "$ac_tool_prefix"; then 3156 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3157set dummy ${ac_tool_prefix}cc; ac_word=$2 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3159$as_echo_n "checking for $ac_word... " >&6; } 3160if ${ac_cv_prog_CC+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 if test -n "$CC"; then 3164 ac_cv_prog_CC="$CC" # Let the user override the test. 3165else 3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3167for as_dir in $PATH 3168do 3169 IFS=$as_save_IFS 3170 test -z "$as_dir" && as_dir=. 3171 for ac_exec_ext in '' $ac_executable_extensions; do 3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3173 ac_cv_prog_CC="${ac_tool_prefix}cc" 3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3175 break 2 3176 fi 3177done 3178 done 3179IFS=$as_save_IFS 3180 3181fi 3182fi 3183CC=$ac_cv_prog_CC 3184if test -n "$CC"; then 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3186$as_echo "$CC" >&6; } 3187else 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189$as_echo "no" >&6; } 3190fi 3191 3192 3193 fi 3194fi 3195if test -z "$CC"; then 3196 # Extract the first word of "cc", so it can be a program name with args. 3197set dummy cc; ac_word=$2 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3199$as_echo_n "checking for $ac_word... " >&6; } 3200if ${ac_cv_prog_CC+:} false; then : 3201 $as_echo_n "(cached) " >&6 3202else 3203 if test -n "$CC"; then 3204 ac_cv_prog_CC="$CC" # Let the user override the test. 3205else 3206 ac_prog_rejected=no 3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3208for as_dir in $PATH 3209do 3210 IFS=$as_save_IFS 3211 test -z "$as_dir" && as_dir=. 3212 for ac_exec_ext in '' $ac_executable_extensions; do 3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3214 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3215 ac_prog_rejected=yes 3216 continue 3217 fi 3218 ac_cv_prog_CC="cc" 3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3220 break 2 3221 fi 3222done 3223 done 3224IFS=$as_save_IFS 3225 3226if test $ac_prog_rejected = yes; then 3227 # We found a bogon in the path, so make sure we never use it. 3228 set dummy $ac_cv_prog_CC 3229 shift 3230 if test $# != 0; then 3231 # We chose a different compiler from the bogus one. 3232 # However, it has the same basename, so the bogon will be chosen 3233 # first if we set CC to just the basename; use the full file name. 3234 shift 3235 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3236 fi 3237fi 3238fi 3239fi 3240CC=$ac_cv_prog_CC 3241if test -n "$CC"; then 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3243$as_echo "$CC" >&6; } 3244else 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3246$as_echo "no" >&6; } 3247fi 3248 3249 3250fi 3251if test -z "$CC"; then 3252 if test -n "$ac_tool_prefix"; then 3253 for ac_prog in cl.exe 3254 do 3255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3256set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3258$as_echo_n "checking for $ac_word... " >&6; } 3259if ${ac_cv_prog_CC+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 if test -n "$CC"; then 3263 ac_cv_prog_CC="$CC" # Let the user override the test. 3264else 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266for as_dir in $PATH 3267do 3268 IFS=$as_save_IFS 3269 test -z "$as_dir" && as_dir=. 3270 for ac_exec_ext in '' $ac_executable_extensions; do 3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3272 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3274 break 2 3275 fi 3276done 3277 done 3278IFS=$as_save_IFS 3279 3280fi 3281fi 3282CC=$ac_cv_prog_CC 3283if test -n "$CC"; then 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3285$as_echo "$CC" >&6; } 3286else 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288$as_echo "no" >&6; } 3289fi 3290 3291 3292 test -n "$CC" && break 3293 done 3294fi 3295if test -z "$CC"; then 3296 ac_ct_CC=$CC 3297 for ac_prog in cl.exe 3298do 3299 # Extract the first word of "$ac_prog", so it can be a program name with args. 3300set dummy $ac_prog; ac_word=$2 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3302$as_echo_n "checking for $ac_word... " >&6; } 3303if ${ac_cv_prog_ac_ct_CC+:} false; then : 3304 $as_echo_n "(cached) " >&6 3305else 3306 if test -n "$ac_ct_CC"; then 3307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3308else 3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3310for as_dir in $PATH 3311do 3312 IFS=$as_save_IFS 3313 test -z "$as_dir" && as_dir=. 3314 for ac_exec_ext in '' $ac_executable_extensions; do 3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3316 ac_cv_prog_ac_ct_CC="$ac_prog" 3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3318 break 2 3319 fi 3320done 3321 done 3322IFS=$as_save_IFS 3323 3324fi 3325fi 3326ac_ct_CC=$ac_cv_prog_ac_ct_CC 3327if test -n "$ac_ct_CC"; then 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3329$as_echo "$ac_ct_CC" >&6; } 3330else 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3332$as_echo "no" >&6; } 3333fi 3334 3335 3336 test -n "$ac_ct_CC" && break 3337done 3338 3339 if test "x$ac_ct_CC" = x; then 3340 CC="" 3341 else 3342 case $cross_compiling:$ac_tool_warned in 3343yes:) 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3346ac_tool_warned=yes ;; 3347esac 3348 CC=$ac_ct_CC 3349 fi 3350fi 3351 3352fi 3353 3354 3355test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3357as_fn_error $? "no acceptable C compiler found in \$PATH 3358See \`config.log' for more details" "$LINENO" 5; } 3359 3360# Provide some information about the compiler. 3361$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3362set X $ac_compile 3363ac_compiler=$2 3364for ac_option in --version -v -V -qversion; do 3365 { { ac_try="$ac_compiler $ac_option >&5" 3366case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3371$as_echo "$ac_try_echo"; } >&5 3372 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3373 ac_status=$? 3374 if test -s conftest.err; then 3375 sed '10a\ 3376... rest of stderr output deleted ... 3377 10q' conftest.err >conftest.er1 3378 cat conftest.er1 >&5 3379 fi 3380 rm -f conftest.er1 conftest.err 3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3382 test $ac_status = 0; } 3383done 3384 3385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3386/* end confdefs.h. */ 3387 3388int 3389main () 3390{ 3391 3392 ; 3393 return 0; 3394} 3395_ACEOF 3396ac_clean_files_save=$ac_clean_files 3397ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3398# Try to create an executable without -o first, disregard a.out. 3399# It will help us diagnose broken compilers, and finding out an intuition 3400# of exeext. 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3402$as_echo_n "checking whether the C compiler works... " >&6; } 3403ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3404 3405# The possible output files: 3406ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3407 3408ac_rmfiles= 3409for ac_file in $ac_files 3410do 3411 case $ac_file in 3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3413 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3414 esac 3415done 3416rm -f $ac_rmfiles 3417 3418if { { ac_try="$ac_link_default" 3419case "(($ac_try" in 3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3421 *) ac_try_echo=$ac_try;; 3422esac 3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3424$as_echo "$ac_try_echo"; } >&5 3425 (eval "$ac_link_default") 2>&5 3426 ac_status=$? 3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3428 test $ac_status = 0; }; then : 3429 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3430# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3431# in a Makefile. We should not override ac_cv_exeext if it was cached, 3432# so that the user can short-circuit this test for compilers unknown to 3433# Autoconf. 3434for ac_file in $ac_files '' 3435do 3436 test -f "$ac_file" || continue 3437 case $ac_file in 3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3439 ;; 3440 [ab].out ) 3441 # We found the default executable, but exeext='' is most 3442 # certainly right. 3443 break;; 3444 *.* ) 3445 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3446 then :; else 3447 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3448 fi 3449 # We set ac_cv_exeext here because the later test for it is not 3450 # safe: cross compilers may not add the suffix if given an `-o' 3451 # argument, so we may need to know it at that point already. 3452 # Even if this section looks crufty: it has the advantage of 3453 # actually working. 3454 break;; 3455 * ) 3456 break;; 3457 esac 3458done 3459test "$ac_cv_exeext" = no && ac_cv_exeext= 3460 3461else 3462 ac_file='' 3463fi 3464if test -z "$ac_file"; then : 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3466$as_echo "no" >&6; } 3467$as_echo "$as_me: failed program was:" >&5 3468sed 's/^/| /' conftest.$ac_ext >&5 3469 3470{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3472as_fn_error 77 "C compiler cannot create executables 3473See \`config.log' for more details" "$LINENO" 5; } 3474else 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3476$as_echo "yes" >&6; } 3477fi 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3479$as_echo_n "checking for C compiler default output file name... " >&6; } 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3481$as_echo "$ac_file" >&6; } 3482ac_exeext=$ac_cv_exeext 3483 3484rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3485ac_clean_files=$ac_clean_files_save 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3487$as_echo_n "checking for suffix of executables... " >&6; } 3488if { { ac_try="$ac_link" 3489case "(($ac_try" in 3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3491 *) ac_try_echo=$ac_try;; 3492esac 3493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3494$as_echo "$ac_try_echo"; } >&5 3495 (eval "$ac_link") 2>&5 3496 ac_status=$? 3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3498 test $ac_status = 0; }; then : 3499 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3500# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3501# work properly (i.e., refer to `conftest.exe'), while it won't with 3502# `rm'. 3503for ac_file in conftest.exe conftest conftest.*; do 3504 test -f "$ac_file" || continue 3505 case $ac_file in 3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3508 break;; 3509 * ) break;; 3510 esac 3511done 3512else 3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3515as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3516See \`config.log' for more details" "$LINENO" 5; } 3517fi 3518rm -f conftest conftest$ac_cv_exeext 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3520$as_echo "$ac_cv_exeext" >&6; } 3521 3522rm -f conftest.$ac_ext 3523EXEEXT=$ac_cv_exeext 3524ac_exeext=$EXEEXT 3525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527#include <stdio.h> 3528int 3529main () 3530{ 3531FILE *f = fopen ("conftest.out", "w"); 3532 return ferror (f) || fclose (f) != 0; 3533 3534 ; 3535 return 0; 3536} 3537_ACEOF 3538ac_clean_files="$ac_clean_files conftest.out" 3539# Check that the compiler produces executables we can run. If not, either 3540# the compiler is broken, or we cross compile. 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3542$as_echo_n "checking whether we are cross compiling... " >&6; } 3543if test "$cross_compiling" != yes; then 3544 { { ac_try="$ac_link" 3545case "(($ac_try" in 3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3547 *) ac_try_echo=$ac_try;; 3548esac 3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3550$as_echo "$ac_try_echo"; } >&5 3551 (eval "$ac_link") 2>&5 3552 ac_status=$? 3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3554 test $ac_status = 0; } 3555 if { ac_try='./conftest$ac_cv_exeext' 3556 { { case "(($ac_try" in 3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3558 *) ac_try_echo=$ac_try;; 3559esac 3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3561$as_echo "$ac_try_echo"; } >&5 3562 (eval "$ac_try") 2>&5 3563 ac_status=$? 3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3565 test $ac_status = 0; }; }; then 3566 cross_compiling=no 3567 else 3568 if test "$cross_compiling" = maybe; then 3569 cross_compiling=yes 3570 else 3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3573as_fn_error $? "cannot run C compiled programs. 3574If you meant to cross compile, use \`--host'. 3575See \`config.log' for more details" "$LINENO" 5; } 3576 fi 3577 fi 3578fi 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3580$as_echo "$cross_compiling" >&6; } 3581 3582rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3583ac_clean_files=$ac_clean_files_save 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3585$as_echo_n "checking for suffix of object files... " >&6; } 3586if ${ac_cv_objext+:} false; then : 3587 $as_echo_n "(cached) " >&6 3588else 3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3590/* end confdefs.h. */ 3591 3592int 3593main () 3594{ 3595 3596 ; 3597 return 0; 3598} 3599_ACEOF 3600rm -f conftest.o conftest.obj 3601if { { ac_try="$ac_compile" 3602case "(($ac_try" in 3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3604 *) ac_try_echo=$ac_try;; 3605esac 3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3607$as_echo "$ac_try_echo"; } >&5 3608 (eval "$ac_compile") 2>&5 3609 ac_status=$? 3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3611 test $ac_status = 0; }; then : 3612 for ac_file in conftest.o conftest.obj conftest.*; do 3613 test -f "$ac_file" || continue; 3614 case $ac_file in 3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3617 break;; 3618 esac 3619done 3620else 3621 $as_echo "$as_me: failed program was:" >&5 3622sed 's/^/| /' conftest.$ac_ext >&5 3623 3624{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3626as_fn_error $? "cannot compute suffix of object files: cannot compile 3627See \`config.log' for more details" "$LINENO" 5; } 3628fi 3629rm -f conftest.$ac_cv_objext conftest.$ac_ext 3630fi 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3632$as_echo "$ac_cv_objext" >&6; } 3633OBJEXT=$ac_cv_objext 3634ac_objext=$OBJEXT 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3636$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3637if ${ac_cv_c_compiler_gnu+:} false; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641/* end confdefs.h. */ 3642 3643int 3644main () 3645{ 3646#ifndef __GNUC__ 3647 choke me 3648#endif 3649 3650 ; 3651 return 0; 3652} 3653_ACEOF 3654if ac_fn_c_try_compile "$LINENO"; then : 3655 ac_compiler_gnu=yes 3656else 3657 ac_compiler_gnu=no 3658fi 3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3660ac_cv_c_compiler_gnu=$ac_compiler_gnu 3661 3662fi 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3664$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3665if test $ac_compiler_gnu = yes; then 3666 GCC=yes 3667else 3668 GCC= 3669fi 3670ac_test_CFLAGS=${CFLAGS+set} 3671ac_save_CFLAGS=$CFLAGS 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3673$as_echo_n "checking whether $CC accepts -g... " >&6; } 3674if ${ac_cv_prog_cc_g+:} false; then : 3675 $as_echo_n "(cached) " >&6 3676else 3677 ac_save_c_werror_flag=$ac_c_werror_flag 3678 ac_c_werror_flag=yes 3679 ac_cv_prog_cc_g=no 3680 CFLAGS="-g" 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683 3684int 3685main () 3686{ 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692if ac_fn_c_try_compile "$LINENO"; then : 3693 ac_cv_prog_cc_g=yes 3694else 3695 CFLAGS="" 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699int 3700main () 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO"; then : 3708 3709else 3710 ac_c_werror_flag=$ac_save_c_werror_flag 3711 CFLAGS="-g" 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723if ac_fn_c_try_compile "$LINENO"; then : 3724 ac_cv_prog_cc_g=yes 3725fi 3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3727fi 3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3729fi 3730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3731 ac_c_werror_flag=$ac_save_c_werror_flag 3732fi 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3734$as_echo "$ac_cv_prog_cc_g" >&6; } 3735if test "$ac_test_CFLAGS" = set; then 3736 CFLAGS=$ac_save_CFLAGS 3737elif test $ac_cv_prog_cc_g = yes; then 3738 if test "$GCC" = yes; then 3739 CFLAGS="-g -O2" 3740 else 3741 CFLAGS="-g" 3742 fi 3743else 3744 if test "$GCC" = yes; then 3745 CFLAGS="-O2" 3746 else 3747 CFLAGS= 3748 fi 3749fi 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3751$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3752if ${ac_cv_prog_cc_c89+:} false; then : 3753 $as_echo_n "(cached) " >&6 3754else 3755 ac_cv_prog_cc_c89=no 3756ac_save_CC=$CC 3757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3758/* end confdefs.h. */ 3759#include <stdarg.h> 3760#include <stdio.h> 3761struct stat; 3762/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3763struct buf { int x; }; 3764FILE * (*rcsopen) (struct buf *, struct stat *, int); 3765static char *e (p, i) 3766 char **p; 3767 int i; 3768{ 3769 return p[i]; 3770} 3771static char *f (char * (*g) (char **, int), char **p, ...) 3772{ 3773 char *s; 3774 va_list v; 3775 va_start (v,p); 3776 s = g (p, va_arg (v,int)); 3777 va_end (v); 3778 return s; 3779} 3780 3781/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3782 function prototypes and stuff, but not '\xHH' hex character constants. 3783 These don't provoke an error unfortunately, instead are silently treated 3784 as 'x'. The following induces an error, until -std is added to get 3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3786 array size at least. It's necessary to write '\x00'==0 to get something 3787 that's true only with -std. */ 3788int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3789 3790/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3791 inside strings and character constants. */ 3792#define FOO(x) 'x' 3793int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3794 3795int test (int i, double x); 3796struct s1 {int (*f) (int a);}; 3797struct s2 {int (*f) (double a);}; 3798int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3799int argc; 3800char **argv; 3801int 3802main () 3803{ 3804return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3805 ; 3806 return 0; 3807} 3808_ACEOF 3809for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3811do 3812 CC="$ac_save_CC $ac_arg" 3813 if ac_fn_c_try_compile "$LINENO"; then : 3814 ac_cv_prog_cc_c89=$ac_arg 3815fi 3816rm -f core conftest.err conftest.$ac_objext 3817 test "x$ac_cv_prog_cc_c89" != "xno" && break 3818done 3819rm -f conftest.$ac_ext 3820CC=$ac_save_CC 3821 3822fi 3823# AC_CACHE_VAL 3824case "x$ac_cv_prog_cc_c89" in 3825 x) 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3827$as_echo "none needed" >&6; } ;; 3828 xno) 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3830$as_echo "unsupported" >&6; } ;; 3831 *) 3832 CC="$CC $ac_cv_prog_cc_c89" 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3834$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3835esac 3836if test "x$ac_cv_prog_cc_c89" != xno; then : 3837 3838fi 3839 3840ac_ext=c 3841ac_cpp='$CPP $CPPFLAGS' 3842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3844ac_compiler_gnu=$ac_cv_c_compiler_gnu 3845 3846ac_ext=c 3847ac_cpp='$CPP $CPPFLAGS' 3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3850ac_compiler_gnu=$ac_cv_c_compiler_gnu 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3852$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3853if ${am_cv_prog_cc_c_o+:} false; then : 3854 $as_echo_n "(cached) " >&6 3855else 3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3857/* end confdefs.h. */ 3858 3859int 3860main () 3861{ 3862 3863 ; 3864 return 0; 3865} 3866_ACEOF 3867 # Make sure it works both with $CC and with simple cc. 3868 # Following AC_PROG_CC_C_O, we do the test twice because some 3869 # compilers refuse to overwrite an existing .o file with -o, 3870 # though they will create one. 3871 am_cv_prog_cc_c_o=yes 3872 for am_i in 1 2; do 3873 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3874 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3875 ac_status=$? 3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3877 (exit $ac_status); } \ 3878 && test -f conftest2.$ac_objext; then 3879 : OK 3880 else 3881 am_cv_prog_cc_c_o=no 3882 break 3883 fi 3884 done 3885 rm -f core conftest* 3886 unset am_i 3887fi 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3889$as_echo "$am_cv_prog_cc_c_o" >&6; } 3890if test "$am_cv_prog_cc_c_o" != yes; then 3891 # Losing compiler, so override with the script. 3892 # FIXME: It is wrong to rewrite CC. 3893 # But if we don't then we get into trouble of one sort or another. 3894 # A longer-term fix would be to have automake use am__CC in this case, 3895 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3896 CC="$am_aux_dir/compile $CC" 3897fi 3898ac_ext=c 3899ac_cpp='$CPP $CPPFLAGS' 3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3902ac_compiler_gnu=$ac_cv_c_compiler_gnu 3903 3904 3905depcc="$CC" am_compiler_list= 3906 3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3908$as_echo_n "checking dependency style of $depcc... " >&6; } 3909if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3910 $as_echo_n "(cached) " >&6 3911else 3912 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3913 # We make a subdir and do the tests there. Otherwise we can end up 3914 # making bogus files that we don't know about and never remove. For 3915 # instance it was reported that on HP-UX the gcc test will end up 3916 # making a dummy file named 'D' -- because '-MD' means "put the output 3917 # in D". 3918 rm -rf conftest.dir 3919 mkdir conftest.dir 3920 # Copy depcomp to subdir because otherwise we won't find it if we're 3921 # using a relative directory. 3922 cp "$am_depcomp" conftest.dir 3923 cd conftest.dir 3924 # We will build objects and dependencies in a subdirectory because 3925 # it helps to detect inapplicable dependency modes. For instance 3926 # both Tru64's cc and ICC support -MD to output dependencies as a 3927 # side effect of compilation, but ICC will put the dependencies in 3928 # the current directory while Tru64 will put them in the object 3929 # directory. 3930 mkdir sub 3931 3932 am_cv_CC_dependencies_compiler_type=none 3933 if test "$am_compiler_list" = ""; then 3934 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3935 fi 3936 am__universal=false 3937 case " $depcc " in #( 3938 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3939 esac 3940 3941 for depmode in $am_compiler_list; do 3942 # Setup a source with many dependencies, because some compilers 3943 # like to wrap large dependency lists on column 80 (with \), and 3944 # we should not choose a depcomp mode which is confused by this. 3945 # 3946 # We need to recreate these files for each test, as the compiler may 3947 # overwrite some of them when testing with obscure command lines. 3948 # This happens at least with the AIX C compiler. 3949 : > sub/conftest.c 3950 for i in 1 2 3 4 5 6; do 3951 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3952 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3953 # Solaris 10 /bin/sh. 3954 echo '/* dummy */' > sub/conftst$i.h 3955 done 3956 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3957 3958 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3959 # mode. It turns out that the SunPro C++ compiler does not properly 3960 # handle '-M -o', and we need to detect this. Also, some Intel 3961 # versions had trouble with output in subdirs. 3962 am__obj=sub/conftest.${OBJEXT-o} 3963 am__minus_obj="-o $am__obj" 3964 case $depmode in 3965 gcc) 3966 # This depmode causes a compiler race in universal mode. 3967 test "$am__universal" = false || continue 3968 ;; 3969 nosideeffect) 3970 # After this tag, mechanisms are not by side-effect, so they'll 3971 # only be used when explicitly requested. 3972 if test "x$enable_dependency_tracking" = xyes; then 3973 continue 3974 else 3975 break 3976 fi 3977 ;; 3978 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3979 # This compiler won't grok '-c -o', but also, the minuso test has 3980 # not run yet. These depmodes are late enough in the game, and 3981 # so weak that their functioning should not be impacted. 3982 am__obj=conftest.${OBJEXT-o} 3983 am__minus_obj= 3984 ;; 3985 none) break ;; 3986 esac 3987 if depmode=$depmode \ 3988 source=sub/conftest.c object=$am__obj \ 3989 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3990 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3991 >/dev/null 2>conftest.err && 3992 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3993 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3994 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3995 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3996 # icc doesn't choke on unknown options, it will just issue warnings 3997 # or remarks (even with -Werror). So we grep stderr for any message 3998 # that says an option was ignored or not supported. 3999 # When given -MP, icc 7.0 and 7.1 complain thusly: 4000 # icc: Command line warning: ignoring option '-M'; no argument required 4001 # The diagnosis changed in icc 8.0: 4002 # icc: Command line remark: option '-MP' not supported 4003 if (grep 'ignoring option' conftest.err || 4004 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4005 am_cv_CC_dependencies_compiler_type=$depmode 4006 break 4007 fi 4008 fi 4009 done 4010 4011 cd .. 4012 rm -rf conftest.dir 4013else 4014 am_cv_CC_dependencies_compiler_type=none 4015fi 4016 4017fi 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4019$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4020CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4021 4022 if 4023 test "x$enable_dependency_tracking" != xno \ 4024 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4025 am__fastdepCC_TRUE= 4026 am__fastdepCC_FALSE='#' 4027else 4028 am__fastdepCC_TRUE='#' 4029 am__fastdepCC_FALSE= 4030fi 4031 4032 4033 4034ac_ext=c 4035ac_cpp='$CPP $CPPFLAGS' 4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4038ac_compiler_gnu=$ac_cv_c_compiler_gnu 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4040$as_echo_n "checking how to run the C preprocessor... " >&6; } 4041# On Suns, sometimes $CPP names a directory. 4042if test -n "$CPP" && test -d "$CPP"; then 4043 CPP= 4044fi 4045if test -z "$CPP"; then 4046 if ${ac_cv_prog_CPP+:} false; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 # Double quotes because CPP needs to be expanded 4050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4051 do 4052 ac_preproc_ok=false 4053for ac_c_preproc_warn_flag in '' yes 4054do 4055 # Use a header file that comes with gcc, so configuring glibc 4056 # with a fresh cross-compiler works. 4057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4058 # <limits.h> exists even on freestanding compilers. 4059 # On the NeXT, cc -E runs the code through the compiler's parser, 4060 # not just through cpp. "Syntax error" is here to catch this case. 4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4062/* end confdefs.h. */ 4063#ifdef __STDC__ 4064# include <limits.h> 4065#else 4066# include <assert.h> 4067#endif 4068 Syntax error 4069_ACEOF 4070if ac_fn_c_try_cpp "$LINENO"; then : 4071 4072else 4073 # Broken: fails on valid input. 4074continue 4075fi 4076rm -f conftest.err conftest.i conftest.$ac_ext 4077 4078 # OK, works on sane cases. Now check whether nonexistent headers 4079 # can be detected and how. 4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4081/* end confdefs.h. */ 4082#include <ac_nonexistent.h> 4083_ACEOF 4084if ac_fn_c_try_cpp "$LINENO"; then : 4085 # Broken: success on invalid input. 4086continue 4087else 4088 # Passes both tests. 4089ac_preproc_ok=: 4090break 4091fi 4092rm -f conftest.err conftest.i conftest.$ac_ext 4093 4094done 4095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4096rm -f conftest.i conftest.err conftest.$ac_ext 4097if $ac_preproc_ok; then : 4098 break 4099fi 4100 4101 done 4102 ac_cv_prog_CPP=$CPP 4103 4104fi 4105 CPP=$ac_cv_prog_CPP 4106else 4107 ac_cv_prog_CPP=$CPP 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4110$as_echo "$CPP" >&6; } 4111ac_preproc_ok=false 4112for ac_c_preproc_warn_flag in '' yes 4113do 4114 # Use a header file that comes with gcc, so configuring glibc 4115 # with a fresh cross-compiler works. 4116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4117 # <limits.h> exists even on freestanding compilers. 4118 # On the NeXT, cc -E runs the code through the compiler's parser, 4119 # not just through cpp. "Syntax error" is here to catch this case. 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122#ifdef __STDC__ 4123# include <limits.h> 4124#else 4125# include <assert.h> 4126#endif 4127 Syntax error 4128_ACEOF 4129if ac_fn_c_try_cpp "$LINENO"; then : 4130 4131else 4132 # Broken: fails on valid input. 4133continue 4134fi 4135rm -f conftest.err conftest.i conftest.$ac_ext 4136 4137 # OK, works on sane cases. Now check whether nonexistent headers 4138 # can be detected and how. 4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4140/* end confdefs.h. */ 4141#include <ac_nonexistent.h> 4142_ACEOF 4143if ac_fn_c_try_cpp "$LINENO"; then : 4144 # Broken: success on invalid input. 4145continue 4146else 4147 # Passes both tests. 4148ac_preproc_ok=: 4149break 4150fi 4151rm -f conftest.err conftest.i conftest.$ac_ext 4152 4153done 4154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4155rm -f conftest.i conftest.err conftest.$ac_ext 4156if $ac_preproc_ok; then : 4157 4158else 4159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4161as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4162See \`config.log' for more details" "$LINENO" 5; } 4163fi 4164 4165ac_ext=c 4166ac_cpp='$CPP $CPPFLAGS' 4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4169ac_compiler_gnu=$ac_cv_c_compiler_gnu 4170 4171 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4173$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4174if ${ac_cv_path_GREP+:} false; then : 4175 $as_echo_n "(cached) " >&6 4176else 4177 if test -z "$GREP"; then 4178 ac_path_GREP_found=false 4179 # Loop through the user's path and test for each of PROGNAME-LIST 4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4181for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4182do 4183 IFS=$as_save_IFS 4184 test -z "$as_dir" && as_dir=. 4185 for ac_prog in grep ggrep; do 4186 for ac_exec_ext in '' $ac_executable_extensions; do 4187 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4188 as_fn_executable_p "$ac_path_GREP" || continue 4189# Check for GNU ac_path_GREP and select it if it is found. 4190 # Check for GNU $ac_path_GREP 4191case `"$ac_path_GREP" --version 2>&1` in 4192*GNU*) 4193 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4194*) 4195 ac_count=0 4196 $as_echo_n 0123456789 >"conftest.in" 4197 while : 4198 do 4199 cat "conftest.in" "conftest.in" >"conftest.tmp" 4200 mv "conftest.tmp" "conftest.in" 4201 cp "conftest.in" "conftest.nl" 4202 $as_echo 'GREP' >> "conftest.nl" 4203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4205 as_fn_arith $ac_count + 1 && ac_count=$as_val 4206 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4207 # Best one so far, save it but keep looking for a better one 4208 ac_cv_path_GREP="$ac_path_GREP" 4209 ac_path_GREP_max=$ac_count 4210 fi 4211 # 10*(2^10) chars as input seems more than enough 4212 test $ac_count -gt 10 && break 4213 done 4214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4215esac 4216 4217 $ac_path_GREP_found && break 3 4218 done 4219 done 4220 done 4221IFS=$as_save_IFS 4222 if test -z "$ac_cv_path_GREP"; then 4223 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4224 fi 4225else 4226 ac_cv_path_GREP=$GREP 4227fi 4228 4229fi 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4231$as_echo "$ac_cv_path_GREP" >&6; } 4232 GREP="$ac_cv_path_GREP" 4233 4234 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4236$as_echo_n "checking for egrep... " >&6; } 4237if ${ac_cv_path_EGREP+:} false; then : 4238 $as_echo_n "(cached) " >&6 4239else 4240 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4241 then ac_cv_path_EGREP="$GREP -E" 4242 else 4243 if test -z "$EGREP"; then 4244 ac_path_EGREP_found=false 4245 # Loop through the user's path and test for each of PROGNAME-LIST 4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_prog in egrep; do 4252 for ac_exec_ext in '' $ac_executable_extensions; do 4253 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4254 as_fn_executable_p "$ac_path_EGREP" || continue 4255# Check for GNU ac_path_EGREP and select it if it is found. 4256 # Check for GNU $ac_path_EGREP 4257case `"$ac_path_EGREP" --version 2>&1` in 4258*GNU*) 4259 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4260*) 4261 ac_count=0 4262 $as_echo_n 0123456789 >"conftest.in" 4263 while : 4264 do 4265 cat "conftest.in" "conftest.in" >"conftest.tmp" 4266 mv "conftest.tmp" "conftest.in" 4267 cp "conftest.in" "conftest.nl" 4268 $as_echo 'EGREP' >> "conftest.nl" 4269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4271 as_fn_arith $ac_count + 1 && ac_count=$as_val 4272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4273 # Best one so far, save it but keep looking for a better one 4274 ac_cv_path_EGREP="$ac_path_EGREP" 4275 ac_path_EGREP_max=$ac_count 4276 fi 4277 # 10*(2^10) chars as input seems more than enough 4278 test $ac_count -gt 10 && break 4279 done 4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4281esac 4282 4283 $ac_path_EGREP_found && break 3 4284 done 4285 done 4286 done 4287IFS=$as_save_IFS 4288 if test -z "$ac_cv_path_EGREP"; then 4289 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4290 fi 4291else 4292 ac_cv_path_EGREP=$EGREP 4293fi 4294 4295 fi 4296fi 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4298$as_echo "$ac_cv_path_EGREP" >&6; } 4299 EGREP="$ac_cv_path_EGREP" 4300 4301 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4303$as_echo_n "checking for ANSI C header files... " >&6; } 4304if ${ac_cv_header_stdc+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309#include <stdlib.h> 4310#include <stdarg.h> 4311#include <string.h> 4312#include <float.h> 4313 4314int 4315main () 4316{ 4317 4318 ; 4319 return 0; 4320} 4321_ACEOF 4322if ac_fn_c_try_compile "$LINENO"; then : 4323 ac_cv_header_stdc=yes 4324else 4325 ac_cv_header_stdc=no 4326fi 4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4328 4329if test $ac_cv_header_stdc = yes; then 4330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4332/* end confdefs.h. */ 4333#include <string.h> 4334 4335_ACEOF 4336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4337 $EGREP "memchr" >/dev/null 2>&1; then : 4338 4339else 4340 ac_cv_header_stdc=no 4341fi 4342rm -f conftest* 4343 4344fi 4345 4346if test $ac_cv_header_stdc = yes; then 4347 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349/* end confdefs.h. */ 4350#include <stdlib.h> 4351 4352_ACEOF 4353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4354 $EGREP "free" >/dev/null 2>&1; then : 4355 4356else 4357 ac_cv_header_stdc=no 4358fi 4359rm -f conftest* 4360 4361fi 4362 4363if test $ac_cv_header_stdc = yes; then 4364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4365 if test "$cross_compiling" = yes; then : 4366 : 4367else 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369/* end confdefs.h. */ 4370#include <ctype.h> 4371#include <stdlib.h> 4372#if ((' ' & 0x0FF) == 0x020) 4373# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4374# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4375#else 4376# define ISLOWER(c) \ 4377 (('a' <= (c) && (c) <= 'i') \ 4378 || ('j' <= (c) && (c) <= 'r') \ 4379 || ('s' <= (c) && (c) <= 'z')) 4380# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4381#endif 4382 4383#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4384int 4385main () 4386{ 4387 int i; 4388 for (i = 0; i < 256; i++) 4389 if (XOR (islower (i), ISLOWER (i)) 4390 || toupper (i) != TOUPPER (i)) 4391 return 2; 4392 return 0; 4393} 4394_ACEOF 4395if ac_fn_c_try_run "$LINENO"; then : 4396 4397else 4398 ac_cv_header_stdc=no 4399fi 4400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4401 conftest.$ac_objext conftest.beam conftest.$ac_ext 4402fi 4403 4404fi 4405fi 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4407$as_echo "$ac_cv_header_stdc" >&6; } 4408if test $ac_cv_header_stdc = yes; then 4409 4410$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4411 4412fi 4413 4414# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4415for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4416 inttypes.h stdint.h unistd.h 4417do : 4418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4419ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4420" 4421if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4422 cat >>confdefs.h <<_ACEOF 4423#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4424_ACEOF 4425 4426fi 4427 4428done 4429 4430 4431 4432 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4433if test "x$ac_cv_header_minix_config_h" = xyes; then : 4434 MINIX=yes 4435else 4436 MINIX= 4437fi 4438 4439 4440 if test "$MINIX" = yes; then 4441 4442$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4443 4444 4445$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4446 4447 4448$as_echo "#define _MINIX 1" >>confdefs.h 4449 4450 fi 4451 4452 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4454$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4455if ${ac_cv_safe_to_define___extensions__+:} false; then : 4456 $as_echo_n "(cached) " >&6 4457else 4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4459/* end confdefs.h. */ 4460 4461# define __EXTENSIONS__ 1 4462 $ac_includes_default 4463int 4464main () 4465{ 4466 4467 ; 4468 return 0; 4469} 4470_ACEOF 4471if ac_fn_c_try_compile "$LINENO"; then : 4472 ac_cv_safe_to_define___extensions__=yes 4473else 4474 ac_cv_safe_to_define___extensions__=no 4475fi 4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4477fi 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4479$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4480 test $ac_cv_safe_to_define___extensions__ = yes && 4481 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4482 4483 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4484 4485 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4486 4487 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4488 4489 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4490 4491 4492 4493# Initialize libtool 4494case `pwd` in 4495 *\ * | *\ *) 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4497$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4498esac 4499 4500 4501 4502macro_version='2.4.6' 4503macro_revision='2.4.6' 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517ltmain=$ac_aux_dir/ltmain.sh 4518 4519# Make sure we can run config.sub. 4520$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4521 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4522 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4524$as_echo_n "checking build system type... " >&6; } 4525if ${ac_cv_build+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 ac_build_alias=$build_alias 4529test "x$ac_build_alias" = x && 4530 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4531test "x$ac_build_alias" = x && 4532 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4533ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4535 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4538$as_echo "$ac_cv_build" >&6; } 4539case $ac_cv_build in 4540*-*-*) ;; 4541*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4542esac 4543build=$ac_cv_build 4544ac_save_IFS=$IFS; IFS='-' 4545set x $ac_cv_build 4546shift 4547build_cpu=$1 4548build_vendor=$2 4549shift; shift 4550# Remember, the first character of IFS is used to create $*, 4551# except with old shells: 4552build_os=$* 4553IFS=$ac_save_IFS 4554case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4555 4556 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4558$as_echo_n "checking host system type... " >&6; } 4559if ${ac_cv_host+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561else 4562 if test "x$host_alias" = x; then 4563 ac_cv_host=$ac_cv_build 4564else 4565 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4567fi 4568 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4571$as_echo "$ac_cv_host" >&6; } 4572case $ac_cv_host in 4573*-*-*) ;; 4574*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4575esac 4576host=$ac_cv_host 4577ac_save_IFS=$IFS; IFS='-' 4578set x $ac_cv_host 4579shift 4580host_cpu=$1 4581host_vendor=$2 4582shift; shift 4583# Remember, the first character of IFS is used to create $*, 4584# except with old shells: 4585host_os=$* 4586IFS=$ac_save_IFS 4587case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4588 4589 4590# Backslashify metacharacters that are still active within 4591# double-quoted strings. 4592sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4593 4594# Same as above, but do not quote variable references. 4595double_quote_subst='s/\(["`\\]\)/\\\1/g' 4596 4597# Sed substitution to delay expansion of an escaped shell variable in a 4598# double_quote_subst'ed string. 4599delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4600 4601# Sed substitution to delay expansion of an escaped single quote. 4602delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4603 4604# Sed substitution to avoid accidental globbing in evaled expressions 4605no_glob_subst='s/\*/\\\*/g' 4606 4607ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4608ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4609ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4610 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4612$as_echo_n "checking how to print strings... " >&6; } 4613# Test print first, because it will be a builtin if present. 4614if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4615 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4616 ECHO='print -r --' 4617elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4618 ECHO='printf %s\n' 4619else 4620 # Use this function as a fallback that always works. 4621 func_fallback_echo () 4622 { 4623 eval 'cat <<_LTECHO_EOF 4624$1 4625_LTECHO_EOF' 4626 } 4627 ECHO='func_fallback_echo' 4628fi 4629 4630# func_echo_all arg... 4631# Invoke $ECHO with all args, space-separated. 4632func_echo_all () 4633{ 4634 $ECHO "" 4635} 4636 4637case $ECHO in 4638 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4639$as_echo "printf" >&6; } ;; 4640 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4641$as_echo "print -r" >&6; } ;; 4642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4643$as_echo "cat" >&6; } ;; 4644esac 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4660$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4661if ${ac_cv_path_SED+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4665 for ac_i in 1 2 3 4 5 6 7; do 4666 ac_script="$ac_script$as_nl$ac_script" 4667 done 4668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4669 { ac_script=; unset ac_script;} 4670 if test -z "$SED"; then 4671 ac_path_SED_found=false 4672 # Loop through the user's path and test for each of PROGNAME-LIST 4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4674for as_dir in $PATH 4675do 4676 IFS=$as_save_IFS 4677 test -z "$as_dir" && as_dir=. 4678 for ac_prog in sed gsed; do 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4681 as_fn_executable_p "$ac_path_SED" || continue 4682# Check for GNU ac_path_SED and select it if it is found. 4683 # Check for GNU $ac_path_SED 4684case `"$ac_path_SED" --version 2>&1` in 4685*GNU*) 4686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4687*) 4688 ac_count=0 4689 $as_echo_n 0123456789 >"conftest.in" 4690 while : 4691 do 4692 cat "conftest.in" "conftest.in" >"conftest.tmp" 4693 mv "conftest.tmp" "conftest.in" 4694 cp "conftest.in" "conftest.nl" 4695 $as_echo '' >> "conftest.nl" 4696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4698 as_fn_arith $ac_count + 1 && ac_count=$as_val 4699 if test $ac_count -gt ${ac_path_SED_max-0}; then 4700 # Best one so far, save it but keep looking for a better one 4701 ac_cv_path_SED="$ac_path_SED" 4702 ac_path_SED_max=$ac_count 4703 fi 4704 # 10*(2^10) chars as input seems more than enough 4705 test $ac_count -gt 10 && break 4706 done 4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4708esac 4709 4710 $ac_path_SED_found && break 3 4711 done 4712 done 4713 done 4714IFS=$as_save_IFS 4715 if test -z "$ac_cv_path_SED"; then 4716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4717 fi 4718else 4719 ac_cv_path_SED=$SED 4720fi 4721 4722fi 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4724$as_echo "$ac_cv_path_SED" >&6; } 4725 SED="$ac_cv_path_SED" 4726 rm -f conftest.sed 4727 4728test -z "$SED" && SED=sed 4729Xsed="$SED -e 1s/^X//" 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4742$as_echo_n "checking for fgrep... " >&6; } 4743if ${ac_cv_path_FGREP+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4747 then ac_cv_path_FGREP="$GREP -F" 4748 else 4749 if test -z "$FGREP"; then 4750 ac_path_FGREP_found=false 4751 # Loop through the user's path and test for each of PROGNAME-LIST 4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4753for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4754do 4755 IFS=$as_save_IFS 4756 test -z "$as_dir" && as_dir=. 4757 for ac_prog in fgrep; do 4758 for ac_exec_ext in '' $ac_executable_extensions; do 4759 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4760 as_fn_executable_p "$ac_path_FGREP" || continue 4761# Check for GNU ac_path_FGREP and select it if it is found. 4762 # Check for GNU $ac_path_FGREP 4763case `"$ac_path_FGREP" --version 2>&1` in 4764*GNU*) 4765 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4766*) 4767 ac_count=0 4768 $as_echo_n 0123456789 >"conftest.in" 4769 while : 4770 do 4771 cat "conftest.in" "conftest.in" >"conftest.tmp" 4772 mv "conftest.tmp" "conftest.in" 4773 cp "conftest.in" "conftest.nl" 4774 $as_echo 'FGREP' >> "conftest.nl" 4775 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4777 as_fn_arith $ac_count + 1 && ac_count=$as_val 4778 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4779 # Best one so far, save it but keep looking for a better one 4780 ac_cv_path_FGREP="$ac_path_FGREP" 4781 ac_path_FGREP_max=$ac_count 4782 fi 4783 # 10*(2^10) chars as input seems more than enough 4784 test $ac_count -gt 10 && break 4785 done 4786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4787esac 4788 4789 $ac_path_FGREP_found && break 3 4790 done 4791 done 4792 done 4793IFS=$as_save_IFS 4794 if test -z "$ac_cv_path_FGREP"; then 4795 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4796 fi 4797else 4798 ac_cv_path_FGREP=$FGREP 4799fi 4800 4801 fi 4802fi 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4804$as_echo "$ac_cv_path_FGREP" >&6; } 4805 FGREP="$ac_cv_path_FGREP" 4806 4807 4808test -z "$GREP" && GREP=grep 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828# Check whether --with-gnu-ld was given. 4829if test "${with_gnu_ld+set}" = set; then : 4830 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4831else 4832 with_gnu_ld=no 4833fi 4834 4835ac_prog=ld 4836if test yes = "$GCC"; then 4837 # Check if gcc -print-prog-name=ld gives a path. 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4839$as_echo_n "checking for ld used by $CC... " >&6; } 4840 case $host in 4841 *-*-mingw*) 4842 # gcc leaves a trailing carriage return, which upsets mingw 4843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4844 *) 4845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4846 esac 4847 case $ac_prog in 4848 # Accept absolute paths. 4849 [\\/]* | ?:[\\/]*) 4850 re_direlt='/[^/][^/]*/\.\./' 4851 # Canonicalize the pathname of ld 4852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4855 done 4856 test -z "$LD" && LD=$ac_prog 4857 ;; 4858 "") 4859 # If it fails, then pretend we aren't using GCC. 4860 ac_prog=ld 4861 ;; 4862 *) 4863 # If it is relative, then search for the first ld in PATH. 4864 with_gnu_ld=unknown 4865 ;; 4866 esac 4867elif test yes = "$with_gnu_ld"; then 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4869$as_echo_n "checking for GNU ld... " >&6; } 4870else 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4872$as_echo_n "checking for non-GNU ld... " >&6; } 4873fi 4874if ${lt_cv_path_LD+:} false; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 if test -z "$LD"; then 4878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4879 for ac_dir in $PATH; do 4880 IFS=$lt_save_ifs 4881 test -z "$ac_dir" && ac_dir=. 4882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4883 lt_cv_path_LD=$ac_dir/$ac_prog 4884 # Check to see if the program is GNU ld. I'd rather use --version, 4885 # but apparently some variants of GNU ld only accept -v. 4886 # Break only if it was the GNU/non-GNU ld that we prefer. 4887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4888 *GNU* | *'with BFD'*) 4889 test no != "$with_gnu_ld" && break 4890 ;; 4891 *) 4892 test yes != "$with_gnu_ld" && break 4893 ;; 4894 esac 4895 fi 4896 done 4897 IFS=$lt_save_ifs 4898else 4899 lt_cv_path_LD=$LD # Let the user override the test with a path. 4900fi 4901fi 4902 4903LD=$lt_cv_path_LD 4904if test -n "$LD"; then 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4906$as_echo "$LD" >&6; } 4907else 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909$as_echo "no" >&6; } 4910fi 4911test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4913$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4914if ${lt_cv_prog_gnu_ld+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4918case `$LD -v 2>&1 </dev/null` in 4919*GNU* | *'with BFD'*) 4920 lt_cv_prog_gnu_ld=yes 4921 ;; 4922*) 4923 lt_cv_prog_gnu_ld=no 4924 ;; 4925esac 4926fi 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4928$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4929with_gnu_ld=$lt_cv_prog_gnu_ld 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4940$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4941if ${lt_cv_path_NM+:} false; then : 4942 $as_echo_n "(cached) " >&6 4943else 4944 if test -n "$NM"; then 4945 # Let the user override the test. 4946 lt_cv_path_NM=$NM 4947else 4948 lt_nm_to_check=${ac_tool_prefix}nm 4949 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4950 lt_nm_to_check="$lt_nm_to_check nm" 4951 fi 4952 for lt_tmp_nm in $lt_nm_to_check; do 4953 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4954 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4955 IFS=$lt_save_ifs 4956 test -z "$ac_dir" && ac_dir=. 4957 tmp_nm=$ac_dir/$lt_tmp_nm 4958 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4959 # Check to see if the nm accepts a BSD-compat flag. 4960 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4961 # nm: unknown option "B" ignored 4962 # Tru64's nm complains that /dev/null is an invalid object file 4963 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4964 case $build_os in 4965 mingw*) lt_bad_file=conftest.nm/nofile ;; 4966 *) lt_bad_file=/dev/null ;; 4967 esac 4968 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4969 *$lt_bad_file* | *'Invalid file or object type'*) 4970 lt_cv_path_NM="$tmp_nm -B" 4971 break 2 4972 ;; 4973 *) 4974 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4975 */dev/null*) 4976 lt_cv_path_NM="$tmp_nm -p" 4977 break 2 4978 ;; 4979 *) 4980 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4981 continue # so that we can try to find one that supports BSD flags 4982 ;; 4983 esac 4984 ;; 4985 esac 4986 fi 4987 done 4988 IFS=$lt_save_ifs 4989 done 4990 : ${lt_cv_path_NM=no} 4991fi 4992fi 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4994$as_echo "$lt_cv_path_NM" >&6; } 4995if test no != "$lt_cv_path_NM"; then 4996 NM=$lt_cv_path_NM 4997else 4998 # Didn't find any BSD compatible name lister, look for dumpbin. 4999 if test -n "$DUMPBIN"; then : 5000 # Let the user override the test. 5001 else 5002 if test -n "$ac_tool_prefix"; then 5003 for ac_prog in dumpbin "link -dump" 5004 do 5005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5006set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5008$as_echo_n "checking for $ac_word... " >&6; } 5009if ${ac_cv_prog_DUMPBIN+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 if test -n "$DUMPBIN"; then 5013 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5014else 5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5016for as_dir in $PATH 5017do 5018 IFS=$as_save_IFS 5019 test -z "$as_dir" && as_dir=. 5020 for ac_exec_ext in '' $ac_executable_extensions; do 5021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5022 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5024 break 2 5025 fi 5026done 5027 done 5028IFS=$as_save_IFS 5029 5030fi 5031fi 5032DUMPBIN=$ac_cv_prog_DUMPBIN 5033if test -n "$DUMPBIN"; then 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5035$as_echo "$DUMPBIN" >&6; } 5036else 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5038$as_echo "no" >&6; } 5039fi 5040 5041 5042 test -n "$DUMPBIN" && break 5043 done 5044fi 5045if test -z "$DUMPBIN"; then 5046 ac_ct_DUMPBIN=$DUMPBIN 5047 for ac_prog in dumpbin "link -dump" 5048do 5049 # Extract the first word of "$ac_prog", so it can be a program name with args. 5050set dummy $ac_prog; ac_word=$2 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5052$as_echo_n "checking for $ac_word... " >&6; } 5053if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5054 $as_echo_n "(cached) " >&6 5055else 5056 if test -n "$ac_ct_DUMPBIN"; then 5057 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5058else 5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5060for as_dir in $PATH 5061do 5062 IFS=$as_save_IFS 5063 test -z "$as_dir" && as_dir=. 5064 for ac_exec_ext in '' $ac_executable_extensions; do 5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5066 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5068 break 2 5069 fi 5070done 5071 done 5072IFS=$as_save_IFS 5073 5074fi 5075fi 5076ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5077if test -n "$ac_ct_DUMPBIN"; then 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5079$as_echo "$ac_ct_DUMPBIN" >&6; } 5080else 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5082$as_echo "no" >&6; } 5083fi 5084 5085 5086 test -n "$ac_ct_DUMPBIN" && break 5087done 5088 5089 if test "x$ac_ct_DUMPBIN" = x; then 5090 DUMPBIN=":" 5091 else 5092 case $cross_compiling:$ac_tool_warned in 5093yes:) 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5096ac_tool_warned=yes ;; 5097esac 5098 DUMPBIN=$ac_ct_DUMPBIN 5099 fi 5100fi 5101 5102 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5103 *COFF*) 5104 DUMPBIN="$DUMPBIN -symbols -headers" 5105 ;; 5106 *) 5107 DUMPBIN=: 5108 ;; 5109 esac 5110 fi 5111 5112 if test : != "$DUMPBIN"; then 5113 NM=$DUMPBIN 5114 fi 5115fi 5116test -z "$NM" && NM=nm 5117 5118 5119 5120 5121 5122 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5124$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5125if ${lt_cv_nm_interface+:} false; then : 5126 $as_echo_n "(cached) " >&6 5127else 5128 lt_cv_nm_interface="BSD nm" 5129 echo "int some_variable = 0;" > conftest.$ac_ext 5130 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5131 (eval "$ac_compile" 2>conftest.err) 5132 cat conftest.err >&5 5133 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5134 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5135 cat conftest.err >&5 5136 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5137 cat conftest.out >&5 5138 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5139 lt_cv_nm_interface="MS dumpbin" 5140 fi 5141 rm -f conftest* 5142fi 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5144$as_echo "$lt_cv_nm_interface" >&6; } 5145 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5147$as_echo_n "checking whether ln -s works... " >&6; } 5148LN_S=$as_ln_s 5149if test "$LN_S" = "ln -s"; then 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5151$as_echo "yes" >&6; } 5152else 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5154$as_echo "no, using $LN_S" >&6; } 5155fi 5156 5157# find the maximum length of command line arguments 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5159$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5160if ${lt_cv_sys_max_cmd_len+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 i=0 5164 teststring=ABCD 5165 5166 case $build_os in 5167 msdosdjgpp*) 5168 # On DJGPP, this test can blow up pretty badly due to problems in libc 5169 # (any single argument exceeding 2000 bytes causes a buffer overrun 5170 # during glob expansion). Even if it were fixed, the result of this 5171 # check would be larger than it should be. 5172 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5173 ;; 5174 5175 gnu*) 5176 # Under GNU Hurd, this test is not required because there is 5177 # no limit to the length of command line arguments. 5178 # Libtool will interpret -1 as no limit whatsoever 5179 lt_cv_sys_max_cmd_len=-1; 5180 ;; 5181 5182 cygwin* | mingw* | cegcc*) 5183 # On Win9x/ME, this test blows up -- it succeeds, but takes 5184 # about 5 minutes as the teststring grows exponentially. 5185 # Worse, since 9x/ME are not pre-emptively multitasking, 5186 # you end up with a "frozen" computer, even though with patience 5187 # the test eventually succeeds (with a max line length of 256k). 5188 # Instead, let's just punt: use the minimum linelength reported by 5189 # all of the supported platforms: 8192 (on NT/2K/XP). 5190 lt_cv_sys_max_cmd_len=8192; 5191 ;; 5192 5193 mint*) 5194 # On MiNT this can take a long time and run out of memory. 5195 lt_cv_sys_max_cmd_len=8192; 5196 ;; 5197 5198 amigaos*) 5199 # On AmigaOS with pdksh, this test takes hours, literally. 5200 # So we just punt and use a minimum line length of 8192. 5201 lt_cv_sys_max_cmd_len=8192; 5202 ;; 5203 5204 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5205 # This has been around since 386BSD, at least. Likely further. 5206 if test -x /sbin/sysctl; then 5207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5208 elif test -x /usr/sbin/sysctl; then 5209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5210 else 5211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5212 fi 5213 # And add a safety zone 5214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5216 ;; 5217 5218 interix*) 5219 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5220 lt_cv_sys_max_cmd_len=196608 5221 ;; 5222 5223 os2*) 5224 # The test takes a long time on OS/2. 5225 lt_cv_sys_max_cmd_len=8192 5226 ;; 5227 5228 osf*) 5229 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5230 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5231 # nice to cause kernel panics so lets avoid the loop below. 5232 # First set a reasonable default. 5233 lt_cv_sys_max_cmd_len=16384 5234 # 5235 if test -x /sbin/sysconfig; then 5236 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5237 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5238 esac 5239 fi 5240 ;; 5241 sco3.2v5*) 5242 lt_cv_sys_max_cmd_len=102400 5243 ;; 5244 sysv5* | sco5v6* | sysv4.2uw2*) 5245 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5246 if test -n "$kargmax"; then 5247 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5248 else 5249 lt_cv_sys_max_cmd_len=32768 5250 fi 5251 ;; 5252 *) 5253 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5254 if test -n "$lt_cv_sys_max_cmd_len" && \ 5255 test undefined != "$lt_cv_sys_max_cmd_len"; then 5256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5258 else 5259 # Make teststring a little bigger before we do anything with it. 5260 # a 1K string should be a reasonable start. 5261 for i in 1 2 3 4 5 6 7 8; do 5262 teststring=$teststring$teststring 5263 done 5264 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5265 # If test is not a shell built-in, we'll probably end up computing a 5266 # maximum length that is only half of the actual maximum length, but 5267 # we can't tell. 5268 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5269 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5270 test 17 != "$i" # 1/2 MB should be enough 5271 do 5272 i=`expr $i + 1` 5273 teststring=$teststring$teststring 5274 done 5275 # Only check the string length outside the loop. 5276 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5277 teststring= 5278 # Add a significant safety factor because C++ compilers can tack on 5279 # massive amounts of additional arguments before passing them to the 5280 # linker. It appears as though 1/2 is a usable value. 5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5282 fi 5283 ;; 5284 esac 5285 5286fi 5287 5288if test -n "$lt_cv_sys_max_cmd_len"; then 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5290$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5291else 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5293$as_echo "none" >&6; } 5294fi 5295max_cmd_len=$lt_cv_sys_max_cmd_len 5296 5297 5298 5299 5300 5301 5302: ${CP="cp -f"} 5303: ${MV="mv -f"} 5304: ${RM="rm -f"} 5305 5306if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5307 lt_unset=unset 5308else 5309 lt_unset=false 5310fi 5311 5312 5313 5314 5315 5316# test EBCDIC or ASCII 5317case `echo X|tr X '\101'` in 5318 A) # ASCII based system 5319 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5320 lt_SP2NL='tr \040 \012' 5321 lt_NL2SP='tr \015\012 \040\040' 5322 ;; 5323 *) # EBCDIC based system 5324 lt_SP2NL='tr \100 \n' 5325 lt_NL2SP='tr \r\n \100\100' 5326 ;; 5327esac 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5338$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5339if ${lt_cv_to_host_file_cmd+:} false; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 case $host in 5343 *-*-mingw* ) 5344 case $build in 5345 *-*-mingw* ) # actually msys 5346 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5347 ;; 5348 *-*-cygwin* ) 5349 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5350 ;; 5351 * ) # otherwise, assume *nix 5352 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5353 ;; 5354 esac 5355 ;; 5356 *-*-cygwin* ) 5357 case $build in 5358 *-*-mingw* ) # actually msys 5359 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5360 ;; 5361 *-*-cygwin* ) 5362 lt_cv_to_host_file_cmd=func_convert_file_noop 5363 ;; 5364 * ) # otherwise, assume *nix 5365 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5366 ;; 5367 esac 5368 ;; 5369 * ) # unhandled hosts (and "normal" native builds) 5370 lt_cv_to_host_file_cmd=func_convert_file_noop 5371 ;; 5372esac 5373 5374fi 5375 5376to_host_file_cmd=$lt_cv_to_host_file_cmd 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5378$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5379 5380 5381 5382 5383 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5385$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5386if ${lt_cv_to_tool_file_cmd+:} false; then : 5387 $as_echo_n "(cached) " >&6 5388else 5389 #assume ordinary cross tools, or native build. 5390lt_cv_to_tool_file_cmd=func_convert_file_noop 5391case $host in 5392 *-*-mingw* ) 5393 case $build in 5394 *-*-mingw* ) # actually msys 5395 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5396 ;; 5397 esac 5398 ;; 5399esac 5400 5401fi 5402 5403to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5405$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5406 5407 5408 5409 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5412$as_echo_n "checking for $LD option to reload object files... " >&6; } 5413if ${lt_cv_ld_reload_flag+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 lt_cv_ld_reload_flag='-r' 5417fi 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5419$as_echo "$lt_cv_ld_reload_flag" >&6; } 5420reload_flag=$lt_cv_ld_reload_flag 5421case $reload_flag in 5422"" | " "*) ;; 5423*) reload_flag=" $reload_flag" ;; 5424esac 5425reload_cmds='$LD$reload_flag -o $output$reload_objs' 5426case $host_os in 5427 cygwin* | mingw* | pw32* | cegcc*) 5428 if test yes != "$GCC"; then 5429 reload_cmds=false 5430 fi 5431 ;; 5432 darwin*) 5433 if test yes = "$GCC"; then 5434 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5435 else 5436 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5437 fi 5438 ;; 5439esac 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449if test -n "$ac_tool_prefix"; then 5450 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5451set dummy ${ac_tool_prefix}objdump; ac_word=$2 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5453$as_echo_n "checking for $ac_word... " >&6; } 5454if ${ac_cv_prog_OBJDUMP+:} false; then : 5455 $as_echo_n "(cached) " >&6 5456else 5457 if test -n "$OBJDUMP"; then 5458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5459else 5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5461for as_dir in $PATH 5462do 5463 IFS=$as_save_IFS 5464 test -z "$as_dir" && as_dir=. 5465 for ac_exec_ext in '' $ac_executable_extensions; do 5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5467 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5469 break 2 5470 fi 5471done 5472 done 5473IFS=$as_save_IFS 5474 5475fi 5476fi 5477OBJDUMP=$ac_cv_prog_OBJDUMP 5478if test -n "$OBJDUMP"; then 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5480$as_echo "$OBJDUMP" >&6; } 5481else 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5483$as_echo "no" >&6; } 5484fi 5485 5486 5487fi 5488if test -z "$ac_cv_prog_OBJDUMP"; then 5489 ac_ct_OBJDUMP=$OBJDUMP 5490 # Extract the first word of "objdump", so it can be a program name with args. 5491set dummy objdump; ac_word=$2 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5493$as_echo_n "checking for $ac_word... " >&6; } 5494if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5495 $as_echo_n "(cached) " >&6 5496else 5497 if test -n "$ac_ct_OBJDUMP"; then 5498 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5499else 5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5501for as_dir in $PATH 5502do 5503 IFS=$as_save_IFS 5504 test -z "$as_dir" && as_dir=. 5505 for ac_exec_ext in '' $ac_executable_extensions; do 5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5507 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5509 break 2 5510 fi 5511done 5512 done 5513IFS=$as_save_IFS 5514 5515fi 5516fi 5517ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5518if test -n "$ac_ct_OBJDUMP"; then 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5520$as_echo "$ac_ct_OBJDUMP" >&6; } 5521else 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5523$as_echo "no" >&6; } 5524fi 5525 5526 if test "x$ac_ct_OBJDUMP" = x; then 5527 OBJDUMP="false" 5528 else 5529 case $cross_compiling:$ac_tool_warned in 5530yes:) 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5533ac_tool_warned=yes ;; 5534esac 5535 OBJDUMP=$ac_ct_OBJDUMP 5536 fi 5537else 5538 OBJDUMP="$ac_cv_prog_OBJDUMP" 5539fi 5540 5541test -z "$OBJDUMP" && OBJDUMP=objdump 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5552$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5553if ${lt_cv_deplibs_check_method+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 lt_cv_file_magic_cmd='$MAGIC_CMD' 5557lt_cv_file_magic_test_file= 5558lt_cv_deplibs_check_method='unknown' 5559# Need to set the preceding variable on all platforms that support 5560# interlibrary dependencies. 5561# 'none' -- dependencies not supported. 5562# 'unknown' -- same as none, but documents that we really don't know. 5563# 'pass_all' -- all dependencies passed with no checks. 5564# 'test_compile' -- check by making test program. 5565# 'file_magic [[regex]]' -- check by looking for files in library path 5566# that responds to the $file_magic_cmd with a given extended regex. 5567# If you have 'file' or equivalent on your system and you're not sure 5568# whether 'pass_all' will *always* work, you probably want this one. 5569 5570case $host_os in 5571aix[4-9]*) 5572 lt_cv_deplibs_check_method=pass_all 5573 ;; 5574 5575beos*) 5576 lt_cv_deplibs_check_method=pass_all 5577 ;; 5578 5579bsdi[45]*) 5580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5581 lt_cv_file_magic_cmd='/usr/bin/file -L' 5582 lt_cv_file_magic_test_file=/shlib/libc.so 5583 ;; 5584 5585cygwin*) 5586 # func_win32_libid is a shell function defined in ltmain.sh 5587 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5588 lt_cv_file_magic_cmd='func_win32_libid' 5589 ;; 5590 5591mingw* | pw32*) 5592 # Base MSYS/MinGW do not provide the 'file' command needed by 5593 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5594 # unless we find 'file', for example because we are cross-compiling. 5595 if ( file / ) >/dev/null 2>&1; then 5596 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5597 lt_cv_file_magic_cmd='func_win32_libid' 5598 else 5599 # Keep this pattern in sync with the one in func_win32_libid. 5600 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5601 lt_cv_file_magic_cmd='$OBJDUMP -f' 5602 fi 5603 ;; 5604 5605cegcc*) 5606 # use the weaker test based on 'objdump'. See mingw*. 5607 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5608 lt_cv_file_magic_cmd='$OBJDUMP -f' 5609 ;; 5610 5611darwin* | rhapsody*) 5612 lt_cv_deplibs_check_method=pass_all 5613 ;; 5614 5615freebsd* | dragonfly*) 5616 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5617 case $host_cpu in 5618 i*86 ) 5619 # Not sure whether the presence of OpenBSD here was a mistake. 5620 # Let's accept both of them until this is cleared up. 5621 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5622 lt_cv_file_magic_cmd=/usr/bin/file 5623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5624 ;; 5625 esac 5626 else 5627 lt_cv_deplibs_check_method=pass_all 5628 fi 5629 ;; 5630 5631haiku*) 5632 lt_cv_deplibs_check_method=pass_all 5633 ;; 5634 5635hpux10.20* | hpux11*) 5636 lt_cv_file_magic_cmd=/usr/bin/file 5637 case $host_cpu in 5638 ia64*) 5639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5641 ;; 5642 hppa*64*) 5643 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]' 5644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5645 ;; 5646 *) 5647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5648 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5649 ;; 5650 esac 5651 ;; 5652 5653interix[3-9]*) 5654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5656 ;; 5657 5658irix5* | irix6* | nonstopux*) 5659 case $LD in 5660 *-32|*"-32 ") libmagic=32-bit;; 5661 *-n32|*"-n32 ") libmagic=N32;; 5662 *-64|*"-64 ") libmagic=64-bit;; 5663 *) libmagic=never-match;; 5664 esac 5665 lt_cv_deplibs_check_method=pass_all 5666 ;; 5667 5668# This must be glibc/ELF. 5669linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5670 lt_cv_deplibs_check_method=pass_all 5671 ;; 5672 5673netbsd*) 5674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5676 else 5677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5678 fi 5679 ;; 5680 5681newos6*) 5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5683 lt_cv_file_magic_cmd=/usr/bin/file 5684 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5685 ;; 5686 5687*nto* | *qnx*) 5688 lt_cv_deplibs_check_method=pass_all 5689 ;; 5690 5691openbsd* | bitrig*) 5692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5694 else 5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5696 fi 5697 ;; 5698 5699osf3* | osf4* | osf5*) 5700 lt_cv_deplibs_check_method=pass_all 5701 ;; 5702 5703rdos*) 5704 lt_cv_deplibs_check_method=pass_all 5705 ;; 5706 5707solaris*) 5708 lt_cv_deplibs_check_method=pass_all 5709 ;; 5710 5711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5712 lt_cv_deplibs_check_method=pass_all 5713 ;; 5714 5715sysv4 | sysv4.3*) 5716 case $host_vendor in 5717 motorola) 5718 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]' 5719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5720 ;; 5721 ncr) 5722 lt_cv_deplibs_check_method=pass_all 5723 ;; 5724 sequent) 5725 lt_cv_file_magic_cmd='/bin/file' 5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5727 ;; 5728 sni) 5729 lt_cv_file_magic_cmd='/bin/file' 5730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5731 lt_cv_file_magic_test_file=/lib/libc.so 5732 ;; 5733 siemens) 5734 lt_cv_deplibs_check_method=pass_all 5735 ;; 5736 pc) 5737 lt_cv_deplibs_check_method=pass_all 5738 ;; 5739 esac 5740 ;; 5741 5742tpf*) 5743 lt_cv_deplibs_check_method=pass_all 5744 ;; 5745os2*) 5746 lt_cv_deplibs_check_method=pass_all 5747 ;; 5748esac 5749 5750fi 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5752$as_echo "$lt_cv_deplibs_check_method" >&6; } 5753 5754file_magic_glob= 5755want_nocaseglob=no 5756if test "$build" = "$host"; then 5757 case $host_os in 5758 mingw* | pw32*) 5759 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5760 want_nocaseglob=yes 5761 else 5762 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5763 fi 5764 ;; 5765 esac 5766fi 5767 5768file_magic_cmd=$lt_cv_file_magic_cmd 5769deplibs_check_method=$lt_cv_deplibs_check_method 5770test -z "$deplibs_check_method" && deplibs_check_method=unknown 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793if test -n "$ac_tool_prefix"; then 5794 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5795set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5797$as_echo_n "checking for $ac_word... " >&6; } 5798if ${ac_cv_prog_DLLTOOL+:} false; then : 5799 $as_echo_n "(cached) " >&6 5800else 5801 if test -n "$DLLTOOL"; then 5802 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5803else 5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5805for as_dir in $PATH 5806do 5807 IFS=$as_save_IFS 5808 test -z "$as_dir" && as_dir=. 5809 for ac_exec_ext in '' $ac_executable_extensions; do 5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5811 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5813 break 2 5814 fi 5815done 5816 done 5817IFS=$as_save_IFS 5818 5819fi 5820fi 5821DLLTOOL=$ac_cv_prog_DLLTOOL 5822if test -n "$DLLTOOL"; then 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5824$as_echo "$DLLTOOL" >&6; } 5825else 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5827$as_echo "no" >&6; } 5828fi 5829 5830 5831fi 5832if test -z "$ac_cv_prog_DLLTOOL"; then 5833 ac_ct_DLLTOOL=$DLLTOOL 5834 # Extract the first word of "dlltool", so it can be a program name with args. 5835set dummy dlltool; ac_word=$2 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5837$as_echo_n "checking for $ac_word... " >&6; } 5838if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5839 $as_echo_n "(cached) " >&6 5840else 5841 if test -n "$ac_ct_DLLTOOL"; then 5842 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5843else 5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5845for as_dir in $PATH 5846do 5847 IFS=$as_save_IFS 5848 test -z "$as_dir" && as_dir=. 5849 for ac_exec_ext in '' $ac_executable_extensions; do 5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5851 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5853 break 2 5854 fi 5855done 5856 done 5857IFS=$as_save_IFS 5858 5859fi 5860fi 5861ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5862if test -n "$ac_ct_DLLTOOL"; then 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5864$as_echo "$ac_ct_DLLTOOL" >&6; } 5865else 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5867$as_echo "no" >&6; } 5868fi 5869 5870 if test "x$ac_ct_DLLTOOL" = x; then 5871 DLLTOOL="false" 5872 else 5873 case $cross_compiling:$ac_tool_warned in 5874yes:) 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5877ac_tool_warned=yes ;; 5878esac 5879 DLLTOOL=$ac_ct_DLLTOOL 5880 fi 5881else 5882 DLLTOOL="$ac_cv_prog_DLLTOOL" 5883fi 5884 5885test -z "$DLLTOOL" && DLLTOOL=dlltool 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5897$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5898if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900else 5901 lt_cv_sharedlib_from_linklib_cmd='unknown' 5902 5903case $host_os in 5904cygwin* | mingw* | pw32* | cegcc*) 5905 # two different shell functions defined in ltmain.sh; 5906 # decide which one to use based on capabilities of $DLLTOOL 5907 case `$DLLTOOL --help 2>&1` in 5908 *--identify-strict*) 5909 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5910 ;; 5911 *) 5912 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5913 ;; 5914 esac 5915 ;; 5916*) 5917 # fallback: assume linklib IS sharedlib 5918 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5919 ;; 5920esac 5921 5922fi 5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5924$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5925sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5926test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5927 5928 5929 5930 5931 5932 5933 5934if test -n "$ac_tool_prefix"; then 5935 for ac_prog in ar 5936 do 5937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5938set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5940$as_echo_n "checking for $ac_word... " >&6; } 5941if ${ac_cv_prog_AR+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 if test -n "$AR"; then 5945 ac_cv_prog_AR="$AR" # Let the user override the test. 5946else 5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5948for as_dir in $PATH 5949do 5950 IFS=$as_save_IFS 5951 test -z "$as_dir" && as_dir=. 5952 for ac_exec_ext in '' $ac_executable_extensions; do 5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5954 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5956 break 2 5957 fi 5958done 5959 done 5960IFS=$as_save_IFS 5961 5962fi 5963fi 5964AR=$ac_cv_prog_AR 5965if test -n "$AR"; then 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5967$as_echo "$AR" >&6; } 5968else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5970$as_echo "no" >&6; } 5971fi 5972 5973 5974 test -n "$AR" && break 5975 done 5976fi 5977if test -z "$AR"; then 5978 ac_ct_AR=$AR 5979 for ac_prog in ar 5980do 5981 # Extract the first word of "$ac_prog", so it can be a program name with args. 5982set dummy $ac_prog; ac_word=$2 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5984$as_echo_n "checking for $ac_word... " >&6; } 5985if ${ac_cv_prog_ac_ct_AR+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 if test -n "$ac_ct_AR"; then 5989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5990else 5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 test -z "$as_dir" && as_dir=. 5996 for ac_exec_ext in '' $ac_executable_extensions; do 5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5998 ac_cv_prog_ac_ct_AR="$ac_prog" 5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6000 break 2 6001 fi 6002done 6003 done 6004IFS=$as_save_IFS 6005 6006fi 6007fi 6008ac_ct_AR=$ac_cv_prog_ac_ct_AR 6009if test -n "$ac_ct_AR"; then 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6011$as_echo "$ac_ct_AR" >&6; } 6012else 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6014$as_echo "no" >&6; } 6015fi 6016 6017 6018 test -n "$ac_ct_AR" && break 6019done 6020 6021 if test "x$ac_ct_AR" = x; then 6022 AR="false" 6023 else 6024 case $cross_compiling:$ac_tool_warned in 6025yes:) 6026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6028ac_tool_warned=yes ;; 6029esac 6030 AR=$ac_ct_AR 6031 fi 6032fi 6033 6034: ${AR=ar} 6035: ${AR_FLAGS=cru} 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6048$as_echo_n "checking for archiver @FILE support... " >&6; } 6049if ${lt_cv_ar_at_file+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 lt_cv_ar_at_file=no 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054/* end confdefs.h. */ 6055 6056int 6057main () 6058{ 6059 6060 ; 6061 return 0; 6062} 6063_ACEOF 6064if ac_fn_c_try_compile "$LINENO"; then : 6065 echo conftest.$ac_objext > conftest.lst 6066 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6068 (eval $lt_ar_try) 2>&5 6069 ac_status=$? 6070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6071 test $ac_status = 0; } 6072 if test 0 -eq "$ac_status"; then 6073 # Ensure the archiver fails upon bogus file names. 6074 rm -f conftest.$ac_objext libconftest.a 6075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6076 (eval $lt_ar_try) 2>&5 6077 ac_status=$? 6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6079 test $ac_status = 0; } 6080 if test 0 -ne "$ac_status"; then 6081 lt_cv_ar_at_file=@ 6082 fi 6083 fi 6084 rm -f conftest.* libconftest.a 6085 6086fi 6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6088 6089fi 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6091$as_echo "$lt_cv_ar_at_file" >&6; } 6092 6093if test no = "$lt_cv_ar_at_file"; then 6094 archiver_list_spec= 6095else 6096 archiver_list_spec=$lt_cv_ar_at_file 6097fi 6098 6099 6100 6101 6102 6103 6104 6105if test -n "$ac_tool_prefix"; then 6106 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6107set dummy ${ac_tool_prefix}strip; ac_word=$2 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6109$as_echo_n "checking for $ac_word... " >&6; } 6110if ${ac_cv_prog_STRIP+:} false; then : 6111 $as_echo_n "(cached) " >&6 6112else 6113 if test -n "$STRIP"; then 6114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6115else 6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6117for as_dir in $PATH 6118do 6119 IFS=$as_save_IFS 6120 test -z "$as_dir" && as_dir=. 6121 for ac_exec_ext in '' $ac_executable_extensions; do 6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6123 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6125 break 2 6126 fi 6127done 6128 done 6129IFS=$as_save_IFS 6130 6131fi 6132fi 6133STRIP=$ac_cv_prog_STRIP 6134if test -n "$STRIP"; then 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6136$as_echo "$STRIP" >&6; } 6137else 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6139$as_echo "no" >&6; } 6140fi 6141 6142 6143fi 6144if test -z "$ac_cv_prog_STRIP"; then 6145 ac_ct_STRIP=$STRIP 6146 # Extract the first word of "strip", so it can be a program name with args. 6147set dummy strip; ac_word=$2 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6149$as_echo_n "checking for $ac_word... " >&6; } 6150if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 if test -n "$ac_ct_STRIP"; then 6154 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6155else 6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6157for as_dir in $PATH 6158do 6159 IFS=$as_save_IFS 6160 test -z "$as_dir" && as_dir=. 6161 for ac_exec_ext in '' $ac_executable_extensions; do 6162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6163 ac_cv_prog_ac_ct_STRIP="strip" 6164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6165 break 2 6166 fi 6167done 6168 done 6169IFS=$as_save_IFS 6170 6171fi 6172fi 6173ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6174if test -n "$ac_ct_STRIP"; then 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6176$as_echo "$ac_ct_STRIP" >&6; } 6177else 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6179$as_echo "no" >&6; } 6180fi 6181 6182 if test "x$ac_ct_STRIP" = x; then 6183 STRIP=":" 6184 else 6185 case $cross_compiling:$ac_tool_warned in 6186yes:) 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6189ac_tool_warned=yes ;; 6190esac 6191 STRIP=$ac_ct_STRIP 6192 fi 6193else 6194 STRIP="$ac_cv_prog_STRIP" 6195fi 6196 6197test -z "$STRIP" && STRIP=: 6198 6199 6200 6201 6202 6203 6204if test -n "$ac_tool_prefix"; then 6205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6206set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6208$as_echo_n "checking for $ac_word... " >&6; } 6209if ${ac_cv_prog_RANLIB+:} false; then : 6210 $as_echo_n "(cached) " >&6 6211else 6212 if test -n "$RANLIB"; then 6213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6214else 6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6216for as_dir in $PATH 6217do 6218 IFS=$as_save_IFS 6219 test -z "$as_dir" && as_dir=. 6220 for ac_exec_ext in '' $ac_executable_extensions; do 6221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6224 break 2 6225 fi 6226done 6227 done 6228IFS=$as_save_IFS 6229 6230fi 6231fi 6232RANLIB=$ac_cv_prog_RANLIB 6233if test -n "$RANLIB"; then 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6235$as_echo "$RANLIB" >&6; } 6236else 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6238$as_echo "no" >&6; } 6239fi 6240 6241 6242fi 6243if test -z "$ac_cv_prog_RANLIB"; then 6244 ac_ct_RANLIB=$RANLIB 6245 # Extract the first word of "ranlib", so it can be a program name with args. 6246set dummy ranlib; ac_word=$2 6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6248$as_echo_n "checking for $ac_word... " >&6; } 6249if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6250 $as_echo_n "(cached) " >&6 6251else 6252 if test -n "$ac_ct_RANLIB"; then 6253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6254else 6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6256for as_dir in $PATH 6257do 6258 IFS=$as_save_IFS 6259 test -z "$as_dir" && as_dir=. 6260 for ac_exec_ext in '' $ac_executable_extensions; do 6261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6262 ac_cv_prog_ac_ct_RANLIB="ranlib" 6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6264 break 2 6265 fi 6266done 6267 done 6268IFS=$as_save_IFS 6269 6270fi 6271fi 6272ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6273if test -n "$ac_ct_RANLIB"; then 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6275$as_echo "$ac_ct_RANLIB" >&6; } 6276else 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278$as_echo "no" >&6; } 6279fi 6280 6281 if test "x$ac_ct_RANLIB" = x; then 6282 RANLIB=":" 6283 else 6284 case $cross_compiling:$ac_tool_warned in 6285yes:) 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6288ac_tool_warned=yes ;; 6289esac 6290 RANLIB=$ac_ct_RANLIB 6291 fi 6292else 6293 RANLIB="$ac_cv_prog_RANLIB" 6294fi 6295 6296test -z "$RANLIB" && RANLIB=: 6297 6298 6299 6300 6301 6302 6303# Determine commands to create old-style static archives. 6304old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6305old_postinstall_cmds='chmod 644 $oldlib' 6306old_postuninstall_cmds= 6307 6308if test -n "$RANLIB"; then 6309 case $host_os in 6310 bitrig* | openbsd*) 6311 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6312 ;; 6313 *) 6314 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6315 ;; 6316 esac 6317 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6318fi 6319 6320case $host_os in 6321 darwin*) 6322 lock_old_archive_extraction=yes ;; 6323 *) 6324 lock_old_archive_extraction=no ;; 6325esac 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365# If no C compiler was specified, use CC. 6366LTCC=${LTCC-"$CC"} 6367 6368# If no C compiler flags were specified, use CFLAGS. 6369LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6370 6371# Allow CC to be a program name with arguments. 6372compiler=$CC 6373 6374 6375# Check for command to grab the raw symbol name followed by C symbol from nm. 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6377$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6378if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 6382# These are sane defaults that work on at least a few old systems. 6383# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6384 6385# Character class describing NM global symbol codes. 6386symcode='[BCDEGRST]' 6387 6388# Regexp to match symbols that can be accessed directly from C. 6389sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6390 6391# Define system-specific variables. 6392case $host_os in 6393aix*) 6394 symcode='[BCDT]' 6395 ;; 6396cygwin* | mingw* | pw32* | cegcc*) 6397 symcode='[ABCDGISTW]' 6398 ;; 6399hpux*) 6400 if test ia64 = "$host_cpu"; then 6401 symcode='[ABCDEGRST]' 6402 fi 6403 ;; 6404irix* | nonstopux*) 6405 symcode='[BCDEGRST]' 6406 ;; 6407osf*) 6408 symcode='[BCDEGQRST]' 6409 ;; 6410solaris*) 6411 symcode='[BDRT]' 6412 ;; 6413sco3.2v5*) 6414 symcode='[DT]' 6415 ;; 6416sysv4.2uw2*) 6417 symcode='[DT]' 6418 ;; 6419sysv5* | sco5v6* | unixware* | OpenUNIX*) 6420 symcode='[ABDT]' 6421 ;; 6422sysv4) 6423 symcode='[DFNSTU]' 6424 ;; 6425esac 6426 6427# If we're using GNU nm, then use its standard symbol codes. 6428case `$NM -V 2>&1` in 6429*GNU* | *'with BFD'*) 6430 symcode='[ABCDGIRSTW]' ;; 6431esac 6432 6433if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6434 # Gets list of data symbols to import. 6435 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6436 # Adjust the below global symbol transforms to fixup imported variables. 6437 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6438 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6439 lt_c_name_lib_hook="\ 6440 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6441 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6442else 6443 # Disable hooks by default. 6444 lt_cv_sys_global_symbol_to_import= 6445 lt_cdecl_hook= 6446 lt_c_name_hook= 6447 lt_c_name_lib_hook= 6448fi 6449 6450# Transform an extracted symbol line into a proper C declaration. 6451# Some systems (esp. on ia64) link data and code symbols differently, 6452# so use this general approach. 6453lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6454$lt_cdecl_hook\ 6455" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6456" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6457 6458# Transform an extracted symbol line into symbol name and symbol address 6459lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6460$lt_c_name_hook\ 6461" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6462" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6463 6464# Transform an extracted symbol line into symbol name with lib prefix and 6465# symbol address. 6466lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6467$lt_c_name_lib_hook\ 6468" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6469" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6470" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6471 6472# Handle CRLF in mingw tool chain 6473opt_cr= 6474case $build_os in 6475mingw*) 6476 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6477 ;; 6478esac 6479 6480# Try without a prefix underscore, then with it. 6481for ac_symprfx in "" "_"; do 6482 6483 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6484 symxfrm="\\1 $ac_symprfx\\2 \\2" 6485 6486 # Write the raw and C identifiers. 6487 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6488 # Fake it for dumpbin and say T for any non-static function, 6489 # D for any global variable and I for any imported variable. 6490 # Also find C++ and __fastcall symbols from MSVC++, 6491 # which start with @ or ?. 6492 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6493" {last_section=section; section=\$ 3};"\ 6494" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6495" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6496" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6497" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6498" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6499" \$ 0!~/External *\|/{next};"\ 6500" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6501" {if(hide[section]) next};"\ 6502" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6503" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6504" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6505" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6506" ' prfx=^$ac_symprfx" 6507 else 6508 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6509 fi 6510 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6511 6512 # Check to see that the pipe works correctly. 6513 pipe_works=no 6514 6515 rm -f conftest* 6516 cat > conftest.$ac_ext <<_LT_EOF 6517#ifdef __cplusplus 6518extern "C" { 6519#endif 6520char nm_test_var; 6521void nm_test_func(void); 6522void nm_test_func(void){} 6523#ifdef __cplusplus 6524} 6525#endif 6526int main(){nm_test_var='a';nm_test_func();return(0);} 6527_LT_EOF 6528 6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6530 (eval $ac_compile) 2>&5 6531 ac_status=$? 6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6533 test $ac_status = 0; }; then 6534 # Now try to grab the symbols. 6535 nlist=conftest.nm 6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6537 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6538 ac_status=$? 6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6540 test $ac_status = 0; } && test -s "$nlist"; then 6541 # Try sorting and uniquifying the output. 6542 if sort "$nlist" | uniq > "$nlist"T; then 6543 mv -f "$nlist"T "$nlist" 6544 else 6545 rm -f "$nlist"T 6546 fi 6547 6548 # Make sure that we snagged all the symbols we need. 6549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6551 cat <<_LT_EOF > conftest.$ac_ext 6552/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6553#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6554/* DATA imports from DLLs on WIN32 can't be const, because runtime 6555 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6556# define LT_DLSYM_CONST 6557#elif defined __osf__ 6558/* This system does not cope well with relocations in const data. */ 6559# define LT_DLSYM_CONST 6560#else 6561# define LT_DLSYM_CONST const 6562#endif 6563 6564#ifdef __cplusplus 6565extern "C" { 6566#endif 6567 6568_LT_EOF 6569 # Now generate the symbol file. 6570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6571 6572 cat <<_LT_EOF >> conftest.$ac_ext 6573 6574/* The mapping between symbol names and symbols. */ 6575LT_DLSYM_CONST struct { 6576 const char *name; 6577 void *address; 6578} 6579lt__PROGRAM__LTX_preloaded_symbols[] = 6580{ 6581 { "@PROGRAM@", (void *) 0 }, 6582_LT_EOF 6583 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6584 cat <<\_LT_EOF >> conftest.$ac_ext 6585 {0, (void *) 0} 6586}; 6587 6588/* This works around a problem in FreeBSD linker */ 6589#ifdef FREEBSD_WORKAROUND 6590static const void *lt_preloaded_setup() { 6591 return lt__PROGRAM__LTX_preloaded_symbols; 6592} 6593#endif 6594 6595#ifdef __cplusplus 6596} 6597#endif 6598_LT_EOF 6599 # Now try linking the two files. 6600 mv conftest.$ac_objext conftstm.$ac_objext 6601 lt_globsym_save_LIBS=$LIBS 6602 lt_globsym_save_CFLAGS=$CFLAGS 6603 LIBS=conftstm.$ac_objext 6604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6606 (eval $ac_link) 2>&5 6607 ac_status=$? 6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6609 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6610 pipe_works=yes 6611 fi 6612 LIBS=$lt_globsym_save_LIBS 6613 CFLAGS=$lt_globsym_save_CFLAGS 6614 else 6615 echo "cannot find nm_test_func in $nlist" >&5 6616 fi 6617 else 6618 echo "cannot find nm_test_var in $nlist" >&5 6619 fi 6620 else 6621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6622 fi 6623 else 6624 echo "$progname: failed program was:" >&5 6625 cat conftest.$ac_ext >&5 6626 fi 6627 rm -rf conftest* conftst* 6628 6629 # Do not use the global_symbol_pipe unless it works. 6630 if test yes = "$pipe_works"; then 6631 break 6632 else 6633 lt_cv_sys_global_symbol_pipe= 6634 fi 6635done 6636 6637fi 6638 6639if test -z "$lt_cv_sys_global_symbol_pipe"; then 6640 lt_cv_sys_global_symbol_to_cdecl= 6641fi 6642if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6644$as_echo "failed" >&6; } 6645else 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6647$as_echo "ok" >&6; } 6648fi 6649 6650# Response file support. 6651if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6652 nm_file_list_spec='@' 6653elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6654 nm_file_list_spec='@' 6655fi 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6694$as_echo_n "checking for sysroot... " >&6; } 6695 6696# Check whether --with-sysroot was given. 6697if test "${with_sysroot+set}" = set; then : 6698 withval=$with_sysroot; 6699else 6700 with_sysroot=no 6701fi 6702 6703 6704lt_sysroot= 6705case $with_sysroot in #( 6706 yes) 6707 if test yes = "$GCC"; then 6708 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6709 fi 6710 ;; #( 6711 /*) 6712 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6713 ;; #( 6714 no|'') 6715 ;; #( 6716 *) 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6718$as_echo "$with_sysroot" >&6; } 6719 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6720 ;; 6721esac 6722 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6724$as_echo "${lt_sysroot:-no}" >&6; } 6725 6726 6727 6728 6729 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6731$as_echo_n "checking for a working dd... " >&6; } 6732if ${ac_cv_path_lt_DD+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 printf 0123456789abcdef0123456789abcdef >conftest.i 6736cat conftest.i conftest.i >conftest2.i 6737: ${lt_DD:=$DD} 6738if test -z "$lt_DD"; then 6739 ac_path_lt_DD_found=false 6740 # Loop through the user's path and test for each of PROGNAME-LIST 6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6742for as_dir in $PATH 6743do 6744 IFS=$as_save_IFS 6745 test -z "$as_dir" && as_dir=. 6746 for ac_prog in dd; do 6747 for ac_exec_ext in '' $ac_executable_extensions; do 6748 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6749 as_fn_executable_p "$ac_path_lt_DD" || continue 6750if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6751 cmp -s conftest.i conftest.out \ 6752 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6753fi 6754 $ac_path_lt_DD_found && break 3 6755 done 6756 done 6757 done 6758IFS=$as_save_IFS 6759 if test -z "$ac_cv_path_lt_DD"; then 6760 : 6761 fi 6762else 6763 ac_cv_path_lt_DD=$lt_DD 6764fi 6765 6766rm -f conftest.i conftest2.i conftest.out 6767fi 6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6769$as_echo "$ac_cv_path_lt_DD" >&6; } 6770 6771 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6773$as_echo_n "checking how to truncate binary pipes... " >&6; } 6774if ${lt_cv_truncate_bin+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 printf 0123456789abcdef0123456789abcdef >conftest.i 6778cat conftest.i conftest.i >conftest2.i 6779lt_cv_truncate_bin= 6780if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6781 cmp -s conftest.i conftest.out \ 6782 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6783fi 6784rm -f conftest.i conftest2.i conftest.out 6785test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6786fi 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6788$as_echo "$lt_cv_truncate_bin" >&6; } 6789 6790 6791 6792 6793 6794 6795 6796# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6797func_cc_basename () 6798{ 6799 for cc_temp in $*""; do 6800 case $cc_temp in 6801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6803 \-*) ;; 6804 *) break;; 6805 esac 6806 done 6807 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6808} 6809 6810# Check whether --enable-libtool-lock was given. 6811if test "${enable_libtool_lock+set}" = set; then : 6812 enableval=$enable_libtool_lock; 6813fi 6814 6815test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6816 6817# Some flags need to be propagated to the compiler or linker for good 6818# libtool support. 6819case $host in 6820ia64-*-hpux*) 6821 # Find out what ABI is being produced by ac_compile, and set mode 6822 # options accordingly. 6823 echo 'int i;' > conftest.$ac_ext 6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6825 (eval $ac_compile) 2>&5 6826 ac_status=$? 6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6828 test $ac_status = 0; }; then 6829 case `/usr/bin/file conftest.$ac_objext` in 6830 *ELF-32*) 6831 HPUX_IA64_MODE=32 6832 ;; 6833 *ELF-64*) 6834 HPUX_IA64_MODE=64 6835 ;; 6836 esac 6837 fi 6838 rm -rf conftest* 6839 ;; 6840*-*-irix6*) 6841 # Find out what ABI is being produced by ac_compile, and set linker 6842 # options accordingly. 6843 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6845 (eval $ac_compile) 2>&5 6846 ac_status=$? 6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6848 test $ac_status = 0; }; then 6849 if test yes = "$lt_cv_prog_gnu_ld"; then 6850 case `/usr/bin/file conftest.$ac_objext` in 6851 *32-bit*) 6852 LD="${LD-ld} -melf32bsmip" 6853 ;; 6854 *N32*) 6855 LD="${LD-ld} -melf32bmipn32" 6856 ;; 6857 *64-bit*) 6858 LD="${LD-ld} -melf64bmip" 6859 ;; 6860 esac 6861 else 6862 case `/usr/bin/file conftest.$ac_objext` in 6863 *32-bit*) 6864 LD="${LD-ld} -32" 6865 ;; 6866 *N32*) 6867 LD="${LD-ld} -n32" 6868 ;; 6869 *64-bit*) 6870 LD="${LD-ld} -64" 6871 ;; 6872 esac 6873 fi 6874 fi 6875 rm -rf conftest* 6876 ;; 6877 6878mips64*-*linux*) 6879 # Find out what ABI is being produced by ac_compile, and set linker 6880 # options accordingly. 6881 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6883 (eval $ac_compile) 2>&5 6884 ac_status=$? 6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6886 test $ac_status = 0; }; then 6887 emul=elf 6888 case `/usr/bin/file conftest.$ac_objext` in 6889 *32-bit*) 6890 emul="${emul}32" 6891 ;; 6892 *64-bit*) 6893 emul="${emul}64" 6894 ;; 6895 esac 6896 case `/usr/bin/file conftest.$ac_objext` in 6897 *MSB*) 6898 emul="${emul}btsmip" 6899 ;; 6900 *LSB*) 6901 emul="${emul}ltsmip" 6902 ;; 6903 esac 6904 case `/usr/bin/file conftest.$ac_objext` in 6905 *N32*) 6906 emul="${emul}n32" 6907 ;; 6908 esac 6909 LD="${LD-ld} -m $emul" 6910 fi 6911 rm -rf conftest* 6912 ;; 6913 6914x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6915s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6916 # Find out what ABI is being produced by ac_compile, and set linker 6917 # options accordingly. Note that the listed cases only cover the 6918 # situations where additional linker options are needed (such as when 6919 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6920 # vice versa); the common cases where no linker options are needed do 6921 # not appear in the list. 6922 echo 'int i;' > conftest.$ac_ext 6923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6924 (eval $ac_compile) 2>&5 6925 ac_status=$? 6926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6927 test $ac_status = 0; }; then 6928 case `/usr/bin/file conftest.o` in 6929 *32-bit*) 6930 case $host in 6931 x86_64-*kfreebsd*-gnu) 6932 LD="${LD-ld} -m elf_i386_fbsd" 6933 ;; 6934 x86_64-*linux*) 6935 case `/usr/bin/file conftest.o` in 6936 *x86-64*) 6937 LD="${LD-ld} -m elf32_x86_64" 6938 ;; 6939 *) 6940 LD="${LD-ld} -m elf_i386" 6941 ;; 6942 esac 6943 ;; 6944 powerpc64le-*linux*) 6945 LD="${LD-ld} -m elf32lppclinux" 6946 ;; 6947 powerpc64-*linux*) 6948 LD="${LD-ld} -m elf32ppclinux" 6949 ;; 6950 s390x-*linux*) 6951 LD="${LD-ld} -m elf_s390" 6952 ;; 6953 sparc64-*linux*) 6954 LD="${LD-ld} -m elf32_sparc" 6955 ;; 6956 esac 6957 ;; 6958 *64-bit*) 6959 case $host in 6960 x86_64-*kfreebsd*-gnu) 6961 LD="${LD-ld} -m elf_x86_64_fbsd" 6962 ;; 6963 x86_64-*linux*) 6964 LD="${LD-ld} -m elf_x86_64" 6965 ;; 6966 powerpcle-*linux*) 6967 LD="${LD-ld} -m elf64lppc" 6968 ;; 6969 powerpc-*linux*) 6970 LD="${LD-ld} -m elf64ppc" 6971 ;; 6972 s390*-*linux*|s390*-*tpf*) 6973 LD="${LD-ld} -m elf64_s390" 6974 ;; 6975 sparc*-*linux*) 6976 LD="${LD-ld} -m elf64_sparc" 6977 ;; 6978 esac 6979 ;; 6980 esac 6981 fi 6982 rm -rf conftest* 6983 ;; 6984 6985*-*-sco3.2v5*) 6986 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6987 SAVE_CFLAGS=$CFLAGS 6988 CFLAGS="$CFLAGS -belf" 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6990$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6991if ${lt_cv_cc_needs_belf+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 ac_ext=c 6995ac_cpp='$CPP $CPPFLAGS' 6996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6998ac_compiler_gnu=$ac_cv_c_compiler_gnu 6999 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002 7003int 7004main () 7005{ 7006 7007 ; 7008 return 0; 7009} 7010_ACEOF 7011if ac_fn_c_try_link "$LINENO"; then : 7012 lt_cv_cc_needs_belf=yes 7013else 7014 lt_cv_cc_needs_belf=no 7015fi 7016rm -f core conftest.err conftest.$ac_objext \ 7017 conftest$ac_exeext conftest.$ac_ext 7018 ac_ext=c 7019ac_cpp='$CPP $CPPFLAGS' 7020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7022ac_compiler_gnu=$ac_cv_c_compiler_gnu 7023 7024fi 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7026$as_echo "$lt_cv_cc_needs_belf" >&6; } 7027 if test yes != "$lt_cv_cc_needs_belf"; then 7028 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7029 CFLAGS=$SAVE_CFLAGS 7030 fi 7031 ;; 7032*-*solaris*) 7033 # Find out what ABI is being produced by ac_compile, and set linker 7034 # options accordingly. 7035 echo 'int i;' > conftest.$ac_ext 7036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7037 (eval $ac_compile) 2>&5 7038 ac_status=$? 7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7040 test $ac_status = 0; }; then 7041 case `/usr/bin/file conftest.o` in 7042 *64-bit*) 7043 case $lt_cv_prog_gnu_ld in 7044 yes*) 7045 case $host in 7046 i?86-*-solaris*|x86_64-*-solaris*) 7047 LD="${LD-ld} -m elf_x86_64" 7048 ;; 7049 sparc*-*-solaris*) 7050 LD="${LD-ld} -m elf64_sparc" 7051 ;; 7052 esac 7053 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7054 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7055 LD=${LD-ld}_sol2 7056 fi 7057 ;; 7058 *) 7059 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7060 LD="${LD-ld} -64" 7061 fi 7062 ;; 7063 esac 7064 ;; 7065 esac 7066 fi 7067 rm -rf conftest* 7068 ;; 7069esac 7070 7071need_locks=$enable_libtool_lock 7072 7073if test -n "$ac_tool_prefix"; then 7074 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7075set dummy ${ac_tool_prefix}mt; ac_word=$2 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7077$as_echo_n "checking for $ac_word... " >&6; } 7078if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080else 7081 if test -n "$MANIFEST_TOOL"; then 7082 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7083else 7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7085for as_dir in $PATH 7086do 7087 IFS=$as_save_IFS 7088 test -z "$as_dir" && as_dir=. 7089 for ac_exec_ext in '' $ac_executable_extensions; do 7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7091 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7093 break 2 7094 fi 7095done 7096 done 7097IFS=$as_save_IFS 7098 7099fi 7100fi 7101MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7102if test -n "$MANIFEST_TOOL"; then 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7104$as_echo "$MANIFEST_TOOL" >&6; } 7105else 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7107$as_echo "no" >&6; } 7108fi 7109 7110 7111fi 7112if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7113 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7114 # Extract the first word of "mt", so it can be a program name with args. 7115set dummy mt; ac_word=$2 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7117$as_echo_n "checking for $ac_word... " >&6; } 7118if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120else 7121 if test -n "$ac_ct_MANIFEST_TOOL"; then 7122 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7123else 7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7125for as_dir in $PATH 7126do 7127 IFS=$as_save_IFS 7128 test -z "$as_dir" && as_dir=. 7129 for ac_exec_ext in '' $ac_executable_extensions; do 7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7131 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7133 break 2 7134 fi 7135done 7136 done 7137IFS=$as_save_IFS 7138 7139fi 7140fi 7141ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7142if test -n "$ac_ct_MANIFEST_TOOL"; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7144$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7145else 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7147$as_echo "no" >&6; } 7148fi 7149 7150 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7151 MANIFEST_TOOL=":" 7152 else 7153 case $cross_compiling:$ac_tool_warned in 7154yes:) 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7157ac_tool_warned=yes ;; 7158esac 7159 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7160 fi 7161else 7162 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7163fi 7164 7165test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7167$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7168if ${lt_cv_path_mainfest_tool+:} false; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 lt_cv_path_mainfest_tool=no 7172 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7173 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7174 cat conftest.err >&5 7175 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7176 lt_cv_path_mainfest_tool=yes 7177 fi 7178 rm -f conftest* 7179fi 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7181$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7182if test yes != "$lt_cv_path_mainfest_tool"; then 7183 MANIFEST_TOOL=: 7184fi 7185 7186 7187 7188 7189 7190 7191 case $host_os in 7192 rhapsody* | darwin*) 7193 if test -n "$ac_tool_prefix"; then 7194 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7195set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7197$as_echo_n "checking for $ac_word... " >&6; } 7198if ${ac_cv_prog_DSYMUTIL+:} false; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 if test -n "$DSYMUTIL"; then 7202 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7203else 7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7205for as_dir in $PATH 7206do 7207 IFS=$as_save_IFS 7208 test -z "$as_dir" && as_dir=. 7209 for ac_exec_ext in '' $ac_executable_extensions; do 7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7211 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7213 break 2 7214 fi 7215done 7216 done 7217IFS=$as_save_IFS 7218 7219fi 7220fi 7221DSYMUTIL=$ac_cv_prog_DSYMUTIL 7222if test -n "$DSYMUTIL"; then 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7224$as_echo "$DSYMUTIL" >&6; } 7225else 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7227$as_echo "no" >&6; } 7228fi 7229 7230 7231fi 7232if test -z "$ac_cv_prog_DSYMUTIL"; then 7233 ac_ct_DSYMUTIL=$DSYMUTIL 7234 # Extract the first word of "dsymutil", so it can be a program name with args. 7235set dummy dsymutil; ac_word=$2 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7237$as_echo_n "checking for $ac_word... " >&6; } 7238if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7239 $as_echo_n "(cached) " >&6 7240else 7241 if test -n "$ac_ct_DSYMUTIL"; then 7242 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7243else 7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7245for as_dir in $PATH 7246do 7247 IFS=$as_save_IFS 7248 test -z "$as_dir" && as_dir=. 7249 for ac_exec_ext in '' $ac_executable_extensions; do 7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7251 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7253 break 2 7254 fi 7255done 7256 done 7257IFS=$as_save_IFS 7258 7259fi 7260fi 7261ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7262if test -n "$ac_ct_DSYMUTIL"; then 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7264$as_echo "$ac_ct_DSYMUTIL" >&6; } 7265else 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7267$as_echo "no" >&6; } 7268fi 7269 7270 if test "x$ac_ct_DSYMUTIL" = x; then 7271 DSYMUTIL=":" 7272 else 7273 case $cross_compiling:$ac_tool_warned in 7274yes:) 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7277ac_tool_warned=yes ;; 7278esac 7279 DSYMUTIL=$ac_ct_DSYMUTIL 7280 fi 7281else 7282 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7283fi 7284 7285 if test -n "$ac_tool_prefix"; then 7286 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7287set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7289$as_echo_n "checking for $ac_word... " >&6; } 7290if ${ac_cv_prog_NMEDIT+:} false; then : 7291 $as_echo_n "(cached) " >&6 7292else 7293 if test -n "$NMEDIT"; then 7294 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7295else 7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7297for as_dir in $PATH 7298do 7299 IFS=$as_save_IFS 7300 test -z "$as_dir" && as_dir=. 7301 for ac_exec_ext in '' $ac_executable_extensions; do 7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7303 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7305 break 2 7306 fi 7307done 7308 done 7309IFS=$as_save_IFS 7310 7311fi 7312fi 7313NMEDIT=$ac_cv_prog_NMEDIT 7314if test -n "$NMEDIT"; then 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7316$as_echo "$NMEDIT" >&6; } 7317else 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7319$as_echo "no" >&6; } 7320fi 7321 7322 7323fi 7324if test -z "$ac_cv_prog_NMEDIT"; then 7325 ac_ct_NMEDIT=$NMEDIT 7326 # Extract the first word of "nmedit", so it can be a program name with args. 7327set dummy nmedit; ac_word=$2 7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7329$as_echo_n "checking for $ac_word... " >&6; } 7330if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7331 $as_echo_n "(cached) " >&6 7332else 7333 if test -n "$ac_ct_NMEDIT"; then 7334 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7335else 7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7337for as_dir in $PATH 7338do 7339 IFS=$as_save_IFS 7340 test -z "$as_dir" && as_dir=. 7341 for ac_exec_ext in '' $ac_executable_extensions; do 7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7343 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7345 break 2 7346 fi 7347done 7348 done 7349IFS=$as_save_IFS 7350 7351fi 7352fi 7353ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7354if test -n "$ac_ct_NMEDIT"; then 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7356$as_echo "$ac_ct_NMEDIT" >&6; } 7357else 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7359$as_echo "no" >&6; } 7360fi 7361 7362 if test "x$ac_ct_NMEDIT" = x; then 7363 NMEDIT=":" 7364 else 7365 case $cross_compiling:$ac_tool_warned in 7366yes:) 7367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7369ac_tool_warned=yes ;; 7370esac 7371 NMEDIT=$ac_ct_NMEDIT 7372 fi 7373else 7374 NMEDIT="$ac_cv_prog_NMEDIT" 7375fi 7376 7377 if test -n "$ac_tool_prefix"; then 7378 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7379set dummy ${ac_tool_prefix}lipo; ac_word=$2 7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7381$as_echo_n "checking for $ac_word... " >&6; } 7382if ${ac_cv_prog_LIPO+:} false; then : 7383 $as_echo_n "(cached) " >&6 7384else 7385 if test -n "$LIPO"; then 7386 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7387else 7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7389for as_dir in $PATH 7390do 7391 IFS=$as_save_IFS 7392 test -z "$as_dir" && as_dir=. 7393 for ac_exec_ext in '' $ac_executable_extensions; do 7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7395 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7397 break 2 7398 fi 7399done 7400 done 7401IFS=$as_save_IFS 7402 7403fi 7404fi 7405LIPO=$ac_cv_prog_LIPO 7406if test -n "$LIPO"; then 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7408$as_echo "$LIPO" >&6; } 7409else 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7411$as_echo "no" >&6; } 7412fi 7413 7414 7415fi 7416if test -z "$ac_cv_prog_LIPO"; then 7417 ac_ct_LIPO=$LIPO 7418 # Extract the first word of "lipo", so it can be a program name with args. 7419set dummy lipo; ac_word=$2 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7421$as_echo_n "checking for $ac_word... " >&6; } 7422if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 if test -n "$ac_ct_LIPO"; then 7426 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7427else 7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7429for as_dir in $PATH 7430do 7431 IFS=$as_save_IFS 7432 test -z "$as_dir" && as_dir=. 7433 for ac_exec_ext in '' $ac_executable_extensions; do 7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7435 ac_cv_prog_ac_ct_LIPO="lipo" 7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7437 break 2 7438 fi 7439done 7440 done 7441IFS=$as_save_IFS 7442 7443fi 7444fi 7445ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7446if test -n "$ac_ct_LIPO"; then 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7448$as_echo "$ac_ct_LIPO" >&6; } 7449else 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7451$as_echo "no" >&6; } 7452fi 7453 7454 if test "x$ac_ct_LIPO" = x; then 7455 LIPO=":" 7456 else 7457 case $cross_compiling:$ac_tool_warned in 7458yes:) 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7461ac_tool_warned=yes ;; 7462esac 7463 LIPO=$ac_ct_LIPO 7464 fi 7465else 7466 LIPO="$ac_cv_prog_LIPO" 7467fi 7468 7469 if test -n "$ac_tool_prefix"; then 7470 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7471set dummy ${ac_tool_prefix}otool; ac_word=$2 7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7473$as_echo_n "checking for $ac_word... " >&6; } 7474if ${ac_cv_prog_OTOOL+:} false; then : 7475 $as_echo_n "(cached) " >&6 7476else 7477 if test -n "$OTOOL"; then 7478 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7479else 7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7481for as_dir in $PATH 7482do 7483 IFS=$as_save_IFS 7484 test -z "$as_dir" && as_dir=. 7485 for ac_exec_ext in '' $ac_executable_extensions; do 7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7487 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7489 break 2 7490 fi 7491done 7492 done 7493IFS=$as_save_IFS 7494 7495fi 7496fi 7497OTOOL=$ac_cv_prog_OTOOL 7498if test -n "$OTOOL"; then 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7500$as_echo "$OTOOL" >&6; } 7501else 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7503$as_echo "no" >&6; } 7504fi 7505 7506 7507fi 7508if test -z "$ac_cv_prog_OTOOL"; then 7509 ac_ct_OTOOL=$OTOOL 7510 # Extract the first word of "otool", so it can be a program name with args. 7511set dummy otool; ac_word=$2 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7513$as_echo_n "checking for $ac_word... " >&6; } 7514if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7515 $as_echo_n "(cached) " >&6 7516else 7517 if test -n "$ac_ct_OTOOL"; then 7518 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7519else 7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7521for as_dir in $PATH 7522do 7523 IFS=$as_save_IFS 7524 test -z "$as_dir" && as_dir=. 7525 for ac_exec_ext in '' $ac_executable_extensions; do 7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7527 ac_cv_prog_ac_ct_OTOOL="otool" 7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7529 break 2 7530 fi 7531done 7532 done 7533IFS=$as_save_IFS 7534 7535fi 7536fi 7537ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7538if test -n "$ac_ct_OTOOL"; then 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7540$as_echo "$ac_ct_OTOOL" >&6; } 7541else 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7543$as_echo "no" >&6; } 7544fi 7545 7546 if test "x$ac_ct_OTOOL" = x; then 7547 OTOOL=":" 7548 else 7549 case $cross_compiling:$ac_tool_warned in 7550yes:) 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7553ac_tool_warned=yes ;; 7554esac 7555 OTOOL=$ac_ct_OTOOL 7556 fi 7557else 7558 OTOOL="$ac_cv_prog_OTOOL" 7559fi 7560 7561 if test -n "$ac_tool_prefix"; then 7562 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7563set dummy ${ac_tool_prefix}otool64; ac_word=$2 7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7565$as_echo_n "checking for $ac_word... " >&6; } 7566if ${ac_cv_prog_OTOOL64+:} false; then : 7567 $as_echo_n "(cached) " >&6 7568else 7569 if test -n "$OTOOL64"; then 7570 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7571else 7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7573for as_dir in $PATH 7574do 7575 IFS=$as_save_IFS 7576 test -z "$as_dir" && as_dir=. 7577 for ac_exec_ext in '' $ac_executable_extensions; do 7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7579 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7581 break 2 7582 fi 7583done 7584 done 7585IFS=$as_save_IFS 7586 7587fi 7588fi 7589OTOOL64=$ac_cv_prog_OTOOL64 7590if test -n "$OTOOL64"; then 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7592$as_echo "$OTOOL64" >&6; } 7593else 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7595$as_echo "no" >&6; } 7596fi 7597 7598 7599fi 7600if test -z "$ac_cv_prog_OTOOL64"; then 7601 ac_ct_OTOOL64=$OTOOL64 7602 # Extract the first word of "otool64", so it can be a program name with args. 7603set dummy otool64; ac_word=$2 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7605$as_echo_n "checking for $ac_word... " >&6; } 7606if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608else 7609 if test -n "$ac_ct_OTOOL64"; then 7610 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7611else 7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7613for as_dir in $PATH 7614do 7615 IFS=$as_save_IFS 7616 test -z "$as_dir" && as_dir=. 7617 for ac_exec_ext in '' $ac_executable_extensions; do 7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7619 ac_cv_prog_ac_ct_OTOOL64="otool64" 7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7621 break 2 7622 fi 7623done 7624 done 7625IFS=$as_save_IFS 7626 7627fi 7628fi 7629ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7630if test -n "$ac_ct_OTOOL64"; then 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7632$as_echo "$ac_ct_OTOOL64" >&6; } 7633else 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7635$as_echo "no" >&6; } 7636fi 7637 7638 if test "x$ac_ct_OTOOL64" = x; then 7639 OTOOL64=":" 7640 else 7641 case $cross_compiling:$ac_tool_warned in 7642yes:) 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7645ac_tool_warned=yes ;; 7646esac 7647 OTOOL64=$ac_ct_OTOOL64 7648 fi 7649else 7650 OTOOL64="$ac_cv_prog_OTOOL64" 7651fi 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7680$as_echo_n "checking for -single_module linker flag... " >&6; } 7681if ${lt_cv_apple_cc_single_mod+:} false; then : 7682 $as_echo_n "(cached) " >&6 7683else 7684 lt_cv_apple_cc_single_mod=no 7685 if test -z "$LT_MULTI_MODULE"; then 7686 # By default we will add the -single_module flag. You can override 7687 # by either setting the environment variable LT_MULTI_MODULE 7688 # non-empty at configure time, or by adding -multi_module to the 7689 # link flags. 7690 rm -rf libconftest.dylib* 7691 echo "int foo(void){return 1;}" > conftest.c 7692 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7693-dynamiclib -Wl,-single_module conftest.c" >&5 7694 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7695 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7696 _lt_result=$? 7697 # If there is a non-empty error log, and "single_module" 7698 # appears in it, assume the flag caused a linker warning 7699 if test -s conftest.err && $GREP single_module conftest.err; then 7700 cat conftest.err >&5 7701 # Otherwise, if the output was created with a 0 exit code from 7702 # the compiler, it worked. 7703 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7704 lt_cv_apple_cc_single_mod=yes 7705 else 7706 cat conftest.err >&5 7707 fi 7708 rm -rf libconftest.dylib* 7709 rm -f conftest.* 7710 fi 7711fi 7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7713$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7714 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7716$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7717if ${lt_cv_ld_exported_symbols_list+:} false; then : 7718 $as_echo_n "(cached) " >&6 7719else 7720 lt_cv_ld_exported_symbols_list=no 7721 save_LDFLAGS=$LDFLAGS 7722 echo "_main" > conftest.sym 7723 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726 7727int 7728main () 7729{ 7730 7731 ; 7732 return 0; 7733} 7734_ACEOF 7735if ac_fn_c_try_link "$LINENO"; then : 7736 lt_cv_ld_exported_symbols_list=yes 7737else 7738 lt_cv_ld_exported_symbols_list=no 7739fi 7740rm -f core conftest.err conftest.$ac_objext \ 7741 conftest$ac_exeext conftest.$ac_ext 7742 LDFLAGS=$save_LDFLAGS 7743 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7746$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7747 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7749$as_echo_n "checking for -force_load linker flag... " >&6; } 7750if ${lt_cv_ld_force_load+:} false; then : 7751 $as_echo_n "(cached) " >&6 7752else 7753 lt_cv_ld_force_load=no 7754 cat > conftest.c << _LT_EOF 7755int forced_loaded() { return 2;} 7756_LT_EOF 7757 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7758 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7759 echo "$AR cru libconftest.a conftest.o" >&5 7760 $AR cru libconftest.a conftest.o 2>&5 7761 echo "$RANLIB libconftest.a" >&5 7762 $RANLIB libconftest.a 2>&5 7763 cat > conftest.c << _LT_EOF 7764int main() { return 0;} 7765_LT_EOF 7766 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7767 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7768 _lt_result=$? 7769 if test -s conftest.err && $GREP force_load conftest.err; then 7770 cat conftest.err >&5 7771 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7772 lt_cv_ld_force_load=yes 7773 else 7774 cat conftest.err >&5 7775 fi 7776 rm -f conftest.err libconftest.a conftest conftest.c 7777 rm -rf conftest.dSYM 7778 7779fi 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7781$as_echo "$lt_cv_ld_force_load" >&6; } 7782 case $host_os in 7783 rhapsody* | darwin1.[012]) 7784 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7785 darwin1.*) 7786 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7787 darwin*) # darwin 5.x on 7788 # if running on 10.5 or later, the deployment target defaults 7789 # to the OS version, if on x86, and 10.4, the deployment 7790 # target defaults to 10.4. Don't you love it? 7791 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7792 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7793 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7794 10.[012][,.]*) 7795 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7796 10.*) 7797 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7798 esac 7799 ;; 7800 esac 7801 if test yes = "$lt_cv_apple_cc_single_mod"; then 7802 _lt_dar_single_mod='$single_module' 7803 fi 7804 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7805 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7806 else 7807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7808 fi 7809 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7810 _lt_dsymutil='~$DSYMUTIL $lib || :' 7811 else 7812 _lt_dsymutil= 7813 fi 7814 ;; 7815 esac 7816 7817# func_munge_path_list VARIABLE PATH 7818# ----------------------------------- 7819# VARIABLE is name of variable containing _space_ separated list of 7820# directories to be munged by the contents of PATH, which is string 7821# having a format: 7822# "DIR[:DIR]:" 7823# string "DIR[ DIR]" will be prepended to VARIABLE 7824# ":DIR[:DIR]" 7825# string "DIR[ DIR]" will be appended to VARIABLE 7826# "DIRP[:DIRP]::[DIRA:]DIRA" 7827# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7828# "DIRA[ DIRA]" will be appended to VARIABLE 7829# "DIR[:DIR]" 7830# VARIABLE will be replaced by "DIR[ DIR]" 7831func_munge_path_list () 7832{ 7833 case x$2 in 7834 x) 7835 ;; 7836 *:) 7837 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7838 ;; 7839 x:*) 7840 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7841 ;; 7842 *::*) 7843 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7844 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7845 ;; 7846 *) 7847 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7848 ;; 7849 esac 7850} 7851 7852for ac_header in dlfcn.h 7853do : 7854 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7855" 7856if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7857 cat >>confdefs.h <<_ACEOF 7858#define HAVE_DLFCN_H 1 7859_ACEOF 7860 7861fi 7862 7863done 7864 7865 7866 7867 7868 7869# Set options 7870 7871 7872 7873 enable_dlopen=no 7874 7875 7876 enable_win32_dll=no 7877 7878 7879 # Check whether --enable-shared was given. 7880if test "${enable_shared+set}" = set; then : 7881 enableval=$enable_shared; p=${PACKAGE-default} 7882 case $enableval in 7883 yes) enable_shared=yes ;; 7884 no) enable_shared=no ;; 7885 *) 7886 enable_shared=no 7887 # Look at the argument we got. We use all the common list separators. 7888 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7889 for pkg in $enableval; do 7890 IFS=$lt_save_ifs 7891 if test "X$pkg" = "X$p"; then 7892 enable_shared=yes 7893 fi 7894 done 7895 IFS=$lt_save_ifs 7896 ;; 7897 esac 7898else 7899 enable_shared=yes 7900fi 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 # Check whether --enable-static was given. 7911if test "${enable_static+set}" = set; then : 7912 enableval=$enable_static; p=${PACKAGE-default} 7913 case $enableval in 7914 yes) enable_static=yes ;; 7915 no) enable_static=no ;; 7916 *) 7917 enable_static=no 7918 # Look at the argument we got. We use all the common list separators. 7919 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7920 for pkg in $enableval; do 7921 IFS=$lt_save_ifs 7922 if test "X$pkg" = "X$p"; then 7923 enable_static=yes 7924 fi 7925 done 7926 IFS=$lt_save_ifs 7927 ;; 7928 esac 7929else 7930 enable_static=yes 7931fi 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942# Check whether --with-pic was given. 7943if test "${with_pic+set}" = set; then : 7944 withval=$with_pic; lt_p=${PACKAGE-default} 7945 case $withval in 7946 yes|no) pic_mode=$withval ;; 7947 *) 7948 pic_mode=default 7949 # Look at the argument we got. We use all the common list separators. 7950 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7951 for lt_pkg in $withval; do 7952 IFS=$lt_save_ifs 7953 if test "X$lt_pkg" = "X$lt_p"; then 7954 pic_mode=yes 7955 fi 7956 done 7957 IFS=$lt_save_ifs 7958 ;; 7959 esac 7960else 7961 pic_mode=default 7962fi 7963 7964 7965 7966 7967 7968 7969 7970 7971 # Check whether --enable-fast-install was given. 7972if test "${enable_fast_install+set}" = set; then : 7973 enableval=$enable_fast_install; p=${PACKAGE-default} 7974 case $enableval in 7975 yes) enable_fast_install=yes ;; 7976 no) enable_fast_install=no ;; 7977 *) 7978 enable_fast_install=no 7979 # Look at the argument we got. We use all the common list separators. 7980 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7981 for pkg in $enableval; do 7982 IFS=$lt_save_ifs 7983 if test "X$pkg" = "X$p"; then 7984 enable_fast_install=yes 7985 fi 7986 done 7987 IFS=$lt_save_ifs 7988 ;; 7989 esac 7990else 7991 enable_fast_install=yes 7992fi 7993 7994 7995 7996 7997 7998 7999 8000 8001 shared_archive_member_spec= 8002case $host,$enable_shared in 8003power*-*-aix[5-9]*,yes) 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8005$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8006 8007# Check whether --with-aix-soname was given. 8008if test "${with_aix_soname+set}" = set; then : 8009 withval=$with_aix_soname; case $withval in 8010 aix|svr4|both) 8011 ;; 8012 *) 8013 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8014 ;; 8015 esac 8016 lt_cv_with_aix_soname=$with_aix_soname 8017else 8018 if ${lt_cv_with_aix_soname+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 lt_cv_with_aix_soname=aix 8022fi 8023 8024 with_aix_soname=$lt_cv_with_aix_soname 8025fi 8026 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8028$as_echo "$with_aix_soname" >&6; } 8029 if test aix != "$with_aix_soname"; then 8030 # For the AIX way of multilib, we name the shared archive member 8031 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8032 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8033 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8034 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8035 if test 64 = "${OBJECT_MODE-32}"; then 8036 shared_archive_member_spec=shr_64 8037 else 8038 shared_archive_member_spec=shr 8039 fi 8040 fi 8041 ;; 8042*) 8043 with_aix_soname=aix 8044 ;; 8045esac 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056# This can be used to rebuild libtool when needed 8057LIBTOOL_DEPS=$ltmain 8058 8059# Always use our own libtool. 8060LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091test -z "$LN_S" && LN_S="ln -s" 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106if test -n "${ZSH_VERSION+set}"; then 8107 setopt NO_GLOB_SUBST 8108fi 8109 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8111$as_echo_n "checking for objdir... " >&6; } 8112if ${lt_cv_objdir+:} false; then : 8113 $as_echo_n "(cached) " >&6 8114else 8115 rm -f .libs 2>/dev/null 8116mkdir .libs 2>/dev/null 8117if test -d .libs; then 8118 lt_cv_objdir=.libs 8119else 8120 # MS-DOS does not allow filenames that begin with a dot. 8121 lt_cv_objdir=_libs 8122fi 8123rmdir .libs 2>/dev/null 8124fi 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8126$as_echo "$lt_cv_objdir" >&6; } 8127objdir=$lt_cv_objdir 8128 8129 8130 8131 8132 8133cat >>confdefs.h <<_ACEOF 8134#define LT_OBJDIR "$lt_cv_objdir/" 8135_ACEOF 8136 8137 8138 8139 8140case $host_os in 8141aix3*) 8142 # AIX sometimes has problems with the GCC collect2 program. For some 8143 # reason, if we set the COLLECT_NAMES environment variable, the problems 8144 # vanish in a puff of smoke. 8145 if test set != "${COLLECT_NAMES+set}"; then 8146 COLLECT_NAMES= 8147 export COLLECT_NAMES 8148 fi 8149 ;; 8150esac 8151 8152# Global variables: 8153ofile=libtool 8154can_build_shared=yes 8155 8156# All known linkers require a '.a' archive for static linking (except MSVC, 8157# which needs '.lib'). 8158libext=a 8159 8160with_gnu_ld=$lt_cv_prog_gnu_ld 8161 8162old_CC=$CC 8163old_CFLAGS=$CFLAGS 8164 8165# Set sane defaults for various variables 8166test -z "$CC" && CC=cc 8167test -z "$LTCC" && LTCC=$CC 8168test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8169test -z "$LD" && LD=ld 8170test -z "$ac_objext" && ac_objext=o 8171 8172func_cc_basename $compiler 8173cc_basename=$func_cc_basename_result 8174 8175 8176# Only perform the check for file, if the check method requires it 8177test -z "$MAGIC_CMD" && MAGIC_CMD=file 8178case $deplibs_check_method in 8179file_magic*) 8180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8182$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8183if ${lt_cv_path_MAGIC_CMD+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 case $MAGIC_CMD in 8187[\\/*] | ?:[\\/]*) 8188 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8189 ;; 8190*) 8191 lt_save_MAGIC_CMD=$MAGIC_CMD 8192 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8194 for ac_dir in $ac_dummy; do 8195 IFS=$lt_save_ifs 8196 test -z "$ac_dir" && ac_dir=. 8197 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8198 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8199 if test -n "$file_magic_test_file"; then 8200 case $deplibs_check_method in 8201 "file_magic "*) 8202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8203 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8205 $EGREP "$file_magic_regex" > /dev/null; then 8206 : 8207 else 8208 cat <<_LT_EOF 1>&2 8209 8210*** Warning: the command libtool uses to detect shared libraries, 8211*** $file_magic_cmd, produces output that libtool cannot recognize. 8212*** The result is that libtool may fail to recognize shared libraries 8213*** as such. This will affect the creation of libtool libraries that 8214*** depend on shared libraries, but programs linked with such libtool 8215*** libraries will work regardless of this problem. Nevertheless, you 8216*** may want to report the problem to your system manager and/or to 8217*** bug-libtool@gnu.org 8218 8219_LT_EOF 8220 fi ;; 8221 esac 8222 fi 8223 break 8224 fi 8225 done 8226 IFS=$lt_save_ifs 8227 MAGIC_CMD=$lt_save_MAGIC_CMD 8228 ;; 8229esac 8230fi 8231 8232MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8233if test -n "$MAGIC_CMD"; then 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8235$as_echo "$MAGIC_CMD" >&6; } 8236else 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8238$as_echo "no" >&6; } 8239fi 8240 8241 8242 8243 8244 8245if test -z "$lt_cv_path_MAGIC_CMD"; then 8246 if test -n "$ac_tool_prefix"; then 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8248$as_echo_n "checking for file... " >&6; } 8249if ${lt_cv_path_MAGIC_CMD+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 case $MAGIC_CMD in 8253[\\/*] | ?:[\\/]*) 8254 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8255 ;; 8256*) 8257 lt_save_MAGIC_CMD=$MAGIC_CMD 8258 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8260 for ac_dir in $ac_dummy; do 8261 IFS=$lt_save_ifs 8262 test -z "$ac_dir" && ac_dir=. 8263 if test -f "$ac_dir/file"; then 8264 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8265 if test -n "$file_magic_test_file"; then 8266 case $deplibs_check_method in 8267 "file_magic "*) 8268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8269 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8271 $EGREP "$file_magic_regex" > /dev/null; then 8272 : 8273 else 8274 cat <<_LT_EOF 1>&2 8275 8276*** Warning: the command libtool uses to detect shared libraries, 8277*** $file_magic_cmd, produces output that libtool cannot recognize. 8278*** The result is that libtool may fail to recognize shared libraries 8279*** as such. This will affect the creation of libtool libraries that 8280*** depend on shared libraries, but programs linked with such libtool 8281*** libraries will work regardless of this problem. Nevertheless, you 8282*** may want to report the problem to your system manager and/or to 8283*** bug-libtool@gnu.org 8284 8285_LT_EOF 8286 fi ;; 8287 esac 8288 fi 8289 break 8290 fi 8291 done 8292 IFS=$lt_save_ifs 8293 MAGIC_CMD=$lt_save_MAGIC_CMD 8294 ;; 8295esac 8296fi 8297 8298MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8299if test -n "$MAGIC_CMD"; then 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8301$as_echo "$MAGIC_CMD" >&6; } 8302else 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8304$as_echo "no" >&6; } 8305fi 8306 8307 8308 else 8309 MAGIC_CMD=: 8310 fi 8311fi 8312 8313 fi 8314 ;; 8315esac 8316 8317# Use C for the default configuration in the libtool script 8318 8319lt_save_CC=$CC 8320ac_ext=c 8321ac_cpp='$CPP $CPPFLAGS' 8322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8324ac_compiler_gnu=$ac_cv_c_compiler_gnu 8325 8326 8327# Source file extension for C test sources. 8328ac_ext=c 8329 8330# Object file extension for compiled C test sources. 8331objext=o 8332objext=$objext 8333 8334# Code to be used in simple compile tests 8335lt_simple_compile_test_code="int some_variable = 0;" 8336 8337# Code to be used in simple link tests 8338lt_simple_link_test_code='int main(){return(0);}' 8339 8340 8341 8342 8343 8344 8345 8346# If no C compiler was specified, use CC. 8347LTCC=${LTCC-"$CC"} 8348 8349# If no C compiler flags were specified, use CFLAGS. 8350LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8351 8352# Allow CC to be a program name with arguments. 8353compiler=$CC 8354 8355# Save the default compiler, since it gets overwritten when the other 8356# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8357compiler_DEFAULT=$CC 8358 8359# save warnings/boilerplate of simple test code 8360ac_outfile=conftest.$ac_objext 8361echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8362eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8363_lt_compiler_boilerplate=`cat conftest.err` 8364$RM conftest* 8365 8366ac_outfile=conftest.$ac_objext 8367echo "$lt_simple_link_test_code" >conftest.$ac_ext 8368eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8369_lt_linker_boilerplate=`cat conftest.err` 8370$RM -r conftest* 8371 8372 8373## CAVEAT EMPTOR: 8374## There is no encapsulation within the following macros, do not change 8375## the running order or otherwise move them around unless you know exactly 8376## what you are doing... 8377if test -n "$compiler"; then 8378 8379lt_prog_compiler_no_builtin_flag= 8380 8381if test yes = "$GCC"; then 8382 case $cc_basename in 8383 nvcc*) 8384 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8385 *) 8386 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8387 esac 8388 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8390$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8391if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393else 8394 lt_cv_prog_compiler_rtti_exceptions=no 8395 ac_outfile=conftest.$ac_objext 8396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8397 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8398 # Insert the option either (1) after the last *FLAGS variable, or 8399 # (2) before a word containing "conftest.", or (3) at the end. 8400 # Note that $ac_compile itself does not contain backslashes and begins 8401 # with a dollar sign (not a hyphen), so the echo should work correctly. 8402 # The option is referenced via a variable to avoid confusing sed. 8403 lt_compile=`echo "$ac_compile" | $SED \ 8404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8406 -e 's:$: $lt_compiler_flag:'` 8407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8408 (eval "$lt_compile" 2>conftest.err) 8409 ac_status=$? 8410 cat conftest.err >&5 8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8412 if (exit $ac_status) && test -s "$ac_outfile"; then 8413 # The compiler can only warn and ignore the option if not recognized 8414 # So say no if there are warnings other than the usual output. 8415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8418 lt_cv_prog_compiler_rtti_exceptions=yes 8419 fi 8420 fi 8421 $RM conftest* 8422 8423fi 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8425$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8426 8427if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8429else 8430 : 8431fi 8432 8433fi 8434 8435 8436 8437 8438 8439 8440 lt_prog_compiler_wl= 8441lt_prog_compiler_pic= 8442lt_prog_compiler_static= 8443 8444 8445 if test yes = "$GCC"; then 8446 lt_prog_compiler_wl='-Wl,' 8447 lt_prog_compiler_static='-static' 8448 8449 case $host_os in 8450 aix*) 8451 # All AIX code is PIC. 8452 if test ia64 = "$host_cpu"; then 8453 # AIX 5 now supports IA64 processor 8454 lt_prog_compiler_static='-Bstatic' 8455 fi 8456 lt_prog_compiler_pic='-fPIC' 8457 ;; 8458 8459 amigaos*) 8460 case $host_cpu in 8461 powerpc) 8462 # see comment about AmigaOS4 .so support 8463 lt_prog_compiler_pic='-fPIC' 8464 ;; 8465 m68k) 8466 # FIXME: we need at least 68020 code to build shared libraries, but 8467 # adding the '-m68020' flag to GCC prevents building anything better, 8468 # like '-m68040'. 8469 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8470 ;; 8471 esac 8472 ;; 8473 8474 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8475 # PIC is the default for these OSes. 8476 ;; 8477 8478 mingw* | cygwin* | pw32* | os2* | cegcc*) 8479 # This hack is so that the source file can tell whether it is being 8480 # built for inclusion in a dll (and should export symbols for example). 8481 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8482 # (--disable-auto-import) libraries 8483 lt_prog_compiler_pic='-DDLL_EXPORT' 8484 case $host_os in 8485 os2*) 8486 lt_prog_compiler_static='$wl-static' 8487 ;; 8488 esac 8489 ;; 8490 8491 darwin* | rhapsody*) 8492 # PIC is the default on this platform 8493 # Common symbols not allowed in MH_DYLIB files 8494 lt_prog_compiler_pic='-fno-common' 8495 ;; 8496 8497 haiku*) 8498 # PIC is the default for Haiku. 8499 # The "-static" flag exists, but is broken. 8500 lt_prog_compiler_static= 8501 ;; 8502 8503 hpux*) 8504 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8505 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8506 # sets the default TLS model and affects inlining. 8507 case $host_cpu in 8508 hppa*64*) 8509 # +Z the default 8510 ;; 8511 *) 8512 lt_prog_compiler_pic='-fPIC' 8513 ;; 8514 esac 8515 ;; 8516 8517 interix[3-9]*) 8518 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8519 # Instead, we relocate shared libraries at runtime. 8520 ;; 8521 8522 msdosdjgpp*) 8523 # Just because we use GCC doesn't mean we suddenly get shared libraries 8524 # on systems that don't support them. 8525 lt_prog_compiler_can_build_shared=no 8526 enable_shared=no 8527 ;; 8528 8529 *nto* | *qnx*) 8530 # QNX uses GNU C++, but need to define -shared option too, otherwise 8531 # it will coredump. 8532 lt_prog_compiler_pic='-fPIC -shared' 8533 ;; 8534 8535 sysv4*MP*) 8536 if test -d /usr/nec; then 8537 lt_prog_compiler_pic=-Kconform_pic 8538 fi 8539 ;; 8540 8541 *) 8542 lt_prog_compiler_pic='-fPIC' 8543 ;; 8544 esac 8545 8546 case $cc_basename in 8547 nvcc*) # Cuda Compiler Driver 2.2 8548 lt_prog_compiler_wl='-Xlinker ' 8549 if test -n "$lt_prog_compiler_pic"; then 8550 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8551 fi 8552 ;; 8553 esac 8554 else 8555 # PORTME Check for flag to pass linker flags through the system compiler. 8556 case $host_os in 8557 aix*) 8558 lt_prog_compiler_wl='-Wl,' 8559 if test ia64 = "$host_cpu"; then 8560 # AIX 5 now supports IA64 processor 8561 lt_prog_compiler_static='-Bstatic' 8562 else 8563 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8564 fi 8565 ;; 8566 8567 darwin* | rhapsody*) 8568 # PIC is the default on this platform 8569 # Common symbols not allowed in MH_DYLIB files 8570 lt_prog_compiler_pic='-fno-common' 8571 case $cc_basename in 8572 nagfor*) 8573 # NAG Fortran compiler 8574 lt_prog_compiler_wl='-Wl,-Wl,,' 8575 lt_prog_compiler_pic='-PIC' 8576 lt_prog_compiler_static='-Bstatic' 8577 ;; 8578 esac 8579 ;; 8580 8581 mingw* | cygwin* | pw32* | os2* | cegcc*) 8582 # This hack is so that the source file can tell whether it is being 8583 # built for inclusion in a dll (and should export symbols for example). 8584 lt_prog_compiler_pic='-DDLL_EXPORT' 8585 case $host_os in 8586 os2*) 8587 lt_prog_compiler_static='$wl-static' 8588 ;; 8589 esac 8590 ;; 8591 8592 hpux9* | hpux10* | hpux11*) 8593 lt_prog_compiler_wl='-Wl,' 8594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8595 # not for PA HP-UX. 8596 case $host_cpu in 8597 hppa*64*|ia64*) 8598 # +Z the default 8599 ;; 8600 *) 8601 lt_prog_compiler_pic='+Z' 8602 ;; 8603 esac 8604 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8605 lt_prog_compiler_static='$wl-a ${wl}archive' 8606 ;; 8607 8608 irix5* | irix6* | nonstopux*) 8609 lt_prog_compiler_wl='-Wl,' 8610 # PIC (with -KPIC) is the default. 8611 lt_prog_compiler_static='-non_shared' 8612 ;; 8613 8614 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8615 case $cc_basename in 8616 # old Intel for x86_64, which still supported -KPIC. 8617 ecc*) 8618 lt_prog_compiler_wl='-Wl,' 8619 lt_prog_compiler_pic='-KPIC' 8620 lt_prog_compiler_static='-static' 8621 ;; 8622 # icc used to be incompatible with GCC. 8623 # ICC 10 doesn't accept -KPIC any more. 8624 icc* | ifort*) 8625 lt_prog_compiler_wl='-Wl,' 8626 lt_prog_compiler_pic='-fPIC' 8627 lt_prog_compiler_static='-static' 8628 ;; 8629 # Lahey Fortran 8.1. 8630 lf95*) 8631 lt_prog_compiler_wl='-Wl,' 8632 lt_prog_compiler_pic='--shared' 8633 lt_prog_compiler_static='--static' 8634 ;; 8635 nagfor*) 8636 # NAG Fortran compiler 8637 lt_prog_compiler_wl='-Wl,-Wl,,' 8638 lt_prog_compiler_pic='-PIC' 8639 lt_prog_compiler_static='-Bstatic' 8640 ;; 8641 tcc*) 8642 # Fabrice Bellard et al's Tiny C Compiler 8643 lt_prog_compiler_wl='-Wl,' 8644 lt_prog_compiler_pic='-fPIC' 8645 lt_prog_compiler_static='-static' 8646 ;; 8647 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8648 # Portland Group compilers (*not* the Pentium gcc compiler, 8649 # which looks to be a dead project) 8650 lt_prog_compiler_wl='-Wl,' 8651 lt_prog_compiler_pic='-fpic' 8652 lt_prog_compiler_static='-Bstatic' 8653 ;; 8654 ccc*) 8655 lt_prog_compiler_wl='-Wl,' 8656 # All Alpha code is PIC. 8657 lt_prog_compiler_static='-non_shared' 8658 ;; 8659 xl* | bgxl* | bgf* | mpixl*) 8660 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8661 lt_prog_compiler_wl='-Wl,' 8662 lt_prog_compiler_pic='-qpic' 8663 lt_prog_compiler_static='-qstaticlink' 8664 ;; 8665 *) 8666 case `$CC -V 2>&1 | sed 5q` in 8667 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8668 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8669 lt_prog_compiler_pic='-KPIC' 8670 lt_prog_compiler_static='-Bstatic' 8671 lt_prog_compiler_wl='' 8672 ;; 8673 *Sun\ F* | *Sun*Fortran*) 8674 lt_prog_compiler_pic='-KPIC' 8675 lt_prog_compiler_static='-Bstatic' 8676 lt_prog_compiler_wl='-Qoption ld ' 8677 ;; 8678 *Sun\ C*) 8679 # Sun C 5.9 8680 lt_prog_compiler_pic='-KPIC' 8681 lt_prog_compiler_static='-Bstatic' 8682 lt_prog_compiler_wl='-Wl,' 8683 ;; 8684 *Intel*\ [CF]*Compiler*) 8685 lt_prog_compiler_wl='-Wl,' 8686 lt_prog_compiler_pic='-fPIC' 8687 lt_prog_compiler_static='-static' 8688 ;; 8689 *Portland\ Group*) 8690 lt_prog_compiler_wl='-Wl,' 8691 lt_prog_compiler_pic='-fpic' 8692 lt_prog_compiler_static='-Bstatic' 8693 ;; 8694 esac 8695 ;; 8696 esac 8697 ;; 8698 8699 newsos6) 8700 lt_prog_compiler_pic='-KPIC' 8701 lt_prog_compiler_static='-Bstatic' 8702 ;; 8703 8704 *nto* | *qnx*) 8705 # QNX uses GNU C++, but need to define -shared option too, otherwise 8706 # it will coredump. 8707 lt_prog_compiler_pic='-fPIC -shared' 8708 ;; 8709 8710 osf3* | osf4* | osf5*) 8711 lt_prog_compiler_wl='-Wl,' 8712 # All OSF/1 code is PIC. 8713 lt_prog_compiler_static='-non_shared' 8714 ;; 8715 8716 rdos*) 8717 lt_prog_compiler_static='-non_shared' 8718 ;; 8719 8720 solaris*) 8721 lt_prog_compiler_pic='-KPIC' 8722 lt_prog_compiler_static='-Bstatic' 8723 case $cc_basename in 8724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8725 lt_prog_compiler_wl='-Qoption ld ';; 8726 *) 8727 lt_prog_compiler_wl='-Wl,';; 8728 esac 8729 ;; 8730 8731 sunos4*) 8732 lt_prog_compiler_wl='-Qoption ld ' 8733 lt_prog_compiler_pic='-PIC' 8734 lt_prog_compiler_static='-Bstatic' 8735 ;; 8736 8737 sysv4 | sysv4.2uw2* | sysv4.3*) 8738 lt_prog_compiler_wl='-Wl,' 8739 lt_prog_compiler_pic='-KPIC' 8740 lt_prog_compiler_static='-Bstatic' 8741 ;; 8742 8743 sysv4*MP*) 8744 if test -d /usr/nec; then 8745 lt_prog_compiler_pic='-Kconform_pic' 8746 lt_prog_compiler_static='-Bstatic' 8747 fi 8748 ;; 8749 8750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8751 lt_prog_compiler_wl='-Wl,' 8752 lt_prog_compiler_pic='-KPIC' 8753 lt_prog_compiler_static='-Bstatic' 8754 ;; 8755 8756 unicos*) 8757 lt_prog_compiler_wl='-Wl,' 8758 lt_prog_compiler_can_build_shared=no 8759 ;; 8760 8761 uts4*) 8762 lt_prog_compiler_pic='-pic' 8763 lt_prog_compiler_static='-Bstatic' 8764 ;; 8765 8766 *) 8767 lt_prog_compiler_can_build_shared=no 8768 ;; 8769 esac 8770 fi 8771 8772case $host_os in 8773 # For platforms that do not support PIC, -DPIC is meaningless: 8774 *djgpp*) 8775 lt_prog_compiler_pic= 8776 ;; 8777 *) 8778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8779 ;; 8780esac 8781 8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8783$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8784if ${lt_cv_prog_compiler_pic+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786else 8787 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8788fi 8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8790$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8791lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8792 8793# 8794# Check to make sure the PIC flag actually works. 8795# 8796if test -n "$lt_prog_compiler_pic"; then 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8798$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8799if ${lt_cv_prog_compiler_pic_works+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801else 8802 lt_cv_prog_compiler_pic_works=no 8803 ac_outfile=conftest.$ac_objext 8804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8806 # Insert the option either (1) after the last *FLAGS variable, or 8807 # (2) before a word containing "conftest.", or (3) at the end. 8808 # Note that $ac_compile itself does not contain backslashes and begins 8809 # with a dollar sign (not a hyphen), so the echo should work correctly. 8810 # The option is referenced via a variable to avoid confusing sed. 8811 lt_compile=`echo "$ac_compile" | $SED \ 8812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8814 -e 's:$: $lt_compiler_flag:'` 8815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8816 (eval "$lt_compile" 2>conftest.err) 8817 ac_status=$? 8818 cat conftest.err >&5 8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8820 if (exit $ac_status) && test -s "$ac_outfile"; then 8821 # The compiler can only warn and ignore the option if not recognized 8822 # So say no if there are warnings other than the usual output. 8823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8826 lt_cv_prog_compiler_pic_works=yes 8827 fi 8828 fi 8829 $RM conftest* 8830 8831fi 8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8833$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8834 8835if test yes = "$lt_cv_prog_compiler_pic_works"; then 8836 case $lt_prog_compiler_pic in 8837 "" | " "*) ;; 8838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8839 esac 8840else 8841 lt_prog_compiler_pic= 8842 lt_prog_compiler_can_build_shared=no 8843fi 8844 8845fi 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857# 8858# Check to make sure the static flag actually works. 8859# 8860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8862$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8863if ${lt_cv_prog_compiler_static_works+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865else 8866 lt_cv_prog_compiler_static_works=no 8867 save_LDFLAGS=$LDFLAGS 8868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8869 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8871 # The linker can only warn and ignore the option if not recognized 8872 # So say no if there are warnings 8873 if test -s conftest.err; then 8874 # Append any errors to the config.log. 8875 cat conftest.err 1>&5 8876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8878 if diff conftest.exp conftest.er2 >/dev/null; then 8879 lt_cv_prog_compiler_static_works=yes 8880 fi 8881 else 8882 lt_cv_prog_compiler_static_works=yes 8883 fi 8884 fi 8885 $RM -r conftest* 8886 LDFLAGS=$save_LDFLAGS 8887 8888fi 8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8890$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8891 8892if test yes = "$lt_cv_prog_compiler_static_works"; then 8893 : 8894else 8895 lt_prog_compiler_static= 8896fi 8897 8898 8899 8900 8901 8902 8903 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8906if ${lt_cv_prog_compiler_c_o+:} false; then : 8907 $as_echo_n "(cached) " >&6 8908else 8909 lt_cv_prog_compiler_c_o=no 8910 $RM -r conftest 2>/dev/null 8911 mkdir conftest 8912 cd conftest 8913 mkdir out 8914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8915 8916 lt_compiler_flag="-o out/conftest2.$ac_objext" 8917 # Insert the option either (1) after the last *FLAGS variable, or 8918 # (2) before a word containing "conftest.", or (3) at the end. 8919 # Note that $ac_compile itself does not contain backslashes and begins 8920 # with a dollar sign (not a hyphen), so the echo should work correctly. 8921 lt_compile=`echo "$ac_compile" | $SED \ 8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8924 -e 's:$: $lt_compiler_flag:'` 8925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8926 (eval "$lt_compile" 2>out/conftest.err) 8927 ac_status=$? 8928 cat out/conftest.err >&5 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8931 then 8932 # The compiler can only warn and ignore the option if not recognized 8933 # So say no if there are warnings 8934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8937 lt_cv_prog_compiler_c_o=yes 8938 fi 8939 fi 8940 chmod u+w . 2>&5 8941 $RM conftest* 8942 # SGI C++ compiler will create directory out/ii_files/ for 8943 # template instantiation 8944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8945 $RM out/* && rmdir out 8946 cd .. 8947 $RM -r conftest 8948 $RM conftest* 8949 8950fi 8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8952$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8953 8954 8955 8956 8957 8958 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8961if ${lt_cv_prog_compiler_c_o+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963else 8964 lt_cv_prog_compiler_c_o=no 8965 $RM -r conftest 2>/dev/null 8966 mkdir conftest 8967 cd conftest 8968 mkdir out 8969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8970 8971 lt_compiler_flag="-o out/conftest2.$ac_objext" 8972 # Insert the option either (1) after the last *FLAGS variable, or 8973 # (2) before a word containing "conftest.", or (3) at the end. 8974 # Note that $ac_compile itself does not contain backslashes and begins 8975 # with a dollar sign (not a hyphen), so the echo should work correctly. 8976 lt_compile=`echo "$ac_compile" | $SED \ 8977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8979 -e 's:$: $lt_compiler_flag:'` 8980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8981 (eval "$lt_compile" 2>out/conftest.err) 8982 ac_status=$? 8983 cat out/conftest.err >&5 8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8985 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8986 then 8987 # The compiler can only warn and ignore the option if not recognized 8988 # So say no if there are warnings 8989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8992 lt_cv_prog_compiler_c_o=yes 8993 fi 8994 fi 8995 chmod u+w . 2>&5 8996 $RM conftest* 8997 # SGI C++ compiler will create directory out/ii_files/ for 8998 # template instantiation 8999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9000 $RM out/* && rmdir out 9001 cd .. 9002 $RM -r conftest 9003 $RM conftest* 9004 9005fi 9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9007$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9008 9009 9010 9011 9012hard_links=nottested 9013if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9014 # do not overwrite the value of need_locks provided by the user 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9016$as_echo_n "checking if we can lock with hard links... " >&6; } 9017 hard_links=yes 9018 $RM conftest* 9019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9020 touch conftest.a 9021 ln conftest.a conftest.b 2>&5 || hard_links=no 9022 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9024$as_echo "$hard_links" >&6; } 9025 if test no = "$hard_links"; then 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9027$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9028 need_locks=warn 9029 fi 9030else 9031 need_locks=no 9032fi 9033 9034 9035 9036 9037 9038 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9041 9042 runpath_var= 9043 allow_undefined_flag= 9044 always_export_symbols=no 9045 archive_cmds= 9046 archive_expsym_cmds= 9047 compiler_needs_object=no 9048 enable_shared_with_static_runtimes=no 9049 export_dynamic_flag_spec= 9050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9051 hardcode_automatic=no 9052 hardcode_direct=no 9053 hardcode_direct_absolute=no 9054 hardcode_libdir_flag_spec= 9055 hardcode_libdir_separator= 9056 hardcode_minus_L=no 9057 hardcode_shlibpath_var=unsupported 9058 inherit_rpath=no 9059 link_all_deplibs=unknown 9060 module_cmds= 9061 module_expsym_cmds= 9062 old_archive_from_new_cmds= 9063 old_archive_from_expsyms_cmds= 9064 thread_safe_flag_spec= 9065 whole_archive_flag_spec= 9066 # include_expsyms should be a list of space-separated symbols to be *always* 9067 # included in the symbol list 9068 include_expsyms= 9069 # exclude_expsyms can be an extended regexp of symbols to exclude 9070 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9071 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9072 # as well as any symbol that contains 'd'. 9073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9075 # platforms (ab)use it in PIC code, but their linkers get confused if 9076 # the symbol is explicitly referenced. Since portable code cannot 9077 # rely on this symbol name, it's probably fine to never include it in 9078 # preloaded symbol tables. 9079 # Exclude shared library initialization/finalization symbols. 9080 extract_expsyms_cmds= 9081 9082 case $host_os in 9083 cygwin* | mingw* | pw32* | cegcc*) 9084 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9085 # When not using gcc, we currently assume that we are using 9086 # Microsoft Visual C++. 9087 if test yes != "$GCC"; then 9088 with_gnu_ld=no 9089 fi 9090 ;; 9091 interix*) 9092 # we just hope/assume this is gcc and not c89 (= MSVC++) 9093 with_gnu_ld=yes 9094 ;; 9095 openbsd* | bitrig*) 9096 with_gnu_ld=no 9097 ;; 9098 esac 9099 9100 ld_shlibs=yes 9101 9102 # On some targets, GNU ld is compatible enough with the native linker 9103 # that we're better off using the native interface for both. 9104 lt_use_gnu_ld_interface=no 9105 if test yes = "$with_gnu_ld"; then 9106 case $host_os in 9107 aix*) 9108 # The AIX port of GNU ld has always aspired to compatibility 9109 # with the native linker. However, as the warning in the GNU ld 9110 # block says, versions before 2.19.5* couldn't really create working 9111 # shared libraries, regardless of the interface used. 9112 case `$LD -v 2>&1` in 9113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9115 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9116 *) 9117 lt_use_gnu_ld_interface=yes 9118 ;; 9119 esac 9120 ;; 9121 *) 9122 lt_use_gnu_ld_interface=yes 9123 ;; 9124 esac 9125 fi 9126 9127 if test yes = "$lt_use_gnu_ld_interface"; then 9128 # If archive_cmds runs LD, not CC, wlarc should be empty 9129 wlarc='$wl' 9130 9131 # Set some defaults for GNU ld with shared library support. These 9132 # are reset later if shared libraries are not supported. Putting them 9133 # here allows them to be overridden if necessary. 9134 runpath_var=LD_RUN_PATH 9135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9136 export_dynamic_flag_spec='$wl--export-dynamic' 9137 # ancient GNU ld didn't support --whole-archive et. al. 9138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9139 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9140 else 9141 whole_archive_flag_spec= 9142 fi 9143 supports_anon_versioning=no 9144 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9145 *GNU\ gold*) supports_anon_versioning=yes ;; 9146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9149 *\ 2.11.*) ;; # other 2.11 versions 9150 *) supports_anon_versioning=yes ;; 9151 esac 9152 9153 # See if GNU ld supports shared libraries. 9154 case $host_os in 9155 aix[3-9]*) 9156 # On AIX/PPC, the GNU linker is very broken 9157 if test ia64 != "$host_cpu"; then 9158 ld_shlibs=no 9159 cat <<_LT_EOF 1>&2 9160 9161*** Warning: the GNU linker, at least up to release 2.19, is reported 9162*** to be unable to reliably create shared libraries on AIX. 9163*** Therefore, libtool is disabling shared libraries support. If you 9164*** really care for shared libraries, you may want to install binutils 9165*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9166*** You will then need to restart the configuration process. 9167 9168_LT_EOF 9169 fi 9170 ;; 9171 9172 amigaos*) 9173 case $host_cpu in 9174 powerpc) 9175 # see comment about AmigaOS4 .so support 9176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9177 archive_expsym_cmds='' 9178 ;; 9179 m68k) 9180 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)' 9181 hardcode_libdir_flag_spec='-L$libdir' 9182 hardcode_minus_L=yes 9183 ;; 9184 esac 9185 ;; 9186 9187 beos*) 9188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9189 allow_undefined_flag=unsupported 9190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9191 # support --undefined. This deserves some investigation. FIXME 9192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9193 else 9194 ld_shlibs=no 9195 fi 9196 ;; 9197 9198 cygwin* | mingw* | pw32* | cegcc*) 9199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9200 # as there is no search path for DLLs. 9201 hardcode_libdir_flag_spec='-L$libdir' 9202 export_dynamic_flag_spec='$wl--export-all-symbols' 9203 allow_undefined_flag=unsupported 9204 always_export_symbols=no 9205 enable_shared_with_static_runtimes=yes 9206 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' 9207 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9208 9209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9211 # If the export-symbols file already is a .def file, use it as 9212 # is; otherwise, prepend EXPORTS... 9213 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9214 cp $export_symbols $output_objdir/$soname.def; 9215 else 9216 echo EXPORTS > $output_objdir/$soname.def; 9217 cat $export_symbols >> $output_objdir/$soname.def; 9218 fi~ 9219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9220 else 9221 ld_shlibs=no 9222 fi 9223 ;; 9224 9225 haiku*) 9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9227 link_all_deplibs=yes 9228 ;; 9229 9230 os2*) 9231 hardcode_libdir_flag_spec='-L$libdir' 9232 hardcode_minus_L=yes 9233 allow_undefined_flag=unsupported 9234 shrext_cmds=.dll 9235 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9236 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9237 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9238 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9239 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9241 emximp -o $lib $output_objdir/$libname.def' 9242 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9245 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9246 prefix_cmds="$SED"~ 9247 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9248 prefix_cmds="$prefix_cmds -e 1d"; 9249 fi~ 9250 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9251 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9252 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9253 emximp -o $lib $output_objdir/$libname.def' 9254 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9255 enable_shared_with_static_runtimes=yes 9256 ;; 9257 9258 interix[3-9]*) 9259 hardcode_direct=no 9260 hardcode_shlibpath_var=no 9261 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9262 export_dynamic_flag_spec='$wl-E' 9263 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9264 # Instead, shared libraries are loaded at an image base (0x10000000 by 9265 # default) and relocated if they conflict, which is a slow very memory 9266 # consuming and fragmenting process. To avoid this, we pick a random, 9267 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9268 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9270 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' 9271 ;; 9272 9273 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9274 tmp_diet=no 9275 if test linux-dietlibc = "$host_os"; then 9276 case $cc_basename in 9277 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9278 esac 9279 fi 9280 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9281 && test no = "$tmp_diet" 9282 then 9283 tmp_addflag=' $pic_flag' 9284 tmp_sharedflag='-shared' 9285 case $cc_basename,$host_cpu in 9286 pgcc*) # Portland Group C compiler 9287 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' 9288 tmp_addflag=' $pic_flag' 9289 ;; 9290 pgf77* | pgf90* | pgf95* | pgfortran*) 9291 # Portland Group f77 and f90 compilers 9292 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' 9293 tmp_addflag=' $pic_flag -Mnomain' ;; 9294 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9295 tmp_addflag=' -i_dynamic' ;; 9296 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9297 tmp_addflag=' -i_dynamic -nofor_main' ;; 9298 ifc* | ifort*) # Intel Fortran compiler 9299 tmp_addflag=' -nofor_main' ;; 9300 lf95*) # Lahey Fortran 8.1 9301 whole_archive_flag_spec= 9302 tmp_sharedflag='--shared' ;; 9303 nagfor*) # NAGFOR 5.3 9304 tmp_sharedflag='-Wl,-shared' ;; 9305 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9306 tmp_sharedflag='-qmkshrobj' 9307 tmp_addflag= ;; 9308 nvcc*) # Cuda Compiler Driver 2.2 9309 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' 9310 compiler_needs_object=yes 9311 ;; 9312 esac 9313 case `$CC -V 2>&1 | sed 5q` in 9314 *Sun\ C*) # Sun C 5.9 9315 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' 9316 compiler_needs_object=yes 9317 tmp_sharedflag='-G' ;; 9318 *Sun\ F*) # Sun Fortran 8.3 9319 tmp_sharedflag='-G' ;; 9320 esac 9321 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9322 9323 if test yes = "$supports_anon_versioning"; then 9324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9326 echo "local: *; };" >> $output_objdir/$libname.ver~ 9327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9328 fi 9329 9330 case $cc_basename in 9331 tcc*) 9332 export_dynamic_flag_spec='-rdynamic' 9333 ;; 9334 xlf* | bgf* | bgxlf* | mpixlf*) 9335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9336 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9337 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9338 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9339 if test yes = "$supports_anon_versioning"; then 9340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9342 echo "local: *; };" >> $output_objdir/$libname.ver~ 9343 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9344 fi 9345 ;; 9346 esac 9347 else 9348 ld_shlibs=no 9349 fi 9350 ;; 9351 9352 netbsd*) 9353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9355 wlarc= 9356 else 9357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9359 fi 9360 ;; 9361 9362 solaris*) 9363 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9364 ld_shlibs=no 9365 cat <<_LT_EOF 1>&2 9366 9367*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9368*** create shared libraries on Solaris systems. Therefore, libtool 9369*** is disabling shared libraries support. We urge you to upgrade GNU 9370*** binutils to release 2.9.1 or newer. Another option is to modify 9371*** your PATH or compiler configuration so that the native linker is 9372*** used, and then restart. 9373 9374_LT_EOF 9375 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9376 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9377 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9378 else 9379 ld_shlibs=no 9380 fi 9381 ;; 9382 9383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9384 case `$LD -v 2>&1` in 9385 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9386 ld_shlibs=no 9387 cat <<_LT_EOF 1>&2 9388 9389*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9390*** reliably create shared libraries on SCO systems. Therefore, libtool 9391*** is disabling shared libraries support. We urge you to upgrade GNU 9392*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9393*** your PATH or compiler configuration so that the native linker is 9394*** used, and then restart. 9395 9396_LT_EOF 9397 ;; 9398 *) 9399 # For security reasons, it is highly recommended that you always 9400 # use absolute paths for naming shared libraries, and exclude the 9401 # DT_RUNPATH tag from executables and libraries. But doing so 9402 # requires that you compile everything twice, which is a pain. 9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9407 else 9408 ld_shlibs=no 9409 fi 9410 ;; 9411 esac 9412 ;; 9413 9414 sunos4*) 9415 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9416 wlarc= 9417 hardcode_direct=yes 9418 hardcode_shlibpath_var=no 9419 ;; 9420 9421 *) 9422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9424 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9425 else 9426 ld_shlibs=no 9427 fi 9428 ;; 9429 esac 9430 9431 if test no = "$ld_shlibs"; then 9432 runpath_var= 9433 hardcode_libdir_flag_spec= 9434 export_dynamic_flag_spec= 9435 whole_archive_flag_spec= 9436 fi 9437 else 9438 # PORTME fill in a description of your system's linker (not GNU ld) 9439 case $host_os in 9440 aix3*) 9441 allow_undefined_flag=unsupported 9442 always_export_symbols=yes 9443 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' 9444 # Note: this linker hardcodes the directories in LIBPATH if there 9445 # are no directories specified by -L. 9446 hardcode_minus_L=yes 9447 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9448 # Neither direct hardcoding nor static linking is supported with a 9449 # broken collect2. 9450 hardcode_direct=unsupported 9451 fi 9452 ;; 9453 9454 aix[4-9]*) 9455 if test ia64 = "$host_cpu"; then 9456 # On IA64, the linker does run time linking by default, so we don't 9457 # have to do anything special. 9458 aix_use_runtimelinking=no 9459 exp_sym_flag='-Bexport' 9460 no_entry_flag= 9461 else 9462 # If we're using GNU nm, then we don't want the "-C" option. 9463 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9464 # Without the "-l" option, or with the "-B" option, AIX nm treats 9465 # weak defined symbols like other global defined symbols, whereas 9466 # GNU nm marks them as "W". 9467 # While the 'weak' keyword is ignored in the Export File, we need 9468 # it in the Import File for the 'aix-soname' feature, so we have 9469 # to replace the "-B" option with "-P" for AIX nm. 9470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9471 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' 9472 else 9473 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9474 fi 9475 aix_use_runtimelinking=no 9476 9477 # Test if we are trying to use run time linking or normal 9478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9479 # have runtime linking enabled, and use it for executables. 9480 # For shared libraries, we enable/disable runtime linking 9481 # depending on the kind of the shared library created - 9482 # when "with_aix_soname,aix_use_runtimelinking" is: 9483 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9484 # "aix,yes" lib.so shared, rtl:yes, for executables 9485 # lib.a static archive 9486 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9487 # lib.a(lib.so.V) shared, rtl:no, for executables 9488 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9489 # lib.a(lib.so.V) shared, rtl:no 9490 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9491 # lib.a static archive 9492 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9493 for ld_flag in $LDFLAGS; do 9494 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9495 aix_use_runtimelinking=yes 9496 break 9497 fi 9498 done 9499 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9500 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9501 # so we don't have lib.a shared libs to link our executables. 9502 # We have to force runtime linking in this case. 9503 aix_use_runtimelinking=yes 9504 LDFLAGS="$LDFLAGS -Wl,-brtl" 9505 fi 9506 ;; 9507 esac 9508 9509 exp_sym_flag='-bexport' 9510 no_entry_flag='-bnoentry' 9511 fi 9512 9513 # When large executables or shared objects are built, AIX ld can 9514 # have problems creating the table of contents. If linking a library 9515 # or program results in "error TOC overflow" add -mminimal-toc to 9516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9518 9519 archive_cmds='' 9520 hardcode_direct=yes 9521 hardcode_direct_absolute=yes 9522 hardcode_libdir_separator=':' 9523 link_all_deplibs=yes 9524 file_list_spec='$wl-f,' 9525 case $with_aix_soname,$aix_use_runtimelinking in 9526 aix,*) ;; # traditional, no import file 9527 svr4,* | *,yes) # use import file 9528 # The Import File defines what to hardcode. 9529 hardcode_direct=no 9530 hardcode_direct_absolute=no 9531 ;; 9532 esac 9533 9534 if test yes = "$GCC"; then 9535 case $host_os in aix4.[012]|aix4.[012].*) 9536 # We only want to do this on AIX 4.2 and lower, the check 9537 # below for broken collect2 doesn't work under 4.3+ 9538 collect2name=`$CC -print-prog-name=collect2` 9539 if test -f "$collect2name" && 9540 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9541 then 9542 # We have reworked collect2 9543 : 9544 else 9545 # We have old collect2 9546 hardcode_direct=unsupported 9547 # It fails to find uninstalled libraries when the uninstalled 9548 # path is not listed in the libpath. Setting hardcode_minus_L 9549 # to unsupported forces relinking 9550 hardcode_minus_L=yes 9551 hardcode_libdir_flag_spec='-L$libdir' 9552 hardcode_libdir_separator= 9553 fi 9554 ;; 9555 esac 9556 shared_flag='-shared' 9557 if test yes = "$aix_use_runtimelinking"; then 9558 shared_flag="$shared_flag "'$wl-G' 9559 fi 9560 # Need to ensure runtime linking is disabled for the traditional 9561 # shared library, or the linker may eventually find shared libraries 9562 # /with/ Import File - we do not want to mix them. 9563 shared_flag_aix='-shared' 9564 shared_flag_svr4='-shared $wl-G' 9565 else 9566 # not using gcc 9567 if test ia64 = "$host_cpu"; then 9568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9569 # chokes on -Wl,-G. The following line is correct: 9570 shared_flag='-G' 9571 else 9572 if test yes = "$aix_use_runtimelinking"; then 9573 shared_flag='$wl-G' 9574 else 9575 shared_flag='$wl-bM:SRE' 9576 fi 9577 shared_flag_aix='$wl-bM:SRE' 9578 shared_flag_svr4='$wl-G' 9579 fi 9580 fi 9581 9582 export_dynamic_flag_spec='$wl-bexpall' 9583 # It seems that -bexpall does not export symbols beginning with 9584 # underscore (_), so it is better to generate a list of symbols to export. 9585 always_export_symbols=yes 9586 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9587 # Warning - without using the other runtime loading flags (-brtl), 9588 # -berok will link without error, but may produce a broken library. 9589 allow_undefined_flag='-berok' 9590 # Determine the default libpath from the value encoded in an 9591 # empty executable. 9592 if test set = "${lt_cv_aix_libpath+set}"; then 9593 aix_libpath=$lt_cv_aix_libpath 9594else 9595 if ${lt_cv_aix_libpath_+:} false; then : 9596 $as_echo_n "(cached) " >&6 9597else 9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9599/* end confdefs.h. */ 9600 9601int 9602main () 9603{ 9604 9605 ; 9606 return 0; 9607} 9608_ACEOF 9609if ac_fn_c_try_link "$LINENO"; then : 9610 9611 lt_aix_libpath_sed=' 9612 /Import File Strings/,/^$/ { 9613 /^0/ { 9614 s/^0 *\([^ ]*\) *$/\1/ 9615 p 9616 } 9617 }' 9618 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9619 # Check for a 64-bit object if we didn't find anything. 9620 if test -z "$lt_cv_aix_libpath_"; then 9621 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9622 fi 9623fi 9624rm -f core conftest.err conftest.$ac_objext \ 9625 conftest$ac_exeext conftest.$ac_ext 9626 if test -z "$lt_cv_aix_libpath_"; then 9627 lt_cv_aix_libpath_=/usr/lib:/lib 9628 fi 9629 9630fi 9631 9632 aix_libpath=$lt_cv_aix_libpath_ 9633fi 9634 9635 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9636 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 9637 else 9638 if test ia64 = "$host_cpu"; then 9639 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9640 allow_undefined_flag="-z nodefs" 9641 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" 9642 else 9643 # Determine the default libpath from the value encoded in an 9644 # empty executable. 9645 if test set = "${lt_cv_aix_libpath+set}"; then 9646 aix_libpath=$lt_cv_aix_libpath 9647else 9648 if ${lt_cv_aix_libpath_+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650else 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652/* end confdefs.h. */ 9653 9654int 9655main () 9656{ 9657 9658 ; 9659 return 0; 9660} 9661_ACEOF 9662if ac_fn_c_try_link "$LINENO"; then : 9663 9664 lt_aix_libpath_sed=' 9665 /Import File Strings/,/^$/ { 9666 /^0/ { 9667 s/^0 *\([^ ]*\) *$/\1/ 9668 p 9669 } 9670 }' 9671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9672 # Check for a 64-bit object if we didn't find anything. 9673 if test -z "$lt_cv_aix_libpath_"; then 9674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9675 fi 9676fi 9677rm -f core conftest.err conftest.$ac_objext \ 9678 conftest$ac_exeext conftest.$ac_ext 9679 if test -z "$lt_cv_aix_libpath_"; then 9680 lt_cv_aix_libpath_=/usr/lib:/lib 9681 fi 9682 9683fi 9684 9685 aix_libpath=$lt_cv_aix_libpath_ 9686fi 9687 9688 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9689 # Warning - without using the other run time loading flags, 9690 # -berok will link without error, but may produce a broken library. 9691 no_undefined_flag=' $wl-bernotok' 9692 allow_undefined_flag=' $wl-berok' 9693 if test yes = "$with_gnu_ld"; then 9694 # We only use this code for GNU lds that support --whole-archive. 9695 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9696 else 9697 # Exported symbols can be pulled into shared objects from archives 9698 whole_archive_flag_spec='$convenience' 9699 fi 9700 archive_cmds_need_lc=yes 9701 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9702 # -brtl affects multiple linker settings, -berok does not and is overridden later 9703 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9704 if test svr4 != "$with_aix_soname"; then 9705 # This is similar to how AIX traditionally builds its shared libraries. 9706 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' 9707 fi 9708 if test aix != "$with_aix_soname"; then 9709 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' 9710 else 9711 # used by -dlpreopen to get the symbols 9712 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9713 fi 9714 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9715 fi 9716 fi 9717 ;; 9718 9719 amigaos*) 9720 case $host_cpu in 9721 powerpc) 9722 # see comment about AmigaOS4 .so support 9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9724 archive_expsym_cmds='' 9725 ;; 9726 m68k) 9727 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)' 9728 hardcode_libdir_flag_spec='-L$libdir' 9729 hardcode_minus_L=yes 9730 ;; 9731 esac 9732 ;; 9733 9734 bsdi[45]*) 9735 export_dynamic_flag_spec=-rdynamic 9736 ;; 9737 9738 cygwin* | mingw* | pw32* | cegcc*) 9739 # When not using gcc, we currently assume that we are using 9740 # Microsoft Visual C++. 9741 # hardcode_libdir_flag_spec is actually meaningless, as there is 9742 # no search path for DLLs. 9743 case $cc_basename in 9744 cl*) 9745 # Native MSVC 9746 hardcode_libdir_flag_spec=' ' 9747 allow_undefined_flag=unsupported 9748 always_export_symbols=yes 9749 file_list_spec='@' 9750 # Tell ltmain to make .lib files, not .a files. 9751 libext=lib 9752 # Tell ltmain to make .dll files, not .so files. 9753 shrext_cmds=.dll 9754 # FIXME: Setting linknames here is a bad hack. 9755 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9756 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9757 cp "$export_symbols" "$output_objdir/$soname.def"; 9758 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9759 else 9760 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9761 fi~ 9762 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9763 linknames=' 9764 # The linker will not automatically build a static lib if we build a DLL. 9765 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9766 enable_shared_with_static_runtimes=yes 9767 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9769 # Don't use ranlib 9770 old_postinstall_cmds='chmod 644 $oldlib' 9771 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9772 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9773 case $lt_outputfile in 9774 *.exe|*.EXE) ;; 9775 *) 9776 lt_outputfile=$lt_outputfile.exe 9777 lt_tool_outputfile=$lt_tool_outputfile.exe 9778 ;; 9779 esac~ 9780 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9781 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9782 $RM "$lt_outputfile.manifest"; 9783 fi' 9784 ;; 9785 *) 9786 # Assume MSVC wrapper 9787 hardcode_libdir_flag_spec=' ' 9788 allow_undefined_flag=unsupported 9789 # Tell ltmain to make .lib files, not .a files. 9790 libext=lib 9791 # Tell ltmain to make .dll files, not .so files. 9792 shrext_cmds=.dll 9793 # FIXME: Setting linknames here is a bad hack. 9794 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9795 # The linker will automatically build a .lib file if we build a DLL. 9796 old_archive_from_new_cmds='true' 9797 # FIXME: Should let the user specify the lib program. 9798 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9799 enable_shared_with_static_runtimes=yes 9800 ;; 9801 esac 9802 ;; 9803 9804 darwin* | rhapsody*) 9805 9806 9807 archive_cmds_need_lc=no 9808 hardcode_direct=no 9809 hardcode_automatic=yes 9810 hardcode_shlibpath_var=unsupported 9811 if test yes = "$lt_cv_ld_force_load"; then 9812 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\"`' 9813 9814 else 9815 whole_archive_flag_spec='' 9816 fi 9817 link_all_deplibs=yes 9818 allow_undefined_flag=$_lt_dar_allow_undefined 9819 case $cc_basename in 9820 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9821 *) _lt_dar_can_shared=$GCC ;; 9822 esac 9823 if test yes = "$_lt_dar_can_shared"; then 9824 output_verbose_link_cmd=func_echo_all 9825 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9826 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9827 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" 9828 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" 9829 9830 else 9831 ld_shlibs=no 9832 fi 9833 9834 ;; 9835 9836 dgux*) 9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9838 hardcode_libdir_flag_spec='-L$libdir' 9839 hardcode_shlibpath_var=no 9840 ;; 9841 9842 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9843 # support. Future versions do this automatically, but an explicit c++rt0.o 9844 # does not break anything, and helps significantly (at the cost of a little 9845 # extra space). 9846 freebsd2.2*) 9847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9848 hardcode_libdir_flag_spec='-R$libdir' 9849 hardcode_direct=yes 9850 hardcode_shlibpath_var=no 9851 ;; 9852 9853 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9854 freebsd2.*) 9855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9856 hardcode_direct=yes 9857 hardcode_minus_L=yes 9858 hardcode_shlibpath_var=no 9859 ;; 9860 9861 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9862 freebsd* | dragonfly*) 9863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9864 hardcode_libdir_flag_spec='-R$libdir' 9865 hardcode_direct=yes 9866 hardcode_shlibpath_var=no 9867 ;; 9868 9869 hpux9*) 9870 if test yes = "$GCC"; then 9871 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' 9872 else 9873 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' 9874 fi 9875 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9876 hardcode_libdir_separator=: 9877 hardcode_direct=yes 9878 9879 # hardcode_minus_L: Not really in the search PATH, 9880 # but as the default location of the library. 9881 hardcode_minus_L=yes 9882 export_dynamic_flag_spec='$wl-E' 9883 ;; 9884 9885 hpux10*) 9886 if test yes,no = "$GCC,$with_gnu_ld"; then 9887 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9888 else 9889 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9890 fi 9891 if test no = "$with_gnu_ld"; then 9892 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9893 hardcode_libdir_separator=: 9894 hardcode_direct=yes 9895 hardcode_direct_absolute=yes 9896 export_dynamic_flag_spec='$wl-E' 9897 # hardcode_minus_L: Not really in the search PATH, 9898 # but as the default location of the library. 9899 hardcode_minus_L=yes 9900 fi 9901 ;; 9902 9903 hpux11*) 9904 if test yes,no = "$GCC,$with_gnu_ld"; then 9905 case $host_cpu in 9906 hppa*64*) 9907 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9908 ;; 9909 ia64*) 9910 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9911 ;; 9912 *) 9913 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9914 ;; 9915 esac 9916 else 9917 case $host_cpu in 9918 hppa*64*) 9919 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9920 ;; 9921 ia64*) 9922 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9923 ;; 9924 *) 9925 9926 # Older versions of the 11.00 compiler do not understand -b yet 9927 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9929$as_echo_n "checking if $CC understands -b... " >&6; } 9930if ${lt_cv_prog_compiler__b+:} false; then : 9931 $as_echo_n "(cached) " >&6 9932else 9933 lt_cv_prog_compiler__b=no 9934 save_LDFLAGS=$LDFLAGS 9935 LDFLAGS="$LDFLAGS -b" 9936 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9938 # The linker can only warn and ignore the option if not recognized 9939 # So say no if there are warnings 9940 if test -s conftest.err; then 9941 # Append any errors to the config.log. 9942 cat conftest.err 1>&5 9943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9945 if diff conftest.exp conftest.er2 >/dev/null; then 9946 lt_cv_prog_compiler__b=yes 9947 fi 9948 else 9949 lt_cv_prog_compiler__b=yes 9950 fi 9951 fi 9952 $RM -r conftest* 9953 LDFLAGS=$save_LDFLAGS 9954 9955fi 9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9957$as_echo "$lt_cv_prog_compiler__b" >&6; } 9958 9959if test yes = "$lt_cv_prog_compiler__b"; then 9960 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9961else 9962 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9963fi 9964 9965 ;; 9966 esac 9967 fi 9968 if test no = "$with_gnu_ld"; then 9969 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9970 hardcode_libdir_separator=: 9971 9972 case $host_cpu in 9973 hppa*64*|ia64*) 9974 hardcode_direct=no 9975 hardcode_shlibpath_var=no 9976 ;; 9977 *) 9978 hardcode_direct=yes 9979 hardcode_direct_absolute=yes 9980 export_dynamic_flag_spec='$wl-E' 9981 9982 # hardcode_minus_L: Not really in the search PATH, 9983 # but as the default location of the library. 9984 hardcode_minus_L=yes 9985 ;; 9986 esac 9987 fi 9988 ;; 9989 9990 irix5* | irix6* | nonstopux*) 9991 if test yes = "$GCC"; then 9992 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' 9993 # Try to use the -exported_symbol ld option, if it does not 9994 # work, assume that -exports_file does not work either and 9995 # implicitly export all symbols. 9996 # This should be the same for all languages, so no per-tag cache variable. 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9998$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9999if ${lt_cv_irix_exported_symbol+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001else 10002 save_LDFLAGS=$LDFLAGS 10003 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005/* end confdefs.h. */ 10006int foo (void) { return 0; } 10007_ACEOF 10008if ac_fn_c_try_link "$LINENO"; then : 10009 lt_cv_irix_exported_symbol=yes 10010else 10011 lt_cv_irix_exported_symbol=no 10012fi 10013rm -f core conftest.err conftest.$ac_objext \ 10014 conftest$ac_exeext conftest.$ac_ext 10015 LDFLAGS=$save_LDFLAGS 10016fi 10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10018$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10019 if test yes = "$lt_cv_irix_exported_symbol"; then 10020 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' 10021 fi 10022 else 10023 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' 10024 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' 10025 fi 10026 archive_cmds_need_lc='no' 10027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10028 hardcode_libdir_separator=: 10029 inherit_rpath=yes 10030 link_all_deplibs=yes 10031 ;; 10032 10033 linux*) 10034 case $cc_basename in 10035 tcc*) 10036 # Fabrice Bellard et al's Tiny C Compiler 10037 ld_shlibs=yes 10038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10039 ;; 10040 esac 10041 ;; 10042 10043 netbsd*) 10044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10046 else 10047 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10048 fi 10049 hardcode_libdir_flag_spec='-R$libdir' 10050 hardcode_direct=yes 10051 hardcode_shlibpath_var=no 10052 ;; 10053 10054 newsos6) 10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10056 hardcode_direct=yes 10057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10058 hardcode_libdir_separator=: 10059 hardcode_shlibpath_var=no 10060 ;; 10061 10062 *nto* | *qnx*) 10063 ;; 10064 10065 openbsd* | bitrig*) 10066 if test -f /usr/libexec/ld.so; then 10067 hardcode_direct=yes 10068 hardcode_shlibpath_var=no 10069 hardcode_direct_absolute=yes 10070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10072 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10073 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10074 export_dynamic_flag_spec='$wl-E' 10075 else 10076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10077 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10078 fi 10079 else 10080 ld_shlibs=no 10081 fi 10082 ;; 10083 10084 os2*) 10085 hardcode_libdir_flag_spec='-L$libdir' 10086 hardcode_minus_L=yes 10087 allow_undefined_flag=unsupported 10088 shrext_cmds=.dll 10089 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10090 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10091 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10092 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10093 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10094 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10095 emximp -o $lib $output_objdir/$libname.def' 10096 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10097 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10098 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10099 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10100 prefix_cmds="$SED"~ 10101 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10102 prefix_cmds="$prefix_cmds -e 1d"; 10103 fi~ 10104 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10105 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10106 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10107 emximp -o $lib $output_objdir/$libname.def' 10108 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10109 enable_shared_with_static_runtimes=yes 10110 ;; 10111 10112 osf3*) 10113 if test yes = "$GCC"; then 10114 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10115 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' 10116 else 10117 allow_undefined_flag=' -expect_unresolved \*' 10118 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' 10119 fi 10120 archive_cmds_need_lc='no' 10121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10122 hardcode_libdir_separator=: 10123 ;; 10124 10125 osf4* | osf5*) # as osf3* with the addition of -msym flag 10126 if test yes = "$GCC"; then 10127 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10128 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' 10129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10130 else 10131 allow_undefined_flag=' -expect_unresolved \*' 10132 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' 10133 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~ 10134 $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' 10135 10136 # Both c and cxx compiler support -rpath directly 10137 hardcode_libdir_flag_spec='-rpath $libdir' 10138 fi 10139 archive_cmds_need_lc='no' 10140 hardcode_libdir_separator=: 10141 ;; 10142 10143 solaris*) 10144 no_undefined_flag=' -z defs' 10145 if test yes = "$GCC"; then 10146 wlarc='$wl' 10147 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10149 $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' 10150 else 10151 case `$CC -V 2>&1` in 10152 *"Compilers 5.0"*) 10153 wlarc='' 10154 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10156 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10157 ;; 10158 *) 10159 wlarc='$wl' 10160 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10162 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10163 ;; 10164 esac 10165 fi 10166 hardcode_libdir_flag_spec='-R$libdir' 10167 hardcode_shlibpath_var=no 10168 case $host_os in 10169 solaris2.[0-5] | solaris2.[0-5].*) ;; 10170 *) 10171 # The compiler driver will combine and reorder linker options, 10172 # but understands '-z linker_flag'. GCC discards it without '$wl', 10173 # but is careful enough not to reorder. 10174 # Supported since Solaris 2.6 (maybe 2.5.1?) 10175 if test yes = "$GCC"; then 10176 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10177 else 10178 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10179 fi 10180 ;; 10181 esac 10182 link_all_deplibs=yes 10183 ;; 10184 10185 sunos4*) 10186 if test sequent = "$host_vendor"; then 10187 # Use $CC to link under sequent, because it throws in some extra .o 10188 # files that make .init and .fini sections work. 10189 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10190 else 10191 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10192 fi 10193 hardcode_libdir_flag_spec='-L$libdir' 10194 hardcode_direct=yes 10195 hardcode_minus_L=yes 10196 hardcode_shlibpath_var=no 10197 ;; 10198 10199 sysv4) 10200 case $host_vendor in 10201 sni) 10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10203 hardcode_direct=yes # is this really true??? 10204 ;; 10205 siemens) 10206 ## LD is ld it makes a PLAMLIB 10207 ## CC just makes a GrossModule. 10208 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10209 reload_cmds='$CC -r -o $output$reload_objs' 10210 hardcode_direct=no 10211 ;; 10212 motorola) 10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10214 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10215 ;; 10216 esac 10217 runpath_var='LD_RUN_PATH' 10218 hardcode_shlibpath_var=no 10219 ;; 10220 10221 sysv4.3*) 10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10223 hardcode_shlibpath_var=no 10224 export_dynamic_flag_spec='-Bexport' 10225 ;; 10226 10227 sysv4*MP*) 10228 if test -d /usr/nec; then 10229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10230 hardcode_shlibpath_var=no 10231 runpath_var=LD_RUN_PATH 10232 hardcode_runpath_var=yes 10233 ld_shlibs=yes 10234 fi 10235 ;; 10236 10237 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10238 no_undefined_flag='$wl-z,text' 10239 archive_cmds_need_lc=no 10240 hardcode_shlibpath_var=no 10241 runpath_var='LD_RUN_PATH' 10242 10243 if test yes = "$GCC"; then 10244 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10245 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10246 else 10247 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10248 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10249 fi 10250 ;; 10251 10252 sysv5* | sco3.2v5* | sco5v6*) 10253 # Note: We CANNOT use -z defs as we might desire, because we do not 10254 # link with -lc, and that would cause any symbols used from libc to 10255 # always be unresolved, which means just about no library would 10256 # ever link correctly. If we're not using GNU ld we use -z text 10257 # though, which does catch some bad symbols but isn't as heavy-handed 10258 # as -z defs. 10259 no_undefined_flag='$wl-z,text' 10260 allow_undefined_flag='$wl-z,nodefs' 10261 archive_cmds_need_lc=no 10262 hardcode_shlibpath_var=no 10263 hardcode_libdir_flag_spec='$wl-R,$libdir' 10264 hardcode_libdir_separator=':' 10265 link_all_deplibs=yes 10266 export_dynamic_flag_spec='$wl-Bexport' 10267 runpath_var='LD_RUN_PATH' 10268 10269 if test yes = "$GCC"; then 10270 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10271 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10272 else 10273 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10274 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10275 fi 10276 ;; 10277 10278 uts4*) 10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10280 hardcode_libdir_flag_spec='-L$libdir' 10281 hardcode_shlibpath_var=no 10282 ;; 10283 10284 *) 10285 ld_shlibs=no 10286 ;; 10287 esac 10288 10289 if test sni = "$host_vendor"; then 10290 case $host in 10291 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10292 export_dynamic_flag_spec='$wl-Blargedynsym' 10293 ;; 10294 esac 10295 fi 10296 fi 10297 10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10299$as_echo "$ld_shlibs" >&6; } 10300test no = "$ld_shlibs" && can_build_shared=no 10301 10302with_gnu_ld=$with_gnu_ld 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318# 10319# Do we need to explicitly link libc? 10320# 10321case "x$archive_cmds_need_lc" in 10322x|xyes) 10323 # Assume -lc should be added 10324 archive_cmds_need_lc=yes 10325 10326 if test yes,yes = "$GCC,$enable_shared"; then 10327 case $archive_cmds in 10328 *'~'*) 10329 # FIXME: we may have to deal with multi-command sequences. 10330 ;; 10331 '$CC '*) 10332 # Test whether the compiler implicitly links with -lc since on some 10333 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10334 # to ld, don't add -lc before -lgcc. 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10336$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10337if ${lt_cv_archive_cmds_need_lc+:} false; then : 10338 $as_echo_n "(cached) " >&6 10339else 10340 $RM conftest* 10341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10342 10343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10344 (eval $ac_compile) 2>&5 10345 ac_status=$? 10346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10347 test $ac_status = 0; } 2>conftest.err; then 10348 soname=conftest 10349 lib=conftest 10350 libobjs=conftest.$ac_objext 10351 deplibs= 10352 wl=$lt_prog_compiler_wl 10353 pic_flag=$lt_prog_compiler_pic 10354 compiler_flags=-v 10355 linker_flags=-v 10356 verstring= 10357 output_objdir=. 10358 libname=conftest 10359 lt_save_allow_undefined_flag=$allow_undefined_flag 10360 allow_undefined_flag= 10361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10362 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10363 ac_status=$? 10364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10365 test $ac_status = 0; } 10366 then 10367 lt_cv_archive_cmds_need_lc=no 10368 else 10369 lt_cv_archive_cmds_need_lc=yes 10370 fi 10371 allow_undefined_flag=$lt_save_allow_undefined_flag 10372 else 10373 cat conftest.err 1>&5 10374 fi 10375 $RM conftest* 10376 10377fi 10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10379$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10380 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10381 ;; 10382 esac 10383 fi 10384 ;; 10385esac 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10539$as_echo_n "checking dynamic linker characteristics... " >&6; } 10540 10541if test yes = "$GCC"; then 10542 case $host_os in 10543 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10544 *) lt_awk_arg='/^libraries:/' ;; 10545 esac 10546 case $host_os in 10547 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10548 *) lt_sed_strip_eq='s|=/|/|g' ;; 10549 esac 10550 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10551 case $lt_search_path_spec in 10552 *\;*) 10553 # if the path contains ";" then we assume it to be the separator 10554 # otherwise default to the standard path separator (i.e. ":") - it is 10555 # assumed that no part of a normal pathname contains ";" but that should 10556 # okay in the real world where ";" in dirpaths is itself problematic. 10557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10558 ;; 10559 *) 10560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10561 ;; 10562 esac 10563 # Ok, now we have the path, separated by spaces, we can step through it 10564 # and add multilib dir if necessary... 10565 lt_tmp_lt_search_path_spec= 10566 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10567 # ...but if some path component already ends with the multilib dir we assume 10568 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10569 case "$lt_multi_os_dir; $lt_search_path_spec " in 10570 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10571 lt_multi_os_dir= 10572 ;; 10573 esac 10574 for lt_sys_path in $lt_search_path_spec; do 10575 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10576 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10577 elif test -n "$lt_multi_os_dir"; then 10578 test -d "$lt_sys_path" && \ 10579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10580 fi 10581 done 10582 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10583BEGIN {RS = " "; FS = "/|\n";} { 10584 lt_foo = ""; 10585 lt_count = 0; 10586 for (lt_i = NF; lt_i > 0; lt_i--) { 10587 if ($lt_i != "" && $lt_i != ".") { 10588 if ($lt_i == "..") { 10589 lt_count++; 10590 } else { 10591 if (lt_count == 0) { 10592 lt_foo = "/" $lt_i lt_foo; 10593 } else { 10594 lt_count--; 10595 } 10596 } 10597 } 10598 } 10599 if (lt_foo != "") { lt_freq[lt_foo]++; } 10600 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10601}'` 10602 # AWK program above erroneously prepends '/' to C:/dos/paths 10603 # for these hosts. 10604 case $host_os in 10605 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10606 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10607 esac 10608 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10609else 10610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10611fi 10612library_names_spec= 10613libname_spec='lib$name' 10614soname_spec= 10615shrext_cmds=.so 10616postinstall_cmds= 10617postuninstall_cmds= 10618finish_cmds= 10619finish_eval= 10620shlibpath_var= 10621shlibpath_overrides_runpath=unknown 10622version_type=none 10623dynamic_linker="$host_os ld.so" 10624sys_lib_dlsearch_path_spec="/lib /usr/lib" 10625need_lib_prefix=unknown 10626hardcode_into_libs=no 10627 10628# when you set need_version to no, make sure it does not cause -set_version 10629# flags to be left without arguments 10630need_version=unknown 10631 10632 10633 10634case $host_os in 10635aix3*) 10636 version_type=linux # correct to gnu/linux during the next big refactor 10637 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10638 shlibpath_var=LIBPATH 10639 10640 # AIX 3 has no versioning support, so we append a major version to the name. 10641 soname_spec='$libname$release$shared_ext$major' 10642 ;; 10643 10644aix[4-9]*) 10645 version_type=linux # correct to gnu/linux during the next big refactor 10646 need_lib_prefix=no 10647 need_version=no 10648 hardcode_into_libs=yes 10649 if test ia64 = "$host_cpu"; then 10650 # AIX 5 supports IA64 10651 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10652 shlibpath_var=LD_LIBRARY_PATH 10653 else 10654 # With GCC up to 2.95.x, collect2 would create an import file 10655 # for dependence libraries. The import file would start with 10656 # the line '#! .'. This would cause the generated library to 10657 # depend on '.', always an invalid library. This was fixed in 10658 # development snapshots of GCC prior to 3.0. 10659 case $host_os in 10660 aix4 | aix4.[01] | aix4.[01].*) 10661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10662 echo ' yes ' 10663 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10664 : 10665 else 10666 can_build_shared=no 10667 fi 10668 ;; 10669 esac 10670 # Using Import Files as archive members, it is possible to support 10671 # filename-based versioning of shared library archives on AIX. While 10672 # this would work for both with and without runtime linking, it will 10673 # prevent static linking of such archives. So we do filename-based 10674 # shared library versioning with .so extension only, which is used 10675 # when both runtime linking and shared linking is enabled. 10676 # Unfortunately, runtime linking may impact performance, so we do 10677 # not want this to be the default eventually. Also, we use the 10678 # versioned .so libs for executables only if there is the -brtl 10679 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10680 # To allow for filename-based versioning support, we need to create 10681 # libNAME.so.V as an archive file, containing: 10682 # *) an Import File, referring to the versioned filename of the 10683 # archive as well as the shared archive member, telling the 10684 # bitwidth (32 or 64) of that shared object, and providing the 10685 # list of exported symbols of that shared object, eventually 10686 # decorated with the 'weak' keyword 10687 # *) the shared object with the F_LOADONLY flag set, to really avoid 10688 # it being seen by the linker. 10689 # At run time we better use the real file rather than another symlink, 10690 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10691 10692 case $with_aix_soname,$aix_use_runtimelinking in 10693 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10694 # soname into executable. Probably we can add versioning support to 10695 # collect2, so additional links can be useful in future. 10696 aix,yes) # traditional libtool 10697 dynamic_linker='AIX unversionable lib.so' 10698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10699 # instead of lib<name>.a to let people know that these are not 10700 # typical AIX shared libraries. 10701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10702 ;; 10703 aix,no) # traditional AIX only 10704 dynamic_linker='AIX lib.a(lib.so.V)' 10705 # We preserve .a as extension for shared libraries through AIX4.2 10706 # and later when we are not doing run time linking. 10707 library_names_spec='$libname$release.a $libname.a' 10708 soname_spec='$libname$release$shared_ext$major' 10709 ;; 10710 svr4,*) # full svr4 only 10711 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10712 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10713 # We do not specify a path in Import Files, so LIBPATH fires. 10714 shlibpath_overrides_runpath=yes 10715 ;; 10716 *,yes) # both, prefer svr4 10717 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10718 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10719 # unpreferred sharedlib libNAME.a needs extra handling 10720 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"' 10721 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"' 10722 # We do not specify a path in Import Files, so LIBPATH fires. 10723 shlibpath_overrides_runpath=yes 10724 ;; 10725 *,no) # both, prefer aix 10726 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10727 library_names_spec='$libname$release.a $libname.a' 10728 soname_spec='$libname$release$shared_ext$major' 10729 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10730 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)' 10731 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"' 10732 ;; 10733 esac 10734 shlibpath_var=LIBPATH 10735 fi 10736 ;; 10737 10738amigaos*) 10739 case $host_cpu in 10740 powerpc) 10741 # Since July 2007 AmigaOS4 officially supports .so libraries. 10742 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10744 ;; 10745 m68k) 10746 library_names_spec='$libname.ixlibrary $libname.a' 10747 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10748 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' 10749 ;; 10750 esac 10751 ;; 10752 10753beos*) 10754 library_names_spec='$libname$shared_ext' 10755 dynamic_linker="$host_os ld.so" 10756 shlibpath_var=LIBRARY_PATH 10757 ;; 10758 10759bsdi[45]*) 10760 version_type=linux # correct to gnu/linux during the next big refactor 10761 need_version=no 10762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10763 soname_spec='$libname$release$shared_ext$major' 10764 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10765 shlibpath_var=LD_LIBRARY_PATH 10766 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10767 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10768 # the default ld.so.conf also contains /usr/contrib/lib and 10769 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10770 # libtool to hard-code these into programs 10771 ;; 10772 10773cygwin* | mingw* | pw32* | cegcc*) 10774 version_type=windows 10775 shrext_cmds=.dll 10776 need_version=no 10777 need_lib_prefix=no 10778 10779 case $GCC,$cc_basename in 10780 yes,*) 10781 # gcc 10782 library_names_spec='$libname.dll.a' 10783 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10784 postinstall_cmds='base_file=`basename \$file`~ 10785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10786 dldir=$destdir/`dirname \$dlpath`~ 10787 test -d \$dldir || mkdir -p \$dldir~ 10788 $install_prog $dir/$dlname \$dldir/$dlname~ 10789 chmod a+x \$dldir/$dlname~ 10790 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10791 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10792 fi' 10793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10794 dlpath=$dir/\$dldll~ 10795 $RM \$dlpath' 10796 shlibpath_overrides_runpath=yes 10797 10798 case $host_os in 10799 cygwin*) 10800 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10801 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10802 10803 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10804 ;; 10805 mingw* | cegcc*) 10806 # MinGW DLLs use traditional 'lib' prefix 10807 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10808 ;; 10809 pw32*) 10810 # pw32 DLLs use 'pw' prefix rather than 'lib' 10811 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10812 ;; 10813 esac 10814 dynamic_linker='Win32 ld.exe' 10815 ;; 10816 10817 *,cl*) 10818 # Native MSVC 10819 libname_spec='$name' 10820 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10821 library_names_spec='$libname.dll.lib' 10822 10823 case $build_os in 10824 mingw*) 10825 sys_lib_search_path_spec= 10826 lt_save_ifs=$IFS 10827 IFS=';' 10828 for lt_path in $LIB 10829 do 10830 IFS=$lt_save_ifs 10831 # Let DOS variable expansion print the short 8.3 style file name. 10832 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10833 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10834 done 10835 IFS=$lt_save_ifs 10836 # Convert to MSYS style. 10837 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10838 ;; 10839 cygwin*) 10840 # Convert to unix form, then to dos form, then back to unix form 10841 # but this time dos style (no spaces!) so that the unix form looks 10842 # like /cygdrive/c/PROGRA~1:/cygdr... 10843 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10844 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10845 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10846 ;; 10847 *) 10848 sys_lib_search_path_spec=$LIB 10849 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10850 # It is most probably a Windows format PATH. 10851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10852 else 10853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10854 fi 10855 # FIXME: find the short name or the path components, as spaces are 10856 # common. (e.g. "Program Files" -> "PROGRA~1") 10857 ;; 10858 esac 10859 10860 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10861 postinstall_cmds='base_file=`basename \$file`~ 10862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10863 dldir=$destdir/`dirname \$dlpath`~ 10864 test -d \$dldir || mkdir -p \$dldir~ 10865 $install_prog $dir/$dlname \$dldir/$dlname' 10866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10867 dlpath=$dir/\$dldll~ 10868 $RM \$dlpath' 10869 shlibpath_overrides_runpath=yes 10870 dynamic_linker='Win32 link.exe' 10871 ;; 10872 10873 *) 10874 # Assume MSVC wrapper 10875 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10876 dynamic_linker='Win32 ld.exe' 10877 ;; 10878 esac 10879 # FIXME: first we should search . and the directory the executable is in 10880 shlibpath_var=PATH 10881 ;; 10882 10883darwin* | rhapsody*) 10884 dynamic_linker="$host_os dyld" 10885 version_type=darwin 10886 need_lib_prefix=no 10887 need_version=no 10888 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10889 soname_spec='$libname$release$major$shared_ext' 10890 shlibpath_overrides_runpath=yes 10891 shlibpath_var=DYLD_LIBRARY_PATH 10892 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10893 10894 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10896 ;; 10897 10898dgux*) 10899 version_type=linux # correct to gnu/linux during the next big refactor 10900 need_lib_prefix=no 10901 need_version=no 10902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10903 soname_spec='$libname$release$shared_ext$major' 10904 shlibpath_var=LD_LIBRARY_PATH 10905 ;; 10906 10907freebsd* | dragonfly*) 10908 # DragonFly does not have aout. When/if they implement a new 10909 # versioning mechanism, adjust this. 10910 if test -x /usr/bin/objformat; then 10911 objformat=`/usr/bin/objformat` 10912 else 10913 case $host_os in 10914 freebsd[23].*) objformat=aout ;; 10915 *) objformat=elf ;; 10916 esac 10917 fi 10918 version_type=freebsd-$objformat 10919 case $version_type in 10920 freebsd-elf*) 10921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10922 soname_spec='$libname$release$shared_ext$major' 10923 need_version=no 10924 need_lib_prefix=no 10925 ;; 10926 freebsd-*) 10927 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10928 need_version=yes 10929 ;; 10930 esac 10931 shlibpath_var=LD_LIBRARY_PATH 10932 case $host_os in 10933 freebsd2.*) 10934 shlibpath_overrides_runpath=yes 10935 ;; 10936 freebsd3.[01]* | freebsdelf3.[01]*) 10937 shlibpath_overrides_runpath=yes 10938 hardcode_into_libs=yes 10939 ;; 10940 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10941 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10942 shlibpath_overrides_runpath=no 10943 hardcode_into_libs=yes 10944 ;; 10945 *) # from 4.6 on, and DragonFly 10946 shlibpath_overrides_runpath=yes 10947 hardcode_into_libs=yes 10948 ;; 10949 esac 10950 ;; 10951 10952haiku*) 10953 version_type=linux # correct to gnu/linux during the next big refactor 10954 need_lib_prefix=no 10955 need_version=no 10956 dynamic_linker="$host_os runtime_loader" 10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10958 soname_spec='$libname$release$shared_ext$major' 10959 shlibpath_var=LIBRARY_PATH 10960 shlibpath_overrides_runpath=no 10961 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10962 hardcode_into_libs=yes 10963 ;; 10964 10965hpux9* | hpux10* | hpux11*) 10966 # Give a soname corresponding to the major version so that dld.sl refuses to 10967 # link against other versions. 10968 version_type=sunos 10969 need_lib_prefix=no 10970 need_version=no 10971 case $host_cpu in 10972 ia64*) 10973 shrext_cmds='.so' 10974 hardcode_into_libs=yes 10975 dynamic_linker="$host_os dld.so" 10976 shlibpath_var=LD_LIBRARY_PATH 10977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10979 soname_spec='$libname$release$shared_ext$major' 10980 if test 32 = "$HPUX_IA64_MODE"; then 10981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10982 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10983 else 10984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10985 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10986 fi 10987 ;; 10988 hppa*64*) 10989 shrext_cmds='.sl' 10990 hardcode_into_libs=yes 10991 dynamic_linker="$host_os dld.sl" 10992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10995 soname_spec='$libname$release$shared_ext$major' 10996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10998 ;; 10999 *) 11000 shrext_cmds='.sl' 11001 dynamic_linker="$host_os dld.sl" 11002 shlibpath_var=SHLIB_PATH 11003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11005 soname_spec='$libname$release$shared_ext$major' 11006 ;; 11007 esac 11008 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11009 postinstall_cmds='chmod 555 $lib' 11010 # or fails outright, so override atomically: 11011 install_override_mode=555 11012 ;; 11013 11014interix[3-9]*) 11015 version_type=linux # correct to gnu/linux during the next big refactor 11016 need_lib_prefix=no 11017 need_version=no 11018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11019 soname_spec='$libname$release$shared_ext$major' 11020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11021 shlibpath_var=LD_LIBRARY_PATH 11022 shlibpath_overrides_runpath=no 11023 hardcode_into_libs=yes 11024 ;; 11025 11026irix5* | irix6* | nonstopux*) 11027 case $host_os in 11028 nonstopux*) version_type=nonstopux ;; 11029 *) 11030 if test yes = "$lt_cv_prog_gnu_ld"; then 11031 version_type=linux # correct to gnu/linux during the next big refactor 11032 else 11033 version_type=irix 11034 fi ;; 11035 esac 11036 need_lib_prefix=no 11037 need_version=no 11038 soname_spec='$libname$release$shared_ext$major' 11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11040 case $host_os in 11041 irix5* | nonstopux*) 11042 libsuff= shlibsuff= 11043 ;; 11044 *) 11045 case $LD in # libtool.m4 will add one of these switches to LD 11046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11047 libsuff= shlibsuff= libmagic=32-bit;; 11048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11049 libsuff=32 shlibsuff=N32 libmagic=N32;; 11050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11051 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11052 *) libsuff= shlibsuff= libmagic=never-match;; 11053 esac 11054 ;; 11055 esac 11056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11057 shlibpath_overrides_runpath=no 11058 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11059 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11060 hardcode_into_libs=yes 11061 ;; 11062 11063# No shared lib support for Linux oldld, aout, or coff. 11064linux*oldld* | linux*aout* | linux*coff*) 11065 dynamic_linker=no 11066 ;; 11067 11068linux*android*) 11069 version_type=none # Android doesn't support versioned libraries. 11070 need_lib_prefix=no 11071 need_version=no 11072 library_names_spec='$libname$release$shared_ext' 11073 soname_spec='$libname$release$shared_ext' 11074 finish_cmds= 11075 shlibpath_var=LD_LIBRARY_PATH 11076 shlibpath_overrides_runpath=yes 11077 11078 # This implies no fast_install, which is unacceptable. 11079 # Some rework will be needed to allow for fast_install 11080 # before this can be enabled. 11081 hardcode_into_libs=yes 11082 11083 dynamic_linker='Android linker' 11084 # Don't embed -rpath directories since the linker doesn't support them. 11085 hardcode_libdir_flag_spec='-L$libdir' 11086 ;; 11087 11088# This must be glibc/ELF. 11089linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11090 version_type=linux # correct to gnu/linux during the next big refactor 11091 need_lib_prefix=no 11092 need_version=no 11093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11094 soname_spec='$libname$release$shared_ext$major' 11095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11096 shlibpath_var=LD_LIBRARY_PATH 11097 shlibpath_overrides_runpath=no 11098 11099 # Some binutils ld are patched to set DT_RUNPATH 11100 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11101 $as_echo_n "(cached) " >&6 11102else 11103 lt_cv_shlibpath_overrides_runpath=no 11104 save_LDFLAGS=$LDFLAGS 11105 save_libdir=$libdir 11106 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11107 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11109/* end confdefs.h. */ 11110 11111int 11112main () 11113{ 11114 11115 ; 11116 return 0; 11117} 11118_ACEOF 11119if ac_fn_c_try_link "$LINENO"; then : 11120 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11121 lt_cv_shlibpath_overrides_runpath=yes 11122fi 11123fi 11124rm -f core conftest.err conftest.$ac_objext \ 11125 conftest$ac_exeext conftest.$ac_ext 11126 LDFLAGS=$save_LDFLAGS 11127 libdir=$save_libdir 11128 11129fi 11130 11131 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11132 11133 # This implies no fast_install, which is unacceptable. 11134 # Some rework will be needed to allow for fast_install 11135 # before this can be enabled. 11136 hardcode_into_libs=yes 11137 11138 # Add ABI-specific directories to the system library path. 11139 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11140 11141 # Ideally, we could use ldconfig to report *all* directores which are 11142 # searched for libraries, however this is still not possible. Aside from not 11143 # being certain /sbin/ldconfig is available, command 11144 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11145 # even though it is searched at run-time. Try to do the best guess by 11146 # appending ld.so.conf contents (and includes) to the search path. 11147 if test -f /etc/ld.so.conf; then 11148 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' ' '` 11149 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11150 fi 11151 11152 # We used to test for /lib/ld.so.1 and disable shared libraries on 11153 # powerpc, because MkLinux only supported shared libraries with the 11154 # GNU dynamic linker. Since this was broken with cross compilers, 11155 # most powerpc-linux boxes support dynamic linking these days and 11156 # people can always --disable-shared, the test was removed, and we 11157 # assume the GNU/Linux dynamic linker is in use. 11158 dynamic_linker='GNU/Linux ld.so' 11159 ;; 11160 11161netbsd*) 11162 version_type=sunos 11163 need_lib_prefix=no 11164 need_version=no 11165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11166 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11168 dynamic_linker='NetBSD (a.out) ld.so' 11169 else 11170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11171 soname_spec='$libname$release$shared_ext$major' 11172 dynamic_linker='NetBSD ld.elf_so' 11173 fi 11174 shlibpath_var=LD_LIBRARY_PATH 11175 shlibpath_overrides_runpath=yes 11176 hardcode_into_libs=yes 11177 ;; 11178 11179newsos6) 11180 version_type=linux # correct to gnu/linux during the next big refactor 11181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11182 shlibpath_var=LD_LIBRARY_PATH 11183 shlibpath_overrides_runpath=yes 11184 ;; 11185 11186*nto* | *qnx*) 11187 version_type=qnx 11188 need_lib_prefix=no 11189 need_version=no 11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11191 soname_spec='$libname$release$shared_ext$major' 11192 shlibpath_var=LD_LIBRARY_PATH 11193 shlibpath_overrides_runpath=no 11194 hardcode_into_libs=yes 11195 dynamic_linker='ldqnx.so' 11196 ;; 11197 11198openbsd* | bitrig*) 11199 version_type=sunos 11200 sys_lib_dlsearch_path_spec=/usr/lib 11201 need_lib_prefix=no 11202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11203 need_version=no 11204 else 11205 need_version=yes 11206 fi 11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11209 shlibpath_var=LD_LIBRARY_PATH 11210 shlibpath_overrides_runpath=yes 11211 ;; 11212 11213os2*) 11214 libname_spec='$name' 11215 version_type=windows 11216 shrext_cmds=.dll 11217 need_version=no 11218 need_lib_prefix=no 11219 # OS/2 can only load a DLL with a base name of 8 characters or less. 11220 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11221 v=$($ECHO $release$versuffix | tr -d .-); 11222 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11223 $ECHO $n$v`$shared_ext' 11224 library_names_spec='${libname}_dll.$libext' 11225 dynamic_linker='OS/2 ld.exe' 11226 shlibpath_var=BEGINLIBPATH 11227 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11229 postinstall_cmds='base_file=`basename \$file`~ 11230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11231 dldir=$destdir/`dirname \$dlpath`~ 11232 test -d \$dldir || mkdir -p \$dldir~ 11233 $install_prog $dir/$dlname \$dldir/$dlname~ 11234 chmod a+x \$dldir/$dlname~ 11235 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11236 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11237 fi' 11238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11239 dlpath=$dir/\$dldll~ 11240 $RM \$dlpath' 11241 ;; 11242 11243osf3* | osf4* | osf5*) 11244 version_type=osf 11245 need_lib_prefix=no 11246 need_version=no 11247 soname_spec='$libname$release$shared_ext$major' 11248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11249 shlibpath_var=LD_LIBRARY_PATH 11250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11252 ;; 11253 11254rdos*) 11255 dynamic_linker=no 11256 ;; 11257 11258solaris*) 11259 version_type=linux # correct to gnu/linux during the next big refactor 11260 need_lib_prefix=no 11261 need_version=no 11262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11263 soname_spec='$libname$release$shared_ext$major' 11264 shlibpath_var=LD_LIBRARY_PATH 11265 shlibpath_overrides_runpath=yes 11266 hardcode_into_libs=yes 11267 # ldd complains unless libraries are executable 11268 postinstall_cmds='chmod +x $lib' 11269 ;; 11270 11271sunos4*) 11272 version_type=sunos 11273 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11275 shlibpath_var=LD_LIBRARY_PATH 11276 shlibpath_overrides_runpath=yes 11277 if test yes = "$with_gnu_ld"; then 11278 need_lib_prefix=no 11279 fi 11280 need_version=yes 11281 ;; 11282 11283sysv4 | sysv4.3*) 11284 version_type=linux # correct to gnu/linux during the next big refactor 11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11286 soname_spec='$libname$release$shared_ext$major' 11287 shlibpath_var=LD_LIBRARY_PATH 11288 case $host_vendor in 11289 sni) 11290 shlibpath_overrides_runpath=no 11291 need_lib_prefix=no 11292 runpath_var=LD_RUN_PATH 11293 ;; 11294 siemens) 11295 need_lib_prefix=no 11296 ;; 11297 motorola) 11298 need_lib_prefix=no 11299 need_version=no 11300 shlibpath_overrides_runpath=no 11301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11302 ;; 11303 esac 11304 ;; 11305 11306sysv4*MP*) 11307 if test -d /usr/nec; then 11308 version_type=linux # correct to gnu/linux during the next big refactor 11309 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11310 soname_spec='$libname$shared_ext.$major' 11311 shlibpath_var=LD_LIBRARY_PATH 11312 fi 11313 ;; 11314 11315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11316 version_type=sco 11317 need_lib_prefix=no 11318 need_version=no 11319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11320 soname_spec='$libname$release$shared_ext$major' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=yes 11323 hardcode_into_libs=yes 11324 if test yes = "$with_gnu_ld"; then 11325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11326 else 11327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11328 case $host_os in 11329 sco3.2v5*) 11330 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11331 ;; 11332 esac 11333 fi 11334 sys_lib_dlsearch_path_spec='/usr/lib' 11335 ;; 11336 11337tpf*) 11338 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11339 version_type=linux # correct to gnu/linux during the next big refactor 11340 need_lib_prefix=no 11341 need_version=no 11342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11343 shlibpath_var=LD_LIBRARY_PATH 11344 shlibpath_overrides_runpath=no 11345 hardcode_into_libs=yes 11346 ;; 11347 11348uts4*) 11349 version_type=linux # correct to gnu/linux during the next big refactor 11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11351 soname_spec='$libname$release$shared_ext$major' 11352 shlibpath_var=LD_LIBRARY_PATH 11353 ;; 11354 11355*) 11356 dynamic_linker=no 11357 ;; 11358esac 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11360$as_echo "$dynamic_linker" >&6; } 11361test no = "$dynamic_linker" && can_build_shared=no 11362 11363variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11364if test yes = "$GCC"; then 11365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11366fi 11367 11368if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11369 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11370fi 11371 11372if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11373 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11374fi 11375 11376# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11377configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11378 11379# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11380func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11381 11382# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11383configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11482$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11483hardcode_action= 11484if test -n "$hardcode_libdir_flag_spec" || 11485 test -n "$runpath_var" || 11486 test yes = "$hardcode_automatic"; then 11487 11488 # We can hardcode non-existent directories. 11489 if test no != "$hardcode_direct" && 11490 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11491 # have to relink, otherwise we might link with an installed library 11492 # when we should be linking with a yet-to-be-installed one 11493 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11494 test no != "$hardcode_minus_L"; then 11495 # Linking always hardcodes the temporary library directory. 11496 hardcode_action=relink 11497 else 11498 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11499 hardcode_action=immediate 11500 fi 11501else 11502 # We cannot hardcode anything, or else we can only hardcode existing 11503 # directories. 11504 hardcode_action=unsupported 11505fi 11506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11507$as_echo "$hardcode_action" >&6; } 11508 11509if test relink = "$hardcode_action" || 11510 test yes = "$inherit_rpath"; then 11511 # Fast installation is not supported 11512 enable_fast_install=no 11513elif test yes = "$shlibpath_overrides_runpath" || 11514 test no = "$enable_shared"; then 11515 # Fast installation is not necessary 11516 enable_fast_install=needless 11517fi 11518 11519 11520 11521 11522 11523 11524 if test yes != "$enable_dlopen"; then 11525 enable_dlopen=unknown 11526 enable_dlopen_self=unknown 11527 enable_dlopen_self_static=unknown 11528else 11529 lt_cv_dlopen=no 11530 lt_cv_dlopen_libs= 11531 11532 case $host_os in 11533 beos*) 11534 lt_cv_dlopen=load_add_on 11535 lt_cv_dlopen_libs= 11536 lt_cv_dlopen_self=yes 11537 ;; 11538 11539 mingw* | pw32* | cegcc*) 11540 lt_cv_dlopen=LoadLibrary 11541 lt_cv_dlopen_libs= 11542 ;; 11543 11544 cygwin*) 11545 lt_cv_dlopen=dlopen 11546 lt_cv_dlopen_libs= 11547 ;; 11548 11549 darwin*) 11550 # if libdl is installed we need to link against it 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11552$as_echo_n "checking for dlopen in -ldl... " >&6; } 11553if ${ac_cv_lib_dl_dlopen+:} false; then : 11554 $as_echo_n "(cached) " >&6 11555else 11556 ac_check_lib_save_LIBS=$LIBS 11557LIBS="-ldl $LIBS" 11558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11559/* end confdefs.h. */ 11560 11561/* Override any GCC internal prototype to avoid an error. 11562 Use char because int might match the return type of a GCC 11563 builtin and then its argument prototype would still apply. */ 11564#ifdef __cplusplus 11565extern "C" 11566#endif 11567char dlopen (); 11568int 11569main () 11570{ 11571return dlopen (); 11572 ; 11573 return 0; 11574} 11575_ACEOF 11576if ac_fn_c_try_link "$LINENO"; then : 11577 ac_cv_lib_dl_dlopen=yes 11578else 11579 ac_cv_lib_dl_dlopen=no 11580fi 11581rm -f core conftest.err conftest.$ac_objext \ 11582 conftest$ac_exeext conftest.$ac_ext 11583LIBS=$ac_check_lib_save_LIBS 11584fi 11585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11586$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11587if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11588 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11589else 11590 11591 lt_cv_dlopen=dyld 11592 lt_cv_dlopen_libs= 11593 lt_cv_dlopen_self=yes 11594 11595fi 11596 11597 ;; 11598 11599 tpf*) 11600 # Don't try to run any link tests for TPF. We know it's impossible 11601 # because TPF is a cross-compiler, and we know how we open DSOs. 11602 lt_cv_dlopen=dlopen 11603 lt_cv_dlopen_libs= 11604 lt_cv_dlopen_self=no 11605 ;; 11606 11607 *) 11608 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11609if test "x$ac_cv_func_shl_load" = xyes; then : 11610 lt_cv_dlopen=shl_load 11611else 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11613$as_echo_n "checking for shl_load in -ldld... " >&6; } 11614if ${ac_cv_lib_dld_shl_load+:} false; then : 11615 $as_echo_n "(cached) " >&6 11616else 11617 ac_check_lib_save_LIBS=$LIBS 11618LIBS="-ldld $LIBS" 11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11620/* end confdefs.h. */ 11621 11622/* Override any GCC internal prototype to avoid an error. 11623 Use char because int might match the return type of a GCC 11624 builtin and then its argument prototype would still apply. */ 11625#ifdef __cplusplus 11626extern "C" 11627#endif 11628char shl_load (); 11629int 11630main () 11631{ 11632return shl_load (); 11633 ; 11634 return 0; 11635} 11636_ACEOF 11637if ac_fn_c_try_link "$LINENO"; then : 11638 ac_cv_lib_dld_shl_load=yes 11639else 11640 ac_cv_lib_dld_shl_load=no 11641fi 11642rm -f core conftest.err conftest.$ac_objext \ 11643 conftest$ac_exeext conftest.$ac_ext 11644LIBS=$ac_check_lib_save_LIBS 11645fi 11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11647$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11648if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11649 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11650else 11651 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11652if test "x$ac_cv_func_dlopen" = xyes; then : 11653 lt_cv_dlopen=dlopen 11654else 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11656$as_echo_n "checking for dlopen in -ldl... " >&6; } 11657if ${ac_cv_lib_dl_dlopen+:} false; then : 11658 $as_echo_n "(cached) " >&6 11659else 11660 ac_check_lib_save_LIBS=$LIBS 11661LIBS="-ldl $LIBS" 11662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11663/* end confdefs.h. */ 11664 11665/* Override any GCC internal prototype to avoid an error. 11666 Use char because int might match the return type of a GCC 11667 builtin and then its argument prototype would still apply. */ 11668#ifdef __cplusplus 11669extern "C" 11670#endif 11671char dlopen (); 11672int 11673main () 11674{ 11675return dlopen (); 11676 ; 11677 return 0; 11678} 11679_ACEOF 11680if ac_fn_c_try_link "$LINENO"; then : 11681 ac_cv_lib_dl_dlopen=yes 11682else 11683 ac_cv_lib_dl_dlopen=no 11684fi 11685rm -f core conftest.err conftest.$ac_objext \ 11686 conftest$ac_exeext conftest.$ac_ext 11687LIBS=$ac_check_lib_save_LIBS 11688fi 11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11690$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11691if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11693else 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11695$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11696if ${ac_cv_lib_svld_dlopen+:} false; then : 11697 $as_echo_n "(cached) " >&6 11698else 11699 ac_check_lib_save_LIBS=$LIBS 11700LIBS="-lsvld $LIBS" 11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703 11704/* Override any GCC internal prototype to avoid an error. 11705 Use char because int might match the return type of a GCC 11706 builtin and then its argument prototype would still apply. */ 11707#ifdef __cplusplus 11708extern "C" 11709#endif 11710char dlopen (); 11711int 11712main () 11713{ 11714return dlopen (); 11715 ; 11716 return 0; 11717} 11718_ACEOF 11719if ac_fn_c_try_link "$LINENO"; then : 11720 ac_cv_lib_svld_dlopen=yes 11721else 11722 ac_cv_lib_svld_dlopen=no 11723fi 11724rm -f core conftest.err conftest.$ac_objext \ 11725 conftest$ac_exeext conftest.$ac_ext 11726LIBS=$ac_check_lib_save_LIBS 11727fi 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11729$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11730if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11731 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11732else 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11734$as_echo_n "checking for dld_link in -ldld... " >&6; } 11735if ${ac_cv_lib_dld_dld_link+:} false; then : 11736 $as_echo_n "(cached) " >&6 11737else 11738 ac_check_lib_save_LIBS=$LIBS 11739LIBS="-ldld $LIBS" 11740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11741/* end confdefs.h. */ 11742 11743/* Override any GCC internal prototype to avoid an error. 11744 Use char because int might match the return type of a GCC 11745 builtin and then its argument prototype would still apply. */ 11746#ifdef __cplusplus 11747extern "C" 11748#endif 11749char dld_link (); 11750int 11751main () 11752{ 11753return dld_link (); 11754 ; 11755 return 0; 11756} 11757_ACEOF 11758if ac_fn_c_try_link "$LINENO"; then : 11759 ac_cv_lib_dld_dld_link=yes 11760else 11761 ac_cv_lib_dld_dld_link=no 11762fi 11763rm -f core conftest.err conftest.$ac_objext \ 11764 conftest$ac_exeext conftest.$ac_ext 11765LIBS=$ac_check_lib_save_LIBS 11766fi 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11768$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11769if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11770 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11771fi 11772 11773 11774fi 11775 11776 11777fi 11778 11779 11780fi 11781 11782 11783fi 11784 11785 11786fi 11787 11788 ;; 11789 esac 11790 11791 if test no = "$lt_cv_dlopen"; then 11792 enable_dlopen=no 11793 else 11794 enable_dlopen=yes 11795 fi 11796 11797 case $lt_cv_dlopen in 11798 dlopen) 11799 save_CPPFLAGS=$CPPFLAGS 11800 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11801 11802 save_LDFLAGS=$LDFLAGS 11803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11804 11805 save_LIBS=$LIBS 11806 LIBS="$lt_cv_dlopen_libs $LIBS" 11807 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11809$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11810if ${lt_cv_dlopen_self+:} false; then : 11811 $as_echo_n "(cached) " >&6 11812else 11813 if test yes = "$cross_compiling"; then : 11814 lt_cv_dlopen_self=cross 11815else 11816 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11817 lt_status=$lt_dlunknown 11818 cat > conftest.$ac_ext <<_LT_EOF 11819#line $LINENO "configure" 11820#include "confdefs.h" 11821 11822#if HAVE_DLFCN_H 11823#include <dlfcn.h> 11824#endif 11825 11826#include <stdio.h> 11827 11828#ifdef RTLD_GLOBAL 11829# define LT_DLGLOBAL RTLD_GLOBAL 11830#else 11831# ifdef DL_GLOBAL 11832# define LT_DLGLOBAL DL_GLOBAL 11833# else 11834# define LT_DLGLOBAL 0 11835# endif 11836#endif 11837 11838/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11839 find out it does not work in some platform. */ 11840#ifndef LT_DLLAZY_OR_NOW 11841# ifdef RTLD_LAZY 11842# define LT_DLLAZY_OR_NOW RTLD_LAZY 11843# else 11844# ifdef DL_LAZY 11845# define LT_DLLAZY_OR_NOW DL_LAZY 11846# else 11847# ifdef RTLD_NOW 11848# define LT_DLLAZY_OR_NOW RTLD_NOW 11849# else 11850# ifdef DL_NOW 11851# define LT_DLLAZY_OR_NOW DL_NOW 11852# else 11853# define LT_DLLAZY_OR_NOW 0 11854# endif 11855# endif 11856# endif 11857# endif 11858#endif 11859 11860/* When -fvisibility=hidden is used, assume the code has been annotated 11861 correspondingly for the symbols needed. */ 11862#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11863int fnord () __attribute__((visibility("default"))); 11864#endif 11865 11866int fnord () { return 42; } 11867int main () 11868{ 11869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11870 int status = $lt_dlunknown; 11871 11872 if (self) 11873 { 11874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11875 else 11876 { 11877 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11878 else puts (dlerror ()); 11879 } 11880 /* dlclose (self); */ 11881 } 11882 else 11883 puts (dlerror ()); 11884 11885 return status; 11886} 11887_LT_EOF 11888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11889 (eval $ac_link) 2>&5 11890 ac_status=$? 11891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11892 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11893 (./conftest; exit; ) >&5 2>/dev/null 11894 lt_status=$? 11895 case x$lt_status in 11896 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11897 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11898 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11899 esac 11900 else : 11901 # compilation failed 11902 lt_cv_dlopen_self=no 11903 fi 11904fi 11905rm -fr conftest* 11906 11907 11908fi 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11910$as_echo "$lt_cv_dlopen_self" >&6; } 11911 11912 if test yes = "$lt_cv_dlopen_self"; then 11913 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11915$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11916if ${lt_cv_dlopen_self_static+:} false; then : 11917 $as_echo_n "(cached) " >&6 11918else 11919 if test yes = "$cross_compiling"; then : 11920 lt_cv_dlopen_self_static=cross 11921else 11922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11923 lt_status=$lt_dlunknown 11924 cat > conftest.$ac_ext <<_LT_EOF 11925#line $LINENO "configure" 11926#include "confdefs.h" 11927 11928#if HAVE_DLFCN_H 11929#include <dlfcn.h> 11930#endif 11931 11932#include <stdio.h> 11933 11934#ifdef RTLD_GLOBAL 11935# define LT_DLGLOBAL RTLD_GLOBAL 11936#else 11937# ifdef DL_GLOBAL 11938# define LT_DLGLOBAL DL_GLOBAL 11939# else 11940# define LT_DLGLOBAL 0 11941# endif 11942#endif 11943 11944/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11945 find out it does not work in some platform. */ 11946#ifndef LT_DLLAZY_OR_NOW 11947# ifdef RTLD_LAZY 11948# define LT_DLLAZY_OR_NOW RTLD_LAZY 11949# else 11950# ifdef DL_LAZY 11951# define LT_DLLAZY_OR_NOW DL_LAZY 11952# else 11953# ifdef RTLD_NOW 11954# define LT_DLLAZY_OR_NOW RTLD_NOW 11955# else 11956# ifdef DL_NOW 11957# define LT_DLLAZY_OR_NOW DL_NOW 11958# else 11959# define LT_DLLAZY_OR_NOW 0 11960# endif 11961# endif 11962# endif 11963# endif 11964#endif 11965 11966/* When -fvisibility=hidden is used, assume the code has been annotated 11967 correspondingly for the symbols needed. */ 11968#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11969int fnord () __attribute__((visibility("default"))); 11970#endif 11971 11972int fnord () { return 42; } 11973int main () 11974{ 11975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11976 int status = $lt_dlunknown; 11977 11978 if (self) 11979 { 11980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11981 else 11982 { 11983 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11984 else puts (dlerror ()); 11985 } 11986 /* dlclose (self); */ 11987 } 11988 else 11989 puts (dlerror ()); 11990 11991 return status; 11992} 11993_LT_EOF 11994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11995 (eval $ac_link) 2>&5 11996 ac_status=$? 11997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11998 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11999 (./conftest; exit; ) >&5 2>/dev/null 12000 lt_status=$? 12001 case x$lt_status in 12002 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12003 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12004 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12005 esac 12006 else : 12007 # compilation failed 12008 lt_cv_dlopen_self_static=no 12009 fi 12010fi 12011rm -fr conftest* 12012 12013 12014fi 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12016$as_echo "$lt_cv_dlopen_self_static" >&6; } 12017 fi 12018 12019 CPPFLAGS=$save_CPPFLAGS 12020 LDFLAGS=$save_LDFLAGS 12021 LIBS=$save_LIBS 12022 ;; 12023 esac 12024 12025 case $lt_cv_dlopen_self in 12026 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12027 *) enable_dlopen_self=unknown ;; 12028 esac 12029 12030 case $lt_cv_dlopen_self_static in 12031 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12032 *) enable_dlopen_self_static=unknown ;; 12033 esac 12034fi 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052striplib= 12053old_striplib= 12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12055$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12056if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12058 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12060$as_echo "yes" >&6; } 12061else 12062# FIXME - insert some real tests, host_os isn't really good enough 12063 case $host_os in 12064 darwin*) 12065 if test -n "$STRIP"; then 12066 striplib="$STRIP -x" 12067 old_striplib="$STRIP -S" 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12069$as_echo "yes" >&6; } 12070 else 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12072$as_echo "no" >&6; } 12073 fi 12074 ;; 12075 *) 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12077$as_echo "no" >&6; } 12078 ;; 12079 esac 12080fi 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 # Report what library types will actually be built 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12095$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12097$as_echo "$can_build_shared" >&6; } 12098 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12100$as_echo_n "checking whether to build shared libraries... " >&6; } 12101 test no = "$can_build_shared" && enable_shared=no 12102 12103 # On AIX, shared libraries and static libraries use the same namespace, and 12104 # are all built from PIC. 12105 case $host_os in 12106 aix3*) 12107 test yes = "$enable_shared" && enable_static=no 12108 if test -n "$RANLIB"; then 12109 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12110 postinstall_cmds='$RANLIB $lib' 12111 fi 12112 ;; 12113 12114 aix[4-9]*) 12115 if test ia64 != "$host_cpu"; then 12116 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12117 yes,aix,yes) ;; # shared object as lib.so file only 12118 yes,svr4,*) ;; # shared object as lib.so archive member only 12119 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12120 esac 12121 fi 12122 ;; 12123 esac 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12125$as_echo "$enable_shared" >&6; } 12126 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12128$as_echo_n "checking whether to build static libraries... " >&6; } 12129 # Make sure either enable_shared or enable_static is yes. 12130 test yes = "$enable_shared" || enable_static=yes 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12132$as_echo "$enable_static" >&6; } 12133 12134 12135 12136 12137fi 12138ac_ext=c 12139ac_cpp='$CPP $CPPFLAGS' 12140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12142ac_compiler_gnu=$ac_cv_c_compiler_gnu 12143 12144CC=$lt_save_CC 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 ac_config_commands="$ac_config_commands libtool" 12161 12162 12163 12164 12165# Only expand once: 12166 12167 12168 12169# Require X.Org macros 1.8 or later 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12182$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12183if ${ac_cv_prog_cc_c99+:} false; then : 12184 $as_echo_n "(cached) " >&6 12185else 12186 ac_cv_prog_cc_c99=no 12187ac_save_CC=$CC 12188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189/* end confdefs.h. */ 12190#include <stdarg.h> 12191#include <stdbool.h> 12192#include <stdlib.h> 12193#include <wchar.h> 12194#include <stdio.h> 12195 12196// Check varargs macros. These examples are taken from C99 6.10.3.5. 12197#define debug(...) fprintf (stderr, __VA_ARGS__) 12198#define showlist(...) puts (#__VA_ARGS__) 12199#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12200static void 12201test_varargs_macros (void) 12202{ 12203 int x = 1234; 12204 int y = 5678; 12205 debug ("Flag"); 12206 debug ("X = %d\n", x); 12207 showlist (The first, second, and third items.); 12208 report (x>y, "x is %d but y is %d", x, y); 12209} 12210 12211// Check long long types. 12212#define BIG64 18446744073709551615ull 12213#define BIG32 4294967295ul 12214#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12215#if !BIG_OK 12216 your preprocessor is broken; 12217#endif 12218#if BIG_OK 12219#else 12220 your preprocessor is broken; 12221#endif 12222static long long int bignum = -9223372036854775807LL; 12223static unsigned long long int ubignum = BIG64; 12224 12225struct incomplete_array 12226{ 12227 int datasize; 12228 double data[]; 12229}; 12230 12231struct named_init { 12232 int number; 12233 const wchar_t *name; 12234 double average; 12235}; 12236 12237typedef const char *ccp; 12238 12239static inline int 12240test_restrict (ccp restrict text) 12241{ 12242 // See if C++-style comments work. 12243 // Iterate through items via the restricted pointer. 12244 // Also check for declarations in for loops. 12245 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12246 continue; 12247 return 0; 12248} 12249 12250// Check varargs and va_copy. 12251static void 12252test_varargs (const char *format, ...) 12253{ 12254 va_list args; 12255 va_start (args, format); 12256 va_list args_copy; 12257 va_copy (args_copy, args); 12258 12259 const char *str; 12260 int number; 12261 float fnumber; 12262 12263 while (*format) 12264 { 12265 switch (*format++) 12266 { 12267 case 's': // string 12268 str = va_arg (args_copy, const char *); 12269 break; 12270 case 'd': // int 12271 number = va_arg (args_copy, int); 12272 break; 12273 case 'f': // float 12274 fnumber = va_arg (args_copy, double); 12275 break; 12276 default: 12277 break; 12278 } 12279 } 12280 va_end (args_copy); 12281 va_end (args); 12282} 12283 12284int 12285main () 12286{ 12287 12288 // Check bool. 12289 _Bool success = false; 12290 12291 // Check restrict. 12292 if (test_restrict ("String literal") == 0) 12293 success = true; 12294 char *restrict newvar = "Another string"; 12295 12296 // Check varargs. 12297 test_varargs ("s, d' f .", "string", 65, 34.234); 12298 test_varargs_macros (); 12299 12300 // Check flexible array members. 12301 struct incomplete_array *ia = 12302 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12303 ia->datasize = 10; 12304 for (int i = 0; i < ia->datasize; ++i) 12305 ia->data[i] = i * 1.234; 12306 12307 // Check named initializers. 12308 struct named_init ni = { 12309 .number = 34, 12310 .name = L"Test wide string", 12311 .average = 543.34343, 12312 }; 12313 12314 ni.number = 58; 12315 12316 int dynamic_array[ni.number]; 12317 dynamic_array[ni.number - 1] = 543; 12318 12319 // work around unused variable warnings 12320 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12321 || dynamic_array[ni.number - 1] != 543); 12322 12323 ; 12324 return 0; 12325} 12326_ACEOF 12327for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12328do 12329 CC="$ac_save_CC $ac_arg" 12330 if ac_fn_c_try_compile "$LINENO"; then : 12331 ac_cv_prog_cc_c99=$ac_arg 12332fi 12333rm -f core conftest.err conftest.$ac_objext 12334 test "x$ac_cv_prog_cc_c99" != "xno" && break 12335done 12336rm -f conftest.$ac_ext 12337CC=$ac_save_CC 12338 12339fi 12340# AC_CACHE_VAL 12341case "x$ac_cv_prog_cc_c99" in 12342 x) 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12344$as_echo "none needed" >&6; } ;; 12345 xno) 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12347$as_echo "unsupported" >&6; } ;; 12348 *) 12349 CC="$CC $ac_cv_prog_cc_c99" 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12351$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12352esac 12353if test "x$ac_cv_prog_cc_c99" != xno; then : 12354 12355fi 12356 12357 12358 12359 12360 12361 12362ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12363if test "x$ac_cv_have_decl___clang__" = xyes; then : 12364 CLANGCC="yes" 12365else 12366 CLANGCC="no" 12367fi 12368 12369ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12370if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12371 INTELCC="yes" 12372else 12373 INTELCC="no" 12374fi 12375 12376ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12377if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12378 SUNCC="yes" 12379else 12380 SUNCC="no" 12381fi 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12392 if test -n "$ac_tool_prefix"; then 12393 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12394set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12396$as_echo_n "checking for $ac_word... " >&6; } 12397if ${ac_cv_path_PKG_CONFIG+:} false; then : 12398 $as_echo_n "(cached) " >&6 12399else 12400 case $PKG_CONFIG in 12401 [\\/]* | ?:[\\/]*) 12402 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12403 ;; 12404 *) 12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12406for as_dir in $PATH 12407do 12408 IFS=$as_save_IFS 12409 test -z "$as_dir" && as_dir=. 12410 for ac_exec_ext in '' $ac_executable_extensions; do 12411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12412 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12414 break 2 12415 fi 12416done 12417 done 12418IFS=$as_save_IFS 12419 12420 ;; 12421esac 12422fi 12423PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12424if test -n "$PKG_CONFIG"; then 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12426$as_echo "$PKG_CONFIG" >&6; } 12427else 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12429$as_echo "no" >&6; } 12430fi 12431 12432 12433fi 12434if test -z "$ac_cv_path_PKG_CONFIG"; then 12435 ac_pt_PKG_CONFIG=$PKG_CONFIG 12436 # Extract the first word of "pkg-config", so it can be a program name with args. 12437set dummy pkg-config; ac_word=$2 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12439$as_echo_n "checking for $ac_word... " >&6; } 12440if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12441 $as_echo_n "(cached) " >&6 12442else 12443 case $ac_pt_PKG_CONFIG in 12444 [\\/]* | ?:[\\/]*) 12445 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12446 ;; 12447 *) 12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12449for as_dir in $PATH 12450do 12451 IFS=$as_save_IFS 12452 test -z "$as_dir" && as_dir=. 12453 for ac_exec_ext in '' $ac_executable_extensions; do 12454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12455 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12457 break 2 12458 fi 12459done 12460 done 12461IFS=$as_save_IFS 12462 12463 ;; 12464esac 12465fi 12466ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12467if test -n "$ac_pt_PKG_CONFIG"; then 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12469$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12470else 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12472$as_echo "no" >&6; } 12473fi 12474 12475 if test "x$ac_pt_PKG_CONFIG" = x; then 12476 PKG_CONFIG="" 12477 else 12478 case $cross_compiling:$ac_tool_warned in 12479yes:) 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12482ac_tool_warned=yes ;; 12483esac 12484 PKG_CONFIG=$ac_pt_PKG_CONFIG 12485 fi 12486else 12487 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12488fi 12489 12490fi 12491if test -n "$PKG_CONFIG"; then 12492 _pkg_min_version=0.9.0 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12494$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12495 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12497$as_echo "yes" >&6; } 12498 else 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12500$as_echo "no" >&6; } 12501 PKG_CONFIG="" 12502 fi 12503fi 12504 12505 12506 12507 12508 12509# Check whether --enable-selective-werror was given. 12510if test "${enable_selective_werror+set}" = set; then : 12511 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12512else 12513 SELECTIVE_WERROR=yes 12514fi 12515 12516 12517 12518 12519 12520# -v is too short to test reliably with XORG_TESTSET_CFLAG 12521if test "x$SUNCC" = "xyes"; then 12522 BASE_CFLAGS="-v" 12523else 12524 BASE_CFLAGS="" 12525fi 12526 12527# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541xorg_testset_save_CFLAGS="$CFLAGS" 12542 12543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12548 $as_echo_n "(cached) " >&6 12549else 12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12551/* end confdefs.h. */ 12552int i; 12553_ACEOF 12554if ac_fn_c_try_compile "$LINENO"; then : 12555 xorg_cv_cc_flag_unknown_warning_option=yes 12556else 12557 xorg_cv_cc_flag_unknown_warning_option=no 12558fi 12559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12560fi 12561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12564 CFLAGS="$xorg_testset_save_CFLAGS" 12565fi 12566 12567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12570 fi 12571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579int i; 12580_ACEOF 12581if ac_fn_c_try_compile "$LINENO"; then : 12582 xorg_cv_cc_flag_unused_command_line_argument=yes 12583else 12584 xorg_cv_cc_flag_unused_command_line_argument=no 12585fi 12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12591 CFLAGS="$xorg_testset_save_CFLAGS" 12592fi 12593 12594found="no" 12595 12596 if test $found = "no" ; then 12597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12599 fi 12600 12601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12603 fi 12604 12605 CFLAGS="$CFLAGS -Wall" 12606 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12608$as_echo_n "checking if $CC supports -Wall... " >&6; } 12609 cacheid=xorg_cv_cc_flag__Wall 12610 if eval \${$cacheid+:} false; then : 12611 $as_echo_n "(cached) " >&6 12612else 12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12614/* end confdefs.h. */ 12615int i; 12616int 12617main () 12618{ 12619 12620 ; 12621 return 0; 12622} 12623_ACEOF 12624if ac_fn_c_try_link "$LINENO"; then : 12625 eval $cacheid=yes 12626else 12627 eval $cacheid=no 12628fi 12629rm -f core conftest.err conftest.$ac_objext \ 12630 conftest$ac_exeext conftest.$ac_ext 12631fi 12632 12633 12634 CFLAGS="$xorg_testset_save_CFLAGS" 12635 12636 eval supported=\$$cacheid 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12638$as_echo "$supported" >&6; } 12639 if test "$supported" = "yes" ; then 12640 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12641 found="yes" 12642 fi 12643 fi 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659xorg_testset_save_CFLAGS="$CFLAGS" 12660 12661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12666 $as_echo_n "(cached) " >&6 12667else 12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12669/* end confdefs.h. */ 12670int i; 12671_ACEOF 12672if ac_fn_c_try_compile "$LINENO"; then : 12673 xorg_cv_cc_flag_unknown_warning_option=yes 12674else 12675 xorg_cv_cc_flag_unknown_warning_option=no 12676fi 12677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12678fi 12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12682 CFLAGS="$xorg_testset_save_CFLAGS" 12683fi 12684 12685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12688 fi 12689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12693 $as_echo_n "(cached) " >&6 12694else 12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12696/* end confdefs.h. */ 12697int i; 12698_ACEOF 12699if ac_fn_c_try_compile "$LINENO"; then : 12700 xorg_cv_cc_flag_unused_command_line_argument=yes 12701else 12702 xorg_cv_cc_flag_unused_command_line_argument=no 12703fi 12704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12705fi 12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12709 CFLAGS="$xorg_testset_save_CFLAGS" 12710fi 12711 12712found="no" 12713 12714 if test $found = "no" ; then 12715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12717 fi 12718 12719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12721 fi 12722 12723 CFLAGS="$CFLAGS -Wpointer-arith" 12724 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12726$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12727 cacheid=xorg_cv_cc_flag__Wpointer_arith 12728 if eval \${$cacheid+:} false; then : 12729 $as_echo_n "(cached) " >&6 12730else 12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12732/* end confdefs.h. */ 12733int i; 12734int 12735main () 12736{ 12737 12738 ; 12739 return 0; 12740} 12741_ACEOF 12742if ac_fn_c_try_link "$LINENO"; then : 12743 eval $cacheid=yes 12744else 12745 eval $cacheid=no 12746fi 12747rm -f core conftest.err conftest.$ac_objext \ 12748 conftest$ac_exeext conftest.$ac_ext 12749fi 12750 12751 12752 CFLAGS="$xorg_testset_save_CFLAGS" 12753 12754 eval supported=\$$cacheid 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12756$as_echo "$supported" >&6; } 12757 if test "$supported" = "yes" ; then 12758 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12759 found="yes" 12760 fi 12761 fi 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777xorg_testset_save_CFLAGS="$CFLAGS" 12778 12779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12784 $as_echo_n "(cached) " >&6 12785else 12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12787/* end confdefs.h. */ 12788int i; 12789_ACEOF 12790if ac_fn_c_try_compile "$LINENO"; then : 12791 xorg_cv_cc_flag_unknown_warning_option=yes 12792else 12793 xorg_cv_cc_flag_unknown_warning_option=no 12794fi 12795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12796fi 12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12800 CFLAGS="$xorg_testset_save_CFLAGS" 12801fi 12802 12803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12806 fi 12807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12811 $as_echo_n "(cached) " >&6 12812else 12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12814/* end confdefs.h. */ 12815int i; 12816_ACEOF 12817if ac_fn_c_try_compile "$LINENO"; then : 12818 xorg_cv_cc_flag_unused_command_line_argument=yes 12819else 12820 xorg_cv_cc_flag_unused_command_line_argument=no 12821fi 12822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12823fi 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12827 CFLAGS="$xorg_testset_save_CFLAGS" 12828fi 12829 12830found="no" 12831 12832 if test $found = "no" ; then 12833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12835 fi 12836 12837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12839 fi 12840 12841 CFLAGS="$CFLAGS -Wmissing-declarations" 12842 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12844$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12845 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12846 if eval \${$cacheid+:} false; then : 12847 $as_echo_n "(cached) " >&6 12848else 12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850/* end confdefs.h. */ 12851int i; 12852int 12853main () 12854{ 12855 12856 ; 12857 return 0; 12858} 12859_ACEOF 12860if ac_fn_c_try_link "$LINENO"; then : 12861 eval $cacheid=yes 12862else 12863 eval $cacheid=no 12864fi 12865rm -f core conftest.err conftest.$ac_objext \ 12866 conftest$ac_exeext conftest.$ac_ext 12867fi 12868 12869 12870 CFLAGS="$xorg_testset_save_CFLAGS" 12871 12872 eval supported=\$$cacheid 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12874$as_echo "$supported" >&6; } 12875 if test "$supported" = "yes" ; then 12876 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12877 found="yes" 12878 fi 12879 fi 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895xorg_testset_save_CFLAGS="$CFLAGS" 12896 12897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12902 $as_echo_n "(cached) " >&6 12903else 12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12905/* end confdefs.h. */ 12906int i; 12907_ACEOF 12908if ac_fn_c_try_compile "$LINENO"; then : 12909 xorg_cv_cc_flag_unknown_warning_option=yes 12910else 12911 xorg_cv_cc_flag_unknown_warning_option=no 12912fi 12913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12914fi 12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12918 CFLAGS="$xorg_testset_save_CFLAGS" 12919fi 12920 12921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12924 fi 12925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12929 $as_echo_n "(cached) " >&6 12930else 12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12932/* end confdefs.h. */ 12933int i; 12934_ACEOF 12935if ac_fn_c_try_compile "$LINENO"; then : 12936 xorg_cv_cc_flag_unused_command_line_argument=yes 12937else 12938 xorg_cv_cc_flag_unused_command_line_argument=no 12939fi 12940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12941fi 12942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12945 CFLAGS="$xorg_testset_save_CFLAGS" 12946fi 12947 12948found="no" 12949 12950 if test $found = "no" ; then 12951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12953 fi 12954 12955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12957 fi 12958 12959 CFLAGS="$CFLAGS -Wformat=2" 12960 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12962$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12963 cacheid=xorg_cv_cc_flag__Wformat_2 12964 if eval \${$cacheid+:} false; then : 12965 $as_echo_n "(cached) " >&6 12966else 12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12968/* end confdefs.h. */ 12969int i; 12970int 12971main () 12972{ 12973 12974 ; 12975 return 0; 12976} 12977_ACEOF 12978if ac_fn_c_try_link "$LINENO"; then : 12979 eval $cacheid=yes 12980else 12981 eval $cacheid=no 12982fi 12983rm -f core conftest.err conftest.$ac_objext \ 12984 conftest$ac_exeext conftest.$ac_ext 12985fi 12986 12987 12988 CFLAGS="$xorg_testset_save_CFLAGS" 12989 12990 eval supported=\$$cacheid 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12992$as_echo "$supported" >&6; } 12993 if test "$supported" = "yes" ; then 12994 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12995 found="yes" 12996 fi 12997 fi 12998 12999 if test $found = "no" ; then 13000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13002 fi 13003 13004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13006 fi 13007 13008 CFLAGS="$CFLAGS -Wformat" 13009 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13011$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13012 cacheid=xorg_cv_cc_flag__Wformat 13013 if eval \${$cacheid+:} false; then : 13014 $as_echo_n "(cached) " >&6 13015else 13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13017/* end confdefs.h. */ 13018int i; 13019int 13020main () 13021{ 13022 13023 ; 13024 return 0; 13025} 13026_ACEOF 13027if ac_fn_c_try_link "$LINENO"; then : 13028 eval $cacheid=yes 13029else 13030 eval $cacheid=no 13031fi 13032rm -f core conftest.err conftest.$ac_objext \ 13033 conftest$ac_exeext conftest.$ac_ext 13034fi 13035 13036 13037 CFLAGS="$xorg_testset_save_CFLAGS" 13038 13039 eval supported=\$$cacheid 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13041$as_echo "$supported" >&6; } 13042 if test "$supported" = "yes" ; then 13043 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13044 found="yes" 13045 fi 13046 fi 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064xorg_testset_save_CFLAGS="$CFLAGS" 13065 13066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13071 $as_echo_n "(cached) " >&6 13072else 13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13074/* end confdefs.h. */ 13075int i; 13076_ACEOF 13077if ac_fn_c_try_compile "$LINENO"; then : 13078 xorg_cv_cc_flag_unknown_warning_option=yes 13079else 13080 xorg_cv_cc_flag_unknown_warning_option=no 13081fi 13082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13083fi 13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13087 CFLAGS="$xorg_testset_save_CFLAGS" 13088fi 13089 13090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13093 fi 13094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13098 $as_echo_n "(cached) " >&6 13099else 13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102int i; 13103_ACEOF 13104if ac_fn_c_try_compile "$LINENO"; then : 13105 xorg_cv_cc_flag_unused_command_line_argument=yes 13106else 13107 xorg_cv_cc_flag_unused_command_line_argument=no 13108fi 13109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13110fi 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13114 CFLAGS="$xorg_testset_save_CFLAGS" 13115fi 13116 13117found="no" 13118 13119 if test $found = "no" ; then 13120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13122 fi 13123 13124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13126 fi 13127 13128 CFLAGS="$CFLAGS -Wstrict-prototypes" 13129 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13131$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13132 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13133 if eval \${$cacheid+:} false; then : 13134 $as_echo_n "(cached) " >&6 13135else 13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13137/* end confdefs.h. */ 13138int i; 13139int 13140main () 13141{ 13142 13143 ; 13144 return 0; 13145} 13146_ACEOF 13147if ac_fn_c_try_link "$LINENO"; then : 13148 eval $cacheid=yes 13149else 13150 eval $cacheid=no 13151fi 13152rm -f core conftest.err conftest.$ac_objext \ 13153 conftest$ac_exeext conftest.$ac_ext 13154fi 13155 13156 13157 CFLAGS="$xorg_testset_save_CFLAGS" 13158 13159 eval supported=\$$cacheid 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13161$as_echo "$supported" >&6; } 13162 if test "$supported" = "yes" ; then 13163 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13164 found="yes" 13165 fi 13166 fi 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182xorg_testset_save_CFLAGS="$CFLAGS" 13183 13184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13189 $as_echo_n "(cached) " >&6 13190else 13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13192/* end confdefs.h. */ 13193int i; 13194_ACEOF 13195if ac_fn_c_try_compile "$LINENO"; then : 13196 xorg_cv_cc_flag_unknown_warning_option=yes 13197else 13198 xorg_cv_cc_flag_unknown_warning_option=no 13199fi 13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13201fi 13202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13205 CFLAGS="$xorg_testset_save_CFLAGS" 13206fi 13207 13208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13211 fi 13212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13216 $as_echo_n "(cached) " >&6 13217else 13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13219/* end confdefs.h. */ 13220int i; 13221_ACEOF 13222if ac_fn_c_try_compile "$LINENO"; then : 13223 xorg_cv_cc_flag_unused_command_line_argument=yes 13224else 13225 xorg_cv_cc_flag_unused_command_line_argument=no 13226fi 13227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13228fi 13229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13232 CFLAGS="$xorg_testset_save_CFLAGS" 13233fi 13234 13235found="no" 13236 13237 if test $found = "no" ; then 13238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13240 fi 13241 13242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13244 fi 13245 13246 CFLAGS="$CFLAGS -Wmissing-prototypes" 13247 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13249$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13250 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13251 if eval \${$cacheid+:} false; then : 13252 $as_echo_n "(cached) " >&6 13253else 13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13255/* end confdefs.h. */ 13256int i; 13257int 13258main () 13259{ 13260 13261 ; 13262 return 0; 13263} 13264_ACEOF 13265if ac_fn_c_try_link "$LINENO"; then : 13266 eval $cacheid=yes 13267else 13268 eval $cacheid=no 13269fi 13270rm -f core conftest.err conftest.$ac_objext \ 13271 conftest$ac_exeext conftest.$ac_ext 13272fi 13273 13274 13275 CFLAGS="$xorg_testset_save_CFLAGS" 13276 13277 eval supported=\$$cacheid 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13279$as_echo "$supported" >&6; } 13280 if test "$supported" = "yes" ; then 13281 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13282 found="yes" 13283 fi 13284 fi 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300xorg_testset_save_CFLAGS="$CFLAGS" 13301 13302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13307 $as_echo_n "(cached) " >&6 13308else 13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13310/* end confdefs.h. */ 13311int i; 13312_ACEOF 13313if ac_fn_c_try_compile "$LINENO"; then : 13314 xorg_cv_cc_flag_unknown_warning_option=yes 13315else 13316 xorg_cv_cc_flag_unknown_warning_option=no 13317fi 13318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13319fi 13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13323 CFLAGS="$xorg_testset_save_CFLAGS" 13324fi 13325 13326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13329 fi 13330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13334 $as_echo_n "(cached) " >&6 13335else 13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13337/* end confdefs.h. */ 13338int i; 13339_ACEOF 13340if ac_fn_c_try_compile "$LINENO"; then : 13341 xorg_cv_cc_flag_unused_command_line_argument=yes 13342else 13343 xorg_cv_cc_flag_unused_command_line_argument=no 13344fi 13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13346fi 13347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13350 CFLAGS="$xorg_testset_save_CFLAGS" 13351fi 13352 13353found="no" 13354 13355 if test $found = "no" ; then 13356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13358 fi 13359 13360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13362 fi 13363 13364 CFLAGS="$CFLAGS -Wnested-externs" 13365 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13367$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13368 cacheid=xorg_cv_cc_flag__Wnested_externs 13369 if eval \${$cacheid+:} false; then : 13370 $as_echo_n "(cached) " >&6 13371else 13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13373/* end confdefs.h. */ 13374int i; 13375int 13376main () 13377{ 13378 13379 ; 13380 return 0; 13381} 13382_ACEOF 13383if ac_fn_c_try_link "$LINENO"; then : 13384 eval $cacheid=yes 13385else 13386 eval $cacheid=no 13387fi 13388rm -f core conftest.err conftest.$ac_objext \ 13389 conftest$ac_exeext conftest.$ac_ext 13390fi 13391 13392 13393 CFLAGS="$xorg_testset_save_CFLAGS" 13394 13395 eval supported=\$$cacheid 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13397$as_echo "$supported" >&6; } 13398 if test "$supported" = "yes" ; then 13399 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13400 found="yes" 13401 fi 13402 fi 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418xorg_testset_save_CFLAGS="$CFLAGS" 13419 13420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13425 $as_echo_n "(cached) " >&6 13426else 13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13428/* end confdefs.h. */ 13429int i; 13430_ACEOF 13431if ac_fn_c_try_compile "$LINENO"; then : 13432 xorg_cv_cc_flag_unknown_warning_option=yes 13433else 13434 xorg_cv_cc_flag_unknown_warning_option=no 13435fi 13436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13437fi 13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13441 CFLAGS="$xorg_testset_save_CFLAGS" 13442fi 13443 13444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13447 fi 13448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13452 $as_echo_n "(cached) " >&6 13453else 13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13455/* end confdefs.h. */ 13456int i; 13457_ACEOF 13458if ac_fn_c_try_compile "$LINENO"; then : 13459 xorg_cv_cc_flag_unused_command_line_argument=yes 13460else 13461 xorg_cv_cc_flag_unused_command_line_argument=no 13462fi 13463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13464fi 13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13468 CFLAGS="$xorg_testset_save_CFLAGS" 13469fi 13470 13471found="no" 13472 13473 if test $found = "no" ; then 13474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13476 fi 13477 13478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13480 fi 13481 13482 CFLAGS="$CFLAGS -Wbad-function-cast" 13483 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13485$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13486 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13487 if eval \${$cacheid+:} false; then : 13488 $as_echo_n "(cached) " >&6 13489else 13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13491/* end confdefs.h. */ 13492int i; 13493int 13494main () 13495{ 13496 13497 ; 13498 return 0; 13499} 13500_ACEOF 13501if ac_fn_c_try_link "$LINENO"; then : 13502 eval $cacheid=yes 13503else 13504 eval $cacheid=no 13505fi 13506rm -f core conftest.err conftest.$ac_objext \ 13507 conftest$ac_exeext conftest.$ac_ext 13508fi 13509 13510 13511 CFLAGS="$xorg_testset_save_CFLAGS" 13512 13513 eval supported=\$$cacheid 13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13515$as_echo "$supported" >&6; } 13516 if test "$supported" = "yes" ; then 13517 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13518 found="yes" 13519 fi 13520 fi 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536xorg_testset_save_CFLAGS="$CFLAGS" 13537 13538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13543 $as_echo_n "(cached) " >&6 13544else 13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13546/* end confdefs.h. */ 13547int i; 13548_ACEOF 13549if ac_fn_c_try_compile "$LINENO"; then : 13550 xorg_cv_cc_flag_unknown_warning_option=yes 13551else 13552 xorg_cv_cc_flag_unknown_warning_option=no 13553fi 13554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13555fi 13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13559 CFLAGS="$xorg_testset_save_CFLAGS" 13560fi 13561 13562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13565 fi 13566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13570 $as_echo_n "(cached) " >&6 13571else 13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13573/* end confdefs.h. */ 13574int i; 13575_ACEOF 13576if ac_fn_c_try_compile "$LINENO"; then : 13577 xorg_cv_cc_flag_unused_command_line_argument=yes 13578else 13579 xorg_cv_cc_flag_unused_command_line_argument=no 13580fi 13581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13582fi 13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13586 CFLAGS="$xorg_testset_save_CFLAGS" 13587fi 13588 13589found="no" 13590 13591 if test $found = "no" ; then 13592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13594 fi 13595 13596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13598 fi 13599 13600 CFLAGS="$CFLAGS -Wold-style-definition" 13601 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13603$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13604 cacheid=xorg_cv_cc_flag__Wold_style_definition 13605 if eval \${$cacheid+:} false; then : 13606 $as_echo_n "(cached) " >&6 13607else 13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13609/* end confdefs.h. */ 13610int i; 13611int 13612main () 13613{ 13614 13615 ; 13616 return 0; 13617} 13618_ACEOF 13619if ac_fn_c_try_link "$LINENO"; then : 13620 eval $cacheid=yes 13621else 13622 eval $cacheid=no 13623fi 13624rm -f core conftest.err conftest.$ac_objext \ 13625 conftest$ac_exeext conftest.$ac_ext 13626fi 13627 13628 13629 CFLAGS="$xorg_testset_save_CFLAGS" 13630 13631 eval supported=\$$cacheid 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13633$as_echo "$supported" >&6; } 13634 if test "$supported" = "yes" ; then 13635 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13636 found="yes" 13637 fi 13638 fi 13639 13640 if test $found = "no" ; then 13641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13643 fi 13644 13645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13647 fi 13648 13649 CFLAGS="$CFLAGS -fd" 13650 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13652$as_echo_n "checking if $CC supports -fd... " >&6; } 13653 cacheid=xorg_cv_cc_flag__fd 13654 if eval \${$cacheid+:} false; then : 13655 $as_echo_n "(cached) " >&6 13656else 13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13658/* end confdefs.h. */ 13659int i; 13660int 13661main () 13662{ 13663 13664 ; 13665 return 0; 13666} 13667_ACEOF 13668if ac_fn_c_try_link "$LINENO"; then : 13669 eval $cacheid=yes 13670else 13671 eval $cacheid=no 13672fi 13673rm -f core conftest.err conftest.$ac_objext \ 13674 conftest$ac_exeext conftest.$ac_ext 13675fi 13676 13677 13678 CFLAGS="$xorg_testset_save_CFLAGS" 13679 13680 eval supported=\$$cacheid 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13682$as_echo "$supported" >&6; } 13683 if test "$supported" = "yes" ; then 13684 BASE_CFLAGS="$BASE_CFLAGS -fd" 13685 found="yes" 13686 fi 13687 fi 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703xorg_testset_save_CFLAGS="$CFLAGS" 13704 13705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13710 $as_echo_n "(cached) " >&6 13711else 13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713/* end confdefs.h. */ 13714int i; 13715_ACEOF 13716if ac_fn_c_try_compile "$LINENO"; then : 13717 xorg_cv_cc_flag_unknown_warning_option=yes 13718else 13719 xorg_cv_cc_flag_unknown_warning_option=no 13720fi 13721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13722fi 13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13726 CFLAGS="$xorg_testset_save_CFLAGS" 13727fi 13728 13729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13732 fi 13733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13737 $as_echo_n "(cached) " >&6 13738else 13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740/* end confdefs.h. */ 13741int i; 13742_ACEOF 13743if ac_fn_c_try_compile "$LINENO"; then : 13744 xorg_cv_cc_flag_unused_command_line_argument=yes 13745else 13746 xorg_cv_cc_flag_unused_command_line_argument=no 13747fi 13748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13749fi 13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13753 CFLAGS="$xorg_testset_save_CFLAGS" 13754fi 13755 13756found="no" 13757 13758 if test $found = "no" ; then 13759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13761 fi 13762 13763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13765 fi 13766 13767 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13768 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13770$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13771 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13772 if eval \${$cacheid+:} false; then : 13773 $as_echo_n "(cached) " >&6 13774else 13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13776/* end confdefs.h. */ 13777int i; 13778int 13779main () 13780{ 13781 13782 ; 13783 return 0; 13784} 13785_ACEOF 13786if ac_fn_c_try_link "$LINENO"; then : 13787 eval $cacheid=yes 13788else 13789 eval $cacheid=no 13790fi 13791rm -f core conftest.err conftest.$ac_objext \ 13792 conftest$ac_exeext conftest.$ac_ext 13793fi 13794 13795 13796 CFLAGS="$xorg_testset_save_CFLAGS" 13797 13798 eval supported=\$$cacheid 13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13800$as_echo "$supported" >&6; } 13801 if test "$supported" = "yes" ; then 13802 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13803 found="yes" 13804 fi 13805 fi 13806 13807 13808 13809 13810 13811# This chunk adds additional warnings that could catch undesired effects. 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825xorg_testset_save_CFLAGS="$CFLAGS" 13826 13827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13832 $as_echo_n "(cached) " >&6 13833else 13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13835/* end confdefs.h. */ 13836int i; 13837_ACEOF 13838if ac_fn_c_try_compile "$LINENO"; then : 13839 xorg_cv_cc_flag_unknown_warning_option=yes 13840else 13841 xorg_cv_cc_flag_unknown_warning_option=no 13842fi 13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13844fi 13845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13848 CFLAGS="$xorg_testset_save_CFLAGS" 13849fi 13850 13851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13854 fi 13855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13859 $as_echo_n "(cached) " >&6 13860else 13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13862/* end confdefs.h. */ 13863int i; 13864_ACEOF 13865if ac_fn_c_try_compile "$LINENO"; then : 13866 xorg_cv_cc_flag_unused_command_line_argument=yes 13867else 13868 xorg_cv_cc_flag_unused_command_line_argument=no 13869fi 13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13871fi 13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13875 CFLAGS="$xorg_testset_save_CFLAGS" 13876fi 13877 13878found="no" 13879 13880 if test $found = "no" ; then 13881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13883 fi 13884 13885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13887 fi 13888 13889 CFLAGS="$CFLAGS -Wunused" 13890 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13892$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13893 cacheid=xorg_cv_cc_flag__Wunused 13894 if eval \${$cacheid+:} false; then : 13895 $as_echo_n "(cached) " >&6 13896else 13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13898/* end confdefs.h. */ 13899int i; 13900int 13901main () 13902{ 13903 13904 ; 13905 return 0; 13906} 13907_ACEOF 13908if ac_fn_c_try_link "$LINENO"; then : 13909 eval $cacheid=yes 13910else 13911 eval $cacheid=no 13912fi 13913rm -f core conftest.err conftest.$ac_objext \ 13914 conftest$ac_exeext conftest.$ac_ext 13915fi 13916 13917 13918 CFLAGS="$xorg_testset_save_CFLAGS" 13919 13920 eval supported=\$$cacheid 13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13922$as_echo "$supported" >&6; } 13923 if test "$supported" = "yes" ; then 13924 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13925 found="yes" 13926 fi 13927 fi 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943xorg_testset_save_CFLAGS="$CFLAGS" 13944 13945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13950 $as_echo_n "(cached) " >&6 13951else 13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13953/* end confdefs.h. */ 13954int i; 13955_ACEOF 13956if ac_fn_c_try_compile "$LINENO"; then : 13957 xorg_cv_cc_flag_unknown_warning_option=yes 13958else 13959 xorg_cv_cc_flag_unknown_warning_option=no 13960fi 13961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13962fi 13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13966 CFLAGS="$xorg_testset_save_CFLAGS" 13967fi 13968 13969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13972 fi 13973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13977 $as_echo_n "(cached) " >&6 13978else 13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13980/* end confdefs.h. */ 13981int i; 13982_ACEOF 13983if ac_fn_c_try_compile "$LINENO"; then : 13984 xorg_cv_cc_flag_unused_command_line_argument=yes 13985else 13986 xorg_cv_cc_flag_unused_command_line_argument=no 13987fi 13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13989fi 13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13993 CFLAGS="$xorg_testset_save_CFLAGS" 13994fi 13995 13996found="no" 13997 13998 if test $found = "no" ; then 13999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14001 fi 14002 14003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14005 fi 14006 14007 CFLAGS="$CFLAGS -Wuninitialized" 14008 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14010$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14011 cacheid=xorg_cv_cc_flag__Wuninitialized 14012 if eval \${$cacheid+:} false; then : 14013 $as_echo_n "(cached) " >&6 14014else 14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14016/* end confdefs.h. */ 14017int i; 14018int 14019main () 14020{ 14021 14022 ; 14023 return 0; 14024} 14025_ACEOF 14026if ac_fn_c_try_link "$LINENO"; then : 14027 eval $cacheid=yes 14028else 14029 eval $cacheid=no 14030fi 14031rm -f core conftest.err conftest.$ac_objext \ 14032 conftest$ac_exeext conftest.$ac_ext 14033fi 14034 14035 14036 CFLAGS="$xorg_testset_save_CFLAGS" 14037 14038 eval supported=\$$cacheid 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14040$as_echo "$supported" >&6; } 14041 if test "$supported" = "yes" ; then 14042 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14043 found="yes" 14044 fi 14045 fi 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061xorg_testset_save_CFLAGS="$CFLAGS" 14062 14063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14068 $as_echo_n "(cached) " >&6 14069else 14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14071/* end confdefs.h. */ 14072int i; 14073_ACEOF 14074if ac_fn_c_try_compile "$LINENO"; then : 14075 xorg_cv_cc_flag_unknown_warning_option=yes 14076else 14077 xorg_cv_cc_flag_unknown_warning_option=no 14078fi 14079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14080fi 14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14084 CFLAGS="$xorg_testset_save_CFLAGS" 14085fi 14086 14087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14090 fi 14091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14095 $as_echo_n "(cached) " >&6 14096else 14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14098/* end confdefs.h. */ 14099int i; 14100_ACEOF 14101if ac_fn_c_try_compile "$LINENO"; then : 14102 xorg_cv_cc_flag_unused_command_line_argument=yes 14103else 14104 xorg_cv_cc_flag_unused_command_line_argument=no 14105fi 14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14107fi 14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14111 CFLAGS="$xorg_testset_save_CFLAGS" 14112fi 14113 14114found="no" 14115 14116 if test $found = "no" ; then 14117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14119 fi 14120 14121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14123 fi 14124 14125 CFLAGS="$CFLAGS -Wshadow" 14126 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14128$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14129 cacheid=xorg_cv_cc_flag__Wshadow 14130 if eval \${$cacheid+:} false; then : 14131 $as_echo_n "(cached) " >&6 14132else 14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14134/* end confdefs.h. */ 14135int i; 14136int 14137main () 14138{ 14139 14140 ; 14141 return 0; 14142} 14143_ACEOF 14144if ac_fn_c_try_link "$LINENO"; then : 14145 eval $cacheid=yes 14146else 14147 eval $cacheid=no 14148fi 14149rm -f core conftest.err conftest.$ac_objext \ 14150 conftest$ac_exeext conftest.$ac_ext 14151fi 14152 14153 14154 CFLAGS="$xorg_testset_save_CFLAGS" 14155 14156 eval supported=\$$cacheid 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14158$as_echo "$supported" >&6; } 14159 if test "$supported" = "yes" ; then 14160 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14161 found="yes" 14162 fi 14163 fi 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179xorg_testset_save_CFLAGS="$CFLAGS" 14180 14181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14186 $as_echo_n "(cached) " >&6 14187else 14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14189/* end confdefs.h. */ 14190int i; 14191_ACEOF 14192if ac_fn_c_try_compile "$LINENO"; then : 14193 xorg_cv_cc_flag_unknown_warning_option=yes 14194else 14195 xorg_cv_cc_flag_unknown_warning_option=no 14196fi 14197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14198fi 14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14202 CFLAGS="$xorg_testset_save_CFLAGS" 14203fi 14204 14205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14208 fi 14209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14213 $as_echo_n "(cached) " >&6 14214else 14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14216/* end confdefs.h. */ 14217int i; 14218_ACEOF 14219if ac_fn_c_try_compile "$LINENO"; then : 14220 xorg_cv_cc_flag_unused_command_line_argument=yes 14221else 14222 xorg_cv_cc_flag_unused_command_line_argument=no 14223fi 14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14225fi 14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14229 CFLAGS="$xorg_testset_save_CFLAGS" 14230fi 14231 14232found="no" 14233 14234 if test $found = "no" ; then 14235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14237 fi 14238 14239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14241 fi 14242 14243 CFLAGS="$CFLAGS -Wmissing-noreturn" 14244 14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14246$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14247 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14248 if eval \${$cacheid+:} false; then : 14249 $as_echo_n "(cached) " >&6 14250else 14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14252/* end confdefs.h. */ 14253int i; 14254int 14255main () 14256{ 14257 14258 ; 14259 return 0; 14260} 14261_ACEOF 14262if ac_fn_c_try_link "$LINENO"; then : 14263 eval $cacheid=yes 14264else 14265 eval $cacheid=no 14266fi 14267rm -f core conftest.err conftest.$ac_objext \ 14268 conftest$ac_exeext conftest.$ac_ext 14269fi 14270 14271 14272 CFLAGS="$xorg_testset_save_CFLAGS" 14273 14274 eval supported=\$$cacheid 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14276$as_echo "$supported" >&6; } 14277 if test "$supported" = "yes" ; then 14278 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14279 found="yes" 14280 fi 14281 fi 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297xorg_testset_save_CFLAGS="$CFLAGS" 14298 14299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14304 $as_echo_n "(cached) " >&6 14305else 14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14307/* end confdefs.h. */ 14308int i; 14309_ACEOF 14310if ac_fn_c_try_compile "$LINENO"; then : 14311 xorg_cv_cc_flag_unknown_warning_option=yes 14312else 14313 xorg_cv_cc_flag_unknown_warning_option=no 14314fi 14315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14316fi 14317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14320 CFLAGS="$xorg_testset_save_CFLAGS" 14321fi 14322 14323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14326 fi 14327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14331 $as_echo_n "(cached) " >&6 14332else 14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14334/* end confdefs.h. */ 14335int i; 14336_ACEOF 14337if ac_fn_c_try_compile "$LINENO"; then : 14338 xorg_cv_cc_flag_unused_command_line_argument=yes 14339else 14340 xorg_cv_cc_flag_unused_command_line_argument=no 14341fi 14342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14343fi 14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14347 CFLAGS="$xorg_testset_save_CFLAGS" 14348fi 14349 14350found="no" 14351 14352 if test $found = "no" ; then 14353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14355 fi 14356 14357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14359 fi 14360 14361 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14362 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14364$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14365 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14366 if eval \${$cacheid+:} false; then : 14367 $as_echo_n "(cached) " >&6 14368else 14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370/* end confdefs.h. */ 14371int i; 14372int 14373main () 14374{ 14375 14376 ; 14377 return 0; 14378} 14379_ACEOF 14380if ac_fn_c_try_link "$LINENO"; then : 14381 eval $cacheid=yes 14382else 14383 eval $cacheid=no 14384fi 14385rm -f core conftest.err conftest.$ac_objext \ 14386 conftest$ac_exeext conftest.$ac_ext 14387fi 14388 14389 14390 CFLAGS="$xorg_testset_save_CFLAGS" 14391 14392 eval supported=\$$cacheid 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14394$as_echo "$supported" >&6; } 14395 if test "$supported" = "yes" ; then 14396 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14397 found="yes" 14398 fi 14399 fi 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415xorg_testset_save_CFLAGS="$CFLAGS" 14416 14417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14422 $as_echo_n "(cached) " >&6 14423else 14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14425/* end confdefs.h. */ 14426int i; 14427_ACEOF 14428if ac_fn_c_try_compile "$LINENO"; then : 14429 xorg_cv_cc_flag_unknown_warning_option=yes 14430else 14431 xorg_cv_cc_flag_unknown_warning_option=no 14432fi 14433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14434fi 14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14438 CFLAGS="$xorg_testset_save_CFLAGS" 14439fi 14440 14441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14444 fi 14445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14449 $as_echo_n "(cached) " >&6 14450else 14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14452/* end confdefs.h. */ 14453int i; 14454_ACEOF 14455if ac_fn_c_try_compile "$LINENO"; then : 14456 xorg_cv_cc_flag_unused_command_line_argument=yes 14457else 14458 xorg_cv_cc_flag_unused_command_line_argument=no 14459fi 14460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14461fi 14462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14465 CFLAGS="$xorg_testset_save_CFLAGS" 14466fi 14467 14468found="no" 14469 14470 if test $found = "no" ; then 14471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14473 fi 14474 14475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14477 fi 14478 14479 CFLAGS="$CFLAGS -Wredundant-decls" 14480 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14482$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14483 cacheid=xorg_cv_cc_flag__Wredundant_decls 14484 if eval \${$cacheid+:} false; then : 14485 $as_echo_n "(cached) " >&6 14486else 14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14488/* end confdefs.h. */ 14489int i; 14490int 14491main () 14492{ 14493 14494 ; 14495 return 0; 14496} 14497_ACEOF 14498if ac_fn_c_try_link "$LINENO"; then : 14499 eval $cacheid=yes 14500else 14501 eval $cacheid=no 14502fi 14503rm -f core conftest.err conftest.$ac_objext \ 14504 conftest$ac_exeext conftest.$ac_ext 14505fi 14506 14507 14508 CFLAGS="$xorg_testset_save_CFLAGS" 14509 14510 eval supported=\$$cacheid 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14512$as_echo "$supported" >&6; } 14513 if test "$supported" = "yes" ; then 14514 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14515 found="yes" 14516 fi 14517 fi 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533xorg_testset_save_CFLAGS="$CFLAGS" 14534 14535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14540 $as_echo_n "(cached) " >&6 14541else 14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14543/* end confdefs.h. */ 14544int i; 14545_ACEOF 14546if ac_fn_c_try_compile "$LINENO"; then : 14547 xorg_cv_cc_flag_unknown_warning_option=yes 14548else 14549 xorg_cv_cc_flag_unknown_warning_option=no 14550fi 14551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14552fi 14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14556 CFLAGS="$xorg_testset_save_CFLAGS" 14557fi 14558 14559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14562 fi 14563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14567 $as_echo_n "(cached) " >&6 14568else 14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14570/* end confdefs.h. */ 14571int i; 14572_ACEOF 14573if ac_fn_c_try_compile "$LINENO"; then : 14574 xorg_cv_cc_flag_unused_command_line_argument=yes 14575else 14576 xorg_cv_cc_flag_unused_command_line_argument=no 14577fi 14578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14579fi 14580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14583 CFLAGS="$xorg_testset_save_CFLAGS" 14584fi 14585 14586found="no" 14587 14588 if test $found = "no" ; then 14589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14591 fi 14592 14593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14595 fi 14596 14597 CFLAGS="$CFLAGS -Wlogical-op" 14598 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14600$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14601 cacheid=xorg_cv_cc_flag__Wlogical_op 14602 if eval \${$cacheid+:} false; then : 14603 $as_echo_n "(cached) " >&6 14604else 14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14606/* end confdefs.h. */ 14607int i; 14608int 14609main () 14610{ 14611 14612 ; 14613 return 0; 14614} 14615_ACEOF 14616if ac_fn_c_try_link "$LINENO"; then : 14617 eval $cacheid=yes 14618else 14619 eval $cacheid=no 14620fi 14621rm -f core conftest.err conftest.$ac_objext \ 14622 conftest$ac_exeext conftest.$ac_ext 14623fi 14624 14625 14626 CFLAGS="$xorg_testset_save_CFLAGS" 14627 14628 eval supported=\$$cacheid 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14630$as_echo "$supported" >&6; } 14631 if test "$supported" = "yes" ; then 14632 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14633 found="yes" 14634 fi 14635 fi 14636 14637 14638 14639# These are currently disabled because they are noisy. They will be enabled 14640# in the future once the codebase is sufficiently modernized to silence 14641# them. For now, I don't want them to drown out the other warnings. 14642# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14643# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14644# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14645 14646# Turn some warnings into errors, so we don't accidently get successful builds 14647# when there are problems that should be fixed. 14648 14649if test "x$SELECTIVE_WERROR" = "xyes" ; then 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663xorg_testset_save_CFLAGS="$CFLAGS" 14664 14665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14670 $as_echo_n "(cached) " >&6 14671else 14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14673/* end confdefs.h. */ 14674int i; 14675_ACEOF 14676if ac_fn_c_try_compile "$LINENO"; then : 14677 xorg_cv_cc_flag_unknown_warning_option=yes 14678else 14679 xorg_cv_cc_flag_unknown_warning_option=no 14680fi 14681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14682fi 14683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14686 CFLAGS="$xorg_testset_save_CFLAGS" 14687fi 14688 14689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14692 fi 14693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14697 $as_echo_n "(cached) " >&6 14698else 14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14700/* end confdefs.h. */ 14701int i; 14702_ACEOF 14703if ac_fn_c_try_compile "$LINENO"; then : 14704 xorg_cv_cc_flag_unused_command_line_argument=yes 14705else 14706 xorg_cv_cc_flag_unused_command_line_argument=no 14707fi 14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14709fi 14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14713 CFLAGS="$xorg_testset_save_CFLAGS" 14714fi 14715 14716found="no" 14717 14718 if test $found = "no" ; then 14719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14721 fi 14722 14723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14725 fi 14726 14727 CFLAGS="$CFLAGS -Werror=implicit" 14728 14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14730$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14731 cacheid=xorg_cv_cc_flag__Werror_implicit 14732 if eval \${$cacheid+:} false; then : 14733 $as_echo_n "(cached) " >&6 14734else 14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14736/* end confdefs.h. */ 14737int i; 14738int 14739main () 14740{ 14741 14742 ; 14743 return 0; 14744} 14745_ACEOF 14746if ac_fn_c_try_link "$LINENO"; then : 14747 eval $cacheid=yes 14748else 14749 eval $cacheid=no 14750fi 14751rm -f core conftest.err conftest.$ac_objext \ 14752 conftest$ac_exeext conftest.$ac_ext 14753fi 14754 14755 14756 CFLAGS="$xorg_testset_save_CFLAGS" 14757 14758 eval supported=\$$cacheid 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14760$as_echo "$supported" >&6; } 14761 if test "$supported" = "yes" ; then 14762 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14763 found="yes" 14764 fi 14765 fi 14766 14767 if test $found = "no" ; then 14768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14770 fi 14771 14772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14774 fi 14775 14776 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14777 14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14779$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14780 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14781 if eval \${$cacheid+:} false; then : 14782 $as_echo_n "(cached) " >&6 14783else 14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14785/* end confdefs.h. */ 14786int i; 14787int 14788main () 14789{ 14790 14791 ; 14792 return 0; 14793} 14794_ACEOF 14795if ac_fn_c_try_link "$LINENO"; then : 14796 eval $cacheid=yes 14797else 14798 eval $cacheid=no 14799fi 14800rm -f core conftest.err conftest.$ac_objext \ 14801 conftest$ac_exeext conftest.$ac_ext 14802fi 14803 14804 14805 CFLAGS="$xorg_testset_save_CFLAGS" 14806 14807 eval supported=\$$cacheid 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14809$as_echo "$supported" >&6; } 14810 if test "$supported" = "yes" ; then 14811 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14812 found="yes" 14813 fi 14814 fi 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830xorg_testset_save_CFLAGS="$CFLAGS" 14831 14832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14837 $as_echo_n "(cached) " >&6 14838else 14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14840/* end confdefs.h. */ 14841int i; 14842_ACEOF 14843if ac_fn_c_try_compile "$LINENO"; then : 14844 xorg_cv_cc_flag_unknown_warning_option=yes 14845else 14846 xorg_cv_cc_flag_unknown_warning_option=no 14847fi 14848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14849fi 14850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14853 CFLAGS="$xorg_testset_save_CFLAGS" 14854fi 14855 14856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14859 fi 14860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14864 $as_echo_n "(cached) " >&6 14865else 14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14867/* end confdefs.h. */ 14868int i; 14869_ACEOF 14870if ac_fn_c_try_compile "$LINENO"; then : 14871 xorg_cv_cc_flag_unused_command_line_argument=yes 14872else 14873 xorg_cv_cc_flag_unused_command_line_argument=no 14874fi 14875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14876fi 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14880 CFLAGS="$xorg_testset_save_CFLAGS" 14881fi 14882 14883found="no" 14884 14885 if test $found = "no" ; then 14886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14888 fi 14889 14890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14892 fi 14893 14894 CFLAGS="$CFLAGS -Werror=nonnull" 14895 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14897$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14898 cacheid=xorg_cv_cc_flag__Werror_nonnull 14899 if eval \${$cacheid+:} false; then : 14900 $as_echo_n "(cached) " >&6 14901else 14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14903/* end confdefs.h. */ 14904int i; 14905int 14906main () 14907{ 14908 14909 ; 14910 return 0; 14911} 14912_ACEOF 14913if ac_fn_c_try_link "$LINENO"; then : 14914 eval $cacheid=yes 14915else 14916 eval $cacheid=no 14917fi 14918rm -f core conftest.err conftest.$ac_objext \ 14919 conftest$ac_exeext conftest.$ac_ext 14920fi 14921 14922 14923 CFLAGS="$xorg_testset_save_CFLAGS" 14924 14925 eval supported=\$$cacheid 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14927$as_echo "$supported" >&6; } 14928 if test "$supported" = "yes" ; then 14929 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14930 found="yes" 14931 fi 14932 fi 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948xorg_testset_save_CFLAGS="$CFLAGS" 14949 14950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14955 $as_echo_n "(cached) " >&6 14956else 14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14958/* end confdefs.h. */ 14959int i; 14960_ACEOF 14961if ac_fn_c_try_compile "$LINENO"; then : 14962 xorg_cv_cc_flag_unknown_warning_option=yes 14963else 14964 xorg_cv_cc_flag_unknown_warning_option=no 14965fi 14966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14967fi 14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14971 CFLAGS="$xorg_testset_save_CFLAGS" 14972fi 14973 14974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14977 fi 14978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14982 $as_echo_n "(cached) " >&6 14983else 14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14985/* end confdefs.h. */ 14986int i; 14987_ACEOF 14988if ac_fn_c_try_compile "$LINENO"; then : 14989 xorg_cv_cc_flag_unused_command_line_argument=yes 14990else 14991 xorg_cv_cc_flag_unused_command_line_argument=no 14992fi 14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14994fi 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14998 CFLAGS="$xorg_testset_save_CFLAGS" 14999fi 15000 15001found="no" 15002 15003 if test $found = "no" ; then 15004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15006 fi 15007 15008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15010 fi 15011 15012 CFLAGS="$CFLAGS -Werror=init-self" 15013 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15015$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15016 cacheid=xorg_cv_cc_flag__Werror_init_self 15017 if eval \${$cacheid+:} false; then : 15018 $as_echo_n "(cached) " >&6 15019else 15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15021/* end confdefs.h. */ 15022int i; 15023int 15024main () 15025{ 15026 15027 ; 15028 return 0; 15029} 15030_ACEOF 15031if ac_fn_c_try_link "$LINENO"; then : 15032 eval $cacheid=yes 15033else 15034 eval $cacheid=no 15035fi 15036rm -f core conftest.err conftest.$ac_objext \ 15037 conftest$ac_exeext conftest.$ac_ext 15038fi 15039 15040 15041 CFLAGS="$xorg_testset_save_CFLAGS" 15042 15043 eval supported=\$$cacheid 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15045$as_echo "$supported" >&6; } 15046 if test "$supported" = "yes" ; then 15047 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15048 found="yes" 15049 fi 15050 fi 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066xorg_testset_save_CFLAGS="$CFLAGS" 15067 15068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15072if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15073 $as_echo_n "(cached) " >&6 15074else 15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15076/* end confdefs.h. */ 15077int i; 15078_ACEOF 15079if ac_fn_c_try_compile "$LINENO"; then : 15080 xorg_cv_cc_flag_unknown_warning_option=yes 15081else 15082 xorg_cv_cc_flag_unknown_warning_option=no 15083fi 15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15085fi 15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15087$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090fi 15091 15092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15095 fi 15096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15098$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15099if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15100 $as_echo_n "(cached) " >&6 15101else 15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15103/* end confdefs.h. */ 15104int i; 15105_ACEOF 15106if ac_fn_c_try_compile "$LINENO"; then : 15107 xorg_cv_cc_flag_unused_command_line_argument=yes 15108else 15109 xorg_cv_cc_flag_unused_command_line_argument=no 15110fi 15111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15112fi 15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15114$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15116 CFLAGS="$xorg_testset_save_CFLAGS" 15117fi 15118 15119found="no" 15120 15121 if test $found = "no" ; then 15122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15124 fi 15125 15126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15128 fi 15129 15130 CFLAGS="$CFLAGS -Werror=main" 15131 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15133$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15134 cacheid=xorg_cv_cc_flag__Werror_main 15135 if eval \${$cacheid+:} false; then : 15136 $as_echo_n "(cached) " >&6 15137else 15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140int i; 15141int 15142main () 15143{ 15144 15145 ; 15146 return 0; 15147} 15148_ACEOF 15149if ac_fn_c_try_link "$LINENO"; then : 15150 eval $cacheid=yes 15151else 15152 eval $cacheid=no 15153fi 15154rm -f core conftest.err conftest.$ac_objext \ 15155 conftest$ac_exeext conftest.$ac_ext 15156fi 15157 15158 15159 CFLAGS="$xorg_testset_save_CFLAGS" 15160 15161 eval supported=\$$cacheid 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15163$as_echo "$supported" >&6; } 15164 if test "$supported" = "yes" ; then 15165 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15166 found="yes" 15167 fi 15168 fi 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184xorg_testset_save_CFLAGS="$CFLAGS" 15185 15186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15191 $as_echo_n "(cached) " >&6 15192else 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15194/* end confdefs.h. */ 15195int i; 15196_ACEOF 15197if ac_fn_c_try_compile "$LINENO"; then : 15198 xorg_cv_cc_flag_unknown_warning_option=yes 15199else 15200 xorg_cv_cc_flag_unknown_warning_option=no 15201fi 15202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15203fi 15204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15207 CFLAGS="$xorg_testset_save_CFLAGS" 15208fi 15209 15210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15213 fi 15214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219else 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15221/* end confdefs.h. */ 15222int i; 15223_ACEOF 15224if ac_fn_c_try_compile "$LINENO"; then : 15225 xorg_cv_cc_flag_unused_command_line_argument=yes 15226else 15227 xorg_cv_cc_flag_unused_command_line_argument=no 15228fi 15229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15230fi 15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15234 CFLAGS="$xorg_testset_save_CFLAGS" 15235fi 15236 15237found="no" 15238 15239 if test $found = "no" ; then 15240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15242 fi 15243 15244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15246 fi 15247 15248 CFLAGS="$CFLAGS -Werror=missing-braces" 15249 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15251$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15252 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15253 if eval \${$cacheid+:} false; then : 15254 $as_echo_n "(cached) " >&6 15255else 15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15257/* end confdefs.h. */ 15258int i; 15259int 15260main () 15261{ 15262 15263 ; 15264 return 0; 15265} 15266_ACEOF 15267if ac_fn_c_try_link "$LINENO"; then : 15268 eval $cacheid=yes 15269else 15270 eval $cacheid=no 15271fi 15272rm -f core conftest.err conftest.$ac_objext \ 15273 conftest$ac_exeext conftest.$ac_ext 15274fi 15275 15276 15277 CFLAGS="$xorg_testset_save_CFLAGS" 15278 15279 eval supported=\$$cacheid 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15281$as_echo "$supported" >&6; } 15282 if test "$supported" = "yes" ; then 15283 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15284 found="yes" 15285 fi 15286 fi 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302xorg_testset_save_CFLAGS="$CFLAGS" 15303 15304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15309 $as_echo_n "(cached) " >&6 15310else 15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15312/* end confdefs.h. */ 15313int i; 15314_ACEOF 15315if ac_fn_c_try_compile "$LINENO"; then : 15316 xorg_cv_cc_flag_unknown_warning_option=yes 15317else 15318 xorg_cv_cc_flag_unknown_warning_option=no 15319fi 15320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15321fi 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15325 CFLAGS="$xorg_testset_save_CFLAGS" 15326fi 15327 15328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15331 fi 15332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15336 $as_echo_n "(cached) " >&6 15337else 15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15339/* end confdefs.h. */ 15340int i; 15341_ACEOF 15342if ac_fn_c_try_compile "$LINENO"; then : 15343 xorg_cv_cc_flag_unused_command_line_argument=yes 15344else 15345 xorg_cv_cc_flag_unused_command_line_argument=no 15346fi 15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15348fi 15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15352 CFLAGS="$xorg_testset_save_CFLAGS" 15353fi 15354 15355found="no" 15356 15357 if test $found = "no" ; then 15358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15360 fi 15361 15362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15364 fi 15365 15366 CFLAGS="$CFLAGS -Werror=sequence-point" 15367 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15369$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15370 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15371 if eval \${$cacheid+:} false; then : 15372 $as_echo_n "(cached) " >&6 15373else 15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15375/* end confdefs.h. */ 15376int i; 15377int 15378main () 15379{ 15380 15381 ; 15382 return 0; 15383} 15384_ACEOF 15385if ac_fn_c_try_link "$LINENO"; then : 15386 eval $cacheid=yes 15387else 15388 eval $cacheid=no 15389fi 15390rm -f core conftest.err conftest.$ac_objext \ 15391 conftest$ac_exeext conftest.$ac_ext 15392fi 15393 15394 15395 CFLAGS="$xorg_testset_save_CFLAGS" 15396 15397 eval supported=\$$cacheid 15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15399$as_echo "$supported" >&6; } 15400 if test "$supported" = "yes" ; then 15401 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15402 found="yes" 15403 fi 15404 fi 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420xorg_testset_save_CFLAGS="$CFLAGS" 15421 15422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15427 $as_echo_n "(cached) " >&6 15428else 15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15430/* end confdefs.h. */ 15431int i; 15432_ACEOF 15433if ac_fn_c_try_compile "$LINENO"; then : 15434 xorg_cv_cc_flag_unknown_warning_option=yes 15435else 15436 xorg_cv_cc_flag_unknown_warning_option=no 15437fi 15438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15439fi 15440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15443 CFLAGS="$xorg_testset_save_CFLAGS" 15444fi 15445 15446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15449 fi 15450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15454 $as_echo_n "(cached) " >&6 15455else 15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15457/* end confdefs.h. */ 15458int i; 15459_ACEOF 15460if ac_fn_c_try_compile "$LINENO"; then : 15461 xorg_cv_cc_flag_unused_command_line_argument=yes 15462else 15463 xorg_cv_cc_flag_unused_command_line_argument=no 15464fi 15465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15466fi 15467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15470 CFLAGS="$xorg_testset_save_CFLAGS" 15471fi 15472 15473found="no" 15474 15475 if test $found = "no" ; then 15476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15478 fi 15479 15480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15482 fi 15483 15484 CFLAGS="$CFLAGS -Werror=return-type" 15485 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15487$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15488 cacheid=xorg_cv_cc_flag__Werror_return_type 15489 if eval \${$cacheid+:} false; then : 15490 $as_echo_n "(cached) " >&6 15491else 15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15493/* end confdefs.h. */ 15494int i; 15495int 15496main () 15497{ 15498 15499 ; 15500 return 0; 15501} 15502_ACEOF 15503if ac_fn_c_try_link "$LINENO"; then : 15504 eval $cacheid=yes 15505else 15506 eval $cacheid=no 15507fi 15508rm -f core conftest.err conftest.$ac_objext \ 15509 conftest$ac_exeext conftest.$ac_ext 15510fi 15511 15512 15513 CFLAGS="$xorg_testset_save_CFLAGS" 15514 15515 eval supported=\$$cacheid 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15517$as_echo "$supported" >&6; } 15518 if test "$supported" = "yes" ; then 15519 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15520 found="yes" 15521 fi 15522 fi 15523 15524 if test $found = "no" ; then 15525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15527 fi 15528 15529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15531 fi 15532 15533 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15534 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15536$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15537 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15538 if eval \${$cacheid+:} false; then : 15539 $as_echo_n "(cached) " >&6 15540else 15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15542/* end confdefs.h. */ 15543int i; 15544int 15545main () 15546{ 15547 15548 ; 15549 return 0; 15550} 15551_ACEOF 15552if ac_fn_c_try_link "$LINENO"; then : 15553 eval $cacheid=yes 15554else 15555 eval $cacheid=no 15556fi 15557rm -f core conftest.err conftest.$ac_objext \ 15558 conftest$ac_exeext conftest.$ac_ext 15559fi 15560 15561 15562 CFLAGS="$xorg_testset_save_CFLAGS" 15563 15564 eval supported=\$$cacheid 15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15566$as_echo "$supported" >&6; } 15567 if test "$supported" = "yes" ; then 15568 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15569 found="yes" 15570 fi 15571 fi 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587xorg_testset_save_CFLAGS="$CFLAGS" 15588 15589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15594 $as_echo_n "(cached) " >&6 15595else 15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15597/* end confdefs.h. */ 15598int i; 15599_ACEOF 15600if ac_fn_c_try_compile "$LINENO"; then : 15601 xorg_cv_cc_flag_unknown_warning_option=yes 15602else 15603 xorg_cv_cc_flag_unknown_warning_option=no 15604fi 15605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15606fi 15607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15610 CFLAGS="$xorg_testset_save_CFLAGS" 15611fi 15612 15613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15616 fi 15617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15621 $as_echo_n "(cached) " >&6 15622else 15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15624/* end confdefs.h. */ 15625int i; 15626_ACEOF 15627if ac_fn_c_try_compile "$LINENO"; then : 15628 xorg_cv_cc_flag_unused_command_line_argument=yes 15629else 15630 xorg_cv_cc_flag_unused_command_line_argument=no 15631fi 15632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15633fi 15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15637 CFLAGS="$xorg_testset_save_CFLAGS" 15638fi 15639 15640found="no" 15641 15642 if test $found = "no" ; then 15643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15645 fi 15646 15647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15649 fi 15650 15651 CFLAGS="$CFLAGS -Werror=trigraphs" 15652 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15654$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15655 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15656 if eval \${$cacheid+:} false; then : 15657 $as_echo_n "(cached) " >&6 15658else 15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15660/* end confdefs.h. */ 15661int i; 15662int 15663main () 15664{ 15665 15666 ; 15667 return 0; 15668} 15669_ACEOF 15670if ac_fn_c_try_link "$LINENO"; then : 15671 eval $cacheid=yes 15672else 15673 eval $cacheid=no 15674fi 15675rm -f core conftest.err conftest.$ac_objext \ 15676 conftest$ac_exeext conftest.$ac_ext 15677fi 15678 15679 15680 CFLAGS="$xorg_testset_save_CFLAGS" 15681 15682 eval supported=\$$cacheid 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15684$as_echo "$supported" >&6; } 15685 if test "$supported" = "yes" ; then 15686 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15687 found="yes" 15688 fi 15689 fi 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705xorg_testset_save_CFLAGS="$CFLAGS" 15706 15707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15712 $as_echo_n "(cached) " >&6 15713else 15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15715/* end confdefs.h. */ 15716int i; 15717_ACEOF 15718if ac_fn_c_try_compile "$LINENO"; then : 15719 xorg_cv_cc_flag_unknown_warning_option=yes 15720else 15721 xorg_cv_cc_flag_unknown_warning_option=no 15722fi 15723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15724fi 15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15728 CFLAGS="$xorg_testset_save_CFLAGS" 15729fi 15730 15731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15734 fi 15735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15739 $as_echo_n "(cached) " >&6 15740else 15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15742/* end confdefs.h. */ 15743int i; 15744_ACEOF 15745if ac_fn_c_try_compile "$LINENO"; then : 15746 xorg_cv_cc_flag_unused_command_line_argument=yes 15747else 15748 xorg_cv_cc_flag_unused_command_line_argument=no 15749fi 15750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15751fi 15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15755 CFLAGS="$xorg_testset_save_CFLAGS" 15756fi 15757 15758found="no" 15759 15760 if test $found = "no" ; then 15761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15763 fi 15764 15765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15767 fi 15768 15769 CFLAGS="$CFLAGS -Werror=array-bounds" 15770 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15772$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15773 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15774 if eval \${$cacheid+:} false; then : 15775 $as_echo_n "(cached) " >&6 15776else 15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15778/* end confdefs.h. */ 15779int i; 15780int 15781main () 15782{ 15783 15784 ; 15785 return 0; 15786} 15787_ACEOF 15788if ac_fn_c_try_link "$LINENO"; then : 15789 eval $cacheid=yes 15790else 15791 eval $cacheid=no 15792fi 15793rm -f core conftest.err conftest.$ac_objext \ 15794 conftest$ac_exeext conftest.$ac_ext 15795fi 15796 15797 15798 CFLAGS="$xorg_testset_save_CFLAGS" 15799 15800 eval supported=\$$cacheid 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15802$as_echo "$supported" >&6; } 15803 if test "$supported" = "yes" ; then 15804 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15805 found="yes" 15806 fi 15807 fi 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823xorg_testset_save_CFLAGS="$CFLAGS" 15824 15825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15830 $as_echo_n "(cached) " >&6 15831else 15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15833/* end confdefs.h. */ 15834int i; 15835_ACEOF 15836if ac_fn_c_try_compile "$LINENO"; then : 15837 xorg_cv_cc_flag_unknown_warning_option=yes 15838else 15839 xorg_cv_cc_flag_unknown_warning_option=no 15840fi 15841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15842fi 15843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15846 CFLAGS="$xorg_testset_save_CFLAGS" 15847fi 15848 15849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15852 fi 15853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15857 $as_echo_n "(cached) " >&6 15858else 15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15860/* end confdefs.h. */ 15861int i; 15862_ACEOF 15863if ac_fn_c_try_compile "$LINENO"; then : 15864 xorg_cv_cc_flag_unused_command_line_argument=yes 15865else 15866 xorg_cv_cc_flag_unused_command_line_argument=no 15867fi 15868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15869fi 15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15873 CFLAGS="$xorg_testset_save_CFLAGS" 15874fi 15875 15876found="no" 15877 15878 if test $found = "no" ; then 15879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15881 fi 15882 15883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15885 fi 15886 15887 CFLAGS="$CFLAGS -Werror=write-strings" 15888 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15890$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15891 cacheid=xorg_cv_cc_flag__Werror_write_strings 15892 if eval \${$cacheid+:} false; then : 15893 $as_echo_n "(cached) " >&6 15894else 15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15896/* end confdefs.h. */ 15897int i; 15898int 15899main () 15900{ 15901 15902 ; 15903 return 0; 15904} 15905_ACEOF 15906if ac_fn_c_try_link "$LINENO"; then : 15907 eval $cacheid=yes 15908else 15909 eval $cacheid=no 15910fi 15911rm -f core conftest.err conftest.$ac_objext \ 15912 conftest$ac_exeext conftest.$ac_ext 15913fi 15914 15915 15916 CFLAGS="$xorg_testset_save_CFLAGS" 15917 15918 eval supported=\$$cacheid 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15920$as_echo "$supported" >&6; } 15921 if test "$supported" = "yes" ; then 15922 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15923 found="yes" 15924 fi 15925 fi 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941xorg_testset_save_CFLAGS="$CFLAGS" 15942 15943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15948 $as_echo_n "(cached) " >&6 15949else 15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15951/* end confdefs.h. */ 15952int i; 15953_ACEOF 15954if ac_fn_c_try_compile "$LINENO"; then : 15955 xorg_cv_cc_flag_unknown_warning_option=yes 15956else 15957 xorg_cv_cc_flag_unknown_warning_option=no 15958fi 15959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15960fi 15961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15964 CFLAGS="$xorg_testset_save_CFLAGS" 15965fi 15966 15967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15970 fi 15971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15975 $as_echo_n "(cached) " >&6 15976else 15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15978/* end confdefs.h. */ 15979int i; 15980_ACEOF 15981if ac_fn_c_try_compile "$LINENO"; then : 15982 xorg_cv_cc_flag_unused_command_line_argument=yes 15983else 15984 xorg_cv_cc_flag_unused_command_line_argument=no 15985fi 15986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15987fi 15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15991 CFLAGS="$xorg_testset_save_CFLAGS" 15992fi 15993 15994found="no" 15995 15996 if test $found = "no" ; then 15997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15999 fi 16000 16001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16003 fi 16004 16005 CFLAGS="$CFLAGS -Werror=address" 16006 16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16008$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16009 cacheid=xorg_cv_cc_flag__Werror_address 16010 if eval \${$cacheid+:} false; then : 16011 $as_echo_n "(cached) " >&6 16012else 16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16014/* end confdefs.h. */ 16015int i; 16016int 16017main () 16018{ 16019 16020 ; 16021 return 0; 16022} 16023_ACEOF 16024if ac_fn_c_try_link "$LINENO"; then : 16025 eval $cacheid=yes 16026else 16027 eval $cacheid=no 16028fi 16029rm -f core conftest.err conftest.$ac_objext \ 16030 conftest$ac_exeext conftest.$ac_ext 16031fi 16032 16033 16034 CFLAGS="$xorg_testset_save_CFLAGS" 16035 16036 eval supported=\$$cacheid 16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16038$as_echo "$supported" >&6; } 16039 if test "$supported" = "yes" ; then 16040 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16041 found="yes" 16042 fi 16043 fi 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059xorg_testset_save_CFLAGS="$CFLAGS" 16060 16061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16066 $as_echo_n "(cached) " >&6 16067else 16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16069/* end confdefs.h. */ 16070int i; 16071_ACEOF 16072if ac_fn_c_try_compile "$LINENO"; then : 16073 xorg_cv_cc_flag_unknown_warning_option=yes 16074else 16075 xorg_cv_cc_flag_unknown_warning_option=no 16076fi 16077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16078fi 16079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16082 CFLAGS="$xorg_testset_save_CFLAGS" 16083fi 16084 16085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16088 fi 16089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16093 $as_echo_n "(cached) " >&6 16094else 16095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16096/* end confdefs.h. */ 16097int i; 16098_ACEOF 16099if ac_fn_c_try_compile "$LINENO"; then : 16100 xorg_cv_cc_flag_unused_command_line_argument=yes 16101else 16102 xorg_cv_cc_flag_unused_command_line_argument=no 16103fi 16104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16105fi 16106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16109 CFLAGS="$xorg_testset_save_CFLAGS" 16110fi 16111 16112found="no" 16113 16114 if test $found = "no" ; then 16115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16117 fi 16118 16119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16121 fi 16122 16123 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16124 16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16126$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16127 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16128 if eval \${$cacheid+:} false; then : 16129 $as_echo_n "(cached) " >&6 16130else 16131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16132/* end confdefs.h. */ 16133int i; 16134int 16135main () 16136{ 16137 16138 ; 16139 return 0; 16140} 16141_ACEOF 16142if ac_fn_c_try_link "$LINENO"; then : 16143 eval $cacheid=yes 16144else 16145 eval $cacheid=no 16146fi 16147rm -f core conftest.err conftest.$ac_objext \ 16148 conftest$ac_exeext conftest.$ac_ext 16149fi 16150 16151 16152 CFLAGS="$xorg_testset_save_CFLAGS" 16153 16154 eval supported=\$$cacheid 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16156$as_echo "$supported" >&6; } 16157 if test "$supported" = "yes" ; then 16158 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16159 found="yes" 16160 fi 16161 fi 16162 16163 if test $found = "no" ; then 16164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16166 fi 16167 16168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16170 fi 16171 16172 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16173 16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16175$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16176 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16177 if eval \${$cacheid+:} false; then : 16178 $as_echo_n "(cached) " >&6 16179else 16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16181/* end confdefs.h. */ 16182int i; 16183int 16184main () 16185{ 16186 16187 ; 16188 return 0; 16189} 16190_ACEOF 16191if ac_fn_c_try_link "$LINENO"; then : 16192 eval $cacheid=yes 16193else 16194 eval $cacheid=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext \ 16197 conftest$ac_exeext conftest.$ac_ext 16198fi 16199 16200 16201 CFLAGS="$xorg_testset_save_CFLAGS" 16202 16203 eval supported=\$$cacheid 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16205$as_echo "$supported" >&6; } 16206 if test "$supported" = "yes" ; then 16207 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16208 found="yes" 16209 fi 16210 fi 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226xorg_testset_save_CFLAGS="$CFLAGS" 16227 16228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16231$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16232if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16233 $as_echo_n "(cached) " >&6 16234else 16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16236/* end confdefs.h. */ 16237int i; 16238_ACEOF 16239if ac_fn_c_try_compile "$LINENO"; then : 16240 xorg_cv_cc_flag_unknown_warning_option=yes 16241else 16242 xorg_cv_cc_flag_unknown_warning_option=no 16243fi 16244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16245fi 16246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16247$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16249 CFLAGS="$xorg_testset_save_CFLAGS" 16250fi 16251 16252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16255 fi 16256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16258$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16259if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16260 $as_echo_n "(cached) " >&6 16261else 16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16263/* end confdefs.h. */ 16264int i; 16265_ACEOF 16266if ac_fn_c_try_compile "$LINENO"; then : 16267 xorg_cv_cc_flag_unused_command_line_argument=yes 16268else 16269 xorg_cv_cc_flag_unused_command_line_argument=no 16270fi 16271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16272fi 16273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16274$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16276 CFLAGS="$xorg_testset_save_CFLAGS" 16277fi 16278 16279found="no" 16280 16281 if test $found = "no" ; then 16282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16284 fi 16285 16286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16288 fi 16289 16290 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16291 16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16293$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16294 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16295 if eval \${$cacheid+:} false; then : 16296 $as_echo_n "(cached) " >&6 16297else 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299/* end confdefs.h. */ 16300int i; 16301int 16302main () 16303{ 16304 16305 ; 16306 return 0; 16307} 16308_ACEOF 16309if ac_fn_c_try_link "$LINENO"; then : 16310 eval $cacheid=yes 16311else 16312 eval $cacheid=no 16313fi 16314rm -f core conftest.err conftest.$ac_objext \ 16315 conftest$ac_exeext conftest.$ac_ext 16316fi 16317 16318 16319 CFLAGS="$xorg_testset_save_CFLAGS" 16320 16321 eval supported=\$$cacheid 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16323$as_echo "$supported" >&6; } 16324 if test "$supported" = "yes" ; then 16325 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16326 found="yes" 16327 fi 16328 fi 16329 16330 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16331else 16332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 16333$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347xorg_testset_save_CFLAGS="$CFLAGS" 16348 16349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16352$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16353if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16354 $as_echo_n "(cached) " >&6 16355else 16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16357/* end confdefs.h. */ 16358int i; 16359_ACEOF 16360if ac_fn_c_try_compile "$LINENO"; then : 16361 xorg_cv_cc_flag_unknown_warning_option=yes 16362else 16363 xorg_cv_cc_flag_unknown_warning_option=no 16364fi 16365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16366fi 16367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16368$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371fi 16372 16373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16376 fi 16377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16379$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16380if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16381 $as_echo_n "(cached) " >&6 16382else 16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16384/* end confdefs.h. */ 16385int i; 16386_ACEOF 16387if ac_fn_c_try_compile "$LINENO"; then : 16388 xorg_cv_cc_flag_unused_command_line_argument=yes 16389else 16390 xorg_cv_cc_flag_unused_command_line_argument=no 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16393fi 16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16395$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16397 CFLAGS="$xorg_testset_save_CFLAGS" 16398fi 16399 16400found="no" 16401 16402 if test $found = "no" ; then 16403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16405 fi 16406 16407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16409 fi 16410 16411 CFLAGS="$CFLAGS -Wimplicit" 16412 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16414$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16415 cacheid=xorg_cv_cc_flag__Wimplicit 16416 if eval \${$cacheid+:} false; then : 16417 $as_echo_n "(cached) " >&6 16418else 16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16420/* end confdefs.h. */ 16421int i; 16422int 16423main () 16424{ 16425 16426 ; 16427 return 0; 16428} 16429_ACEOF 16430if ac_fn_c_try_link "$LINENO"; then : 16431 eval $cacheid=yes 16432else 16433 eval $cacheid=no 16434fi 16435rm -f core conftest.err conftest.$ac_objext \ 16436 conftest$ac_exeext conftest.$ac_ext 16437fi 16438 16439 16440 CFLAGS="$xorg_testset_save_CFLAGS" 16441 16442 eval supported=\$$cacheid 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16444$as_echo "$supported" >&6; } 16445 if test "$supported" = "yes" ; then 16446 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16447 found="yes" 16448 fi 16449 fi 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465xorg_testset_save_CFLAGS="$CFLAGS" 16466 16467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16472 $as_echo_n "(cached) " >&6 16473else 16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16475/* end confdefs.h. */ 16476int i; 16477_ACEOF 16478if ac_fn_c_try_compile "$LINENO"; then : 16479 xorg_cv_cc_flag_unknown_warning_option=yes 16480else 16481 xorg_cv_cc_flag_unknown_warning_option=no 16482fi 16483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16484fi 16485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16488 CFLAGS="$xorg_testset_save_CFLAGS" 16489fi 16490 16491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16494 fi 16495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16499 $as_echo_n "(cached) " >&6 16500else 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503int i; 16504_ACEOF 16505if ac_fn_c_try_compile "$LINENO"; then : 16506 xorg_cv_cc_flag_unused_command_line_argument=yes 16507else 16508 xorg_cv_cc_flag_unused_command_line_argument=no 16509fi 16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16511fi 16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16515 CFLAGS="$xorg_testset_save_CFLAGS" 16516fi 16517 16518found="no" 16519 16520 if test $found = "no" ; then 16521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16523 fi 16524 16525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16527 fi 16528 16529 CFLAGS="$CFLAGS -Wnonnull" 16530 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16532$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16533 cacheid=xorg_cv_cc_flag__Wnonnull 16534 if eval \${$cacheid+:} false; then : 16535 $as_echo_n "(cached) " >&6 16536else 16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16538/* end confdefs.h. */ 16539int i; 16540int 16541main () 16542{ 16543 16544 ; 16545 return 0; 16546} 16547_ACEOF 16548if ac_fn_c_try_link "$LINENO"; then : 16549 eval $cacheid=yes 16550else 16551 eval $cacheid=no 16552fi 16553rm -f core conftest.err conftest.$ac_objext \ 16554 conftest$ac_exeext conftest.$ac_ext 16555fi 16556 16557 16558 CFLAGS="$xorg_testset_save_CFLAGS" 16559 16560 eval supported=\$$cacheid 16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16562$as_echo "$supported" >&6; } 16563 if test "$supported" = "yes" ; then 16564 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16565 found="yes" 16566 fi 16567 fi 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583xorg_testset_save_CFLAGS="$CFLAGS" 16584 16585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16590 $as_echo_n "(cached) " >&6 16591else 16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16593/* end confdefs.h. */ 16594int i; 16595_ACEOF 16596if ac_fn_c_try_compile "$LINENO"; then : 16597 xorg_cv_cc_flag_unknown_warning_option=yes 16598else 16599 xorg_cv_cc_flag_unknown_warning_option=no 16600fi 16601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16602fi 16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16606 CFLAGS="$xorg_testset_save_CFLAGS" 16607fi 16608 16609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16612 fi 16613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16617 $as_echo_n "(cached) " >&6 16618else 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621int i; 16622_ACEOF 16623if ac_fn_c_try_compile "$LINENO"; then : 16624 xorg_cv_cc_flag_unused_command_line_argument=yes 16625else 16626 xorg_cv_cc_flag_unused_command_line_argument=no 16627fi 16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16629fi 16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16633 CFLAGS="$xorg_testset_save_CFLAGS" 16634fi 16635 16636found="no" 16637 16638 if test $found = "no" ; then 16639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16641 fi 16642 16643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16645 fi 16646 16647 CFLAGS="$CFLAGS -Winit-self" 16648 16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16650$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16651 cacheid=xorg_cv_cc_flag__Winit_self 16652 if eval \${$cacheid+:} false; then : 16653 $as_echo_n "(cached) " >&6 16654else 16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16656/* end confdefs.h. */ 16657int i; 16658int 16659main () 16660{ 16661 16662 ; 16663 return 0; 16664} 16665_ACEOF 16666if ac_fn_c_try_link "$LINENO"; then : 16667 eval $cacheid=yes 16668else 16669 eval $cacheid=no 16670fi 16671rm -f core conftest.err conftest.$ac_objext \ 16672 conftest$ac_exeext conftest.$ac_ext 16673fi 16674 16675 16676 CFLAGS="$xorg_testset_save_CFLAGS" 16677 16678 eval supported=\$$cacheid 16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16680$as_echo "$supported" >&6; } 16681 if test "$supported" = "yes" ; then 16682 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16683 found="yes" 16684 fi 16685 fi 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701xorg_testset_save_CFLAGS="$CFLAGS" 16702 16703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16706$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16707if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16708 $as_echo_n "(cached) " >&6 16709else 16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16711/* end confdefs.h. */ 16712int i; 16713_ACEOF 16714if ac_fn_c_try_compile "$LINENO"; then : 16715 xorg_cv_cc_flag_unknown_warning_option=yes 16716else 16717 xorg_cv_cc_flag_unknown_warning_option=no 16718fi 16719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16720fi 16721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16722$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16724 CFLAGS="$xorg_testset_save_CFLAGS" 16725fi 16726 16727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16730 fi 16731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16733$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16734if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16735 $as_echo_n "(cached) " >&6 16736else 16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16738/* end confdefs.h. */ 16739int i; 16740_ACEOF 16741if ac_fn_c_try_compile "$LINENO"; then : 16742 xorg_cv_cc_flag_unused_command_line_argument=yes 16743else 16744 xorg_cv_cc_flag_unused_command_line_argument=no 16745fi 16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16747fi 16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16749$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16751 CFLAGS="$xorg_testset_save_CFLAGS" 16752fi 16753 16754found="no" 16755 16756 if test $found = "no" ; then 16757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16759 fi 16760 16761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16763 fi 16764 16765 CFLAGS="$CFLAGS -Wmain" 16766 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16768$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16769 cacheid=xorg_cv_cc_flag__Wmain 16770 if eval \${$cacheid+:} false; then : 16771 $as_echo_n "(cached) " >&6 16772else 16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16774/* end confdefs.h. */ 16775int i; 16776int 16777main () 16778{ 16779 16780 ; 16781 return 0; 16782} 16783_ACEOF 16784if ac_fn_c_try_link "$LINENO"; then : 16785 eval $cacheid=yes 16786else 16787 eval $cacheid=no 16788fi 16789rm -f core conftest.err conftest.$ac_objext \ 16790 conftest$ac_exeext conftest.$ac_ext 16791fi 16792 16793 16794 CFLAGS="$xorg_testset_save_CFLAGS" 16795 16796 eval supported=\$$cacheid 16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16798$as_echo "$supported" >&6; } 16799 if test "$supported" = "yes" ; then 16800 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16801 found="yes" 16802 fi 16803 fi 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819xorg_testset_save_CFLAGS="$CFLAGS" 16820 16821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16826 $as_echo_n "(cached) " >&6 16827else 16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16829/* end confdefs.h. */ 16830int i; 16831_ACEOF 16832if ac_fn_c_try_compile "$LINENO"; then : 16833 xorg_cv_cc_flag_unknown_warning_option=yes 16834else 16835 xorg_cv_cc_flag_unknown_warning_option=no 16836fi 16837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16838fi 16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16842 CFLAGS="$xorg_testset_save_CFLAGS" 16843fi 16844 16845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16848 fi 16849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16853 $as_echo_n "(cached) " >&6 16854else 16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16856/* end confdefs.h. */ 16857int i; 16858_ACEOF 16859if ac_fn_c_try_compile "$LINENO"; then : 16860 xorg_cv_cc_flag_unused_command_line_argument=yes 16861else 16862 xorg_cv_cc_flag_unused_command_line_argument=no 16863fi 16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16865fi 16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16869 CFLAGS="$xorg_testset_save_CFLAGS" 16870fi 16871 16872found="no" 16873 16874 if test $found = "no" ; then 16875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16877 fi 16878 16879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16881 fi 16882 16883 CFLAGS="$CFLAGS -Wmissing-braces" 16884 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16886$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16887 cacheid=xorg_cv_cc_flag__Wmissing_braces 16888 if eval \${$cacheid+:} false; then : 16889 $as_echo_n "(cached) " >&6 16890else 16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16892/* end confdefs.h. */ 16893int i; 16894int 16895main () 16896{ 16897 16898 ; 16899 return 0; 16900} 16901_ACEOF 16902if ac_fn_c_try_link "$LINENO"; then : 16903 eval $cacheid=yes 16904else 16905 eval $cacheid=no 16906fi 16907rm -f core conftest.err conftest.$ac_objext \ 16908 conftest$ac_exeext conftest.$ac_ext 16909fi 16910 16911 16912 CFLAGS="$xorg_testset_save_CFLAGS" 16913 16914 eval supported=\$$cacheid 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16916$as_echo "$supported" >&6; } 16917 if test "$supported" = "yes" ; then 16918 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16919 found="yes" 16920 fi 16921 fi 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937xorg_testset_save_CFLAGS="$CFLAGS" 16938 16939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16944 $as_echo_n "(cached) " >&6 16945else 16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16947/* end confdefs.h. */ 16948int i; 16949_ACEOF 16950if ac_fn_c_try_compile "$LINENO"; then : 16951 xorg_cv_cc_flag_unknown_warning_option=yes 16952else 16953 xorg_cv_cc_flag_unknown_warning_option=no 16954fi 16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16956fi 16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16960 CFLAGS="$xorg_testset_save_CFLAGS" 16961fi 16962 16963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16966 fi 16967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16971 $as_echo_n "(cached) " >&6 16972else 16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16974/* end confdefs.h. */ 16975int i; 16976_ACEOF 16977if ac_fn_c_try_compile "$LINENO"; then : 16978 xorg_cv_cc_flag_unused_command_line_argument=yes 16979else 16980 xorg_cv_cc_flag_unused_command_line_argument=no 16981fi 16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16983fi 16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16987 CFLAGS="$xorg_testset_save_CFLAGS" 16988fi 16989 16990found="no" 16991 16992 if test $found = "no" ; then 16993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16995 fi 16996 16997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16999 fi 17000 17001 CFLAGS="$CFLAGS -Wsequence-point" 17002 17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17004$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17005 cacheid=xorg_cv_cc_flag__Wsequence_point 17006 if eval \${$cacheid+:} false; then : 17007 $as_echo_n "(cached) " >&6 17008else 17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010/* end confdefs.h. */ 17011int i; 17012int 17013main () 17014{ 17015 17016 ; 17017 return 0; 17018} 17019_ACEOF 17020if ac_fn_c_try_link "$LINENO"; then : 17021 eval $cacheid=yes 17022else 17023 eval $cacheid=no 17024fi 17025rm -f core conftest.err conftest.$ac_objext \ 17026 conftest$ac_exeext conftest.$ac_ext 17027fi 17028 17029 17030 CFLAGS="$xorg_testset_save_CFLAGS" 17031 17032 eval supported=\$$cacheid 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17034$as_echo "$supported" >&6; } 17035 if test "$supported" = "yes" ; then 17036 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17037 found="yes" 17038 fi 17039 fi 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055xorg_testset_save_CFLAGS="$CFLAGS" 17056 17057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17062 $as_echo_n "(cached) " >&6 17063else 17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17065/* end confdefs.h. */ 17066int i; 17067_ACEOF 17068if ac_fn_c_try_compile "$LINENO"; then : 17069 xorg_cv_cc_flag_unknown_warning_option=yes 17070else 17071 xorg_cv_cc_flag_unknown_warning_option=no 17072fi 17073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17074fi 17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17078 CFLAGS="$xorg_testset_save_CFLAGS" 17079fi 17080 17081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17084 fi 17085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17089 $as_echo_n "(cached) " >&6 17090else 17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17092/* end confdefs.h. */ 17093int i; 17094_ACEOF 17095if ac_fn_c_try_compile "$LINENO"; then : 17096 xorg_cv_cc_flag_unused_command_line_argument=yes 17097else 17098 xorg_cv_cc_flag_unused_command_line_argument=no 17099fi 17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17101fi 17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17105 CFLAGS="$xorg_testset_save_CFLAGS" 17106fi 17107 17108found="no" 17109 17110 if test $found = "no" ; then 17111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17113 fi 17114 17115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17117 fi 17118 17119 CFLAGS="$CFLAGS -Wreturn-type" 17120 17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17122$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17123 cacheid=xorg_cv_cc_flag__Wreturn_type 17124 if eval \${$cacheid+:} false; then : 17125 $as_echo_n "(cached) " >&6 17126else 17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17128/* end confdefs.h. */ 17129int i; 17130int 17131main () 17132{ 17133 17134 ; 17135 return 0; 17136} 17137_ACEOF 17138if ac_fn_c_try_link "$LINENO"; then : 17139 eval $cacheid=yes 17140else 17141 eval $cacheid=no 17142fi 17143rm -f core conftest.err conftest.$ac_objext \ 17144 conftest$ac_exeext conftest.$ac_ext 17145fi 17146 17147 17148 CFLAGS="$xorg_testset_save_CFLAGS" 17149 17150 eval supported=\$$cacheid 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17152$as_echo "$supported" >&6; } 17153 if test "$supported" = "yes" ; then 17154 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17155 found="yes" 17156 fi 17157 fi 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173xorg_testset_save_CFLAGS="$CFLAGS" 17174 17175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17180 $as_echo_n "(cached) " >&6 17181else 17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17183/* end confdefs.h. */ 17184int i; 17185_ACEOF 17186if ac_fn_c_try_compile "$LINENO"; then : 17187 xorg_cv_cc_flag_unknown_warning_option=yes 17188else 17189 xorg_cv_cc_flag_unknown_warning_option=no 17190fi 17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17192fi 17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17196 CFLAGS="$xorg_testset_save_CFLAGS" 17197fi 17198 17199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17202 fi 17203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17207 $as_echo_n "(cached) " >&6 17208else 17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17210/* end confdefs.h. */ 17211int i; 17212_ACEOF 17213if ac_fn_c_try_compile "$LINENO"; then : 17214 xorg_cv_cc_flag_unused_command_line_argument=yes 17215else 17216 xorg_cv_cc_flag_unused_command_line_argument=no 17217fi 17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17219fi 17220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17223 CFLAGS="$xorg_testset_save_CFLAGS" 17224fi 17225 17226found="no" 17227 17228 if test $found = "no" ; then 17229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17231 fi 17232 17233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17235 fi 17236 17237 CFLAGS="$CFLAGS -Wtrigraphs" 17238 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17240$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17241 cacheid=xorg_cv_cc_flag__Wtrigraphs 17242 if eval \${$cacheid+:} false; then : 17243 $as_echo_n "(cached) " >&6 17244else 17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17246/* end confdefs.h. */ 17247int i; 17248int 17249main () 17250{ 17251 17252 ; 17253 return 0; 17254} 17255_ACEOF 17256if ac_fn_c_try_link "$LINENO"; then : 17257 eval $cacheid=yes 17258else 17259 eval $cacheid=no 17260fi 17261rm -f core conftest.err conftest.$ac_objext \ 17262 conftest$ac_exeext conftest.$ac_ext 17263fi 17264 17265 17266 CFLAGS="$xorg_testset_save_CFLAGS" 17267 17268 eval supported=\$$cacheid 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17270$as_echo "$supported" >&6; } 17271 if test "$supported" = "yes" ; then 17272 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17273 found="yes" 17274 fi 17275 fi 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291xorg_testset_save_CFLAGS="$CFLAGS" 17292 17293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17298 $as_echo_n "(cached) " >&6 17299else 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302int i; 17303_ACEOF 17304if ac_fn_c_try_compile "$LINENO"; then : 17305 xorg_cv_cc_flag_unknown_warning_option=yes 17306else 17307 xorg_cv_cc_flag_unknown_warning_option=no 17308fi 17309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17310fi 17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17314 CFLAGS="$xorg_testset_save_CFLAGS" 17315fi 17316 17317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17320 fi 17321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17325 $as_echo_n "(cached) " >&6 17326else 17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17328/* end confdefs.h. */ 17329int i; 17330_ACEOF 17331if ac_fn_c_try_compile "$LINENO"; then : 17332 xorg_cv_cc_flag_unused_command_line_argument=yes 17333else 17334 xorg_cv_cc_flag_unused_command_line_argument=no 17335fi 17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17337fi 17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17341 CFLAGS="$xorg_testset_save_CFLAGS" 17342fi 17343 17344found="no" 17345 17346 if test $found = "no" ; then 17347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17349 fi 17350 17351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17353 fi 17354 17355 CFLAGS="$CFLAGS -Warray-bounds" 17356 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17358$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17359 cacheid=xorg_cv_cc_flag__Warray_bounds 17360 if eval \${$cacheid+:} false; then : 17361 $as_echo_n "(cached) " >&6 17362else 17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364/* end confdefs.h. */ 17365int i; 17366int 17367main () 17368{ 17369 17370 ; 17371 return 0; 17372} 17373_ACEOF 17374if ac_fn_c_try_link "$LINENO"; then : 17375 eval $cacheid=yes 17376else 17377 eval $cacheid=no 17378fi 17379rm -f core conftest.err conftest.$ac_objext \ 17380 conftest$ac_exeext conftest.$ac_ext 17381fi 17382 17383 17384 CFLAGS="$xorg_testset_save_CFLAGS" 17385 17386 eval supported=\$$cacheid 17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17388$as_echo "$supported" >&6; } 17389 if test "$supported" = "yes" ; then 17390 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17391 found="yes" 17392 fi 17393 fi 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409xorg_testset_save_CFLAGS="$CFLAGS" 17410 17411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17416 $as_echo_n "(cached) " >&6 17417else 17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419/* end confdefs.h. */ 17420int i; 17421_ACEOF 17422if ac_fn_c_try_compile "$LINENO"; then : 17423 xorg_cv_cc_flag_unknown_warning_option=yes 17424else 17425 xorg_cv_cc_flag_unknown_warning_option=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17428fi 17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17432 CFLAGS="$xorg_testset_save_CFLAGS" 17433fi 17434 17435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17438 fi 17439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17443 $as_echo_n "(cached) " >&6 17444else 17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17446/* end confdefs.h. */ 17447int i; 17448_ACEOF 17449if ac_fn_c_try_compile "$LINENO"; then : 17450 xorg_cv_cc_flag_unused_command_line_argument=yes 17451else 17452 xorg_cv_cc_flag_unused_command_line_argument=no 17453fi 17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17455fi 17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17459 CFLAGS="$xorg_testset_save_CFLAGS" 17460fi 17461 17462found="no" 17463 17464 if test $found = "no" ; then 17465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17467 fi 17468 17469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17471 fi 17472 17473 CFLAGS="$CFLAGS -Wwrite-strings" 17474 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17476$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17477 cacheid=xorg_cv_cc_flag__Wwrite_strings 17478 if eval \${$cacheid+:} false; then : 17479 $as_echo_n "(cached) " >&6 17480else 17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17482/* end confdefs.h. */ 17483int i; 17484int 17485main () 17486{ 17487 17488 ; 17489 return 0; 17490} 17491_ACEOF 17492if ac_fn_c_try_link "$LINENO"; then : 17493 eval $cacheid=yes 17494else 17495 eval $cacheid=no 17496fi 17497rm -f core conftest.err conftest.$ac_objext \ 17498 conftest$ac_exeext conftest.$ac_ext 17499fi 17500 17501 17502 CFLAGS="$xorg_testset_save_CFLAGS" 17503 17504 eval supported=\$$cacheid 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17506$as_echo "$supported" >&6; } 17507 if test "$supported" = "yes" ; then 17508 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17509 found="yes" 17510 fi 17511 fi 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527xorg_testset_save_CFLAGS="$CFLAGS" 17528 17529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17534 $as_echo_n "(cached) " >&6 17535else 17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17537/* end confdefs.h. */ 17538int i; 17539_ACEOF 17540if ac_fn_c_try_compile "$LINENO"; then : 17541 xorg_cv_cc_flag_unknown_warning_option=yes 17542else 17543 xorg_cv_cc_flag_unknown_warning_option=no 17544fi 17545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17546fi 17547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17550 CFLAGS="$xorg_testset_save_CFLAGS" 17551fi 17552 17553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17556 fi 17557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17561 $as_echo_n "(cached) " >&6 17562else 17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17564/* end confdefs.h. */ 17565int i; 17566_ACEOF 17567if ac_fn_c_try_compile "$LINENO"; then : 17568 xorg_cv_cc_flag_unused_command_line_argument=yes 17569else 17570 xorg_cv_cc_flag_unused_command_line_argument=no 17571fi 17572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17573fi 17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17577 CFLAGS="$xorg_testset_save_CFLAGS" 17578fi 17579 17580found="no" 17581 17582 if test $found = "no" ; then 17583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17585 fi 17586 17587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17589 fi 17590 17591 CFLAGS="$CFLAGS -Waddress" 17592 17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17594$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17595 cacheid=xorg_cv_cc_flag__Waddress 17596 if eval \${$cacheid+:} false; then : 17597 $as_echo_n "(cached) " >&6 17598else 17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17600/* end confdefs.h. */ 17601int i; 17602int 17603main () 17604{ 17605 17606 ; 17607 return 0; 17608} 17609_ACEOF 17610if ac_fn_c_try_link "$LINENO"; then : 17611 eval $cacheid=yes 17612else 17613 eval $cacheid=no 17614fi 17615rm -f core conftest.err conftest.$ac_objext \ 17616 conftest$ac_exeext conftest.$ac_ext 17617fi 17618 17619 17620 CFLAGS="$xorg_testset_save_CFLAGS" 17621 17622 eval supported=\$$cacheid 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17624$as_echo "$supported" >&6; } 17625 if test "$supported" = "yes" ; then 17626 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17627 found="yes" 17628 fi 17629 fi 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645xorg_testset_save_CFLAGS="$CFLAGS" 17646 17647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17652 $as_echo_n "(cached) " >&6 17653else 17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17655/* end confdefs.h. */ 17656int i; 17657_ACEOF 17658if ac_fn_c_try_compile "$LINENO"; then : 17659 xorg_cv_cc_flag_unknown_warning_option=yes 17660else 17661 xorg_cv_cc_flag_unknown_warning_option=no 17662fi 17663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17664fi 17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17668 CFLAGS="$xorg_testset_save_CFLAGS" 17669fi 17670 17671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17674 fi 17675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17679 $as_echo_n "(cached) " >&6 17680else 17681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17682/* end confdefs.h. */ 17683int i; 17684_ACEOF 17685if ac_fn_c_try_compile "$LINENO"; then : 17686 xorg_cv_cc_flag_unused_command_line_argument=yes 17687else 17688 xorg_cv_cc_flag_unused_command_line_argument=no 17689fi 17690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17691fi 17692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17695 CFLAGS="$xorg_testset_save_CFLAGS" 17696fi 17697 17698found="no" 17699 17700 if test $found = "no" ; then 17701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17703 fi 17704 17705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17707 fi 17708 17709 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17710 17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17712$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17713 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17714 if eval \${$cacheid+:} false; then : 17715 $as_echo_n "(cached) " >&6 17716else 17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17718/* end confdefs.h. */ 17719int i; 17720int 17721main () 17722{ 17723 17724 ; 17725 return 0; 17726} 17727_ACEOF 17728if ac_fn_c_try_link "$LINENO"; then : 17729 eval $cacheid=yes 17730else 17731 eval $cacheid=no 17732fi 17733rm -f core conftest.err conftest.$ac_objext \ 17734 conftest$ac_exeext conftest.$ac_ext 17735fi 17736 17737 17738 CFLAGS="$xorg_testset_save_CFLAGS" 17739 17740 eval supported=\$$cacheid 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17742$as_echo "$supported" >&6; } 17743 if test "$supported" = "yes" ; then 17744 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17745 found="yes" 17746 fi 17747 fi 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763xorg_testset_save_CFLAGS="$CFLAGS" 17764 17765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17770 $as_echo_n "(cached) " >&6 17771else 17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17773/* end confdefs.h. */ 17774int i; 17775_ACEOF 17776if ac_fn_c_try_compile "$LINENO"; then : 17777 xorg_cv_cc_flag_unknown_warning_option=yes 17778else 17779 xorg_cv_cc_flag_unknown_warning_option=no 17780fi 17781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17782fi 17783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17786 CFLAGS="$xorg_testset_save_CFLAGS" 17787fi 17788 17789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17792 fi 17793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17797 $as_echo_n "(cached) " >&6 17798else 17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17800/* end confdefs.h. */ 17801int i; 17802_ACEOF 17803if ac_fn_c_try_compile "$LINENO"; then : 17804 xorg_cv_cc_flag_unused_command_line_argument=yes 17805else 17806 xorg_cv_cc_flag_unused_command_line_argument=no 17807fi 17808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17809fi 17810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17813 CFLAGS="$xorg_testset_save_CFLAGS" 17814fi 17815 17816found="no" 17817 17818 if test $found = "no" ; then 17819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17821 fi 17822 17823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17825 fi 17826 17827 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17828 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17830$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17831 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17832 if eval \${$cacheid+:} false; then : 17833 $as_echo_n "(cached) " >&6 17834else 17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17836/* end confdefs.h. */ 17837int i; 17838int 17839main () 17840{ 17841 17842 ; 17843 return 0; 17844} 17845_ACEOF 17846if ac_fn_c_try_link "$LINENO"; then : 17847 eval $cacheid=yes 17848else 17849 eval $cacheid=no 17850fi 17851rm -f core conftest.err conftest.$ac_objext \ 17852 conftest$ac_exeext conftest.$ac_ext 17853fi 17854 17855 17856 CFLAGS="$xorg_testset_save_CFLAGS" 17857 17858 eval supported=\$$cacheid 17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17860$as_echo "$supported" >&6; } 17861 if test "$supported" = "yes" ; then 17862 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17863 found="yes" 17864 fi 17865 fi 17866 17867 17868fi 17869 17870 17871 17872 17873 17874 17875 17876 CWARNFLAGS="$BASE_CFLAGS" 17877 if test "x$GCC" = xyes ; then 17878 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17879 fi 17880 17881 17882 17883 17884 17885 17886 17887 17888# Check whether --enable-strict-compilation was given. 17889if test "${enable_strict_compilation+set}" = set; then : 17890 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17891else 17892 STRICT_COMPILE=no 17893fi 17894 17895 17896 17897 17898 17899 17900STRICT_CFLAGS="" 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914xorg_testset_save_CFLAGS="$CFLAGS" 17915 17916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17921 $as_echo_n "(cached) " >&6 17922else 17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17924/* end confdefs.h. */ 17925int i; 17926_ACEOF 17927if ac_fn_c_try_compile "$LINENO"; then : 17928 xorg_cv_cc_flag_unknown_warning_option=yes 17929else 17930 xorg_cv_cc_flag_unknown_warning_option=no 17931fi 17932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17933fi 17934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17937 CFLAGS="$xorg_testset_save_CFLAGS" 17938fi 17939 17940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17943 fi 17944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17948 $as_echo_n "(cached) " >&6 17949else 17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17951/* end confdefs.h. */ 17952int i; 17953_ACEOF 17954if ac_fn_c_try_compile "$LINENO"; then : 17955 xorg_cv_cc_flag_unused_command_line_argument=yes 17956else 17957 xorg_cv_cc_flag_unused_command_line_argument=no 17958fi 17959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17960fi 17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17964 CFLAGS="$xorg_testset_save_CFLAGS" 17965fi 17966 17967found="no" 17968 17969 if test $found = "no" ; then 17970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17972 fi 17973 17974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17976 fi 17977 17978 CFLAGS="$CFLAGS -pedantic" 17979 17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17981$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17982 cacheid=xorg_cv_cc_flag__pedantic 17983 if eval \${$cacheid+:} false; then : 17984 $as_echo_n "(cached) " >&6 17985else 17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17987/* end confdefs.h. */ 17988int i; 17989int 17990main () 17991{ 17992 17993 ; 17994 return 0; 17995} 17996_ACEOF 17997if ac_fn_c_try_link "$LINENO"; then : 17998 eval $cacheid=yes 17999else 18000 eval $cacheid=no 18001fi 18002rm -f core conftest.err conftest.$ac_objext \ 18003 conftest$ac_exeext conftest.$ac_ext 18004fi 18005 18006 18007 CFLAGS="$xorg_testset_save_CFLAGS" 18008 18009 eval supported=\$$cacheid 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18011$as_echo "$supported" >&6; } 18012 if test "$supported" = "yes" ; then 18013 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18014 found="yes" 18015 fi 18016 fi 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032xorg_testset_save_CFLAGS="$CFLAGS" 18033 18034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18039 $as_echo_n "(cached) " >&6 18040else 18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18042/* end confdefs.h. */ 18043int i; 18044_ACEOF 18045if ac_fn_c_try_compile "$LINENO"; then : 18046 xorg_cv_cc_flag_unknown_warning_option=yes 18047else 18048 xorg_cv_cc_flag_unknown_warning_option=no 18049fi 18050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18051fi 18052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18055 CFLAGS="$xorg_testset_save_CFLAGS" 18056fi 18057 18058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18061 fi 18062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18066 $as_echo_n "(cached) " >&6 18067else 18068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18069/* end confdefs.h. */ 18070int i; 18071_ACEOF 18072if ac_fn_c_try_compile "$LINENO"; then : 18073 xorg_cv_cc_flag_unused_command_line_argument=yes 18074else 18075 xorg_cv_cc_flag_unused_command_line_argument=no 18076fi 18077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18078fi 18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18082 CFLAGS="$xorg_testset_save_CFLAGS" 18083fi 18084 18085found="no" 18086 18087 if test $found = "no" ; then 18088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18090 fi 18091 18092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18094 fi 18095 18096 CFLAGS="$CFLAGS -Werror" 18097 18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18099$as_echo_n "checking if $CC supports -Werror... " >&6; } 18100 cacheid=xorg_cv_cc_flag__Werror 18101 if eval \${$cacheid+:} false; then : 18102 $as_echo_n "(cached) " >&6 18103else 18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18105/* end confdefs.h. */ 18106int i; 18107int 18108main () 18109{ 18110 18111 ; 18112 return 0; 18113} 18114_ACEOF 18115if ac_fn_c_try_link "$LINENO"; then : 18116 eval $cacheid=yes 18117else 18118 eval $cacheid=no 18119fi 18120rm -f core conftest.err conftest.$ac_objext \ 18121 conftest$ac_exeext conftest.$ac_ext 18122fi 18123 18124 18125 CFLAGS="$xorg_testset_save_CFLAGS" 18126 18127 eval supported=\$$cacheid 18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18129$as_echo "$supported" >&6; } 18130 if test "$supported" = "yes" ; then 18131 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18132 found="yes" 18133 fi 18134 fi 18135 18136 if test $found = "no" ; then 18137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18139 fi 18140 18141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18143 fi 18144 18145 CFLAGS="$CFLAGS -errwarn" 18146 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18148$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18149 cacheid=xorg_cv_cc_flag__errwarn 18150 if eval \${$cacheid+:} false; then : 18151 $as_echo_n "(cached) " >&6 18152else 18153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18154/* end confdefs.h. */ 18155int i; 18156int 18157main () 18158{ 18159 18160 ; 18161 return 0; 18162} 18163_ACEOF 18164if ac_fn_c_try_link "$LINENO"; then : 18165 eval $cacheid=yes 18166else 18167 eval $cacheid=no 18168fi 18169rm -f core conftest.err conftest.$ac_objext \ 18170 conftest$ac_exeext conftest.$ac_ext 18171fi 18172 18173 18174 CFLAGS="$xorg_testset_save_CFLAGS" 18175 18176 eval supported=\$$cacheid 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18178$as_echo "$supported" >&6; } 18179 if test "$supported" = "yes" ; then 18180 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18181 found="yes" 18182 fi 18183 fi 18184 18185 18186 18187# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18188# activate it with -Werror, so we add it here explicitly. 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202xorg_testset_save_CFLAGS="$CFLAGS" 18203 18204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18209 $as_echo_n "(cached) " >&6 18210else 18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18212/* end confdefs.h. */ 18213int i; 18214_ACEOF 18215if ac_fn_c_try_compile "$LINENO"; then : 18216 xorg_cv_cc_flag_unknown_warning_option=yes 18217else 18218 xorg_cv_cc_flag_unknown_warning_option=no 18219fi 18220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18221fi 18222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18225 CFLAGS="$xorg_testset_save_CFLAGS" 18226fi 18227 18228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18231 fi 18232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18236 $as_echo_n "(cached) " >&6 18237else 18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18239/* end confdefs.h. */ 18240int i; 18241_ACEOF 18242if ac_fn_c_try_compile "$LINENO"; then : 18243 xorg_cv_cc_flag_unused_command_line_argument=yes 18244else 18245 xorg_cv_cc_flag_unused_command_line_argument=no 18246fi 18247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18248fi 18249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18252 CFLAGS="$xorg_testset_save_CFLAGS" 18253fi 18254 18255found="no" 18256 18257 if test $found = "no" ; then 18258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18260 fi 18261 18262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18264 fi 18265 18266 CFLAGS="$CFLAGS -Werror=attributes" 18267 18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18269$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18270 cacheid=xorg_cv_cc_flag__Werror_attributes 18271 if eval \${$cacheid+:} false; then : 18272 $as_echo_n "(cached) " >&6 18273else 18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18275/* end confdefs.h. */ 18276int i; 18277int 18278main () 18279{ 18280 18281 ; 18282 return 0; 18283} 18284_ACEOF 18285if ac_fn_c_try_link "$LINENO"; then : 18286 eval $cacheid=yes 18287else 18288 eval $cacheid=no 18289fi 18290rm -f core conftest.err conftest.$ac_objext \ 18291 conftest$ac_exeext conftest.$ac_ext 18292fi 18293 18294 18295 CFLAGS="$xorg_testset_save_CFLAGS" 18296 18297 eval supported=\$$cacheid 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18299$as_echo "$supported" >&6; } 18300 if test "$supported" = "yes" ; then 18301 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18302 found="yes" 18303 fi 18304 fi 18305 18306 18307 18308if test "x$STRICT_COMPILE" = "xyes"; then 18309 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18310 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18311fi 18312 18313 18314 18315 18316 18317 18318cat >>confdefs.h <<_ACEOF 18319#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18320_ACEOF 18321 18322 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18323 if test "x$PVM" = "x"; then 18324 PVM="0" 18325 fi 18326 18327cat >>confdefs.h <<_ACEOF 18328#define PACKAGE_VERSION_MINOR $PVM 18329_ACEOF 18330 18331 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18332 if test "x$PVP" = "x"; then 18333 PVP="0" 18334 fi 18335 18336cat >>confdefs.h <<_ACEOF 18337#define PACKAGE_VERSION_PATCHLEVEL $PVP 18338_ACEOF 18339 18340 18341 18342CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18343mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18344|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18345echo 'git directory not found: installing possibly empty changelog.' >&2)" 18346 18347 18348 18349 18350macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18351INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18352mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18353|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18354echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18355 18356 18357 18358 18359 18360 18361if test x$APP_MAN_SUFFIX = x ; then 18362 APP_MAN_SUFFIX=1 18363fi 18364if test x$APP_MAN_DIR = x ; then 18365 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18366fi 18367 18368if test x$LIB_MAN_SUFFIX = x ; then 18369 LIB_MAN_SUFFIX=3 18370fi 18371if test x$LIB_MAN_DIR = x ; then 18372 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18373fi 18374 18375if test x$FILE_MAN_SUFFIX = x ; then 18376 case $host_os in 18377 solaris*) FILE_MAN_SUFFIX=4 ;; 18378 *) FILE_MAN_SUFFIX=5 ;; 18379 esac 18380fi 18381if test x$FILE_MAN_DIR = x ; then 18382 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18383fi 18384 18385if test x$MISC_MAN_SUFFIX = x ; then 18386 case $host_os in 18387 solaris*) MISC_MAN_SUFFIX=5 ;; 18388 *) MISC_MAN_SUFFIX=7 ;; 18389 esac 18390fi 18391if test x$MISC_MAN_DIR = x ; then 18392 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18393fi 18394 18395if test x$DRIVER_MAN_SUFFIX = x ; then 18396 case $host_os in 18397 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18398 *) DRIVER_MAN_SUFFIX=4 ;; 18399 esac 18400fi 18401if test x$DRIVER_MAN_DIR = x ; then 18402 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18403fi 18404 18405if test x$ADMIN_MAN_SUFFIX = x ; then 18406 case $host_os in 18407 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18408 *) ADMIN_MAN_SUFFIX=8 ;; 18409 esac 18410fi 18411if test x$ADMIN_MAN_DIR = x ; then 18412 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18413fi 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429XORG_MAN_PAGE="X Version 11" 18430 18431MAN_SUBSTS="\ 18432 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18433 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18434 -e 's|__xservername__|Xorg|g' \ 18435 -e 's|__xconfigfile__|xorg.conf|g' \ 18436 -e 's|__projectroot__|\$(prefix)|g' \ 18437 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18438 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18439 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18440 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18441 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18442 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18443 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18444 18445 18446 18447# Check whether --enable-silent-rules was given. 18448if test "${enable_silent_rules+set}" = set; then : 18449 enableval=$enable_silent_rules; 18450fi 18451 18452case $enable_silent_rules in # ((( 18453 yes) AM_DEFAULT_VERBOSITY=0;; 18454 no) AM_DEFAULT_VERBOSITY=1;; 18455 *) AM_DEFAULT_VERBOSITY=0;; 18456esac 18457am_make=${MAKE-make} 18458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18459$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18460if ${am_cv_make_support_nested_variables+:} false; then : 18461 $as_echo_n "(cached) " >&6 18462else 18463 if $as_echo 'TRUE=$(BAR$(V)) 18464BAR0=false 18465BAR1=true 18466V=1 18467am__doit: 18468 @$(TRUE) 18469.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18470 am_cv_make_support_nested_variables=yes 18471else 18472 am_cv_make_support_nested_variables=no 18473fi 18474fi 18475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18476$as_echo "$am_cv_make_support_nested_variables" >&6; } 18477if test $am_cv_make_support_nested_variables = yes; then 18478 AM_V='$(V)' 18479 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18480else 18481 AM_V=$AM_DEFAULT_VERBOSITY 18482 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18483fi 18484AM_BACKSLASH='\' 18485 18486 18487 18488pciids_path=/usr/share/hwdata 18489 18490# Check whether --with-pciids-path was given. 18491if test "${with_pciids_path+set}" = set; then : 18492 withval=$with_pciids_path; pciids_path="$withval" 18493fi 18494 18495 18496 prefix_NONE= 18497 exec_prefix_NONE= 18498 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 18499 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 18500 eval ax_define_dir="\"$pciids_path\"" 18501 eval ax_define_dir="\"$ax_define_dir\"" 18502 PCIIDS_PATH="$ax_define_dir" 18503 18504 18505cat >>confdefs.h <<_ACEOF 18506#define PCIIDS_PATH "$ax_define_dir" 18507_ACEOF 18508 18509 test "$prefix_NONE" && prefix=NONE 18510 test "$exec_prefix_NONE" && exec_prefix=NONE 18511 18512 18513# Check whether --enable-linux-rom-fallback was given. 18514if test "${enable_linux_rom_fallback+set}" = set; then : 18515 enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval 18516else 18517 LINUX_ROM=no 18518fi 18519 18520 18521if test "x$LINUX_ROM" = xyes; then 18522 18523$as_echo "#define LINUX_ROM 1" >>confdefs.h 18524 18525fi 18526 18527use_zlib=no 18528 18529# Check whether --with-zlib was given. 18530if test "${with_zlib+set}" = set; then : 18531 withval=$with_zlib; use_zlib="$withval" 18532fi 18533 18534if test "x$use_zlib" = xyes; then 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 18536$as_echo_n "checking for gzopen in -lz... " >&6; } 18537if ${ac_cv_lib_z_gzopen+:} false; then : 18538 $as_echo_n "(cached) " >&6 18539else 18540 ac_check_lib_save_LIBS=$LIBS 18541LIBS="-lz $LIBS" 18542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18543/* end confdefs.h. */ 18544 18545/* Override any GCC internal prototype to avoid an error. 18546 Use char because int might match the return type of a GCC 18547 builtin and then its argument prototype would still apply. */ 18548#ifdef __cplusplus 18549extern "C" 18550#endif 18551char gzopen (); 18552int 18553main () 18554{ 18555return gzopen (); 18556 ; 18557 return 0; 18558} 18559_ACEOF 18560if ac_fn_c_try_link "$LINENO"; then : 18561 ac_cv_lib_z_gzopen=yes 18562else 18563 ac_cv_lib_z_gzopen=no 18564fi 18565rm -f core conftest.err conftest.$ac_objext \ 18566 conftest$ac_exeext conftest.$ac_ext 18567LIBS=$ac_check_lib_save_LIBS 18568fi 18569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 18570$as_echo "$ac_cv_lib_z_gzopen" >&6; } 18571if test "x$ac_cv_lib_z_gzopen" = xyes; then : 18572 PCIACCESS_LIBS="$PCIACCESS_LIBS -lz" 18573else 18574 as_fn_error $? "Check for zlib library failed" "$LINENO" 5 18575fi 18576 18577 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18578if test "x$ac_cv_header_zlib_h" = xyes; then : 18579 18580$as_echo "#define HAVE_ZLIB 1" >>confdefs.h 18581 18582else 18583 as_fn_error $? "Check for zlib.h header file failed" "$LINENO" 5 18584fi 18585 18586 18587fi 18588 18589case $host_os in 18590 *freebsd* | *dragonfly*) 18591 freebsd=yes 18592 ;; 18593 *linux*) 18594 linux=yes 18595 ;; 18596 *netbsd*) 18597 case $host in 18598 *i[3-9]86*) 18599 PCIACCESS_LIBS="$PCIACCESS_LIBS -li386" 18600 ;; 18601 *x86_64*|*amd64*) 18602 PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64" 18603 ;; 18604 *alpha*) 18605 PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha" 18606 ;; 18607 esac 18608 PCIACCESS_LIBS="$PCIACCESS_LIBS -lpci" 18609 netbsd=yes 18610 ;; 18611 *openbsd*) 18612 openbsd=yes 18613 ;; 18614 *solaris*) 18615 solaris=yes 18616 PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo" 18617 ;; 18618 gnu*) 18619 gnu=yes 18620 ;; 18621 *cygwin*) 18622 cygwin=yes 18623 PCIACCESS_LIBS="$PCIACCESS_LIBS" 18624 ;; 18625esac 18626 18627 if test "x$linux" = xyes; then 18628 LINUX_TRUE= 18629 LINUX_FALSE='#' 18630else 18631 LINUX_TRUE='#' 18632 LINUX_FALSE= 18633fi 18634 18635 if test "x$freebsd" = xyes; then 18636 FREEBSD_TRUE= 18637 FREEBSD_FALSE='#' 18638else 18639 FREEBSD_TRUE='#' 18640 FREEBSD_FALSE= 18641fi 18642 18643 if test "x$netbsd" = xyes; then 18644 NETBSD_TRUE= 18645 NETBSD_FALSE='#' 18646else 18647 NETBSD_TRUE='#' 18648 NETBSD_FALSE= 18649fi 18650 18651 if test "x$openbsd" = xyes; then 18652 OPENBSD_TRUE= 18653 OPENBSD_FALSE='#' 18654else 18655 OPENBSD_TRUE='#' 18656 OPENBSD_FALSE= 18657fi 18658 18659 if test "x$solaris" = xyes; then 18660 SOLARIS_TRUE= 18661 SOLARIS_FALSE='#' 18662else 18663 SOLARIS_TRUE='#' 18664 SOLARIS_FALSE= 18665fi 18666 18667 if test "x$gnu" = xyes; then 18668 GNU_TRUE= 18669 GNU_FALSE='#' 18670else 18671 GNU_TRUE='#' 18672 GNU_FALSE= 18673fi 18674 18675 if test "x$cygwin" = xyes; then 18676 CYGWIN_TRUE= 18677 CYGWIN_FALSE='#' 18678else 18679 CYGWIN_TRUE='#' 18680 CYGWIN_FALSE= 18681fi 18682 18683 18684# Check whether --enable-largefile was given. 18685if test "${enable_largefile+set}" = set; then : 18686 enableval=$enable_largefile; 18687fi 18688 18689if test "$enable_largefile" != no; then 18690 18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 18692$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 18693if ${ac_cv_sys_largefile_CC+:} false; then : 18694 $as_echo_n "(cached) " >&6 18695else 18696 ac_cv_sys_largefile_CC=no 18697 if test "$GCC" != yes; then 18698 ac_save_CC=$CC 18699 while :; do 18700 # IRIX 6.2 and later do not support large files by default, 18701 # so use the C compiler's -n32 option if that helps. 18702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18703/* end confdefs.h. */ 18704#include <sys/types.h> 18705 /* Check that off_t can represent 2**63 - 1 correctly. 18706 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18707 since some C++ compilers masquerading as C compilers 18708 incorrectly reject 9223372036854775807. */ 18709#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18711 && LARGE_OFF_T % 2147483647 == 1) 18712 ? 1 : -1]; 18713int 18714main () 18715{ 18716 18717 ; 18718 return 0; 18719} 18720_ACEOF 18721 if ac_fn_c_try_compile "$LINENO"; then : 18722 break 18723fi 18724rm -f core conftest.err conftest.$ac_objext 18725 CC="$CC -n32" 18726 if ac_fn_c_try_compile "$LINENO"; then : 18727 ac_cv_sys_largefile_CC=' -n32'; break 18728fi 18729rm -f core conftest.err conftest.$ac_objext 18730 break 18731 done 18732 CC=$ac_save_CC 18733 rm -f conftest.$ac_ext 18734 fi 18735fi 18736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18737$as_echo "$ac_cv_sys_largefile_CC" >&6; } 18738 if test "$ac_cv_sys_largefile_CC" != no; then 18739 CC=$CC$ac_cv_sys_largefile_CC 18740 fi 18741 18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18743$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18744if ${ac_cv_sys_file_offset_bits+:} false; then : 18745 $as_echo_n "(cached) " >&6 18746else 18747 while :; do 18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18749/* end confdefs.h. */ 18750#include <sys/types.h> 18751 /* Check that off_t can represent 2**63 - 1 correctly. 18752 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18753 since some C++ compilers masquerading as C compilers 18754 incorrectly reject 9223372036854775807. */ 18755#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18757 && LARGE_OFF_T % 2147483647 == 1) 18758 ? 1 : -1]; 18759int 18760main () 18761{ 18762 18763 ; 18764 return 0; 18765} 18766_ACEOF 18767if ac_fn_c_try_compile "$LINENO"; then : 18768 ac_cv_sys_file_offset_bits=no; break 18769fi 18770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18772/* end confdefs.h. */ 18773#define _FILE_OFFSET_BITS 64 18774#include <sys/types.h> 18775 /* Check that off_t can represent 2**63 - 1 correctly. 18776 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18777 since some C++ compilers masquerading as C compilers 18778 incorrectly reject 9223372036854775807. */ 18779#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18781 && LARGE_OFF_T % 2147483647 == 1) 18782 ? 1 : -1]; 18783int 18784main () 18785{ 18786 18787 ; 18788 return 0; 18789} 18790_ACEOF 18791if ac_fn_c_try_compile "$LINENO"; then : 18792 ac_cv_sys_file_offset_bits=64; break 18793fi 18794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18795 ac_cv_sys_file_offset_bits=unknown 18796 break 18797done 18798fi 18799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18800$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18801case $ac_cv_sys_file_offset_bits in #( 18802 no | unknown) ;; 18803 *) 18804cat >>confdefs.h <<_ACEOF 18805#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18806_ACEOF 18807;; 18808esac 18809rm -rf conftest* 18810 if test $ac_cv_sys_file_offset_bits = unknown; then 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18812$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18813if ${ac_cv_sys_large_files+:} false; then : 18814 $as_echo_n "(cached) " >&6 18815else 18816 while :; do 18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18818/* end confdefs.h. */ 18819#include <sys/types.h> 18820 /* Check that off_t can represent 2**63 - 1 correctly. 18821 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18822 since some C++ compilers masquerading as C compilers 18823 incorrectly reject 9223372036854775807. */ 18824#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18826 && LARGE_OFF_T % 2147483647 == 1) 18827 ? 1 : -1]; 18828int 18829main () 18830{ 18831 18832 ; 18833 return 0; 18834} 18835_ACEOF 18836if ac_fn_c_try_compile "$LINENO"; then : 18837 ac_cv_sys_large_files=no; break 18838fi 18839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18841/* end confdefs.h. */ 18842#define _LARGE_FILES 1 18843#include <sys/types.h> 18844 /* Check that off_t can represent 2**63 - 1 correctly. 18845 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18846 since some C++ compilers masquerading as C compilers 18847 incorrectly reject 9223372036854775807. */ 18848#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18850 && LARGE_OFF_T % 2147483647 == 1) 18851 ? 1 : -1]; 18852int 18853main () 18854{ 18855 18856 ; 18857 return 0; 18858} 18859_ACEOF 18860if ac_fn_c_try_compile "$LINENO"; then : 18861 ac_cv_sys_large_files=1; break 18862fi 18863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18864 ac_cv_sys_large_files=unknown 18865 break 18866done 18867fi 18868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18869$as_echo "$ac_cv_sys_large_files" >&6; } 18870case $ac_cv_sys_large_files in #( 18871 no | unknown) ;; 18872 *) 18873cat >>confdefs.h <<_ACEOF 18874#define _LARGE_FILES $ac_cv_sys_large_files 18875_ACEOF 18876;; 18877esac 18878rm -rf conftest* 18879 fi 18880 18881 18882fi 18883 18884 18885for ac_header in err.h 18886do : 18887 ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 18888if test "x$ac_cv_header_err_h" = xyes; then : 18889 cat >>confdefs.h <<_ACEOF 18890#define HAVE_ERR_H 1 18891_ACEOF 18892 18893fi 18894 18895done 18896 18897 18898if test "x$netbsd" = xyes; then 18899for ac_header in machine/sysarch.h 18900do : 18901 ac_fn_c_check_header_mongrel "$LINENO" "machine/sysarch.h" "ac_cv_header_machine_sysarch_h" "$ac_includes_default" 18902if test "x$ac_cv_header_machine_sysarch_h" = xyes; then : 18903 cat >>confdefs.h <<_ACEOF 18904#define HAVE_MACHINE_SYSARCH_H 1 18905_ACEOF 18906 18907fi 18908 18909done 18910 18911for ac_header in machine/mtrr.h 18912do : 18913 ac_fn_c_check_header_compile "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "#ifdef HAVE_MACHINE_SYSARCH_H 18914#include <sys/types.h> 18915#include <machine/sysarch.h> 18916#endif 18917 18918" 18919if test "x$ac_cv_header_machine_mtrr_h" = xyes; then : 18920 cat >>confdefs.h <<_ACEOF 18921#define HAVE_MACHINE_MTRR_H 1 18922_ACEOF 18923 have_mtrr_h="yes" 18924else 18925 have_mtrr_h="no" 18926fi 18927 18928done 18929 18930else 18931ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default" 18932if test "x$ac_cv_header_asm_mtrr_h" = xyes; then : 18933 have_mtrr_h="yes" 18934else 18935 have_mtrr_h="no" 18936fi 18937 18938 18939fi 18940 18941if test "x$have_mtrr_h" = xyes; then 18942 18943$as_echo "#define HAVE_MTRR 1" >>confdefs.h 18944 18945fi 18946 18947# check for the pci_io.pi_sel.pc_domain 18948ac_fn_c_check_member "$LINENO" "struct pci_io" "pi_sel.pc_domain" "ac_cv_member_struct_pci_io_pi_sel_pc_domain" " #include <sys/types.h> 18949 #include <sys/pciio.h> 18950 18951" 18952if test "x$ac_cv_member_struct_pci_io_pi_sel_pc_domain" = xyes; then : 18953 18954$as_echo "#define HAVE_PCI_IO_PC_DOMAIN 1" >>confdefs.h 18955 18956fi 18957 18958 18959 18960 18961 18962ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile scanpci/Makefile pciaccess.pc" 18963 18964cat >confcache <<\_ACEOF 18965# This file is a shell script that caches the results of configure 18966# tests run on this system so they can be shared between configure 18967# scripts and configure runs, see configure's option --config-cache. 18968# It is not useful on other systems. If it contains results you don't 18969# want to keep, you may remove or edit it. 18970# 18971# config.status only pays attention to the cache file if you give it 18972# the --recheck option to rerun configure. 18973# 18974# `ac_cv_env_foo' variables (set or unset) will be overridden when 18975# loading this file, other *unset* `ac_cv_foo' will be assigned the 18976# following values. 18977 18978_ACEOF 18979 18980# The following way of writing the cache mishandles newlines in values, 18981# but we know of no workaround that is simple, portable, and efficient. 18982# So, we kill variables containing newlines. 18983# Ultrix sh set writes to stderr and can't be redirected directly, 18984# and sets the high bit in the cache file unless we assign to the vars. 18985( 18986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18987 eval ac_val=\$$ac_var 18988 case $ac_val in #( 18989 *${as_nl}*) 18990 case $ac_var in #( 18991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18992$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18993 esac 18994 case $ac_var in #( 18995 _ | IFS | as_nl) ;; #( 18996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18997 *) { eval $ac_var=; unset $ac_var;} ;; 18998 esac ;; 18999 esac 19000 done 19001 19002 (set) 2>&1 | 19003 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19004 *${as_nl}ac_space=\ *) 19005 # `set' does not quote correctly, so add quotes: double-quote 19006 # substitution turns \\\\ into \\, and sed turns \\ into \. 19007 sed -n \ 19008 "s/'/'\\\\''/g; 19009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19010 ;; #( 19011 *) 19012 # `set' quotes correctly as required by POSIX, so do not add quotes. 19013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19014 ;; 19015 esac | 19016 sort 19017) | 19018 sed ' 19019 /^ac_cv_env_/b end 19020 t clear 19021 :clear 19022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19023 t end 19024 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19025 :end' >>confcache 19026if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19027 if test -w "$cache_file"; then 19028 if test "x$cache_file" != "x/dev/null"; then 19029 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19030$as_echo "$as_me: updating cache $cache_file" >&6;} 19031 if test ! -f "$cache_file" || test -h "$cache_file"; then 19032 cat confcache >"$cache_file" 19033 else 19034 case $cache_file in #( 19035 */* | ?:*) 19036 mv -f confcache "$cache_file"$$ && 19037 mv -f "$cache_file"$$ "$cache_file" ;; #( 19038 *) 19039 mv -f confcache "$cache_file" ;; 19040 esac 19041 fi 19042 fi 19043 else 19044 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19045$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19046 fi 19047fi 19048rm -f confcache 19049 19050test "x$prefix" = xNONE && prefix=$ac_default_prefix 19051# Let make expand exec_prefix. 19052test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19053 19054DEFS=-DHAVE_CONFIG_H 19055 19056ac_libobjs= 19057ac_ltlibobjs= 19058U= 19059for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19060 # 1. Remove the extension, and $U if already installed. 19061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19062 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19064 # will be set to the directory where LIBOBJS objects are built. 19065 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19066 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19067done 19068LIBOBJS=$ac_libobjs 19069 19070LTLIBOBJS=$ac_ltlibobjs 19071 19072 19073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19074$as_echo_n "checking that generated files are newer than configure... " >&6; } 19075 if test -n "$am_sleep_pid"; then 19076 # Hide warnings about reused PIDs. 19077 wait $am_sleep_pid 2>/dev/null 19078 fi 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19080$as_echo "done" >&6; } 19081 if test -n "$EXEEXT"; then 19082 am__EXEEXT_TRUE= 19083 am__EXEEXT_FALSE='#' 19084else 19085 am__EXEEXT_TRUE='#' 19086 am__EXEEXT_FALSE= 19087fi 19088 19089if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19090 as_fn_error $? "conditional \"AMDEP\" was never defined. 19091Usually this means the macro was only invoked conditionally." "$LINENO" 5 19092fi 19093if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19094 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19095Usually this means the macro was only invoked conditionally." "$LINENO" 5 19096fi 19097if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 19098 as_fn_error $? "conditional \"LINUX\" was never defined. 19099Usually this means the macro was only invoked conditionally." "$LINENO" 5 19100fi 19101if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 19102 as_fn_error $? "conditional \"FREEBSD\" was never defined. 19103Usually this means the macro was only invoked conditionally." "$LINENO" 5 19104fi 19105if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 19106 as_fn_error $? "conditional \"NETBSD\" was never defined. 19107Usually this means the macro was only invoked conditionally." "$LINENO" 5 19108fi 19109if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then 19110 as_fn_error $? "conditional \"OPENBSD\" was never defined. 19111Usually this means the macro was only invoked conditionally." "$LINENO" 5 19112fi 19113if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 19114 as_fn_error $? "conditional \"SOLARIS\" was never defined. 19115Usually this means the macro was only invoked conditionally." "$LINENO" 5 19116fi 19117if test -z "${GNU_TRUE}" && test -z "${GNU_FALSE}"; then 19118 as_fn_error $? "conditional \"GNU\" was never defined. 19119Usually this means the macro was only invoked conditionally." "$LINENO" 5 19120fi 19121if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 19122 as_fn_error $? "conditional \"CYGWIN\" was never defined. 19123Usually this means the macro was only invoked conditionally." "$LINENO" 5 19124fi 19125 19126: "${CONFIG_STATUS=./config.status}" 19127ac_write_fail=0 19128ac_clean_files_save=$ac_clean_files 19129ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19130{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19131$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19132as_write_fail=0 19133cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19134#! $SHELL 19135# Generated by $as_me. 19136# Run this file to recreate the current configuration. 19137# Compiler output produced by configure, useful for debugging 19138# configure, is in config.log if it exists. 19139 19140debug=false 19141ac_cs_recheck=false 19142ac_cs_silent=false 19143 19144SHELL=\${CONFIG_SHELL-$SHELL} 19145export SHELL 19146_ASEOF 19147cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19148## -------------------- ## 19149## M4sh Initialization. ## 19150## -------------------- ## 19151 19152# Be more Bourne compatible 19153DUALCASE=1; export DUALCASE # for MKS sh 19154if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19155 emulate sh 19156 NULLCMD=: 19157 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19158 # is contrary to our usage. Disable this feature. 19159 alias -g '${1+"$@"}'='"$@"' 19160 setopt NO_GLOB_SUBST 19161else 19162 case `(set -o) 2>/dev/null` in #( 19163 *posix*) : 19164 set -o posix ;; #( 19165 *) : 19166 ;; 19167esac 19168fi 19169 19170 19171as_nl=' 19172' 19173export as_nl 19174# Printing a long string crashes Solaris 7 /usr/bin/printf. 19175as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19176as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19178# Prefer a ksh shell builtin over an external printf program on Solaris, 19179# but without wasting forks for bash or zsh. 19180if test -z "$BASH_VERSION$ZSH_VERSION" \ 19181 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19182 as_echo='print -r --' 19183 as_echo_n='print -rn --' 19184elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19185 as_echo='printf %s\n' 19186 as_echo_n='printf %s' 19187else 19188 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19189 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19190 as_echo_n='/usr/ucb/echo -n' 19191 else 19192 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19193 as_echo_n_body='eval 19194 arg=$1; 19195 case $arg in #( 19196 *"$as_nl"*) 19197 expr "X$arg" : "X\\(.*\\)$as_nl"; 19198 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19199 esac; 19200 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19201 ' 19202 export as_echo_n_body 19203 as_echo_n='sh -c $as_echo_n_body as_echo' 19204 fi 19205 export as_echo_body 19206 as_echo='sh -c $as_echo_body as_echo' 19207fi 19208 19209# The user is always right. 19210if test "${PATH_SEPARATOR+set}" != set; then 19211 PATH_SEPARATOR=: 19212 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19213 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19214 PATH_SEPARATOR=';' 19215 } 19216fi 19217 19218 19219# IFS 19220# We need space, tab and new line, in precisely that order. Quoting is 19221# there to prevent editors from complaining about space-tab. 19222# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19223# splitting by setting IFS to empty value.) 19224IFS=" "" $as_nl" 19225 19226# Find who we are. Look in the path if we contain no directory separator. 19227as_myself= 19228case $0 in #(( 19229 *[\\/]* ) as_myself=$0 ;; 19230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19231for as_dir in $PATH 19232do 19233 IFS=$as_save_IFS 19234 test -z "$as_dir" && as_dir=. 19235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19236 done 19237IFS=$as_save_IFS 19238 19239 ;; 19240esac 19241# We did not find ourselves, most probably we were run as `sh COMMAND' 19242# in which case we are not to be found in the path. 19243if test "x$as_myself" = x; then 19244 as_myself=$0 19245fi 19246if test ! -f "$as_myself"; then 19247 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19248 exit 1 19249fi 19250 19251# Unset variables that we do not need and which cause bugs (e.g. in 19252# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19253# suppresses any "Segmentation fault" message there. '((' could 19254# trigger a bug in pdksh 5.2.14. 19255for as_var in BASH_ENV ENV MAIL MAILPATH 19256do eval test x\${$as_var+set} = xset \ 19257 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19258done 19259PS1='$ ' 19260PS2='> ' 19261PS4='+ ' 19262 19263# NLS nuisances. 19264LC_ALL=C 19265export LC_ALL 19266LANGUAGE=C 19267export LANGUAGE 19268 19269# CDPATH. 19270(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19271 19272 19273# as_fn_error STATUS ERROR [LINENO LOG_FD] 19274# ---------------------------------------- 19275# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19276# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19277# script with STATUS, using 1 if that was 0. 19278as_fn_error () 19279{ 19280 as_status=$1; test $as_status -eq 0 && as_status=1 19281 if test "$4"; then 19282 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19283 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19284 fi 19285 $as_echo "$as_me: error: $2" >&2 19286 as_fn_exit $as_status 19287} # as_fn_error 19288 19289 19290# as_fn_set_status STATUS 19291# ----------------------- 19292# Set $? to STATUS, without forking. 19293as_fn_set_status () 19294{ 19295 return $1 19296} # as_fn_set_status 19297 19298# as_fn_exit STATUS 19299# ----------------- 19300# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19301as_fn_exit () 19302{ 19303 set +e 19304 as_fn_set_status $1 19305 exit $1 19306} # as_fn_exit 19307 19308# as_fn_unset VAR 19309# --------------- 19310# Portably unset VAR. 19311as_fn_unset () 19312{ 19313 { eval $1=; unset $1;} 19314} 19315as_unset=as_fn_unset 19316# as_fn_append VAR VALUE 19317# ---------------------- 19318# Append the text in VALUE to the end of the definition contained in VAR. Take 19319# advantage of any shell optimizations that allow amortized linear growth over 19320# repeated appends, instead of the typical quadratic growth present in naive 19321# implementations. 19322if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19323 eval 'as_fn_append () 19324 { 19325 eval $1+=\$2 19326 }' 19327else 19328 as_fn_append () 19329 { 19330 eval $1=\$$1\$2 19331 } 19332fi # as_fn_append 19333 19334# as_fn_arith ARG... 19335# ------------------ 19336# Perform arithmetic evaluation on the ARGs, and store the result in the 19337# global $as_val. Take advantage of shells that can avoid forks. The arguments 19338# must be portable across $(()) and expr. 19339if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19340 eval 'as_fn_arith () 19341 { 19342 as_val=$(( $* )) 19343 }' 19344else 19345 as_fn_arith () 19346 { 19347 as_val=`expr "$@" || test $? -eq 1` 19348 } 19349fi # as_fn_arith 19350 19351 19352if expr a : '\(a\)' >/dev/null 2>&1 && 19353 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19354 as_expr=expr 19355else 19356 as_expr=false 19357fi 19358 19359if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19360 as_basename=basename 19361else 19362 as_basename=false 19363fi 19364 19365if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19366 as_dirname=dirname 19367else 19368 as_dirname=false 19369fi 19370 19371as_me=`$as_basename -- "$0" || 19372$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19373 X"$0" : 'X\(//\)$' \| \ 19374 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19375$as_echo X/"$0" | 19376 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19377 s//\1/ 19378 q 19379 } 19380 /^X\/\(\/\/\)$/{ 19381 s//\1/ 19382 q 19383 } 19384 /^X\/\(\/\).*/{ 19385 s//\1/ 19386 q 19387 } 19388 s/.*/./; q'` 19389 19390# Avoid depending upon Character Ranges. 19391as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19392as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19393as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19394as_cr_digits='0123456789' 19395as_cr_alnum=$as_cr_Letters$as_cr_digits 19396 19397ECHO_C= ECHO_N= ECHO_T= 19398case `echo -n x` in #((((( 19399-n*) 19400 case `echo 'xy\c'` in 19401 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19402 xy) ECHO_C='\c';; 19403 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19404 ECHO_T=' ';; 19405 esac;; 19406*) 19407 ECHO_N='-n';; 19408esac 19409 19410rm -f conf$$ conf$$.exe conf$$.file 19411if test -d conf$$.dir; then 19412 rm -f conf$$.dir/conf$$.file 19413else 19414 rm -f conf$$.dir 19415 mkdir conf$$.dir 2>/dev/null 19416fi 19417if (echo >conf$$.file) 2>/dev/null; then 19418 if ln -s conf$$.file conf$$ 2>/dev/null; then 19419 as_ln_s='ln -s' 19420 # ... but there are two gotchas: 19421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19423 # In both cases, we have to default to `cp -pR'. 19424 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19425 as_ln_s='cp -pR' 19426 elif ln conf$$.file conf$$ 2>/dev/null; then 19427 as_ln_s=ln 19428 else 19429 as_ln_s='cp -pR' 19430 fi 19431else 19432 as_ln_s='cp -pR' 19433fi 19434rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19435rmdir conf$$.dir 2>/dev/null 19436 19437 19438# as_fn_mkdir_p 19439# ------------- 19440# Create "$as_dir" as a directory, including parents if necessary. 19441as_fn_mkdir_p () 19442{ 19443 19444 case $as_dir in #( 19445 -*) as_dir=./$as_dir;; 19446 esac 19447 test -d "$as_dir" || eval $as_mkdir_p || { 19448 as_dirs= 19449 while :; do 19450 case $as_dir in #( 19451 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19452 *) as_qdir=$as_dir;; 19453 esac 19454 as_dirs="'$as_qdir' $as_dirs" 19455 as_dir=`$as_dirname -- "$as_dir" || 19456$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19457 X"$as_dir" : 'X\(//\)[^/]' \| \ 19458 X"$as_dir" : 'X\(//\)$' \| \ 19459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19460$as_echo X"$as_dir" | 19461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19462 s//\1/ 19463 q 19464 } 19465 /^X\(\/\/\)[^/].*/{ 19466 s//\1/ 19467 q 19468 } 19469 /^X\(\/\/\)$/{ 19470 s//\1/ 19471 q 19472 } 19473 /^X\(\/\).*/{ 19474 s//\1/ 19475 q 19476 } 19477 s/.*/./; q'` 19478 test -d "$as_dir" && break 19479 done 19480 test -z "$as_dirs" || eval "mkdir $as_dirs" 19481 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19482 19483 19484} # as_fn_mkdir_p 19485if mkdir -p . 2>/dev/null; then 19486 as_mkdir_p='mkdir -p "$as_dir"' 19487else 19488 test -d ./-p && rmdir ./-p 19489 as_mkdir_p=false 19490fi 19491 19492 19493# as_fn_executable_p FILE 19494# ----------------------- 19495# Test if FILE is an executable regular file. 19496as_fn_executable_p () 19497{ 19498 test -f "$1" && test -x "$1" 19499} # as_fn_executable_p 19500as_test_x='test -x' 19501as_executable_p=as_fn_executable_p 19502 19503# Sed expression to map a string onto a valid CPP name. 19504as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19505 19506# Sed expression to map a string onto a valid variable name. 19507as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19508 19509 19510exec 6>&1 19511## ----------------------------------- ## 19512## Main body of $CONFIG_STATUS script. ## 19513## ----------------------------------- ## 19514_ASEOF 19515test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19516 19517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19518# Save the log message, to keep $0 and so on meaningful, and to 19519# report actual input values of CONFIG_FILES etc. instead of their 19520# values after options handling. 19521ac_log=" 19522This file was extended by libpciaccess $as_me 0.14, which was 19523generated by GNU Autoconf 2.69. Invocation command line was 19524 19525 CONFIG_FILES = $CONFIG_FILES 19526 CONFIG_HEADERS = $CONFIG_HEADERS 19527 CONFIG_LINKS = $CONFIG_LINKS 19528 CONFIG_COMMANDS = $CONFIG_COMMANDS 19529 $ $0 $@ 19530 19531on `(hostname || uname -n) 2>/dev/null | sed 1q` 19532" 19533 19534_ACEOF 19535 19536case $ac_config_files in *" 19537"*) set x $ac_config_files; shift; ac_config_files=$*;; 19538esac 19539 19540case $ac_config_headers in *" 19541"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19542esac 19543 19544 19545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19546# Files that config.status was made for. 19547config_files="$ac_config_files" 19548config_headers="$ac_config_headers" 19549config_commands="$ac_config_commands" 19550 19551_ACEOF 19552 19553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19554ac_cs_usage="\ 19555\`$as_me' instantiates files and other configuration actions 19556from templates according to the current configuration. Unless the files 19557and actions are specified as TAGs, all are instantiated by default. 19558 19559Usage: $0 [OPTION]... [TAG]... 19560 19561 -h, --help print this help, then exit 19562 -V, --version print version number and configuration settings, then exit 19563 --config print configuration, then exit 19564 -q, --quiet, --silent 19565 do not print progress messages 19566 -d, --debug don't remove temporary files 19567 --recheck update $as_me by reconfiguring in the same conditions 19568 --file=FILE[:TEMPLATE] 19569 instantiate the configuration file FILE 19570 --header=FILE[:TEMPLATE] 19571 instantiate the configuration header FILE 19572 19573Configuration files: 19574$config_files 19575 19576Configuration headers: 19577$config_headers 19578 19579Configuration commands: 19580$config_commands 19581 19582Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>." 19583 19584_ACEOF 19585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19586ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19587ac_cs_version="\\ 19588libpciaccess config.status 0.14 19589configured by $0, generated by GNU Autoconf 2.69, 19590 with options \\"\$ac_cs_config\\" 19591 19592Copyright (C) 2012 Free Software Foundation, Inc. 19593This config.status script is free software; the Free Software Foundation 19594gives unlimited permission to copy, distribute and modify it." 19595 19596ac_pwd='$ac_pwd' 19597srcdir='$srcdir' 19598INSTALL='$INSTALL' 19599MKDIR_P='$MKDIR_P' 19600AWK='$AWK' 19601test -n "\$AWK" || AWK=awk 19602_ACEOF 19603 19604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19605# The default lists apply if the user does not specify any file. 19606ac_need_defaults=: 19607while test $# != 0 19608do 19609 case $1 in 19610 --*=?*) 19611 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19613 ac_shift=: 19614 ;; 19615 --*=) 19616 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19617 ac_optarg= 19618 ac_shift=: 19619 ;; 19620 *) 19621 ac_option=$1 19622 ac_optarg=$2 19623 ac_shift=shift 19624 ;; 19625 esac 19626 19627 case $ac_option in 19628 # Handling of the options. 19629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19630 ac_cs_recheck=: ;; 19631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19632 $as_echo "$ac_cs_version"; exit ;; 19633 --config | --confi | --conf | --con | --co | --c ) 19634 $as_echo "$ac_cs_config"; exit ;; 19635 --debug | --debu | --deb | --de | --d | -d ) 19636 debug=: ;; 19637 --file | --fil | --fi | --f ) 19638 $ac_shift 19639 case $ac_optarg in 19640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19641 '') as_fn_error $? "missing file argument" ;; 19642 esac 19643 as_fn_append CONFIG_FILES " '$ac_optarg'" 19644 ac_need_defaults=false;; 19645 --header | --heade | --head | --hea ) 19646 $ac_shift 19647 case $ac_optarg in 19648 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19649 esac 19650 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19651 ac_need_defaults=false;; 19652 --he | --h) 19653 # Conflict between --help and --header 19654 as_fn_error $? "ambiguous option: \`$1' 19655Try \`$0 --help' for more information.";; 19656 --help | --hel | -h ) 19657 $as_echo "$ac_cs_usage"; exit ;; 19658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19659 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19660 ac_cs_silent=: ;; 19661 19662 # This is an error. 19663 -*) as_fn_error $? "unrecognized option: \`$1' 19664Try \`$0 --help' for more information." ;; 19665 19666 *) as_fn_append ac_config_targets " $1" 19667 ac_need_defaults=false ;; 19668 19669 esac 19670 shift 19671done 19672 19673ac_configure_extra_args= 19674 19675if $ac_cs_silent; then 19676 exec 6>/dev/null 19677 ac_configure_extra_args="$ac_configure_extra_args --silent" 19678fi 19679 19680_ACEOF 19681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19682if \$ac_cs_recheck; then 19683 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19684 shift 19685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19686 CONFIG_SHELL='$SHELL' 19687 export CONFIG_SHELL 19688 exec "\$@" 19689fi 19690 19691_ACEOF 19692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19693exec 5>>config.log 19694{ 19695 echo 19696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19697## Running $as_me. ## 19698_ASBOX 19699 $as_echo "$ac_log" 19700} >&5 19701 19702_ACEOF 19703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19704# 19705# INIT-COMMANDS 19706# 19707AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19708 19709 19710# The HP-UX ksh and POSIX shell print the target directory to stdout 19711# if CDPATH is set. 19712(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19713 19714sed_quote_subst='$sed_quote_subst' 19715double_quote_subst='$double_quote_subst' 19716delay_variable_subst='$delay_variable_subst' 19717macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19718macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19719enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19720enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19721pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19722enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19723shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19724SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19725ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19726PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19727host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19728host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19729host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19730build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19731build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19732build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19733SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19734Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19735GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19736EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19737FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19738LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19739NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19740LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19741max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19742ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19743exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19744lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19745lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19746lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19747lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19748lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19749reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19750reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19751OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19752deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19753file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19754file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19755want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19756DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19757sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19758AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19759AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19760archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19761STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19762RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19763old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19764old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19765old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19766lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19767CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19768CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19769compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19770GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19771lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19772lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19773lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19774lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19775lt_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"`' 19776lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19777nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19778lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19779lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19780objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19781MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19782lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19783lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19784lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19785lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19786lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19787need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19788MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19789DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19790NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19791LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19792OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19793OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19794libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19795shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19796extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19797archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19798enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19799export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19800whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19801compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19802old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19803old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19804archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19805archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19806module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19807module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19808with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19809allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19810no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19811hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19812hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19813hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19814hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19815hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19816hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19817hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19818inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19819link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19820always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19821export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19822exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19823include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19824prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19825postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19826file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19827variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19828need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19829need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19830version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19831runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19832shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19833shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19834libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19835library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19836soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19837install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19838postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19839postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19840finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19841finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19842hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19843sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19844configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19845configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19846hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19847enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19848enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19849enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19850old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19851striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19852 19853LTCC='$LTCC' 19854LTCFLAGS='$LTCFLAGS' 19855compiler='$compiler_DEFAULT' 19856 19857# A function that is used when there is no print builtin or printf. 19858func_fallback_echo () 19859{ 19860 eval 'cat <<_LTECHO_EOF 19861\$1 19862_LTECHO_EOF' 19863} 19864 19865# Quote evaled strings. 19866for var in SHELL \ 19867ECHO \ 19868PATH_SEPARATOR \ 19869SED \ 19870GREP \ 19871EGREP \ 19872FGREP \ 19873LD \ 19874NM \ 19875LN_S \ 19876lt_SP2NL \ 19877lt_NL2SP \ 19878reload_flag \ 19879OBJDUMP \ 19880deplibs_check_method \ 19881file_magic_cmd \ 19882file_magic_glob \ 19883want_nocaseglob \ 19884DLLTOOL \ 19885sharedlib_from_linklib_cmd \ 19886AR \ 19887AR_FLAGS \ 19888archiver_list_spec \ 19889STRIP \ 19890RANLIB \ 19891CC \ 19892CFLAGS \ 19893compiler \ 19894lt_cv_sys_global_symbol_pipe \ 19895lt_cv_sys_global_symbol_to_cdecl \ 19896lt_cv_sys_global_symbol_to_import \ 19897lt_cv_sys_global_symbol_to_c_name_address \ 19898lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19899lt_cv_nm_interface \ 19900nm_file_list_spec \ 19901lt_cv_truncate_bin \ 19902lt_prog_compiler_no_builtin_flag \ 19903lt_prog_compiler_pic \ 19904lt_prog_compiler_wl \ 19905lt_prog_compiler_static \ 19906lt_cv_prog_compiler_c_o \ 19907need_locks \ 19908MANIFEST_TOOL \ 19909DSYMUTIL \ 19910NMEDIT \ 19911LIPO \ 19912OTOOL \ 19913OTOOL64 \ 19914shrext_cmds \ 19915export_dynamic_flag_spec \ 19916whole_archive_flag_spec \ 19917compiler_needs_object \ 19918with_gnu_ld \ 19919allow_undefined_flag \ 19920no_undefined_flag \ 19921hardcode_libdir_flag_spec \ 19922hardcode_libdir_separator \ 19923exclude_expsyms \ 19924include_expsyms \ 19925file_list_spec \ 19926variables_saved_for_relink \ 19927libname_spec \ 19928library_names_spec \ 19929soname_spec \ 19930install_override_mode \ 19931finish_eval \ 19932old_striplib \ 19933striplib; do 19934 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19935 *[\\\\\\\`\\"\\\$]*) 19936 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19937 ;; 19938 *) 19939 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19940 ;; 19941 esac 19942done 19943 19944# Double-quote double-evaled strings. 19945for var in reload_cmds \ 19946old_postinstall_cmds \ 19947old_postuninstall_cmds \ 19948old_archive_cmds \ 19949extract_expsyms_cmds \ 19950old_archive_from_new_cmds \ 19951old_archive_from_expsyms_cmds \ 19952archive_cmds \ 19953archive_expsym_cmds \ 19954module_cmds \ 19955module_expsym_cmds \ 19956export_symbols_cmds \ 19957prelink_cmds \ 19958postlink_cmds \ 19959postinstall_cmds \ 19960postuninstall_cmds \ 19961finish_cmds \ 19962sys_lib_search_path_spec \ 19963configure_time_dlsearch_path \ 19964configure_time_lt_sys_library_path; do 19965 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19966 *[\\\\\\\`\\"\\\$]*) 19967 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19968 ;; 19969 *) 19970 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19971 ;; 19972 esac 19973done 19974 19975ac_aux_dir='$ac_aux_dir' 19976 19977# See if we are running on zsh, and set the options that allow our 19978# commands through without removal of \ escapes INIT. 19979if test -n "\${ZSH_VERSION+set}"; then 19980 setopt NO_GLOB_SUBST 19981fi 19982 19983 19984 PACKAGE='$PACKAGE' 19985 VERSION='$VERSION' 19986 RM='$RM' 19987 ofile='$ofile' 19988 19989 19990 19991 19992_ACEOF 19993 19994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19995 19996# Handling of arguments. 19997for ac_config_target in $ac_config_targets 19998do 19999 case $ac_config_target in 20000 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20001 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20002 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20003 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20004 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20005 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20006 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20007 "scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES scanpci/Makefile" ;; 20008 "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;; 20009 20010 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20011 esac 20012done 20013 20014 20015# If the user did not use the arguments to specify the items to instantiate, 20016# then the envvar interface is used. Set only those that are not. 20017# We use the long form for the default assignment because of an extremely 20018# bizarre bug on SunOS 4.1.3. 20019if $ac_need_defaults; then 20020 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20021 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20022 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20023fi 20024 20025# Have a temporary directory for convenience. Make it in the build tree 20026# simply because there is no reason against having it here, and in addition, 20027# creating and moving files from /tmp can sometimes cause problems. 20028# Hook for its removal unless debugging. 20029# Note that there is a small window in which the directory will not be cleaned: 20030# after its creation but before its name has been assigned to `$tmp'. 20031$debug || 20032{ 20033 tmp= ac_tmp= 20034 trap 'exit_status=$? 20035 : "${ac_tmp:=$tmp}" 20036 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20037' 0 20038 trap 'as_fn_exit 1' 1 2 13 15 20039} 20040# Create a (secure) tmp directory for tmp files. 20041 20042{ 20043 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20044 test -d "$tmp" 20045} || 20046{ 20047 tmp=./conf$$-$RANDOM 20048 (umask 077 && mkdir "$tmp") 20049} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20050ac_tmp=$tmp 20051 20052# Set up the scripts for CONFIG_FILES section. 20053# No need to generate them if there are no CONFIG_FILES. 20054# This happens for instance with `./config.status config.h'. 20055if test -n "$CONFIG_FILES"; then 20056 20057 20058ac_cr=`echo X | tr X '\015'` 20059# On cygwin, bash can eat \r inside `` if the user requested igncr. 20060# But we know of no other shell where ac_cr would be empty at this 20061# point, so we can use a bashism as a fallback. 20062if test "x$ac_cr" = x; then 20063 eval ac_cr=\$\'\\r\' 20064fi 20065ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20066if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20067 ac_cs_awk_cr='\\r' 20068else 20069 ac_cs_awk_cr=$ac_cr 20070fi 20071 20072echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20073_ACEOF 20074 20075 20076{ 20077 echo "cat >conf$$subs.awk <<_ACEOF" && 20078 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20079 echo "_ACEOF" 20080} >conf$$subs.sh || 20081 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20082ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20083ac_delim='%!_!# ' 20084for ac_last_try in false false false false false :; do 20085 . ./conf$$subs.sh || 20086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20087 20088 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20089 if test $ac_delim_n = $ac_delim_num; then 20090 break 20091 elif $ac_last_try; then 20092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20093 else 20094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20095 fi 20096done 20097rm -f conf$$subs.sh 20098 20099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20100cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20101_ACEOF 20102sed -n ' 20103h 20104s/^/S["/; s/!.*/"]=/ 20105p 20106g 20107s/^[^!]*!// 20108:repl 20109t repl 20110s/'"$ac_delim"'$// 20111t delim 20112:nl 20113h 20114s/\(.\{148\}\)..*/\1/ 20115t more1 20116s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20117p 20118n 20119b repl 20120:more1 20121s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20122p 20123g 20124s/.\{148\}// 20125t nl 20126:delim 20127h 20128s/\(.\{148\}\)..*/\1/ 20129t more2 20130s/["\\]/\\&/g; s/^/"/; s/$/"/ 20131p 20132b 20133:more2 20134s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20135p 20136g 20137s/.\{148\}// 20138t delim 20139' <conf$$subs.awk | sed ' 20140/^[^""]/{ 20141 N 20142 s/\n// 20143} 20144' >>$CONFIG_STATUS || ac_write_fail=1 20145rm -f conf$$subs.awk 20146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20147_ACAWK 20148cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20149 for (key in S) S_is_set[key] = 1 20150 FS = "" 20151 20152} 20153{ 20154 line = $ 0 20155 nfields = split(line, field, "@") 20156 substed = 0 20157 len = length(field[1]) 20158 for (i = 2; i < nfields; i++) { 20159 key = field[i] 20160 keylen = length(key) 20161 if (S_is_set[key]) { 20162 value = S[key] 20163 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20164 len += length(value) + length(field[++i]) 20165 substed = 1 20166 } else 20167 len += 1 + keylen 20168 } 20169 20170 print line 20171} 20172 20173_ACAWK 20174_ACEOF 20175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20176if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20177 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20178else 20179 cat 20180fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20181 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20182_ACEOF 20183 20184# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20185# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20186# trailing colons and then remove the whole line if VPATH becomes empty 20187# (actually we leave an empty line to preserve line numbers). 20188if test "x$srcdir" = x.; then 20189 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20190h 20191s/// 20192s/^/:/ 20193s/[ ]*$/:/ 20194s/:\$(srcdir):/:/g 20195s/:\${srcdir}:/:/g 20196s/:@srcdir@:/:/g 20197s/^:*// 20198s/:*$// 20199x 20200s/\(=[ ]*\).*/\1/ 20201G 20202s/\n// 20203s/^[^=]*=[ ]*$// 20204}' 20205fi 20206 20207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20208fi # test -n "$CONFIG_FILES" 20209 20210# Set up the scripts for CONFIG_HEADERS section. 20211# No need to generate them if there are no CONFIG_HEADERS. 20212# This happens for instance with `./config.status Makefile'. 20213if test -n "$CONFIG_HEADERS"; then 20214cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20215BEGIN { 20216_ACEOF 20217 20218# Transform confdefs.h into an awk script `defines.awk', embedded as 20219# here-document in config.status, that substitutes the proper values into 20220# config.h.in to produce config.h. 20221 20222# Create a delimiter string that does not exist in confdefs.h, to ease 20223# handling of long lines. 20224ac_delim='%!_!# ' 20225for ac_last_try in false false :; do 20226 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20227 if test -z "$ac_tt"; then 20228 break 20229 elif $ac_last_try; then 20230 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20231 else 20232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20233 fi 20234done 20235 20236# For the awk script, D is an array of macro values keyed by name, 20237# likewise P contains macro parameters if any. Preserve backslash 20238# newline sequences. 20239 20240ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20241sed -n ' 20242s/.\{148\}/&'"$ac_delim"'/g 20243t rset 20244:rset 20245s/^[ ]*#[ ]*define[ ][ ]*/ / 20246t def 20247d 20248:def 20249s/\\$// 20250t bsnl 20251s/["\\]/\\&/g 20252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20253D["\1"]=" \3"/p 20254s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20255d 20256:bsnl 20257s/["\\]/\\&/g 20258s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20259D["\1"]=" \3\\\\\\n"\\/p 20260t cont 20261s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20262t cont 20263d 20264:cont 20265n 20266s/.\{148\}/&'"$ac_delim"'/g 20267t clear 20268:clear 20269s/\\$// 20270t bsnlc 20271s/["\\]/\\&/g; s/^/"/; s/$/"/p 20272d 20273:bsnlc 20274s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20275b cont 20276' <confdefs.h | sed ' 20277s/'"$ac_delim"'/"\\\ 20278"/g' >>$CONFIG_STATUS || ac_write_fail=1 20279 20280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20281 for (key in D) D_is_set[key] = 1 20282 FS = "" 20283} 20284/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20285 line = \$ 0 20286 split(line, arg, " ") 20287 if (arg[1] == "#") { 20288 defundef = arg[2] 20289 mac1 = arg[3] 20290 } else { 20291 defundef = substr(arg[1], 2) 20292 mac1 = arg[2] 20293 } 20294 split(mac1, mac2, "(") #) 20295 macro = mac2[1] 20296 prefix = substr(line, 1, index(line, defundef) - 1) 20297 if (D_is_set[macro]) { 20298 # Preserve the white space surrounding the "#". 20299 print prefix "define", macro P[macro] D[macro] 20300 next 20301 } else { 20302 # Replace #undef with comments. This is necessary, for example, 20303 # in the case of _POSIX_SOURCE, which is predefined and required 20304 # on some systems where configure will not decide to define it. 20305 if (defundef == "undef") { 20306 print "/*", prefix defundef, macro, "*/" 20307 next 20308 } 20309 } 20310} 20311{ print } 20312_ACAWK 20313_ACEOF 20314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20315 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20316fi # test -n "$CONFIG_HEADERS" 20317 20318 20319eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20320shift 20321for ac_tag 20322do 20323 case $ac_tag in 20324 :[FHLC]) ac_mode=$ac_tag; continue;; 20325 esac 20326 case $ac_mode$ac_tag in 20327 :[FHL]*:*);; 20328 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20329 :[FH]-) ac_tag=-:-;; 20330 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20331 esac 20332 ac_save_IFS=$IFS 20333 IFS=: 20334 set x $ac_tag 20335 IFS=$ac_save_IFS 20336 shift 20337 ac_file=$1 20338 shift 20339 20340 case $ac_mode in 20341 :L) ac_source=$1;; 20342 :[FH]) 20343 ac_file_inputs= 20344 for ac_f 20345 do 20346 case $ac_f in 20347 -) ac_f="$ac_tmp/stdin";; 20348 *) # Look for the file first in the build tree, then in the source tree 20349 # (if the path is not absolute). The absolute path cannot be DOS-style, 20350 # because $ac_f cannot contain `:'. 20351 test -f "$ac_f" || 20352 case $ac_f in 20353 [\\/$]*) false;; 20354 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20355 esac || 20356 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20357 esac 20358 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20359 as_fn_append ac_file_inputs " '$ac_f'" 20360 done 20361 20362 # Let's still pretend it is `configure' which instantiates (i.e., don't 20363 # use $as_me), people would be surprised to read: 20364 # /* config.h. Generated by config.status. */ 20365 configure_input='Generated from '` 20366 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20367 `' by configure.' 20368 if test x"$ac_file" != x-; then 20369 configure_input="$ac_file. $configure_input" 20370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20371$as_echo "$as_me: creating $ac_file" >&6;} 20372 fi 20373 # Neutralize special characters interpreted by sed in replacement strings. 20374 case $configure_input in #( 20375 *\&* | *\|* | *\\* ) 20376 ac_sed_conf_input=`$as_echo "$configure_input" | 20377 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20378 *) ac_sed_conf_input=$configure_input;; 20379 esac 20380 20381 case $ac_tag in 20382 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20384 esac 20385 ;; 20386 esac 20387 20388 ac_dir=`$as_dirname -- "$ac_file" || 20389$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20390 X"$ac_file" : 'X\(//\)[^/]' \| \ 20391 X"$ac_file" : 'X\(//\)$' \| \ 20392 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20393$as_echo X"$ac_file" | 20394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20395 s//\1/ 20396 q 20397 } 20398 /^X\(\/\/\)[^/].*/{ 20399 s//\1/ 20400 q 20401 } 20402 /^X\(\/\/\)$/{ 20403 s//\1/ 20404 q 20405 } 20406 /^X\(\/\).*/{ 20407 s//\1/ 20408 q 20409 } 20410 s/.*/./; q'` 20411 as_dir="$ac_dir"; as_fn_mkdir_p 20412 ac_builddir=. 20413 20414case "$ac_dir" in 20415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20416*) 20417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20418 # A ".." for each directory in $ac_dir_suffix. 20419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20420 case $ac_top_builddir_sub in 20421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20423 esac ;; 20424esac 20425ac_abs_top_builddir=$ac_pwd 20426ac_abs_builddir=$ac_pwd$ac_dir_suffix 20427# for backward compatibility: 20428ac_top_builddir=$ac_top_build_prefix 20429 20430case $srcdir in 20431 .) # We are building in place. 20432 ac_srcdir=. 20433 ac_top_srcdir=$ac_top_builddir_sub 20434 ac_abs_top_srcdir=$ac_pwd ;; 20435 [\\/]* | ?:[\\/]* ) # Absolute name. 20436 ac_srcdir=$srcdir$ac_dir_suffix; 20437 ac_top_srcdir=$srcdir 20438 ac_abs_top_srcdir=$srcdir ;; 20439 *) # Relative name. 20440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20441 ac_top_srcdir=$ac_top_build_prefix$srcdir 20442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20443esac 20444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20445 20446 20447 case $ac_mode in 20448 :F) 20449 # 20450 # CONFIG_FILE 20451 # 20452 20453 case $INSTALL in 20454 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20455 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20456 esac 20457 ac_MKDIR_P=$MKDIR_P 20458 case $MKDIR_P in 20459 [\\/$]* | ?:[\\/]* ) ;; 20460 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20461 esac 20462_ACEOF 20463 20464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20465# If the template does not know about datarootdir, expand it. 20466# FIXME: This hack should be removed a few years after 2.60. 20467ac_datarootdir_hack=; ac_datarootdir_seen= 20468ac_sed_dataroot=' 20469/datarootdir/ { 20470 p 20471 q 20472} 20473/@datadir@/p 20474/@docdir@/p 20475/@infodir@/p 20476/@localedir@/p 20477/@mandir@/p' 20478case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20479*datarootdir*) ac_datarootdir_seen=yes;; 20480*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20482$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20483_ACEOF 20484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20485 ac_datarootdir_hack=' 20486 s&@datadir@&$datadir&g 20487 s&@docdir@&$docdir&g 20488 s&@infodir@&$infodir&g 20489 s&@localedir@&$localedir&g 20490 s&@mandir@&$mandir&g 20491 s&\\\${datarootdir}&$datarootdir&g' ;; 20492esac 20493_ACEOF 20494 20495# Neutralize VPATH when `$srcdir' = `.'. 20496# Shell code in configure.ac might set extrasub. 20497# FIXME: do we really want to maintain this feature? 20498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20499ac_sed_extra="$ac_vpsub 20500$extrasub 20501_ACEOF 20502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20503:t 20504/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20505s|@configure_input@|$ac_sed_conf_input|;t t 20506s&@top_builddir@&$ac_top_builddir_sub&;t t 20507s&@top_build_prefix@&$ac_top_build_prefix&;t t 20508s&@srcdir@&$ac_srcdir&;t t 20509s&@abs_srcdir@&$ac_abs_srcdir&;t t 20510s&@top_srcdir@&$ac_top_srcdir&;t t 20511s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20512s&@builddir@&$ac_builddir&;t t 20513s&@abs_builddir@&$ac_abs_builddir&;t t 20514s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20515s&@INSTALL@&$ac_INSTALL&;t t 20516s&@MKDIR_P@&$ac_MKDIR_P&;t t 20517$ac_datarootdir_hack 20518" 20519eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20520 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20521 20522test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20523 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20524 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20525 "$ac_tmp/out"`; test -z "$ac_out"; } && 20526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20527which seems to be undefined. Please make sure it is defined" >&5 20528$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20529which seems to be undefined. Please make sure it is defined" >&2;} 20530 20531 rm -f "$ac_tmp/stdin" 20532 case $ac_file in 20533 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20534 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20535 esac \ 20536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20537 ;; 20538 :H) 20539 # 20540 # CONFIG_HEADER 20541 # 20542 if test x"$ac_file" != x-; then 20543 { 20544 $as_echo "/* $configure_input */" \ 20545 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20546 } >"$ac_tmp/config.h" \ 20547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20548 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20549 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20550$as_echo "$as_me: $ac_file is unchanged" >&6;} 20551 else 20552 rm -f "$ac_file" 20553 mv "$ac_tmp/config.h" "$ac_file" \ 20554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20555 fi 20556 else 20557 $as_echo "/* $configure_input */" \ 20558 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20559 || as_fn_error $? "could not create -" "$LINENO" 5 20560 fi 20561# Compute "$ac_file"'s index in $config_headers. 20562_am_arg="$ac_file" 20563_am_stamp_count=1 20564for _am_header in $config_headers :; do 20565 case $_am_header in 20566 $_am_arg | $_am_arg:* ) 20567 break ;; 20568 * ) 20569 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20570 esac 20571done 20572echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20573$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20574 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20575 X"$_am_arg" : 'X\(//\)$' \| \ 20576 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20577$as_echo X"$_am_arg" | 20578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20579 s//\1/ 20580 q 20581 } 20582 /^X\(\/\/\)[^/].*/{ 20583 s//\1/ 20584 q 20585 } 20586 /^X\(\/\/\)$/{ 20587 s//\1/ 20588 q 20589 } 20590 /^X\(\/\).*/{ 20591 s//\1/ 20592 q 20593 } 20594 s/.*/./; q'`/stamp-h$_am_stamp_count 20595 ;; 20596 20597 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20598$as_echo "$as_me: executing $ac_file commands" >&6;} 20599 ;; 20600 esac 20601 20602 20603 case $ac_file$ac_mode in 20604 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20605 # Older Autoconf quotes --file arguments for eval, but not when files 20606 # are listed without --file. Let's play safe and only enable the eval 20607 # if we detect the quoting. 20608 case $CONFIG_FILES in 20609 *\'*) eval set x "$CONFIG_FILES" ;; 20610 *) set x $CONFIG_FILES ;; 20611 esac 20612 shift 20613 for mf 20614 do 20615 # Strip MF so we end up with the name of the file. 20616 mf=`echo "$mf" | sed -e 's/:.*$//'` 20617 # Check whether this is an Automake generated Makefile or not. 20618 # We used to match only the files named 'Makefile.in', but 20619 # some people rename them; so instead we look at the file content. 20620 # Grep'ing the first line is not enough: some people post-process 20621 # each Makefile.in and add a new line on top of each file to say so. 20622 # Grep'ing the whole file is not good either: AIX grep has a line 20623 # limit of 2048, but all sed's we know have understand at least 4000. 20624 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20625 dirpart=`$as_dirname -- "$mf" || 20626$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20627 X"$mf" : 'X\(//\)[^/]' \| \ 20628 X"$mf" : 'X\(//\)$' \| \ 20629 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20630$as_echo X"$mf" | 20631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20632 s//\1/ 20633 q 20634 } 20635 /^X\(\/\/\)[^/].*/{ 20636 s//\1/ 20637 q 20638 } 20639 /^X\(\/\/\)$/{ 20640 s//\1/ 20641 q 20642 } 20643 /^X\(\/\).*/{ 20644 s//\1/ 20645 q 20646 } 20647 s/.*/./; q'` 20648 else 20649 continue 20650 fi 20651 # Extract the definition of DEPDIR, am__include, and am__quote 20652 # from the Makefile without running 'make'. 20653 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20654 test -z "$DEPDIR" && continue 20655 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20656 test -z "$am__include" && continue 20657 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20658 # Find all dependency output files, they are included files with 20659 # $(DEPDIR) in their names. We invoke sed twice because it is the 20660 # simplest approach to changing $(DEPDIR) to its actual value in the 20661 # expansion. 20662 for file in `sed -n " 20663 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20664 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20665 # Make sure the directory exists. 20666 test -f "$dirpart/$file" && continue 20667 fdir=`$as_dirname -- "$file" || 20668$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20669 X"$file" : 'X\(//\)[^/]' \| \ 20670 X"$file" : 'X\(//\)$' \| \ 20671 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20672$as_echo X"$file" | 20673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20674 s//\1/ 20675 q 20676 } 20677 /^X\(\/\/\)[^/].*/{ 20678 s//\1/ 20679 q 20680 } 20681 /^X\(\/\/\)$/{ 20682 s//\1/ 20683 q 20684 } 20685 /^X\(\/\).*/{ 20686 s//\1/ 20687 q 20688 } 20689 s/.*/./; q'` 20690 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20691 # echo "creating $dirpart/$file" 20692 echo '# dummy' > "$dirpart/$file" 20693 done 20694 done 20695} 20696 ;; 20697 "libtool":C) 20698 20699 # See if we are running on zsh, and set the options that allow our 20700 # commands through without removal of \ escapes. 20701 if test -n "${ZSH_VERSION+set}"; then 20702 setopt NO_GLOB_SUBST 20703 fi 20704 20705 cfgfile=${ofile}T 20706 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20707 $RM "$cfgfile" 20708 20709 cat <<_LT_EOF >> "$cfgfile" 20710#! $SHELL 20711# Generated automatically by $as_me ($PACKAGE) $VERSION 20712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20713# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20714 20715# Provide generalized library-building support services. 20716# Written by Gordon Matzigkeit, 1996 20717 20718# Copyright (C) 2014 Free Software Foundation, Inc. 20719# This is free software; see the source for copying conditions. There is NO 20720# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20721 20722# GNU Libtool is free software; you can redistribute it and/or modify 20723# it under the terms of the GNU General Public License as published by 20724# the Free Software Foundation; either version 2 of of the License, or 20725# (at your option) any later version. 20726# 20727# As a special exception to the GNU General Public License, if you 20728# distribute this file as part of a program or library that is built 20729# using GNU Libtool, you may include this file under the same 20730# distribution terms that you use for the rest of that program. 20731# 20732# GNU Libtool is distributed in the hope that it will be useful, but 20733# WITHOUT ANY WARRANTY; without even the implied warranty of 20734# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20735# GNU General Public License for more details. 20736# 20737# You should have received a copy of the GNU General Public License 20738# along with this program. If not, see <http://www.gnu.org/licenses/>. 20739 20740 20741# The names of the tagged configurations supported by this script. 20742available_tags='' 20743 20744# Configured defaults for sys_lib_dlsearch_path munging. 20745: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20746 20747# ### BEGIN LIBTOOL CONFIG 20748 20749# Which release of libtool.m4 was used? 20750macro_version=$macro_version 20751macro_revision=$macro_revision 20752 20753# Whether or not to build shared libraries. 20754build_libtool_libs=$enable_shared 20755 20756# Whether or not to build static libraries. 20757build_old_libs=$enable_static 20758 20759# What type of objects to build. 20760pic_mode=$pic_mode 20761 20762# Whether or not to optimize for fast installation. 20763fast_install=$enable_fast_install 20764 20765# Shared archive member basename,for filename based shared library versioning on AIX. 20766shared_archive_member_spec=$shared_archive_member_spec 20767 20768# Shell to use when invoking shell scripts. 20769SHELL=$lt_SHELL 20770 20771# An echo program that protects backslashes. 20772ECHO=$lt_ECHO 20773 20774# The PATH separator for the build system. 20775PATH_SEPARATOR=$lt_PATH_SEPARATOR 20776 20777# The host system. 20778host_alias=$host_alias 20779host=$host 20780host_os=$host_os 20781 20782# The build system. 20783build_alias=$build_alias 20784build=$build 20785build_os=$build_os 20786 20787# A sed program that does not truncate output. 20788SED=$lt_SED 20789 20790# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20791Xsed="\$SED -e 1s/^X//" 20792 20793# A grep program that handles long lines. 20794GREP=$lt_GREP 20795 20796# An ERE matcher. 20797EGREP=$lt_EGREP 20798 20799# A literal string matcher. 20800FGREP=$lt_FGREP 20801 20802# A BSD- or MS-compatible name lister. 20803NM=$lt_NM 20804 20805# Whether we need soft or hard links. 20806LN_S=$lt_LN_S 20807 20808# What is the maximum length of a command? 20809max_cmd_len=$max_cmd_len 20810 20811# Object file suffix (normally "o"). 20812objext=$ac_objext 20813 20814# Executable file suffix (normally ""). 20815exeext=$exeext 20816 20817# whether the shell understands "unset". 20818lt_unset=$lt_unset 20819 20820# turn spaces into newlines. 20821SP2NL=$lt_lt_SP2NL 20822 20823# turn newlines into spaces. 20824NL2SP=$lt_lt_NL2SP 20825 20826# convert \$build file names to \$host format. 20827to_host_file_cmd=$lt_cv_to_host_file_cmd 20828 20829# convert \$build files to toolchain format. 20830to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20831 20832# An object symbol dumper. 20833OBJDUMP=$lt_OBJDUMP 20834 20835# Method to check whether dependent libraries are shared objects. 20836deplibs_check_method=$lt_deplibs_check_method 20837 20838# Command to use when deplibs_check_method = "file_magic". 20839file_magic_cmd=$lt_file_magic_cmd 20840 20841# How to find potential files when deplibs_check_method = "file_magic". 20842file_magic_glob=$lt_file_magic_glob 20843 20844# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20845want_nocaseglob=$lt_want_nocaseglob 20846 20847# DLL creation program. 20848DLLTOOL=$lt_DLLTOOL 20849 20850# Command to associate shared and link libraries. 20851sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20852 20853# The archiver. 20854AR=$lt_AR 20855 20856# Flags to create an archive. 20857AR_FLAGS=$lt_AR_FLAGS 20858 20859# How to feed a file listing to the archiver. 20860archiver_list_spec=$lt_archiver_list_spec 20861 20862# A symbol stripping program. 20863STRIP=$lt_STRIP 20864 20865# Commands used to install an old-style archive. 20866RANLIB=$lt_RANLIB 20867old_postinstall_cmds=$lt_old_postinstall_cmds 20868old_postuninstall_cmds=$lt_old_postuninstall_cmds 20869 20870# Whether to use a lock for old archive extraction. 20871lock_old_archive_extraction=$lock_old_archive_extraction 20872 20873# A C compiler. 20874LTCC=$lt_CC 20875 20876# LTCC compiler flags. 20877LTCFLAGS=$lt_CFLAGS 20878 20879# Take the output of nm and produce a listing of raw symbols and C names. 20880global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20881 20882# Transform the output of nm in a proper C declaration. 20883global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20884 20885# Transform the output of nm into a list of symbols to manually relocate. 20886global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20887 20888# Transform the output of nm in a C name address pair. 20889global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20890 20891# Transform the output of nm in a C name address pair when lib prefix is needed. 20892global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20893 20894# The name lister interface. 20895nm_interface=$lt_lt_cv_nm_interface 20896 20897# Specify filename containing input files for \$NM. 20898nm_file_list_spec=$lt_nm_file_list_spec 20899 20900# The root where to search for dependent libraries,and where our libraries should be installed. 20901lt_sysroot=$lt_sysroot 20902 20903# Command to truncate a binary pipe. 20904lt_truncate_bin=$lt_lt_cv_truncate_bin 20905 20906# The name of the directory that contains temporary libtool files. 20907objdir=$objdir 20908 20909# Used to examine libraries when file_magic_cmd begins with "file". 20910MAGIC_CMD=$MAGIC_CMD 20911 20912# Must we lock files when doing compilation? 20913need_locks=$lt_need_locks 20914 20915# Manifest tool. 20916MANIFEST_TOOL=$lt_MANIFEST_TOOL 20917 20918# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20919DSYMUTIL=$lt_DSYMUTIL 20920 20921# Tool to change global to local symbols on Mac OS X. 20922NMEDIT=$lt_NMEDIT 20923 20924# Tool to manipulate fat objects and archives on Mac OS X. 20925LIPO=$lt_LIPO 20926 20927# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20928OTOOL=$lt_OTOOL 20929 20930# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20931OTOOL64=$lt_OTOOL64 20932 20933# Old archive suffix (normally "a"). 20934libext=$libext 20935 20936# Shared library suffix (normally ".so"). 20937shrext_cmds=$lt_shrext_cmds 20938 20939# The commands to extract the exported symbol list from a shared archive. 20940extract_expsyms_cmds=$lt_extract_expsyms_cmds 20941 20942# Variables whose values should be saved in libtool wrapper scripts and 20943# restored at link time. 20944variables_saved_for_relink=$lt_variables_saved_for_relink 20945 20946# Do we need the "lib" prefix for modules? 20947need_lib_prefix=$need_lib_prefix 20948 20949# Do we need a version for libraries? 20950need_version=$need_version 20951 20952# Library versioning type. 20953version_type=$version_type 20954 20955# Shared library runtime path variable. 20956runpath_var=$runpath_var 20957 20958# Shared library path variable. 20959shlibpath_var=$shlibpath_var 20960 20961# Is shlibpath searched before the hard-coded library search path? 20962shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20963 20964# Format of library name prefix. 20965libname_spec=$lt_libname_spec 20966 20967# List of archive names. First name is the real one, the rest are links. 20968# The last name is the one that the linker finds with -lNAME 20969library_names_spec=$lt_library_names_spec 20970 20971# The coded name of the library, if different from the real name. 20972soname_spec=$lt_soname_spec 20973 20974# Permission mode override for installation of shared libraries. 20975install_override_mode=$lt_install_override_mode 20976 20977# Command to use after installation of a shared archive. 20978postinstall_cmds=$lt_postinstall_cmds 20979 20980# Command to use after uninstallation of a shared archive. 20981postuninstall_cmds=$lt_postuninstall_cmds 20982 20983# Commands used to finish a libtool library installation in a directory. 20984finish_cmds=$lt_finish_cmds 20985 20986# As "finish_cmds", except a single script fragment to be evaled but 20987# not shown. 20988finish_eval=$lt_finish_eval 20989 20990# Whether we should hardcode library paths into libraries. 20991hardcode_into_libs=$hardcode_into_libs 20992 20993# Compile-time system search path for libraries. 20994sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20995 20996# Detected run-time system search path for libraries. 20997sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20998 20999# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21000configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21001 21002# Whether dlopen is supported. 21003dlopen_support=$enable_dlopen 21004 21005# Whether dlopen of programs is supported. 21006dlopen_self=$enable_dlopen_self 21007 21008# Whether dlopen of statically linked programs is supported. 21009dlopen_self_static=$enable_dlopen_self_static 21010 21011# Commands to strip libraries. 21012old_striplib=$lt_old_striplib 21013striplib=$lt_striplib 21014 21015 21016# The linker used to build libraries. 21017LD=$lt_LD 21018 21019# How to create reloadable object files. 21020reload_flag=$lt_reload_flag 21021reload_cmds=$lt_reload_cmds 21022 21023# Commands used to build an old-style archive. 21024old_archive_cmds=$lt_old_archive_cmds 21025 21026# A language specific compiler. 21027CC=$lt_compiler 21028 21029# Is the compiler the GNU compiler? 21030with_gcc=$GCC 21031 21032# Compiler flag to turn off builtin functions. 21033no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21034 21035# Additional compiler flags for building library objects. 21036pic_flag=$lt_lt_prog_compiler_pic 21037 21038# How to pass a linker flag through the compiler. 21039wl=$lt_lt_prog_compiler_wl 21040 21041# Compiler flag to prevent dynamic linking. 21042link_static_flag=$lt_lt_prog_compiler_static 21043 21044# Does compiler simultaneously support -c and -o options? 21045compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21046 21047# Whether or not to add -lc for building shared libraries. 21048build_libtool_need_lc=$archive_cmds_need_lc 21049 21050# Whether or not to disallow shared libs when runtime libs are static. 21051allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21052 21053# Compiler flag to allow reflexive dlopens. 21054export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21055 21056# Compiler flag to generate shared objects directly from archives. 21057whole_archive_flag_spec=$lt_whole_archive_flag_spec 21058 21059# Whether the compiler copes with passing no objects directly. 21060compiler_needs_object=$lt_compiler_needs_object 21061 21062# Create an old-style archive from a shared archive. 21063old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21064 21065# Create a temporary old-style archive to link instead of a shared archive. 21066old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21067 21068# Commands used to build a shared archive. 21069archive_cmds=$lt_archive_cmds 21070archive_expsym_cmds=$lt_archive_expsym_cmds 21071 21072# Commands used to build a loadable module if different from building 21073# a shared archive. 21074module_cmds=$lt_module_cmds 21075module_expsym_cmds=$lt_module_expsym_cmds 21076 21077# Whether we are building with GNU ld or not. 21078with_gnu_ld=$lt_with_gnu_ld 21079 21080# Flag that allows shared libraries with undefined symbols to be built. 21081allow_undefined_flag=$lt_allow_undefined_flag 21082 21083# Flag that enforces no undefined symbols. 21084no_undefined_flag=$lt_no_undefined_flag 21085 21086# Flag to hardcode \$libdir into a binary during linking. 21087# This must work even if \$libdir does not exist 21088hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21089 21090# Whether we need a single "-rpath" flag with a separated argument. 21091hardcode_libdir_separator=$lt_hardcode_libdir_separator 21092 21093# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21094# DIR into the resulting binary. 21095hardcode_direct=$hardcode_direct 21096 21097# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21098# DIR into the resulting binary and the resulting library dependency is 21099# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21100# library is relocated. 21101hardcode_direct_absolute=$hardcode_direct_absolute 21102 21103# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21104# into the resulting binary. 21105hardcode_minus_L=$hardcode_minus_L 21106 21107# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21108# into the resulting binary. 21109hardcode_shlibpath_var=$hardcode_shlibpath_var 21110 21111# Set to "yes" if building a shared library automatically hardcodes DIR 21112# into the library and all subsequent libraries and executables linked 21113# against it. 21114hardcode_automatic=$hardcode_automatic 21115 21116# Set to yes if linker adds runtime paths of dependent libraries 21117# to runtime path list. 21118inherit_rpath=$inherit_rpath 21119 21120# Whether libtool must link a program against all its dependency libraries. 21121link_all_deplibs=$link_all_deplibs 21122 21123# Set to "yes" if exported symbols are required. 21124always_export_symbols=$always_export_symbols 21125 21126# The commands to list exported symbols. 21127export_symbols_cmds=$lt_export_symbols_cmds 21128 21129# Symbols that should not be listed in the preloaded symbols. 21130exclude_expsyms=$lt_exclude_expsyms 21131 21132# Symbols that must always be exported. 21133include_expsyms=$lt_include_expsyms 21134 21135# Commands necessary for linking programs (against libraries) with templates. 21136prelink_cmds=$lt_prelink_cmds 21137 21138# Commands necessary for finishing linking programs. 21139postlink_cmds=$lt_postlink_cmds 21140 21141# Specify filename containing input files. 21142file_list_spec=$lt_file_list_spec 21143 21144# How to hardcode a shared library path into an executable. 21145hardcode_action=$hardcode_action 21146 21147# ### END LIBTOOL CONFIG 21148 21149_LT_EOF 21150 21151 cat <<'_LT_EOF' >> "$cfgfile" 21152 21153# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21154 21155# func_munge_path_list VARIABLE PATH 21156# ----------------------------------- 21157# VARIABLE is name of variable containing _space_ separated list of 21158# directories to be munged by the contents of PATH, which is string 21159# having a format: 21160# "DIR[:DIR]:" 21161# string "DIR[ DIR]" will be prepended to VARIABLE 21162# ":DIR[:DIR]" 21163# string "DIR[ DIR]" will be appended to VARIABLE 21164# "DIRP[:DIRP]::[DIRA:]DIRA" 21165# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21166# "DIRA[ DIRA]" will be appended to VARIABLE 21167# "DIR[:DIR]" 21168# VARIABLE will be replaced by "DIR[ DIR]" 21169func_munge_path_list () 21170{ 21171 case x$2 in 21172 x) 21173 ;; 21174 *:) 21175 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21176 ;; 21177 x:*) 21178 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21179 ;; 21180 *::*) 21181 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21182 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21183 ;; 21184 *) 21185 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21186 ;; 21187 esac 21188} 21189 21190 21191# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21192func_cc_basename () 21193{ 21194 for cc_temp in $*""; do 21195 case $cc_temp in 21196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21198 \-*) ;; 21199 *) break;; 21200 esac 21201 done 21202 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21203} 21204 21205 21206# ### END FUNCTIONS SHARED WITH CONFIGURE 21207 21208_LT_EOF 21209 21210 case $host_os in 21211 aix3*) 21212 cat <<\_LT_EOF >> "$cfgfile" 21213# AIX sometimes has problems with the GCC collect2 program. For some 21214# reason, if we set the COLLECT_NAMES environment variable, the problems 21215# vanish in a puff of smoke. 21216if test set != "${COLLECT_NAMES+set}"; then 21217 COLLECT_NAMES= 21218 export COLLECT_NAMES 21219fi 21220_LT_EOF 21221 ;; 21222 esac 21223 21224 21225ltmain=$ac_aux_dir/ltmain.sh 21226 21227 21228 # We use sed instead of cat because bash on DJGPP gets confused if 21229 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21230 # text mode, it properly converts lines to CR/LF. This bash problem 21231 # is reportedly fixed, but why not run on old versions too? 21232 sed '$q' "$ltmain" >> "$cfgfile" \ 21233 || (rm -f "$cfgfile"; exit 1) 21234 21235 mv -f "$cfgfile" "$ofile" || 21236 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21237 chmod +x "$ofile" 21238 21239 ;; 21240 21241 esac 21242done # for ac_tag 21243 21244 21245as_fn_exit 0 21246_ACEOF 21247ac_clean_files=$ac_clean_files_save 21248 21249test $ac_write_fail = 0 || 21250 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21251 21252 21253# configure is writing to config.log, and then calls config.status. 21254# config.status does its own redirection, appending to config.log. 21255# Unfortunately, on DOS this fails, as config.log is still kept open 21256# by configure, so config.status won't be able to write to it; its 21257# output is simply discarded. So we exec the FD to /dev/null, 21258# effectively closing config.log, so it can be properly (re)opened and 21259# appended to by config.status. When coming back to configure, we 21260# need to make the FD available again. 21261if test "$no_create" != yes; then 21262 ac_cs_success=: 21263 ac_config_status_args= 21264 test "$silent" = yes && 21265 ac_config_status_args="$ac_config_status_args --quiet" 21266 exec 5>/dev/null 21267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21268 exec 5>>config.log 21269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21270 # would make configure fail if this is the last instruction. 21271 $ac_cs_success || as_fn_exit 1 21272fi 21273if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21275$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21276fi 21277 21278