configure revision 6257f37d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-nv 2.1.21. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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 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='xf86-video-nv' 593PACKAGE_TARNAME='xf86-video-nv' 594PACKAGE_VERSION='2.1.21' 595PACKAGE_STRING='xf86-video-nv 2.1.21' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642XAA_FALSE 643XAA_TRUE 644PCIACCESS_LIBS 645PCIACCESS_CFLAGS 646HAVE_XEXTPROTO_71_FALSE 647HAVE_XEXTPROTO_71_TRUE 648XEXT_LIBS 649XEXT_CFLAGS 650XORG_LIBS 651XORG_CFLAGS 652LT_SYS_LIBRARY_PATH 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658MANIFEST_TOOL 659RANLIB 660ac_ct_AR 661AR 662DLLTOOL 663OBJDUMP 664LN_S 665NM 666ac_ct_DUMPBIN 667DUMPBIN 668LD 669FGREP 670LIBTOOL 671MAINT 672MAINTAINER_MODE_FALSE 673MAINTAINER_MODE_TRUE 674am__fastdepCC_FALSE 675am__fastdepCC_TRUE 676CCDEPMODE 677am__nodep 678AMDEPBACKSLASH 679AMDEP_FALSE 680AMDEP_TRUE 681am__quote 682am__include 683DEPDIR 684am__untar 685am__tar 686AMTAR 687am__leading_dot 688SET_MAKE 689AWK 690mkdir_p 691MKDIR_P 692INSTALL_STRIP_PROGRAM 693STRIP 694install_sh 695MAKEINFO 696AUTOHEADER 697AUTOMAKE 698AUTOCONF 699ACLOCAL 700VERSION 701PACKAGE 702CYGPATH_W 703am__isrc 704AM_BACKSLASH 705AM_DEFAULT_VERBOSITY 706AM_DEFAULT_V 707AM_V 708MAN_SUBSTS 709XORG_MAN_PAGE 710ADMIN_MAN_DIR 711DRIVER_MAN_DIR 712MISC_MAN_DIR 713FILE_MAN_DIR 714LIB_MAN_DIR 715APP_MAN_DIR 716ADMIN_MAN_SUFFIX 717DRIVER_MAN_SUFFIX 718MISC_MAN_SUFFIX 719FILE_MAN_SUFFIX 720LIB_MAN_SUFFIX 721APP_MAN_SUFFIX 722SED 723host_os 724host_vendor 725host_cpu 726host 727build_os 728build_vendor 729build_cpu 730build 731INSTALL_CMD 732PKG_CONFIG_LIBDIR 733PKG_CONFIG_PATH 734PKG_CONFIG 735CHANGELOG_CMD 736STRICT_CFLAGS 737CWARNFLAGS 738BASE_CFLAGS 739EGREP 740GREP 741CPP 742OBJEXT 743EXEEXT 744ac_ct_CC 745CPPFLAGS 746LDFLAGS 747CFLAGS 748CC 749INSTALL_DATA 750INSTALL_SCRIPT 751INSTALL_PROGRAM 752target_alias 753host_alias 754build_alias 755LIBS 756ECHO_T 757ECHO_N 758ECHO_C 759DEFS 760mandir 761localedir 762libdir 763psdir 764pdfdir 765dvidir 766htmldir 767infodir 768docdir 769oldincludedir 770includedir 771localstatedir 772sharedstatedir 773sysconfdir 774datadir 775datarootdir 776libexecdir 777sbindir 778bindir 779program_transform_name 780prefix 781exec_prefix 782PACKAGE_URL 783PACKAGE_BUGREPORT 784PACKAGE_STRING 785PACKAGE_VERSION 786PACKAGE_TARNAME 787PACKAGE_NAME 788PATH_SEPARATOR 789SHELL' 790ac_subst_files='' 791ac_user_opts=' 792enable_option_checking 793enable_selective_werror 794enable_strict_compilation 795enable_silent_rules 796enable_dependency_tracking 797enable_maintainer_mode 798enable_static 799enable_shared 800with_pic 801enable_fast_install 802with_aix_soname 803with_gnu_ld 804with_sysroot 805enable_libtool_lock 806with_xorg_module_dir 807enable_xaa 808' 809 ac_precious_vars='build_alias 810host_alias 811target_alias 812CC 813CFLAGS 814LDFLAGS 815LIBS 816CPPFLAGS 817CPP 818PKG_CONFIG 819PKG_CONFIG_PATH 820PKG_CONFIG_LIBDIR 821LT_SYS_LIBRARY_PATH 822XORG_CFLAGS 823XORG_LIBS 824XEXT_CFLAGS 825XEXT_LIBS 826PCIACCESS_CFLAGS 827PCIACCESS_LIBS' 828 829 830# Initialize some variables set by options. 831ac_init_help= 832ac_init_version=false 833ac_unrecognized_opts= 834ac_unrecognized_sep= 835# The variables have the same names as the options, with 836# dashes changed to underlines. 837cache_file=/dev/null 838exec_prefix=NONE 839no_create= 840no_recursion= 841prefix=NONE 842program_prefix=NONE 843program_suffix=NONE 844program_transform_name=s,x,x, 845silent= 846site= 847srcdir= 848verbose= 849x_includes=NONE 850x_libraries=NONE 851 852# Installation directory options. 853# These are left unexpanded so users can "make install exec_prefix=/foo" 854# and all the variables that are supposed to be based on exec_prefix 855# by default will actually change. 856# Use braces instead of parens because sh, perl, etc. also accept them. 857# (The list follows the same order as the GNU Coding Standards.) 858bindir='${exec_prefix}/bin' 859sbindir='${exec_prefix}/sbin' 860libexecdir='${exec_prefix}/libexec' 861datarootdir='${prefix}/share' 862datadir='${datarootdir}' 863sysconfdir='${prefix}/etc' 864sharedstatedir='${prefix}/com' 865localstatedir='${prefix}/var' 866includedir='${prefix}/include' 867oldincludedir='/usr/include' 868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 869infodir='${datarootdir}/info' 870htmldir='${docdir}' 871dvidir='${docdir}' 872pdfdir='${docdir}' 873psdir='${docdir}' 874libdir='${exec_prefix}/lib' 875localedir='${datarootdir}/locale' 876mandir='${datarootdir}/man' 877 878ac_prev= 879ac_dashdash= 880for ac_option 881do 882 # If the previous option needs an argument, assign it. 883 if test -n "$ac_prev"; then 884 eval $ac_prev=\$ac_option 885 ac_prev= 886 continue 887 fi 888 889 case $ac_option in 890 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 891 *=) ac_optarg= ;; 892 *) ac_optarg=yes ;; 893 esac 894 895 # Accept the important Cygnus configure options, so we can diagnose typos. 896 897 case $ac_dashdash$ac_option in 898 --) 899 ac_dashdash=yes ;; 900 901 -bindir | --bindir | --bindi | --bind | --bin | --bi) 902 ac_prev=bindir ;; 903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 904 bindir=$ac_optarg ;; 905 906 -build | --build | --buil | --bui | --bu) 907 ac_prev=build_alias ;; 908 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 909 build_alias=$ac_optarg ;; 910 911 -cache-file | --cache-file | --cache-fil | --cache-fi \ 912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 913 ac_prev=cache_file ;; 914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 916 cache_file=$ac_optarg ;; 917 918 --config-cache | -C) 919 cache_file=config.cache ;; 920 921 -datadir | --datadir | --datadi | --datad) 922 ac_prev=datadir ;; 923 -datadir=* | --datadir=* | --datadi=* | --datad=*) 924 datadir=$ac_optarg ;; 925 926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 927 | --dataroo | --dataro | --datar) 928 ac_prev=datarootdir ;; 929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 931 datarootdir=$ac_optarg ;; 932 933 -disable-* | --disable-*) 934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 937 as_fn_error $? "invalid feature name: $ac_useropt" 938 ac_useropt_orig=$ac_useropt 939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 940 case $ac_user_opts in 941 *" 942"enable_$ac_useropt" 943"*) ;; 944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 945 ac_unrecognized_sep=', ';; 946 esac 947 eval enable_$ac_useropt=no ;; 948 949 -docdir | --docdir | --docdi | --doc | --do) 950 ac_prev=docdir ;; 951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 952 docdir=$ac_optarg ;; 953 954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 955 ac_prev=dvidir ;; 956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 957 dvidir=$ac_optarg ;; 958 959 -enable-* | --enable-*) 960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 961 # Reject names that are not valid shell variable names. 962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 963 as_fn_error $? "invalid feature name: $ac_useropt" 964 ac_useropt_orig=$ac_useropt 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 966 case $ac_user_opts in 967 *" 968"enable_$ac_useropt" 969"*) ;; 970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 971 ac_unrecognized_sep=', ';; 972 esac 973 eval enable_$ac_useropt=\$ac_optarg ;; 974 975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 977 | --exec | --exe | --ex) 978 ac_prev=exec_prefix ;; 979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 981 | --exec=* | --exe=* | --ex=*) 982 exec_prefix=$ac_optarg ;; 983 984 -gas | --gas | --ga | --g) 985 # Obsolete; use --with-gas. 986 with_gas=yes ;; 987 988 -help | --help | --hel | --he | -h) 989 ac_init_help=long ;; 990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 991 ac_init_help=recursive ;; 992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 993 ac_init_help=short ;; 994 995 -host | --host | --hos | --ho) 996 ac_prev=host_alias ;; 997 -host=* | --host=* | --hos=* | --ho=*) 998 host_alias=$ac_optarg ;; 999 1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1001 ac_prev=htmldir ;; 1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1003 | --ht=*) 1004 htmldir=$ac_optarg ;; 1005 1006 -includedir | --includedir | --includedi | --included | --include \ 1007 | --includ | --inclu | --incl | --inc) 1008 ac_prev=includedir ;; 1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1010 | --includ=* | --inclu=* | --incl=* | --inc=*) 1011 includedir=$ac_optarg ;; 1012 1013 -infodir | --infodir | --infodi | --infod | --info | --inf) 1014 ac_prev=infodir ;; 1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1016 infodir=$ac_optarg ;; 1017 1018 -libdir | --libdir | --libdi | --libd) 1019 ac_prev=libdir ;; 1020 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1021 libdir=$ac_optarg ;; 1022 1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1024 | --libexe | --libex | --libe) 1025 ac_prev=libexecdir ;; 1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1027 | --libexe=* | --libex=* | --libe=*) 1028 libexecdir=$ac_optarg ;; 1029 1030 -localedir | --localedir | --localedi | --localed | --locale) 1031 ac_prev=localedir ;; 1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1033 localedir=$ac_optarg ;; 1034 1035 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1036 | --localstate | --localstat | --localsta | --localst | --locals) 1037 ac_prev=localstatedir ;; 1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1040 localstatedir=$ac_optarg ;; 1041 1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1043 ac_prev=mandir ;; 1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1045 mandir=$ac_optarg ;; 1046 1047 -nfp | --nfp | --nf) 1048 # Obsolete; use --without-fp. 1049 with_fp=no ;; 1050 1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1052 | --no-cr | --no-c | -n) 1053 no_create=yes ;; 1054 1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1057 no_recursion=yes ;; 1058 1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1061 | --oldin | --oldi | --old | --ol | --o) 1062 ac_prev=oldincludedir ;; 1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1066 oldincludedir=$ac_optarg ;; 1067 1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1069 ac_prev=prefix ;; 1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1071 prefix=$ac_optarg ;; 1072 1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1074 | --program-pre | --program-pr | --program-p) 1075 ac_prev=program_prefix ;; 1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1078 program_prefix=$ac_optarg ;; 1079 1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1081 | --program-suf | --program-su | --program-s) 1082 ac_prev=program_suffix ;; 1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1085 program_suffix=$ac_optarg ;; 1086 1087 -program-transform-name | --program-transform-name \ 1088 | --program-transform-nam | --program-transform-na \ 1089 | --program-transform-n | --program-transform- \ 1090 | --program-transform | --program-transfor \ 1091 | --program-transfo | --program-transf \ 1092 | --program-trans | --program-tran \ 1093 | --progr-tra | --program-tr | --program-t) 1094 ac_prev=program_transform_name ;; 1095 -program-transform-name=* | --program-transform-name=* \ 1096 | --program-transform-nam=* | --program-transform-na=* \ 1097 | --program-transform-n=* | --program-transform-=* \ 1098 | --program-transform=* | --program-transfor=* \ 1099 | --program-transfo=* | --program-transf=* \ 1100 | --program-trans=* | --program-tran=* \ 1101 | --progr-tra=* | --program-tr=* | --program-t=*) 1102 program_transform_name=$ac_optarg ;; 1103 1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1105 ac_prev=pdfdir ;; 1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1107 pdfdir=$ac_optarg ;; 1108 1109 -psdir | --psdir | --psdi | --psd | --ps) 1110 ac_prev=psdir ;; 1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1112 psdir=$ac_optarg ;; 1113 1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1115 | -silent | --silent | --silen | --sile | --sil) 1116 silent=yes ;; 1117 1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1119 ac_prev=sbindir ;; 1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1121 | --sbi=* | --sb=*) 1122 sbindir=$ac_optarg ;; 1123 1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1126 | --sharedst | --shareds | --shared | --share | --shar \ 1127 | --sha | --sh) 1128 ac_prev=sharedstatedir ;; 1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1132 | --sha=* | --sh=*) 1133 sharedstatedir=$ac_optarg ;; 1134 1135 -site | --site | --sit) 1136 ac_prev=site ;; 1137 -site=* | --site=* | --sit=*) 1138 site=$ac_optarg ;; 1139 1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1141 ac_prev=srcdir ;; 1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1143 srcdir=$ac_optarg ;; 1144 1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1146 | --syscon | --sysco | --sysc | --sys | --sy) 1147 ac_prev=sysconfdir ;; 1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1150 sysconfdir=$ac_optarg ;; 1151 1152 -target | --target | --targe | --targ | --tar | --ta | --t) 1153 ac_prev=target_alias ;; 1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1155 target_alias=$ac_optarg ;; 1156 1157 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1158 verbose=yes ;; 1159 1160 -version | --version | --versio | --versi | --vers | -V) 1161 ac_init_version=: ;; 1162 1163 -with-* | --with-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: $ac_useropt" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172"with_$ac_useropt" 1173"*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=\$ac_optarg ;; 1178 1179 -without-* | --without-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: $ac_useropt" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188"with_$ac_useropt" 1189"*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=no ;; 1194 1195 --x) 1196 # Obsolete; use --with-x. 1197 with_x=yes ;; 1198 1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1200 | --x-incl | --x-inc | --x-in | --x-i) 1201 ac_prev=x_includes ;; 1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1204 x_includes=$ac_optarg ;; 1205 1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1208 ac_prev=x_libraries ;; 1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1211 x_libraries=$ac_optarg ;; 1212 1213 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1214Try \`$0 --help' for more information" 1215 ;; 1216 1217 *=*) 1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1219 # Reject names that are not valid shell variable names. 1220 case $ac_envvar in #( 1221 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1222 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1223 esac 1224 eval $ac_envvar=\$ac_optarg 1225 export $ac_envvar ;; 1226 1227 *) 1228 # FIXME: should be removed in autoconf 3.0. 1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1233 ;; 1234 1235 esac 1236done 1237 1238if test -n "$ac_prev"; then 1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1240 as_fn_error $? "missing argument to $ac_option" 1241fi 1242 1243if test -n "$ac_unrecognized_opts"; then 1244 case $enable_option_checking in 1245 no) ;; 1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1248 esac 1249fi 1250 1251# Check all directory arguments for consistency. 1252for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1253 datadir sysconfdir sharedstatedir localstatedir includedir \ 1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1255 libdir localedir mandir 1256do 1257 eval ac_val=\$$ac_var 1258 # Remove trailing slashes. 1259 case $ac_val in 1260 */ ) 1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1262 eval $ac_var=\$ac_val;; 1263 esac 1264 # Be sure to have absolute directory names. 1265 case $ac_val in 1266 [\\/$]* | ?:[\\/]* ) continue;; 1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1268 esac 1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1270done 1271 1272# There might be people who depend on the old broken behavior: `$host' 1273# used to hold the argument of --host etc. 1274# FIXME: To remove some day. 1275build=$build_alias 1276host=$host_alias 1277target=$target_alias 1278 1279# FIXME: To remove some day. 1280if test "x$host_alias" != x; then 1281 if test "x$build_alias" = x; then 1282 cross_compiling=maybe 1283 elif test "x$build_alias" != "x$host_alias"; then 1284 cross_compiling=yes 1285 fi 1286fi 1287 1288ac_tool_prefix= 1289test -n "$host_alias" && ac_tool_prefix=$host_alias- 1290 1291test "$silent" = yes && exec 6>/dev/null 1292 1293 1294ac_pwd=`pwd` && test -n "$ac_pwd" && 1295ac_ls_di=`ls -di .` && 1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1297 as_fn_error $? "working directory cannot be determined" 1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1299 as_fn_error $? "pwd does not report name of working directory" 1300 1301 1302# Find the source files, if location was not specified. 1303if test -z "$srcdir"; then 1304 ac_srcdir_defaulted=yes 1305 # Try the directory containing this script, then the parent directory. 1306 ac_confdir=`$as_dirname -- "$as_myself" || 1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1308 X"$as_myself" : 'X\(//\)[^/]' \| \ 1309 X"$as_myself" : 'X\(//\)$' \| \ 1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1311$as_echo X"$as_myself" | 1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\/\)[^/].*/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\/\)$/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\).*/{ 1325 s//\1/ 1326 q 1327 } 1328 s/.*/./; q'` 1329 srcdir=$ac_confdir 1330 if test ! -r "$srcdir/$ac_unique_file"; then 1331 srcdir=.. 1332 fi 1333else 1334 ac_srcdir_defaulted=no 1335fi 1336if test ! -r "$srcdir/$ac_unique_file"; then 1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1339fi 1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1341ac_abs_confdir=`( 1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1343 pwd)` 1344# When building in place, set srcdir=. 1345if test "$ac_abs_confdir" = "$ac_pwd"; then 1346 srcdir=. 1347fi 1348# Remove unnecessary trailing slashes from srcdir. 1349# Double slashes in file names in object file debugging info 1350# mess up M-x gdb in Emacs. 1351case $srcdir in 1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1353esac 1354for ac_var in $ac_precious_vars; do 1355 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1356 eval ac_env_${ac_var}_value=\$${ac_var} 1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1358 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1359done 1360 1361# 1362# Report the --help message. 1363# 1364if test "$ac_init_help" = "long"; then 1365 # Omit some internal or obsolete options to make the list less imposing. 1366 # This message is too long to be a string in the A/UX 3.1 sh. 1367 cat <<_ACEOF 1368\`configure' configures xf86-video-nv 2.1.21 to adapt to many kinds of systems. 1369 1370Usage: $0 [OPTION]... [VAR=VALUE]... 1371 1372To assign environment variables (e.g., CC, CFLAGS...), specify them as 1373VAR=VALUE. See below for descriptions of some of the useful variables. 1374 1375Defaults for the options are specified in brackets. 1376 1377Configuration: 1378 -h, --help display this help and exit 1379 --help=short display options specific to this package 1380 --help=recursive display the short help of all the included packages 1381 -V, --version display version information and exit 1382 -q, --quiet, --silent do not print \`checking ...' messages 1383 --cache-file=FILE cache test results in FILE [disabled] 1384 -C, --config-cache alias for \`--cache-file=config.cache' 1385 -n, --no-create do not create output files 1386 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1387 1388Installation directories: 1389 --prefix=PREFIX install architecture-independent files in PREFIX 1390 [$ac_default_prefix] 1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1392 [PREFIX] 1393 1394By default, \`make install' will install all the files in 1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1396an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1397for instance \`--prefix=\$HOME'. 1398 1399For better control, use the options below. 1400 1401Fine tuning of the installation directories: 1402 --bindir=DIR user executables [EPREFIX/bin] 1403 --sbindir=DIR system admin executables [EPREFIX/sbin] 1404 --libexecdir=DIR program executables [EPREFIX/libexec] 1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1408 --libdir=DIR object code libraries [EPREFIX/lib] 1409 --includedir=DIR C header files [PREFIX/include] 1410 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1413 --infodir=DIR info documentation [DATAROOTDIR/info] 1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1415 --mandir=DIR man documentation [DATAROOTDIR/man] 1416 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-nv] 1417 --htmldir=DIR html documentation [DOCDIR] 1418 --dvidir=DIR dvi documentation [DOCDIR] 1419 --pdfdir=DIR pdf documentation [DOCDIR] 1420 --psdir=DIR ps documentation [DOCDIR] 1421_ACEOF 1422 1423 cat <<\_ACEOF 1424 1425Program names: 1426 --program-prefix=C prepend C to installed program names 1427 --program-suffix=SUFFIX append SUFFIX to installed program names 1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1429 1430System types: 1431 --build=BUILD configure for building on BUILD [guessed] 1432 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1433_ACEOF 1434fi 1435 1436if test -n "$ac_init_help"; then 1437 case $ac_init_help in 1438 short | recursive ) echo "Configuration of xf86-video-nv 2.1.21:";; 1439 esac 1440 cat <<\_ACEOF 1441 1442Optional Features: 1443 --disable-option-checking ignore unrecognized --enable/--with options 1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1446 --disable-selective-werror 1447 Turn off selective compiler errors. (default: 1448 enabled) 1449 --enable-strict-compilation 1450 Enable all warnings from compiler and make them 1451 errors (default: disabled) 1452 --enable-silent-rules less verbose build output (undo: "make V=1") 1453 --disable-silent-rules verbose build output (undo: "make V=0") 1454 --enable-dependency-tracking 1455 do not reject slow dependency extractors 1456 --disable-dependency-tracking 1457 speeds up one-time build 1458 --enable-maintainer-mode 1459 enable make rules and dependencies not useful (and 1460 sometimes confusing) to the casual installer 1461 --enable-static[=PKGS] build static libraries [default=no] 1462 --enable-shared[=PKGS] build shared libraries [default=yes] 1463 --enable-fast-install[=PKGS] 1464 optimize for fast installation [default=yes] 1465 --disable-libtool-lock avoid locking (might break parallel builds) 1466 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1467 [default=auto] 1468 1469Optional Packages: 1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1472 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1473 both] 1474 --with-aix-soname=aix|svr4|both 1475 shared library versioning (aka "SONAME") variant to 1476 provide on AIX, [default=aix]. 1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1478 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1479 compiler's sysroot if not specified). 1480 --with-xorg-module-dir=DIR 1481 Default xorg module directory 1482 [[default=$libdir/xorg/modules]] 1483 1484Some influential environment variables: 1485 CC C compiler command 1486 CFLAGS C compiler flags 1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1488 nonstandard directory <lib dir> 1489 LIBS libraries to pass to the linker, e.g. -l<library> 1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1491 you have headers in a nonstandard directory <include dir> 1492 CPP C preprocessor 1493 PKG_CONFIG path to pkg-config utility 1494 PKG_CONFIG_PATH 1495 directories to add to pkg-config's search path 1496 PKG_CONFIG_LIBDIR 1497 path overriding pkg-config's built-in search path 1498 LT_SYS_LIBRARY_PATH 1499 User-defined run-time library search path. 1500 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1501 XORG_LIBS linker flags for XORG, overriding pkg-config 1502 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1503 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1504 PCIACCESS_CFLAGS 1505 C compiler flags for PCIACCESS, overriding pkg-config 1506 PCIACCESS_LIBS 1507 linker flags for PCIACCESS, overriding pkg-config 1508 1509Use these variables to override the choices made by `configure' or to help 1510it to find libraries and programs with nonstandard names/locations. 1511 1512Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1513_ACEOF 1514ac_status=$? 1515fi 1516 1517if test "$ac_init_help" = "recursive"; then 1518 # If there are subdirs, report their specific --help. 1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1520 test -d "$ac_dir" || 1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1522 continue 1523 ac_builddir=. 1524 1525case "$ac_dir" in 1526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1527*) 1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1529 # A ".." for each directory in $ac_dir_suffix. 1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1531 case $ac_top_builddir_sub in 1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1534 esac ;; 1535esac 1536ac_abs_top_builddir=$ac_pwd 1537ac_abs_builddir=$ac_pwd$ac_dir_suffix 1538# for backward compatibility: 1539ac_top_builddir=$ac_top_build_prefix 1540 1541case $srcdir in 1542 .) # We are building in place. 1543 ac_srcdir=. 1544 ac_top_srcdir=$ac_top_builddir_sub 1545 ac_abs_top_srcdir=$ac_pwd ;; 1546 [\\/]* | ?:[\\/]* ) # Absolute name. 1547 ac_srcdir=$srcdir$ac_dir_suffix; 1548 ac_top_srcdir=$srcdir 1549 ac_abs_top_srcdir=$srcdir ;; 1550 *) # Relative name. 1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1552 ac_top_srcdir=$ac_top_build_prefix$srcdir 1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1554esac 1555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1556 1557 cd "$ac_dir" || { ac_status=$?; continue; } 1558 # Check for guested configure. 1559 if test -f "$ac_srcdir/configure.gnu"; then 1560 echo && 1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1562 elif test -f "$ac_srcdir/configure"; then 1563 echo && 1564 $SHELL "$ac_srcdir/configure" --help=recursive 1565 else 1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1567 fi || ac_status=$? 1568 cd "$ac_pwd" || { ac_status=$?; break; } 1569 done 1570fi 1571 1572test -n "$ac_init_help" && exit $ac_status 1573if $ac_init_version; then 1574 cat <<\_ACEOF 1575xf86-video-nv configure 2.1.21 1576generated by GNU Autoconf 2.69 1577 1578Copyright (C) 2012 Free Software Foundation, Inc. 1579This configure script is free software; the Free Software Foundation 1580gives unlimited permission to copy, distribute and modify it. 1581_ACEOF 1582 exit 1583fi 1584 1585## ------------------------ ## 1586## Autoconf initialization. ## 1587## ------------------------ ## 1588 1589# ac_fn_c_try_compile LINENO 1590# -------------------------- 1591# Try to compile conftest.$ac_ext, and return whether this succeeded. 1592ac_fn_c_try_compile () 1593{ 1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1595 rm -f conftest.$ac_objext 1596 if { { ac_try="$ac_compile" 1597case "(($ac_try" in 1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1599 *) ac_try_echo=$ac_try;; 1600esac 1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1602$as_echo "$ac_try_echo"; } >&5 1603 (eval "$ac_compile") 2>conftest.err 1604 ac_status=$? 1605 if test -s conftest.err; then 1606 grep -v '^ *+' conftest.err >conftest.er1 1607 cat conftest.er1 >&5 1608 mv -f conftest.er1 conftest.err 1609 fi 1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1611 test $ac_status = 0; } && { 1612 test -z "$ac_c_werror_flag" || 1613 test ! -s conftest.err 1614 } && test -s conftest.$ac_objext; then : 1615 ac_retval=0 1616else 1617 $as_echo "$as_me: failed program was:" >&5 1618sed 's/^/| /' conftest.$ac_ext >&5 1619 1620 ac_retval=1 1621fi 1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1623 as_fn_set_status $ac_retval 1624 1625} # ac_fn_c_try_compile 1626 1627# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1628# --------------------------------------------- 1629# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1630# accordingly. 1631ac_fn_c_check_decl () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 as_decl_name=`echo $2|sed 's/ *(.*//'` 1635 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1637$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1638if eval \${$3+:} false; then : 1639 $as_echo_n "(cached) " >&6 1640else 1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1642/* end confdefs.h. */ 1643$4 1644int 1645main () 1646{ 1647#ifndef $as_decl_name 1648#ifdef __cplusplus 1649 (void) $as_decl_use; 1650#else 1651 (void) $as_decl_name; 1652#endif 1653#endif 1654 1655 ; 1656 return 0; 1657} 1658_ACEOF 1659if ac_fn_c_try_compile "$LINENO"; then : 1660 eval "$3=yes" 1661else 1662 eval "$3=no" 1663fi 1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1665fi 1666eval ac_res=\$$3 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1668$as_echo "$ac_res" >&6; } 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 1671} # ac_fn_c_check_decl 1672 1673# ac_fn_c_try_cpp LINENO 1674# ---------------------- 1675# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_try_cpp () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 if { { ac_try="$ac_cpp conftest.$ac_ext" 1680case "(($ac_try" in 1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1682 *) ac_try_echo=$ac_try;; 1683esac 1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1685$as_echo "$ac_try_echo"; } >&5 1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1687 ac_status=$? 1688 if test -s conftest.err; then 1689 grep -v '^ *+' conftest.err >conftest.er1 1690 cat conftest.er1 >&5 1691 mv -f conftest.er1 conftest.err 1692 fi 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; } > conftest.i && { 1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1696 test ! -s conftest.err 1697 }; then : 1698 ac_retval=0 1699else 1700 $as_echo "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704fi 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_cpp 1709 1710# ac_fn_c_try_run LINENO 1711# ---------------------- 1712# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1713# that executables *can* be run. 1714ac_fn_c_try_run () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 if { { ac_try="$ac_link" 1718case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723$as_echo "$ac_try_echo"; } >&5 1724 (eval "$ac_link") 2>&5 1725 ac_status=$? 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1728 { { case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_try") 2>&5 1735 ac_status=$? 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; }; }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: program exited with status $ac_status" >&5 1741 $as_echo "$as_me: failed program was:" >&5 1742sed 's/^/| /' conftest.$ac_ext >&5 1743 1744 ac_retval=$ac_status 1745fi 1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 as_fn_set_status $ac_retval 1749 1750} # ac_fn_c_try_run 1751 1752# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1753# ------------------------------------------------------- 1754# Tests whether HEADER exists and can be compiled using the include files in 1755# INCLUDES, setting the cache variable VAR accordingly. 1756ac_fn_c_check_header_compile () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1760$as_echo_n "checking for $2... " >&6; } 1761if eval \${$3+:} false; then : 1762 $as_echo_n "(cached) " >&6 1763else 1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765/* end confdefs.h. */ 1766$4 1767#include <$2> 1768_ACEOF 1769if ac_fn_c_try_compile "$LINENO"; then : 1770 eval "$3=yes" 1771else 1772 eval "$3=no" 1773fi 1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1775fi 1776eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778$as_echo "$ac_res" >&6; } 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 1781} # ac_fn_c_check_header_compile 1782 1783# ac_fn_c_try_link LINENO 1784# ----------------------- 1785# Try to link conftest.$ac_ext, and return whether this succeeded. 1786ac_fn_c_try_link () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 rm -f conftest.$ac_objext conftest$ac_exeext 1790 if { { ac_try="$ac_link" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_link") 2>conftest.err 1798 ac_status=$? 1799 if test -s conftest.err; then 1800 grep -v '^ *+' conftest.err >conftest.er1 1801 cat conftest.er1 >&5 1802 mv -f conftest.er1 conftest.err 1803 fi 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { 1806 test -z "$ac_c_werror_flag" || 1807 test ! -s conftest.err 1808 } && test -s conftest$ac_exeext && { 1809 test "$cross_compiling" = yes || 1810 test -x conftest$ac_exeext 1811 }; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=1 1818fi 1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1821 # interfere with the next link command; also delete a directory that is 1822 # left behind by Apple's compiler. We do this before executing the actions. 1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 as_fn_set_status $ac_retval 1826 1827} # ac_fn_c_try_link 1828 1829# ac_fn_c_check_func LINENO FUNC VAR 1830# ---------------------------------- 1831# Tests whether FUNC exists, setting the cache variable VAR accordingly 1832ac_fn_c_check_func () 1833{ 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1836$as_echo_n "checking for $2... " >&6; } 1837if eval \${$3+:} false; then : 1838 $as_echo_n "(cached) " >&6 1839else 1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1841/* end confdefs.h. */ 1842/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1844#define $2 innocuous_$2 1845 1846/* System header to define __stub macros and hopefully few prototypes, 1847 which can conflict with char $2 (); below. 1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1849 <limits.h> exists even on freestanding compilers. */ 1850 1851#ifdef __STDC__ 1852# include <limits.h> 1853#else 1854# include <assert.h> 1855#endif 1856 1857#undef $2 1858 1859/* Override any GCC internal prototype to avoid an error. 1860 Use char because int might match the return type of a GCC 1861 builtin and then its argument prototype would still apply. */ 1862#ifdef __cplusplus 1863extern "C" 1864#endif 1865char $2 (); 1866/* The GNU C library defines this for functions which it implements 1867 to always fail with ENOSYS. Some functions are actually named 1868 something starting with __ and the normal name is an alias. */ 1869#if defined __stub_$2 || defined __stub___$2 1870choke me 1871#endif 1872 1873int 1874main () 1875{ 1876return $2 (); 1877 ; 1878 return 0; 1879} 1880_ACEOF 1881if ac_fn_c_try_link "$LINENO"; then : 1882 eval "$3=yes" 1883else 1884 eval "$3=no" 1885fi 1886rm -f core conftest.err conftest.$ac_objext \ 1887 conftest$ac_exeext conftest.$ac_ext 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1893 1894} # ac_fn_c_check_func 1895 1896# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1897# ------------------------------------------------------- 1898# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1899# the include files in INCLUDES and setting the cache variable VAR 1900# accordingly. 1901ac_fn_c_check_header_mongrel () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 if eval \${$3+:} false; then : 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906$as_echo_n "checking for $2... " >&6; } 1907if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909fi 1910eval ac_res=\$$3 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1912$as_echo "$ac_res" >&6; } 1913else 1914 # Is the header compilable? 1915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1916$as_echo_n "checking $2 usability... " >&6; } 1917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1918/* end confdefs.h. */ 1919$4 1920#include <$2> 1921_ACEOF 1922if ac_fn_c_try_compile "$LINENO"; then : 1923 ac_header_compiler=yes 1924else 1925 ac_header_compiler=no 1926fi 1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1929$as_echo "$ac_header_compiler" >&6; } 1930 1931# Is the header present? 1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1933$as_echo_n "checking $2 presence... " >&6; } 1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935/* end confdefs.h. */ 1936#include <$2> 1937_ACEOF 1938if ac_fn_c_try_cpp "$LINENO"; then : 1939 ac_header_preproc=yes 1940else 1941 ac_header_preproc=no 1942fi 1943rm -f conftest.err conftest.i conftest.$ac_ext 1944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1945$as_echo "$ac_header_preproc" >&6; } 1946 1947# So? What about this header? 1948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1949 yes:no: ) 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1951$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1953$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1954 ;; 1955 no:yes:* ) 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1957$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1959$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1961$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1963$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1965$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1966( $as_echo "## ---------------------------------------------------------------------- ## 1967## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1968## ---------------------------------------------------------------------- ##" 1969 ) | sed "s/^/$as_me: WARNING: /" >&2 1970 ;; 1971esac 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1973$as_echo_n "checking for $2... " >&6; } 1974if eval \${$3+:} false; then : 1975 $as_echo_n "(cached) " >&6 1976else 1977 eval "$3=\$ac_header_compiler" 1978fi 1979eval ac_res=\$$3 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1981$as_echo "$ac_res" >&6; } 1982fi 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 1985} # ac_fn_c_check_header_mongrel 1986cat >config.log <<_ACEOF 1987This file contains any messages produced by compilers while 1988running configure, to aid debugging if configure makes a mistake. 1989 1990It was created by xf86-video-nv $as_me 2.1.21, which was 1991generated by GNU Autoconf 2.69. Invocation command line was 1992 1993 $ $0 $@ 1994 1995_ACEOF 1996exec 5>>config.log 1997{ 1998cat <<_ASUNAME 1999## --------- ## 2000## Platform. ## 2001## --------- ## 2002 2003hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2004uname -m = `(uname -m) 2>/dev/null || echo unknown` 2005uname -r = `(uname -r) 2>/dev/null || echo unknown` 2006uname -s = `(uname -s) 2>/dev/null || echo unknown` 2007uname -v = `(uname -v) 2>/dev/null || echo unknown` 2008 2009/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2010/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2011 2012/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2013/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2014/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2015/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2016/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2017/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2018/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2019 2020_ASUNAME 2021 2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2023for as_dir in $PATH 2024do 2025 IFS=$as_save_IFS 2026 test -z "$as_dir" && as_dir=. 2027 $as_echo "PATH: $as_dir" 2028 done 2029IFS=$as_save_IFS 2030 2031} >&5 2032 2033cat >&5 <<_ACEOF 2034 2035 2036## ----------- ## 2037## Core tests. ## 2038## ----------- ## 2039 2040_ACEOF 2041 2042 2043# Keep a trace of the command line. 2044# Strip out --no-create and --no-recursion so they do not pile up. 2045# Strip out --silent because we don't want to record it for future runs. 2046# Also quote any args containing shell meta-characters. 2047# Make two passes to allow for proper duplicate-argument suppression. 2048ac_configure_args= 2049ac_configure_args0= 2050ac_configure_args1= 2051ac_must_keep_next=false 2052for ac_pass in 1 2 2053do 2054 for ac_arg 2055 do 2056 case $ac_arg in 2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2059 | -silent | --silent | --silen | --sile | --sil) 2060 continue ;; 2061 *\'*) 2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2063 esac 2064 case $ac_pass in 2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2066 2) 2067 as_fn_append ac_configure_args1 " '$ac_arg'" 2068 if test $ac_must_keep_next = true; then 2069 ac_must_keep_next=false # Got value, back to normal. 2070 else 2071 case $ac_arg in 2072 *=* | --config-cache | -C | -disable-* | --disable-* \ 2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2075 | -with-* | --with-* | -without-* | --without-* | --x) 2076 case "$ac_configure_args0 " in 2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2078 esac 2079 ;; 2080 -* ) ac_must_keep_next=true ;; 2081 esac 2082 fi 2083 as_fn_append ac_configure_args " '$ac_arg'" 2084 ;; 2085 esac 2086 done 2087done 2088{ ac_configure_args0=; unset ac_configure_args0;} 2089{ ac_configure_args1=; unset ac_configure_args1;} 2090 2091# When interrupted or exit'd, cleanup temporary files, and complete 2092# config.log. We remove comments because anyway the quotes in there 2093# would cause problems or look ugly. 2094# WARNING: Use '\'' to represent an apostrophe within the trap. 2095# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2096trap 'exit_status=$? 2097 # Save into config.log some information that might help in debugging. 2098 { 2099 echo 2100 2101 $as_echo "## ---------------- ## 2102## Cache variables. ## 2103## ---------------- ##" 2104 echo 2105 # The following way of writing the cache mishandles newlines in values, 2106( 2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2108 eval ac_val=\$$ac_var 2109 case $ac_val in #( 2110 *${as_nl}*) 2111 case $ac_var in #( 2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2114 esac 2115 case $ac_var in #( 2116 _ | IFS | as_nl) ;; #( 2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2118 *) { eval $ac_var=; unset $ac_var;} ;; 2119 esac ;; 2120 esac 2121 done 2122 (set) 2>&1 | 2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2124 *${as_nl}ac_space=\ *) 2125 sed -n \ 2126 "s/'\''/'\''\\\\'\'''\''/g; 2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2128 ;; #( 2129 *) 2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2131 ;; 2132 esac | 2133 sort 2134) 2135 echo 2136 2137 $as_echo "## ----------------- ## 2138## Output variables. ## 2139## ----------------- ##" 2140 echo 2141 for ac_var in $ac_subst_vars 2142 do 2143 eval ac_val=\$$ac_var 2144 case $ac_val in 2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2146 esac 2147 $as_echo "$ac_var='\''$ac_val'\''" 2148 done | sort 2149 echo 2150 2151 if test -n "$ac_subst_files"; then 2152 $as_echo "## ------------------- ## 2153## File substitutions. ## 2154## ------------------- ##" 2155 echo 2156 for ac_var in $ac_subst_files 2157 do 2158 eval ac_val=\$$ac_var 2159 case $ac_val in 2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2161 esac 2162 $as_echo "$ac_var='\''$ac_val'\''" 2163 done | sort 2164 echo 2165 fi 2166 2167 if test -s confdefs.h; then 2168 $as_echo "## ----------- ## 2169## confdefs.h. ## 2170## ----------- ##" 2171 echo 2172 cat confdefs.h 2173 echo 2174 fi 2175 test "$ac_signal" != 0 && 2176 $as_echo "$as_me: caught signal $ac_signal" 2177 $as_echo "$as_me: exit $exit_status" 2178 } >&5 2179 rm -f core *.core core.conftest.* && 2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2181 exit $exit_status 2182' 0 2183for ac_signal in 1 2 13 15; do 2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2185done 2186ac_signal=0 2187 2188# confdefs.h avoids OS command line length limits that DEFS can exceed. 2189rm -f -r conftest* confdefs.h 2190 2191$as_echo "/* confdefs.h */" > confdefs.h 2192 2193# Predefined preprocessor variables. 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_NAME "$PACKAGE_NAME" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_VERSION "$PACKAGE_VERSION" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_STRING "$PACKAGE_STRING" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_URL "$PACKAGE_URL" 2217_ACEOF 2218 2219 2220# Let the site file select an alternate cache file if it wants to. 2221# Prefer an explicitly selected file to automatically selected ones. 2222ac_site_file1=NONE 2223ac_site_file2=NONE 2224if test -n "$CONFIG_SITE"; then 2225 # We do not want a PATH search for config.site. 2226 case $CONFIG_SITE in #(( 2227 -*) ac_site_file1=./$CONFIG_SITE;; 2228 */*) ac_site_file1=$CONFIG_SITE;; 2229 *) ac_site_file1=./$CONFIG_SITE;; 2230 esac 2231elif test "x$prefix" != xNONE; then 2232 ac_site_file1=$prefix/share/config.site 2233 ac_site_file2=$prefix/etc/config.site 2234else 2235 ac_site_file1=$ac_default_prefix/share/config.site 2236 ac_site_file2=$ac_default_prefix/etc/config.site 2237fi 2238for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2239do 2240 test "x$ac_site_file" = xNONE && continue 2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2243$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2244 sed 's/^/| /' "$ac_site_file" >&5 2245 . "$ac_site_file" \ 2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2248as_fn_error $? "failed to load site script $ac_site_file 2249See \`config.log' for more details" "$LINENO" 5; } 2250 fi 2251done 2252 2253if test -r "$cache_file"; then 2254 # Some versions of bash will fail to source /dev/null (special files 2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2258$as_echo "$as_me: loading cache $cache_file" >&6;} 2259 case $cache_file in 2260 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2261 *) . "./$cache_file";; 2262 esac 2263 fi 2264else 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2266$as_echo "$as_me: creating cache $cache_file" >&6;} 2267 >$cache_file 2268fi 2269 2270# Check that the precious variables saved in the cache have kept the same 2271# value. 2272ac_cache_corrupted=false 2273for ac_var in $ac_precious_vars; do 2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2275 eval ac_new_set=\$ac_env_${ac_var}_set 2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2277 eval ac_new_val=\$ac_env_${ac_var}_value 2278 case $ac_old_set,$ac_new_set in 2279 set,) 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2281$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2282 ac_cache_corrupted=: ;; 2283 ,set) 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2285$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2286 ac_cache_corrupted=: ;; 2287 ,);; 2288 *) 2289 if test "x$ac_old_val" != "x$ac_new_val"; then 2290 # differences in whitespace do not lead to failure. 2291 ac_old_val_w=`echo x $ac_old_val` 2292 ac_new_val_w=`echo x $ac_new_val` 2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2295$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2296 ac_cache_corrupted=: 2297 else 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2299$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2300 eval $ac_var=\$ac_old_val 2301 fi 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2303$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2305$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2306 fi;; 2307 esac 2308 # Pass precious variables to config.status. 2309 if test "$ac_new_set" = set; then 2310 case $ac_new_val in 2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2312 *) ac_arg=$ac_var=$ac_new_val ;; 2313 esac 2314 case " $ac_configure_args " in 2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2317 esac 2318 fi 2319done 2320if $ac_cache_corrupted; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2324$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2326fi 2327## -------------------- ## 2328## Main body of script. ## 2329## -------------------- ## 2330 2331ac_ext=c 2332ac_cpp='$CPP $CPPFLAGS' 2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2335ac_compiler_gnu=$ac_cv_c_compiler_gnu 2336 2337 2338 2339ac_config_headers="$ac_config_headers config.h" 2340 2341 2342# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354ac_aux_dir= 2355for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2356 if test -f "$ac_dir/install-sh"; then 2357 ac_aux_dir=$ac_dir 2358 ac_install_sh="$ac_aux_dir/install-sh -c" 2359 break 2360 elif test -f "$ac_dir/install.sh"; then 2361 ac_aux_dir=$ac_dir 2362 ac_install_sh="$ac_aux_dir/install.sh -c" 2363 break 2364 elif test -f "$ac_dir/shtool"; then 2365 ac_aux_dir=$ac_dir 2366 ac_install_sh="$ac_aux_dir/shtool install -c" 2367 break 2368 fi 2369done 2370if test -z "$ac_aux_dir"; then 2371 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2372fi 2373 2374# These three variables are undocumented and unsupported, 2375# and are intended to be withdrawn in a future Autoconf release. 2376# They can cause serious problems if a builder's source tree is in a directory 2377# whose full name contains unusual characters. 2378ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2379ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2380ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2381 2382 2383# Find a good install program. We prefer a C program (faster), 2384# so one script is as good as another. But avoid the broken or 2385# incompatible versions: 2386# SysV /etc/install, /usr/sbin/install 2387# SunOS /usr/etc/install 2388# IRIX /sbin/install 2389# AIX /bin/install 2390# AmigaOS /C/install, which installs bootblocks on floppy discs 2391# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2392# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2393# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2394# OS/2's system install, which has a completely different semantic 2395# ./install, which can be erroneously created by make from ./install.sh. 2396# Reject install programs that cannot install multiple files. 2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2398$as_echo_n "checking for a BSD-compatible install... " >&6; } 2399if test -z "$INSTALL"; then 2400if ${ac_cv_path_install+:} false; then : 2401 $as_echo_n "(cached) " >&6 2402else 2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2404for as_dir in $PATH 2405do 2406 IFS=$as_save_IFS 2407 test -z "$as_dir" && as_dir=. 2408 # Account for people who put trailing slashes in PATH elements. 2409case $as_dir/ in #(( 2410 ./ | .// | /[cC]/* | \ 2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2413 /usr/ucb/* ) ;; 2414 *) 2415 # OSF1 and SCO ODT 3.0 have their own names for install. 2416 # Don't use installbsd from OSF since it installs stuff as root 2417 # by default. 2418 for ac_prog in ginstall scoinst install; do 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2421 if test $ac_prog = install && 2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2423 # AIX install. It has an incompatible calling convention. 2424 : 2425 elif test $ac_prog = install && 2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2427 # program-specific install script used by HP pwplus--don't use. 2428 : 2429 else 2430 rm -rf conftest.one conftest.two conftest.dir 2431 echo one > conftest.one 2432 echo two > conftest.two 2433 mkdir conftest.dir 2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2435 test -s conftest.one && test -s conftest.two && 2436 test -s conftest.dir/conftest.one && 2437 test -s conftest.dir/conftest.two 2438 then 2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2440 break 3 2441 fi 2442 fi 2443 fi 2444 done 2445 done 2446 ;; 2447esac 2448 2449 done 2450IFS=$as_save_IFS 2451 2452rm -rf conftest.one conftest.two conftest.dir 2453 2454fi 2455 if test "${ac_cv_path_install+set}" = set; then 2456 INSTALL=$ac_cv_path_install 2457 else 2458 # As a last resort, use the slow shell script. Don't cache a 2459 # value for INSTALL within a source directory, because that will 2460 # break other packages using the cache if that directory is 2461 # removed, or if the value is a relative name. 2462 INSTALL=$ac_install_sh 2463 fi 2464fi 2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2466$as_echo "$INSTALL" >&6; } 2467 2468# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2469# It thinks the first close brace ends the variable substitution. 2470test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2471 2472test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2473 2474test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2475 2476# Expand $ac_aux_dir to an absolute path. 2477am_aux_dir=`cd "$ac_aux_dir" && pwd` 2478 2479ac_ext=c 2480ac_cpp='$CPP $CPPFLAGS' 2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2483ac_compiler_gnu=$ac_cv_c_compiler_gnu 2484if test -n "$ac_tool_prefix"; then 2485 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2486set dummy ${ac_tool_prefix}gcc; ac_word=$2 2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2488$as_echo_n "checking for $ac_word... " >&6; } 2489if ${ac_cv_prog_CC+:} false; then : 2490 $as_echo_n "(cached) " >&6 2491else 2492 if test -n "$CC"; then 2493 ac_cv_prog_CC="$CC" # Let the user override the test. 2494else 2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2496for as_dir in $PATH 2497do 2498 IFS=$as_save_IFS 2499 test -z "$as_dir" && as_dir=. 2500 for ac_exec_ext in '' $ac_executable_extensions; do 2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2502 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2504 break 2 2505 fi 2506done 2507 done 2508IFS=$as_save_IFS 2509 2510fi 2511fi 2512CC=$ac_cv_prog_CC 2513if test -n "$CC"; then 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2515$as_echo "$CC" >&6; } 2516else 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2518$as_echo "no" >&6; } 2519fi 2520 2521 2522fi 2523if test -z "$ac_cv_prog_CC"; then 2524 ac_ct_CC=$CC 2525 # Extract the first word of "gcc", so it can be a program name with args. 2526set dummy gcc; ac_word=$2 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2528$as_echo_n "checking for $ac_word... " >&6; } 2529if ${ac_cv_prog_ac_ct_CC+:} false; then : 2530 $as_echo_n "(cached) " >&6 2531else 2532 if test -n "$ac_ct_CC"; then 2533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2534else 2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2536for as_dir in $PATH 2537do 2538 IFS=$as_save_IFS 2539 test -z "$as_dir" && as_dir=. 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2542 ac_cv_prog_ac_ct_CC="gcc" 2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2544 break 2 2545 fi 2546done 2547 done 2548IFS=$as_save_IFS 2549 2550fi 2551fi 2552ac_ct_CC=$ac_cv_prog_ac_ct_CC 2553if test -n "$ac_ct_CC"; then 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2555$as_echo "$ac_ct_CC" >&6; } 2556else 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2558$as_echo "no" >&6; } 2559fi 2560 2561 if test "x$ac_ct_CC" = x; then 2562 CC="" 2563 else 2564 case $cross_compiling:$ac_tool_warned in 2565yes:) 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2568ac_tool_warned=yes ;; 2569esac 2570 CC=$ac_ct_CC 2571 fi 2572else 2573 CC="$ac_cv_prog_CC" 2574fi 2575 2576if test -z "$CC"; then 2577 if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2579set dummy ${ac_tool_prefix}cc; ac_word=$2 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if ${ac_cv_prog_CC+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$CC"; then 2586 ac_cv_prog_CC="$CC" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2595 ac_cv_prog_CC="${ac_tool_prefix}cc" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605CC=$ac_cv_prog_CC 2606if test -n "$CC"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2608$as_echo "$CC" >&6; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615 fi 2616fi 2617if test -z "$CC"; then 2618 # Extract the first word of "cc", so it can be a program name with args. 2619set dummy cc; ac_word=$2 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if ${ac_cv_prog_CC+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$CC"; then 2626 ac_cv_prog_CC="$CC" # Let the user override the test. 2627else 2628 ac_prog_rejected=no 2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630for as_dir in $PATH 2631do 2632 IFS=$as_save_IFS 2633 test -z "$as_dir" && as_dir=. 2634 for ac_exec_ext in '' $ac_executable_extensions; do 2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2636 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2637 ac_prog_rejected=yes 2638 continue 2639 fi 2640 ac_cv_prog_CC="cc" 2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2642 break 2 2643 fi 2644done 2645 done 2646IFS=$as_save_IFS 2647 2648if test $ac_prog_rejected = yes; then 2649 # We found a bogon in the path, so make sure we never use it. 2650 set dummy $ac_cv_prog_CC 2651 shift 2652 if test $# != 0; then 2653 # We chose a different compiler from the bogus one. 2654 # However, it has the same basename, so the bogon will be chosen 2655 # first if we set CC to just the basename; use the full file name. 2656 shift 2657 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2658 fi 2659fi 2660fi 2661fi 2662CC=$ac_cv_prog_CC 2663if test -n "$CC"; then 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2665$as_echo "$CC" >&6; } 2666else 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2668$as_echo "no" >&6; } 2669fi 2670 2671 2672fi 2673if test -z "$CC"; then 2674 if test -n "$ac_tool_prefix"; then 2675 for ac_prog in cl.exe 2676 do 2677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2678set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2680$as_echo_n "checking for $ac_word... " >&6; } 2681if ${ac_cv_prog_CC+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 if test -n "$CC"; then 2685 ac_cv_prog_CC="$CC" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2694 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698done 2699 done 2700IFS=$as_save_IFS 2701 2702fi 2703fi 2704CC=$ac_cv_prog_CC 2705if test -n "$CC"; then 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2707$as_echo "$CC" >&6; } 2708else 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2710$as_echo "no" >&6; } 2711fi 2712 2713 2714 test -n "$CC" && break 2715 done 2716fi 2717if test -z "$CC"; then 2718 ac_ct_CC=$CC 2719 for ac_prog in cl.exe 2720do 2721 # Extract the first word of "$ac_prog", so it can be a program name with args. 2722set dummy $ac_prog; ac_word=$2 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724$as_echo_n "checking for $ac_word... " >&6; } 2725if ${ac_cv_prog_ac_ct_CC+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 if test -n "$ac_ct_CC"; then 2729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2730else 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_ac_ct_CC="$ac_prog" 2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743 done 2744IFS=$as_save_IFS 2745 2746fi 2747fi 2748ac_ct_CC=$ac_cv_prog_ac_ct_CC 2749if test -n "$ac_ct_CC"; then 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2751$as_echo "$ac_ct_CC" >&6; } 2752else 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754$as_echo "no" >&6; } 2755fi 2756 2757 2758 test -n "$ac_ct_CC" && break 2759done 2760 2761 if test "x$ac_ct_CC" = x; then 2762 CC="" 2763 else 2764 case $cross_compiling:$ac_tool_warned in 2765yes:) 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2768ac_tool_warned=yes ;; 2769esac 2770 CC=$ac_ct_CC 2771 fi 2772fi 2773 2774fi 2775 2776 2777test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2779as_fn_error $? "no acceptable C compiler found in \$PATH 2780See \`config.log' for more details" "$LINENO" 5; } 2781 2782# Provide some information about the compiler. 2783$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2784set X $ac_compile 2785ac_compiler=$2 2786for ac_option in --version -v -V -qversion; do 2787 { { ac_try="$ac_compiler $ac_option >&5" 2788case "(($ac_try" in 2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2790 *) ac_try_echo=$ac_try;; 2791esac 2792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2793$as_echo "$ac_try_echo"; } >&5 2794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2795 ac_status=$? 2796 if test -s conftest.err; then 2797 sed '10a\ 2798... rest of stderr output deleted ... 2799 10q' conftest.err >conftest.er1 2800 cat conftest.er1 >&5 2801 fi 2802 rm -f conftest.er1 conftest.err 2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2804 test $ac_status = 0; } 2805done 2806 2807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2808/* end confdefs.h. */ 2809 2810int 2811main () 2812{ 2813 2814 ; 2815 return 0; 2816} 2817_ACEOF 2818ac_clean_files_save=$ac_clean_files 2819ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2820# Try to create an executable without -o first, disregard a.out. 2821# It will help us diagnose broken compilers, and finding out an intuition 2822# of exeext. 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2824$as_echo_n "checking whether the C compiler works... " >&6; } 2825ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2826 2827# The possible output files: 2828ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2829 2830ac_rmfiles= 2831for ac_file in $ac_files 2832do 2833 case $ac_file in 2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2836 esac 2837done 2838rm -f $ac_rmfiles 2839 2840if { { ac_try="$ac_link_default" 2841case "(($ac_try" in 2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2843 *) ac_try_echo=$ac_try;; 2844esac 2845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2846$as_echo "$ac_try_echo"; } >&5 2847 (eval "$ac_link_default") 2>&5 2848 ac_status=$? 2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2850 test $ac_status = 0; }; then : 2851 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2852# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2853# in a Makefile. We should not override ac_cv_exeext if it was cached, 2854# so that the user can short-circuit this test for compilers unknown to 2855# Autoconf. 2856for ac_file in $ac_files '' 2857do 2858 test -f "$ac_file" || continue 2859 case $ac_file in 2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2861 ;; 2862 [ab].out ) 2863 # We found the default executable, but exeext='' is most 2864 # certainly right. 2865 break;; 2866 *.* ) 2867 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2868 then :; else 2869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2870 fi 2871 # We set ac_cv_exeext here because the later test for it is not 2872 # safe: cross compilers may not add the suffix if given an `-o' 2873 # argument, so we may need to know it at that point already. 2874 # Even if this section looks crufty: it has the advantage of 2875 # actually working. 2876 break;; 2877 * ) 2878 break;; 2879 esac 2880done 2881test "$ac_cv_exeext" = no && ac_cv_exeext= 2882 2883else 2884 ac_file='' 2885fi 2886if test -z "$ac_file"; then : 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888$as_echo "no" >&6; } 2889$as_echo "$as_me: failed program was:" >&5 2890sed 's/^/| /' conftest.$ac_ext >&5 2891 2892{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2894as_fn_error 77 "C compiler cannot create executables 2895See \`config.log' for more details" "$LINENO" 5; } 2896else 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2898$as_echo "yes" >&6; } 2899fi 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2901$as_echo_n "checking for C compiler default output file name... " >&6; } 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2903$as_echo "$ac_file" >&6; } 2904ac_exeext=$ac_cv_exeext 2905 2906rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2907ac_clean_files=$ac_clean_files_save 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2909$as_echo_n "checking for suffix of executables... " >&6; } 2910if { { ac_try="$ac_link" 2911case "(($ac_try" in 2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2913 *) ac_try_echo=$ac_try;; 2914esac 2915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2916$as_echo "$ac_try_echo"; } >&5 2917 (eval "$ac_link") 2>&5 2918 ac_status=$? 2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2920 test $ac_status = 0; }; then : 2921 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2922# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2923# work properly (i.e., refer to `conftest.exe'), while it won't with 2924# `rm'. 2925for ac_file in conftest.exe conftest conftest.*; do 2926 test -f "$ac_file" || continue 2927 case $ac_file in 2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2930 break;; 2931 * ) break;; 2932 esac 2933done 2934else 2935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2937as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2938See \`config.log' for more details" "$LINENO" 5; } 2939fi 2940rm -f conftest conftest$ac_cv_exeext 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2942$as_echo "$ac_cv_exeext" >&6; } 2943 2944rm -f conftest.$ac_ext 2945EXEEXT=$ac_cv_exeext 2946ac_exeext=$EXEEXT 2947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2948/* end confdefs.h. */ 2949#include <stdio.h> 2950int 2951main () 2952{ 2953FILE *f = fopen ("conftest.out", "w"); 2954 return ferror (f) || fclose (f) != 0; 2955 2956 ; 2957 return 0; 2958} 2959_ACEOF 2960ac_clean_files="$ac_clean_files conftest.out" 2961# Check that the compiler produces executables we can run. If not, either 2962# the compiler is broken, or we cross compile. 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2964$as_echo_n "checking whether we are cross compiling... " >&6; } 2965if test "$cross_compiling" != yes; then 2966 { { ac_try="$ac_link" 2967case "(($ac_try" in 2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2969 *) ac_try_echo=$ac_try;; 2970esac 2971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2972$as_echo "$ac_try_echo"; } >&5 2973 (eval "$ac_link") 2>&5 2974 ac_status=$? 2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2976 test $ac_status = 0; } 2977 if { ac_try='./conftest$ac_cv_exeext' 2978 { { case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2983$as_echo "$ac_try_echo"; } >&5 2984 (eval "$ac_try") 2>&5 2985 ac_status=$? 2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2987 test $ac_status = 0; }; }; then 2988 cross_compiling=no 2989 else 2990 if test "$cross_compiling" = maybe; then 2991 cross_compiling=yes 2992 else 2993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2995as_fn_error $? "cannot run C compiled programs. 2996If you meant to cross compile, use \`--host'. 2997See \`config.log' for more details" "$LINENO" 5; } 2998 fi 2999 fi 3000fi 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3002$as_echo "$cross_compiling" >&6; } 3003 3004rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3005ac_clean_files=$ac_clean_files_save 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3007$as_echo_n "checking for suffix of object files... " >&6; } 3008if ${ac_cv_objext+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3012/* end confdefs.h. */ 3013 3014int 3015main () 3016{ 3017 3018 ; 3019 return 0; 3020} 3021_ACEOF 3022rm -f conftest.o conftest.obj 3023if { { ac_try="$ac_compile" 3024case "(($ac_try" in 3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3026 *) ac_try_echo=$ac_try;; 3027esac 3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3029$as_echo "$ac_try_echo"; } >&5 3030 (eval "$ac_compile") 2>&5 3031 ac_status=$? 3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3033 test $ac_status = 0; }; then : 3034 for ac_file in conftest.o conftest.obj conftest.*; do 3035 test -f "$ac_file" || continue; 3036 case $ac_file in 3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3039 break;; 3040 esac 3041done 3042else 3043 $as_echo "$as_me: failed program was:" >&5 3044sed 's/^/| /' conftest.$ac_ext >&5 3045 3046{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3048as_fn_error $? "cannot compute suffix of object files: cannot compile 3049See \`config.log' for more details" "$LINENO" 5; } 3050fi 3051rm -f conftest.$ac_cv_objext conftest.$ac_ext 3052fi 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3054$as_echo "$ac_cv_objext" >&6; } 3055OBJEXT=$ac_cv_objext 3056ac_objext=$OBJEXT 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3058$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3059if ${ac_cv_c_compiler_gnu+:} false; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3063/* end confdefs.h. */ 3064 3065int 3066main () 3067{ 3068#ifndef __GNUC__ 3069 choke me 3070#endif 3071 3072 ; 3073 return 0; 3074} 3075_ACEOF 3076if ac_fn_c_try_compile "$LINENO"; then : 3077 ac_compiler_gnu=yes 3078else 3079 ac_compiler_gnu=no 3080fi 3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3082ac_cv_c_compiler_gnu=$ac_compiler_gnu 3083 3084fi 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3086$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3087if test $ac_compiler_gnu = yes; then 3088 GCC=yes 3089else 3090 GCC= 3091fi 3092ac_test_CFLAGS=${CFLAGS+set} 3093ac_save_CFLAGS=$CFLAGS 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3095$as_echo_n "checking whether $CC accepts -g... " >&6; } 3096if ${ac_cv_prog_cc_g+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 ac_save_c_werror_flag=$ac_c_werror_flag 3100 ac_c_werror_flag=yes 3101 ac_cv_prog_cc_g=no 3102 CFLAGS="-g" 3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3104/* end confdefs.h. */ 3105 3106int 3107main () 3108{ 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114if ac_fn_c_try_compile "$LINENO"; then : 3115 ac_cv_prog_cc_g=yes 3116else 3117 CFLAGS="" 3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3119/* end confdefs.h. */ 3120 3121int 3122main () 3123{ 3124 3125 ; 3126 return 0; 3127} 3128_ACEOF 3129if ac_fn_c_try_compile "$LINENO"; then : 3130 3131else 3132 ac_c_werror_flag=$ac_save_c_werror_flag 3133 CFLAGS="-g" 3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3135/* end confdefs.h. */ 3136 3137int 3138main () 3139{ 3140 3141 ; 3142 return 0; 3143} 3144_ACEOF 3145if ac_fn_c_try_compile "$LINENO"; then : 3146 ac_cv_prog_cc_g=yes 3147fi 3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3149fi 3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3151fi 3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3153 ac_c_werror_flag=$ac_save_c_werror_flag 3154fi 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3156$as_echo "$ac_cv_prog_cc_g" >&6; } 3157if test "$ac_test_CFLAGS" = set; then 3158 CFLAGS=$ac_save_CFLAGS 3159elif test $ac_cv_prog_cc_g = yes; then 3160 if test "$GCC" = yes; then 3161 CFLAGS="-g -O2" 3162 else 3163 CFLAGS="-g" 3164 fi 3165else 3166 if test "$GCC" = yes; then 3167 CFLAGS="-O2" 3168 else 3169 CFLAGS= 3170 fi 3171fi 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3173$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3174if ${ac_cv_prog_cc_c89+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 ac_cv_prog_cc_c89=no 3178ac_save_CC=$CC 3179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180/* end confdefs.h. */ 3181#include <stdarg.h> 3182#include <stdio.h> 3183struct stat; 3184/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3185struct buf { int x; }; 3186FILE * (*rcsopen) (struct buf *, struct stat *, int); 3187static char *e (p, i) 3188 char **p; 3189 int i; 3190{ 3191 return p[i]; 3192} 3193static char *f (char * (*g) (char **, int), char **p, ...) 3194{ 3195 char *s; 3196 va_list v; 3197 va_start (v,p); 3198 s = g (p, va_arg (v,int)); 3199 va_end (v); 3200 return s; 3201} 3202 3203/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3204 function prototypes and stuff, but not '\xHH' hex character constants. 3205 These don't provoke an error unfortunately, instead are silently treated 3206 as 'x'. The following induces an error, until -std is added to get 3207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3208 array size at least. It's necessary to write '\x00'==0 to get something 3209 that's true only with -std. */ 3210int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3211 3212/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3213 inside strings and character constants. */ 3214#define FOO(x) 'x' 3215int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3216 3217int test (int i, double x); 3218struct s1 {int (*f) (int a);}; 3219struct s2 {int (*f) (double a);}; 3220int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3221int argc; 3222char **argv; 3223int 3224main () 3225{ 3226return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3233do 3234 CC="$ac_save_CC $ac_arg" 3235 if ac_fn_c_try_compile "$LINENO"; then : 3236 ac_cv_prog_cc_c89=$ac_arg 3237fi 3238rm -f core conftest.err conftest.$ac_objext 3239 test "x$ac_cv_prog_cc_c89" != "xno" && break 3240done 3241rm -f conftest.$ac_ext 3242CC=$ac_save_CC 3243 3244fi 3245# AC_CACHE_VAL 3246case "x$ac_cv_prog_cc_c89" in 3247 x) 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3249$as_echo "none needed" >&6; } ;; 3250 xno) 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3252$as_echo "unsupported" >&6; } ;; 3253 *) 3254 CC="$CC $ac_cv_prog_cc_c89" 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3256$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3257esac 3258if test "x$ac_cv_prog_cc_c89" != xno; then : 3259 3260fi 3261 3262ac_ext=c 3263ac_cpp='$CPP $CPPFLAGS' 3264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3266ac_compiler_gnu=$ac_cv_c_compiler_gnu 3267 3268ac_ext=c 3269ac_cpp='$CPP $CPPFLAGS' 3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3272ac_compiler_gnu=$ac_cv_c_compiler_gnu 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3274$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3275if ${am_cv_prog_cc_c_o+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3279/* end confdefs.h. */ 3280 3281int 3282main () 3283{ 3284 3285 ; 3286 return 0; 3287} 3288_ACEOF 3289 # Make sure it works both with $CC and with simple cc. 3290 # Following AC_PROG_CC_C_O, we do the test twice because some 3291 # compilers refuse to overwrite an existing .o file with -o, 3292 # though they will create one. 3293 am_cv_prog_cc_c_o=yes 3294 for am_i in 1 2; do 3295 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3296 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3297 ac_status=$? 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } \ 3300 && test -f conftest2.$ac_objext; then 3301 : OK 3302 else 3303 am_cv_prog_cc_c_o=no 3304 break 3305 fi 3306 done 3307 rm -f core conftest* 3308 unset am_i 3309fi 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3311$as_echo "$am_cv_prog_cc_c_o" >&6; } 3312if test "$am_cv_prog_cc_c_o" != yes; then 3313 # Losing compiler, so override with the script. 3314 # FIXME: It is wrong to rewrite CC. 3315 # But if we don't then we get into trouble of one sort or another. 3316 # A longer-term fix would be to have automake use am__CC in this case, 3317 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3318 CC="$am_aux_dir/compile $CC" 3319fi 3320ac_ext=c 3321ac_cpp='$CPP $CPPFLAGS' 3322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3324ac_compiler_gnu=$ac_cv_c_compiler_gnu 3325 3326 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3328$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3329if ${ac_cv_prog_cc_c99+:} false; then : 3330 $as_echo_n "(cached) " >&6 3331else 3332 ac_cv_prog_cc_c99=no 3333ac_save_CC=$CC 3334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3335/* end confdefs.h. */ 3336#include <stdarg.h> 3337#include <stdbool.h> 3338#include <stdlib.h> 3339#include <wchar.h> 3340#include <stdio.h> 3341 3342// Check varargs macros. These examples are taken from C99 6.10.3.5. 3343#define debug(...) fprintf (stderr, __VA_ARGS__) 3344#define showlist(...) puts (#__VA_ARGS__) 3345#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3346static void 3347test_varargs_macros (void) 3348{ 3349 int x = 1234; 3350 int y = 5678; 3351 debug ("Flag"); 3352 debug ("X = %d\n", x); 3353 showlist (The first, second, and third items.); 3354 report (x>y, "x is %d but y is %d", x, y); 3355} 3356 3357// Check long long types. 3358#define BIG64 18446744073709551615ull 3359#define BIG32 4294967295ul 3360#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3361#if !BIG_OK 3362 your preprocessor is broken; 3363#endif 3364#if BIG_OK 3365#else 3366 your preprocessor is broken; 3367#endif 3368static long long int bignum = -9223372036854775807LL; 3369static unsigned long long int ubignum = BIG64; 3370 3371struct incomplete_array 3372{ 3373 int datasize; 3374 double data[]; 3375}; 3376 3377struct named_init { 3378 int number; 3379 const wchar_t *name; 3380 double average; 3381}; 3382 3383typedef const char *ccp; 3384 3385static inline int 3386test_restrict (ccp restrict text) 3387{ 3388 // See if C++-style comments work. 3389 // Iterate through items via the restricted pointer. 3390 // Also check for declarations in for loops. 3391 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3392 continue; 3393 return 0; 3394} 3395 3396// Check varargs and va_copy. 3397static void 3398test_varargs (const char *format, ...) 3399{ 3400 va_list args; 3401 va_start (args, format); 3402 va_list args_copy; 3403 va_copy (args_copy, args); 3404 3405 const char *str; 3406 int number; 3407 float fnumber; 3408 3409 while (*format) 3410 { 3411 switch (*format++) 3412 { 3413 case 's': // string 3414 str = va_arg (args_copy, const char *); 3415 break; 3416 case 'd': // int 3417 number = va_arg (args_copy, int); 3418 break; 3419 case 'f': // float 3420 fnumber = va_arg (args_copy, double); 3421 break; 3422 default: 3423 break; 3424 } 3425 } 3426 va_end (args_copy); 3427 va_end (args); 3428} 3429 3430int 3431main () 3432{ 3433 3434 // Check bool. 3435 _Bool success = false; 3436 3437 // Check restrict. 3438 if (test_restrict ("String literal") == 0) 3439 success = true; 3440 char *restrict newvar = "Another string"; 3441 3442 // Check varargs. 3443 test_varargs ("s, d' f .", "string", 65, 34.234); 3444 test_varargs_macros (); 3445 3446 // Check flexible array members. 3447 struct incomplete_array *ia = 3448 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3449 ia->datasize = 10; 3450 for (int i = 0; i < ia->datasize; ++i) 3451 ia->data[i] = i * 1.234; 3452 3453 // Check named initializers. 3454 struct named_init ni = { 3455 .number = 34, 3456 .name = L"Test wide string", 3457 .average = 543.34343, 3458 }; 3459 3460 ni.number = 58; 3461 3462 int dynamic_array[ni.number]; 3463 dynamic_array[ni.number - 1] = 543; 3464 3465 // work around unused variable warnings 3466 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3467 || dynamic_array[ni.number - 1] != 543); 3468 3469 ; 3470 return 0; 3471} 3472_ACEOF 3473for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3474do 3475 CC="$ac_save_CC $ac_arg" 3476 if ac_fn_c_try_compile "$LINENO"; then : 3477 ac_cv_prog_cc_c99=$ac_arg 3478fi 3479rm -f core conftest.err conftest.$ac_objext 3480 test "x$ac_cv_prog_cc_c99" != "xno" && break 3481done 3482rm -f conftest.$ac_ext 3483CC=$ac_save_CC 3484 3485fi 3486# AC_CACHE_VAL 3487case "x$ac_cv_prog_cc_c99" in 3488 x) 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3490$as_echo "none needed" >&6; } ;; 3491 xno) 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3493$as_echo "unsupported" >&6; } ;; 3494 *) 3495 CC="$CC $ac_cv_prog_cc_c99" 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3497$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3498esac 3499if test "x$ac_cv_prog_cc_c99" != xno; then : 3500 3501fi 3502 3503 3504 3505ac_ext=c 3506ac_cpp='$CPP $CPPFLAGS' 3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3509ac_compiler_gnu=$ac_cv_c_compiler_gnu 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3511$as_echo_n "checking how to run the C preprocessor... " >&6; } 3512# On Suns, sometimes $CPP names a directory. 3513if test -n "$CPP" && test -d "$CPP"; then 3514 CPP= 3515fi 3516if test -z "$CPP"; then 3517 if ${ac_cv_prog_CPP+:} false; then : 3518 $as_echo_n "(cached) " >&6 3519else 3520 # Double quotes because CPP needs to be expanded 3521 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3522 do 3523 ac_preproc_ok=false 3524for ac_c_preproc_warn_flag in '' yes 3525do 3526 # Use a header file that comes with gcc, so configuring glibc 3527 # with a fresh cross-compiler works. 3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3529 # <limits.h> exists even on freestanding compilers. 3530 # On the NeXT, cc -E runs the code through the compiler's parser, 3531 # not just through cpp. "Syntax error" is here to catch this case. 3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534#ifdef __STDC__ 3535# include <limits.h> 3536#else 3537# include <assert.h> 3538#endif 3539 Syntax error 3540_ACEOF 3541if ac_fn_c_try_cpp "$LINENO"; then : 3542 3543else 3544 # Broken: fails on valid input. 3545continue 3546fi 3547rm -f conftest.err conftest.i conftest.$ac_ext 3548 3549 # OK, works on sane cases. Now check whether nonexistent headers 3550 # can be detected and how. 3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3552/* end confdefs.h. */ 3553#include <ac_nonexistent.h> 3554_ACEOF 3555if ac_fn_c_try_cpp "$LINENO"; then : 3556 # Broken: success on invalid input. 3557continue 3558else 3559 # Passes both tests. 3560ac_preproc_ok=: 3561break 3562fi 3563rm -f conftest.err conftest.i conftest.$ac_ext 3564 3565done 3566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3567rm -f conftest.i conftest.err conftest.$ac_ext 3568if $ac_preproc_ok; then : 3569 break 3570fi 3571 3572 done 3573 ac_cv_prog_CPP=$CPP 3574 3575fi 3576 CPP=$ac_cv_prog_CPP 3577else 3578 ac_cv_prog_CPP=$CPP 3579fi 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3581$as_echo "$CPP" >&6; } 3582ac_preproc_ok=false 3583for ac_c_preproc_warn_flag in '' yes 3584do 3585 # Use a header file that comes with gcc, so configuring glibc 3586 # with a fresh cross-compiler works. 3587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3588 # <limits.h> exists even on freestanding compilers. 3589 # On the NeXT, cc -E runs the code through the compiler's parser, 3590 # not just through cpp. "Syntax error" is here to catch this case. 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593#ifdef __STDC__ 3594# include <limits.h> 3595#else 3596# include <assert.h> 3597#endif 3598 Syntax error 3599_ACEOF 3600if ac_fn_c_try_cpp "$LINENO"; then : 3601 3602else 3603 # Broken: fails on valid input. 3604continue 3605fi 3606rm -f conftest.err conftest.i conftest.$ac_ext 3607 3608 # OK, works on sane cases. Now check whether nonexistent headers 3609 # can be detected and how. 3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3611/* end confdefs.h. */ 3612#include <ac_nonexistent.h> 3613_ACEOF 3614if ac_fn_c_try_cpp "$LINENO"; then : 3615 # Broken: success on invalid input. 3616continue 3617else 3618 # Passes both tests. 3619ac_preproc_ok=: 3620break 3621fi 3622rm -f conftest.err conftest.i conftest.$ac_ext 3623 3624done 3625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3626rm -f conftest.i conftest.err conftest.$ac_ext 3627if $ac_preproc_ok; then : 3628 3629else 3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3632as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3633See \`config.log' for more details" "$LINENO" 5; } 3634fi 3635 3636ac_ext=c 3637ac_cpp='$CPP $CPPFLAGS' 3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3640ac_compiler_gnu=$ac_cv_c_compiler_gnu 3641 3642 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3644$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3645if ${ac_cv_path_GREP+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 if test -z "$GREP"; then 3649 ac_path_GREP_found=false 3650 # Loop through the user's path and test for each of PROGNAME-LIST 3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3653do 3654 IFS=$as_save_IFS 3655 test -z "$as_dir" && as_dir=. 3656 for ac_prog in grep ggrep; do 3657 for ac_exec_ext in '' $ac_executable_extensions; do 3658 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3659 as_fn_executable_p "$ac_path_GREP" || continue 3660# Check for GNU ac_path_GREP and select it if it is found. 3661 # Check for GNU $ac_path_GREP 3662case `"$ac_path_GREP" --version 2>&1` in 3663*GNU*) 3664 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3665*) 3666 ac_count=0 3667 $as_echo_n 0123456789 >"conftest.in" 3668 while : 3669 do 3670 cat "conftest.in" "conftest.in" >"conftest.tmp" 3671 mv "conftest.tmp" "conftest.in" 3672 cp "conftest.in" "conftest.nl" 3673 $as_echo 'GREP' >> "conftest.nl" 3674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3676 as_fn_arith $ac_count + 1 && ac_count=$as_val 3677 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3678 # Best one so far, save it but keep looking for a better one 3679 ac_cv_path_GREP="$ac_path_GREP" 3680 ac_path_GREP_max=$ac_count 3681 fi 3682 # 10*(2^10) chars as input seems more than enough 3683 test $ac_count -gt 10 && break 3684 done 3685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3686esac 3687 3688 $ac_path_GREP_found && break 3 3689 done 3690 done 3691 done 3692IFS=$as_save_IFS 3693 if test -z "$ac_cv_path_GREP"; then 3694 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3695 fi 3696else 3697 ac_cv_path_GREP=$GREP 3698fi 3699 3700fi 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3702$as_echo "$ac_cv_path_GREP" >&6; } 3703 GREP="$ac_cv_path_GREP" 3704 3705 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3707$as_echo_n "checking for egrep... " >&6; } 3708if ${ac_cv_path_EGREP+:} false; then : 3709 $as_echo_n "(cached) " >&6 3710else 3711 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3712 then ac_cv_path_EGREP="$GREP -E" 3713 else 3714 if test -z "$EGREP"; then 3715 ac_path_EGREP_found=false 3716 # Loop through the user's path and test for each of PROGNAME-LIST 3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3719do 3720 IFS=$as_save_IFS 3721 test -z "$as_dir" && as_dir=. 3722 for ac_prog in egrep; do 3723 for ac_exec_ext in '' $ac_executable_extensions; do 3724 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3725 as_fn_executable_p "$ac_path_EGREP" || continue 3726# Check for GNU ac_path_EGREP and select it if it is found. 3727 # Check for GNU $ac_path_EGREP 3728case `"$ac_path_EGREP" --version 2>&1` in 3729*GNU*) 3730 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3731*) 3732 ac_count=0 3733 $as_echo_n 0123456789 >"conftest.in" 3734 while : 3735 do 3736 cat "conftest.in" "conftest.in" >"conftest.tmp" 3737 mv "conftest.tmp" "conftest.in" 3738 cp "conftest.in" "conftest.nl" 3739 $as_echo 'EGREP' >> "conftest.nl" 3740 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3742 as_fn_arith $ac_count + 1 && ac_count=$as_val 3743 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3744 # Best one so far, save it but keep looking for a better one 3745 ac_cv_path_EGREP="$ac_path_EGREP" 3746 ac_path_EGREP_max=$ac_count 3747 fi 3748 # 10*(2^10) chars as input seems more than enough 3749 test $ac_count -gt 10 && break 3750 done 3751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3752esac 3753 3754 $ac_path_EGREP_found && break 3 3755 done 3756 done 3757 done 3758IFS=$as_save_IFS 3759 if test -z "$ac_cv_path_EGREP"; then 3760 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3761 fi 3762else 3763 ac_cv_path_EGREP=$EGREP 3764fi 3765 3766 fi 3767fi 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3769$as_echo "$ac_cv_path_EGREP" >&6; } 3770 EGREP="$ac_cv_path_EGREP" 3771 3772 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3774$as_echo_n "checking for ANSI C header files... " >&6; } 3775if ${ac_cv_header_stdc+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779/* end confdefs.h. */ 3780#include <stdlib.h> 3781#include <stdarg.h> 3782#include <string.h> 3783#include <float.h> 3784 3785int 3786main () 3787{ 3788 3789 ; 3790 return 0; 3791} 3792_ACEOF 3793if ac_fn_c_try_compile "$LINENO"; then : 3794 ac_cv_header_stdc=yes 3795else 3796 ac_cv_header_stdc=no 3797fi 3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3799 3800if test $ac_cv_header_stdc = yes; then 3801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804#include <string.h> 3805 3806_ACEOF 3807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3808 $EGREP "memchr" >/dev/null 2>&1; then : 3809 3810else 3811 ac_cv_header_stdc=no 3812fi 3813rm -f conftest* 3814 3815fi 3816 3817if test $ac_cv_header_stdc = yes; then 3818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821#include <stdlib.h> 3822 3823_ACEOF 3824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3825 $EGREP "free" >/dev/null 2>&1; then : 3826 3827else 3828 ac_cv_header_stdc=no 3829fi 3830rm -f conftest* 3831 3832fi 3833 3834if test $ac_cv_header_stdc = yes; then 3835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3836 if test "$cross_compiling" = yes; then : 3837 : 3838else 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841#include <ctype.h> 3842#include <stdlib.h> 3843#if ((' ' & 0x0FF) == 0x020) 3844# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3845# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3846#else 3847# define ISLOWER(c) \ 3848 (('a' <= (c) && (c) <= 'i') \ 3849 || ('j' <= (c) && (c) <= 'r') \ 3850 || ('s' <= (c) && (c) <= 'z')) 3851# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3852#endif 3853 3854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3855int 3856main () 3857{ 3858 int i; 3859 for (i = 0; i < 256; i++) 3860 if (XOR (islower (i), ISLOWER (i)) 3861 || toupper (i) != TOUPPER (i)) 3862 return 2; 3863 return 0; 3864} 3865_ACEOF 3866if ac_fn_c_try_run "$LINENO"; then : 3867 3868else 3869 ac_cv_header_stdc=no 3870fi 3871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3872 conftest.$ac_objext conftest.beam conftest.$ac_ext 3873fi 3874 3875fi 3876fi 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3878$as_echo "$ac_cv_header_stdc" >&6; } 3879if test $ac_cv_header_stdc = yes; then 3880 3881$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3882 3883fi 3884 3885# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3886for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3887 inttypes.h stdint.h unistd.h 3888do : 3889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3890ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3891" 3892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3893 cat >>confdefs.h <<_ACEOF 3894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3895_ACEOF 3896 3897fi 3898 3899done 3900 3901 3902 3903 3904 3905 3906ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 3907if test "x$ac_cv_have_decl___clang__" = xyes; then : 3908 CLANGCC="yes" 3909else 3910 CLANGCC="no" 3911fi 3912 3913ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 3914if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 3915 INTELCC="yes" 3916else 3917 INTELCC="no" 3918fi 3919 3920ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3921if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 3922 SUNCC="yes" 3923else 3924 SUNCC="no" 3925fi 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3936 if test -n "$ac_tool_prefix"; then 3937 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3938set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3940$as_echo_n "checking for $ac_word... " >&6; } 3941if ${ac_cv_path_PKG_CONFIG+:} false; then : 3942 $as_echo_n "(cached) " >&6 3943else 3944 case $PKG_CONFIG in 3945 [\\/]* | ?:[\\/]*) 3946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3947 ;; 3948 *) 3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3950for as_dir in $PATH 3951do 3952 IFS=$as_save_IFS 3953 test -z "$as_dir" && as_dir=. 3954 for ac_exec_ext in '' $ac_executable_extensions; do 3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3958 break 2 3959 fi 3960done 3961 done 3962IFS=$as_save_IFS 3963 3964 ;; 3965esac 3966fi 3967PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3968if test -n "$PKG_CONFIG"; then 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3970$as_echo "$PKG_CONFIG" >&6; } 3971else 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3973$as_echo "no" >&6; } 3974fi 3975 3976 3977fi 3978if test -z "$ac_cv_path_PKG_CONFIG"; then 3979 ac_pt_PKG_CONFIG=$PKG_CONFIG 3980 # Extract the first word of "pkg-config", so it can be a program name with args. 3981set dummy pkg-config; ac_word=$2 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3983$as_echo_n "checking for $ac_word... " >&6; } 3984if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 3985 $as_echo_n "(cached) " >&6 3986else 3987 case $ac_pt_PKG_CONFIG in 3988 [\\/]* | ?:[\\/]*) 3989 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3990 ;; 3991 *) 3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3993for as_dir in $PATH 3994do 3995 IFS=$as_save_IFS 3996 test -z "$as_dir" && as_dir=. 3997 for ac_exec_ext in '' $ac_executable_extensions; do 3998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3999 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4001 break 2 4002 fi 4003done 4004 done 4005IFS=$as_save_IFS 4006 4007 ;; 4008esac 4009fi 4010ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4011if test -n "$ac_pt_PKG_CONFIG"; then 4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4013$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4014else 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4016$as_echo "no" >&6; } 4017fi 4018 4019 if test "x$ac_pt_PKG_CONFIG" = x; then 4020 PKG_CONFIG="" 4021 else 4022 case $cross_compiling:$ac_tool_warned in 4023yes:) 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4026ac_tool_warned=yes ;; 4027esac 4028 PKG_CONFIG=$ac_pt_PKG_CONFIG 4029 fi 4030else 4031 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4032fi 4033 4034fi 4035if test -n "$PKG_CONFIG"; then 4036 _pkg_min_version=0.9.0 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4038$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4039 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4041$as_echo "yes" >&6; } 4042 else 4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044$as_echo "no" >&6; } 4045 PKG_CONFIG="" 4046 fi 4047fi 4048# Make sure we can run config.sub. 4049$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4050 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4051 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4053$as_echo_n "checking build system type... " >&6; } 4054if ${ac_cv_build+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056else 4057 ac_build_alias=$build_alias 4058test "x$ac_build_alias" = x && 4059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4060test "x$ac_build_alias" = x && 4061 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4062ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4063 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4064 4065fi 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4067$as_echo "$ac_cv_build" >&6; } 4068case $ac_cv_build in 4069*-*-*) ;; 4070*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4071esac 4072build=$ac_cv_build 4073ac_save_IFS=$IFS; IFS='-' 4074set x $ac_cv_build 4075shift 4076build_cpu=$1 4077build_vendor=$2 4078shift; shift 4079# Remember, the first character of IFS is used to create $*, 4080# except with old shells: 4081build_os=$* 4082IFS=$ac_save_IFS 4083case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4084 4085 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4087$as_echo_n "checking host system type... " >&6; } 4088if ${ac_cv_host+:} false; then : 4089 $as_echo_n "(cached) " >&6 4090else 4091 if test "x$host_alias" = x; then 4092 ac_cv_host=$ac_cv_build 4093else 4094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4096fi 4097 4098fi 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4100$as_echo "$ac_cv_host" >&6; } 4101case $ac_cv_host in 4102*-*-*) ;; 4103*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4104esac 4105host=$ac_cv_host 4106ac_save_IFS=$IFS; IFS='-' 4107set x $ac_cv_host 4108shift 4109host_cpu=$1 4110host_vendor=$2 4111shift; shift 4112# Remember, the first character of IFS is used to create $*, 4113# except with old shells: 4114host_os=$* 4115IFS=$ac_save_IFS 4116case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4117 4118 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4120$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4121if ${ac_cv_path_SED+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4125 for ac_i in 1 2 3 4 5 6 7; do 4126 ac_script="$ac_script$as_nl$ac_script" 4127 done 4128 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4129 { ac_script=; unset ac_script;} 4130 if test -z "$SED"; then 4131 ac_path_SED_found=false 4132 # Loop through the user's path and test for each of PROGNAME-LIST 4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4134for as_dir in $PATH 4135do 4136 IFS=$as_save_IFS 4137 test -z "$as_dir" && as_dir=. 4138 for ac_prog in sed gsed; do 4139 for ac_exec_ext in '' $ac_executable_extensions; do 4140 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4141 as_fn_executable_p "$ac_path_SED" || continue 4142# Check for GNU ac_path_SED and select it if it is found. 4143 # Check for GNU $ac_path_SED 4144case `"$ac_path_SED" --version 2>&1` in 4145*GNU*) 4146 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4147*) 4148 ac_count=0 4149 $as_echo_n 0123456789 >"conftest.in" 4150 while : 4151 do 4152 cat "conftest.in" "conftest.in" >"conftest.tmp" 4153 mv "conftest.tmp" "conftest.in" 4154 cp "conftest.in" "conftest.nl" 4155 $as_echo '' >> "conftest.nl" 4156 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4158 as_fn_arith $ac_count + 1 && ac_count=$as_val 4159 if test $ac_count -gt ${ac_path_SED_max-0}; then 4160 # Best one so far, save it but keep looking for a better one 4161 ac_cv_path_SED="$ac_path_SED" 4162 ac_path_SED_max=$ac_count 4163 fi 4164 # 10*(2^10) chars as input seems more than enough 4165 test $ac_count -gt 10 && break 4166 done 4167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4168esac 4169 4170 $ac_path_SED_found && break 3 4171 done 4172 done 4173 done 4174IFS=$as_save_IFS 4175 if test -z "$ac_cv_path_SED"; then 4176 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4177 fi 4178else 4179 ac_cv_path_SED=$SED 4180fi 4181 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4184$as_echo "$ac_cv_path_SED" >&6; } 4185 SED="$ac_cv_path_SED" 4186 rm -f conftest.sed 4187 4188 4189 4190 4191 4192 4193# Check whether --enable-selective-werror was given. 4194if test "${enable_selective_werror+set}" = set; then : 4195 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4196else 4197 SELECTIVE_WERROR=yes 4198fi 4199 4200 4201 4202 4203 4204# -v is too short to test reliably with XORG_TESTSET_CFLAG 4205if test "x$SUNCC" = "xyes"; then 4206 BASE_CFLAGS="-v" 4207else 4208 BASE_CFLAGS="" 4209fi 4210 4211# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225xorg_testset_save_CFLAGS="$CFLAGS" 4226 4227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4232 $as_echo_n "(cached) " >&6 4233else 4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4235/* end confdefs.h. */ 4236int i; 4237_ACEOF 4238if ac_fn_c_try_compile "$LINENO"; then : 4239 xorg_cv_cc_flag_unknown_warning_option=yes 4240else 4241 xorg_cv_cc_flag_unknown_warning_option=no 4242fi 4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4244fi 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4248 CFLAGS="$xorg_testset_save_CFLAGS" 4249fi 4250 4251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4254 fi 4255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4259 $as_echo_n "(cached) " >&6 4260else 4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4262/* end confdefs.h. */ 4263int i; 4264_ACEOF 4265if ac_fn_c_try_compile "$LINENO"; then : 4266 xorg_cv_cc_flag_unused_command_line_argument=yes 4267else 4268 xorg_cv_cc_flag_unused_command_line_argument=no 4269fi 4270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4271fi 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4275 CFLAGS="$xorg_testset_save_CFLAGS" 4276fi 4277 4278found="no" 4279 4280 if test $found = "no" ; then 4281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4283 fi 4284 4285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4287 fi 4288 4289 CFLAGS="$CFLAGS -Wall" 4290 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4292$as_echo_n "checking if $CC supports -Wall... " >&6; } 4293 cacheid=xorg_cv_cc_flag__Wall 4294 if eval \${$cacheid+:} false; then : 4295 $as_echo_n "(cached) " >&6 4296else 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298/* end confdefs.h. */ 4299int i; 4300int 4301main () 4302{ 4303 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308if ac_fn_c_try_link "$LINENO"; then : 4309 eval $cacheid=yes 4310else 4311 eval $cacheid=no 4312fi 4313rm -f core conftest.err conftest.$ac_objext \ 4314 conftest$ac_exeext conftest.$ac_ext 4315fi 4316 4317 4318 CFLAGS="$xorg_testset_save_CFLAGS" 4319 4320 eval supported=\$$cacheid 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4322$as_echo "$supported" >&6; } 4323 if test "$supported" = "yes" ; then 4324 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4325 found="yes" 4326 fi 4327 fi 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343xorg_testset_save_CFLAGS="$CFLAGS" 4344 4345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4350 $as_echo_n "(cached) " >&6 4351else 4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4353/* end confdefs.h. */ 4354int i; 4355_ACEOF 4356if ac_fn_c_try_compile "$LINENO"; then : 4357 xorg_cv_cc_flag_unknown_warning_option=yes 4358else 4359 xorg_cv_cc_flag_unknown_warning_option=no 4360fi 4361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4362fi 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4366 CFLAGS="$xorg_testset_save_CFLAGS" 4367fi 4368 4369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4372 fi 4373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4377 $as_echo_n "(cached) " >&6 4378else 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380/* end confdefs.h. */ 4381int i; 4382_ACEOF 4383if ac_fn_c_try_compile "$LINENO"; then : 4384 xorg_cv_cc_flag_unused_command_line_argument=yes 4385else 4386 xorg_cv_cc_flag_unused_command_line_argument=no 4387fi 4388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4389fi 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4393 CFLAGS="$xorg_testset_save_CFLAGS" 4394fi 4395 4396found="no" 4397 4398 if test $found = "no" ; then 4399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4401 fi 4402 4403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4405 fi 4406 4407 CFLAGS="$CFLAGS -Wpointer-arith" 4408 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4410$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4411 cacheid=xorg_cv_cc_flag__Wpointer_arith 4412 if eval \${$cacheid+:} false; then : 4413 $as_echo_n "(cached) " >&6 4414else 4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4416/* end confdefs.h. */ 4417int i; 4418int 4419main () 4420{ 4421 4422 ; 4423 return 0; 4424} 4425_ACEOF 4426if ac_fn_c_try_link "$LINENO"; then : 4427 eval $cacheid=yes 4428else 4429 eval $cacheid=no 4430fi 4431rm -f core conftest.err conftest.$ac_objext \ 4432 conftest$ac_exeext conftest.$ac_ext 4433fi 4434 4435 4436 CFLAGS="$xorg_testset_save_CFLAGS" 4437 4438 eval supported=\$$cacheid 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4440$as_echo "$supported" >&6; } 4441 if test "$supported" = "yes" ; then 4442 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4443 found="yes" 4444 fi 4445 fi 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461xorg_testset_save_CFLAGS="$CFLAGS" 4462 4463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4468 $as_echo_n "(cached) " >&6 4469else 4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4471/* end confdefs.h. */ 4472int i; 4473_ACEOF 4474if ac_fn_c_try_compile "$LINENO"; then : 4475 xorg_cv_cc_flag_unknown_warning_option=yes 4476else 4477 xorg_cv_cc_flag_unknown_warning_option=no 4478fi 4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4480fi 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4484 CFLAGS="$xorg_testset_save_CFLAGS" 4485fi 4486 4487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4490 fi 4491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498/* end confdefs.h. */ 4499int i; 4500_ACEOF 4501if ac_fn_c_try_compile "$LINENO"; then : 4502 xorg_cv_cc_flag_unused_command_line_argument=yes 4503else 4504 xorg_cv_cc_flag_unused_command_line_argument=no 4505fi 4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4507fi 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4511 CFLAGS="$xorg_testset_save_CFLAGS" 4512fi 4513 4514found="no" 4515 4516 if test $found = "no" ; then 4517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4519 fi 4520 4521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4523 fi 4524 4525 CFLAGS="$CFLAGS -Wmissing-declarations" 4526 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4528$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4529 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4530 if eval \${$cacheid+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534/* end confdefs.h. */ 4535int i; 4536int 4537main () 4538{ 4539 4540 ; 4541 return 0; 4542} 4543_ACEOF 4544if ac_fn_c_try_link "$LINENO"; then : 4545 eval $cacheid=yes 4546else 4547 eval $cacheid=no 4548fi 4549rm -f core conftest.err conftest.$ac_objext \ 4550 conftest$ac_exeext conftest.$ac_ext 4551fi 4552 4553 4554 CFLAGS="$xorg_testset_save_CFLAGS" 4555 4556 eval supported=\$$cacheid 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4558$as_echo "$supported" >&6; } 4559 if test "$supported" = "yes" ; then 4560 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4561 found="yes" 4562 fi 4563 fi 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579xorg_testset_save_CFLAGS="$CFLAGS" 4580 4581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4589/* end confdefs.h. */ 4590int i; 4591_ACEOF 4592if ac_fn_c_try_compile "$LINENO"; then : 4593 xorg_cv_cc_flag_unknown_warning_option=yes 4594else 4595 xorg_cv_cc_flag_unknown_warning_option=no 4596fi 4597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4602 CFLAGS="$xorg_testset_save_CFLAGS" 4603fi 4604 4605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4608 fi 4609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616/* end confdefs.h. */ 4617int i; 4618_ACEOF 4619if ac_fn_c_try_compile "$LINENO"; then : 4620 xorg_cv_cc_flag_unused_command_line_argument=yes 4621else 4622 xorg_cv_cc_flag_unused_command_line_argument=no 4623fi 4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4625fi 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4629 CFLAGS="$xorg_testset_save_CFLAGS" 4630fi 4631 4632found="no" 4633 4634 if test $found = "no" ; then 4635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4637 fi 4638 4639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4641 fi 4642 4643 CFLAGS="$CFLAGS -Wformat=2" 4644 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4646$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4647 cacheid=xorg_cv_cc_flag__Wformat_2 4648 if eval \${$cacheid+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652/* end confdefs.h. */ 4653int i; 4654int 4655main () 4656{ 4657 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662if ac_fn_c_try_link "$LINENO"; then : 4663 eval $cacheid=yes 4664else 4665 eval $cacheid=no 4666fi 4667rm -f core conftest.err conftest.$ac_objext \ 4668 conftest$ac_exeext conftest.$ac_ext 4669fi 4670 4671 4672 CFLAGS="$xorg_testset_save_CFLAGS" 4673 4674 eval supported=\$$cacheid 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4676$as_echo "$supported" >&6; } 4677 if test "$supported" = "yes" ; then 4678 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4679 found="yes" 4680 fi 4681 fi 4682 4683 if test $found = "no" ; then 4684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4686 fi 4687 4688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4690 fi 4691 4692 CFLAGS="$CFLAGS -Wformat" 4693 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4695$as_echo_n "checking if $CC supports -Wformat... " >&6; } 4696 cacheid=xorg_cv_cc_flag__Wformat 4697 if eval \${$cacheid+:} false; then : 4698 $as_echo_n "(cached) " >&6 4699else 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702int i; 4703int 4704main () 4705{ 4706 4707 ; 4708 return 0; 4709} 4710_ACEOF 4711if ac_fn_c_try_link "$LINENO"; then : 4712 eval $cacheid=yes 4713else 4714 eval $cacheid=no 4715fi 4716rm -f core conftest.err conftest.$ac_objext \ 4717 conftest$ac_exeext conftest.$ac_ext 4718fi 4719 4720 4721 CFLAGS="$xorg_testset_save_CFLAGS" 4722 4723 eval supported=\$$cacheid 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4725$as_echo "$supported" >&6; } 4726 if test "$supported" = "yes" ; then 4727 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4728 found="yes" 4729 fi 4730 fi 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748xorg_testset_save_CFLAGS="$CFLAGS" 4749 4750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758/* end confdefs.h. */ 4759int i; 4760_ACEOF 4761if ac_fn_c_try_compile "$LINENO"; then : 4762 xorg_cv_cc_flag_unknown_warning_option=yes 4763else 4764 xorg_cv_cc_flag_unknown_warning_option=no 4765fi 4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4767fi 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4771 CFLAGS="$xorg_testset_save_CFLAGS" 4772fi 4773 4774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4777 fi 4778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4785/* end confdefs.h. */ 4786int i; 4787_ACEOF 4788if ac_fn_c_try_compile "$LINENO"; then : 4789 xorg_cv_cc_flag_unused_command_line_argument=yes 4790else 4791 xorg_cv_cc_flag_unused_command_line_argument=no 4792fi 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4794fi 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4798 CFLAGS="$xorg_testset_save_CFLAGS" 4799fi 4800 4801found="no" 4802 4803 if test $found = "no" ; then 4804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4806 fi 4807 4808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4810 fi 4811 4812 CFLAGS="$CFLAGS -Wstrict-prototypes" 4813 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4815$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 4816 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4817 if eval \${$cacheid+:} false; then : 4818 $as_echo_n "(cached) " >&6 4819else 4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4821/* end confdefs.h. */ 4822int i; 4823int 4824main () 4825{ 4826 4827 ; 4828 return 0; 4829} 4830_ACEOF 4831if ac_fn_c_try_link "$LINENO"; then : 4832 eval $cacheid=yes 4833else 4834 eval $cacheid=no 4835fi 4836rm -f core conftest.err conftest.$ac_objext \ 4837 conftest$ac_exeext conftest.$ac_ext 4838fi 4839 4840 4841 CFLAGS="$xorg_testset_save_CFLAGS" 4842 4843 eval supported=\$$cacheid 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4845$as_echo "$supported" >&6; } 4846 if test "$supported" = "yes" ; then 4847 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4848 found="yes" 4849 fi 4850 fi 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866xorg_testset_save_CFLAGS="$CFLAGS" 4867 4868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4876/* end confdefs.h. */ 4877int i; 4878_ACEOF 4879if ac_fn_c_try_compile "$LINENO"; then : 4880 xorg_cv_cc_flag_unknown_warning_option=yes 4881else 4882 xorg_cv_cc_flag_unknown_warning_option=no 4883fi 4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4885fi 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4889 CFLAGS="$xorg_testset_save_CFLAGS" 4890fi 4891 4892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4895 fi 4896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901else 4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4903/* end confdefs.h. */ 4904int i; 4905_ACEOF 4906if ac_fn_c_try_compile "$LINENO"; then : 4907 xorg_cv_cc_flag_unused_command_line_argument=yes 4908else 4909 xorg_cv_cc_flag_unused_command_line_argument=no 4910fi 4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4912fi 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4916 CFLAGS="$xorg_testset_save_CFLAGS" 4917fi 4918 4919found="no" 4920 4921 if test $found = "no" ; then 4922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4924 fi 4925 4926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4928 fi 4929 4930 CFLAGS="$CFLAGS -Wmissing-prototypes" 4931 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 4933$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 4934 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 4935 if eval \${$cacheid+:} false; then : 4936 $as_echo_n "(cached) " >&6 4937else 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4939/* end confdefs.h. */ 4940int i; 4941int 4942main () 4943{ 4944 4945 ; 4946 return 0; 4947} 4948_ACEOF 4949if ac_fn_c_try_link "$LINENO"; then : 4950 eval $cacheid=yes 4951else 4952 eval $cacheid=no 4953fi 4954rm -f core conftest.err conftest.$ac_objext \ 4955 conftest$ac_exeext conftest.$ac_ext 4956fi 4957 4958 4959 CFLAGS="$xorg_testset_save_CFLAGS" 4960 4961 eval supported=\$$cacheid 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4963$as_echo "$supported" >&6; } 4964 if test "$supported" = "yes" ; then 4965 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 4966 found="yes" 4967 fi 4968 fi 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984xorg_testset_save_CFLAGS="$CFLAGS" 4985 4986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995int i; 4996_ACEOF 4997if ac_fn_c_try_compile "$LINENO"; then : 4998 xorg_cv_cc_flag_unknown_warning_option=yes 4999else 5000 xorg_cv_cc_flag_unknown_warning_option=no 5001fi 5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5003fi 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5007 CFLAGS="$xorg_testset_save_CFLAGS" 5008fi 5009 5010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5013 fi 5014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021/* end confdefs.h. */ 5022int i; 5023_ACEOF 5024if ac_fn_c_try_compile "$LINENO"; then : 5025 xorg_cv_cc_flag_unused_command_line_argument=yes 5026else 5027 xorg_cv_cc_flag_unused_command_line_argument=no 5028fi 5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5030fi 5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5034 CFLAGS="$xorg_testset_save_CFLAGS" 5035fi 5036 5037found="no" 5038 5039 if test $found = "no" ; then 5040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5042 fi 5043 5044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5046 fi 5047 5048 CFLAGS="$CFLAGS -Wnested-externs" 5049 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5051$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5052 cacheid=xorg_cv_cc_flag__Wnested_externs 5053 if eval \${$cacheid+:} false; then : 5054 $as_echo_n "(cached) " >&6 5055else 5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5057/* end confdefs.h. */ 5058int i; 5059int 5060main () 5061{ 5062 5063 ; 5064 return 0; 5065} 5066_ACEOF 5067if ac_fn_c_try_link "$LINENO"; then : 5068 eval $cacheid=yes 5069else 5070 eval $cacheid=no 5071fi 5072rm -f core conftest.err conftest.$ac_objext \ 5073 conftest$ac_exeext conftest.$ac_ext 5074fi 5075 5076 5077 CFLAGS="$xorg_testset_save_CFLAGS" 5078 5079 eval supported=\$$cacheid 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5081$as_echo "$supported" >&6; } 5082 if test "$supported" = "yes" ; then 5083 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5084 found="yes" 5085 fi 5086 fi 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102xorg_testset_save_CFLAGS="$CFLAGS" 5103 5104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113int i; 5114_ACEOF 5115if ac_fn_c_try_compile "$LINENO"; then : 5116 xorg_cv_cc_flag_unknown_warning_option=yes 5117else 5118 xorg_cv_cc_flag_unknown_warning_option=no 5119fi 5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5125 CFLAGS="$xorg_testset_save_CFLAGS" 5126fi 5127 5128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5131 fi 5132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139/* end confdefs.h. */ 5140int i; 5141_ACEOF 5142if ac_fn_c_try_compile "$LINENO"; then : 5143 xorg_cv_cc_flag_unused_command_line_argument=yes 5144else 5145 xorg_cv_cc_flag_unused_command_line_argument=no 5146fi 5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5148fi 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5152 CFLAGS="$xorg_testset_save_CFLAGS" 5153fi 5154 5155found="no" 5156 5157 if test $found = "no" ; then 5158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5160 fi 5161 5162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5164 fi 5165 5166 CFLAGS="$CFLAGS -Wbad-function-cast" 5167 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5169$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5170 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5171 if eval \${$cacheid+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176int i; 5177int 5178main () 5179{ 5180 5181 ; 5182 return 0; 5183} 5184_ACEOF 5185if ac_fn_c_try_link "$LINENO"; then : 5186 eval $cacheid=yes 5187else 5188 eval $cacheid=no 5189fi 5190rm -f core conftest.err conftest.$ac_objext \ 5191 conftest$ac_exeext conftest.$ac_ext 5192fi 5193 5194 5195 CFLAGS="$xorg_testset_save_CFLAGS" 5196 5197 eval supported=\$$cacheid 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5199$as_echo "$supported" >&6; } 5200 if test "$supported" = "yes" ; then 5201 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5202 found="yes" 5203 fi 5204 fi 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220xorg_testset_save_CFLAGS="$CFLAGS" 5221 5222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5230/* end confdefs.h. */ 5231int i; 5232_ACEOF 5233if ac_fn_c_try_compile "$LINENO"; then : 5234 xorg_cv_cc_flag_unknown_warning_option=yes 5235else 5236 xorg_cv_cc_flag_unknown_warning_option=no 5237fi 5238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5239fi 5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5243 CFLAGS="$xorg_testset_save_CFLAGS" 5244fi 5245 5246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5249 fi 5250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257/* end confdefs.h. */ 5258int i; 5259_ACEOF 5260if ac_fn_c_try_compile "$LINENO"; then : 5261 xorg_cv_cc_flag_unused_command_line_argument=yes 5262else 5263 xorg_cv_cc_flag_unused_command_line_argument=no 5264fi 5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5266fi 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5270 CFLAGS="$xorg_testset_save_CFLAGS" 5271fi 5272 5273found="no" 5274 5275 if test $found = "no" ; then 5276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5278 fi 5279 5280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5282 fi 5283 5284 CFLAGS="$CFLAGS -Wold-style-definition" 5285 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5287$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5288 cacheid=xorg_cv_cc_flag__Wold_style_definition 5289 if eval \${$cacheid+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295int 5296main () 5297{ 5298 5299 ; 5300 return 0; 5301} 5302_ACEOF 5303if ac_fn_c_try_link "$LINENO"; then : 5304 eval $cacheid=yes 5305else 5306 eval $cacheid=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext \ 5309 conftest$ac_exeext conftest.$ac_ext 5310fi 5311 5312 5313 CFLAGS="$xorg_testset_save_CFLAGS" 5314 5315 eval supported=\$$cacheid 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5317$as_echo "$supported" >&6; } 5318 if test "$supported" = "yes" ; then 5319 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5320 found="yes" 5321 fi 5322 fi 5323 5324 if test $found = "no" ; then 5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 fi 5328 5329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5331 fi 5332 5333 CFLAGS="$CFLAGS -fd" 5334 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5336$as_echo_n "checking if $CC supports -fd... " >&6; } 5337 cacheid=xorg_cv_cc_flag__fd 5338 if eval \${$cacheid+:} false; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5342/* end confdefs.h. */ 5343int i; 5344int 5345main () 5346{ 5347 5348 ; 5349 return 0; 5350} 5351_ACEOF 5352if ac_fn_c_try_link "$LINENO"; then : 5353 eval $cacheid=yes 5354else 5355 eval $cacheid=no 5356fi 5357rm -f core conftest.err conftest.$ac_objext \ 5358 conftest$ac_exeext conftest.$ac_ext 5359fi 5360 5361 5362 CFLAGS="$xorg_testset_save_CFLAGS" 5363 5364 eval supported=\$$cacheid 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5366$as_echo "$supported" >&6; } 5367 if test "$supported" = "yes" ; then 5368 BASE_CFLAGS="$BASE_CFLAGS -fd" 5369 found="yes" 5370 fi 5371 fi 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387xorg_testset_save_CFLAGS="$CFLAGS" 5388 5389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5397/* end confdefs.h. */ 5398int i; 5399_ACEOF 5400if ac_fn_c_try_compile "$LINENO"; then : 5401 xorg_cv_cc_flag_unknown_warning_option=yes 5402else 5403 xorg_cv_cc_flag_unknown_warning_option=no 5404fi 5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5406fi 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5410 CFLAGS="$xorg_testset_save_CFLAGS" 5411fi 5412 5413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5416 fi 5417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424/* end confdefs.h. */ 5425int i; 5426_ACEOF 5427if ac_fn_c_try_compile "$LINENO"; then : 5428 xorg_cv_cc_flag_unused_command_line_argument=yes 5429else 5430 xorg_cv_cc_flag_unused_command_line_argument=no 5431fi 5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5433fi 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438fi 5439 5440found="no" 5441 5442 if test $found = "no" ; then 5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5445 fi 5446 5447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5449 fi 5450 5451 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5452 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5454$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5455 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5456 if eval \${$cacheid+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458else 5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5460/* end confdefs.h. */ 5461int i; 5462int 5463main () 5464{ 5465 5466 ; 5467 return 0; 5468} 5469_ACEOF 5470if ac_fn_c_try_link "$LINENO"; then : 5471 eval $cacheid=yes 5472else 5473 eval $cacheid=no 5474fi 5475rm -f core conftest.err conftest.$ac_objext \ 5476 conftest$ac_exeext conftest.$ac_ext 5477fi 5478 5479 5480 CFLAGS="$xorg_testset_save_CFLAGS" 5481 5482 eval supported=\$$cacheid 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5484$as_echo "$supported" >&6; } 5485 if test "$supported" = "yes" ; then 5486 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5487 found="yes" 5488 fi 5489 fi 5490 5491 5492 5493 5494 5495# This chunk adds additional warnings that could catch undesired effects. 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509xorg_testset_save_CFLAGS="$CFLAGS" 5510 5511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5516 $as_echo_n "(cached) " >&6 5517else 5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5519/* end confdefs.h. */ 5520int i; 5521_ACEOF 5522if ac_fn_c_try_compile "$LINENO"; then : 5523 xorg_cv_cc_flag_unknown_warning_option=yes 5524else 5525 xorg_cv_cc_flag_unknown_warning_option=no 5526fi 5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5528fi 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5532 CFLAGS="$xorg_testset_save_CFLAGS" 5533fi 5534 5535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5538 fi 5539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5546/* end confdefs.h. */ 5547int i; 5548_ACEOF 5549if ac_fn_c_try_compile "$LINENO"; then : 5550 xorg_cv_cc_flag_unused_command_line_argument=yes 5551else 5552 xorg_cv_cc_flag_unused_command_line_argument=no 5553fi 5554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5555fi 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5559 CFLAGS="$xorg_testset_save_CFLAGS" 5560fi 5561 5562found="no" 5563 5564 if test $found = "no" ; then 5565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5567 fi 5568 5569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5571 fi 5572 5573 CFLAGS="$CFLAGS -Wunused" 5574 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5576$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5577 cacheid=xorg_cv_cc_flag__Wunused 5578 if eval \${$cacheid+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5582/* end confdefs.h. */ 5583int i; 5584int 5585main () 5586{ 5587 5588 ; 5589 return 0; 5590} 5591_ACEOF 5592if ac_fn_c_try_link "$LINENO"; then : 5593 eval $cacheid=yes 5594else 5595 eval $cacheid=no 5596fi 5597rm -f core conftest.err conftest.$ac_objext \ 5598 conftest$ac_exeext conftest.$ac_ext 5599fi 5600 5601 5602 CFLAGS="$xorg_testset_save_CFLAGS" 5603 5604 eval supported=\$$cacheid 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5606$as_echo "$supported" >&6; } 5607 if test "$supported" = "yes" ; then 5608 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5609 found="yes" 5610 fi 5611 fi 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627xorg_testset_save_CFLAGS="$CFLAGS" 5628 5629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5634 $as_echo_n "(cached) " >&6 5635else 5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5637/* end confdefs.h. */ 5638int i; 5639_ACEOF 5640if ac_fn_c_try_compile "$LINENO"; then : 5641 xorg_cv_cc_flag_unknown_warning_option=yes 5642else 5643 xorg_cv_cc_flag_unknown_warning_option=no 5644fi 5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5646fi 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5650 CFLAGS="$xorg_testset_save_CFLAGS" 5651fi 5652 5653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5656 fi 5657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5661 $as_echo_n "(cached) " >&6 5662else 5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5664/* end confdefs.h. */ 5665int i; 5666_ACEOF 5667if ac_fn_c_try_compile "$LINENO"; then : 5668 xorg_cv_cc_flag_unused_command_line_argument=yes 5669else 5670 xorg_cv_cc_flag_unused_command_line_argument=no 5671fi 5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5673fi 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5677 CFLAGS="$xorg_testset_save_CFLAGS" 5678fi 5679 5680found="no" 5681 5682 if test $found = "no" ; then 5683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5685 fi 5686 5687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5689 fi 5690 5691 CFLAGS="$CFLAGS -Wuninitialized" 5692 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5694$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5695 cacheid=xorg_cv_cc_flag__Wuninitialized 5696 if eval \${$cacheid+:} false; then : 5697 $as_echo_n "(cached) " >&6 5698else 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700/* end confdefs.h. */ 5701int i; 5702int 5703main () 5704{ 5705 5706 ; 5707 return 0; 5708} 5709_ACEOF 5710if ac_fn_c_try_link "$LINENO"; then : 5711 eval $cacheid=yes 5712else 5713 eval $cacheid=no 5714fi 5715rm -f core conftest.err conftest.$ac_objext \ 5716 conftest$ac_exeext conftest.$ac_ext 5717fi 5718 5719 5720 CFLAGS="$xorg_testset_save_CFLAGS" 5721 5722 eval supported=\$$cacheid 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5724$as_echo "$supported" >&6; } 5725 if test "$supported" = "yes" ; then 5726 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5727 found="yes" 5728 fi 5729 fi 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745xorg_testset_save_CFLAGS="$CFLAGS" 5746 5747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5752 $as_echo_n "(cached) " >&6 5753else 5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5755/* end confdefs.h. */ 5756int i; 5757_ACEOF 5758if ac_fn_c_try_compile "$LINENO"; then : 5759 xorg_cv_cc_flag_unknown_warning_option=yes 5760else 5761 xorg_cv_cc_flag_unknown_warning_option=no 5762fi 5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5764fi 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5768 CFLAGS="$xorg_testset_save_CFLAGS" 5769fi 5770 5771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5774 fi 5775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5782/* end confdefs.h. */ 5783int i; 5784_ACEOF 5785if ac_fn_c_try_compile "$LINENO"; then : 5786 xorg_cv_cc_flag_unused_command_line_argument=yes 5787else 5788 xorg_cv_cc_flag_unused_command_line_argument=no 5789fi 5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5791fi 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5795 CFLAGS="$xorg_testset_save_CFLAGS" 5796fi 5797 5798found="no" 5799 5800 if test $found = "no" ; then 5801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5803 fi 5804 5805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5807 fi 5808 5809 CFLAGS="$CFLAGS -Wshadow" 5810 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5812$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 5813 cacheid=xorg_cv_cc_flag__Wshadow 5814 if eval \${$cacheid+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819int i; 5820int 5821main () 5822{ 5823 5824 ; 5825 return 0; 5826} 5827_ACEOF 5828if ac_fn_c_try_link "$LINENO"; then : 5829 eval $cacheid=yes 5830else 5831 eval $cacheid=no 5832fi 5833rm -f core conftest.err conftest.$ac_objext \ 5834 conftest$ac_exeext conftest.$ac_ext 5835fi 5836 5837 5838 CFLAGS="$xorg_testset_save_CFLAGS" 5839 5840 eval supported=\$$cacheid 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5842$as_echo "$supported" >&6; } 5843 if test "$supported" = "yes" ; then 5844 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5845 found="yes" 5846 fi 5847 fi 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863xorg_testset_save_CFLAGS="$CFLAGS" 5864 5865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5873/* end confdefs.h. */ 5874int i; 5875_ACEOF 5876if ac_fn_c_try_compile "$LINENO"; then : 5877 xorg_cv_cc_flag_unknown_warning_option=yes 5878else 5879 xorg_cv_cc_flag_unknown_warning_option=no 5880fi 5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5886 CFLAGS="$xorg_testset_save_CFLAGS" 5887fi 5888 5889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5892 fi 5893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5900/* end confdefs.h. */ 5901int i; 5902_ACEOF 5903if ac_fn_c_try_compile "$LINENO"; then : 5904 xorg_cv_cc_flag_unused_command_line_argument=yes 5905else 5906 xorg_cv_cc_flag_unused_command_line_argument=no 5907fi 5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5909fi 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5913 CFLAGS="$xorg_testset_save_CFLAGS" 5914fi 5915 5916found="no" 5917 5918 if test $found = "no" ; then 5919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5921 fi 5922 5923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5925 fi 5926 5927 CFLAGS="$CFLAGS -Wmissing-noreturn" 5928 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 5930$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 5931 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 5932 if eval \${$cacheid+:} false; then : 5933 $as_echo_n "(cached) " >&6 5934else 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937int i; 5938int 5939main () 5940{ 5941 5942 ; 5943 return 0; 5944} 5945_ACEOF 5946if ac_fn_c_try_link "$LINENO"; then : 5947 eval $cacheid=yes 5948else 5949 eval $cacheid=no 5950fi 5951rm -f core conftest.err conftest.$ac_objext \ 5952 conftest$ac_exeext conftest.$ac_ext 5953fi 5954 5955 5956 CFLAGS="$xorg_testset_save_CFLAGS" 5957 5958 eval supported=\$$cacheid 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5960$as_echo "$supported" >&6; } 5961 if test "$supported" = "yes" ; then 5962 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 5963 found="yes" 5964 fi 5965 fi 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981xorg_testset_save_CFLAGS="$CFLAGS" 5982 5983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5988 $as_echo_n "(cached) " >&6 5989else 5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5991/* end confdefs.h. */ 5992int i; 5993_ACEOF 5994if ac_fn_c_try_compile "$LINENO"; then : 5995 xorg_cv_cc_flag_unknown_warning_option=yes 5996else 5997 xorg_cv_cc_flag_unknown_warning_option=no 5998fi 5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6000fi 6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6004 CFLAGS="$xorg_testset_save_CFLAGS" 6005fi 6006 6007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6010 fi 6011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019int i; 6020_ACEOF 6021if ac_fn_c_try_compile "$LINENO"; then : 6022 xorg_cv_cc_flag_unused_command_line_argument=yes 6023else 6024 xorg_cv_cc_flag_unused_command_line_argument=no 6025fi 6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6027fi 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6031 CFLAGS="$xorg_testset_save_CFLAGS" 6032fi 6033 6034found="no" 6035 6036 if test $found = "no" ; then 6037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6039 fi 6040 6041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6043 fi 6044 6045 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6046 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6048$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6049 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6050 if eval \${$cacheid+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054/* end confdefs.h. */ 6055int i; 6056int 6057main () 6058{ 6059 6060 ; 6061 return 0; 6062} 6063_ACEOF 6064if ac_fn_c_try_link "$LINENO"; then : 6065 eval $cacheid=yes 6066else 6067 eval $cacheid=no 6068fi 6069rm -f core conftest.err conftest.$ac_objext \ 6070 conftest$ac_exeext conftest.$ac_ext 6071fi 6072 6073 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075 6076 eval supported=\$$cacheid 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6078$as_echo "$supported" >&6; } 6079 if test "$supported" = "yes" ; then 6080 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6081 found="yes" 6082 fi 6083 fi 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099xorg_testset_save_CFLAGS="$CFLAGS" 6100 6101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6106 $as_echo_n "(cached) " >&6 6107else 6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6109/* end confdefs.h. */ 6110int i; 6111_ACEOF 6112if ac_fn_c_try_compile "$LINENO"; then : 6113 xorg_cv_cc_flag_unknown_warning_option=yes 6114else 6115 xorg_cv_cc_flag_unknown_warning_option=no 6116fi 6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6118fi 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6122 CFLAGS="$xorg_testset_save_CFLAGS" 6123fi 6124 6125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6128 fi 6129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6136/* end confdefs.h. */ 6137int i; 6138_ACEOF 6139if ac_fn_c_try_compile "$LINENO"; then : 6140 xorg_cv_cc_flag_unused_command_line_argument=yes 6141else 6142 xorg_cv_cc_flag_unused_command_line_argument=no 6143fi 6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6145fi 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6149 CFLAGS="$xorg_testset_save_CFLAGS" 6150fi 6151 6152found="no" 6153 6154 if test $found = "no" ; then 6155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6157 fi 6158 6159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6161 fi 6162 6163 CFLAGS="$CFLAGS -Wredundant-decls" 6164 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6166$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6167 cacheid=xorg_cv_cc_flag__Wredundant_decls 6168 if eval \${$cacheid+:} false; then : 6169 $as_echo_n "(cached) " >&6 6170else 6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6172/* end confdefs.h. */ 6173int i; 6174int 6175main () 6176{ 6177 6178 ; 6179 return 0; 6180} 6181_ACEOF 6182if ac_fn_c_try_link "$LINENO"; then : 6183 eval $cacheid=yes 6184else 6185 eval $cacheid=no 6186fi 6187rm -f core conftest.err conftest.$ac_objext \ 6188 conftest$ac_exeext conftest.$ac_ext 6189fi 6190 6191 6192 CFLAGS="$xorg_testset_save_CFLAGS" 6193 6194 eval supported=\$$cacheid 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6196$as_echo "$supported" >&6; } 6197 if test "$supported" = "yes" ; then 6198 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6199 found="yes" 6200 fi 6201 fi 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217xorg_testset_save_CFLAGS="$CFLAGS" 6218 6219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227/* end confdefs.h. */ 6228int i; 6229_ACEOF 6230if ac_fn_c_try_compile "$LINENO"; then : 6231 xorg_cv_cc_flag_unknown_warning_option=yes 6232else 6233 xorg_cv_cc_flag_unknown_warning_option=no 6234fi 6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6236fi 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6240 CFLAGS="$xorg_testset_save_CFLAGS" 6241fi 6242 6243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6246 fi 6247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6251 $as_echo_n "(cached) " >&6 6252else 6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254/* end confdefs.h. */ 6255int i; 6256_ACEOF 6257if ac_fn_c_try_compile "$LINENO"; then : 6258 xorg_cv_cc_flag_unused_command_line_argument=yes 6259else 6260 xorg_cv_cc_flag_unused_command_line_argument=no 6261fi 6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6263fi 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6267 CFLAGS="$xorg_testset_save_CFLAGS" 6268fi 6269 6270found="no" 6271 6272 if test $found = "no" ; then 6273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6275 fi 6276 6277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6279 fi 6280 6281 CFLAGS="$CFLAGS -Wlogical-op" 6282 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6284$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6285 cacheid=xorg_cv_cc_flag__Wlogical_op 6286 if eval \${$cacheid+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288else 6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6290/* end confdefs.h. */ 6291int i; 6292int 6293main () 6294{ 6295 6296 ; 6297 return 0; 6298} 6299_ACEOF 6300if ac_fn_c_try_link "$LINENO"; then : 6301 eval $cacheid=yes 6302else 6303 eval $cacheid=no 6304fi 6305rm -f core conftest.err conftest.$ac_objext \ 6306 conftest$ac_exeext conftest.$ac_ext 6307fi 6308 6309 6310 CFLAGS="$xorg_testset_save_CFLAGS" 6311 6312 eval supported=\$$cacheid 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6314$as_echo "$supported" >&6; } 6315 if test "$supported" = "yes" ; then 6316 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6317 found="yes" 6318 fi 6319 fi 6320 6321 6322 6323# These are currently disabled because they are noisy. They will be enabled 6324# in the future once the codebase is sufficiently modernized to silence 6325# them. For now, I don't want them to drown out the other warnings. 6326# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6327# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6328# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6329 6330# Turn some warnings into errors, so we don't accidently get successful builds 6331# when there are problems that should be fixed. 6332 6333if test "x$SELECTIVE_WERROR" = "xyes" ; then 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347xorg_testset_save_CFLAGS="$CFLAGS" 6348 6349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6352$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6353if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355else 6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6357/* end confdefs.h. */ 6358int i; 6359_ACEOF 6360if ac_fn_c_try_compile "$LINENO"; then : 6361 xorg_cv_cc_flag_unknown_warning_option=yes 6362else 6363 xorg_cv_cc_flag_unknown_warning_option=no 6364fi 6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6366fi 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6368$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6370 CFLAGS="$xorg_testset_save_CFLAGS" 6371fi 6372 6373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6376 fi 6377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6379$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6380if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6381 $as_echo_n "(cached) " >&6 6382else 6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6384/* end confdefs.h. */ 6385int i; 6386_ACEOF 6387if ac_fn_c_try_compile "$LINENO"; then : 6388 xorg_cv_cc_flag_unused_command_line_argument=yes 6389else 6390 xorg_cv_cc_flag_unused_command_line_argument=no 6391fi 6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6393fi 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6395$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6397 CFLAGS="$xorg_testset_save_CFLAGS" 6398fi 6399 6400found="no" 6401 6402 if test $found = "no" ; then 6403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6405 fi 6406 6407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6409 fi 6410 6411 CFLAGS="$CFLAGS -Werror=implicit" 6412 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6414$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6415 cacheid=xorg_cv_cc_flag__Werror_implicit 6416 if eval \${$cacheid+:} false; then : 6417 $as_echo_n "(cached) " >&6 6418else 6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6420/* end confdefs.h. */ 6421int i; 6422int 6423main () 6424{ 6425 6426 ; 6427 return 0; 6428} 6429_ACEOF 6430if ac_fn_c_try_link "$LINENO"; then : 6431 eval $cacheid=yes 6432else 6433 eval $cacheid=no 6434fi 6435rm -f core conftest.err conftest.$ac_objext \ 6436 conftest$ac_exeext conftest.$ac_ext 6437fi 6438 6439 6440 CFLAGS="$xorg_testset_save_CFLAGS" 6441 6442 eval supported=\$$cacheid 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6444$as_echo "$supported" >&6; } 6445 if test "$supported" = "yes" ; then 6446 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6447 found="yes" 6448 fi 6449 fi 6450 6451 if test $found = "no" ; then 6452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6454 fi 6455 6456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 fi 6459 6460 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6461 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6463$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6464 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6465 if eval \${$cacheid+:} false; then : 6466 $as_echo_n "(cached) " >&6 6467else 6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6469/* end confdefs.h. */ 6470int i; 6471int 6472main () 6473{ 6474 6475 ; 6476 return 0; 6477} 6478_ACEOF 6479if ac_fn_c_try_link "$LINENO"; then : 6480 eval $cacheid=yes 6481else 6482 eval $cacheid=no 6483fi 6484rm -f core conftest.err conftest.$ac_objext \ 6485 conftest$ac_exeext conftest.$ac_ext 6486fi 6487 6488 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490 6491 eval supported=\$$cacheid 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6493$as_echo "$supported" >&6; } 6494 if test "$supported" = "yes" ; then 6495 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6496 found="yes" 6497 fi 6498 fi 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514xorg_testset_save_CFLAGS="$CFLAGS" 6515 6516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524/* end confdefs.h. */ 6525int i; 6526_ACEOF 6527if ac_fn_c_try_compile "$LINENO"; then : 6528 xorg_cv_cc_flag_unknown_warning_option=yes 6529else 6530 xorg_cv_cc_flag_unknown_warning_option=no 6531fi 6532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6533fi 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6537 CFLAGS="$xorg_testset_save_CFLAGS" 6538fi 6539 6540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6543 fi 6544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551/* end confdefs.h. */ 6552int i; 6553_ACEOF 6554if ac_fn_c_try_compile "$LINENO"; then : 6555 xorg_cv_cc_flag_unused_command_line_argument=yes 6556else 6557 xorg_cv_cc_flag_unused_command_line_argument=no 6558fi 6559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6564 CFLAGS="$xorg_testset_save_CFLAGS" 6565fi 6566 6567found="no" 6568 6569 if test $found = "no" ; then 6570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6572 fi 6573 6574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6576 fi 6577 6578 CFLAGS="$CFLAGS -Werror=nonnull" 6579 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6581$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6582 cacheid=xorg_cv_cc_flag__Werror_nonnull 6583 if eval \${$cacheid+:} false; then : 6584 $as_echo_n "(cached) " >&6 6585else 6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588int i; 6589int 6590main () 6591{ 6592 6593 ; 6594 return 0; 6595} 6596_ACEOF 6597if ac_fn_c_try_link "$LINENO"; then : 6598 eval $cacheid=yes 6599else 6600 eval $cacheid=no 6601fi 6602rm -f core conftest.err conftest.$ac_objext \ 6603 conftest$ac_exeext conftest.$ac_ext 6604fi 6605 6606 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608 6609 eval supported=\$$cacheid 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6611$as_echo "$supported" >&6; } 6612 if test "$supported" = "yes" ; then 6613 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6614 found="yes" 6615 fi 6616 fi 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632xorg_testset_save_CFLAGS="$CFLAGS" 6633 6634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6639 $as_echo_n "(cached) " >&6 6640else 6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6642/* end confdefs.h. */ 6643int i; 6644_ACEOF 6645if ac_fn_c_try_compile "$LINENO"; then : 6646 xorg_cv_cc_flag_unknown_warning_option=yes 6647else 6648 xorg_cv_cc_flag_unknown_warning_option=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6651fi 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6655 CFLAGS="$xorg_testset_save_CFLAGS" 6656fi 6657 6658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6661 fi 6662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6665if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6666 $as_echo_n "(cached) " >&6 6667else 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670int i; 6671_ACEOF 6672if ac_fn_c_try_compile "$LINENO"; then : 6673 xorg_cv_cc_flag_unused_command_line_argument=yes 6674else 6675 xorg_cv_cc_flag_unused_command_line_argument=no 6676fi 6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6678fi 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6682 CFLAGS="$xorg_testset_save_CFLAGS" 6683fi 6684 6685found="no" 6686 6687 if test $found = "no" ; then 6688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6690 fi 6691 6692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6694 fi 6695 6696 CFLAGS="$CFLAGS -Werror=init-self" 6697 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6699$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6700 cacheid=xorg_cv_cc_flag__Werror_init_self 6701 if eval \${$cacheid+:} false; then : 6702 $as_echo_n "(cached) " >&6 6703else 6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705/* end confdefs.h. */ 6706int i; 6707int 6708main () 6709{ 6710 6711 ; 6712 return 0; 6713} 6714_ACEOF 6715if ac_fn_c_try_link "$LINENO"; then : 6716 eval $cacheid=yes 6717else 6718 eval $cacheid=no 6719fi 6720rm -f core conftest.err conftest.$ac_objext \ 6721 conftest$ac_exeext conftest.$ac_ext 6722fi 6723 6724 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726 6727 eval supported=\$$cacheid 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6729$as_echo "$supported" >&6; } 6730 if test "$supported" = "yes" ; then 6731 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6732 found="yes" 6733 fi 6734 fi 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750xorg_testset_save_CFLAGS="$CFLAGS" 6751 6752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761int i; 6762_ACEOF 6763if ac_fn_c_try_compile "$LINENO"; then : 6764 xorg_cv_cc_flag_unknown_warning_option=yes 6765else 6766 xorg_cv_cc_flag_unknown_warning_option=no 6767fi 6768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6769fi 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6773 CFLAGS="$xorg_testset_save_CFLAGS" 6774fi 6775 6776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6779 fi 6780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6784 $as_echo_n "(cached) " >&6 6785else 6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6787/* end confdefs.h. */ 6788int i; 6789_ACEOF 6790if ac_fn_c_try_compile "$LINENO"; then : 6791 xorg_cv_cc_flag_unused_command_line_argument=yes 6792else 6793 xorg_cv_cc_flag_unused_command_line_argument=no 6794fi 6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6796fi 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6800 CFLAGS="$xorg_testset_save_CFLAGS" 6801fi 6802 6803found="no" 6804 6805 if test $found = "no" ; then 6806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6808 fi 6809 6810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6812 fi 6813 6814 CFLAGS="$CFLAGS -Werror=main" 6815 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6817$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 6818 cacheid=xorg_cv_cc_flag__Werror_main 6819 if eval \${$cacheid+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6823/* end confdefs.h. */ 6824int i; 6825int 6826main () 6827{ 6828 6829 ; 6830 return 0; 6831} 6832_ACEOF 6833if ac_fn_c_try_link "$LINENO"; then : 6834 eval $cacheid=yes 6835else 6836 eval $cacheid=no 6837fi 6838rm -f core conftest.err conftest.$ac_objext \ 6839 conftest$ac_exeext conftest.$ac_ext 6840fi 6841 6842 6843 CFLAGS="$xorg_testset_save_CFLAGS" 6844 6845 eval supported=\$$cacheid 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6847$as_echo "$supported" >&6; } 6848 if test "$supported" = "yes" ; then 6849 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 6850 found="yes" 6851 fi 6852 fi 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868xorg_testset_save_CFLAGS="$CFLAGS" 6869 6870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6878/* end confdefs.h. */ 6879int i; 6880_ACEOF 6881if ac_fn_c_try_compile "$LINENO"; then : 6882 xorg_cv_cc_flag_unknown_warning_option=yes 6883else 6884 xorg_cv_cc_flag_unknown_warning_option=no 6885fi 6886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6887fi 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6891 CFLAGS="$xorg_testset_save_CFLAGS" 6892fi 6893 6894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6897 fi 6898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6905/* end confdefs.h. */ 6906int i; 6907_ACEOF 6908if ac_fn_c_try_compile "$LINENO"; then : 6909 xorg_cv_cc_flag_unused_command_line_argument=yes 6910else 6911 xorg_cv_cc_flag_unused_command_line_argument=no 6912fi 6913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6914fi 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6918 CFLAGS="$xorg_testset_save_CFLAGS" 6919fi 6920 6921found="no" 6922 6923 if test $found = "no" ; then 6924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6926 fi 6927 6928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6930 fi 6931 6932 CFLAGS="$CFLAGS -Werror=missing-braces" 6933 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 6935$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 6936 cacheid=xorg_cv_cc_flag__Werror_missing_braces 6937 if eval \${$cacheid+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939else 6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6941/* end confdefs.h. */ 6942int i; 6943int 6944main () 6945{ 6946 6947 ; 6948 return 0; 6949} 6950_ACEOF 6951if ac_fn_c_try_link "$LINENO"; then : 6952 eval $cacheid=yes 6953else 6954 eval $cacheid=no 6955fi 6956rm -f core conftest.err conftest.$ac_objext \ 6957 conftest$ac_exeext conftest.$ac_ext 6958fi 6959 6960 6961 CFLAGS="$xorg_testset_save_CFLAGS" 6962 6963 eval supported=\$$cacheid 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6965$as_echo "$supported" >&6; } 6966 if test "$supported" = "yes" ; then 6967 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 6968 found="yes" 6969 fi 6970 fi 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986xorg_testset_save_CFLAGS="$CFLAGS" 6987 6988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6993 $as_echo_n "(cached) " >&6 6994else 6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997int i; 6998_ACEOF 6999if ac_fn_c_try_compile "$LINENO"; then : 7000 xorg_cv_cc_flag_unknown_warning_option=yes 7001else 7002 xorg_cv_cc_flag_unknown_warning_option=no 7003fi 7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7005fi 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7009 CFLAGS="$xorg_testset_save_CFLAGS" 7010fi 7011 7012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7015 fi 7016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024int i; 7025_ACEOF 7026if ac_fn_c_try_compile "$LINENO"; then : 7027 xorg_cv_cc_flag_unused_command_line_argument=yes 7028else 7029 xorg_cv_cc_flag_unused_command_line_argument=no 7030fi 7031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7032fi 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7036 CFLAGS="$xorg_testset_save_CFLAGS" 7037fi 7038 7039found="no" 7040 7041 if test $found = "no" ; then 7042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044 fi 7045 7046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7048 fi 7049 7050 CFLAGS="$CFLAGS -Werror=sequence-point" 7051 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7053$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7054 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7055 if eval \${$cacheid+:} false; then : 7056 $as_echo_n "(cached) " >&6 7057else 7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7059/* end confdefs.h. */ 7060int i; 7061int 7062main () 7063{ 7064 7065 ; 7066 return 0; 7067} 7068_ACEOF 7069if ac_fn_c_try_link "$LINENO"; then : 7070 eval $cacheid=yes 7071else 7072 eval $cacheid=no 7073fi 7074rm -f core conftest.err conftest.$ac_objext \ 7075 conftest$ac_exeext conftest.$ac_ext 7076fi 7077 7078 7079 CFLAGS="$xorg_testset_save_CFLAGS" 7080 7081 eval supported=\$$cacheid 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7083$as_echo "$supported" >&6; } 7084 if test "$supported" = "yes" ; then 7085 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7086 found="yes" 7087 fi 7088 fi 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104xorg_testset_save_CFLAGS="$CFLAGS" 7105 7106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114/* end confdefs.h. */ 7115int i; 7116_ACEOF 7117if ac_fn_c_try_compile "$LINENO"; then : 7118 xorg_cv_cc_flag_unknown_warning_option=yes 7119else 7120 xorg_cv_cc_flag_unknown_warning_option=no 7121fi 7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7123fi 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7127 CFLAGS="$xorg_testset_save_CFLAGS" 7128fi 7129 7130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7133 fi 7134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7138 $as_echo_n "(cached) " >&6 7139else 7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7141/* end confdefs.h. */ 7142int i; 7143_ACEOF 7144if ac_fn_c_try_compile "$LINENO"; then : 7145 xorg_cv_cc_flag_unused_command_line_argument=yes 7146else 7147 xorg_cv_cc_flag_unused_command_line_argument=no 7148fi 7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7150fi 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7154 CFLAGS="$xorg_testset_save_CFLAGS" 7155fi 7156 7157found="no" 7158 7159 if test $found = "no" ; then 7160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7162 fi 7163 7164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7166 fi 7167 7168 CFLAGS="$CFLAGS -Werror=return-type" 7169 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7171$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7172 cacheid=xorg_cv_cc_flag__Werror_return_type 7173 if eval \${$cacheid+:} false; then : 7174 $as_echo_n "(cached) " >&6 7175else 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178int i; 7179int 7180main () 7181{ 7182 7183 ; 7184 return 0; 7185} 7186_ACEOF 7187if ac_fn_c_try_link "$LINENO"; then : 7188 eval $cacheid=yes 7189else 7190 eval $cacheid=no 7191fi 7192rm -f core conftest.err conftest.$ac_objext \ 7193 conftest$ac_exeext conftest.$ac_ext 7194fi 7195 7196 7197 CFLAGS="$xorg_testset_save_CFLAGS" 7198 7199 eval supported=\$$cacheid 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7201$as_echo "$supported" >&6; } 7202 if test "$supported" = "yes" ; then 7203 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7204 found="yes" 7205 fi 7206 fi 7207 7208 if test $found = "no" ; then 7209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7211 fi 7212 7213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7215 fi 7216 7217 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7218 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7220$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7221 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7222 if eval \${$cacheid+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224else 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7226/* end confdefs.h. */ 7227int i; 7228int 7229main () 7230{ 7231 7232 ; 7233 return 0; 7234} 7235_ACEOF 7236if ac_fn_c_try_link "$LINENO"; then : 7237 eval $cacheid=yes 7238else 7239 eval $cacheid=no 7240fi 7241rm -f core conftest.err conftest.$ac_objext \ 7242 conftest$ac_exeext conftest.$ac_ext 7243fi 7244 7245 7246 CFLAGS="$xorg_testset_save_CFLAGS" 7247 7248 eval supported=\$$cacheid 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7250$as_echo "$supported" >&6; } 7251 if test "$supported" = "yes" ; then 7252 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7253 found="yes" 7254 fi 7255 fi 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271xorg_testset_save_CFLAGS="$CFLAGS" 7272 7273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7278 $as_echo_n "(cached) " >&6 7279else 7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7281/* end confdefs.h. */ 7282int i; 7283_ACEOF 7284if ac_fn_c_try_compile "$LINENO"; then : 7285 xorg_cv_cc_flag_unknown_warning_option=yes 7286else 7287 xorg_cv_cc_flag_unknown_warning_option=no 7288fi 7289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7290fi 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7294 CFLAGS="$xorg_testset_save_CFLAGS" 7295fi 7296 7297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7300 fi 7301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309int i; 7310_ACEOF 7311if ac_fn_c_try_compile "$LINENO"; then : 7312 xorg_cv_cc_flag_unused_command_line_argument=yes 7313else 7314 xorg_cv_cc_flag_unused_command_line_argument=no 7315fi 7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7317fi 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7321 CFLAGS="$xorg_testset_save_CFLAGS" 7322fi 7323 7324found="no" 7325 7326 if test $found = "no" ; then 7327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7329 fi 7330 7331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7333 fi 7334 7335 CFLAGS="$CFLAGS -Werror=trigraphs" 7336 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7338$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7339 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7340 if eval \${$cacheid+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7344/* end confdefs.h. */ 7345int i; 7346int 7347main () 7348{ 7349 7350 ; 7351 return 0; 7352} 7353_ACEOF 7354if ac_fn_c_try_link "$LINENO"; then : 7355 eval $cacheid=yes 7356else 7357 eval $cacheid=no 7358fi 7359rm -f core conftest.err conftest.$ac_objext \ 7360 conftest$ac_exeext conftest.$ac_ext 7361fi 7362 7363 7364 CFLAGS="$xorg_testset_save_CFLAGS" 7365 7366 eval supported=\$$cacheid 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7368$as_echo "$supported" >&6; } 7369 if test "$supported" = "yes" ; then 7370 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7371 found="yes" 7372 fi 7373 fi 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389xorg_testset_save_CFLAGS="$CFLAGS" 7390 7391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397else 7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7399/* end confdefs.h. */ 7400int i; 7401_ACEOF 7402if ac_fn_c_try_compile "$LINENO"; then : 7403 xorg_cv_cc_flag_unknown_warning_option=yes 7404else 7405 xorg_cv_cc_flag_unknown_warning_option=no 7406fi 7407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7408fi 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7412 CFLAGS="$xorg_testset_save_CFLAGS" 7413fi 7414 7415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7418 fi 7419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426/* end confdefs.h. */ 7427int i; 7428_ACEOF 7429if ac_fn_c_try_compile "$LINENO"; then : 7430 xorg_cv_cc_flag_unused_command_line_argument=yes 7431else 7432 xorg_cv_cc_flag_unused_command_line_argument=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7435fi 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7439 CFLAGS="$xorg_testset_save_CFLAGS" 7440fi 7441 7442found="no" 7443 7444 if test $found = "no" ; then 7445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7447 fi 7448 7449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7451 fi 7452 7453 CFLAGS="$CFLAGS -Werror=array-bounds" 7454 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7456$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7457 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7458 if eval \${$cacheid+:} false; then : 7459 $as_echo_n "(cached) " >&6 7460else 7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7462/* end confdefs.h. */ 7463int i; 7464int 7465main () 7466{ 7467 7468 ; 7469 return 0; 7470} 7471_ACEOF 7472if ac_fn_c_try_link "$LINENO"; then : 7473 eval $cacheid=yes 7474else 7475 eval $cacheid=no 7476fi 7477rm -f core conftest.err conftest.$ac_objext \ 7478 conftest$ac_exeext conftest.$ac_ext 7479fi 7480 7481 7482 CFLAGS="$xorg_testset_save_CFLAGS" 7483 7484 eval supported=\$$cacheid 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7486$as_echo "$supported" >&6; } 7487 if test "$supported" = "yes" ; then 7488 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7489 found="yes" 7490 fi 7491 fi 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507xorg_testset_save_CFLAGS="$CFLAGS" 7508 7509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7514 $as_echo_n "(cached) " >&6 7515else 7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517/* end confdefs.h. */ 7518int i; 7519_ACEOF 7520if ac_fn_c_try_compile "$LINENO"; then : 7521 xorg_cv_cc_flag_unknown_warning_option=yes 7522else 7523 xorg_cv_cc_flag_unknown_warning_option=no 7524fi 7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7526fi 7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7530 CFLAGS="$xorg_testset_save_CFLAGS" 7531fi 7532 7533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7536 fi 7537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546_ACEOF 7547if ac_fn_c_try_compile "$LINENO"; then : 7548 xorg_cv_cc_flag_unused_command_line_argument=yes 7549else 7550 xorg_cv_cc_flag_unused_command_line_argument=no 7551fi 7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7553fi 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7557 CFLAGS="$xorg_testset_save_CFLAGS" 7558fi 7559 7560found="no" 7561 7562 if test $found = "no" ; then 7563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7565 fi 7566 7567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7569 fi 7570 7571 CFLAGS="$CFLAGS -Werror=write-strings" 7572 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7574$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7575 cacheid=xorg_cv_cc_flag__Werror_write_strings 7576 if eval \${$cacheid+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7580/* end confdefs.h. */ 7581int i; 7582int 7583main () 7584{ 7585 7586 ; 7587 return 0; 7588} 7589_ACEOF 7590if ac_fn_c_try_link "$LINENO"; then : 7591 eval $cacheid=yes 7592else 7593 eval $cacheid=no 7594fi 7595rm -f core conftest.err conftest.$ac_objext \ 7596 conftest$ac_exeext conftest.$ac_ext 7597fi 7598 7599 7600 CFLAGS="$xorg_testset_save_CFLAGS" 7601 7602 eval supported=\$$cacheid 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7604$as_echo "$supported" >&6; } 7605 if test "$supported" = "yes" ; then 7606 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7607 found="yes" 7608 fi 7609 fi 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625xorg_testset_save_CFLAGS="$CFLAGS" 7626 7627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635/* end confdefs.h. */ 7636int i; 7637_ACEOF 7638if ac_fn_c_try_compile "$LINENO"; then : 7639 xorg_cv_cc_flag_unknown_warning_option=yes 7640else 7641 xorg_cv_cc_flag_unknown_warning_option=no 7642fi 7643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7644fi 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7648 CFLAGS="$xorg_testset_save_CFLAGS" 7649fi 7650 7651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7654 fi 7655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664_ACEOF 7665if ac_fn_c_try_compile "$LINENO"; then : 7666 xorg_cv_cc_flag_unused_command_line_argument=yes 7667else 7668 xorg_cv_cc_flag_unused_command_line_argument=no 7669fi 7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7671fi 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7675 CFLAGS="$xorg_testset_save_CFLAGS" 7676fi 7677 7678found="no" 7679 7680 if test $found = "no" ; then 7681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7683 fi 7684 7685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7687 fi 7688 7689 CFLAGS="$CFLAGS -Werror=address" 7690 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7692$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7693 cacheid=xorg_cv_cc_flag__Werror_address 7694 if eval \${$cacheid+:} false; then : 7695 $as_echo_n "(cached) " >&6 7696else 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698/* end confdefs.h. */ 7699int i; 7700int 7701main () 7702{ 7703 7704 ; 7705 return 0; 7706} 7707_ACEOF 7708if ac_fn_c_try_link "$LINENO"; then : 7709 eval $cacheid=yes 7710else 7711 eval $cacheid=no 7712fi 7713rm -f core conftest.err conftest.$ac_objext \ 7714 conftest$ac_exeext conftest.$ac_ext 7715fi 7716 7717 7718 CFLAGS="$xorg_testset_save_CFLAGS" 7719 7720 eval supported=\$$cacheid 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7722$as_echo "$supported" >&6; } 7723 if test "$supported" = "yes" ; then 7724 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7725 found="yes" 7726 fi 7727 fi 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743xorg_testset_save_CFLAGS="$CFLAGS" 7744 7745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7750 $as_echo_n "(cached) " >&6 7751else 7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7753/* end confdefs.h. */ 7754int i; 7755_ACEOF 7756if ac_fn_c_try_compile "$LINENO"; then : 7757 xorg_cv_cc_flag_unknown_warning_option=yes 7758else 7759 xorg_cv_cc_flag_unknown_warning_option=no 7760fi 7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7762fi 7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7766 CFLAGS="$xorg_testset_save_CFLAGS" 7767fi 7768 7769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7772 fi 7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781int i; 7782_ACEOF 7783if ac_fn_c_try_compile "$LINENO"; then : 7784 xorg_cv_cc_flag_unused_command_line_argument=yes 7785else 7786 xorg_cv_cc_flag_unused_command_line_argument=no 7787fi 7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7789fi 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7793 CFLAGS="$xorg_testset_save_CFLAGS" 7794fi 7795 7796found="no" 7797 7798 if test $found = "no" ; then 7799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7801 fi 7802 7803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7805 fi 7806 7807 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 7808 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 7810$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 7811 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 7812 if eval \${$cacheid+:} false; then : 7813 $as_echo_n "(cached) " >&6 7814else 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816/* end confdefs.h. */ 7817int i; 7818int 7819main () 7820{ 7821 7822 ; 7823 return 0; 7824} 7825_ACEOF 7826if ac_fn_c_try_link "$LINENO"; then : 7827 eval $cacheid=yes 7828else 7829 eval $cacheid=no 7830fi 7831rm -f core conftest.err conftest.$ac_objext \ 7832 conftest$ac_exeext conftest.$ac_ext 7833fi 7834 7835 7836 CFLAGS="$xorg_testset_save_CFLAGS" 7837 7838 eval supported=\$$cacheid 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7840$as_echo "$supported" >&6; } 7841 if test "$supported" = "yes" ; then 7842 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 7843 found="yes" 7844 fi 7845 fi 7846 7847 if test $found = "no" ; then 7848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7850 fi 7851 7852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7854 fi 7855 7856 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7857 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 7859$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 7860 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 7861 if eval \${$cacheid+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863else 7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7865/* end confdefs.h. */ 7866int i; 7867int 7868main () 7869{ 7870 7871 ; 7872 return 0; 7873} 7874_ACEOF 7875if ac_fn_c_try_link "$LINENO"; then : 7876 eval $cacheid=yes 7877else 7878 eval $cacheid=no 7879fi 7880rm -f core conftest.err conftest.$ac_objext \ 7881 conftest$ac_exeext conftest.$ac_ext 7882fi 7883 7884 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886 7887 eval supported=\$$cacheid 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7889$as_echo "$supported" >&6; } 7890 if test "$supported" = "yes" ; then 7891 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7892 found="yes" 7893 fi 7894 fi 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910xorg_testset_save_CFLAGS="$CFLAGS" 7911 7912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7917 $as_echo_n "(cached) " >&6 7918else 7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7920/* end confdefs.h. */ 7921int i; 7922_ACEOF 7923if ac_fn_c_try_compile "$LINENO"; then : 7924 xorg_cv_cc_flag_unknown_warning_option=yes 7925else 7926 xorg_cv_cc_flag_unknown_warning_option=no 7927fi 7928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7929fi 7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7933 CFLAGS="$xorg_testset_save_CFLAGS" 7934fi 7935 7936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7939 fi 7940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949_ACEOF 7950if ac_fn_c_try_compile "$LINENO"; then : 7951 xorg_cv_cc_flag_unused_command_line_argument=yes 7952else 7953 xorg_cv_cc_flag_unused_command_line_argument=no 7954fi 7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7956fi 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961fi 7962 7963found="no" 7964 7965 if test $found = "no" ; then 7966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7968 fi 7969 7970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7972 fi 7973 7974 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 7975 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 7977$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 7978 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 7979 if eval \${$cacheid+:} false; then : 7980 $as_echo_n "(cached) " >&6 7981else 7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7983/* end confdefs.h. */ 7984int i; 7985int 7986main () 7987{ 7988 7989 ; 7990 return 0; 7991} 7992_ACEOF 7993if ac_fn_c_try_link "$LINENO"; then : 7994 eval $cacheid=yes 7995else 7996 eval $cacheid=no 7997fi 7998rm -f core conftest.err conftest.$ac_objext \ 7999 conftest$ac_exeext conftest.$ac_ext 8000fi 8001 8002 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004 8005 eval supported=\$$cacheid 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8007$as_echo "$supported" >&6; } 8008 if test "$supported" = "yes" ; then 8009 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8010 found="yes" 8011 fi 8012 fi 8013 8014 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8015else 8016{ $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 8017$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;} 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031xorg_testset_save_CFLAGS="$CFLAGS" 8032 8033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039else 8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8041/* end confdefs.h. */ 8042int i; 8043_ACEOF 8044if ac_fn_c_try_compile "$LINENO"; then : 8045 xorg_cv_cc_flag_unknown_warning_option=yes 8046else 8047 xorg_cv_cc_flag_unknown_warning_option=no 8048fi 8049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8050fi 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8054 CFLAGS="$xorg_testset_save_CFLAGS" 8055fi 8056 8057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060 fi 8061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8065 $as_echo_n "(cached) " >&6 8066else 8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8068/* end confdefs.h. */ 8069int i; 8070_ACEOF 8071if ac_fn_c_try_compile "$LINENO"; then : 8072 xorg_cv_cc_flag_unused_command_line_argument=yes 8073else 8074 xorg_cv_cc_flag_unused_command_line_argument=no 8075fi 8076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8077fi 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8081 CFLAGS="$xorg_testset_save_CFLAGS" 8082fi 8083 8084found="no" 8085 8086 if test $found = "no" ; then 8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8089 fi 8090 8091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8093 fi 8094 8095 CFLAGS="$CFLAGS -Wimplicit" 8096 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8098$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8099 cacheid=xorg_cv_cc_flag__Wimplicit 8100 if eval \${$cacheid+:} false; then : 8101 $as_echo_n "(cached) " >&6 8102else 8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104/* end confdefs.h. */ 8105int i; 8106int 8107main () 8108{ 8109 8110 ; 8111 return 0; 8112} 8113_ACEOF 8114if ac_fn_c_try_link "$LINENO"; then : 8115 eval $cacheid=yes 8116else 8117 eval $cacheid=no 8118fi 8119rm -f core conftest.err conftest.$ac_objext \ 8120 conftest$ac_exeext conftest.$ac_ext 8121fi 8122 8123 8124 CFLAGS="$xorg_testset_save_CFLAGS" 8125 8126 eval supported=\$$cacheid 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8128$as_echo "$supported" >&6; } 8129 if test "$supported" = "yes" ; then 8130 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8131 found="yes" 8132 fi 8133 fi 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149xorg_testset_save_CFLAGS="$CFLAGS" 8150 8151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160int i; 8161_ACEOF 8162if ac_fn_c_try_compile "$LINENO"; then : 8163 xorg_cv_cc_flag_unknown_warning_option=yes 8164else 8165 xorg_cv_cc_flag_unknown_warning_option=no 8166fi 8167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8168fi 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8172 CFLAGS="$xorg_testset_save_CFLAGS" 8173fi 8174 8175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8178 fi 8179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8183 $as_echo_n "(cached) " >&6 8184else 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187int i; 8188_ACEOF 8189if ac_fn_c_try_compile "$LINENO"; then : 8190 xorg_cv_cc_flag_unused_command_line_argument=yes 8191else 8192 xorg_cv_cc_flag_unused_command_line_argument=no 8193fi 8194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8195fi 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8199 CFLAGS="$xorg_testset_save_CFLAGS" 8200fi 8201 8202found="no" 8203 8204 if test $found = "no" ; then 8205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8207 fi 8208 8209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8211 fi 8212 8213 CFLAGS="$CFLAGS -Wnonnull" 8214 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8216$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8217 cacheid=xorg_cv_cc_flag__Wnonnull 8218 if eval \${$cacheid+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222/* end confdefs.h. */ 8223int i; 8224int 8225main () 8226{ 8227 8228 ; 8229 return 0; 8230} 8231_ACEOF 8232if ac_fn_c_try_link "$LINENO"; then : 8233 eval $cacheid=yes 8234else 8235 eval $cacheid=no 8236fi 8237rm -f core conftest.err conftest.$ac_objext \ 8238 conftest$ac_exeext conftest.$ac_ext 8239fi 8240 8241 8242 CFLAGS="$xorg_testset_save_CFLAGS" 8243 8244 eval supported=\$$cacheid 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8246$as_echo "$supported" >&6; } 8247 if test "$supported" = "yes" ; then 8248 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8249 found="yes" 8250 fi 8251 fi 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267xorg_testset_save_CFLAGS="$CFLAGS" 8268 8269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8277/* end confdefs.h. */ 8278int i; 8279_ACEOF 8280if ac_fn_c_try_compile "$LINENO"; then : 8281 xorg_cv_cc_flag_unknown_warning_option=yes 8282else 8283 xorg_cv_cc_flag_unknown_warning_option=no 8284fi 8285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8286fi 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8290 CFLAGS="$xorg_testset_save_CFLAGS" 8291fi 8292 8293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8296 fi 8297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8301 $as_echo_n "(cached) " >&6 8302else 8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8304/* end confdefs.h. */ 8305int i; 8306_ACEOF 8307if ac_fn_c_try_compile "$LINENO"; then : 8308 xorg_cv_cc_flag_unused_command_line_argument=yes 8309else 8310 xorg_cv_cc_flag_unused_command_line_argument=no 8311fi 8312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8313fi 8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8317 CFLAGS="$xorg_testset_save_CFLAGS" 8318fi 8319 8320found="no" 8321 8322 if test $found = "no" ; then 8323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8325 fi 8326 8327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8329 fi 8330 8331 CFLAGS="$CFLAGS -Winit-self" 8332 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8334$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8335 cacheid=xorg_cv_cc_flag__Winit_self 8336 if eval \${$cacheid+:} false; then : 8337 $as_echo_n "(cached) " >&6 8338else 8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341int i; 8342int 8343main () 8344{ 8345 8346 ; 8347 return 0; 8348} 8349_ACEOF 8350if ac_fn_c_try_link "$LINENO"; then : 8351 eval $cacheid=yes 8352else 8353 eval $cacheid=no 8354fi 8355rm -f core conftest.err conftest.$ac_objext \ 8356 conftest$ac_exeext conftest.$ac_ext 8357fi 8358 8359 8360 CFLAGS="$xorg_testset_save_CFLAGS" 8361 8362 eval supported=\$$cacheid 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8364$as_echo "$supported" >&6; } 8365 if test "$supported" = "yes" ; then 8366 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8367 found="yes" 8368 fi 8369 fi 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385xorg_testset_save_CFLAGS="$CFLAGS" 8386 8387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393else 8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8395/* end confdefs.h. */ 8396int i; 8397_ACEOF 8398if ac_fn_c_try_compile "$LINENO"; then : 8399 xorg_cv_cc_flag_unknown_warning_option=yes 8400else 8401 xorg_cv_cc_flag_unknown_warning_option=no 8402fi 8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8404fi 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8408 CFLAGS="$xorg_testset_save_CFLAGS" 8409fi 8410 8411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8414 fi 8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8419 $as_echo_n "(cached) " >&6 8420else 8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8422/* end confdefs.h. */ 8423int i; 8424_ACEOF 8425if ac_fn_c_try_compile "$LINENO"; then : 8426 xorg_cv_cc_flag_unused_command_line_argument=yes 8427else 8428 xorg_cv_cc_flag_unused_command_line_argument=no 8429fi 8430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8431fi 8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8435 CFLAGS="$xorg_testset_save_CFLAGS" 8436fi 8437 8438found="no" 8439 8440 if test $found = "no" ; then 8441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8443 fi 8444 8445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8447 fi 8448 8449 CFLAGS="$CFLAGS -Wmain" 8450 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8452$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8453 cacheid=xorg_cv_cc_flag__Wmain 8454 if eval \${$cacheid+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456else 8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458/* end confdefs.h. */ 8459int i; 8460int 8461main () 8462{ 8463 8464 ; 8465 return 0; 8466} 8467_ACEOF 8468if ac_fn_c_try_link "$LINENO"; then : 8469 eval $cacheid=yes 8470else 8471 eval $cacheid=no 8472fi 8473rm -f core conftest.err conftest.$ac_objext \ 8474 conftest$ac_exeext conftest.$ac_ext 8475fi 8476 8477 8478 CFLAGS="$xorg_testset_save_CFLAGS" 8479 8480 eval supported=\$$cacheid 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8482$as_echo "$supported" >&6; } 8483 if test "$supported" = "yes" ; then 8484 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8485 found="yes" 8486 fi 8487 fi 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503xorg_testset_save_CFLAGS="$CFLAGS" 8504 8505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8510 $as_echo_n "(cached) " >&6 8511else 8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513/* end confdefs.h. */ 8514int i; 8515_ACEOF 8516if ac_fn_c_try_compile "$LINENO"; then : 8517 xorg_cv_cc_flag_unknown_warning_option=yes 8518else 8519 xorg_cv_cc_flag_unknown_warning_option=no 8520fi 8521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8522fi 8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8526 CFLAGS="$xorg_testset_save_CFLAGS" 8527fi 8528 8529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8532 fi 8533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540/* end confdefs.h. */ 8541int i; 8542_ACEOF 8543if ac_fn_c_try_compile "$LINENO"; then : 8544 xorg_cv_cc_flag_unused_command_line_argument=yes 8545else 8546 xorg_cv_cc_flag_unused_command_line_argument=no 8547fi 8548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8549fi 8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8553 CFLAGS="$xorg_testset_save_CFLAGS" 8554fi 8555 8556found="no" 8557 8558 if test $found = "no" ; then 8559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8561 fi 8562 8563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8565 fi 8566 8567 CFLAGS="$CFLAGS -Wmissing-braces" 8568 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8570$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8571 cacheid=xorg_cv_cc_flag__Wmissing_braces 8572 if eval \${$cacheid+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576/* end confdefs.h. */ 8577int i; 8578int 8579main () 8580{ 8581 8582 ; 8583 return 0; 8584} 8585_ACEOF 8586if ac_fn_c_try_link "$LINENO"; then : 8587 eval $cacheid=yes 8588else 8589 eval $cacheid=no 8590fi 8591rm -f core conftest.err conftest.$ac_objext \ 8592 conftest$ac_exeext conftest.$ac_ext 8593fi 8594 8595 8596 CFLAGS="$xorg_testset_save_CFLAGS" 8597 8598 eval supported=\$$cacheid 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8600$as_echo "$supported" >&6; } 8601 if test "$supported" = "yes" ; then 8602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8603 found="yes" 8604 fi 8605 fi 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621xorg_testset_save_CFLAGS="$CFLAGS" 8622 8623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8628 $as_echo_n "(cached) " >&6 8629else 8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8631/* end confdefs.h. */ 8632int i; 8633_ACEOF 8634if ac_fn_c_try_compile "$LINENO"; then : 8635 xorg_cv_cc_flag_unknown_warning_option=yes 8636else 8637 xorg_cv_cc_flag_unknown_warning_option=no 8638fi 8639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8640fi 8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8644 CFLAGS="$xorg_testset_save_CFLAGS" 8645fi 8646 8647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8650 fi 8651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659int i; 8660_ACEOF 8661if ac_fn_c_try_compile "$LINENO"; then : 8662 xorg_cv_cc_flag_unused_command_line_argument=yes 8663else 8664 xorg_cv_cc_flag_unused_command_line_argument=no 8665fi 8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8667fi 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8671 CFLAGS="$xorg_testset_save_CFLAGS" 8672fi 8673 8674found="no" 8675 8676 if test $found = "no" ; then 8677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8679 fi 8680 8681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8683 fi 8684 8685 CFLAGS="$CFLAGS -Wsequence-point" 8686 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8688$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8689 cacheid=xorg_cv_cc_flag__Wsequence_point 8690 if eval \${$cacheid+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695int i; 8696int 8697main () 8698{ 8699 8700 ; 8701 return 0; 8702} 8703_ACEOF 8704if ac_fn_c_try_link "$LINENO"; then : 8705 eval $cacheid=yes 8706else 8707 eval $cacheid=no 8708fi 8709rm -f core conftest.err conftest.$ac_objext \ 8710 conftest$ac_exeext conftest.$ac_ext 8711fi 8712 8713 8714 CFLAGS="$xorg_testset_save_CFLAGS" 8715 8716 eval supported=\$$cacheid 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8718$as_echo "$supported" >&6; } 8719 if test "$supported" = "yes" ; then 8720 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8721 found="yes" 8722 fi 8723 fi 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739xorg_testset_save_CFLAGS="$CFLAGS" 8740 8741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8749/* end confdefs.h. */ 8750int i; 8751_ACEOF 8752if ac_fn_c_try_compile "$LINENO"; then : 8753 xorg_cv_cc_flag_unknown_warning_option=yes 8754else 8755 xorg_cv_cc_flag_unknown_warning_option=no 8756fi 8757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8758fi 8759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8762 CFLAGS="$xorg_testset_save_CFLAGS" 8763fi 8764 8765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8768 fi 8769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777int i; 8778_ACEOF 8779if ac_fn_c_try_compile "$LINENO"; then : 8780 xorg_cv_cc_flag_unused_command_line_argument=yes 8781else 8782 xorg_cv_cc_flag_unused_command_line_argument=no 8783fi 8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8785fi 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790fi 8791 8792found="no" 8793 8794 if test $found = "no" ; then 8795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8797 fi 8798 8799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8801 fi 8802 8803 CFLAGS="$CFLAGS -Wreturn-type" 8804 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 8806$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 8807 cacheid=xorg_cv_cc_flag__Wreturn_type 8808 if eval \${$cacheid+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813int i; 8814int 8815main () 8816{ 8817 8818 ; 8819 return 0; 8820} 8821_ACEOF 8822if ac_fn_c_try_link "$LINENO"; then : 8823 eval $cacheid=yes 8824else 8825 eval $cacheid=no 8826fi 8827rm -f core conftest.err conftest.$ac_objext \ 8828 conftest$ac_exeext conftest.$ac_ext 8829fi 8830 8831 8832 CFLAGS="$xorg_testset_save_CFLAGS" 8833 8834 eval supported=\$$cacheid 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8836$as_echo "$supported" >&6; } 8837 if test "$supported" = "yes" ; then 8838 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 8839 found="yes" 8840 fi 8841 fi 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857xorg_testset_save_CFLAGS="$CFLAGS" 8858 8859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865else 8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8867/* end confdefs.h. */ 8868int i; 8869_ACEOF 8870if ac_fn_c_try_compile "$LINENO"; then : 8871 xorg_cv_cc_flag_unknown_warning_option=yes 8872else 8873 xorg_cv_cc_flag_unknown_warning_option=no 8874fi 8875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8876fi 8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8880 CFLAGS="$xorg_testset_save_CFLAGS" 8881fi 8882 8883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8886 fi 8887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892else 8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896_ACEOF 8897if ac_fn_c_try_compile "$LINENO"; then : 8898 xorg_cv_cc_flag_unused_command_line_argument=yes 8899else 8900 xorg_cv_cc_flag_unused_command_line_argument=no 8901fi 8902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8903fi 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8907 CFLAGS="$xorg_testset_save_CFLAGS" 8908fi 8909 8910found="no" 8911 8912 if test $found = "no" ; then 8913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8915 fi 8916 8917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8919 fi 8920 8921 CFLAGS="$CFLAGS -Wtrigraphs" 8922 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 8924$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 8925 cacheid=xorg_cv_cc_flag__Wtrigraphs 8926 if eval \${$cacheid+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931int i; 8932int 8933main () 8934{ 8935 8936 ; 8937 return 0; 8938} 8939_ACEOF 8940if ac_fn_c_try_link "$LINENO"; then : 8941 eval $cacheid=yes 8942else 8943 eval $cacheid=no 8944fi 8945rm -f core conftest.err conftest.$ac_objext \ 8946 conftest$ac_exeext conftest.$ac_ext 8947fi 8948 8949 8950 CFLAGS="$xorg_testset_save_CFLAGS" 8951 8952 eval supported=\$$cacheid 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8954$as_echo "$supported" >&6; } 8955 if test "$supported" = "yes" ; then 8956 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 8957 found="yes" 8958 fi 8959 fi 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975xorg_testset_save_CFLAGS="$CFLAGS" 8976 8977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8982 $as_echo_n "(cached) " >&6 8983else 8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8985/* end confdefs.h. */ 8986int i; 8987_ACEOF 8988if ac_fn_c_try_compile "$LINENO"; then : 8989 xorg_cv_cc_flag_unknown_warning_option=yes 8990else 8991 xorg_cv_cc_flag_unknown_warning_option=no 8992fi 8993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8994fi 8995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8998 CFLAGS="$xorg_testset_save_CFLAGS" 8999fi 9000 9001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9004 fi 9005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013int i; 9014_ACEOF 9015if ac_fn_c_try_compile "$LINENO"; then : 9016 xorg_cv_cc_flag_unused_command_line_argument=yes 9017else 9018 xorg_cv_cc_flag_unused_command_line_argument=no 9019fi 9020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9021fi 9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9025 CFLAGS="$xorg_testset_save_CFLAGS" 9026fi 9027 9028found="no" 9029 9030 if test $found = "no" ; then 9031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033 fi 9034 9035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9037 fi 9038 9039 CFLAGS="$CFLAGS -Warray-bounds" 9040 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9042$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9043 cacheid=xorg_cv_cc_flag__Warray_bounds 9044 if eval \${$cacheid+:} false; then : 9045 $as_echo_n "(cached) " >&6 9046else 9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048/* end confdefs.h. */ 9049int i; 9050int 9051main () 9052{ 9053 9054 ; 9055 return 0; 9056} 9057_ACEOF 9058if ac_fn_c_try_link "$LINENO"; then : 9059 eval $cacheid=yes 9060else 9061 eval $cacheid=no 9062fi 9063rm -f core conftest.err conftest.$ac_objext \ 9064 conftest$ac_exeext conftest.$ac_ext 9065fi 9066 9067 9068 CFLAGS="$xorg_testset_save_CFLAGS" 9069 9070 eval supported=\$$cacheid 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9072$as_echo "$supported" >&6; } 9073 if test "$supported" = "yes" ; then 9074 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9075 found="yes" 9076 fi 9077 fi 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093xorg_testset_save_CFLAGS="$CFLAGS" 9094 9095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9100 $as_echo_n "(cached) " >&6 9101else 9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9103/* end confdefs.h. */ 9104int i; 9105_ACEOF 9106if ac_fn_c_try_compile "$LINENO"; then : 9107 xorg_cv_cc_flag_unknown_warning_option=yes 9108else 9109 xorg_cv_cc_flag_unknown_warning_option=no 9110fi 9111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9112fi 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9116 CFLAGS="$xorg_testset_save_CFLAGS" 9117fi 9118 9119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9122 fi 9123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128else 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131int i; 9132_ACEOF 9133if ac_fn_c_try_compile "$LINENO"; then : 9134 xorg_cv_cc_flag_unused_command_line_argument=yes 9135else 9136 xorg_cv_cc_flag_unused_command_line_argument=no 9137fi 9138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9139fi 9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9143 CFLAGS="$xorg_testset_save_CFLAGS" 9144fi 9145 9146found="no" 9147 9148 if test $found = "no" ; then 9149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9151 fi 9152 9153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9155 fi 9156 9157 CFLAGS="$CFLAGS -Wwrite-strings" 9158 9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9160$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9161 cacheid=xorg_cv_cc_flag__Wwrite_strings 9162 if eval \${$cacheid+:} false; then : 9163 $as_echo_n "(cached) " >&6 9164else 9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9166/* end confdefs.h. */ 9167int i; 9168int 9169main () 9170{ 9171 9172 ; 9173 return 0; 9174} 9175_ACEOF 9176if ac_fn_c_try_link "$LINENO"; then : 9177 eval $cacheid=yes 9178else 9179 eval $cacheid=no 9180fi 9181rm -f core conftest.err conftest.$ac_objext \ 9182 conftest$ac_exeext conftest.$ac_ext 9183fi 9184 9185 9186 CFLAGS="$xorg_testset_save_CFLAGS" 9187 9188 eval supported=\$$cacheid 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9190$as_echo "$supported" >&6; } 9191 if test "$supported" = "yes" ; then 9192 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9193 found="yes" 9194 fi 9195 fi 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211xorg_testset_save_CFLAGS="$CFLAGS" 9212 9213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9218 $as_echo_n "(cached) " >&6 9219else 9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9221/* end confdefs.h. */ 9222int i; 9223_ACEOF 9224if ac_fn_c_try_compile "$LINENO"; then : 9225 xorg_cv_cc_flag_unknown_warning_option=yes 9226else 9227 xorg_cv_cc_flag_unknown_warning_option=no 9228fi 9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9230fi 9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9234 CFLAGS="$xorg_testset_save_CFLAGS" 9235fi 9236 9237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9240 fi 9241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9245 $as_echo_n "(cached) " >&6 9246else 9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9248/* end confdefs.h. */ 9249int i; 9250_ACEOF 9251if ac_fn_c_try_compile "$LINENO"; then : 9252 xorg_cv_cc_flag_unused_command_line_argument=yes 9253else 9254 xorg_cv_cc_flag_unused_command_line_argument=no 9255fi 9256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9257fi 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9261 CFLAGS="$xorg_testset_save_CFLAGS" 9262fi 9263 9264found="no" 9265 9266 if test $found = "no" ; then 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 fi 9270 9271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9273 fi 9274 9275 CFLAGS="$CFLAGS -Waddress" 9276 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9278$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9279 cacheid=xorg_cv_cc_flag__Waddress 9280 if eval \${$cacheid+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282else 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284/* end confdefs.h. */ 9285int i; 9286int 9287main () 9288{ 9289 9290 ; 9291 return 0; 9292} 9293_ACEOF 9294if ac_fn_c_try_link "$LINENO"; then : 9295 eval $cacheid=yes 9296else 9297 eval $cacheid=no 9298fi 9299rm -f core conftest.err conftest.$ac_objext \ 9300 conftest$ac_exeext conftest.$ac_ext 9301fi 9302 9303 9304 CFLAGS="$xorg_testset_save_CFLAGS" 9305 9306 eval supported=\$$cacheid 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9308$as_echo "$supported" >&6; } 9309 if test "$supported" = "yes" ; then 9310 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9311 found="yes" 9312 fi 9313 fi 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329xorg_testset_save_CFLAGS="$CFLAGS" 9330 9331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9336 $as_echo_n "(cached) " >&6 9337else 9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9339/* end confdefs.h. */ 9340int i; 9341_ACEOF 9342if ac_fn_c_try_compile "$LINENO"; then : 9343 xorg_cv_cc_flag_unknown_warning_option=yes 9344else 9345 xorg_cv_cc_flag_unknown_warning_option=no 9346fi 9347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9348fi 9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9352 CFLAGS="$xorg_testset_save_CFLAGS" 9353fi 9354 9355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9358 fi 9359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9363 $as_echo_n "(cached) " >&6 9364else 9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9366/* end confdefs.h. */ 9367int i; 9368_ACEOF 9369if ac_fn_c_try_compile "$LINENO"; then : 9370 xorg_cv_cc_flag_unused_command_line_argument=yes 9371else 9372 xorg_cv_cc_flag_unused_command_line_argument=no 9373fi 9374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9375fi 9376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9379 CFLAGS="$xorg_testset_save_CFLAGS" 9380fi 9381 9382found="no" 9383 9384 if test $found = "no" ; then 9385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9387 fi 9388 9389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9391 fi 9392 9393 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9394 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9396$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9397 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9398 if eval \${$cacheid+:} false; then : 9399 $as_echo_n "(cached) " >&6 9400else 9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9402/* end confdefs.h. */ 9403int i; 9404int 9405main () 9406{ 9407 9408 ; 9409 return 0; 9410} 9411_ACEOF 9412if ac_fn_c_try_link "$LINENO"; then : 9413 eval $cacheid=yes 9414else 9415 eval $cacheid=no 9416fi 9417rm -f core conftest.err conftest.$ac_objext \ 9418 conftest$ac_exeext conftest.$ac_ext 9419fi 9420 9421 9422 CFLAGS="$xorg_testset_save_CFLAGS" 9423 9424 eval supported=\$$cacheid 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9426$as_echo "$supported" >&6; } 9427 if test "$supported" = "yes" ; then 9428 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9429 found="yes" 9430 fi 9431 fi 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447xorg_testset_save_CFLAGS="$CFLAGS" 9448 9449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9454 $as_echo_n "(cached) " >&6 9455else 9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9457/* end confdefs.h. */ 9458int i; 9459_ACEOF 9460if ac_fn_c_try_compile "$LINENO"; then : 9461 xorg_cv_cc_flag_unknown_warning_option=yes 9462else 9463 xorg_cv_cc_flag_unknown_warning_option=no 9464fi 9465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9466fi 9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9470 CFLAGS="$xorg_testset_save_CFLAGS" 9471fi 9472 9473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9476 fi 9477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9481 $as_echo_n "(cached) " >&6 9482else 9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484/* end confdefs.h. */ 9485int i; 9486_ACEOF 9487if ac_fn_c_try_compile "$LINENO"; then : 9488 xorg_cv_cc_flag_unused_command_line_argument=yes 9489else 9490 xorg_cv_cc_flag_unused_command_line_argument=no 9491fi 9492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9493fi 9494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9497 CFLAGS="$xorg_testset_save_CFLAGS" 9498fi 9499 9500found="no" 9501 9502 if test $found = "no" ; then 9503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9505 fi 9506 9507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9509 fi 9510 9511 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9512 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9514$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9515 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9516 if eval \${$cacheid+:} false; then : 9517 $as_echo_n "(cached) " >&6 9518else 9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9520/* end confdefs.h. */ 9521int i; 9522int 9523main () 9524{ 9525 9526 ; 9527 return 0; 9528} 9529_ACEOF 9530if ac_fn_c_try_link "$LINENO"; then : 9531 eval $cacheid=yes 9532else 9533 eval $cacheid=no 9534fi 9535rm -f core conftest.err conftest.$ac_objext \ 9536 conftest$ac_exeext conftest.$ac_ext 9537fi 9538 9539 9540 CFLAGS="$xorg_testset_save_CFLAGS" 9541 9542 eval supported=\$$cacheid 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9544$as_echo "$supported" >&6; } 9545 if test "$supported" = "yes" ; then 9546 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9547 found="yes" 9548 fi 9549 fi 9550 9551 9552fi 9553 9554 9555 9556 9557 9558 9559 9560 CWARNFLAGS="$BASE_CFLAGS" 9561 if test "x$GCC" = xyes ; then 9562 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9563 fi 9564 9565 9566 9567 9568 9569 9570 9571 9572# Check whether --enable-strict-compilation was given. 9573if test "${enable_strict_compilation+set}" = set; then : 9574 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9575else 9576 STRICT_COMPILE=no 9577fi 9578 9579 9580 9581 9582 9583 9584STRICT_CFLAGS="" 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598xorg_testset_save_CFLAGS="$CFLAGS" 9599 9600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9605 $as_echo_n "(cached) " >&6 9606else 9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608/* end confdefs.h. */ 9609int i; 9610_ACEOF 9611if ac_fn_c_try_compile "$LINENO"; then : 9612 xorg_cv_cc_flag_unknown_warning_option=yes 9613else 9614 xorg_cv_cc_flag_unknown_warning_option=no 9615fi 9616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9617fi 9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9621 CFLAGS="$xorg_testset_save_CFLAGS" 9622fi 9623 9624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9627 fi 9628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9632 $as_echo_n "(cached) " >&6 9633else 9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9635/* end confdefs.h. */ 9636int i; 9637_ACEOF 9638if ac_fn_c_try_compile "$LINENO"; then : 9639 xorg_cv_cc_flag_unused_command_line_argument=yes 9640else 9641 xorg_cv_cc_flag_unused_command_line_argument=no 9642fi 9643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9644fi 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9648 CFLAGS="$xorg_testset_save_CFLAGS" 9649fi 9650 9651found="no" 9652 9653 if test $found = "no" ; then 9654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656 fi 9657 9658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660 fi 9661 9662 CFLAGS="$CFLAGS -pedantic" 9663 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9665$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9666 cacheid=xorg_cv_cc_flag__pedantic 9667 if eval \${$cacheid+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9671/* end confdefs.h. */ 9672int i; 9673int 9674main () 9675{ 9676 9677 ; 9678 return 0; 9679} 9680_ACEOF 9681if ac_fn_c_try_link "$LINENO"; then : 9682 eval $cacheid=yes 9683else 9684 eval $cacheid=no 9685fi 9686rm -f core conftest.err conftest.$ac_objext \ 9687 conftest$ac_exeext conftest.$ac_ext 9688fi 9689 9690 9691 CFLAGS="$xorg_testset_save_CFLAGS" 9692 9693 eval supported=\$$cacheid 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9695$as_echo "$supported" >&6; } 9696 if test "$supported" = "yes" ; then 9697 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9698 found="yes" 9699 fi 9700 fi 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716xorg_testset_save_CFLAGS="$CFLAGS" 9717 9718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9723 $as_echo_n "(cached) " >&6 9724else 9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9726/* end confdefs.h. */ 9727int i; 9728_ACEOF 9729if ac_fn_c_try_compile "$LINENO"; then : 9730 xorg_cv_cc_flag_unknown_warning_option=yes 9731else 9732 xorg_cv_cc_flag_unknown_warning_option=no 9733fi 9734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9735fi 9736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9739 CFLAGS="$xorg_testset_save_CFLAGS" 9740fi 9741 9742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9745 fi 9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753/* end confdefs.h. */ 9754int i; 9755_ACEOF 9756if ac_fn_c_try_compile "$LINENO"; then : 9757 xorg_cv_cc_flag_unused_command_line_argument=yes 9758else 9759 xorg_cv_cc_flag_unused_command_line_argument=no 9760fi 9761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9762fi 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9766 CFLAGS="$xorg_testset_save_CFLAGS" 9767fi 9768 9769found="no" 9770 9771 if test $found = "no" ; then 9772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9774 fi 9775 9776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9778 fi 9779 9780 CFLAGS="$CFLAGS -Werror" 9781 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9783$as_echo_n "checking if $CC supports -Werror... " >&6; } 9784 cacheid=xorg_cv_cc_flag__Werror 9785 if eval \${$cacheid+:} false; then : 9786 $as_echo_n "(cached) " >&6 9787else 9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9789/* end confdefs.h. */ 9790int i; 9791int 9792main () 9793{ 9794 9795 ; 9796 return 0; 9797} 9798_ACEOF 9799if ac_fn_c_try_link "$LINENO"; then : 9800 eval $cacheid=yes 9801else 9802 eval $cacheid=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext \ 9805 conftest$ac_exeext conftest.$ac_ext 9806fi 9807 9808 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810 9811 eval supported=\$$cacheid 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9813$as_echo "$supported" >&6; } 9814 if test "$supported" = "yes" ; then 9815 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 9816 found="yes" 9817 fi 9818 fi 9819 9820 if test $found = "no" ; then 9821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9823 fi 9824 9825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9827 fi 9828 9829 CFLAGS="$CFLAGS -errwarn" 9830 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 9832$as_echo_n "checking if $CC supports -errwarn... " >&6; } 9833 cacheid=xorg_cv_cc_flag__errwarn 9834 if eval \${$cacheid+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836else 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839int i; 9840int 9841main () 9842{ 9843 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848if ac_fn_c_try_link "$LINENO"; then : 9849 eval $cacheid=yes 9850else 9851 eval $cacheid=no 9852fi 9853rm -f core conftest.err conftest.$ac_objext \ 9854 conftest$ac_exeext conftest.$ac_ext 9855fi 9856 9857 9858 CFLAGS="$xorg_testset_save_CFLAGS" 9859 9860 eval supported=\$$cacheid 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9862$as_echo "$supported" >&6; } 9863 if test "$supported" = "yes" ; then 9864 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 9865 found="yes" 9866 fi 9867 fi 9868 9869 9870 9871# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 9872# activate it with -Werror, so we add it here explicitly. 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886xorg_testset_save_CFLAGS="$CFLAGS" 9887 9888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9893 $as_echo_n "(cached) " >&6 9894else 9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896/* end confdefs.h. */ 9897int i; 9898_ACEOF 9899if ac_fn_c_try_compile "$LINENO"; then : 9900 xorg_cv_cc_flag_unknown_warning_option=yes 9901else 9902 xorg_cv_cc_flag_unknown_warning_option=no 9903fi 9904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9905fi 9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9909 CFLAGS="$xorg_testset_save_CFLAGS" 9910fi 9911 9912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9915 fi 9916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9920 $as_echo_n "(cached) " >&6 9921else 9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923/* end confdefs.h. */ 9924int i; 9925_ACEOF 9926if ac_fn_c_try_compile "$LINENO"; then : 9927 xorg_cv_cc_flag_unused_command_line_argument=yes 9928else 9929 xorg_cv_cc_flag_unused_command_line_argument=no 9930fi 9931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9932fi 9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9936 CFLAGS="$xorg_testset_save_CFLAGS" 9937fi 9938 9939found="no" 9940 9941 if test $found = "no" ; then 9942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9944 fi 9945 9946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9948 fi 9949 9950 CFLAGS="$CFLAGS -Werror=attributes" 9951 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 9953$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 9954 cacheid=xorg_cv_cc_flag__Werror_attributes 9955 if eval \${$cacheid+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957else 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960int i; 9961int 9962main () 9963{ 9964 9965 ; 9966 return 0; 9967} 9968_ACEOF 9969if ac_fn_c_try_link "$LINENO"; then : 9970 eval $cacheid=yes 9971else 9972 eval $cacheid=no 9973fi 9974rm -f core conftest.err conftest.$ac_objext \ 9975 conftest$ac_exeext conftest.$ac_ext 9976fi 9977 9978 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980 9981 eval supported=\$$cacheid 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9983$as_echo "$supported" >&6; } 9984 if test "$supported" = "yes" ; then 9985 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 9986 found="yes" 9987 fi 9988 fi 9989 9990 9991 9992if test "x$STRICT_COMPILE" = "xyes"; then 9993 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 9994 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 9995fi 9996 9997 9998 9999 10000 10001 10002cat >>confdefs.h <<_ACEOF 10003#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10004_ACEOF 10005 10006 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10007 if test "x$PVM" = "x"; then 10008 PVM="0" 10009 fi 10010 10011cat >>confdefs.h <<_ACEOF 10012#define PACKAGE_VERSION_MINOR $PVM 10013_ACEOF 10014 10015 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10016 if test "x$PVP" = "x"; then 10017 PVP="0" 10018 fi 10019 10020cat >>confdefs.h <<_ACEOF 10021#define PACKAGE_VERSION_PATCHLEVEL $PVP 10022_ACEOF 10023 10024 10025 10026CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10027mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10028|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10029echo 'git directory not found: installing possibly empty changelog.' >&2)" 10030 10031 10032 10033 10034macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10035INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10036mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10037|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10038echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10039 10040 10041 10042 10043 10044 10045if test x$APP_MAN_SUFFIX = x ; then 10046 APP_MAN_SUFFIX=1 10047fi 10048if test x$APP_MAN_DIR = x ; then 10049 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10050fi 10051 10052if test x$LIB_MAN_SUFFIX = x ; then 10053 LIB_MAN_SUFFIX=3 10054fi 10055if test x$LIB_MAN_DIR = x ; then 10056 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10057fi 10058 10059if test x$FILE_MAN_SUFFIX = x ; then 10060 case $host_os in 10061 solaris*) FILE_MAN_SUFFIX=4 ;; 10062 *) FILE_MAN_SUFFIX=5 ;; 10063 esac 10064fi 10065if test x$FILE_MAN_DIR = x ; then 10066 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10067fi 10068 10069if test x$MISC_MAN_SUFFIX = x ; then 10070 case $host_os in 10071 solaris*) MISC_MAN_SUFFIX=5 ;; 10072 *) MISC_MAN_SUFFIX=7 ;; 10073 esac 10074fi 10075if test x$MISC_MAN_DIR = x ; then 10076 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10077fi 10078 10079if test x$DRIVER_MAN_SUFFIX = x ; then 10080 case $host_os in 10081 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10082 *) DRIVER_MAN_SUFFIX=4 ;; 10083 esac 10084fi 10085if test x$DRIVER_MAN_DIR = x ; then 10086 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10087fi 10088 10089if test x$ADMIN_MAN_SUFFIX = x ; then 10090 case $host_os in 10091 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10092 *) ADMIN_MAN_SUFFIX=8 ;; 10093 esac 10094fi 10095if test x$ADMIN_MAN_DIR = x ; then 10096 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10097fi 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113XORG_MAN_PAGE="X Version 11" 10114 10115MAN_SUBSTS="\ 10116 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10117 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10118 -e 's|__xservername__|Xorg|g' \ 10119 -e 's|__xconfigfile__|xorg.conf|g' \ 10120 -e 's|__projectroot__|\$(prefix)|g' \ 10121 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10122 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10123 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10124 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10125 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10126 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10127 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10128 10129 10130 10131# Check whether --enable-silent-rules was given. 10132if test "${enable_silent_rules+set}" = set; then : 10133 enableval=$enable_silent_rules; 10134fi 10135 10136case $enable_silent_rules in # ((( 10137 yes) AM_DEFAULT_VERBOSITY=0;; 10138 no) AM_DEFAULT_VERBOSITY=1;; 10139 *) AM_DEFAULT_VERBOSITY=0;; 10140esac 10141am_make=${MAKE-make} 10142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10143$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10144if ${am_cv_make_support_nested_variables+:} false; then : 10145 $as_echo_n "(cached) " >&6 10146else 10147 if $as_echo 'TRUE=$(BAR$(V)) 10148BAR0=false 10149BAR1=true 10150V=1 10151am__doit: 10152 @$(TRUE) 10153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10154 am_cv_make_support_nested_variables=yes 10155else 10156 am_cv_make_support_nested_variables=no 10157fi 10158fi 10159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10160$as_echo "$am_cv_make_support_nested_variables" >&6; } 10161if test $am_cv_make_support_nested_variables = yes; then 10162 AM_V='$(V)' 10163 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10164else 10165 AM_V=$AM_DEFAULT_VERBOSITY 10166 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10167fi 10168AM_BACKSLASH='\' 10169 10170 10171 10172ac_aux_dir= 10173for ac_dir in . "$srcdir"/.; do 10174 if test -f "$ac_dir/install-sh"; then 10175 ac_aux_dir=$ac_dir 10176 ac_install_sh="$ac_aux_dir/install-sh -c" 10177 break 10178 elif test -f "$ac_dir/install.sh"; then 10179 ac_aux_dir=$ac_dir 10180 ac_install_sh="$ac_aux_dir/install.sh -c" 10181 break 10182 elif test -f "$ac_dir/shtool"; then 10183 ac_aux_dir=$ac_dir 10184 ac_install_sh="$ac_aux_dir/shtool install -c" 10185 break 10186 fi 10187done 10188if test -z "$ac_aux_dir"; then 10189 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 10190fi 10191 10192# These three variables are undocumented and unsupported, 10193# and are intended to be withdrawn in a future Autoconf release. 10194# They can cause serious problems if a builder's source tree is in a directory 10195# whose full name contains unusual characters. 10196ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 10197ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 10198ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 10199 10200 10201 10202# Initialize Automake 10203am__api_version='1.15' 10204 10205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10206$as_echo_n "checking whether build environment is sane... " >&6; } 10207# Reject unsafe characters in $srcdir or the absolute working directory 10208# name. Accept space and tab only in the latter. 10209am_lf=' 10210' 10211case `pwd` in 10212 *[\\\"\#\$\&\'\`$am_lf]*) 10213 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10214esac 10215case $srcdir in 10216 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10217 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10218esac 10219 10220# Do 'set' in a subshell so we don't clobber the current shell's 10221# arguments. Must try -L first in case configure is actually a 10222# symlink; some systems play weird games with the mod time of symlinks 10223# (eg FreeBSD returns the mod time of the symlink's containing 10224# directory). 10225if ( 10226 am_has_slept=no 10227 for am_try in 1 2; do 10228 echo "timestamp, slept: $am_has_slept" > conftest.file 10229 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10230 if test "$*" = "X"; then 10231 # -L didn't work. 10232 set X `ls -t "$srcdir/configure" conftest.file` 10233 fi 10234 if test "$*" != "X $srcdir/configure conftest.file" \ 10235 && test "$*" != "X conftest.file $srcdir/configure"; then 10236 10237 # If neither matched, then we have a broken ls. This can happen 10238 # if, for instance, CONFIG_SHELL is bash and it inherits a 10239 # broken ls alias from the environment. This has actually 10240 # happened. Such a system could not be considered "sane". 10241 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10242 alias in your environment" "$LINENO" 5 10243 fi 10244 if test "$2" = conftest.file || test $am_try -eq 2; then 10245 break 10246 fi 10247 # Just in case. 10248 sleep 1 10249 am_has_slept=yes 10250 done 10251 test "$2" = conftest.file 10252 ) 10253then 10254 # Ok. 10255 : 10256else 10257 as_fn_error $? "newly created file is older than distributed files! 10258Check your system clock" "$LINENO" 5 10259fi 10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10261$as_echo "yes" >&6; } 10262# If we didn't sleep, we still need to ensure time stamps of config.status and 10263# generated files are strictly newer. 10264am_sleep_pid= 10265if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10266 ( sleep 1 ) & 10267 am_sleep_pid=$! 10268fi 10269 10270rm -f conftest.file 10271 10272test "$program_prefix" != NONE && 10273 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10274# Use a double $ so make ignores it. 10275test "$program_suffix" != NONE && 10276 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10277# Double any \ or $. 10278# By default was `s,x,x', remove it if useless. 10279ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10280program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 10281 10282if test x"${MISSING+set}" != xset; then 10283 case $am_aux_dir in 10284 *\ * | *\ *) 10285 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 10286 *) 10287 MISSING="\${SHELL} $am_aux_dir/missing" ;; 10288 esac 10289fi 10290# Use eval to expand $SHELL 10291if eval "$MISSING --is-lightweight"; then 10292 am_missing_run="$MISSING " 10293else 10294 am_missing_run= 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10296$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10297fi 10298 10299if test x"${install_sh+set}" != xset; then 10300 case $am_aux_dir in 10301 *\ * | *\ *) 10302 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10303 *) 10304 install_sh="\${SHELL} $am_aux_dir/install-sh" 10305 esac 10306fi 10307 10308# Installed binaries are usually stripped using 'strip' when the user 10309# run "make install-strip". However 'strip' might not be the right 10310# tool to use in cross-compilation environments, therefore Automake 10311# will honor the 'STRIP' environment variable to overrule this program. 10312if test "$cross_compiling" != no; then 10313 if test -n "$ac_tool_prefix"; then 10314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10315set dummy ${ac_tool_prefix}strip; ac_word=$2 10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10317$as_echo_n "checking for $ac_word... " >&6; } 10318if ${ac_cv_prog_STRIP+:} false; then : 10319 $as_echo_n "(cached) " >&6 10320else 10321 if test -n "$STRIP"; then 10322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10323else 10324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10325for as_dir in $PATH 10326do 10327 IFS=$as_save_IFS 10328 test -z "$as_dir" && as_dir=. 10329 for ac_exec_ext in '' $ac_executable_extensions; do 10330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10331 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10333 break 2 10334 fi 10335done 10336 done 10337IFS=$as_save_IFS 10338 10339fi 10340fi 10341STRIP=$ac_cv_prog_STRIP 10342if test -n "$STRIP"; then 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10344$as_echo "$STRIP" >&6; } 10345else 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10347$as_echo "no" >&6; } 10348fi 10349 10350 10351fi 10352if test -z "$ac_cv_prog_STRIP"; then 10353 ac_ct_STRIP=$STRIP 10354 # Extract the first word of "strip", so it can be a program name with args. 10355set dummy strip; ac_word=$2 10356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10357$as_echo_n "checking for $ac_word... " >&6; } 10358if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10359 $as_echo_n "(cached) " >&6 10360else 10361 if test -n "$ac_ct_STRIP"; then 10362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10363else 10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10365for as_dir in $PATH 10366do 10367 IFS=$as_save_IFS 10368 test -z "$as_dir" && as_dir=. 10369 for ac_exec_ext in '' $ac_executable_extensions; do 10370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10371 ac_cv_prog_ac_ct_STRIP="strip" 10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10373 break 2 10374 fi 10375done 10376 done 10377IFS=$as_save_IFS 10378 10379fi 10380fi 10381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10382if test -n "$ac_ct_STRIP"; then 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10384$as_echo "$ac_ct_STRIP" >&6; } 10385else 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10387$as_echo "no" >&6; } 10388fi 10389 10390 if test "x$ac_ct_STRIP" = x; then 10391 STRIP=":" 10392 else 10393 case $cross_compiling:$ac_tool_warned in 10394yes:) 10395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10397ac_tool_warned=yes ;; 10398esac 10399 STRIP=$ac_ct_STRIP 10400 fi 10401else 10402 STRIP="$ac_cv_prog_STRIP" 10403fi 10404 10405fi 10406INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10407 10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 10409$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 10410if test -z "$MKDIR_P"; then 10411 if ${ac_cv_path_mkdir+:} false; then : 10412 $as_echo_n "(cached) " >&6 10413else 10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10415for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10416do 10417 IFS=$as_save_IFS 10418 test -z "$as_dir" && as_dir=. 10419 for ac_prog in mkdir gmkdir; do 10420 for ac_exec_ext in '' $ac_executable_extensions; do 10421 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 10422 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 10423 'mkdir (GNU coreutils) '* | \ 10424 'mkdir (coreutils) '* | \ 10425 'mkdir (fileutils) '4.1*) 10426 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 10427 break 3;; 10428 esac 10429 done 10430 done 10431 done 10432IFS=$as_save_IFS 10433 10434fi 10435 10436 test -d ./--version && rmdir ./--version 10437 if test "${ac_cv_path_mkdir+set}" = set; then 10438 MKDIR_P="$ac_cv_path_mkdir -p" 10439 else 10440 # As a last resort, use the slow shell script. Don't cache a 10441 # value for MKDIR_P within a source directory, because that will 10442 # break other packages using the cache if that directory is 10443 # removed, or if the value is a relative name. 10444 MKDIR_P="$ac_install_sh -d" 10445 fi 10446fi 10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10448$as_echo "$MKDIR_P" >&6; } 10449 10450for ac_prog in gawk mawk nawk awk 10451do 10452 # Extract the first word of "$ac_prog", so it can be a program name with args. 10453set dummy $ac_prog; ac_word=$2 10454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10455$as_echo_n "checking for $ac_word... " >&6; } 10456if ${ac_cv_prog_AWK+:} false; then : 10457 $as_echo_n "(cached) " >&6 10458else 10459 if test -n "$AWK"; then 10460 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10461else 10462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10463for as_dir in $PATH 10464do 10465 IFS=$as_save_IFS 10466 test -z "$as_dir" && as_dir=. 10467 for ac_exec_ext in '' $ac_executable_extensions; do 10468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10469 ac_cv_prog_AWK="$ac_prog" 10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10471 break 2 10472 fi 10473done 10474 done 10475IFS=$as_save_IFS 10476 10477fi 10478fi 10479AWK=$ac_cv_prog_AWK 10480if test -n "$AWK"; then 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10482$as_echo "$AWK" >&6; } 10483else 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10485$as_echo "no" >&6; } 10486fi 10487 10488 10489 test -n "$AWK" && break 10490done 10491 10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10493$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10494set x ${MAKE-make} 10495ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10496if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 10497 $as_echo_n "(cached) " >&6 10498else 10499 cat >conftest.make <<\_ACEOF 10500SHELL = /bin/sh 10501all: 10502 @echo '@@@%%%=$(MAKE)=@@@%%%' 10503_ACEOF 10504# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10505case `${MAKE-make} -f conftest.make 2>/dev/null` in 10506 *@@@%%%=?*=@@@%%%*) 10507 eval ac_cv_prog_make_${ac_make}_set=yes;; 10508 *) 10509 eval ac_cv_prog_make_${ac_make}_set=no;; 10510esac 10511rm -f conftest.make 10512fi 10513if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10515$as_echo "yes" >&6; } 10516 SET_MAKE= 10517else 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10519$as_echo "no" >&6; } 10520 SET_MAKE="MAKE=${MAKE-make}" 10521fi 10522 10523rm -rf .tst 2>/dev/null 10524mkdir .tst 2>/dev/null 10525if test -d .tst; then 10526 am__leading_dot=. 10527else 10528 am__leading_dot=_ 10529fi 10530rmdir .tst 2>/dev/null 10531 10532DEPDIR="${am__leading_dot}deps" 10533 10534ac_config_commands="$ac_config_commands depfiles" 10535 10536 10537am_make=${MAKE-make} 10538cat > confinc << 'END' 10539am__doit: 10540 @echo this is the am__doit target 10541.PHONY: am__doit 10542END 10543# If we don't find an include directive, just comment out the code. 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 10545$as_echo_n "checking for style of include used by $am_make... " >&6; } 10546am__include="#" 10547am__quote= 10548_am_result=none 10549# First try GNU make style include. 10550echo "include confinc" > confmf 10551# Ignore all kinds of additional output from 'make'. 10552case `$am_make -s -f confmf 2> /dev/null` in #( 10553*the\ am__doit\ target*) 10554 am__include=include 10555 am__quote= 10556 _am_result=GNU 10557 ;; 10558esac 10559# Now try BSD make style include. 10560if test "$am__include" = "#"; then 10561 echo '.include "confinc"' > confmf 10562 case `$am_make -s -f confmf 2> /dev/null` in #( 10563 *the\ am__doit\ target*) 10564 am__include=.include 10565 am__quote="\"" 10566 _am_result=BSD 10567 ;; 10568 esac 10569fi 10570 10571 10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 10573$as_echo "$_am_result" >&6; } 10574rm -f confinc confmf 10575 10576# Check whether --enable-dependency-tracking was given. 10577if test "${enable_dependency_tracking+set}" = set; then : 10578 enableval=$enable_dependency_tracking; 10579fi 10580 10581if test "x$enable_dependency_tracking" != xno; then 10582 am_depcomp="$ac_aux_dir/depcomp" 10583 AMDEPBACKSLASH='\' 10584 am__nodep='_no' 10585fi 10586 if test "x$enable_dependency_tracking" != xno; then 10587 AMDEP_TRUE= 10588 AMDEP_FALSE='#' 10589else 10590 AMDEP_TRUE='#' 10591 AMDEP_FALSE= 10592fi 10593 10594 10595if test "`cd $srcdir && pwd`" != "`pwd`"; then 10596 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10597 # is not polluted with repeated "-I." 10598 am__isrc=' -I$(srcdir)' 10599 # test to see if srcdir already configured 10600 if test -f $srcdir/config.status; then 10601 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 10602 fi 10603fi 10604 10605# test whether we have cygpath 10606if test -z "$CYGPATH_W"; then 10607 if (cygpath --version) >/dev/null 2>/dev/null; then 10608 CYGPATH_W='cygpath -w' 10609 else 10610 CYGPATH_W=echo 10611 fi 10612fi 10613 10614 10615# Define the identity of the package. 10616 PACKAGE='xf86-video-nv' 10617 VERSION='2.1.21' 10618 10619 10620cat >>confdefs.h <<_ACEOF 10621#define PACKAGE "$PACKAGE" 10622_ACEOF 10623 10624 10625cat >>confdefs.h <<_ACEOF 10626#define VERSION "$VERSION" 10627_ACEOF 10628 10629# Some tools Automake needs. 10630 10631ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 10632 10633 10634AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 10635 10636 10637AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 10638 10639 10640AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 10641 10642 10643MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 10644 10645# For better backward compatibility. To be removed once Automake 1.9.x 10646# dies out for good. For more background, see: 10647# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 10648# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 10649mkdir_p='$(MKDIR_P)' 10650 10651# We need awk for the "check" target (and possibly the TAP driver). The 10652# system "awk" is bad on some platforms. 10653# Always define AMTAR for backward compatibility. Yes, it's still used 10654# in the wild :-( We should find a proper way to deprecate it ... 10655AMTAR='$${TAR-tar}' 10656 10657 10658# We'll loop over all known methods to create a tar archive until one works. 10659_am_tools='gnutar pax cpio none' 10660 10661am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 10662 10663 10664 10665 10666 10667depcc="$CC" am_compiler_list= 10668 10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 10670$as_echo_n "checking dependency style of $depcc... " >&6; } 10671if ${am_cv_CC_dependencies_compiler_type+:} false; then : 10672 $as_echo_n "(cached) " >&6 10673else 10674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10675 # We make a subdir and do the tests there. Otherwise we can end up 10676 # making bogus files that we don't know about and never remove. For 10677 # instance it was reported that on HP-UX the gcc test will end up 10678 # making a dummy file named 'D' -- because '-MD' means "put the output 10679 # in D". 10680 rm -rf conftest.dir 10681 mkdir conftest.dir 10682 # Copy depcomp to subdir because otherwise we won't find it if we're 10683 # using a relative directory. 10684 cp "$am_depcomp" conftest.dir 10685 cd conftest.dir 10686 # We will build objects and dependencies in a subdirectory because 10687 # it helps to detect inapplicable dependency modes. For instance 10688 # both Tru64's cc and ICC support -MD to output dependencies as a 10689 # side effect of compilation, but ICC will put the dependencies in 10690 # the current directory while Tru64 will put them in the object 10691 # directory. 10692 mkdir sub 10693 10694 am_cv_CC_dependencies_compiler_type=none 10695 if test "$am_compiler_list" = ""; then 10696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 10697 fi 10698 am__universal=false 10699 case " $depcc " in #( 10700 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10701 esac 10702 10703 for depmode in $am_compiler_list; do 10704 # Setup a source with many dependencies, because some compilers 10705 # like to wrap large dependency lists on column 80 (with \), and 10706 # we should not choose a depcomp mode which is confused by this. 10707 # 10708 # We need to recreate these files for each test, as the compiler may 10709 # overwrite some of them when testing with obscure command lines. 10710 # This happens at least with the AIX C compiler. 10711 : > sub/conftest.c 10712 for i in 1 2 3 4 5 6; do 10713 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10714 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 10715 # Solaris 10 /bin/sh. 10716 echo '/* dummy */' > sub/conftst$i.h 10717 done 10718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10719 10720 # We check with '-c' and '-o' for the sake of the "dashmstdout" 10721 # mode. It turns out that the SunPro C++ compiler does not properly 10722 # handle '-M -o', and we need to detect this. Also, some Intel 10723 # versions had trouble with output in subdirs. 10724 am__obj=sub/conftest.${OBJEXT-o} 10725 am__minus_obj="-o $am__obj" 10726 case $depmode in 10727 gcc) 10728 # This depmode causes a compiler race in universal mode. 10729 test "$am__universal" = false || continue 10730 ;; 10731 nosideeffect) 10732 # After this tag, mechanisms are not by side-effect, so they'll 10733 # only be used when explicitly requested. 10734 if test "x$enable_dependency_tracking" = xyes; then 10735 continue 10736 else 10737 break 10738 fi 10739 ;; 10740 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 10741 # This compiler won't grok '-c -o', but also, the minuso test has 10742 # not run yet. These depmodes are late enough in the game, and 10743 # so weak that their functioning should not be impacted. 10744 am__obj=conftest.${OBJEXT-o} 10745 am__minus_obj= 10746 ;; 10747 none) break ;; 10748 esac 10749 if depmode=$depmode \ 10750 source=sub/conftest.c object=$am__obj \ 10751 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10752 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10753 >/dev/null 2>conftest.err && 10754 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10755 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10756 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10757 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10758 # icc doesn't choke on unknown options, it will just issue warnings 10759 # or remarks (even with -Werror). So we grep stderr for any message 10760 # that says an option was ignored or not supported. 10761 # When given -MP, icc 7.0 and 7.1 complain thusly: 10762 # icc: Command line warning: ignoring option '-M'; no argument required 10763 # The diagnosis changed in icc 8.0: 10764 # icc: Command line remark: option '-MP' not supported 10765 if (grep 'ignoring option' conftest.err || 10766 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10767 am_cv_CC_dependencies_compiler_type=$depmode 10768 break 10769 fi 10770 fi 10771 done 10772 10773 cd .. 10774 rm -rf conftest.dir 10775else 10776 am_cv_CC_dependencies_compiler_type=none 10777fi 10778 10779fi 10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 10781$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 10782CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 10783 10784 if 10785 test "x$enable_dependency_tracking" != xno \ 10786 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 10787 am__fastdepCC_TRUE= 10788 am__fastdepCC_FALSE='#' 10789else 10790 am__fastdepCC_TRUE='#' 10791 am__fastdepCC_FALSE= 10792fi 10793 10794 10795 10796# POSIX will say in a future version that running "rm -f" with no argument 10797# is OK; and we want to be able to make that assumption in our Makefile 10798# recipes. So use an aggressive probe to check that the usage we want is 10799# actually supported "in the wild" to an acceptable degree. 10800# See automake bug#10828. 10801# To make any issue more visible, cause the running configure to be aborted 10802# by default if the 'rm' program in use doesn't match our expectations; the 10803# user can still override this though. 10804if rm -f && rm -fr && rm -rf; then : OK; else 10805 cat >&2 <<'END' 10806Oops! 10807 10808Your 'rm' program seems unable to run without file operands specified 10809on the command line, even when the '-f' option is present. This is contrary 10810to the behaviour of most rm programs out there, and not conforming with 10811the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 10812 10813Please tell bug-automake@gnu.org about your system, including the value 10814of your $PATH and any error possibly output before this message. This 10815can help us improve future automake versions. 10816 10817END 10818 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 10819 echo 'Configuration will proceed anyway, since you have set the' >&2 10820 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 10821 echo >&2 10822 else 10823 cat >&2 <<'END' 10824Aborting the configuration process, to ensure you take notice of the issue. 10825 10826You can download and install GNU coreutils to get an 'rm' implementation 10827that behaves properly: <http://www.gnu.org/software/coreutils/>. 10828 10829If you want to complete the configuration process using your problematic 10830'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 10831to "yes", and re-run configure. 10832 10833END 10834 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 10835 fi 10836fi 10837 10838 10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 10840$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 10841 # Check whether --enable-maintainer-mode was given. 10842if test "${enable_maintainer_mode+set}" = set; then : 10843 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 10844else 10845 USE_MAINTAINER_MODE=no 10846fi 10847 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 10849$as_echo "$USE_MAINTAINER_MODE" >&6; } 10850 if test $USE_MAINTAINER_MODE = yes; then 10851 MAINTAINER_MODE_TRUE= 10852 MAINTAINER_MODE_FALSE='#' 10853else 10854 MAINTAINER_MODE_TRUE='#' 10855 MAINTAINER_MODE_FALSE= 10856fi 10857 10858 MAINT=$MAINTAINER_MODE_TRUE 10859 10860 10861 10862# Initialize libtool 10863# Check whether --enable-static was given. 10864if test "${enable_static+set}" = set; then : 10865 enableval=$enable_static; p=${PACKAGE-default} 10866 case $enableval in 10867 yes) enable_static=yes ;; 10868 no) enable_static=no ;; 10869 *) 10870 enable_static=no 10871 # Look at the argument we got. We use all the common list separators. 10872 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10873 for pkg in $enableval; do 10874 IFS=$lt_save_ifs 10875 if test "X$pkg" = "X$p"; then 10876 enable_static=yes 10877 fi 10878 done 10879 IFS=$lt_save_ifs 10880 ;; 10881 esac 10882else 10883 enable_static=no 10884fi 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894case `pwd` in 10895 *\ * | *\ *) 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10897$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10898esac 10899 10900 10901 10902macro_version='2.4.6' 10903macro_revision='2.4.6' 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917ltmain=$ac_aux_dir/ltmain.sh 10918 10919# Backslashify metacharacters that are still active within 10920# double-quoted strings. 10921sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10922 10923# Same as above, but do not quote variable references. 10924double_quote_subst='s/\(["`\\]\)/\\\1/g' 10925 10926# Sed substitution to delay expansion of an escaped shell variable in a 10927# double_quote_subst'ed string. 10928delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10929 10930# Sed substitution to delay expansion of an escaped single quote. 10931delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10932 10933# Sed substitution to avoid accidental globbing in evaled expressions 10934no_glob_subst='s/\*/\\\*/g' 10935 10936ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10937ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10938ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10939 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10941$as_echo_n "checking how to print strings... " >&6; } 10942# Test print first, because it will be a builtin if present. 10943if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10944 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10945 ECHO='print -r --' 10946elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10947 ECHO='printf %s\n' 10948else 10949 # Use this function as a fallback that always works. 10950 func_fallback_echo () 10951 { 10952 eval 'cat <<_LTECHO_EOF 10953$1 10954_LTECHO_EOF' 10955 } 10956 ECHO='func_fallback_echo' 10957fi 10958 10959# func_echo_all arg... 10960# Invoke $ECHO with all args, space-separated. 10961func_echo_all () 10962{ 10963 $ECHO "" 10964} 10965 10966case $ECHO in 10967 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10968$as_echo "printf" >&6; } ;; 10969 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10970$as_echo "print -r" >&6; } ;; 10971 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10972$as_echo "cat" >&6; } ;; 10973esac 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10989$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10990if ${ac_cv_path_SED+:} false; then : 10991 $as_echo_n "(cached) " >&6 10992else 10993 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10994 for ac_i in 1 2 3 4 5 6 7; do 10995 ac_script="$ac_script$as_nl$ac_script" 10996 done 10997 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10998 { ac_script=; unset ac_script;} 10999 if test -z "$SED"; then 11000 ac_path_SED_found=false 11001 # Loop through the user's path and test for each of PROGNAME-LIST 11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11003for as_dir in $PATH 11004do 11005 IFS=$as_save_IFS 11006 test -z "$as_dir" && as_dir=. 11007 for ac_prog in sed gsed; do 11008 for ac_exec_ext in '' $ac_executable_extensions; do 11009 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11010 as_fn_executable_p "$ac_path_SED" || continue 11011# Check for GNU ac_path_SED and select it if it is found. 11012 # Check for GNU $ac_path_SED 11013case `"$ac_path_SED" --version 2>&1` in 11014*GNU*) 11015 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11016*) 11017 ac_count=0 11018 $as_echo_n 0123456789 >"conftest.in" 11019 while : 11020 do 11021 cat "conftest.in" "conftest.in" >"conftest.tmp" 11022 mv "conftest.tmp" "conftest.in" 11023 cp "conftest.in" "conftest.nl" 11024 $as_echo '' >> "conftest.nl" 11025 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11027 as_fn_arith $ac_count + 1 && ac_count=$as_val 11028 if test $ac_count -gt ${ac_path_SED_max-0}; then 11029 # Best one so far, save it but keep looking for a better one 11030 ac_cv_path_SED="$ac_path_SED" 11031 ac_path_SED_max=$ac_count 11032 fi 11033 # 10*(2^10) chars as input seems more than enough 11034 test $ac_count -gt 10 && break 11035 done 11036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11037esac 11038 11039 $ac_path_SED_found && break 3 11040 done 11041 done 11042 done 11043IFS=$as_save_IFS 11044 if test -z "$ac_cv_path_SED"; then 11045 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11046 fi 11047else 11048 ac_cv_path_SED=$SED 11049fi 11050 11051fi 11052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11053$as_echo "$ac_cv_path_SED" >&6; } 11054 SED="$ac_cv_path_SED" 11055 rm -f conftest.sed 11056 11057test -z "$SED" && SED=sed 11058Xsed="$SED -e 1s/^X//" 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11071$as_echo_n "checking for fgrep... " >&6; } 11072if ${ac_cv_path_FGREP+:} false; then : 11073 $as_echo_n "(cached) " >&6 11074else 11075 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11076 then ac_cv_path_FGREP="$GREP -F" 11077 else 11078 if test -z "$FGREP"; then 11079 ac_path_FGREP_found=false 11080 # Loop through the user's path and test for each of PROGNAME-LIST 11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11082for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11083do 11084 IFS=$as_save_IFS 11085 test -z "$as_dir" && as_dir=. 11086 for ac_prog in fgrep; do 11087 for ac_exec_ext in '' $ac_executable_extensions; do 11088 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11089 as_fn_executable_p "$ac_path_FGREP" || continue 11090# Check for GNU ac_path_FGREP and select it if it is found. 11091 # Check for GNU $ac_path_FGREP 11092case `"$ac_path_FGREP" --version 2>&1` in 11093*GNU*) 11094 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11095*) 11096 ac_count=0 11097 $as_echo_n 0123456789 >"conftest.in" 11098 while : 11099 do 11100 cat "conftest.in" "conftest.in" >"conftest.tmp" 11101 mv "conftest.tmp" "conftest.in" 11102 cp "conftest.in" "conftest.nl" 11103 $as_echo 'FGREP' >> "conftest.nl" 11104 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11106 as_fn_arith $ac_count + 1 && ac_count=$as_val 11107 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11108 # Best one so far, save it but keep looking for a better one 11109 ac_cv_path_FGREP="$ac_path_FGREP" 11110 ac_path_FGREP_max=$ac_count 11111 fi 11112 # 10*(2^10) chars as input seems more than enough 11113 test $ac_count -gt 10 && break 11114 done 11115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11116esac 11117 11118 $ac_path_FGREP_found && break 3 11119 done 11120 done 11121 done 11122IFS=$as_save_IFS 11123 if test -z "$ac_cv_path_FGREP"; then 11124 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11125 fi 11126else 11127 ac_cv_path_FGREP=$FGREP 11128fi 11129 11130 fi 11131fi 11132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11133$as_echo "$ac_cv_path_FGREP" >&6; } 11134 FGREP="$ac_cv_path_FGREP" 11135 11136 11137test -z "$GREP" && GREP=grep 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157# Check whether --with-gnu-ld was given. 11158if test "${with_gnu_ld+set}" = set; then : 11159 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11160else 11161 with_gnu_ld=no 11162fi 11163 11164ac_prog=ld 11165if test yes = "$GCC"; then 11166 # Check if gcc -print-prog-name=ld gives a path. 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11168$as_echo_n "checking for ld used by $CC... " >&6; } 11169 case $host in 11170 *-*-mingw*) 11171 # gcc leaves a trailing carriage return, which upsets mingw 11172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11173 *) 11174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11175 esac 11176 case $ac_prog in 11177 # Accept absolute paths. 11178 [\\/]* | ?:[\\/]*) 11179 re_direlt='/[^/][^/]*/\.\./' 11180 # Canonicalize the pathname of ld 11181 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11182 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11183 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11184 done 11185 test -z "$LD" && LD=$ac_prog 11186 ;; 11187 "") 11188 # If it fails, then pretend we aren't using GCC. 11189 ac_prog=ld 11190 ;; 11191 *) 11192 # If it is relative, then search for the first ld in PATH. 11193 with_gnu_ld=unknown 11194 ;; 11195 esac 11196elif test yes = "$with_gnu_ld"; then 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11198$as_echo_n "checking for GNU ld... " >&6; } 11199else 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11201$as_echo_n "checking for non-GNU ld... " >&6; } 11202fi 11203if ${lt_cv_path_LD+:} false; then : 11204 $as_echo_n "(cached) " >&6 11205else 11206 if test -z "$LD"; then 11207 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11208 for ac_dir in $PATH; do 11209 IFS=$lt_save_ifs 11210 test -z "$ac_dir" && ac_dir=. 11211 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11212 lt_cv_path_LD=$ac_dir/$ac_prog 11213 # Check to see if the program is GNU ld. I'd rather use --version, 11214 # but apparently some variants of GNU ld only accept -v. 11215 # Break only if it was the GNU/non-GNU ld that we prefer. 11216 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11217 *GNU* | *'with BFD'*) 11218 test no != "$with_gnu_ld" && break 11219 ;; 11220 *) 11221 test yes != "$with_gnu_ld" && break 11222 ;; 11223 esac 11224 fi 11225 done 11226 IFS=$lt_save_ifs 11227else 11228 lt_cv_path_LD=$LD # Let the user override the test with a path. 11229fi 11230fi 11231 11232LD=$lt_cv_path_LD 11233if test -n "$LD"; then 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11235$as_echo "$LD" >&6; } 11236else 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11238$as_echo "no" >&6; } 11239fi 11240test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11242$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11243if ${lt_cv_prog_gnu_ld+:} false; then : 11244 $as_echo_n "(cached) " >&6 11245else 11246 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11247case `$LD -v 2>&1 </dev/null` in 11248*GNU* | *'with BFD'*) 11249 lt_cv_prog_gnu_ld=yes 11250 ;; 11251*) 11252 lt_cv_prog_gnu_ld=no 11253 ;; 11254esac 11255fi 11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11257$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11258with_gnu_ld=$lt_cv_prog_gnu_ld 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11269$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11270if ${lt_cv_path_NM+:} false; then : 11271 $as_echo_n "(cached) " >&6 11272else 11273 if test -n "$NM"; then 11274 # Let the user override the test. 11275 lt_cv_path_NM=$NM 11276else 11277 lt_nm_to_check=${ac_tool_prefix}nm 11278 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11279 lt_nm_to_check="$lt_nm_to_check nm" 11280 fi 11281 for lt_tmp_nm in $lt_nm_to_check; do 11282 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11283 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11284 IFS=$lt_save_ifs 11285 test -z "$ac_dir" && ac_dir=. 11286 tmp_nm=$ac_dir/$lt_tmp_nm 11287 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11288 # Check to see if the nm accepts a BSD-compat flag. 11289 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11290 # nm: unknown option "B" ignored 11291 # Tru64's nm complains that /dev/null is an invalid object file 11292 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11293 case $build_os in 11294 mingw*) lt_bad_file=conftest.nm/nofile ;; 11295 *) lt_bad_file=/dev/null ;; 11296 esac 11297 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11298 *$lt_bad_file* | *'Invalid file or object type'*) 11299 lt_cv_path_NM="$tmp_nm -B" 11300 break 2 11301 ;; 11302 *) 11303 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11304 */dev/null*) 11305 lt_cv_path_NM="$tmp_nm -p" 11306 break 2 11307 ;; 11308 *) 11309 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11310 continue # so that we can try to find one that supports BSD flags 11311 ;; 11312 esac 11313 ;; 11314 esac 11315 fi 11316 done 11317 IFS=$lt_save_ifs 11318 done 11319 : ${lt_cv_path_NM=no} 11320fi 11321fi 11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11323$as_echo "$lt_cv_path_NM" >&6; } 11324if test no != "$lt_cv_path_NM"; then 11325 NM=$lt_cv_path_NM 11326else 11327 # Didn't find any BSD compatible name lister, look for dumpbin. 11328 if test -n "$DUMPBIN"; then : 11329 # Let the user override the test. 11330 else 11331 if test -n "$ac_tool_prefix"; then 11332 for ac_prog in dumpbin "link -dump" 11333 do 11334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11335set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11337$as_echo_n "checking for $ac_word... " >&6; } 11338if ${ac_cv_prog_DUMPBIN+:} false; then : 11339 $as_echo_n "(cached) " >&6 11340else 11341 if test -n "$DUMPBIN"; then 11342 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11343else 11344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11345for as_dir in $PATH 11346do 11347 IFS=$as_save_IFS 11348 test -z "$as_dir" && as_dir=. 11349 for ac_exec_ext in '' $ac_executable_extensions; do 11350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11351 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11353 break 2 11354 fi 11355done 11356 done 11357IFS=$as_save_IFS 11358 11359fi 11360fi 11361DUMPBIN=$ac_cv_prog_DUMPBIN 11362if test -n "$DUMPBIN"; then 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11364$as_echo "$DUMPBIN" >&6; } 11365else 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11367$as_echo "no" >&6; } 11368fi 11369 11370 11371 test -n "$DUMPBIN" && break 11372 done 11373fi 11374if test -z "$DUMPBIN"; then 11375 ac_ct_DUMPBIN=$DUMPBIN 11376 for ac_prog in dumpbin "link -dump" 11377do 11378 # Extract the first word of "$ac_prog", so it can be a program name with args. 11379set dummy $ac_prog; ac_word=$2 11380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11381$as_echo_n "checking for $ac_word... " >&6; } 11382if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11383 $as_echo_n "(cached) " >&6 11384else 11385 if test -n "$ac_ct_DUMPBIN"; then 11386 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11387else 11388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11389for as_dir in $PATH 11390do 11391 IFS=$as_save_IFS 11392 test -z "$as_dir" && as_dir=. 11393 for ac_exec_ext in '' $ac_executable_extensions; do 11394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11395 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11397 break 2 11398 fi 11399done 11400 done 11401IFS=$as_save_IFS 11402 11403fi 11404fi 11405ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11406if test -n "$ac_ct_DUMPBIN"; then 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11408$as_echo "$ac_ct_DUMPBIN" >&6; } 11409else 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11411$as_echo "no" >&6; } 11412fi 11413 11414 11415 test -n "$ac_ct_DUMPBIN" && break 11416done 11417 11418 if test "x$ac_ct_DUMPBIN" = x; then 11419 DUMPBIN=":" 11420 else 11421 case $cross_compiling:$ac_tool_warned in 11422yes:) 11423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11425ac_tool_warned=yes ;; 11426esac 11427 DUMPBIN=$ac_ct_DUMPBIN 11428 fi 11429fi 11430 11431 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11432 *COFF*) 11433 DUMPBIN="$DUMPBIN -symbols -headers" 11434 ;; 11435 *) 11436 DUMPBIN=: 11437 ;; 11438 esac 11439 fi 11440 11441 if test : != "$DUMPBIN"; then 11442 NM=$DUMPBIN 11443 fi 11444fi 11445test -z "$NM" && NM=nm 11446 11447 11448 11449 11450 11451 11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11453$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11454if ${lt_cv_nm_interface+:} false; then : 11455 $as_echo_n "(cached) " >&6 11456else 11457 lt_cv_nm_interface="BSD nm" 11458 echo "int some_variable = 0;" > conftest.$ac_ext 11459 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11460 (eval "$ac_compile" 2>conftest.err) 11461 cat conftest.err >&5 11462 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11463 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11464 cat conftest.err >&5 11465 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11466 cat conftest.out >&5 11467 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11468 lt_cv_nm_interface="MS dumpbin" 11469 fi 11470 rm -f conftest* 11471fi 11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11473$as_echo "$lt_cv_nm_interface" >&6; } 11474 11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11476$as_echo_n "checking whether ln -s works... " >&6; } 11477LN_S=$as_ln_s 11478if test "$LN_S" = "ln -s"; then 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11480$as_echo "yes" >&6; } 11481else 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11483$as_echo "no, using $LN_S" >&6; } 11484fi 11485 11486# find the maximum length of command line arguments 11487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11488$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11489if ${lt_cv_sys_max_cmd_len+:} false; then : 11490 $as_echo_n "(cached) " >&6 11491else 11492 i=0 11493 teststring=ABCD 11494 11495 case $build_os in 11496 msdosdjgpp*) 11497 # On DJGPP, this test can blow up pretty badly due to problems in libc 11498 # (any single argument exceeding 2000 bytes causes a buffer overrun 11499 # during glob expansion). Even if it were fixed, the result of this 11500 # check would be larger than it should be. 11501 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11502 ;; 11503 11504 gnu*) 11505 # Under GNU Hurd, this test is not required because there is 11506 # no limit to the length of command line arguments. 11507 # Libtool will interpret -1 as no limit whatsoever 11508 lt_cv_sys_max_cmd_len=-1; 11509 ;; 11510 11511 cygwin* | mingw* | cegcc*) 11512 # On Win9x/ME, this test blows up -- it succeeds, but takes 11513 # about 5 minutes as the teststring grows exponentially. 11514 # Worse, since 9x/ME are not pre-emptively multitasking, 11515 # you end up with a "frozen" computer, even though with patience 11516 # the test eventually succeeds (with a max line length of 256k). 11517 # Instead, let's just punt: use the minimum linelength reported by 11518 # all of the supported platforms: 8192 (on NT/2K/XP). 11519 lt_cv_sys_max_cmd_len=8192; 11520 ;; 11521 11522 mint*) 11523 # On MiNT this can take a long time and run out of memory. 11524 lt_cv_sys_max_cmd_len=8192; 11525 ;; 11526 11527 amigaos*) 11528 # On AmigaOS with pdksh, this test takes hours, literally. 11529 # So we just punt and use a minimum line length of 8192. 11530 lt_cv_sys_max_cmd_len=8192; 11531 ;; 11532 11533 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11534 # This has been around since 386BSD, at least. Likely further. 11535 if test -x /sbin/sysctl; then 11536 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11537 elif test -x /usr/sbin/sysctl; then 11538 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11539 else 11540 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11541 fi 11542 # And add a safety zone 11543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11545 ;; 11546 11547 interix*) 11548 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11549 lt_cv_sys_max_cmd_len=196608 11550 ;; 11551 11552 os2*) 11553 # The test takes a long time on OS/2. 11554 lt_cv_sys_max_cmd_len=8192 11555 ;; 11556 11557 osf*) 11558 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11559 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11560 # nice to cause kernel panics so lets avoid the loop below. 11561 # First set a reasonable default. 11562 lt_cv_sys_max_cmd_len=16384 11563 # 11564 if test -x /sbin/sysconfig; then 11565 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11566 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11567 esac 11568 fi 11569 ;; 11570 sco3.2v5*) 11571 lt_cv_sys_max_cmd_len=102400 11572 ;; 11573 sysv5* | sco5v6* | sysv4.2uw2*) 11574 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11575 if test -n "$kargmax"; then 11576 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11577 else 11578 lt_cv_sys_max_cmd_len=32768 11579 fi 11580 ;; 11581 *) 11582 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11583 if test -n "$lt_cv_sys_max_cmd_len" && \ 11584 test undefined != "$lt_cv_sys_max_cmd_len"; then 11585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11587 else 11588 # Make teststring a little bigger before we do anything with it. 11589 # a 1K string should be a reasonable start. 11590 for i in 1 2 3 4 5 6 7 8; do 11591 teststring=$teststring$teststring 11592 done 11593 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11594 # If test is not a shell built-in, we'll probably end up computing a 11595 # maximum length that is only half of the actual maximum length, but 11596 # we can't tell. 11597 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11598 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11599 test 17 != "$i" # 1/2 MB should be enough 11600 do 11601 i=`expr $i + 1` 11602 teststring=$teststring$teststring 11603 done 11604 # Only check the string length outside the loop. 11605 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11606 teststring= 11607 # Add a significant safety factor because C++ compilers can tack on 11608 # massive amounts of additional arguments before passing them to the 11609 # linker. It appears as though 1/2 is a usable value. 11610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11611 fi 11612 ;; 11613 esac 11614 11615fi 11616 11617if test -n "$lt_cv_sys_max_cmd_len"; then 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11619$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11620else 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11622$as_echo "none" >&6; } 11623fi 11624max_cmd_len=$lt_cv_sys_max_cmd_len 11625 11626 11627 11628 11629 11630 11631: ${CP="cp -f"} 11632: ${MV="mv -f"} 11633: ${RM="rm -f"} 11634 11635if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11636 lt_unset=unset 11637else 11638 lt_unset=false 11639fi 11640 11641 11642 11643 11644 11645# test EBCDIC or ASCII 11646case `echo X|tr X '\101'` in 11647 A) # ASCII based system 11648 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11649 lt_SP2NL='tr \040 \012' 11650 lt_NL2SP='tr \015\012 \040\040' 11651 ;; 11652 *) # EBCDIC based system 11653 lt_SP2NL='tr \100 \n' 11654 lt_NL2SP='tr \r\n \100\100' 11655 ;; 11656esac 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11667$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11668if ${lt_cv_to_host_file_cmd+:} false; then : 11669 $as_echo_n "(cached) " >&6 11670else 11671 case $host in 11672 *-*-mingw* ) 11673 case $build in 11674 *-*-mingw* ) # actually msys 11675 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11676 ;; 11677 *-*-cygwin* ) 11678 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11679 ;; 11680 * ) # otherwise, assume *nix 11681 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11682 ;; 11683 esac 11684 ;; 11685 *-*-cygwin* ) 11686 case $build in 11687 *-*-mingw* ) # actually msys 11688 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11689 ;; 11690 *-*-cygwin* ) 11691 lt_cv_to_host_file_cmd=func_convert_file_noop 11692 ;; 11693 * ) # otherwise, assume *nix 11694 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11695 ;; 11696 esac 11697 ;; 11698 * ) # unhandled hosts (and "normal" native builds) 11699 lt_cv_to_host_file_cmd=func_convert_file_noop 11700 ;; 11701esac 11702 11703fi 11704 11705to_host_file_cmd=$lt_cv_to_host_file_cmd 11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11707$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11708 11709 11710 11711 11712 11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11714$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11715if ${lt_cv_to_tool_file_cmd+:} false; then : 11716 $as_echo_n "(cached) " >&6 11717else 11718 #assume ordinary cross tools, or native build. 11719lt_cv_to_tool_file_cmd=func_convert_file_noop 11720case $host in 11721 *-*-mingw* ) 11722 case $build in 11723 *-*-mingw* ) # actually msys 11724 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11725 ;; 11726 esac 11727 ;; 11728esac 11729 11730fi 11731 11732to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11734$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11735 11736 11737 11738 11739 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11741$as_echo_n "checking for $LD option to reload object files... " >&6; } 11742if ${lt_cv_ld_reload_flag+:} false; then : 11743 $as_echo_n "(cached) " >&6 11744else 11745 lt_cv_ld_reload_flag='-r' 11746fi 11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11748$as_echo "$lt_cv_ld_reload_flag" >&6; } 11749reload_flag=$lt_cv_ld_reload_flag 11750case $reload_flag in 11751"" | " "*) ;; 11752*) reload_flag=" $reload_flag" ;; 11753esac 11754reload_cmds='$LD$reload_flag -o $output$reload_objs' 11755case $host_os in 11756 cygwin* | mingw* | pw32* | cegcc*) 11757 if test yes != "$GCC"; then 11758 reload_cmds=false 11759 fi 11760 ;; 11761 darwin*) 11762 if test yes = "$GCC"; then 11763 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11764 else 11765 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11766 fi 11767 ;; 11768esac 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778if test -n "$ac_tool_prefix"; then 11779 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11780set dummy ${ac_tool_prefix}objdump; ac_word=$2 11781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11782$as_echo_n "checking for $ac_word... " >&6; } 11783if ${ac_cv_prog_OBJDUMP+:} false; then : 11784 $as_echo_n "(cached) " >&6 11785else 11786 if test -n "$OBJDUMP"; then 11787 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11788else 11789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11790for as_dir in $PATH 11791do 11792 IFS=$as_save_IFS 11793 test -z "$as_dir" && as_dir=. 11794 for ac_exec_ext in '' $ac_executable_extensions; do 11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11796 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11798 break 2 11799 fi 11800done 11801 done 11802IFS=$as_save_IFS 11803 11804fi 11805fi 11806OBJDUMP=$ac_cv_prog_OBJDUMP 11807if test -n "$OBJDUMP"; then 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11809$as_echo "$OBJDUMP" >&6; } 11810else 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11812$as_echo "no" >&6; } 11813fi 11814 11815 11816fi 11817if test -z "$ac_cv_prog_OBJDUMP"; then 11818 ac_ct_OBJDUMP=$OBJDUMP 11819 # Extract the first word of "objdump", so it can be a program name with args. 11820set dummy objdump; ac_word=$2 11821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11822$as_echo_n "checking for $ac_word... " >&6; } 11823if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825else 11826 if test -n "$ac_ct_OBJDUMP"; then 11827 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11828else 11829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11830for as_dir in $PATH 11831do 11832 IFS=$as_save_IFS 11833 test -z "$as_dir" && as_dir=. 11834 for ac_exec_ext in '' $ac_executable_extensions; do 11835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11836 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11838 break 2 11839 fi 11840done 11841 done 11842IFS=$as_save_IFS 11843 11844fi 11845fi 11846ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11847if test -n "$ac_ct_OBJDUMP"; then 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11849$as_echo "$ac_ct_OBJDUMP" >&6; } 11850else 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11852$as_echo "no" >&6; } 11853fi 11854 11855 if test "x$ac_ct_OBJDUMP" = x; then 11856 OBJDUMP="false" 11857 else 11858 case $cross_compiling:$ac_tool_warned in 11859yes:) 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11862ac_tool_warned=yes ;; 11863esac 11864 OBJDUMP=$ac_ct_OBJDUMP 11865 fi 11866else 11867 OBJDUMP="$ac_cv_prog_OBJDUMP" 11868fi 11869 11870test -z "$OBJDUMP" && OBJDUMP=objdump 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11881$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11882if ${lt_cv_deplibs_check_method+:} false; then : 11883 $as_echo_n "(cached) " >&6 11884else 11885 lt_cv_file_magic_cmd='$MAGIC_CMD' 11886lt_cv_file_magic_test_file= 11887lt_cv_deplibs_check_method='unknown' 11888# Need to set the preceding variable on all platforms that support 11889# interlibrary dependencies. 11890# 'none' -- dependencies not supported. 11891# 'unknown' -- same as none, but documents that we really don't know. 11892# 'pass_all' -- all dependencies passed with no checks. 11893# 'test_compile' -- check by making test program. 11894# 'file_magic [[regex]]' -- check by looking for files in library path 11895# that responds to the $file_magic_cmd with a given extended regex. 11896# If you have 'file' or equivalent on your system and you're not sure 11897# whether 'pass_all' will *always* work, you probably want this one. 11898 11899case $host_os in 11900aix[4-9]*) 11901 lt_cv_deplibs_check_method=pass_all 11902 ;; 11903 11904beos*) 11905 lt_cv_deplibs_check_method=pass_all 11906 ;; 11907 11908bsdi[45]*) 11909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11910 lt_cv_file_magic_cmd='/usr/bin/file -L' 11911 lt_cv_file_magic_test_file=/shlib/libc.so 11912 ;; 11913 11914cygwin*) 11915 # func_win32_libid is a shell function defined in ltmain.sh 11916 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11917 lt_cv_file_magic_cmd='func_win32_libid' 11918 ;; 11919 11920mingw* | pw32*) 11921 # Base MSYS/MinGW do not provide the 'file' command needed by 11922 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11923 # unless we find 'file', for example because we are cross-compiling. 11924 if ( file / ) >/dev/null 2>&1; then 11925 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11926 lt_cv_file_magic_cmd='func_win32_libid' 11927 else 11928 # Keep this pattern in sync with the one in func_win32_libid. 11929 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11930 lt_cv_file_magic_cmd='$OBJDUMP -f' 11931 fi 11932 ;; 11933 11934cegcc*) 11935 # use the weaker test based on 'objdump'. See mingw*. 11936 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11937 lt_cv_file_magic_cmd='$OBJDUMP -f' 11938 ;; 11939 11940darwin* | rhapsody*) 11941 lt_cv_deplibs_check_method=pass_all 11942 ;; 11943 11944freebsd* | dragonfly*) 11945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11946 case $host_cpu in 11947 i*86 ) 11948 # Not sure whether the presence of OpenBSD here was a mistake. 11949 # Let's accept both of them until this is cleared up. 11950 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11951 lt_cv_file_magic_cmd=/usr/bin/file 11952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11953 ;; 11954 esac 11955 else 11956 lt_cv_deplibs_check_method=pass_all 11957 fi 11958 ;; 11959 11960haiku*) 11961 lt_cv_deplibs_check_method=pass_all 11962 ;; 11963 11964hpux10.20* | hpux11*) 11965 lt_cv_file_magic_cmd=/usr/bin/file 11966 case $host_cpu in 11967 ia64*) 11968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11969 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11970 ;; 11971 hppa*64*) 11972 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]' 11973 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11974 ;; 11975 *) 11976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11977 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11978 ;; 11979 esac 11980 ;; 11981 11982interix[3-9]*) 11983 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11985 ;; 11986 11987irix5* | irix6* | nonstopux*) 11988 case $LD in 11989 *-32|*"-32 ") libmagic=32-bit;; 11990 *-n32|*"-n32 ") libmagic=N32;; 11991 *-64|*"-64 ") libmagic=64-bit;; 11992 *) libmagic=never-match;; 11993 esac 11994 lt_cv_deplibs_check_method=pass_all 11995 ;; 11996 11997# This must be glibc/ELF. 11998linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11999 lt_cv_deplibs_check_method=pass_all 12000 ;; 12001 12002netbsd*) 12003 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12005 else 12006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12007 fi 12008 ;; 12009 12010newos6*) 12011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12012 lt_cv_file_magic_cmd=/usr/bin/file 12013 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12014 ;; 12015 12016*nto* | *qnx*) 12017 lt_cv_deplibs_check_method=pass_all 12018 ;; 12019 12020openbsd* | bitrig*) 12021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12023 else 12024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12025 fi 12026 ;; 12027 12028osf3* | osf4* | osf5*) 12029 lt_cv_deplibs_check_method=pass_all 12030 ;; 12031 12032rdos*) 12033 lt_cv_deplibs_check_method=pass_all 12034 ;; 12035 12036solaris*) 12037 lt_cv_deplibs_check_method=pass_all 12038 ;; 12039 12040sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12041 lt_cv_deplibs_check_method=pass_all 12042 ;; 12043 12044sysv4 | sysv4.3*) 12045 case $host_vendor in 12046 motorola) 12047 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]' 12048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12049 ;; 12050 ncr) 12051 lt_cv_deplibs_check_method=pass_all 12052 ;; 12053 sequent) 12054 lt_cv_file_magic_cmd='/bin/file' 12055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12056 ;; 12057 sni) 12058 lt_cv_file_magic_cmd='/bin/file' 12059 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12060 lt_cv_file_magic_test_file=/lib/libc.so 12061 ;; 12062 siemens) 12063 lt_cv_deplibs_check_method=pass_all 12064 ;; 12065 pc) 12066 lt_cv_deplibs_check_method=pass_all 12067 ;; 12068 esac 12069 ;; 12070 12071tpf*) 12072 lt_cv_deplibs_check_method=pass_all 12073 ;; 12074os2*) 12075 lt_cv_deplibs_check_method=pass_all 12076 ;; 12077esac 12078 12079fi 12080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12081$as_echo "$lt_cv_deplibs_check_method" >&6; } 12082 12083file_magic_glob= 12084want_nocaseglob=no 12085if test "$build" = "$host"; then 12086 case $host_os in 12087 mingw* | pw32*) 12088 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12089 want_nocaseglob=yes 12090 else 12091 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12092 fi 12093 ;; 12094 esac 12095fi 12096 12097file_magic_cmd=$lt_cv_file_magic_cmd 12098deplibs_check_method=$lt_cv_deplibs_check_method 12099test -z "$deplibs_check_method" && deplibs_check_method=unknown 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122if test -n "$ac_tool_prefix"; then 12123 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12124set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12126$as_echo_n "checking for $ac_word... " >&6; } 12127if ${ac_cv_prog_DLLTOOL+:} false; then : 12128 $as_echo_n "(cached) " >&6 12129else 12130 if test -n "$DLLTOOL"; then 12131 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12132else 12133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12134for as_dir in $PATH 12135do 12136 IFS=$as_save_IFS 12137 test -z "$as_dir" && as_dir=. 12138 for ac_exec_ext in '' $ac_executable_extensions; do 12139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12140 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12142 break 2 12143 fi 12144done 12145 done 12146IFS=$as_save_IFS 12147 12148fi 12149fi 12150DLLTOOL=$ac_cv_prog_DLLTOOL 12151if test -n "$DLLTOOL"; then 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12153$as_echo "$DLLTOOL" >&6; } 12154else 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12156$as_echo "no" >&6; } 12157fi 12158 12159 12160fi 12161if test -z "$ac_cv_prog_DLLTOOL"; then 12162 ac_ct_DLLTOOL=$DLLTOOL 12163 # Extract the first word of "dlltool", so it can be a program name with args. 12164set dummy dlltool; ac_word=$2 12165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12166$as_echo_n "checking for $ac_word... " >&6; } 12167if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12168 $as_echo_n "(cached) " >&6 12169else 12170 if test -n "$ac_ct_DLLTOOL"; then 12171 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12172else 12173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12174for as_dir in $PATH 12175do 12176 IFS=$as_save_IFS 12177 test -z "$as_dir" && as_dir=. 12178 for ac_exec_ext in '' $ac_executable_extensions; do 12179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12180 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12182 break 2 12183 fi 12184done 12185 done 12186IFS=$as_save_IFS 12187 12188fi 12189fi 12190ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12191if test -n "$ac_ct_DLLTOOL"; then 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12193$as_echo "$ac_ct_DLLTOOL" >&6; } 12194else 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12196$as_echo "no" >&6; } 12197fi 12198 12199 if test "x$ac_ct_DLLTOOL" = x; then 12200 DLLTOOL="false" 12201 else 12202 case $cross_compiling:$ac_tool_warned in 12203yes:) 12204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12206ac_tool_warned=yes ;; 12207esac 12208 DLLTOOL=$ac_ct_DLLTOOL 12209 fi 12210else 12211 DLLTOOL="$ac_cv_prog_DLLTOOL" 12212fi 12213 12214test -z "$DLLTOOL" && DLLTOOL=dlltool 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12226$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12227if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12228 $as_echo_n "(cached) " >&6 12229else 12230 lt_cv_sharedlib_from_linklib_cmd='unknown' 12231 12232case $host_os in 12233cygwin* | mingw* | pw32* | cegcc*) 12234 # two different shell functions defined in ltmain.sh; 12235 # decide which one to use based on capabilities of $DLLTOOL 12236 case `$DLLTOOL --help 2>&1` in 12237 *--identify-strict*) 12238 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12239 ;; 12240 *) 12241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12242 ;; 12243 esac 12244 ;; 12245*) 12246 # fallback: assume linklib IS sharedlib 12247 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12248 ;; 12249esac 12250 12251fi 12252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12253$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12254sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12255test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12256 12257 12258 12259 12260 12261 12262 12263if test -n "$ac_tool_prefix"; then 12264 for ac_prog in ar 12265 do 12266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12267set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12269$as_echo_n "checking for $ac_word... " >&6; } 12270if ${ac_cv_prog_AR+:} false; then : 12271 $as_echo_n "(cached) " >&6 12272else 12273 if test -n "$AR"; then 12274 ac_cv_prog_AR="$AR" # Let the user override the test. 12275else 12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12277for as_dir in $PATH 12278do 12279 IFS=$as_save_IFS 12280 test -z "$as_dir" && as_dir=. 12281 for ac_exec_ext in '' $ac_executable_extensions; do 12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12283 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12285 break 2 12286 fi 12287done 12288 done 12289IFS=$as_save_IFS 12290 12291fi 12292fi 12293AR=$ac_cv_prog_AR 12294if test -n "$AR"; then 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12296$as_echo "$AR" >&6; } 12297else 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12299$as_echo "no" >&6; } 12300fi 12301 12302 12303 test -n "$AR" && break 12304 done 12305fi 12306if test -z "$AR"; then 12307 ac_ct_AR=$AR 12308 for ac_prog in ar 12309do 12310 # Extract the first word of "$ac_prog", so it can be a program name with args. 12311set dummy $ac_prog; ac_word=$2 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12313$as_echo_n "checking for $ac_word... " >&6; } 12314if ${ac_cv_prog_ac_ct_AR+:} false; then : 12315 $as_echo_n "(cached) " >&6 12316else 12317 if test -n "$ac_ct_AR"; then 12318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12319else 12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12321for as_dir in $PATH 12322do 12323 IFS=$as_save_IFS 12324 test -z "$as_dir" && as_dir=. 12325 for ac_exec_ext in '' $ac_executable_extensions; do 12326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12327 ac_cv_prog_ac_ct_AR="$ac_prog" 12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12329 break 2 12330 fi 12331done 12332 done 12333IFS=$as_save_IFS 12334 12335fi 12336fi 12337ac_ct_AR=$ac_cv_prog_ac_ct_AR 12338if test -n "$ac_ct_AR"; then 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12340$as_echo "$ac_ct_AR" >&6; } 12341else 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12343$as_echo "no" >&6; } 12344fi 12345 12346 12347 test -n "$ac_ct_AR" && break 12348done 12349 12350 if test "x$ac_ct_AR" = x; then 12351 AR="false" 12352 else 12353 case $cross_compiling:$ac_tool_warned in 12354yes:) 12355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12357ac_tool_warned=yes ;; 12358esac 12359 AR=$ac_ct_AR 12360 fi 12361fi 12362 12363: ${AR=ar} 12364: ${AR_FLAGS=cru} 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12377$as_echo_n "checking for archiver @FILE support... " >&6; } 12378if ${lt_cv_ar_at_file+:} false; then : 12379 $as_echo_n "(cached) " >&6 12380else 12381 lt_cv_ar_at_file=no 12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12383/* end confdefs.h. */ 12384 12385int 12386main () 12387{ 12388 12389 ; 12390 return 0; 12391} 12392_ACEOF 12393if ac_fn_c_try_compile "$LINENO"; then : 12394 echo conftest.$ac_objext > conftest.lst 12395 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12397 (eval $lt_ar_try) 2>&5 12398 ac_status=$? 12399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12400 test $ac_status = 0; } 12401 if test 0 -eq "$ac_status"; then 12402 # Ensure the archiver fails upon bogus file names. 12403 rm -f conftest.$ac_objext libconftest.a 12404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12405 (eval $lt_ar_try) 2>&5 12406 ac_status=$? 12407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12408 test $ac_status = 0; } 12409 if test 0 -ne "$ac_status"; then 12410 lt_cv_ar_at_file=@ 12411 fi 12412 fi 12413 rm -f conftest.* libconftest.a 12414 12415fi 12416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12417 12418fi 12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12420$as_echo "$lt_cv_ar_at_file" >&6; } 12421 12422if test no = "$lt_cv_ar_at_file"; then 12423 archiver_list_spec= 12424else 12425 archiver_list_spec=$lt_cv_ar_at_file 12426fi 12427 12428 12429 12430 12431 12432 12433 12434if test -n "$ac_tool_prefix"; then 12435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12436set dummy ${ac_tool_prefix}strip; ac_word=$2 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12438$as_echo_n "checking for $ac_word... " >&6; } 12439if ${ac_cv_prog_STRIP+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 if test -n "$STRIP"; then 12443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12444else 12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12446for as_dir in $PATH 12447do 12448 IFS=$as_save_IFS 12449 test -z "$as_dir" && as_dir=. 12450 for ac_exec_ext in '' $ac_executable_extensions; do 12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12452 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12454 break 2 12455 fi 12456done 12457 done 12458IFS=$as_save_IFS 12459 12460fi 12461fi 12462STRIP=$ac_cv_prog_STRIP 12463if test -n "$STRIP"; then 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12465$as_echo "$STRIP" >&6; } 12466else 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12468$as_echo "no" >&6; } 12469fi 12470 12471 12472fi 12473if test -z "$ac_cv_prog_STRIP"; then 12474 ac_ct_STRIP=$STRIP 12475 # Extract the first word of "strip", so it can be a program name with args. 12476set dummy strip; ac_word=$2 12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12478$as_echo_n "checking for $ac_word... " >&6; } 12479if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12480 $as_echo_n "(cached) " >&6 12481else 12482 if test -n "$ac_ct_STRIP"; then 12483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12484else 12485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12486for as_dir in $PATH 12487do 12488 IFS=$as_save_IFS 12489 test -z "$as_dir" && as_dir=. 12490 for ac_exec_ext in '' $ac_executable_extensions; do 12491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12492 ac_cv_prog_ac_ct_STRIP="strip" 12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12494 break 2 12495 fi 12496done 12497 done 12498IFS=$as_save_IFS 12499 12500fi 12501fi 12502ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12503if test -n "$ac_ct_STRIP"; then 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12505$as_echo "$ac_ct_STRIP" >&6; } 12506else 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12508$as_echo "no" >&6; } 12509fi 12510 12511 if test "x$ac_ct_STRIP" = x; then 12512 STRIP=":" 12513 else 12514 case $cross_compiling:$ac_tool_warned in 12515yes:) 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12518ac_tool_warned=yes ;; 12519esac 12520 STRIP=$ac_ct_STRIP 12521 fi 12522else 12523 STRIP="$ac_cv_prog_STRIP" 12524fi 12525 12526test -z "$STRIP" && STRIP=: 12527 12528 12529 12530 12531 12532 12533if test -n "$ac_tool_prefix"; then 12534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12535set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12537$as_echo_n "checking for $ac_word... " >&6; } 12538if ${ac_cv_prog_RANLIB+:} false; then : 12539 $as_echo_n "(cached) " >&6 12540else 12541 if test -n "$RANLIB"; then 12542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12543else 12544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12545for as_dir in $PATH 12546do 12547 IFS=$as_save_IFS 12548 test -z "$as_dir" && as_dir=. 12549 for ac_exec_ext in '' $ac_executable_extensions; do 12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12551 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12553 break 2 12554 fi 12555done 12556 done 12557IFS=$as_save_IFS 12558 12559fi 12560fi 12561RANLIB=$ac_cv_prog_RANLIB 12562if test -n "$RANLIB"; then 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12564$as_echo "$RANLIB" >&6; } 12565else 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12567$as_echo "no" >&6; } 12568fi 12569 12570 12571fi 12572if test -z "$ac_cv_prog_RANLIB"; then 12573 ac_ct_RANLIB=$RANLIB 12574 # Extract the first word of "ranlib", so it can be a program name with args. 12575set dummy ranlib; ac_word=$2 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12577$as_echo_n "checking for $ac_word... " >&6; } 12578if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12579 $as_echo_n "(cached) " >&6 12580else 12581 if test -n "$ac_ct_RANLIB"; then 12582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12583else 12584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12585for as_dir in $PATH 12586do 12587 IFS=$as_save_IFS 12588 test -z "$as_dir" && as_dir=. 12589 for ac_exec_ext in '' $ac_executable_extensions; do 12590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12591 ac_cv_prog_ac_ct_RANLIB="ranlib" 12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12593 break 2 12594 fi 12595done 12596 done 12597IFS=$as_save_IFS 12598 12599fi 12600fi 12601ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12602if test -n "$ac_ct_RANLIB"; then 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12604$as_echo "$ac_ct_RANLIB" >&6; } 12605else 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12607$as_echo "no" >&6; } 12608fi 12609 12610 if test "x$ac_ct_RANLIB" = x; then 12611 RANLIB=":" 12612 else 12613 case $cross_compiling:$ac_tool_warned in 12614yes:) 12615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12617ac_tool_warned=yes ;; 12618esac 12619 RANLIB=$ac_ct_RANLIB 12620 fi 12621else 12622 RANLIB="$ac_cv_prog_RANLIB" 12623fi 12624 12625test -z "$RANLIB" && RANLIB=: 12626 12627 12628 12629 12630 12631 12632# Determine commands to create old-style static archives. 12633old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12634old_postinstall_cmds='chmod 644 $oldlib' 12635old_postuninstall_cmds= 12636 12637if test -n "$RANLIB"; then 12638 case $host_os in 12639 bitrig* | openbsd*) 12640 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12641 ;; 12642 *) 12643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12644 ;; 12645 esac 12646 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12647fi 12648 12649case $host_os in 12650 darwin*) 12651 lock_old_archive_extraction=yes ;; 12652 *) 12653 lock_old_archive_extraction=no ;; 12654esac 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694# If no C compiler was specified, use CC. 12695LTCC=${LTCC-"$CC"} 12696 12697# If no C compiler flags were specified, use CFLAGS. 12698LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12699 12700# Allow CC to be a program name with arguments. 12701compiler=$CC 12702 12703 12704# Check for command to grab the raw symbol name followed by C symbol from nm. 12705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12706$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12707if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12708 $as_echo_n "(cached) " >&6 12709else 12710 12711# These are sane defaults that work on at least a few old systems. 12712# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12713 12714# Character class describing NM global symbol codes. 12715symcode='[BCDEGRST]' 12716 12717# Regexp to match symbols that can be accessed directly from C. 12718sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12719 12720# Define system-specific variables. 12721case $host_os in 12722aix*) 12723 symcode='[BCDT]' 12724 ;; 12725cygwin* | mingw* | pw32* | cegcc*) 12726 symcode='[ABCDGISTW]' 12727 ;; 12728hpux*) 12729 if test ia64 = "$host_cpu"; then 12730 symcode='[ABCDEGRST]' 12731 fi 12732 ;; 12733irix* | nonstopux*) 12734 symcode='[BCDEGRST]' 12735 ;; 12736osf*) 12737 symcode='[BCDEGQRST]' 12738 ;; 12739solaris*) 12740 symcode='[BDRT]' 12741 ;; 12742sco3.2v5*) 12743 symcode='[DT]' 12744 ;; 12745sysv4.2uw2*) 12746 symcode='[DT]' 12747 ;; 12748sysv5* | sco5v6* | unixware* | OpenUNIX*) 12749 symcode='[ABDT]' 12750 ;; 12751sysv4) 12752 symcode='[DFNSTU]' 12753 ;; 12754esac 12755 12756# If we're using GNU nm, then use its standard symbol codes. 12757case `$NM -V 2>&1` in 12758*GNU* | *'with BFD'*) 12759 symcode='[ABCDGIRSTW]' ;; 12760esac 12761 12762if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12763 # Gets list of data symbols to import. 12764 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12765 # Adjust the below global symbol transforms to fixup imported variables. 12766 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12767 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12768 lt_c_name_lib_hook="\ 12769 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12770 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12771else 12772 # Disable hooks by default. 12773 lt_cv_sys_global_symbol_to_import= 12774 lt_cdecl_hook= 12775 lt_c_name_hook= 12776 lt_c_name_lib_hook= 12777fi 12778 12779# Transform an extracted symbol line into a proper C declaration. 12780# Some systems (esp. on ia64) link data and code symbols differently, 12781# so use this general approach. 12782lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12783$lt_cdecl_hook\ 12784" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12785" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12786 12787# Transform an extracted symbol line into symbol name and symbol address 12788lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12789$lt_c_name_hook\ 12790" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12791" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12792 12793# Transform an extracted symbol line into symbol name with lib prefix and 12794# symbol address. 12795lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12796$lt_c_name_lib_hook\ 12797" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12798" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12799" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12800 12801# Handle CRLF in mingw tool chain 12802opt_cr= 12803case $build_os in 12804mingw*) 12805 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12806 ;; 12807esac 12808 12809# Try without a prefix underscore, then with it. 12810for ac_symprfx in "" "_"; do 12811 12812 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12813 symxfrm="\\1 $ac_symprfx\\2 \\2" 12814 12815 # Write the raw and C identifiers. 12816 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12817 # Fake it for dumpbin and say T for any non-static function, 12818 # D for any global variable and I for any imported variable. 12819 # Also find C++ and __fastcall symbols from MSVC++, 12820 # which start with @ or ?. 12821 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12822" {last_section=section; section=\$ 3};"\ 12823" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12824" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12825" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12826" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12827" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12828" \$ 0!~/External *\|/{next};"\ 12829" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12830" {if(hide[section]) next};"\ 12831" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12832" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12833" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12834" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12835" ' prfx=^$ac_symprfx" 12836 else 12837 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12838 fi 12839 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12840 12841 # Check to see that the pipe works correctly. 12842 pipe_works=no 12843 12844 rm -f conftest* 12845 cat > conftest.$ac_ext <<_LT_EOF 12846#ifdef __cplusplus 12847extern "C" { 12848#endif 12849char nm_test_var; 12850void nm_test_func(void); 12851void nm_test_func(void){} 12852#ifdef __cplusplus 12853} 12854#endif 12855int main(){nm_test_var='a';nm_test_func();return(0);} 12856_LT_EOF 12857 12858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12859 (eval $ac_compile) 2>&5 12860 ac_status=$? 12861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12862 test $ac_status = 0; }; then 12863 # Now try to grab the symbols. 12864 nlist=conftest.nm 12865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12866 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12867 ac_status=$? 12868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12869 test $ac_status = 0; } && test -s "$nlist"; then 12870 # Try sorting and uniquifying the output. 12871 if sort "$nlist" | uniq > "$nlist"T; then 12872 mv -f "$nlist"T "$nlist" 12873 else 12874 rm -f "$nlist"T 12875 fi 12876 12877 # Make sure that we snagged all the symbols we need. 12878 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12879 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12880 cat <<_LT_EOF > conftest.$ac_ext 12881/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12882#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12883/* DATA imports from DLLs on WIN32 can't be const, because runtime 12884 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12885# define LT_DLSYM_CONST 12886#elif defined __osf__ 12887/* This system does not cope well with relocations in const data. */ 12888# define LT_DLSYM_CONST 12889#else 12890# define LT_DLSYM_CONST const 12891#endif 12892 12893#ifdef __cplusplus 12894extern "C" { 12895#endif 12896 12897_LT_EOF 12898 # Now generate the symbol file. 12899 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12900 12901 cat <<_LT_EOF >> conftest.$ac_ext 12902 12903/* The mapping between symbol names and symbols. */ 12904LT_DLSYM_CONST struct { 12905 const char *name; 12906 void *address; 12907} 12908lt__PROGRAM__LTX_preloaded_symbols[] = 12909{ 12910 { "@PROGRAM@", (void *) 0 }, 12911_LT_EOF 12912 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12913 cat <<\_LT_EOF >> conftest.$ac_ext 12914 {0, (void *) 0} 12915}; 12916 12917/* This works around a problem in FreeBSD linker */ 12918#ifdef FREEBSD_WORKAROUND 12919static const void *lt_preloaded_setup() { 12920 return lt__PROGRAM__LTX_preloaded_symbols; 12921} 12922#endif 12923 12924#ifdef __cplusplus 12925} 12926#endif 12927_LT_EOF 12928 # Now try linking the two files. 12929 mv conftest.$ac_objext conftstm.$ac_objext 12930 lt_globsym_save_LIBS=$LIBS 12931 lt_globsym_save_CFLAGS=$CFLAGS 12932 LIBS=conftstm.$ac_objext 12933 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12935 (eval $ac_link) 2>&5 12936 ac_status=$? 12937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12938 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12939 pipe_works=yes 12940 fi 12941 LIBS=$lt_globsym_save_LIBS 12942 CFLAGS=$lt_globsym_save_CFLAGS 12943 else 12944 echo "cannot find nm_test_func in $nlist" >&5 12945 fi 12946 else 12947 echo "cannot find nm_test_var in $nlist" >&5 12948 fi 12949 else 12950 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12951 fi 12952 else 12953 echo "$progname: failed program was:" >&5 12954 cat conftest.$ac_ext >&5 12955 fi 12956 rm -rf conftest* conftst* 12957 12958 # Do not use the global_symbol_pipe unless it works. 12959 if test yes = "$pipe_works"; then 12960 break 12961 else 12962 lt_cv_sys_global_symbol_pipe= 12963 fi 12964done 12965 12966fi 12967 12968if test -z "$lt_cv_sys_global_symbol_pipe"; then 12969 lt_cv_sys_global_symbol_to_cdecl= 12970fi 12971if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12973$as_echo "failed" >&6; } 12974else 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12976$as_echo "ok" >&6; } 12977fi 12978 12979# Response file support. 12980if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12981 nm_file_list_spec='@' 12982elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12983 nm_file_list_spec='@' 12984fi 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13023$as_echo_n "checking for sysroot... " >&6; } 13024 13025# Check whether --with-sysroot was given. 13026if test "${with_sysroot+set}" = set; then : 13027 withval=$with_sysroot; 13028else 13029 with_sysroot=no 13030fi 13031 13032 13033lt_sysroot= 13034case $with_sysroot in #( 13035 yes) 13036 if test yes = "$GCC"; then 13037 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13038 fi 13039 ;; #( 13040 /*) 13041 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13042 ;; #( 13043 no|'') 13044 ;; #( 13045 *) 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13047$as_echo "$with_sysroot" >&6; } 13048 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13049 ;; 13050esac 13051 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13053$as_echo "${lt_sysroot:-no}" >&6; } 13054 13055 13056 13057 13058 13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13060$as_echo_n "checking for a working dd... " >&6; } 13061if ${ac_cv_path_lt_DD+:} false; then : 13062 $as_echo_n "(cached) " >&6 13063else 13064 printf 0123456789abcdef0123456789abcdef >conftest.i 13065cat conftest.i conftest.i >conftest2.i 13066: ${lt_DD:=$DD} 13067if test -z "$lt_DD"; then 13068 ac_path_lt_DD_found=false 13069 # Loop through the user's path and test for each of PROGNAME-LIST 13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13071for as_dir in $PATH 13072do 13073 IFS=$as_save_IFS 13074 test -z "$as_dir" && as_dir=. 13075 for ac_prog in dd; do 13076 for ac_exec_ext in '' $ac_executable_extensions; do 13077 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13078 as_fn_executable_p "$ac_path_lt_DD" || continue 13079if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13080 cmp -s conftest.i conftest.out \ 13081 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13082fi 13083 $ac_path_lt_DD_found && break 3 13084 done 13085 done 13086 done 13087IFS=$as_save_IFS 13088 if test -z "$ac_cv_path_lt_DD"; then 13089 : 13090 fi 13091else 13092 ac_cv_path_lt_DD=$lt_DD 13093fi 13094 13095rm -f conftest.i conftest2.i conftest.out 13096fi 13097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13098$as_echo "$ac_cv_path_lt_DD" >&6; } 13099 13100 13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13102$as_echo_n "checking how to truncate binary pipes... " >&6; } 13103if ${lt_cv_truncate_bin+:} false; then : 13104 $as_echo_n "(cached) " >&6 13105else 13106 printf 0123456789abcdef0123456789abcdef >conftest.i 13107cat conftest.i conftest.i >conftest2.i 13108lt_cv_truncate_bin= 13109if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13110 cmp -s conftest.i conftest.out \ 13111 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13112fi 13113rm -f conftest.i conftest2.i conftest.out 13114test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13115fi 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13117$as_echo "$lt_cv_truncate_bin" >&6; } 13118 13119 13120 13121 13122 13123 13124 13125# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13126func_cc_basename () 13127{ 13128 for cc_temp in $*""; do 13129 case $cc_temp in 13130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13132 \-*) ;; 13133 *) break;; 13134 esac 13135 done 13136 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13137} 13138 13139# Check whether --enable-libtool-lock was given. 13140if test "${enable_libtool_lock+set}" = set; then : 13141 enableval=$enable_libtool_lock; 13142fi 13143 13144test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13145 13146# Some flags need to be propagated to the compiler or linker for good 13147# libtool support. 13148case $host in 13149ia64-*-hpux*) 13150 # Find out what ABI is being produced by ac_compile, and set mode 13151 # options accordingly. 13152 echo 'int i;' > conftest.$ac_ext 13153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13154 (eval $ac_compile) 2>&5 13155 ac_status=$? 13156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13157 test $ac_status = 0; }; then 13158 case `/usr/bin/file conftest.$ac_objext` in 13159 *ELF-32*) 13160 HPUX_IA64_MODE=32 13161 ;; 13162 *ELF-64*) 13163 HPUX_IA64_MODE=64 13164 ;; 13165 esac 13166 fi 13167 rm -rf conftest* 13168 ;; 13169*-*-irix6*) 13170 # Find out what ABI is being produced by ac_compile, and set linker 13171 # options accordingly. 13172 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13174 (eval $ac_compile) 2>&5 13175 ac_status=$? 13176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13177 test $ac_status = 0; }; then 13178 if test yes = "$lt_cv_prog_gnu_ld"; then 13179 case `/usr/bin/file conftest.$ac_objext` in 13180 *32-bit*) 13181 LD="${LD-ld} -melf32bsmip" 13182 ;; 13183 *N32*) 13184 LD="${LD-ld} -melf32bmipn32" 13185 ;; 13186 *64-bit*) 13187 LD="${LD-ld} -melf64bmip" 13188 ;; 13189 esac 13190 else 13191 case `/usr/bin/file conftest.$ac_objext` in 13192 *32-bit*) 13193 LD="${LD-ld} -32" 13194 ;; 13195 *N32*) 13196 LD="${LD-ld} -n32" 13197 ;; 13198 *64-bit*) 13199 LD="${LD-ld} -64" 13200 ;; 13201 esac 13202 fi 13203 fi 13204 rm -rf conftest* 13205 ;; 13206 13207mips64*-*linux*) 13208 # Find out what ABI is being produced by ac_compile, and set linker 13209 # options accordingly. 13210 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13212 (eval $ac_compile) 2>&5 13213 ac_status=$? 13214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13215 test $ac_status = 0; }; then 13216 emul=elf 13217 case `/usr/bin/file conftest.$ac_objext` in 13218 *32-bit*) 13219 emul="${emul}32" 13220 ;; 13221 *64-bit*) 13222 emul="${emul}64" 13223 ;; 13224 esac 13225 case `/usr/bin/file conftest.$ac_objext` in 13226 *MSB*) 13227 emul="${emul}btsmip" 13228 ;; 13229 *LSB*) 13230 emul="${emul}ltsmip" 13231 ;; 13232 esac 13233 case `/usr/bin/file conftest.$ac_objext` in 13234 *N32*) 13235 emul="${emul}n32" 13236 ;; 13237 esac 13238 LD="${LD-ld} -m $emul" 13239 fi 13240 rm -rf conftest* 13241 ;; 13242 13243x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13244s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13245 # Find out what ABI is being produced by ac_compile, and set linker 13246 # options accordingly. Note that the listed cases only cover the 13247 # situations where additional linker options are needed (such as when 13248 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13249 # vice versa); the common cases where no linker options are needed do 13250 # not appear in the list. 13251 echo 'int i;' > conftest.$ac_ext 13252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13253 (eval $ac_compile) 2>&5 13254 ac_status=$? 13255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13256 test $ac_status = 0; }; then 13257 case `/usr/bin/file conftest.o` in 13258 *32-bit*) 13259 case $host in 13260 x86_64-*kfreebsd*-gnu) 13261 LD="${LD-ld} -m elf_i386_fbsd" 13262 ;; 13263 x86_64-*linux*) 13264 case `/usr/bin/file conftest.o` in 13265 *x86-64*) 13266 LD="${LD-ld} -m elf32_x86_64" 13267 ;; 13268 *) 13269 LD="${LD-ld} -m elf_i386" 13270 ;; 13271 esac 13272 ;; 13273 powerpc64le-*linux*) 13274 LD="${LD-ld} -m elf32lppclinux" 13275 ;; 13276 powerpc64-*linux*) 13277 LD="${LD-ld} -m elf32ppclinux" 13278 ;; 13279 s390x-*linux*) 13280 LD="${LD-ld} -m elf_s390" 13281 ;; 13282 sparc64-*linux*) 13283 LD="${LD-ld} -m elf32_sparc" 13284 ;; 13285 esac 13286 ;; 13287 *64-bit*) 13288 case $host in 13289 x86_64-*kfreebsd*-gnu) 13290 LD="${LD-ld} -m elf_x86_64_fbsd" 13291 ;; 13292 x86_64-*linux*) 13293 LD="${LD-ld} -m elf_x86_64" 13294 ;; 13295 powerpcle-*linux*) 13296 LD="${LD-ld} -m elf64lppc" 13297 ;; 13298 powerpc-*linux*) 13299 LD="${LD-ld} -m elf64ppc" 13300 ;; 13301 s390*-*linux*|s390*-*tpf*) 13302 LD="${LD-ld} -m elf64_s390" 13303 ;; 13304 sparc*-*linux*) 13305 LD="${LD-ld} -m elf64_sparc" 13306 ;; 13307 esac 13308 ;; 13309 esac 13310 fi 13311 rm -rf conftest* 13312 ;; 13313 13314*-*-sco3.2v5*) 13315 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13316 SAVE_CFLAGS=$CFLAGS 13317 CFLAGS="$CFLAGS -belf" 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13319$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13320if ${lt_cv_cc_needs_belf+:} false; then : 13321 $as_echo_n "(cached) " >&6 13322else 13323 ac_ext=c 13324ac_cpp='$CPP $CPPFLAGS' 13325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13327ac_compiler_gnu=$ac_cv_c_compiler_gnu 13328 13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13330/* end confdefs.h. */ 13331 13332int 13333main () 13334{ 13335 13336 ; 13337 return 0; 13338} 13339_ACEOF 13340if ac_fn_c_try_link "$LINENO"; then : 13341 lt_cv_cc_needs_belf=yes 13342else 13343 lt_cv_cc_needs_belf=no 13344fi 13345rm -f core conftest.err conftest.$ac_objext \ 13346 conftest$ac_exeext conftest.$ac_ext 13347 ac_ext=c 13348ac_cpp='$CPP $CPPFLAGS' 13349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13351ac_compiler_gnu=$ac_cv_c_compiler_gnu 13352 13353fi 13354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13355$as_echo "$lt_cv_cc_needs_belf" >&6; } 13356 if test yes != "$lt_cv_cc_needs_belf"; then 13357 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13358 CFLAGS=$SAVE_CFLAGS 13359 fi 13360 ;; 13361*-*solaris*) 13362 # Find out what ABI is being produced by ac_compile, and set linker 13363 # options accordingly. 13364 echo 'int i;' > conftest.$ac_ext 13365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13366 (eval $ac_compile) 2>&5 13367 ac_status=$? 13368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13369 test $ac_status = 0; }; then 13370 case `/usr/bin/file conftest.o` in 13371 *64-bit*) 13372 case $lt_cv_prog_gnu_ld in 13373 yes*) 13374 case $host in 13375 i?86-*-solaris*|x86_64-*-solaris*) 13376 LD="${LD-ld} -m elf_x86_64" 13377 ;; 13378 sparc*-*-solaris*) 13379 LD="${LD-ld} -m elf64_sparc" 13380 ;; 13381 esac 13382 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13383 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13384 LD=${LD-ld}_sol2 13385 fi 13386 ;; 13387 *) 13388 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13389 LD="${LD-ld} -64" 13390 fi 13391 ;; 13392 esac 13393 ;; 13394 esac 13395 fi 13396 rm -rf conftest* 13397 ;; 13398esac 13399 13400need_locks=$enable_libtool_lock 13401 13402if test -n "$ac_tool_prefix"; then 13403 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13404set dummy ${ac_tool_prefix}mt; ac_word=$2 13405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13406$as_echo_n "checking for $ac_word... " >&6; } 13407if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13408 $as_echo_n "(cached) " >&6 13409else 13410 if test -n "$MANIFEST_TOOL"; then 13411 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13412else 13413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13414for as_dir in $PATH 13415do 13416 IFS=$as_save_IFS 13417 test -z "$as_dir" && as_dir=. 13418 for ac_exec_ext in '' $ac_executable_extensions; do 13419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13420 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13422 break 2 13423 fi 13424done 13425 done 13426IFS=$as_save_IFS 13427 13428fi 13429fi 13430MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13431if test -n "$MANIFEST_TOOL"; then 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13433$as_echo "$MANIFEST_TOOL" >&6; } 13434else 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13436$as_echo "no" >&6; } 13437fi 13438 13439 13440fi 13441if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13442 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13443 # Extract the first word of "mt", so it can be a program name with args. 13444set dummy mt; ac_word=$2 13445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13446$as_echo_n "checking for $ac_word... " >&6; } 13447if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13448 $as_echo_n "(cached) " >&6 13449else 13450 if test -n "$ac_ct_MANIFEST_TOOL"; then 13451 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13452else 13453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13454for as_dir in $PATH 13455do 13456 IFS=$as_save_IFS 13457 test -z "$as_dir" && as_dir=. 13458 for ac_exec_ext in '' $ac_executable_extensions; do 13459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13460 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13462 break 2 13463 fi 13464done 13465 done 13466IFS=$as_save_IFS 13467 13468fi 13469fi 13470ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13471if test -n "$ac_ct_MANIFEST_TOOL"; then 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13473$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13474else 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13476$as_echo "no" >&6; } 13477fi 13478 13479 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13480 MANIFEST_TOOL=":" 13481 else 13482 case $cross_compiling:$ac_tool_warned in 13483yes:) 13484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13486ac_tool_warned=yes ;; 13487esac 13488 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13489 fi 13490else 13491 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13492fi 13493 13494test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13496$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13497if ${lt_cv_path_mainfest_tool+:} false; then : 13498 $as_echo_n "(cached) " >&6 13499else 13500 lt_cv_path_mainfest_tool=no 13501 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13502 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13503 cat conftest.err >&5 13504 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13505 lt_cv_path_mainfest_tool=yes 13506 fi 13507 rm -f conftest* 13508fi 13509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13510$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13511if test yes != "$lt_cv_path_mainfest_tool"; then 13512 MANIFEST_TOOL=: 13513fi 13514 13515 13516 13517 13518 13519 13520 case $host_os in 13521 rhapsody* | darwin*) 13522 if test -n "$ac_tool_prefix"; then 13523 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13524set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13526$as_echo_n "checking for $ac_word... " >&6; } 13527if ${ac_cv_prog_DSYMUTIL+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529else 13530 if test -n "$DSYMUTIL"; then 13531 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13532else 13533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13534for as_dir in $PATH 13535do 13536 IFS=$as_save_IFS 13537 test -z "$as_dir" && as_dir=. 13538 for ac_exec_ext in '' $ac_executable_extensions; do 13539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13540 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13542 break 2 13543 fi 13544done 13545 done 13546IFS=$as_save_IFS 13547 13548fi 13549fi 13550DSYMUTIL=$ac_cv_prog_DSYMUTIL 13551if test -n "$DSYMUTIL"; then 13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13553$as_echo "$DSYMUTIL" >&6; } 13554else 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13556$as_echo "no" >&6; } 13557fi 13558 13559 13560fi 13561if test -z "$ac_cv_prog_DSYMUTIL"; then 13562 ac_ct_DSYMUTIL=$DSYMUTIL 13563 # Extract the first word of "dsymutil", so it can be a program name with args. 13564set dummy dsymutil; ac_word=$2 13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13566$as_echo_n "checking for $ac_word... " >&6; } 13567if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13568 $as_echo_n "(cached) " >&6 13569else 13570 if test -n "$ac_ct_DSYMUTIL"; then 13571 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13572else 13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13574for as_dir in $PATH 13575do 13576 IFS=$as_save_IFS 13577 test -z "$as_dir" && as_dir=. 13578 for ac_exec_ext in '' $ac_executable_extensions; do 13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13580 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13582 break 2 13583 fi 13584done 13585 done 13586IFS=$as_save_IFS 13587 13588fi 13589fi 13590ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13591if test -n "$ac_ct_DSYMUTIL"; then 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13593$as_echo "$ac_ct_DSYMUTIL" >&6; } 13594else 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13596$as_echo "no" >&6; } 13597fi 13598 13599 if test "x$ac_ct_DSYMUTIL" = x; then 13600 DSYMUTIL=":" 13601 else 13602 case $cross_compiling:$ac_tool_warned in 13603yes:) 13604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13606ac_tool_warned=yes ;; 13607esac 13608 DSYMUTIL=$ac_ct_DSYMUTIL 13609 fi 13610else 13611 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13612fi 13613 13614 if test -n "$ac_tool_prefix"; then 13615 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13616set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13618$as_echo_n "checking for $ac_word... " >&6; } 13619if ${ac_cv_prog_NMEDIT+:} false; then : 13620 $as_echo_n "(cached) " >&6 13621else 13622 if test -n "$NMEDIT"; then 13623 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13624else 13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13626for as_dir in $PATH 13627do 13628 IFS=$as_save_IFS 13629 test -z "$as_dir" && as_dir=. 13630 for ac_exec_ext in '' $ac_executable_extensions; do 13631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13632 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13634 break 2 13635 fi 13636done 13637 done 13638IFS=$as_save_IFS 13639 13640fi 13641fi 13642NMEDIT=$ac_cv_prog_NMEDIT 13643if test -n "$NMEDIT"; then 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13645$as_echo "$NMEDIT" >&6; } 13646else 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13648$as_echo "no" >&6; } 13649fi 13650 13651 13652fi 13653if test -z "$ac_cv_prog_NMEDIT"; then 13654 ac_ct_NMEDIT=$NMEDIT 13655 # Extract the first word of "nmedit", so it can be a program name with args. 13656set dummy nmedit; ac_word=$2 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13658$as_echo_n "checking for $ac_word... " >&6; } 13659if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13660 $as_echo_n "(cached) " >&6 13661else 13662 if test -n "$ac_ct_NMEDIT"; then 13663 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13664else 13665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13666for as_dir in $PATH 13667do 13668 IFS=$as_save_IFS 13669 test -z "$as_dir" && as_dir=. 13670 for ac_exec_ext in '' $ac_executable_extensions; do 13671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13672 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13674 break 2 13675 fi 13676done 13677 done 13678IFS=$as_save_IFS 13679 13680fi 13681fi 13682ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13683if test -n "$ac_ct_NMEDIT"; then 13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13685$as_echo "$ac_ct_NMEDIT" >&6; } 13686else 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13688$as_echo "no" >&6; } 13689fi 13690 13691 if test "x$ac_ct_NMEDIT" = x; then 13692 NMEDIT=":" 13693 else 13694 case $cross_compiling:$ac_tool_warned in 13695yes:) 13696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13698ac_tool_warned=yes ;; 13699esac 13700 NMEDIT=$ac_ct_NMEDIT 13701 fi 13702else 13703 NMEDIT="$ac_cv_prog_NMEDIT" 13704fi 13705 13706 if test -n "$ac_tool_prefix"; then 13707 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13708set dummy ${ac_tool_prefix}lipo; ac_word=$2 13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13710$as_echo_n "checking for $ac_word... " >&6; } 13711if ${ac_cv_prog_LIPO+:} false; then : 13712 $as_echo_n "(cached) " >&6 13713else 13714 if test -n "$LIPO"; then 13715 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13716else 13717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13718for as_dir in $PATH 13719do 13720 IFS=$as_save_IFS 13721 test -z "$as_dir" && as_dir=. 13722 for ac_exec_ext in '' $ac_executable_extensions; do 13723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13724 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13726 break 2 13727 fi 13728done 13729 done 13730IFS=$as_save_IFS 13731 13732fi 13733fi 13734LIPO=$ac_cv_prog_LIPO 13735if test -n "$LIPO"; then 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13737$as_echo "$LIPO" >&6; } 13738else 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13740$as_echo "no" >&6; } 13741fi 13742 13743 13744fi 13745if test -z "$ac_cv_prog_LIPO"; then 13746 ac_ct_LIPO=$LIPO 13747 # Extract the first word of "lipo", so it can be a program name with args. 13748set dummy lipo; ac_word=$2 13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13750$as_echo_n "checking for $ac_word... " >&6; } 13751if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13752 $as_echo_n "(cached) " >&6 13753else 13754 if test -n "$ac_ct_LIPO"; then 13755 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13756else 13757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13758for as_dir in $PATH 13759do 13760 IFS=$as_save_IFS 13761 test -z "$as_dir" && as_dir=. 13762 for ac_exec_ext in '' $ac_executable_extensions; do 13763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13764 ac_cv_prog_ac_ct_LIPO="lipo" 13765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13766 break 2 13767 fi 13768done 13769 done 13770IFS=$as_save_IFS 13771 13772fi 13773fi 13774ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13775if test -n "$ac_ct_LIPO"; then 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13777$as_echo "$ac_ct_LIPO" >&6; } 13778else 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13780$as_echo "no" >&6; } 13781fi 13782 13783 if test "x$ac_ct_LIPO" = x; then 13784 LIPO=":" 13785 else 13786 case $cross_compiling:$ac_tool_warned in 13787yes:) 13788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13790ac_tool_warned=yes ;; 13791esac 13792 LIPO=$ac_ct_LIPO 13793 fi 13794else 13795 LIPO="$ac_cv_prog_LIPO" 13796fi 13797 13798 if test -n "$ac_tool_prefix"; then 13799 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13800set dummy ${ac_tool_prefix}otool; ac_word=$2 13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13802$as_echo_n "checking for $ac_word... " >&6; } 13803if ${ac_cv_prog_OTOOL+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805else 13806 if test -n "$OTOOL"; then 13807 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13808else 13809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13810for as_dir in $PATH 13811do 13812 IFS=$as_save_IFS 13813 test -z "$as_dir" && as_dir=. 13814 for ac_exec_ext in '' $ac_executable_extensions; do 13815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13816 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13818 break 2 13819 fi 13820done 13821 done 13822IFS=$as_save_IFS 13823 13824fi 13825fi 13826OTOOL=$ac_cv_prog_OTOOL 13827if test -n "$OTOOL"; then 13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13829$as_echo "$OTOOL" >&6; } 13830else 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13832$as_echo "no" >&6; } 13833fi 13834 13835 13836fi 13837if test -z "$ac_cv_prog_OTOOL"; then 13838 ac_ct_OTOOL=$OTOOL 13839 # Extract the first word of "otool", so it can be a program name with args. 13840set dummy otool; ac_word=$2 13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13842$as_echo_n "checking for $ac_word... " >&6; } 13843if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13844 $as_echo_n "(cached) " >&6 13845else 13846 if test -n "$ac_ct_OTOOL"; then 13847 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13848else 13849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13850for as_dir in $PATH 13851do 13852 IFS=$as_save_IFS 13853 test -z "$as_dir" && as_dir=. 13854 for ac_exec_ext in '' $ac_executable_extensions; do 13855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13856 ac_cv_prog_ac_ct_OTOOL="otool" 13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13858 break 2 13859 fi 13860done 13861 done 13862IFS=$as_save_IFS 13863 13864fi 13865fi 13866ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13867if test -n "$ac_ct_OTOOL"; then 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13869$as_echo "$ac_ct_OTOOL" >&6; } 13870else 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13872$as_echo "no" >&6; } 13873fi 13874 13875 if test "x$ac_ct_OTOOL" = x; then 13876 OTOOL=":" 13877 else 13878 case $cross_compiling:$ac_tool_warned in 13879yes:) 13880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13882ac_tool_warned=yes ;; 13883esac 13884 OTOOL=$ac_ct_OTOOL 13885 fi 13886else 13887 OTOOL="$ac_cv_prog_OTOOL" 13888fi 13889 13890 if test -n "$ac_tool_prefix"; then 13891 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13892set dummy ${ac_tool_prefix}otool64; ac_word=$2 13893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13894$as_echo_n "checking for $ac_word... " >&6; } 13895if ${ac_cv_prog_OTOOL64+:} false; then : 13896 $as_echo_n "(cached) " >&6 13897else 13898 if test -n "$OTOOL64"; then 13899 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13900else 13901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13902for as_dir in $PATH 13903do 13904 IFS=$as_save_IFS 13905 test -z "$as_dir" && as_dir=. 13906 for ac_exec_ext in '' $ac_executable_extensions; do 13907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13908 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13910 break 2 13911 fi 13912done 13913 done 13914IFS=$as_save_IFS 13915 13916fi 13917fi 13918OTOOL64=$ac_cv_prog_OTOOL64 13919if test -n "$OTOOL64"; then 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13921$as_echo "$OTOOL64" >&6; } 13922else 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13924$as_echo "no" >&6; } 13925fi 13926 13927 13928fi 13929if test -z "$ac_cv_prog_OTOOL64"; then 13930 ac_ct_OTOOL64=$OTOOL64 13931 # Extract the first word of "otool64", so it can be a program name with args. 13932set dummy otool64; ac_word=$2 13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13934$as_echo_n "checking for $ac_word... " >&6; } 13935if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13936 $as_echo_n "(cached) " >&6 13937else 13938 if test -n "$ac_ct_OTOOL64"; then 13939 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13940else 13941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13942for as_dir in $PATH 13943do 13944 IFS=$as_save_IFS 13945 test -z "$as_dir" && as_dir=. 13946 for ac_exec_ext in '' $ac_executable_extensions; do 13947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13948 ac_cv_prog_ac_ct_OTOOL64="otool64" 13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13950 break 2 13951 fi 13952done 13953 done 13954IFS=$as_save_IFS 13955 13956fi 13957fi 13958ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13959if test -n "$ac_ct_OTOOL64"; then 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13961$as_echo "$ac_ct_OTOOL64" >&6; } 13962else 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13964$as_echo "no" >&6; } 13965fi 13966 13967 if test "x$ac_ct_OTOOL64" = x; then 13968 OTOOL64=":" 13969 else 13970 case $cross_compiling:$ac_tool_warned in 13971yes:) 13972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13974ac_tool_warned=yes ;; 13975esac 13976 OTOOL64=$ac_ct_OTOOL64 13977 fi 13978else 13979 OTOOL64="$ac_cv_prog_OTOOL64" 13980fi 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14009$as_echo_n "checking for -single_module linker flag... " >&6; } 14010if ${lt_cv_apple_cc_single_mod+:} false; then : 14011 $as_echo_n "(cached) " >&6 14012else 14013 lt_cv_apple_cc_single_mod=no 14014 if test -z "$LT_MULTI_MODULE"; then 14015 # By default we will add the -single_module flag. You can override 14016 # by either setting the environment variable LT_MULTI_MODULE 14017 # non-empty at configure time, or by adding -multi_module to the 14018 # link flags. 14019 rm -rf libconftest.dylib* 14020 echo "int foo(void){return 1;}" > conftest.c 14021 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14022-dynamiclib -Wl,-single_module conftest.c" >&5 14023 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14024 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14025 _lt_result=$? 14026 # If there is a non-empty error log, and "single_module" 14027 # appears in it, assume the flag caused a linker warning 14028 if test -s conftest.err && $GREP single_module conftest.err; then 14029 cat conftest.err >&5 14030 # Otherwise, if the output was created with a 0 exit code from 14031 # the compiler, it worked. 14032 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14033 lt_cv_apple_cc_single_mod=yes 14034 else 14035 cat conftest.err >&5 14036 fi 14037 rm -rf libconftest.dylib* 14038 rm -f conftest.* 14039 fi 14040fi 14041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14042$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14043 14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14045$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14046if ${lt_cv_ld_exported_symbols_list+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 lt_cv_ld_exported_symbols_list=no 14050 save_LDFLAGS=$LDFLAGS 14051 echo "_main" > conftest.sym 14052 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055 14056int 14057main () 14058{ 14059 14060 ; 14061 return 0; 14062} 14063_ACEOF 14064if ac_fn_c_try_link "$LINENO"; then : 14065 lt_cv_ld_exported_symbols_list=yes 14066else 14067 lt_cv_ld_exported_symbols_list=no 14068fi 14069rm -f core conftest.err conftest.$ac_objext \ 14070 conftest$ac_exeext conftest.$ac_ext 14071 LDFLAGS=$save_LDFLAGS 14072 14073fi 14074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14075$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14076 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14078$as_echo_n "checking for -force_load linker flag... " >&6; } 14079if ${lt_cv_ld_force_load+:} false; then : 14080 $as_echo_n "(cached) " >&6 14081else 14082 lt_cv_ld_force_load=no 14083 cat > conftest.c << _LT_EOF 14084int forced_loaded() { return 2;} 14085_LT_EOF 14086 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14087 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14088 echo "$AR cru libconftest.a conftest.o" >&5 14089 $AR cru libconftest.a conftest.o 2>&5 14090 echo "$RANLIB libconftest.a" >&5 14091 $RANLIB libconftest.a 2>&5 14092 cat > conftest.c << _LT_EOF 14093int main() { return 0;} 14094_LT_EOF 14095 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14096 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14097 _lt_result=$? 14098 if test -s conftest.err && $GREP force_load conftest.err; then 14099 cat conftest.err >&5 14100 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14101 lt_cv_ld_force_load=yes 14102 else 14103 cat conftest.err >&5 14104 fi 14105 rm -f conftest.err libconftest.a conftest conftest.c 14106 rm -rf conftest.dSYM 14107 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14110$as_echo "$lt_cv_ld_force_load" >&6; } 14111 case $host_os in 14112 rhapsody* | darwin1.[012]) 14113 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14114 darwin1.*) 14115 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14116 darwin*) # darwin 5.x on 14117 # if running on 10.5 or later, the deployment target defaults 14118 # to the OS version, if on x86, and 10.4, the deployment 14119 # target defaults to 10.4. Don't you love it? 14120 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14121 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14122 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14123 10.[012][,.]*) 14124 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14125 10.*) 14126 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14127 esac 14128 ;; 14129 esac 14130 if test yes = "$lt_cv_apple_cc_single_mod"; then 14131 _lt_dar_single_mod='$single_module' 14132 fi 14133 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14134 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14135 else 14136 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14137 fi 14138 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14139 _lt_dsymutil='~$DSYMUTIL $lib || :' 14140 else 14141 _lt_dsymutil= 14142 fi 14143 ;; 14144 esac 14145 14146# func_munge_path_list VARIABLE PATH 14147# ----------------------------------- 14148# VARIABLE is name of variable containing _space_ separated list of 14149# directories to be munged by the contents of PATH, which is string 14150# having a format: 14151# "DIR[:DIR]:" 14152# string "DIR[ DIR]" will be prepended to VARIABLE 14153# ":DIR[:DIR]" 14154# string "DIR[ DIR]" will be appended to VARIABLE 14155# "DIRP[:DIRP]::[DIRA:]DIRA" 14156# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14157# "DIRA[ DIRA]" will be appended to VARIABLE 14158# "DIR[:DIR]" 14159# VARIABLE will be replaced by "DIR[ DIR]" 14160func_munge_path_list () 14161{ 14162 case x$2 in 14163 x) 14164 ;; 14165 *:) 14166 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14167 ;; 14168 x:*) 14169 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14170 ;; 14171 *::*) 14172 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14173 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14174 ;; 14175 *) 14176 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14177 ;; 14178 esac 14179} 14180 14181for ac_header in dlfcn.h 14182do : 14183 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14184" 14185if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14186 cat >>confdefs.h <<_ACEOF 14187#define HAVE_DLFCN_H 1 14188_ACEOF 14189 14190fi 14191 14192done 14193 14194 14195 14196 14197 14198# Set options 14199 14200 14201 14202 enable_dlopen=no 14203 14204 14205 enable_win32_dll=no 14206 14207 14208 # Check whether --enable-shared was given. 14209if test "${enable_shared+set}" = set; then : 14210 enableval=$enable_shared; p=${PACKAGE-default} 14211 case $enableval in 14212 yes) enable_shared=yes ;; 14213 no) enable_shared=no ;; 14214 *) 14215 enable_shared=no 14216 # Look at the argument we got. We use all the common list separators. 14217 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14218 for pkg in $enableval; do 14219 IFS=$lt_save_ifs 14220 if test "X$pkg" = "X$p"; then 14221 enable_shared=yes 14222 fi 14223 done 14224 IFS=$lt_save_ifs 14225 ;; 14226 esac 14227else 14228 enable_shared=yes 14229fi 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241# Check whether --with-pic was given. 14242if test "${with_pic+set}" = set; then : 14243 withval=$with_pic; lt_p=${PACKAGE-default} 14244 case $withval in 14245 yes|no) pic_mode=$withval ;; 14246 *) 14247 pic_mode=default 14248 # Look at the argument we got. We use all the common list separators. 14249 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14250 for lt_pkg in $withval; do 14251 IFS=$lt_save_ifs 14252 if test "X$lt_pkg" = "X$lt_p"; then 14253 pic_mode=yes 14254 fi 14255 done 14256 IFS=$lt_save_ifs 14257 ;; 14258 esac 14259else 14260 pic_mode=default 14261fi 14262 14263 14264 14265 14266 14267 14268 14269 14270 # Check whether --enable-fast-install was given. 14271if test "${enable_fast_install+set}" = set; then : 14272 enableval=$enable_fast_install; p=${PACKAGE-default} 14273 case $enableval in 14274 yes) enable_fast_install=yes ;; 14275 no) enable_fast_install=no ;; 14276 *) 14277 enable_fast_install=no 14278 # Look at the argument we got. We use all the common list separators. 14279 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14280 for pkg in $enableval; do 14281 IFS=$lt_save_ifs 14282 if test "X$pkg" = "X$p"; then 14283 enable_fast_install=yes 14284 fi 14285 done 14286 IFS=$lt_save_ifs 14287 ;; 14288 esac 14289else 14290 enable_fast_install=yes 14291fi 14292 14293 14294 14295 14296 14297 14298 14299 14300 shared_archive_member_spec= 14301case $host,$enable_shared in 14302power*-*-aix[5-9]*,yes) 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14304$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14305 14306# Check whether --with-aix-soname was given. 14307if test "${with_aix_soname+set}" = set; then : 14308 withval=$with_aix_soname; case $withval in 14309 aix|svr4|both) 14310 ;; 14311 *) 14312 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14313 ;; 14314 esac 14315 lt_cv_with_aix_soname=$with_aix_soname 14316else 14317 if ${lt_cv_with_aix_soname+:} false; then : 14318 $as_echo_n "(cached) " >&6 14319else 14320 lt_cv_with_aix_soname=aix 14321fi 14322 14323 with_aix_soname=$lt_cv_with_aix_soname 14324fi 14325 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14327$as_echo "$with_aix_soname" >&6; } 14328 if test aix != "$with_aix_soname"; then 14329 # For the AIX way of multilib, we name the shared archive member 14330 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14331 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14332 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14333 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14334 if test 64 = "${OBJECT_MODE-32}"; then 14335 shared_archive_member_spec=shr_64 14336 else 14337 shared_archive_member_spec=shr 14338 fi 14339 fi 14340 ;; 14341*) 14342 with_aix_soname=aix 14343 ;; 14344esac 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355# This can be used to rebuild libtool when needed 14356LIBTOOL_DEPS=$ltmain 14357 14358# Always use our own libtool. 14359LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390test -z "$LN_S" && LN_S="ln -s" 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405if test -n "${ZSH_VERSION+set}"; then 14406 setopt NO_GLOB_SUBST 14407fi 14408 14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14410$as_echo_n "checking for objdir... " >&6; } 14411if ${lt_cv_objdir+:} false; then : 14412 $as_echo_n "(cached) " >&6 14413else 14414 rm -f .libs 2>/dev/null 14415mkdir .libs 2>/dev/null 14416if test -d .libs; then 14417 lt_cv_objdir=.libs 14418else 14419 # MS-DOS does not allow filenames that begin with a dot. 14420 lt_cv_objdir=_libs 14421fi 14422rmdir .libs 2>/dev/null 14423fi 14424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14425$as_echo "$lt_cv_objdir" >&6; } 14426objdir=$lt_cv_objdir 14427 14428 14429 14430 14431 14432cat >>confdefs.h <<_ACEOF 14433#define LT_OBJDIR "$lt_cv_objdir/" 14434_ACEOF 14435 14436 14437 14438 14439case $host_os in 14440aix3*) 14441 # AIX sometimes has problems with the GCC collect2 program. For some 14442 # reason, if we set the COLLECT_NAMES environment variable, the problems 14443 # vanish in a puff of smoke. 14444 if test set != "${COLLECT_NAMES+set}"; then 14445 COLLECT_NAMES= 14446 export COLLECT_NAMES 14447 fi 14448 ;; 14449esac 14450 14451# Global variables: 14452ofile=libtool 14453can_build_shared=yes 14454 14455# All known linkers require a '.a' archive for static linking (except MSVC, 14456# which needs '.lib'). 14457libext=a 14458 14459with_gnu_ld=$lt_cv_prog_gnu_ld 14460 14461old_CC=$CC 14462old_CFLAGS=$CFLAGS 14463 14464# Set sane defaults for various variables 14465test -z "$CC" && CC=cc 14466test -z "$LTCC" && LTCC=$CC 14467test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14468test -z "$LD" && LD=ld 14469test -z "$ac_objext" && ac_objext=o 14470 14471func_cc_basename $compiler 14472cc_basename=$func_cc_basename_result 14473 14474 14475# Only perform the check for file, if the check method requires it 14476test -z "$MAGIC_CMD" && MAGIC_CMD=file 14477case $deplibs_check_method in 14478file_magic*) 14479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14481$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14482if ${lt_cv_path_MAGIC_CMD+:} false; then : 14483 $as_echo_n "(cached) " >&6 14484else 14485 case $MAGIC_CMD in 14486[\\/*] | ?:[\\/]*) 14487 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14488 ;; 14489*) 14490 lt_save_MAGIC_CMD=$MAGIC_CMD 14491 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14493 for ac_dir in $ac_dummy; do 14494 IFS=$lt_save_ifs 14495 test -z "$ac_dir" && ac_dir=. 14496 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14497 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14498 if test -n "$file_magic_test_file"; then 14499 case $deplibs_check_method in 14500 "file_magic "*) 14501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14502 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14504 $EGREP "$file_magic_regex" > /dev/null; then 14505 : 14506 else 14507 cat <<_LT_EOF 1>&2 14508 14509*** Warning: the command libtool uses to detect shared libraries, 14510*** $file_magic_cmd, produces output that libtool cannot recognize. 14511*** The result is that libtool may fail to recognize shared libraries 14512*** as such. This will affect the creation of libtool libraries that 14513*** depend on shared libraries, but programs linked with such libtool 14514*** libraries will work regardless of this problem. Nevertheless, you 14515*** may want to report the problem to your system manager and/or to 14516*** bug-libtool@gnu.org 14517 14518_LT_EOF 14519 fi ;; 14520 esac 14521 fi 14522 break 14523 fi 14524 done 14525 IFS=$lt_save_ifs 14526 MAGIC_CMD=$lt_save_MAGIC_CMD 14527 ;; 14528esac 14529fi 14530 14531MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14532if test -n "$MAGIC_CMD"; then 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14534$as_echo "$MAGIC_CMD" >&6; } 14535else 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14537$as_echo "no" >&6; } 14538fi 14539 14540 14541 14542 14543 14544if test -z "$lt_cv_path_MAGIC_CMD"; then 14545 if test -n "$ac_tool_prefix"; then 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14547$as_echo_n "checking for file... " >&6; } 14548if ${lt_cv_path_MAGIC_CMD+:} false; then : 14549 $as_echo_n "(cached) " >&6 14550else 14551 case $MAGIC_CMD in 14552[\\/*] | ?:[\\/]*) 14553 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14554 ;; 14555*) 14556 lt_save_MAGIC_CMD=$MAGIC_CMD 14557 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14559 for ac_dir in $ac_dummy; do 14560 IFS=$lt_save_ifs 14561 test -z "$ac_dir" && ac_dir=. 14562 if test -f "$ac_dir/file"; then 14563 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14564 if test -n "$file_magic_test_file"; then 14565 case $deplibs_check_method in 14566 "file_magic "*) 14567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14568 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14570 $EGREP "$file_magic_regex" > /dev/null; then 14571 : 14572 else 14573 cat <<_LT_EOF 1>&2 14574 14575*** Warning: the command libtool uses to detect shared libraries, 14576*** $file_magic_cmd, produces output that libtool cannot recognize. 14577*** The result is that libtool may fail to recognize shared libraries 14578*** as such. This will affect the creation of libtool libraries that 14579*** depend on shared libraries, but programs linked with such libtool 14580*** libraries will work regardless of this problem. Nevertheless, you 14581*** may want to report the problem to your system manager and/or to 14582*** bug-libtool@gnu.org 14583 14584_LT_EOF 14585 fi ;; 14586 esac 14587 fi 14588 break 14589 fi 14590 done 14591 IFS=$lt_save_ifs 14592 MAGIC_CMD=$lt_save_MAGIC_CMD 14593 ;; 14594esac 14595fi 14596 14597MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14598if test -n "$MAGIC_CMD"; then 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14600$as_echo "$MAGIC_CMD" >&6; } 14601else 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14603$as_echo "no" >&6; } 14604fi 14605 14606 14607 else 14608 MAGIC_CMD=: 14609 fi 14610fi 14611 14612 fi 14613 ;; 14614esac 14615 14616# Use C for the default configuration in the libtool script 14617 14618lt_save_CC=$CC 14619ac_ext=c 14620ac_cpp='$CPP $CPPFLAGS' 14621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14623ac_compiler_gnu=$ac_cv_c_compiler_gnu 14624 14625 14626# Source file extension for C test sources. 14627ac_ext=c 14628 14629# Object file extension for compiled C test sources. 14630objext=o 14631objext=$objext 14632 14633# Code to be used in simple compile tests 14634lt_simple_compile_test_code="int some_variable = 0;" 14635 14636# Code to be used in simple link tests 14637lt_simple_link_test_code='int main(){return(0);}' 14638 14639 14640 14641 14642 14643 14644 14645# If no C compiler was specified, use CC. 14646LTCC=${LTCC-"$CC"} 14647 14648# If no C compiler flags were specified, use CFLAGS. 14649LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14650 14651# Allow CC to be a program name with arguments. 14652compiler=$CC 14653 14654# Save the default compiler, since it gets overwritten when the other 14655# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14656compiler_DEFAULT=$CC 14657 14658# save warnings/boilerplate of simple test code 14659ac_outfile=conftest.$ac_objext 14660echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14661eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14662_lt_compiler_boilerplate=`cat conftest.err` 14663$RM conftest* 14664 14665ac_outfile=conftest.$ac_objext 14666echo "$lt_simple_link_test_code" >conftest.$ac_ext 14667eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14668_lt_linker_boilerplate=`cat conftest.err` 14669$RM -r conftest* 14670 14671 14672if test -n "$compiler"; then 14673 14674lt_prog_compiler_no_builtin_flag= 14675 14676if test yes = "$GCC"; then 14677 case $cc_basename in 14678 nvcc*) 14679 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14680 *) 14681 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14682 esac 14683 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14685$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14686if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14687 $as_echo_n "(cached) " >&6 14688else 14689 lt_cv_prog_compiler_rtti_exceptions=no 14690 ac_outfile=conftest.$ac_objext 14691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14692 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14693 # Insert the option either (1) after the last *FLAGS variable, or 14694 # (2) before a word containing "conftest.", or (3) at the end. 14695 # Note that $ac_compile itself does not contain backslashes and begins 14696 # with a dollar sign (not a hyphen), so the echo should work correctly. 14697 # The option is referenced via a variable to avoid confusing sed. 14698 lt_compile=`echo "$ac_compile" | $SED \ 14699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14701 -e 's:$: $lt_compiler_flag:'` 14702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14703 (eval "$lt_compile" 2>conftest.err) 14704 ac_status=$? 14705 cat conftest.err >&5 14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14707 if (exit $ac_status) && test -s "$ac_outfile"; then 14708 # The compiler can only warn and ignore the option if not recognized 14709 # So say no if there are warnings other than the usual output. 14710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14713 lt_cv_prog_compiler_rtti_exceptions=yes 14714 fi 14715 fi 14716 $RM conftest* 14717 14718fi 14719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14720$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14721 14722if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14724else 14725 : 14726fi 14727 14728fi 14729 14730 14731 14732 14733 14734 14735 lt_prog_compiler_wl= 14736lt_prog_compiler_pic= 14737lt_prog_compiler_static= 14738 14739 14740 if test yes = "$GCC"; then 14741 lt_prog_compiler_wl='-Wl,' 14742 lt_prog_compiler_static='-static' 14743 14744 case $host_os in 14745 aix*) 14746 # All AIX code is PIC. 14747 if test ia64 = "$host_cpu"; then 14748 # AIX 5 now supports IA64 processor 14749 lt_prog_compiler_static='-Bstatic' 14750 fi 14751 lt_prog_compiler_pic='-fPIC' 14752 ;; 14753 14754 amigaos*) 14755 case $host_cpu in 14756 powerpc) 14757 # see comment about AmigaOS4 .so support 14758 lt_prog_compiler_pic='-fPIC' 14759 ;; 14760 m68k) 14761 # FIXME: we need at least 68020 code to build shared libraries, but 14762 # adding the '-m68020' flag to GCC prevents building anything better, 14763 # like '-m68040'. 14764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14765 ;; 14766 esac 14767 ;; 14768 14769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14770 # PIC is the default for these OSes. 14771 ;; 14772 14773 mingw* | cygwin* | pw32* | os2* | cegcc*) 14774 # This hack is so that the source file can tell whether it is being 14775 # built for inclusion in a dll (and should export symbols for example). 14776 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14777 # (--disable-auto-import) libraries 14778 lt_prog_compiler_pic='-DDLL_EXPORT' 14779 case $host_os in 14780 os2*) 14781 lt_prog_compiler_static='$wl-static' 14782 ;; 14783 esac 14784 ;; 14785 14786 darwin* | rhapsody*) 14787 # PIC is the default on this platform 14788 # Common symbols not allowed in MH_DYLIB files 14789 lt_prog_compiler_pic='-fno-common' 14790 ;; 14791 14792 haiku*) 14793 # PIC is the default for Haiku. 14794 # The "-static" flag exists, but is broken. 14795 lt_prog_compiler_static= 14796 ;; 14797 14798 hpux*) 14799 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14800 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14801 # sets the default TLS model and affects inlining. 14802 case $host_cpu in 14803 hppa*64*) 14804 # +Z the default 14805 ;; 14806 *) 14807 lt_prog_compiler_pic='-fPIC' 14808 ;; 14809 esac 14810 ;; 14811 14812 interix[3-9]*) 14813 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14814 # Instead, we relocate shared libraries at runtime. 14815 ;; 14816 14817 msdosdjgpp*) 14818 # Just because we use GCC doesn't mean we suddenly get shared libraries 14819 # on systems that don't support them. 14820 lt_prog_compiler_can_build_shared=no 14821 enable_shared=no 14822 ;; 14823 14824 *nto* | *qnx*) 14825 # QNX uses GNU C++, but need to define -shared option too, otherwise 14826 # it will coredump. 14827 lt_prog_compiler_pic='-fPIC -shared' 14828 ;; 14829 14830 sysv4*MP*) 14831 if test -d /usr/nec; then 14832 lt_prog_compiler_pic=-Kconform_pic 14833 fi 14834 ;; 14835 14836 *) 14837 lt_prog_compiler_pic='-fPIC' 14838 ;; 14839 esac 14840 14841 case $cc_basename in 14842 nvcc*) # Cuda Compiler Driver 2.2 14843 lt_prog_compiler_wl='-Xlinker ' 14844 if test -n "$lt_prog_compiler_pic"; then 14845 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14846 fi 14847 ;; 14848 esac 14849 else 14850 # PORTME Check for flag to pass linker flags through the system compiler. 14851 case $host_os in 14852 aix*) 14853 lt_prog_compiler_wl='-Wl,' 14854 if test ia64 = "$host_cpu"; then 14855 # AIX 5 now supports IA64 processor 14856 lt_prog_compiler_static='-Bstatic' 14857 else 14858 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14859 fi 14860 ;; 14861 14862 darwin* | rhapsody*) 14863 # PIC is the default on this platform 14864 # Common symbols not allowed in MH_DYLIB files 14865 lt_prog_compiler_pic='-fno-common' 14866 case $cc_basename in 14867 nagfor*) 14868 # NAG Fortran compiler 14869 lt_prog_compiler_wl='-Wl,-Wl,,' 14870 lt_prog_compiler_pic='-PIC' 14871 lt_prog_compiler_static='-Bstatic' 14872 ;; 14873 esac 14874 ;; 14875 14876 mingw* | cygwin* | pw32* | os2* | cegcc*) 14877 # This hack is so that the source file can tell whether it is being 14878 # built for inclusion in a dll (and should export symbols for example). 14879 lt_prog_compiler_pic='-DDLL_EXPORT' 14880 case $host_os in 14881 os2*) 14882 lt_prog_compiler_static='$wl-static' 14883 ;; 14884 esac 14885 ;; 14886 14887 hpux9* | hpux10* | hpux11*) 14888 lt_prog_compiler_wl='-Wl,' 14889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14890 # not for PA HP-UX. 14891 case $host_cpu in 14892 hppa*64*|ia64*) 14893 # +Z the default 14894 ;; 14895 *) 14896 lt_prog_compiler_pic='+Z' 14897 ;; 14898 esac 14899 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14900 lt_prog_compiler_static='$wl-a ${wl}archive' 14901 ;; 14902 14903 irix5* | irix6* | nonstopux*) 14904 lt_prog_compiler_wl='-Wl,' 14905 # PIC (with -KPIC) is the default. 14906 lt_prog_compiler_static='-non_shared' 14907 ;; 14908 14909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14910 case $cc_basename in 14911 # old Intel for x86_64, which still supported -KPIC. 14912 ecc*) 14913 lt_prog_compiler_wl='-Wl,' 14914 lt_prog_compiler_pic='-KPIC' 14915 lt_prog_compiler_static='-static' 14916 ;; 14917 # icc used to be incompatible with GCC. 14918 # ICC 10 doesn't accept -KPIC any more. 14919 icc* | ifort*) 14920 lt_prog_compiler_wl='-Wl,' 14921 lt_prog_compiler_pic='-fPIC' 14922 lt_prog_compiler_static='-static' 14923 ;; 14924 # Lahey Fortran 8.1. 14925 lf95*) 14926 lt_prog_compiler_wl='-Wl,' 14927 lt_prog_compiler_pic='--shared' 14928 lt_prog_compiler_static='--static' 14929 ;; 14930 nagfor*) 14931 # NAG Fortran compiler 14932 lt_prog_compiler_wl='-Wl,-Wl,,' 14933 lt_prog_compiler_pic='-PIC' 14934 lt_prog_compiler_static='-Bstatic' 14935 ;; 14936 tcc*) 14937 # Fabrice Bellard et al's Tiny C Compiler 14938 lt_prog_compiler_wl='-Wl,' 14939 lt_prog_compiler_pic='-fPIC' 14940 lt_prog_compiler_static='-static' 14941 ;; 14942 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14943 # Portland Group compilers (*not* the Pentium gcc compiler, 14944 # which looks to be a dead project) 14945 lt_prog_compiler_wl='-Wl,' 14946 lt_prog_compiler_pic='-fpic' 14947 lt_prog_compiler_static='-Bstatic' 14948 ;; 14949 ccc*) 14950 lt_prog_compiler_wl='-Wl,' 14951 # All Alpha code is PIC. 14952 lt_prog_compiler_static='-non_shared' 14953 ;; 14954 xl* | bgxl* | bgf* | mpixl*) 14955 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14956 lt_prog_compiler_wl='-Wl,' 14957 lt_prog_compiler_pic='-qpic' 14958 lt_prog_compiler_static='-qstaticlink' 14959 ;; 14960 *) 14961 case `$CC -V 2>&1 | sed 5q` in 14962 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14963 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14964 lt_prog_compiler_pic='-KPIC' 14965 lt_prog_compiler_static='-Bstatic' 14966 lt_prog_compiler_wl='' 14967 ;; 14968 *Sun\ F* | *Sun*Fortran*) 14969 lt_prog_compiler_pic='-KPIC' 14970 lt_prog_compiler_static='-Bstatic' 14971 lt_prog_compiler_wl='-Qoption ld ' 14972 ;; 14973 *Sun\ C*) 14974 # Sun C 5.9 14975 lt_prog_compiler_pic='-KPIC' 14976 lt_prog_compiler_static='-Bstatic' 14977 lt_prog_compiler_wl='-Wl,' 14978 ;; 14979 *Intel*\ [CF]*Compiler*) 14980 lt_prog_compiler_wl='-Wl,' 14981 lt_prog_compiler_pic='-fPIC' 14982 lt_prog_compiler_static='-static' 14983 ;; 14984 *Portland\ Group*) 14985 lt_prog_compiler_wl='-Wl,' 14986 lt_prog_compiler_pic='-fpic' 14987 lt_prog_compiler_static='-Bstatic' 14988 ;; 14989 esac 14990 ;; 14991 esac 14992 ;; 14993 14994 newsos6) 14995 lt_prog_compiler_pic='-KPIC' 14996 lt_prog_compiler_static='-Bstatic' 14997 ;; 14998 14999 *nto* | *qnx*) 15000 # QNX uses GNU C++, but need to define -shared option too, otherwise 15001 # it will coredump. 15002 lt_prog_compiler_pic='-fPIC -shared' 15003 ;; 15004 15005 osf3* | osf4* | osf5*) 15006 lt_prog_compiler_wl='-Wl,' 15007 # All OSF/1 code is PIC. 15008 lt_prog_compiler_static='-non_shared' 15009 ;; 15010 15011 rdos*) 15012 lt_prog_compiler_static='-non_shared' 15013 ;; 15014 15015 solaris*) 15016 lt_prog_compiler_pic='-KPIC' 15017 lt_prog_compiler_static='-Bstatic' 15018 case $cc_basename in 15019 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15020 lt_prog_compiler_wl='-Qoption ld ';; 15021 *) 15022 lt_prog_compiler_wl='-Wl,';; 15023 esac 15024 ;; 15025 15026 sunos4*) 15027 lt_prog_compiler_wl='-Qoption ld ' 15028 lt_prog_compiler_pic='-PIC' 15029 lt_prog_compiler_static='-Bstatic' 15030 ;; 15031 15032 sysv4 | sysv4.2uw2* | sysv4.3*) 15033 lt_prog_compiler_wl='-Wl,' 15034 lt_prog_compiler_pic='-KPIC' 15035 lt_prog_compiler_static='-Bstatic' 15036 ;; 15037 15038 sysv4*MP*) 15039 if test -d /usr/nec; then 15040 lt_prog_compiler_pic='-Kconform_pic' 15041 lt_prog_compiler_static='-Bstatic' 15042 fi 15043 ;; 15044 15045 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15046 lt_prog_compiler_wl='-Wl,' 15047 lt_prog_compiler_pic='-KPIC' 15048 lt_prog_compiler_static='-Bstatic' 15049 ;; 15050 15051 unicos*) 15052 lt_prog_compiler_wl='-Wl,' 15053 lt_prog_compiler_can_build_shared=no 15054 ;; 15055 15056 uts4*) 15057 lt_prog_compiler_pic='-pic' 15058 lt_prog_compiler_static='-Bstatic' 15059 ;; 15060 15061 *) 15062 lt_prog_compiler_can_build_shared=no 15063 ;; 15064 esac 15065 fi 15066 15067case $host_os in 15068 # For platforms that do not support PIC, -DPIC is meaningless: 15069 *djgpp*) 15070 lt_prog_compiler_pic= 15071 ;; 15072 *) 15073 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15074 ;; 15075esac 15076 15077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15078$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15079if ${lt_cv_prog_compiler_pic+:} false; then : 15080 $as_echo_n "(cached) " >&6 15081else 15082 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15083fi 15084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15085$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15086lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15087 15088# 15089# Check to make sure the PIC flag actually works. 15090# 15091if test -n "$lt_prog_compiler_pic"; then 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15093$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15094if ${lt_cv_prog_compiler_pic_works+:} false; then : 15095 $as_echo_n "(cached) " >&6 15096else 15097 lt_cv_prog_compiler_pic_works=no 15098 ac_outfile=conftest.$ac_objext 15099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15100 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15101 # Insert the option either (1) after the last *FLAGS variable, or 15102 # (2) before a word containing "conftest.", or (3) at the end. 15103 # Note that $ac_compile itself does not contain backslashes and begins 15104 # with a dollar sign (not a hyphen), so the echo should work correctly. 15105 # The option is referenced via a variable to avoid confusing sed. 15106 lt_compile=`echo "$ac_compile" | $SED \ 15107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15109 -e 's:$: $lt_compiler_flag:'` 15110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15111 (eval "$lt_compile" 2>conftest.err) 15112 ac_status=$? 15113 cat conftest.err >&5 15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15115 if (exit $ac_status) && test -s "$ac_outfile"; then 15116 # The compiler can only warn and ignore the option if not recognized 15117 # So say no if there are warnings other than the usual output. 15118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15121 lt_cv_prog_compiler_pic_works=yes 15122 fi 15123 fi 15124 $RM conftest* 15125 15126fi 15127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15128$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15129 15130if test yes = "$lt_cv_prog_compiler_pic_works"; then 15131 case $lt_prog_compiler_pic in 15132 "" | " "*) ;; 15133 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15134 esac 15135else 15136 lt_prog_compiler_pic= 15137 lt_prog_compiler_can_build_shared=no 15138fi 15139 15140fi 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152# 15153# Check to make sure the static flag actually works. 15154# 15155wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15157$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15158if ${lt_cv_prog_compiler_static_works+:} false; then : 15159 $as_echo_n "(cached) " >&6 15160else 15161 lt_cv_prog_compiler_static_works=no 15162 save_LDFLAGS=$LDFLAGS 15163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15164 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15166 # The linker can only warn and ignore the option if not recognized 15167 # So say no if there are warnings 15168 if test -s conftest.err; then 15169 # Append any errors to the config.log. 15170 cat conftest.err 1>&5 15171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15173 if diff conftest.exp conftest.er2 >/dev/null; then 15174 lt_cv_prog_compiler_static_works=yes 15175 fi 15176 else 15177 lt_cv_prog_compiler_static_works=yes 15178 fi 15179 fi 15180 $RM -r conftest* 15181 LDFLAGS=$save_LDFLAGS 15182 15183fi 15184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15185$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15186 15187if test yes = "$lt_cv_prog_compiler_static_works"; then 15188 : 15189else 15190 lt_prog_compiler_static= 15191fi 15192 15193 15194 15195 15196 15197 15198 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15200$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15201if ${lt_cv_prog_compiler_c_o+:} false; then : 15202 $as_echo_n "(cached) " >&6 15203else 15204 lt_cv_prog_compiler_c_o=no 15205 $RM -r conftest 2>/dev/null 15206 mkdir conftest 15207 cd conftest 15208 mkdir out 15209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15210 15211 lt_compiler_flag="-o out/conftest2.$ac_objext" 15212 # Insert the option either (1) after the last *FLAGS variable, or 15213 # (2) before a word containing "conftest.", or (3) at the end. 15214 # Note that $ac_compile itself does not contain backslashes and begins 15215 # with a dollar sign (not a hyphen), so the echo should work correctly. 15216 lt_compile=`echo "$ac_compile" | $SED \ 15217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15219 -e 's:$: $lt_compiler_flag:'` 15220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15221 (eval "$lt_compile" 2>out/conftest.err) 15222 ac_status=$? 15223 cat out/conftest.err >&5 15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15225 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15226 then 15227 # The compiler can only warn and ignore the option if not recognized 15228 # So say no if there are warnings 15229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15232 lt_cv_prog_compiler_c_o=yes 15233 fi 15234 fi 15235 chmod u+w . 2>&5 15236 $RM conftest* 15237 # SGI C++ compiler will create directory out/ii_files/ for 15238 # template instantiation 15239 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15240 $RM out/* && rmdir out 15241 cd .. 15242 $RM -r conftest 15243 $RM conftest* 15244 15245fi 15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15247$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15248 15249 15250 15251 15252 15253 15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15255$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15256if ${lt_cv_prog_compiler_c_o+:} false; then : 15257 $as_echo_n "(cached) " >&6 15258else 15259 lt_cv_prog_compiler_c_o=no 15260 $RM -r conftest 2>/dev/null 15261 mkdir conftest 15262 cd conftest 15263 mkdir out 15264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15265 15266 lt_compiler_flag="-o out/conftest2.$ac_objext" 15267 # Insert the option either (1) after the last *FLAGS variable, or 15268 # (2) before a word containing "conftest.", or (3) at the end. 15269 # Note that $ac_compile itself does not contain backslashes and begins 15270 # with a dollar sign (not a hyphen), so the echo should work correctly. 15271 lt_compile=`echo "$ac_compile" | $SED \ 15272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15274 -e 's:$: $lt_compiler_flag:'` 15275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15276 (eval "$lt_compile" 2>out/conftest.err) 15277 ac_status=$? 15278 cat out/conftest.err >&5 15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15280 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15281 then 15282 # The compiler can only warn and ignore the option if not recognized 15283 # So say no if there are warnings 15284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15287 lt_cv_prog_compiler_c_o=yes 15288 fi 15289 fi 15290 chmod u+w . 2>&5 15291 $RM conftest* 15292 # SGI C++ compiler will create directory out/ii_files/ for 15293 # template instantiation 15294 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15295 $RM out/* && rmdir out 15296 cd .. 15297 $RM -r conftest 15298 $RM conftest* 15299 15300fi 15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15302$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15303 15304 15305 15306 15307hard_links=nottested 15308if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15309 # do not overwrite the value of need_locks provided by the user 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15311$as_echo_n "checking if we can lock with hard links... " >&6; } 15312 hard_links=yes 15313 $RM conftest* 15314 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15315 touch conftest.a 15316 ln conftest.a conftest.b 2>&5 || hard_links=no 15317 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15319$as_echo "$hard_links" >&6; } 15320 if test no = "$hard_links"; then 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15322$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15323 need_locks=warn 15324 fi 15325else 15326 need_locks=no 15327fi 15328 15329 15330 15331 15332 15333 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15335$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15336 15337 runpath_var= 15338 allow_undefined_flag= 15339 always_export_symbols=no 15340 archive_cmds= 15341 archive_expsym_cmds= 15342 compiler_needs_object=no 15343 enable_shared_with_static_runtimes=no 15344 export_dynamic_flag_spec= 15345 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15346 hardcode_automatic=no 15347 hardcode_direct=no 15348 hardcode_direct_absolute=no 15349 hardcode_libdir_flag_spec= 15350 hardcode_libdir_separator= 15351 hardcode_minus_L=no 15352 hardcode_shlibpath_var=unsupported 15353 inherit_rpath=no 15354 link_all_deplibs=unknown 15355 module_cmds= 15356 module_expsym_cmds= 15357 old_archive_from_new_cmds= 15358 old_archive_from_expsyms_cmds= 15359 thread_safe_flag_spec= 15360 whole_archive_flag_spec= 15361 # include_expsyms should be a list of space-separated symbols to be *always* 15362 # included in the symbol list 15363 include_expsyms= 15364 # exclude_expsyms can be an extended regexp of symbols to exclude 15365 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15366 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15367 # as well as any symbol that contains 'd'. 15368 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15369 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15370 # platforms (ab)use it in PIC code, but their linkers get confused if 15371 # the symbol is explicitly referenced. Since portable code cannot 15372 # rely on this symbol name, it's probably fine to never include it in 15373 # preloaded symbol tables. 15374 # Exclude shared library initialization/finalization symbols. 15375 extract_expsyms_cmds= 15376 15377 case $host_os in 15378 cygwin* | mingw* | pw32* | cegcc*) 15379 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15380 # When not using gcc, we currently assume that we are using 15381 # Microsoft Visual C++. 15382 if test yes != "$GCC"; then 15383 with_gnu_ld=no 15384 fi 15385 ;; 15386 interix*) 15387 # we just hope/assume this is gcc and not c89 (= MSVC++) 15388 with_gnu_ld=yes 15389 ;; 15390 openbsd* | bitrig*) 15391 with_gnu_ld=no 15392 ;; 15393 esac 15394 15395 ld_shlibs=yes 15396 15397 # On some targets, GNU ld is compatible enough with the native linker 15398 # that we're better off using the native interface for both. 15399 lt_use_gnu_ld_interface=no 15400 if test yes = "$with_gnu_ld"; then 15401 case $host_os in 15402 aix*) 15403 # The AIX port of GNU ld has always aspired to compatibility 15404 # with the native linker. However, as the warning in the GNU ld 15405 # block says, versions before 2.19.5* couldn't really create working 15406 # shared libraries, regardless of the interface used. 15407 case `$LD -v 2>&1` in 15408 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15409 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15410 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15411 *) 15412 lt_use_gnu_ld_interface=yes 15413 ;; 15414 esac 15415 ;; 15416 *) 15417 lt_use_gnu_ld_interface=yes 15418 ;; 15419 esac 15420 fi 15421 15422 if test yes = "$lt_use_gnu_ld_interface"; then 15423 # If archive_cmds runs LD, not CC, wlarc should be empty 15424 wlarc='$wl' 15425 15426 # Set some defaults for GNU ld with shared library support. These 15427 # are reset later if shared libraries are not supported. Putting them 15428 # here allows them to be overridden if necessary. 15429 runpath_var=LD_RUN_PATH 15430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15431 export_dynamic_flag_spec='$wl--export-dynamic' 15432 # ancient GNU ld didn't support --whole-archive et. al. 15433 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15434 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15435 else 15436 whole_archive_flag_spec= 15437 fi 15438 supports_anon_versioning=no 15439 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15440 *GNU\ gold*) supports_anon_versioning=yes ;; 15441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15444 *\ 2.11.*) ;; # other 2.11 versions 15445 *) supports_anon_versioning=yes ;; 15446 esac 15447 15448 # See if GNU ld supports shared libraries. 15449 case $host_os in 15450 aix[3-9]*) 15451 # On AIX/PPC, the GNU linker is very broken 15452 if test ia64 != "$host_cpu"; then 15453 ld_shlibs=no 15454 cat <<_LT_EOF 1>&2 15455 15456*** Warning: the GNU linker, at least up to release 2.19, is reported 15457*** to be unable to reliably create shared libraries on AIX. 15458*** Therefore, libtool is disabling shared libraries support. If you 15459*** really care for shared libraries, you may want to install binutils 15460*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15461*** You will then need to restart the configuration process. 15462 15463_LT_EOF 15464 fi 15465 ;; 15466 15467 amigaos*) 15468 case $host_cpu in 15469 powerpc) 15470 # see comment about AmigaOS4 .so support 15471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15472 archive_expsym_cmds='' 15473 ;; 15474 m68k) 15475 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)' 15476 hardcode_libdir_flag_spec='-L$libdir' 15477 hardcode_minus_L=yes 15478 ;; 15479 esac 15480 ;; 15481 15482 beos*) 15483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15484 allow_undefined_flag=unsupported 15485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15486 # support --undefined. This deserves some investigation. FIXME 15487 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15488 else 15489 ld_shlibs=no 15490 fi 15491 ;; 15492 15493 cygwin* | mingw* | pw32* | cegcc*) 15494 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15495 # as there is no search path for DLLs. 15496 hardcode_libdir_flag_spec='-L$libdir' 15497 export_dynamic_flag_spec='$wl--export-all-symbols' 15498 allow_undefined_flag=unsupported 15499 always_export_symbols=no 15500 enable_shared_with_static_runtimes=yes 15501 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' 15502 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15503 15504 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15506 # If the export-symbols file already is a .def file, use it as 15507 # is; otherwise, prepend EXPORTS... 15508 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15509 cp $export_symbols $output_objdir/$soname.def; 15510 else 15511 echo EXPORTS > $output_objdir/$soname.def; 15512 cat $export_symbols >> $output_objdir/$soname.def; 15513 fi~ 15514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15515 else 15516 ld_shlibs=no 15517 fi 15518 ;; 15519 15520 haiku*) 15521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15522 link_all_deplibs=yes 15523 ;; 15524 15525 os2*) 15526 hardcode_libdir_flag_spec='-L$libdir' 15527 hardcode_minus_L=yes 15528 allow_undefined_flag=unsupported 15529 shrext_cmds=.dll 15530 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15531 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15532 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15533 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15534 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15535 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15536 emximp -o $lib $output_objdir/$libname.def' 15537 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15538 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15539 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15540 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15541 prefix_cmds="$SED"~ 15542 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15543 prefix_cmds="$prefix_cmds -e 1d"; 15544 fi~ 15545 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15546 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15548 emximp -o $lib $output_objdir/$libname.def' 15549 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15550 enable_shared_with_static_runtimes=yes 15551 ;; 15552 15553 interix[3-9]*) 15554 hardcode_direct=no 15555 hardcode_shlibpath_var=no 15556 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15557 export_dynamic_flag_spec='$wl-E' 15558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15559 # Instead, shared libraries are loaded at an image base (0x10000000 by 15560 # default) and relocated if they conflict, which is a slow very memory 15561 # consuming and fragmenting process. To avoid this, we pick a random, 15562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15563 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15565 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' 15566 ;; 15567 15568 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15569 tmp_diet=no 15570 if test linux-dietlibc = "$host_os"; then 15571 case $cc_basename in 15572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15573 esac 15574 fi 15575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15576 && test no = "$tmp_diet" 15577 then 15578 tmp_addflag=' $pic_flag' 15579 tmp_sharedflag='-shared' 15580 case $cc_basename,$host_cpu in 15581 pgcc*) # Portland Group C compiler 15582 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' 15583 tmp_addflag=' $pic_flag' 15584 ;; 15585 pgf77* | pgf90* | pgf95* | pgfortran*) 15586 # Portland Group f77 and f90 compilers 15587 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' 15588 tmp_addflag=' $pic_flag -Mnomain' ;; 15589 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15590 tmp_addflag=' -i_dynamic' ;; 15591 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15592 tmp_addflag=' -i_dynamic -nofor_main' ;; 15593 ifc* | ifort*) # Intel Fortran compiler 15594 tmp_addflag=' -nofor_main' ;; 15595 lf95*) # Lahey Fortran 8.1 15596 whole_archive_flag_spec= 15597 tmp_sharedflag='--shared' ;; 15598 nagfor*) # NAGFOR 5.3 15599 tmp_sharedflag='-Wl,-shared' ;; 15600 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15601 tmp_sharedflag='-qmkshrobj' 15602 tmp_addflag= ;; 15603 nvcc*) # Cuda Compiler Driver 2.2 15604 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' 15605 compiler_needs_object=yes 15606 ;; 15607 esac 15608 case `$CC -V 2>&1 | sed 5q` in 15609 *Sun\ C*) # Sun C 5.9 15610 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' 15611 compiler_needs_object=yes 15612 tmp_sharedflag='-G' ;; 15613 *Sun\ F*) # Sun Fortran 8.3 15614 tmp_sharedflag='-G' ;; 15615 esac 15616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15617 15618 if test yes = "$supports_anon_versioning"; then 15619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15621 echo "local: *; };" >> $output_objdir/$libname.ver~ 15622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15623 fi 15624 15625 case $cc_basename in 15626 tcc*) 15627 export_dynamic_flag_spec='-rdynamic' 15628 ;; 15629 xlf* | bgf* | bgxlf* | mpixlf*) 15630 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15631 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15633 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15634 if test yes = "$supports_anon_versioning"; then 15635 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15637 echo "local: *; };" >> $output_objdir/$libname.ver~ 15638 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15639 fi 15640 ;; 15641 esac 15642 else 15643 ld_shlibs=no 15644 fi 15645 ;; 15646 15647 netbsd*) 15648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15649 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15650 wlarc= 15651 else 15652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15653 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15654 fi 15655 ;; 15656 15657 solaris*) 15658 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15659 ld_shlibs=no 15660 cat <<_LT_EOF 1>&2 15661 15662*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15663*** create shared libraries on Solaris systems. Therefore, libtool 15664*** is disabling shared libraries support. We urge you to upgrade GNU 15665*** binutils to release 2.9.1 or newer. Another option is to modify 15666*** your PATH or compiler configuration so that the native linker is 15667*** used, and then restart. 15668 15669_LT_EOF 15670 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15671 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15672 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15673 else 15674 ld_shlibs=no 15675 fi 15676 ;; 15677 15678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15679 case `$LD -v 2>&1` in 15680 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15681 ld_shlibs=no 15682 cat <<_LT_EOF 1>&2 15683 15684*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15685*** reliably create shared libraries on SCO systems. Therefore, libtool 15686*** is disabling shared libraries support. We urge you to upgrade GNU 15687*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15688*** your PATH or compiler configuration so that the native linker is 15689*** used, and then restart. 15690 15691_LT_EOF 15692 ;; 15693 *) 15694 # For security reasons, it is highly recommended that you always 15695 # use absolute paths for naming shared libraries, and exclude the 15696 # DT_RUNPATH tag from executables and libraries. But doing so 15697 # requires that you compile everything twice, which is a pain. 15698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15702 else 15703 ld_shlibs=no 15704 fi 15705 ;; 15706 esac 15707 ;; 15708 15709 sunos4*) 15710 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15711 wlarc= 15712 hardcode_direct=yes 15713 hardcode_shlibpath_var=no 15714 ;; 15715 15716 *) 15717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15719 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15720 else 15721 ld_shlibs=no 15722 fi 15723 ;; 15724 esac 15725 15726 if test no = "$ld_shlibs"; then 15727 runpath_var= 15728 hardcode_libdir_flag_spec= 15729 export_dynamic_flag_spec= 15730 whole_archive_flag_spec= 15731 fi 15732 else 15733 # PORTME fill in a description of your system's linker (not GNU ld) 15734 case $host_os in 15735 aix3*) 15736 allow_undefined_flag=unsupported 15737 always_export_symbols=yes 15738 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' 15739 # Note: this linker hardcodes the directories in LIBPATH if there 15740 # are no directories specified by -L. 15741 hardcode_minus_L=yes 15742 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15743 # Neither direct hardcoding nor static linking is supported with a 15744 # broken collect2. 15745 hardcode_direct=unsupported 15746 fi 15747 ;; 15748 15749 aix[4-9]*) 15750 if test ia64 = "$host_cpu"; then 15751 # On IA64, the linker does run time linking by default, so we don't 15752 # have to do anything special. 15753 aix_use_runtimelinking=no 15754 exp_sym_flag='-Bexport' 15755 no_entry_flag= 15756 else 15757 # If we're using GNU nm, then we don't want the "-C" option. 15758 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15759 # Without the "-l" option, or with the "-B" option, AIX nm treats 15760 # weak defined symbols like other global defined symbols, whereas 15761 # GNU nm marks them as "W". 15762 # While the 'weak' keyword is ignored in the Export File, we need 15763 # it in the Import File for the 'aix-soname' feature, so we have 15764 # to replace the "-B" option with "-P" for AIX nm. 15765 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15766 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' 15767 else 15768 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' 15769 fi 15770 aix_use_runtimelinking=no 15771 15772 # Test if we are trying to use run time linking or normal 15773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15774 # have runtime linking enabled, and use it for executables. 15775 # For shared libraries, we enable/disable runtime linking 15776 # depending on the kind of the shared library created - 15777 # when "with_aix_soname,aix_use_runtimelinking" is: 15778 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15779 # "aix,yes" lib.so shared, rtl:yes, for executables 15780 # lib.a static archive 15781 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15782 # lib.a(lib.so.V) shared, rtl:no, for executables 15783 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15784 # lib.a(lib.so.V) shared, rtl:no 15785 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15786 # lib.a static archive 15787 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15788 for ld_flag in $LDFLAGS; do 15789 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15790 aix_use_runtimelinking=yes 15791 break 15792 fi 15793 done 15794 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15795 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15796 # so we don't have lib.a shared libs to link our executables. 15797 # We have to force runtime linking in this case. 15798 aix_use_runtimelinking=yes 15799 LDFLAGS="$LDFLAGS -Wl,-brtl" 15800 fi 15801 ;; 15802 esac 15803 15804 exp_sym_flag='-bexport' 15805 no_entry_flag='-bnoentry' 15806 fi 15807 15808 # When large executables or shared objects are built, AIX ld can 15809 # have problems creating the table of contents. If linking a library 15810 # or program results in "error TOC overflow" add -mminimal-toc to 15811 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15812 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15813 15814 archive_cmds='' 15815 hardcode_direct=yes 15816 hardcode_direct_absolute=yes 15817 hardcode_libdir_separator=':' 15818 link_all_deplibs=yes 15819 file_list_spec='$wl-f,' 15820 case $with_aix_soname,$aix_use_runtimelinking in 15821 aix,*) ;; # traditional, no import file 15822 svr4,* | *,yes) # use import file 15823 # The Import File defines what to hardcode. 15824 hardcode_direct=no 15825 hardcode_direct_absolute=no 15826 ;; 15827 esac 15828 15829 if test yes = "$GCC"; then 15830 case $host_os in aix4.[012]|aix4.[012].*) 15831 # We only want to do this on AIX 4.2 and lower, the check 15832 # below for broken collect2 doesn't work under 4.3+ 15833 collect2name=`$CC -print-prog-name=collect2` 15834 if test -f "$collect2name" && 15835 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15836 then 15837 # We have reworked collect2 15838 : 15839 else 15840 # We have old collect2 15841 hardcode_direct=unsupported 15842 # It fails to find uninstalled libraries when the uninstalled 15843 # path is not listed in the libpath. Setting hardcode_minus_L 15844 # to unsupported forces relinking 15845 hardcode_minus_L=yes 15846 hardcode_libdir_flag_spec='-L$libdir' 15847 hardcode_libdir_separator= 15848 fi 15849 ;; 15850 esac 15851 shared_flag='-shared' 15852 if test yes = "$aix_use_runtimelinking"; then 15853 shared_flag="$shared_flag "'$wl-G' 15854 fi 15855 # Need to ensure runtime linking is disabled for the traditional 15856 # shared library, or the linker may eventually find shared libraries 15857 # /with/ Import File - we do not want to mix them. 15858 shared_flag_aix='-shared' 15859 shared_flag_svr4='-shared $wl-G' 15860 else 15861 # not using gcc 15862 if test ia64 = "$host_cpu"; then 15863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15864 # chokes on -Wl,-G. The following line is correct: 15865 shared_flag='-G' 15866 else 15867 if test yes = "$aix_use_runtimelinking"; then 15868 shared_flag='$wl-G' 15869 else 15870 shared_flag='$wl-bM:SRE' 15871 fi 15872 shared_flag_aix='$wl-bM:SRE' 15873 shared_flag_svr4='$wl-G' 15874 fi 15875 fi 15876 15877 export_dynamic_flag_spec='$wl-bexpall' 15878 # It seems that -bexpall does not export symbols beginning with 15879 # underscore (_), so it is better to generate a list of symbols to export. 15880 always_export_symbols=yes 15881 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15882 # Warning - without using the other runtime loading flags (-brtl), 15883 # -berok will link without error, but may produce a broken library. 15884 allow_undefined_flag='-berok' 15885 # Determine the default libpath from the value encoded in an 15886 # empty executable. 15887 if test set = "${lt_cv_aix_libpath+set}"; then 15888 aix_libpath=$lt_cv_aix_libpath 15889else 15890 if ${lt_cv_aix_libpath_+:} false; then : 15891 $as_echo_n "(cached) " >&6 15892else 15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15894/* end confdefs.h. */ 15895 15896int 15897main () 15898{ 15899 15900 ; 15901 return 0; 15902} 15903_ACEOF 15904if ac_fn_c_try_link "$LINENO"; then : 15905 15906 lt_aix_libpath_sed=' 15907 /Import File Strings/,/^$/ { 15908 /^0/ { 15909 s/^0 *\([^ ]*\) *$/\1/ 15910 p 15911 } 15912 }' 15913 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15914 # Check for a 64-bit object if we didn't find anything. 15915 if test -z "$lt_cv_aix_libpath_"; then 15916 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15917 fi 15918fi 15919rm -f core conftest.err conftest.$ac_objext \ 15920 conftest$ac_exeext conftest.$ac_ext 15921 if test -z "$lt_cv_aix_libpath_"; then 15922 lt_cv_aix_libpath_=/usr/lib:/lib 15923 fi 15924 15925fi 15926 15927 aix_libpath=$lt_cv_aix_libpath_ 15928fi 15929 15930 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15931 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 15932 else 15933 if test ia64 = "$host_cpu"; then 15934 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15935 allow_undefined_flag="-z nodefs" 15936 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" 15937 else 15938 # Determine the default libpath from the value encoded in an 15939 # empty executable. 15940 if test set = "${lt_cv_aix_libpath+set}"; then 15941 aix_libpath=$lt_cv_aix_libpath 15942else 15943 if ${lt_cv_aix_libpath_+:} false; then : 15944 $as_echo_n "(cached) " >&6 15945else 15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15947/* end confdefs.h. */ 15948 15949int 15950main () 15951{ 15952 15953 ; 15954 return 0; 15955} 15956_ACEOF 15957if ac_fn_c_try_link "$LINENO"; then : 15958 15959 lt_aix_libpath_sed=' 15960 /Import File Strings/,/^$/ { 15961 /^0/ { 15962 s/^0 *\([^ ]*\) *$/\1/ 15963 p 15964 } 15965 }' 15966 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15967 # Check for a 64-bit object if we didn't find anything. 15968 if test -z "$lt_cv_aix_libpath_"; then 15969 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15970 fi 15971fi 15972rm -f core conftest.err conftest.$ac_objext \ 15973 conftest$ac_exeext conftest.$ac_ext 15974 if test -z "$lt_cv_aix_libpath_"; then 15975 lt_cv_aix_libpath_=/usr/lib:/lib 15976 fi 15977 15978fi 15979 15980 aix_libpath=$lt_cv_aix_libpath_ 15981fi 15982 15983 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15984 # Warning - without using the other run time loading flags, 15985 # -berok will link without error, but may produce a broken library. 15986 no_undefined_flag=' $wl-bernotok' 15987 allow_undefined_flag=' $wl-berok' 15988 if test yes = "$with_gnu_ld"; then 15989 # We only use this code for GNU lds that support --whole-archive. 15990 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15991 else 15992 # Exported symbols can be pulled into shared objects from archives 15993 whole_archive_flag_spec='$convenience' 15994 fi 15995 archive_cmds_need_lc=yes 15996 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15997 # -brtl affects multiple linker settings, -berok does not and is overridden later 15998 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15999 if test svr4 != "$with_aix_soname"; then 16000 # This is similar to how AIX traditionally builds its shared libraries. 16001 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' 16002 fi 16003 if test aix != "$with_aix_soname"; then 16004 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' 16005 else 16006 # used by -dlpreopen to get the symbols 16007 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16008 fi 16009 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16010 fi 16011 fi 16012 ;; 16013 16014 amigaos*) 16015 case $host_cpu in 16016 powerpc) 16017 # see comment about AmigaOS4 .so support 16018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16019 archive_expsym_cmds='' 16020 ;; 16021 m68k) 16022 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)' 16023 hardcode_libdir_flag_spec='-L$libdir' 16024 hardcode_minus_L=yes 16025 ;; 16026 esac 16027 ;; 16028 16029 bsdi[45]*) 16030 export_dynamic_flag_spec=-rdynamic 16031 ;; 16032 16033 cygwin* | mingw* | pw32* | cegcc*) 16034 # When not using gcc, we currently assume that we are using 16035 # Microsoft Visual C++. 16036 # hardcode_libdir_flag_spec is actually meaningless, as there is 16037 # no search path for DLLs. 16038 case $cc_basename in 16039 cl*) 16040 # Native MSVC 16041 hardcode_libdir_flag_spec=' ' 16042 allow_undefined_flag=unsupported 16043 always_export_symbols=yes 16044 file_list_spec='@' 16045 # Tell ltmain to make .lib files, not .a files. 16046 libext=lib 16047 # Tell ltmain to make .dll files, not .so files. 16048 shrext_cmds=.dll 16049 # FIXME: Setting linknames here is a bad hack. 16050 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16051 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16052 cp "$export_symbols" "$output_objdir/$soname.def"; 16053 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16054 else 16055 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16056 fi~ 16057 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16058 linknames=' 16059 # The linker will not automatically build a static lib if we build a DLL. 16060 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16061 enable_shared_with_static_runtimes=yes 16062 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16064 # Don't use ranlib 16065 old_postinstall_cmds='chmod 644 $oldlib' 16066 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16067 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16068 case $lt_outputfile in 16069 *.exe|*.EXE) ;; 16070 *) 16071 lt_outputfile=$lt_outputfile.exe 16072 lt_tool_outputfile=$lt_tool_outputfile.exe 16073 ;; 16074 esac~ 16075 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16076 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16077 $RM "$lt_outputfile.manifest"; 16078 fi' 16079 ;; 16080 *) 16081 # Assume MSVC wrapper 16082 hardcode_libdir_flag_spec=' ' 16083 allow_undefined_flag=unsupported 16084 # Tell ltmain to make .lib files, not .a files. 16085 libext=lib 16086 # Tell ltmain to make .dll files, not .so files. 16087 shrext_cmds=.dll 16088 # FIXME: Setting linknames here is a bad hack. 16089 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16090 # The linker will automatically build a .lib file if we build a DLL. 16091 old_archive_from_new_cmds='true' 16092 # FIXME: Should let the user specify the lib program. 16093 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16094 enable_shared_with_static_runtimes=yes 16095 ;; 16096 esac 16097 ;; 16098 16099 darwin* | rhapsody*) 16100 16101 16102 archive_cmds_need_lc=no 16103 hardcode_direct=no 16104 hardcode_automatic=yes 16105 hardcode_shlibpath_var=unsupported 16106 if test yes = "$lt_cv_ld_force_load"; then 16107 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\"`' 16108 16109 else 16110 whole_archive_flag_spec='' 16111 fi 16112 link_all_deplibs=yes 16113 allow_undefined_flag=$_lt_dar_allow_undefined 16114 case $cc_basename in 16115 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16116 *) _lt_dar_can_shared=$GCC ;; 16117 esac 16118 if test yes = "$_lt_dar_can_shared"; then 16119 output_verbose_link_cmd=func_echo_all 16120 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16121 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16122 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" 16123 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" 16124 16125 else 16126 ld_shlibs=no 16127 fi 16128 16129 ;; 16130 16131 dgux*) 16132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16133 hardcode_libdir_flag_spec='-L$libdir' 16134 hardcode_shlibpath_var=no 16135 ;; 16136 16137 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16138 # support. Future versions do this automatically, but an explicit c++rt0.o 16139 # does not break anything, and helps significantly (at the cost of a little 16140 # extra space). 16141 freebsd2.2*) 16142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16143 hardcode_libdir_flag_spec='-R$libdir' 16144 hardcode_direct=yes 16145 hardcode_shlibpath_var=no 16146 ;; 16147 16148 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16149 freebsd2.*) 16150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16151 hardcode_direct=yes 16152 hardcode_minus_L=yes 16153 hardcode_shlibpath_var=no 16154 ;; 16155 16156 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16157 freebsd* | dragonfly*) 16158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16159 hardcode_libdir_flag_spec='-R$libdir' 16160 hardcode_direct=yes 16161 hardcode_shlibpath_var=no 16162 ;; 16163 16164 hpux9*) 16165 if test yes = "$GCC"; then 16166 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' 16167 else 16168 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' 16169 fi 16170 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16171 hardcode_libdir_separator=: 16172 hardcode_direct=yes 16173 16174 # hardcode_minus_L: Not really in the search PATH, 16175 # but as the default location of the library. 16176 hardcode_minus_L=yes 16177 export_dynamic_flag_spec='$wl-E' 16178 ;; 16179 16180 hpux10*) 16181 if test yes,no = "$GCC,$with_gnu_ld"; then 16182 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16183 else 16184 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16185 fi 16186 if test no = "$with_gnu_ld"; then 16187 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16188 hardcode_libdir_separator=: 16189 hardcode_direct=yes 16190 hardcode_direct_absolute=yes 16191 export_dynamic_flag_spec='$wl-E' 16192 # hardcode_minus_L: Not really in the search PATH, 16193 # but as the default location of the library. 16194 hardcode_minus_L=yes 16195 fi 16196 ;; 16197 16198 hpux11*) 16199 if test yes,no = "$GCC,$with_gnu_ld"; then 16200 case $host_cpu in 16201 hppa*64*) 16202 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16203 ;; 16204 ia64*) 16205 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16206 ;; 16207 *) 16208 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16209 ;; 16210 esac 16211 else 16212 case $host_cpu in 16213 hppa*64*) 16214 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16215 ;; 16216 ia64*) 16217 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16218 ;; 16219 *) 16220 16221 # Older versions of the 11.00 compiler do not understand -b yet 16222 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16224$as_echo_n "checking if $CC understands -b... " >&6; } 16225if ${lt_cv_prog_compiler__b+:} false; then : 16226 $as_echo_n "(cached) " >&6 16227else 16228 lt_cv_prog_compiler__b=no 16229 save_LDFLAGS=$LDFLAGS 16230 LDFLAGS="$LDFLAGS -b" 16231 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16233 # The linker can only warn and ignore the option if not recognized 16234 # So say no if there are warnings 16235 if test -s conftest.err; then 16236 # Append any errors to the config.log. 16237 cat conftest.err 1>&5 16238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16240 if diff conftest.exp conftest.er2 >/dev/null; then 16241 lt_cv_prog_compiler__b=yes 16242 fi 16243 else 16244 lt_cv_prog_compiler__b=yes 16245 fi 16246 fi 16247 $RM -r conftest* 16248 LDFLAGS=$save_LDFLAGS 16249 16250fi 16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16252$as_echo "$lt_cv_prog_compiler__b" >&6; } 16253 16254if test yes = "$lt_cv_prog_compiler__b"; then 16255 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16256else 16257 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16258fi 16259 16260 ;; 16261 esac 16262 fi 16263 if test no = "$with_gnu_ld"; then 16264 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16265 hardcode_libdir_separator=: 16266 16267 case $host_cpu in 16268 hppa*64*|ia64*) 16269 hardcode_direct=no 16270 hardcode_shlibpath_var=no 16271 ;; 16272 *) 16273 hardcode_direct=yes 16274 hardcode_direct_absolute=yes 16275 export_dynamic_flag_spec='$wl-E' 16276 16277 # hardcode_minus_L: Not really in the search PATH, 16278 # but as the default location of the library. 16279 hardcode_minus_L=yes 16280 ;; 16281 esac 16282 fi 16283 ;; 16284 16285 irix5* | irix6* | nonstopux*) 16286 if test yes = "$GCC"; then 16287 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' 16288 # Try to use the -exported_symbol ld option, if it does not 16289 # work, assume that -exports_file does not work either and 16290 # implicitly export all symbols. 16291 # This should be the same for all languages, so no per-tag cache variable. 16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16293$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16294if ${lt_cv_irix_exported_symbol+:} false; then : 16295 $as_echo_n "(cached) " >&6 16296else 16297 save_LDFLAGS=$LDFLAGS 16298 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16300/* end confdefs.h. */ 16301int foo (void) { return 0; } 16302_ACEOF 16303if ac_fn_c_try_link "$LINENO"; then : 16304 lt_cv_irix_exported_symbol=yes 16305else 16306 lt_cv_irix_exported_symbol=no 16307fi 16308rm -f core conftest.err conftest.$ac_objext \ 16309 conftest$ac_exeext conftest.$ac_ext 16310 LDFLAGS=$save_LDFLAGS 16311fi 16312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16313$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16314 if test yes = "$lt_cv_irix_exported_symbol"; then 16315 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' 16316 fi 16317 else 16318 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' 16319 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' 16320 fi 16321 archive_cmds_need_lc='no' 16322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16323 hardcode_libdir_separator=: 16324 inherit_rpath=yes 16325 link_all_deplibs=yes 16326 ;; 16327 16328 linux*) 16329 case $cc_basename in 16330 tcc*) 16331 # Fabrice Bellard et al's Tiny C Compiler 16332 ld_shlibs=yes 16333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16334 ;; 16335 esac 16336 ;; 16337 16338 netbsd*) 16339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16341 else 16342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16343 fi 16344 hardcode_libdir_flag_spec='-R$libdir' 16345 hardcode_direct=yes 16346 hardcode_shlibpath_var=no 16347 ;; 16348 16349 newsos6) 16350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16351 hardcode_direct=yes 16352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16353 hardcode_libdir_separator=: 16354 hardcode_shlibpath_var=no 16355 ;; 16356 16357 *nto* | *qnx*) 16358 ;; 16359 16360 openbsd* | bitrig*) 16361 if test -f /usr/libexec/ld.so; then 16362 hardcode_direct=yes 16363 hardcode_shlibpath_var=no 16364 hardcode_direct_absolute=yes 16365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16367 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16368 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16369 export_dynamic_flag_spec='$wl-E' 16370 else 16371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16372 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16373 fi 16374 else 16375 ld_shlibs=no 16376 fi 16377 ;; 16378 16379 os2*) 16380 hardcode_libdir_flag_spec='-L$libdir' 16381 hardcode_minus_L=yes 16382 allow_undefined_flag=unsupported 16383 shrext_cmds=.dll 16384 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16385 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16386 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16387 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16388 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16389 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16390 emximp -o $lib $output_objdir/$libname.def' 16391 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16392 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16393 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16394 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16395 prefix_cmds="$SED"~ 16396 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16397 prefix_cmds="$prefix_cmds -e 1d"; 16398 fi~ 16399 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16400 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16401 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16402 emximp -o $lib $output_objdir/$libname.def' 16403 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16404 enable_shared_with_static_runtimes=yes 16405 ;; 16406 16407 osf3*) 16408 if test yes = "$GCC"; then 16409 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16410 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' 16411 else 16412 allow_undefined_flag=' -expect_unresolved \*' 16413 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' 16414 fi 16415 archive_cmds_need_lc='no' 16416 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16417 hardcode_libdir_separator=: 16418 ;; 16419 16420 osf4* | osf5*) # as osf3* with the addition of -msym flag 16421 if test yes = "$GCC"; then 16422 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16423 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' 16424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16425 else 16426 allow_undefined_flag=' -expect_unresolved \*' 16427 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' 16428 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~ 16429 $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' 16430 16431 # Both c and cxx compiler support -rpath directly 16432 hardcode_libdir_flag_spec='-rpath $libdir' 16433 fi 16434 archive_cmds_need_lc='no' 16435 hardcode_libdir_separator=: 16436 ;; 16437 16438 solaris*) 16439 no_undefined_flag=' -z defs' 16440 if test yes = "$GCC"; then 16441 wlarc='$wl' 16442 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16444 $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' 16445 else 16446 case `$CC -V 2>&1` in 16447 *"Compilers 5.0"*) 16448 wlarc='' 16449 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16451 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16452 ;; 16453 *) 16454 wlarc='$wl' 16455 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16456 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16457 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16458 ;; 16459 esac 16460 fi 16461 hardcode_libdir_flag_spec='-R$libdir' 16462 hardcode_shlibpath_var=no 16463 case $host_os in 16464 solaris2.[0-5] | solaris2.[0-5].*) ;; 16465 *) 16466 # The compiler driver will combine and reorder linker options, 16467 # but understands '-z linker_flag'. GCC discards it without '$wl', 16468 # but is careful enough not to reorder. 16469 # Supported since Solaris 2.6 (maybe 2.5.1?) 16470 if test yes = "$GCC"; then 16471 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16472 else 16473 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16474 fi 16475 ;; 16476 esac 16477 link_all_deplibs=yes 16478 ;; 16479 16480 sunos4*) 16481 if test sequent = "$host_vendor"; then 16482 # Use $CC to link under sequent, because it throws in some extra .o 16483 # files that make .init and .fini sections work. 16484 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16485 else 16486 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16487 fi 16488 hardcode_libdir_flag_spec='-L$libdir' 16489 hardcode_direct=yes 16490 hardcode_minus_L=yes 16491 hardcode_shlibpath_var=no 16492 ;; 16493 16494 sysv4) 16495 case $host_vendor in 16496 sni) 16497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16498 hardcode_direct=yes # is this really true??? 16499 ;; 16500 siemens) 16501 ## LD is ld it makes a PLAMLIB 16502 ## CC just makes a GrossModule. 16503 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16504 reload_cmds='$CC -r -o $output$reload_objs' 16505 hardcode_direct=no 16506 ;; 16507 motorola) 16508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16509 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16510 ;; 16511 esac 16512 runpath_var='LD_RUN_PATH' 16513 hardcode_shlibpath_var=no 16514 ;; 16515 16516 sysv4.3*) 16517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16518 hardcode_shlibpath_var=no 16519 export_dynamic_flag_spec='-Bexport' 16520 ;; 16521 16522 sysv4*MP*) 16523 if test -d /usr/nec; then 16524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16525 hardcode_shlibpath_var=no 16526 runpath_var=LD_RUN_PATH 16527 hardcode_runpath_var=yes 16528 ld_shlibs=yes 16529 fi 16530 ;; 16531 16532 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16533 no_undefined_flag='$wl-z,text' 16534 archive_cmds_need_lc=no 16535 hardcode_shlibpath_var=no 16536 runpath_var='LD_RUN_PATH' 16537 16538 if test yes = "$GCC"; then 16539 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16540 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16541 else 16542 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16543 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16544 fi 16545 ;; 16546 16547 sysv5* | sco3.2v5* | sco5v6*) 16548 # Note: We CANNOT use -z defs as we might desire, because we do not 16549 # link with -lc, and that would cause any symbols used from libc to 16550 # always be unresolved, which means just about no library would 16551 # ever link correctly. If we're not using GNU ld we use -z text 16552 # though, which does catch some bad symbols but isn't as heavy-handed 16553 # as -z defs. 16554 no_undefined_flag='$wl-z,text' 16555 allow_undefined_flag='$wl-z,nodefs' 16556 archive_cmds_need_lc=no 16557 hardcode_shlibpath_var=no 16558 hardcode_libdir_flag_spec='$wl-R,$libdir' 16559 hardcode_libdir_separator=':' 16560 link_all_deplibs=yes 16561 export_dynamic_flag_spec='$wl-Bexport' 16562 runpath_var='LD_RUN_PATH' 16563 16564 if test yes = "$GCC"; then 16565 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16566 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16567 else 16568 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16569 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16570 fi 16571 ;; 16572 16573 uts4*) 16574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16575 hardcode_libdir_flag_spec='-L$libdir' 16576 hardcode_shlibpath_var=no 16577 ;; 16578 16579 *) 16580 ld_shlibs=no 16581 ;; 16582 esac 16583 16584 if test sni = "$host_vendor"; then 16585 case $host in 16586 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16587 export_dynamic_flag_spec='$wl-Blargedynsym' 16588 ;; 16589 esac 16590 fi 16591 fi 16592 16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16594$as_echo "$ld_shlibs" >&6; } 16595test no = "$ld_shlibs" && can_build_shared=no 16596 16597with_gnu_ld=$with_gnu_ld 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613# 16614# Do we need to explicitly link libc? 16615# 16616case "x$archive_cmds_need_lc" in 16617x|xyes) 16618 # Assume -lc should be added 16619 archive_cmds_need_lc=yes 16620 16621 if test yes,yes = "$GCC,$enable_shared"; then 16622 case $archive_cmds in 16623 *'~'*) 16624 # FIXME: we may have to deal with multi-command sequences. 16625 ;; 16626 '$CC '*) 16627 # Test whether the compiler implicitly links with -lc since on some 16628 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16629 # to ld, don't add -lc before -lgcc. 16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16631$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16632if ${lt_cv_archive_cmds_need_lc+:} false; then : 16633 $as_echo_n "(cached) " >&6 16634else 16635 $RM conftest* 16636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16637 16638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16639 (eval $ac_compile) 2>&5 16640 ac_status=$? 16641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16642 test $ac_status = 0; } 2>conftest.err; then 16643 soname=conftest 16644 lib=conftest 16645 libobjs=conftest.$ac_objext 16646 deplibs= 16647 wl=$lt_prog_compiler_wl 16648 pic_flag=$lt_prog_compiler_pic 16649 compiler_flags=-v 16650 linker_flags=-v 16651 verstring= 16652 output_objdir=. 16653 libname=conftest 16654 lt_save_allow_undefined_flag=$allow_undefined_flag 16655 allow_undefined_flag= 16656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16657 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16658 ac_status=$? 16659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16660 test $ac_status = 0; } 16661 then 16662 lt_cv_archive_cmds_need_lc=no 16663 else 16664 lt_cv_archive_cmds_need_lc=yes 16665 fi 16666 allow_undefined_flag=$lt_save_allow_undefined_flag 16667 else 16668 cat conftest.err 1>&5 16669 fi 16670 $RM conftest* 16671 16672fi 16673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16674$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16675 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16676 ;; 16677 esac 16678 fi 16679 ;; 16680esac 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16834$as_echo_n "checking dynamic linker characteristics... " >&6; } 16835 16836if test yes = "$GCC"; then 16837 case $host_os in 16838 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16839 *) lt_awk_arg='/^libraries:/' ;; 16840 esac 16841 case $host_os in 16842 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16843 *) lt_sed_strip_eq='s|=/|/|g' ;; 16844 esac 16845 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16846 case $lt_search_path_spec in 16847 *\;*) 16848 # if the path contains ";" then we assume it to be the separator 16849 # otherwise default to the standard path separator (i.e. ":") - it is 16850 # assumed that no part of a normal pathname contains ";" but that should 16851 # okay in the real world where ";" in dirpaths is itself problematic. 16852 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16853 ;; 16854 *) 16855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16856 ;; 16857 esac 16858 # Ok, now we have the path, separated by spaces, we can step through it 16859 # and add multilib dir if necessary... 16860 lt_tmp_lt_search_path_spec= 16861 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16862 # ...but if some path component already ends with the multilib dir we assume 16863 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16864 case "$lt_multi_os_dir; $lt_search_path_spec " in 16865 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16866 lt_multi_os_dir= 16867 ;; 16868 esac 16869 for lt_sys_path in $lt_search_path_spec; do 16870 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16871 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16872 elif test -n "$lt_multi_os_dir"; then 16873 test -d "$lt_sys_path" && \ 16874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16875 fi 16876 done 16877 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16878BEGIN {RS = " "; FS = "/|\n";} { 16879 lt_foo = ""; 16880 lt_count = 0; 16881 for (lt_i = NF; lt_i > 0; lt_i--) { 16882 if ($lt_i != "" && $lt_i != ".") { 16883 if ($lt_i == "..") { 16884 lt_count++; 16885 } else { 16886 if (lt_count == 0) { 16887 lt_foo = "/" $lt_i lt_foo; 16888 } else { 16889 lt_count--; 16890 } 16891 } 16892 } 16893 } 16894 if (lt_foo != "") { lt_freq[lt_foo]++; } 16895 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16896}'` 16897 # AWK program above erroneously prepends '/' to C:/dos/paths 16898 # for these hosts. 16899 case $host_os in 16900 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16901 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16902 esac 16903 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16904else 16905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16906fi 16907library_names_spec= 16908libname_spec='lib$name' 16909soname_spec= 16910shrext_cmds=.so 16911postinstall_cmds= 16912postuninstall_cmds= 16913finish_cmds= 16914finish_eval= 16915shlibpath_var= 16916shlibpath_overrides_runpath=unknown 16917version_type=none 16918dynamic_linker="$host_os ld.so" 16919sys_lib_dlsearch_path_spec="/lib /usr/lib" 16920need_lib_prefix=unknown 16921hardcode_into_libs=no 16922 16923# when you set need_version to no, make sure it does not cause -set_version 16924# flags to be left without arguments 16925need_version=unknown 16926 16927 16928 16929case $host_os in 16930aix3*) 16931 version_type=linux # correct to gnu/linux during the next big refactor 16932 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16933 shlibpath_var=LIBPATH 16934 16935 # AIX 3 has no versioning support, so we append a major version to the name. 16936 soname_spec='$libname$release$shared_ext$major' 16937 ;; 16938 16939aix[4-9]*) 16940 version_type=linux # correct to gnu/linux during the next big refactor 16941 need_lib_prefix=no 16942 need_version=no 16943 hardcode_into_libs=yes 16944 if test ia64 = "$host_cpu"; then 16945 # AIX 5 supports IA64 16946 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16947 shlibpath_var=LD_LIBRARY_PATH 16948 else 16949 # With GCC up to 2.95.x, collect2 would create an import file 16950 # for dependence libraries. The import file would start with 16951 # the line '#! .'. This would cause the generated library to 16952 # depend on '.', always an invalid library. This was fixed in 16953 # development snapshots of GCC prior to 3.0. 16954 case $host_os in 16955 aix4 | aix4.[01] | aix4.[01].*) 16956 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16957 echo ' yes ' 16958 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16959 : 16960 else 16961 can_build_shared=no 16962 fi 16963 ;; 16964 esac 16965 # Using Import Files as archive members, it is possible to support 16966 # filename-based versioning of shared library archives on AIX. While 16967 # this would work for both with and without runtime linking, it will 16968 # prevent static linking of such archives. So we do filename-based 16969 # shared library versioning with .so extension only, which is used 16970 # when both runtime linking and shared linking is enabled. 16971 # Unfortunately, runtime linking may impact performance, so we do 16972 # not want this to be the default eventually. Also, we use the 16973 # versioned .so libs for executables only if there is the -brtl 16974 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16975 # To allow for filename-based versioning support, we need to create 16976 # libNAME.so.V as an archive file, containing: 16977 # *) an Import File, referring to the versioned filename of the 16978 # archive as well as the shared archive member, telling the 16979 # bitwidth (32 or 64) of that shared object, and providing the 16980 # list of exported symbols of that shared object, eventually 16981 # decorated with the 'weak' keyword 16982 # *) the shared object with the F_LOADONLY flag set, to really avoid 16983 # it being seen by the linker. 16984 # At run time we better use the real file rather than another symlink, 16985 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16986 16987 case $with_aix_soname,$aix_use_runtimelinking in 16988 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16989 # soname into executable. Probably we can add versioning support to 16990 # collect2, so additional links can be useful in future. 16991 aix,yes) # traditional libtool 16992 dynamic_linker='AIX unversionable lib.so' 16993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16994 # instead of lib<name>.a to let people know that these are not 16995 # typical AIX shared libraries. 16996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16997 ;; 16998 aix,no) # traditional AIX only 16999 dynamic_linker='AIX lib.a(lib.so.V)' 17000 # We preserve .a as extension for shared libraries through AIX4.2 17001 # and later when we are not doing run time linking. 17002 library_names_spec='$libname$release.a $libname.a' 17003 soname_spec='$libname$release$shared_ext$major' 17004 ;; 17005 svr4,*) # full svr4 only 17006 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17007 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17008 # We do not specify a path in Import Files, so LIBPATH fires. 17009 shlibpath_overrides_runpath=yes 17010 ;; 17011 *,yes) # both, prefer svr4 17012 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17013 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17014 # unpreferred sharedlib libNAME.a needs extra handling 17015 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"' 17016 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"' 17017 # We do not specify a path in Import Files, so LIBPATH fires. 17018 shlibpath_overrides_runpath=yes 17019 ;; 17020 *,no) # both, prefer aix 17021 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17022 library_names_spec='$libname$release.a $libname.a' 17023 soname_spec='$libname$release$shared_ext$major' 17024 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17025 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)' 17026 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"' 17027 ;; 17028 esac 17029 shlibpath_var=LIBPATH 17030 fi 17031 ;; 17032 17033amigaos*) 17034 case $host_cpu in 17035 powerpc) 17036 # Since July 2007 AmigaOS4 officially supports .so libraries. 17037 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17039 ;; 17040 m68k) 17041 library_names_spec='$libname.ixlibrary $libname.a' 17042 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17043 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' 17044 ;; 17045 esac 17046 ;; 17047 17048beos*) 17049 library_names_spec='$libname$shared_ext' 17050 dynamic_linker="$host_os ld.so" 17051 shlibpath_var=LIBRARY_PATH 17052 ;; 17053 17054bsdi[45]*) 17055 version_type=linux # correct to gnu/linux during the next big refactor 17056 need_version=no 17057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17058 soname_spec='$libname$release$shared_ext$major' 17059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17060 shlibpath_var=LD_LIBRARY_PATH 17061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17063 # the default ld.so.conf also contains /usr/contrib/lib and 17064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17065 # libtool to hard-code these into programs 17066 ;; 17067 17068cygwin* | mingw* | pw32* | cegcc*) 17069 version_type=windows 17070 shrext_cmds=.dll 17071 need_version=no 17072 need_lib_prefix=no 17073 17074 case $GCC,$cc_basename in 17075 yes,*) 17076 # gcc 17077 library_names_spec='$libname.dll.a' 17078 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17079 postinstall_cmds='base_file=`basename \$file`~ 17080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17081 dldir=$destdir/`dirname \$dlpath`~ 17082 test -d \$dldir || mkdir -p \$dldir~ 17083 $install_prog $dir/$dlname \$dldir/$dlname~ 17084 chmod a+x \$dldir/$dlname~ 17085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17087 fi' 17088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17089 dlpath=$dir/\$dldll~ 17090 $RM \$dlpath' 17091 shlibpath_overrides_runpath=yes 17092 17093 case $host_os in 17094 cygwin*) 17095 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17096 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17097 17098 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17099 ;; 17100 mingw* | cegcc*) 17101 # MinGW DLLs use traditional 'lib' prefix 17102 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17103 ;; 17104 pw32*) 17105 # pw32 DLLs use 'pw' prefix rather than 'lib' 17106 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17107 ;; 17108 esac 17109 dynamic_linker='Win32 ld.exe' 17110 ;; 17111 17112 *,cl*) 17113 # Native MSVC 17114 libname_spec='$name' 17115 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17116 library_names_spec='$libname.dll.lib' 17117 17118 case $build_os in 17119 mingw*) 17120 sys_lib_search_path_spec= 17121 lt_save_ifs=$IFS 17122 IFS=';' 17123 for lt_path in $LIB 17124 do 17125 IFS=$lt_save_ifs 17126 # Let DOS variable expansion print the short 8.3 style file name. 17127 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17128 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17129 done 17130 IFS=$lt_save_ifs 17131 # Convert to MSYS style. 17132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17133 ;; 17134 cygwin*) 17135 # Convert to unix form, then to dos form, then back to unix form 17136 # but this time dos style (no spaces!) so that the unix form looks 17137 # like /cygdrive/c/PROGRA~1:/cygdr... 17138 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17139 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17140 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17141 ;; 17142 *) 17143 sys_lib_search_path_spec=$LIB 17144 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17145 # It is most probably a Windows format PATH. 17146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17147 else 17148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17149 fi 17150 # FIXME: find the short name or the path components, as spaces are 17151 # common. (e.g. "Program Files" -> "PROGRA~1") 17152 ;; 17153 esac 17154 17155 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17156 postinstall_cmds='base_file=`basename \$file`~ 17157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17158 dldir=$destdir/`dirname \$dlpath`~ 17159 test -d \$dldir || mkdir -p \$dldir~ 17160 $install_prog $dir/$dlname \$dldir/$dlname' 17161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17162 dlpath=$dir/\$dldll~ 17163 $RM \$dlpath' 17164 shlibpath_overrides_runpath=yes 17165 dynamic_linker='Win32 link.exe' 17166 ;; 17167 17168 *) 17169 # Assume MSVC wrapper 17170 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17171 dynamic_linker='Win32 ld.exe' 17172 ;; 17173 esac 17174 # FIXME: first we should search . and the directory the executable is in 17175 shlibpath_var=PATH 17176 ;; 17177 17178darwin* | rhapsody*) 17179 dynamic_linker="$host_os dyld" 17180 version_type=darwin 17181 need_lib_prefix=no 17182 need_version=no 17183 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17184 soname_spec='$libname$release$major$shared_ext' 17185 shlibpath_overrides_runpath=yes 17186 shlibpath_var=DYLD_LIBRARY_PATH 17187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17188 17189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17191 ;; 17192 17193dgux*) 17194 version_type=linux # correct to gnu/linux during the next big refactor 17195 need_lib_prefix=no 17196 need_version=no 17197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17198 soname_spec='$libname$release$shared_ext$major' 17199 shlibpath_var=LD_LIBRARY_PATH 17200 ;; 17201 17202freebsd* | dragonfly*) 17203 # DragonFly does not have aout. When/if they implement a new 17204 # versioning mechanism, adjust this. 17205 if test -x /usr/bin/objformat; then 17206 objformat=`/usr/bin/objformat` 17207 else 17208 case $host_os in 17209 freebsd[23].*) objformat=aout ;; 17210 *) objformat=elf ;; 17211 esac 17212 fi 17213 # Handle Gentoo/FreeBSD as it was Linux 17214 case $host_vendor in 17215 gentoo) 17216 version_type=linux ;; 17217 *) 17218 version_type=freebsd-$objformat ;; 17219 esac 17220 17221 case $version_type in 17222 freebsd-elf*) 17223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17224 soname_spec='$libname$release$shared_ext$major' 17225 need_version=no 17226 need_lib_prefix=no 17227 ;; 17228 freebsd-*) 17229 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17230 need_version=yes 17231 ;; 17232 linux) 17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17234 soname_spec='${libname}${release}${shared_ext}$major' 17235 need_lib_prefix=no 17236 need_version=no 17237 ;; 17238 esac 17239 shlibpath_var=LD_LIBRARY_PATH 17240 case $host_os in 17241 freebsd2.*) 17242 shlibpath_overrides_runpath=yes 17243 ;; 17244 freebsd3.[01]* | freebsdelf3.[01]*) 17245 shlibpath_overrides_runpath=yes 17246 hardcode_into_libs=yes 17247 ;; 17248 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17249 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17250 shlibpath_overrides_runpath=no 17251 hardcode_into_libs=yes 17252 ;; 17253 *) # from 4.6 on, and DragonFly 17254 shlibpath_overrides_runpath=yes 17255 hardcode_into_libs=yes 17256 ;; 17257 esac 17258 ;; 17259 17260haiku*) 17261 version_type=linux # correct to gnu/linux during the next big refactor 17262 need_lib_prefix=no 17263 need_version=no 17264 dynamic_linker="$host_os runtime_loader" 17265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17266 soname_spec='$libname$release$shared_ext$major' 17267 shlibpath_var=LIBRARY_PATH 17268 shlibpath_overrides_runpath=no 17269 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17270 hardcode_into_libs=yes 17271 ;; 17272 17273hpux9* | hpux10* | hpux11*) 17274 # Give a soname corresponding to the major version so that dld.sl refuses to 17275 # link against other versions. 17276 version_type=sunos 17277 need_lib_prefix=no 17278 need_version=no 17279 case $host_cpu in 17280 ia64*) 17281 shrext_cmds='.so' 17282 hardcode_into_libs=yes 17283 dynamic_linker="$host_os dld.so" 17284 shlibpath_var=LD_LIBRARY_PATH 17285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17287 soname_spec='$libname$release$shared_ext$major' 17288 if test 32 = "$HPUX_IA64_MODE"; then 17289 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17290 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17291 else 17292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17293 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17294 fi 17295 ;; 17296 hppa*64*) 17297 shrext_cmds='.sl' 17298 hardcode_into_libs=yes 17299 dynamic_linker="$host_os dld.sl" 17300 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17303 soname_spec='$libname$release$shared_ext$major' 17304 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17306 ;; 17307 *) 17308 shrext_cmds='.sl' 17309 dynamic_linker="$host_os dld.sl" 17310 shlibpath_var=SHLIB_PATH 17311 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17313 soname_spec='$libname$release$shared_ext$major' 17314 ;; 17315 esac 17316 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17317 postinstall_cmds='chmod 555 $lib' 17318 # or fails outright, so override atomically: 17319 install_override_mode=555 17320 ;; 17321 17322interix[3-9]*) 17323 version_type=linux # correct to gnu/linux during the next big refactor 17324 need_lib_prefix=no 17325 need_version=no 17326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17327 soname_spec='$libname$release$shared_ext$major' 17328 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17329 shlibpath_var=LD_LIBRARY_PATH 17330 shlibpath_overrides_runpath=no 17331 hardcode_into_libs=yes 17332 ;; 17333 17334irix5* | irix6* | nonstopux*) 17335 case $host_os in 17336 nonstopux*) version_type=nonstopux ;; 17337 *) 17338 if test yes = "$lt_cv_prog_gnu_ld"; then 17339 version_type=linux # correct to gnu/linux during the next big refactor 17340 else 17341 version_type=irix 17342 fi ;; 17343 esac 17344 need_lib_prefix=no 17345 need_version=no 17346 soname_spec='$libname$release$shared_ext$major' 17347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17348 case $host_os in 17349 irix5* | nonstopux*) 17350 libsuff= shlibsuff= 17351 ;; 17352 *) 17353 case $LD in # libtool.m4 will add one of these switches to LD 17354 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17355 libsuff= shlibsuff= libmagic=32-bit;; 17356 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17357 libsuff=32 shlibsuff=N32 libmagic=N32;; 17358 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17359 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17360 *) libsuff= shlibsuff= libmagic=never-match;; 17361 esac 17362 ;; 17363 esac 17364 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17365 shlibpath_overrides_runpath=no 17366 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17367 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17368 hardcode_into_libs=yes 17369 ;; 17370 17371# No shared lib support for Linux oldld, aout, or coff. 17372linux*oldld* | linux*aout* | linux*coff*) 17373 dynamic_linker=no 17374 ;; 17375 17376linux*android*) 17377 version_type=none # Android doesn't support versioned libraries. 17378 need_lib_prefix=no 17379 need_version=no 17380 library_names_spec='$libname$release$shared_ext' 17381 soname_spec='$libname$release$shared_ext' 17382 finish_cmds= 17383 shlibpath_var=LD_LIBRARY_PATH 17384 shlibpath_overrides_runpath=yes 17385 17386 # This implies no fast_install, which is unacceptable. 17387 # Some rework will be needed to allow for fast_install 17388 # before this can be enabled. 17389 hardcode_into_libs=yes 17390 17391 dynamic_linker='Android linker' 17392 # Don't embed -rpath directories since the linker doesn't support them. 17393 hardcode_libdir_flag_spec='-L$libdir' 17394 ;; 17395 17396# This must be glibc/ELF. 17397linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17398 version_type=linux # correct to gnu/linux during the next big refactor 17399 need_lib_prefix=no 17400 need_version=no 17401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17402 soname_spec='$libname$release$shared_ext$major' 17403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17404 shlibpath_var=LD_LIBRARY_PATH 17405 shlibpath_overrides_runpath=no 17406 17407 # Some binutils ld are patched to set DT_RUNPATH 17408 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17409 $as_echo_n "(cached) " >&6 17410else 17411 lt_cv_shlibpath_overrides_runpath=no 17412 save_LDFLAGS=$LDFLAGS 17413 save_libdir=$libdir 17414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17417/* end confdefs.h. */ 17418 17419int 17420main () 17421{ 17422 17423 ; 17424 return 0; 17425} 17426_ACEOF 17427if ac_fn_c_try_link "$LINENO"; then : 17428 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17429 lt_cv_shlibpath_overrides_runpath=yes 17430fi 17431fi 17432rm -f core conftest.err conftest.$ac_objext \ 17433 conftest$ac_exeext conftest.$ac_ext 17434 LDFLAGS=$save_LDFLAGS 17435 libdir=$save_libdir 17436 17437fi 17438 17439 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17440 17441 # This implies no fast_install, which is unacceptable. 17442 # Some rework will be needed to allow for fast_install 17443 # before this can be enabled. 17444 hardcode_into_libs=yes 17445 17446 # Ideally, we could use ldconfig to report *all* directores which are 17447 # searched for libraries, however this is still not possible. Aside from not 17448 # being certain /sbin/ldconfig is available, command 17449 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17450 # even though it is searched at run-time. Try to do the best guess by 17451 # appending ld.so.conf contents (and includes) to the search path. 17452 if test -f /etc/ld.so.conf; then 17453 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' ' '` 17454 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17455 fi 17456 17457 # We used to test for /lib/ld.so.1 and disable shared libraries on 17458 # powerpc, because MkLinux only supported shared libraries with the 17459 # GNU dynamic linker. Since this was broken with cross compilers, 17460 # most powerpc-linux boxes support dynamic linking these days and 17461 # people can always --disable-shared, the test was removed, and we 17462 # assume the GNU/Linux dynamic linker is in use. 17463 dynamic_linker='GNU/Linux ld.so' 17464 ;; 17465 17466netbsd*) 17467 version_type=sunos 17468 need_lib_prefix=no 17469 need_version=no 17470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17471 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17473 dynamic_linker='NetBSD (a.out) ld.so' 17474 else 17475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17476 soname_spec='$libname$release$shared_ext$major' 17477 dynamic_linker='NetBSD ld.elf_so' 17478 fi 17479 shlibpath_var=LD_LIBRARY_PATH 17480 shlibpath_overrides_runpath=yes 17481 hardcode_into_libs=yes 17482 ;; 17483 17484newsos6) 17485 version_type=linux # correct to gnu/linux during the next big refactor 17486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17487 shlibpath_var=LD_LIBRARY_PATH 17488 shlibpath_overrides_runpath=yes 17489 ;; 17490 17491*nto* | *qnx*) 17492 version_type=qnx 17493 need_lib_prefix=no 17494 need_version=no 17495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17496 soname_spec='$libname$release$shared_ext$major' 17497 shlibpath_var=LD_LIBRARY_PATH 17498 shlibpath_overrides_runpath=no 17499 hardcode_into_libs=yes 17500 dynamic_linker='ldqnx.so' 17501 ;; 17502 17503openbsd* | bitrig*) 17504 version_type=sunos 17505 sys_lib_dlsearch_path_spec=/usr/lib 17506 need_lib_prefix=no 17507 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17508 need_version=no 17509 else 17510 need_version=yes 17511 fi 17512 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17514 shlibpath_var=LD_LIBRARY_PATH 17515 shlibpath_overrides_runpath=yes 17516 ;; 17517 17518os2*) 17519 libname_spec='$name' 17520 version_type=windows 17521 shrext_cmds=.dll 17522 need_version=no 17523 need_lib_prefix=no 17524 # OS/2 can only load a DLL with a base name of 8 characters or less. 17525 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17526 v=$($ECHO $release$versuffix | tr -d .-); 17527 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17528 $ECHO $n$v`$shared_ext' 17529 library_names_spec='${libname}_dll.$libext' 17530 dynamic_linker='OS/2 ld.exe' 17531 shlibpath_var=BEGINLIBPATH 17532 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17534 postinstall_cmds='base_file=`basename \$file`~ 17535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17536 dldir=$destdir/`dirname \$dlpath`~ 17537 test -d \$dldir || mkdir -p \$dldir~ 17538 $install_prog $dir/$dlname \$dldir/$dlname~ 17539 chmod a+x \$dldir/$dlname~ 17540 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17541 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17542 fi' 17543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17544 dlpath=$dir/\$dldll~ 17545 $RM \$dlpath' 17546 ;; 17547 17548osf3* | osf4* | osf5*) 17549 version_type=osf 17550 need_lib_prefix=no 17551 need_version=no 17552 soname_spec='$libname$release$shared_ext$major' 17553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17554 shlibpath_var=LD_LIBRARY_PATH 17555 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17557 ;; 17558 17559rdos*) 17560 dynamic_linker=no 17561 ;; 17562 17563solaris*) 17564 version_type=linux # correct to gnu/linux during the next big refactor 17565 need_lib_prefix=no 17566 need_version=no 17567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17568 soname_spec='$libname$release$shared_ext$major' 17569 shlibpath_var=LD_LIBRARY_PATH 17570 shlibpath_overrides_runpath=yes 17571 hardcode_into_libs=yes 17572 # ldd complains unless libraries are executable 17573 postinstall_cmds='chmod +x $lib' 17574 ;; 17575 17576sunos4*) 17577 version_type=sunos 17578 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17579 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17580 shlibpath_var=LD_LIBRARY_PATH 17581 shlibpath_overrides_runpath=yes 17582 if test yes = "$with_gnu_ld"; then 17583 need_lib_prefix=no 17584 fi 17585 need_version=yes 17586 ;; 17587 17588sysv4 | sysv4.3*) 17589 version_type=linux # correct to gnu/linux during the next big refactor 17590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17591 soname_spec='$libname$release$shared_ext$major' 17592 shlibpath_var=LD_LIBRARY_PATH 17593 case $host_vendor in 17594 sni) 17595 shlibpath_overrides_runpath=no 17596 need_lib_prefix=no 17597 runpath_var=LD_RUN_PATH 17598 ;; 17599 siemens) 17600 need_lib_prefix=no 17601 ;; 17602 motorola) 17603 need_lib_prefix=no 17604 need_version=no 17605 shlibpath_overrides_runpath=no 17606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17607 ;; 17608 esac 17609 ;; 17610 17611sysv4*MP*) 17612 if test -d /usr/nec; then 17613 version_type=linux # correct to gnu/linux during the next big refactor 17614 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17615 soname_spec='$libname$shared_ext.$major' 17616 shlibpath_var=LD_LIBRARY_PATH 17617 fi 17618 ;; 17619 17620sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17621 version_type=sco 17622 need_lib_prefix=no 17623 need_version=no 17624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17625 soname_spec='$libname$release$shared_ext$major' 17626 shlibpath_var=LD_LIBRARY_PATH 17627 shlibpath_overrides_runpath=yes 17628 hardcode_into_libs=yes 17629 if test yes = "$with_gnu_ld"; then 17630 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17631 else 17632 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17633 case $host_os in 17634 sco3.2v5*) 17635 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17636 ;; 17637 esac 17638 fi 17639 sys_lib_dlsearch_path_spec='/usr/lib' 17640 ;; 17641 17642tpf*) 17643 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17644 version_type=linux # correct to gnu/linux during the next big refactor 17645 need_lib_prefix=no 17646 need_version=no 17647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17648 shlibpath_var=LD_LIBRARY_PATH 17649 shlibpath_overrides_runpath=no 17650 hardcode_into_libs=yes 17651 ;; 17652 17653uts4*) 17654 version_type=linux # correct to gnu/linux during the next big refactor 17655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17656 soname_spec='$libname$release$shared_ext$major' 17657 shlibpath_var=LD_LIBRARY_PATH 17658 ;; 17659 17660*) 17661 dynamic_linker=no 17662 ;; 17663esac 17664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17665$as_echo "$dynamic_linker" >&6; } 17666test no = "$dynamic_linker" && can_build_shared=no 17667 17668variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17669if test yes = "$GCC"; then 17670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17671fi 17672 17673if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17674 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17675fi 17676 17677if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17678 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17679fi 17680 17681# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17682configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17683 17684# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17685func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17686 17687# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17688configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17787$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17788hardcode_action= 17789if test -n "$hardcode_libdir_flag_spec" || 17790 test -n "$runpath_var" || 17791 test yes = "$hardcode_automatic"; then 17792 17793 # We can hardcode non-existent directories. 17794 if test no != "$hardcode_direct" && 17795 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17796 # have to relink, otherwise we might link with an installed library 17797 # when we should be linking with a yet-to-be-installed one 17798 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17799 test no != "$hardcode_minus_L"; then 17800 # Linking always hardcodes the temporary library directory. 17801 hardcode_action=relink 17802 else 17803 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17804 hardcode_action=immediate 17805 fi 17806else 17807 # We cannot hardcode anything, or else we can only hardcode existing 17808 # directories. 17809 hardcode_action=unsupported 17810fi 17811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17812$as_echo "$hardcode_action" >&6; } 17813 17814if test relink = "$hardcode_action" || 17815 test yes = "$inherit_rpath"; then 17816 # Fast installation is not supported 17817 enable_fast_install=no 17818elif test yes = "$shlibpath_overrides_runpath" || 17819 test no = "$enable_shared"; then 17820 # Fast installation is not necessary 17821 enable_fast_install=needless 17822fi 17823 17824 17825 17826 17827 17828 17829 if test yes != "$enable_dlopen"; then 17830 enable_dlopen=unknown 17831 enable_dlopen_self=unknown 17832 enable_dlopen_self_static=unknown 17833else 17834 lt_cv_dlopen=no 17835 lt_cv_dlopen_libs= 17836 17837 case $host_os in 17838 beos*) 17839 lt_cv_dlopen=load_add_on 17840 lt_cv_dlopen_libs= 17841 lt_cv_dlopen_self=yes 17842 ;; 17843 17844 mingw* | pw32* | cegcc*) 17845 lt_cv_dlopen=LoadLibrary 17846 lt_cv_dlopen_libs= 17847 ;; 17848 17849 cygwin*) 17850 lt_cv_dlopen=dlopen 17851 lt_cv_dlopen_libs= 17852 ;; 17853 17854 darwin*) 17855 # if libdl is installed we need to link against it 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17857$as_echo_n "checking for dlopen in -ldl... " >&6; } 17858if ${ac_cv_lib_dl_dlopen+:} false; then : 17859 $as_echo_n "(cached) " >&6 17860else 17861 ac_check_lib_save_LIBS=$LIBS 17862LIBS="-ldl $LIBS" 17863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17864/* end confdefs.h. */ 17865 17866/* Override any GCC internal prototype to avoid an error. 17867 Use char because int might match the return type of a GCC 17868 builtin and then its argument prototype would still apply. */ 17869#ifdef __cplusplus 17870extern "C" 17871#endif 17872char dlopen (); 17873int 17874main () 17875{ 17876return dlopen (); 17877 ; 17878 return 0; 17879} 17880_ACEOF 17881if ac_fn_c_try_link "$LINENO"; then : 17882 ac_cv_lib_dl_dlopen=yes 17883else 17884 ac_cv_lib_dl_dlopen=no 17885fi 17886rm -f core conftest.err conftest.$ac_objext \ 17887 conftest$ac_exeext conftest.$ac_ext 17888LIBS=$ac_check_lib_save_LIBS 17889fi 17890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17891$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17892if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17893 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17894else 17895 17896 lt_cv_dlopen=dyld 17897 lt_cv_dlopen_libs= 17898 lt_cv_dlopen_self=yes 17899 17900fi 17901 17902 ;; 17903 17904 tpf*) 17905 # Don't try to run any link tests for TPF. We know it's impossible 17906 # because TPF is a cross-compiler, and we know how we open DSOs. 17907 lt_cv_dlopen=dlopen 17908 lt_cv_dlopen_libs= 17909 lt_cv_dlopen_self=no 17910 ;; 17911 17912 *) 17913 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17914if test "x$ac_cv_func_shl_load" = xyes; then : 17915 lt_cv_dlopen=shl_load 17916else 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17918$as_echo_n "checking for shl_load in -ldld... " >&6; } 17919if ${ac_cv_lib_dld_shl_load+:} false; then : 17920 $as_echo_n "(cached) " >&6 17921else 17922 ac_check_lib_save_LIBS=$LIBS 17923LIBS="-ldld $LIBS" 17924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17925/* end confdefs.h. */ 17926 17927/* Override any GCC internal prototype to avoid an error. 17928 Use char because int might match the return type of a GCC 17929 builtin and then its argument prototype would still apply. */ 17930#ifdef __cplusplus 17931extern "C" 17932#endif 17933char shl_load (); 17934int 17935main () 17936{ 17937return shl_load (); 17938 ; 17939 return 0; 17940} 17941_ACEOF 17942if ac_fn_c_try_link "$LINENO"; then : 17943 ac_cv_lib_dld_shl_load=yes 17944else 17945 ac_cv_lib_dld_shl_load=no 17946fi 17947rm -f core conftest.err conftest.$ac_objext \ 17948 conftest$ac_exeext conftest.$ac_ext 17949LIBS=$ac_check_lib_save_LIBS 17950fi 17951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17952$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17953if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17954 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17955else 17956 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17957if test "x$ac_cv_func_dlopen" = xyes; then : 17958 lt_cv_dlopen=dlopen 17959else 17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17961$as_echo_n "checking for dlopen in -ldl... " >&6; } 17962if ${ac_cv_lib_dl_dlopen+:} false; then : 17963 $as_echo_n "(cached) " >&6 17964else 17965 ac_check_lib_save_LIBS=$LIBS 17966LIBS="-ldl $LIBS" 17967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17968/* end confdefs.h. */ 17969 17970/* Override any GCC internal prototype to avoid an error. 17971 Use char because int might match the return type of a GCC 17972 builtin and then its argument prototype would still apply. */ 17973#ifdef __cplusplus 17974extern "C" 17975#endif 17976char dlopen (); 17977int 17978main () 17979{ 17980return dlopen (); 17981 ; 17982 return 0; 17983} 17984_ACEOF 17985if ac_fn_c_try_link "$LINENO"; then : 17986 ac_cv_lib_dl_dlopen=yes 17987else 17988 ac_cv_lib_dl_dlopen=no 17989fi 17990rm -f core conftest.err conftest.$ac_objext \ 17991 conftest$ac_exeext conftest.$ac_ext 17992LIBS=$ac_check_lib_save_LIBS 17993fi 17994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17995$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17996if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17997 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17998else 17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18000$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18001if ${ac_cv_lib_svld_dlopen+:} false; then : 18002 $as_echo_n "(cached) " >&6 18003else 18004 ac_check_lib_save_LIBS=$LIBS 18005LIBS="-lsvld $LIBS" 18006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18007/* end confdefs.h. */ 18008 18009/* Override any GCC internal prototype to avoid an error. 18010 Use char because int might match the return type of a GCC 18011 builtin and then its argument prototype would still apply. */ 18012#ifdef __cplusplus 18013extern "C" 18014#endif 18015char dlopen (); 18016int 18017main () 18018{ 18019return dlopen (); 18020 ; 18021 return 0; 18022} 18023_ACEOF 18024if ac_fn_c_try_link "$LINENO"; then : 18025 ac_cv_lib_svld_dlopen=yes 18026else 18027 ac_cv_lib_svld_dlopen=no 18028fi 18029rm -f core conftest.err conftest.$ac_objext \ 18030 conftest$ac_exeext conftest.$ac_ext 18031LIBS=$ac_check_lib_save_LIBS 18032fi 18033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18034$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18035if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18036 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18037else 18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18039$as_echo_n "checking for dld_link in -ldld... " >&6; } 18040if ${ac_cv_lib_dld_dld_link+:} false; then : 18041 $as_echo_n "(cached) " >&6 18042else 18043 ac_check_lib_save_LIBS=$LIBS 18044LIBS="-ldld $LIBS" 18045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18046/* end confdefs.h. */ 18047 18048/* Override any GCC internal prototype to avoid an error. 18049 Use char because int might match the return type of a GCC 18050 builtin and then its argument prototype would still apply. */ 18051#ifdef __cplusplus 18052extern "C" 18053#endif 18054char dld_link (); 18055int 18056main () 18057{ 18058return dld_link (); 18059 ; 18060 return 0; 18061} 18062_ACEOF 18063if ac_fn_c_try_link "$LINENO"; then : 18064 ac_cv_lib_dld_dld_link=yes 18065else 18066 ac_cv_lib_dld_dld_link=no 18067fi 18068rm -f core conftest.err conftest.$ac_objext \ 18069 conftest$ac_exeext conftest.$ac_ext 18070LIBS=$ac_check_lib_save_LIBS 18071fi 18072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18073$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18074if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18075 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18076fi 18077 18078 18079fi 18080 18081 18082fi 18083 18084 18085fi 18086 18087 18088fi 18089 18090 18091fi 18092 18093 ;; 18094 esac 18095 18096 if test no = "$lt_cv_dlopen"; then 18097 enable_dlopen=no 18098 else 18099 enable_dlopen=yes 18100 fi 18101 18102 case $lt_cv_dlopen in 18103 dlopen) 18104 save_CPPFLAGS=$CPPFLAGS 18105 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18106 18107 save_LDFLAGS=$LDFLAGS 18108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18109 18110 save_LIBS=$LIBS 18111 LIBS="$lt_cv_dlopen_libs $LIBS" 18112 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18114$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18115if ${lt_cv_dlopen_self+:} false; then : 18116 $as_echo_n "(cached) " >&6 18117else 18118 if test yes = "$cross_compiling"; then : 18119 lt_cv_dlopen_self=cross 18120else 18121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18122 lt_status=$lt_dlunknown 18123 cat > conftest.$ac_ext <<_LT_EOF 18124#line $LINENO "configure" 18125#include "confdefs.h" 18126 18127#if HAVE_DLFCN_H 18128#include <dlfcn.h> 18129#endif 18130 18131#include <stdio.h> 18132 18133#ifdef RTLD_GLOBAL 18134# define LT_DLGLOBAL RTLD_GLOBAL 18135#else 18136# ifdef DL_GLOBAL 18137# define LT_DLGLOBAL DL_GLOBAL 18138# else 18139# define LT_DLGLOBAL 0 18140# endif 18141#endif 18142 18143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18144 find out it does not work in some platform. */ 18145#ifndef LT_DLLAZY_OR_NOW 18146# ifdef RTLD_LAZY 18147# define LT_DLLAZY_OR_NOW RTLD_LAZY 18148# else 18149# ifdef DL_LAZY 18150# define LT_DLLAZY_OR_NOW DL_LAZY 18151# else 18152# ifdef RTLD_NOW 18153# define LT_DLLAZY_OR_NOW RTLD_NOW 18154# else 18155# ifdef DL_NOW 18156# define LT_DLLAZY_OR_NOW DL_NOW 18157# else 18158# define LT_DLLAZY_OR_NOW 0 18159# endif 18160# endif 18161# endif 18162# endif 18163#endif 18164 18165/* When -fvisibility=hidden is used, assume the code has been annotated 18166 correspondingly for the symbols needed. */ 18167#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18168int fnord () __attribute__((visibility("default"))); 18169#endif 18170 18171int fnord () { return 42; } 18172int main () 18173{ 18174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18175 int status = $lt_dlunknown; 18176 18177 if (self) 18178 { 18179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18180 else 18181 { 18182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18183 else puts (dlerror ()); 18184 } 18185 /* dlclose (self); */ 18186 } 18187 else 18188 puts (dlerror ()); 18189 18190 return status; 18191} 18192_LT_EOF 18193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18194 (eval $ac_link) 2>&5 18195 ac_status=$? 18196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18197 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18198 (./conftest; exit; ) >&5 2>/dev/null 18199 lt_status=$? 18200 case x$lt_status in 18201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18204 esac 18205 else : 18206 # compilation failed 18207 lt_cv_dlopen_self=no 18208 fi 18209fi 18210rm -fr conftest* 18211 18212 18213fi 18214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18215$as_echo "$lt_cv_dlopen_self" >&6; } 18216 18217 if test yes = "$lt_cv_dlopen_self"; then 18218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18220$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18221if ${lt_cv_dlopen_self_static+:} false; then : 18222 $as_echo_n "(cached) " >&6 18223else 18224 if test yes = "$cross_compiling"; then : 18225 lt_cv_dlopen_self_static=cross 18226else 18227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18228 lt_status=$lt_dlunknown 18229 cat > conftest.$ac_ext <<_LT_EOF 18230#line $LINENO "configure" 18231#include "confdefs.h" 18232 18233#if HAVE_DLFCN_H 18234#include <dlfcn.h> 18235#endif 18236 18237#include <stdio.h> 18238 18239#ifdef RTLD_GLOBAL 18240# define LT_DLGLOBAL RTLD_GLOBAL 18241#else 18242# ifdef DL_GLOBAL 18243# define LT_DLGLOBAL DL_GLOBAL 18244# else 18245# define LT_DLGLOBAL 0 18246# endif 18247#endif 18248 18249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18250 find out it does not work in some platform. */ 18251#ifndef LT_DLLAZY_OR_NOW 18252# ifdef RTLD_LAZY 18253# define LT_DLLAZY_OR_NOW RTLD_LAZY 18254# else 18255# ifdef DL_LAZY 18256# define LT_DLLAZY_OR_NOW DL_LAZY 18257# else 18258# ifdef RTLD_NOW 18259# define LT_DLLAZY_OR_NOW RTLD_NOW 18260# else 18261# ifdef DL_NOW 18262# define LT_DLLAZY_OR_NOW DL_NOW 18263# else 18264# define LT_DLLAZY_OR_NOW 0 18265# endif 18266# endif 18267# endif 18268# endif 18269#endif 18270 18271/* When -fvisibility=hidden is used, assume the code has been annotated 18272 correspondingly for the symbols needed. */ 18273#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18274int fnord () __attribute__((visibility("default"))); 18275#endif 18276 18277int fnord () { return 42; } 18278int main () 18279{ 18280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18281 int status = $lt_dlunknown; 18282 18283 if (self) 18284 { 18285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18286 else 18287 { 18288 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18289 else puts (dlerror ()); 18290 } 18291 /* dlclose (self); */ 18292 } 18293 else 18294 puts (dlerror ()); 18295 18296 return status; 18297} 18298_LT_EOF 18299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18300 (eval $ac_link) 2>&5 18301 ac_status=$? 18302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18303 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18304 (./conftest; exit; ) >&5 2>/dev/null 18305 lt_status=$? 18306 case x$lt_status in 18307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18310 esac 18311 else : 18312 # compilation failed 18313 lt_cv_dlopen_self_static=no 18314 fi 18315fi 18316rm -fr conftest* 18317 18318 18319fi 18320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18321$as_echo "$lt_cv_dlopen_self_static" >&6; } 18322 fi 18323 18324 CPPFLAGS=$save_CPPFLAGS 18325 LDFLAGS=$save_LDFLAGS 18326 LIBS=$save_LIBS 18327 ;; 18328 esac 18329 18330 case $lt_cv_dlopen_self in 18331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18332 *) enable_dlopen_self=unknown ;; 18333 esac 18334 18335 case $lt_cv_dlopen_self_static in 18336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18337 *) enable_dlopen_self_static=unknown ;; 18338 esac 18339fi 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357striplib= 18358old_striplib= 18359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18360$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18361if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18363 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18365$as_echo "yes" >&6; } 18366else 18367# FIXME - insert some real tests, host_os isn't really good enough 18368 case $host_os in 18369 darwin*) 18370 if test -n "$STRIP"; then 18371 striplib="$STRIP -x" 18372 old_striplib="$STRIP -S" 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18374$as_echo "yes" >&6; } 18375 else 18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18377$as_echo "no" >&6; } 18378 fi 18379 ;; 18380 *) 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18382$as_echo "no" >&6; } 18383 ;; 18384 esac 18385fi 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 # Report what library types will actually be built 18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18400$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18402$as_echo "$can_build_shared" >&6; } 18403 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18405$as_echo_n "checking whether to build shared libraries... " >&6; } 18406 test no = "$can_build_shared" && enable_shared=no 18407 18408 # On AIX, shared libraries and static libraries use the same namespace, and 18409 # are all built from PIC. 18410 case $host_os in 18411 aix3*) 18412 test yes = "$enable_shared" && enable_static=no 18413 if test -n "$RANLIB"; then 18414 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18415 postinstall_cmds='$RANLIB $lib' 18416 fi 18417 ;; 18418 18419 aix[4-9]*) 18420 if test ia64 != "$host_cpu"; then 18421 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18422 yes,aix,yes) ;; # shared object as lib.so file only 18423 yes,svr4,*) ;; # shared object as lib.so archive member only 18424 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18425 esac 18426 fi 18427 ;; 18428 esac 18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18430$as_echo "$enable_shared" >&6; } 18431 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18433$as_echo_n "checking whether to build static libraries... " >&6; } 18434 # Make sure either enable_shared or enable_static is yes. 18435 test yes = "$enable_shared" || enable_static=yes 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18437$as_echo "$enable_static" >&6; } 18438 18439 18440 18441 18442fi 18443ac_ext=c 18444ac_cpp='$CPP $CPPFLAGS' 18445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18447ac_compiler_gnu=$ac_cv_c_compiler_gnu 18448 18449CC=$lt_save_CC 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 ac_config_commands="$ac_config_commands libtool" 18466 18467 18468 18469 18470# Only expand once: 18471 18472 18473 18474 18475 18476# Options 18477# Define a configure option for an alternate module directory 18478 18479# Check whether --with-xorg-module-dir was given. 18480if test "${with_xorg_module_dir+set}" = set; then : 18481 withval=$with_xorg_module_dir; moduledir="$withval" 18482else 18483 moduledir="$libdir/xorg/modules" 18484fi 18485 18486 18487# Store the list of server defined optional extensions in REQUIRED_MODULES 18488 18489 18490 SAVE_CFLAGS="$CFLAGS" 18491 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18493/* end confdefs.h. */ 18494 18495#include "xorg-server.h" 18496#if !defined RANDR 18497#error RANDR not defined 18498#endif 18499 18500int 18501main () 18502{ 18503 18504 ; 18505 return 0; 18506} 18507_ACEOF 18508if ac_fn_c_try_compile "$LINENO"; then : 18509 _EXT_CHECK=yes 18510else 18511 _EXT_CHECK=no 18512fi 18513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18514 CFLAGS="$SAVE_CFLAGS" 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18516$as_echo_n "checking if RANDR is defined... " >&6; } 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18518$as_echo "$_EXT_CHECK" >&6; } 18519 if test "$_EXT_CHECK" != no; then 18520 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18521 fi 18522 18523 18524 18525 SAVE_CFLAGS="$CFLAGS" 18526 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18528/* end confdefs.h. */ 18529 18530#include "xorg-server.h" 18531#if !defined RENDER 18532#error RENDER not defined 18533#endif 18534 18535int 18536main () 18537{ 18538 18539 ; 18540 return 0; 18541} 18542_ACEOF 18543if ac_fn_c_try_compile "$LINENO"; then : 18544 _EXT_CHECK=yes 18545else 18546 _EXT_CHECK=no 18547fi 18548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18549 CFLAGS="$SAVE_CFLAGS" 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18551$as_echo_n "checking if RENDER is defined... " >&6; } 18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18553$as_echo "$_EXT_CHECK" >&6; } 18554 if test "$_EXT_CHECK" != no; then 18555 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18556 fi 18557 18558 18559 18560 SAVE_CFLAGS="$CFLAGS" 18561 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18563/* end confdefs.h. */ 18564 18565#include "xorg-server.h" 18566#if !defined XV 18567#error XV not defined 18568#endif 18569 18570int 18571main () 18572{ 18573 18574 ; 18575 return 0; 18576} 18577_ACEOF 18578if ac_fn_c_try_compile "$LINENO"; then : 18579 _EXT_CHECK=yes 18580else 18581 _EXT_CHECK=no 18582fi 18583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18584 CFLAGS="$SAVE_CFLAGS" 18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18586$as_echo_n "checking if XV is defined... " >&6; } 18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18588$as_echo "$_EXT_CHECK" >&6; } 18589 if test "$_EXT_CHECK" != no; then 18590 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18591 fi 18592 18593 18594 18595 SAVE_CFLAGS="$CFLAGS" 18596 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18598/* end confdefs.h. */ 18599 18600#include "xorg-server.h" 18601#if !defined DPMSExtension 18602#error DPMSExtension not defined 18603#endif 18604 18605int 18606main () 18607{ 18608 18609 ; 18610 return 0; 18611} 18612_ACEOF 18613if ac_fn_c_try_compile "$LINENO"; then : 18614 _EXT_CHECK=yes 18615else 18616 _EXT_CHECK=no 18617fi 18618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18619 CFLAGS="$SAVE_CFLAGS" 18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18621$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18623$as_echo "$_EXT_CHECK" >&6; } 18624 if test "$_EXT_CHECK" != no; then 18625 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18626 fi 18627 18628 18629# Obtain compiler/linker options for the driver dependencies 18630 18631pkg_failed=no 18632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18633$as_echo_n "checking for XORG... " >&6; } 18634 18635if test -n "$XORG_CFLAGS"; then 18636 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18637 elif test -n "$PKG_CONFIG"; then 18638 if test -n "$PKG_CONFIG" && \ 18639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18640 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 18641 ac_status=$? 18642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18643 test $ac_status = 0; }; then 18644 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18645 test "x$?" != "x0" && pkg_failed=yes 18646else 18647 pkg_failed=yes 18648fi 18649 else 18650 pkg_failed=untried 18651fi 18652if test -n "$XORG_LIBS"; then 18653 pkg_cv_XORG_LIBS="$XORG_LIBS" 18654 elif test -n "$PKG_CONFIG"; then 18655 if test -n "$PKG_CONFIG" && \ 18656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18657 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 18658 ac_status=$? 18659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18660 test $ac_status = 0; }; then 18661 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18662 test "x$?" != "x0" && pkg_failed=yes 18663else 18664 pkg_failed=yes 18665fi 18666 else 18667 pkg_failed=untried 18668fi 18669 18670 18671 18672if test $pkg_failed = yes; then 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18674$as_echo "no" >&6; } 18675 18676if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18677 _pkg_short_errors_supported=yes 18678else 18679 _pkg_short_errors_supported=no 18680fi 18681 if test $_pkg_short_errors_supported = yes; then 18682 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18683 else 18684 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18685 fi 18686 # Put the nasty error message in config.log where it belongs 18687 echo "$XORG_PKG_ERRORS" >&5 18688 18689 as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met: 18690 18691$XORG_PKG_ERRORS 18692 18693Consider adjusting the PKG_CONFIG_PATH environment variable if you 18694installed software in a non-standard prefix. 18695 18696Alternatively, you may set the environment variables XORG_CFLAGS 18697and XORG_LIBS to avoid the need to call pkg-config. 18698See the pkg-config man page for more details." "$LINENO" 5 18699elif test $pkg_failed = untried; then 18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18701$as_echo "no" >&6; } 18702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18704as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18705is in your PATH or set the PKG_CONFIG environment variable to the full 18706path to pkg-config. 18707 18708Alternatively, you may set the environment variables XORG_CFLAGS 18709and XORG_LIBS to avoid the need to call pkg-config. 18710See the pkg-config man page for more details. 18711 18712To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18713See \`config.log' for more details" "$LINENO" 5; } 18714else 18715 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18716 XORG_LIBS=$pkg_cv_XORG_LIBS 18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18718$as_echo "yes" >&6; } 18719 18720fi 18721 18722pkg_failed=no 18723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18724$as_echo_n "checking for XEXT... " >&6; } 18725 18726if test -n "$XEXT_CFLAGS"; then 18727 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18728 elif test -n "$PKG_CONFIG"; then 18729 if test -n "$PKG_CONFIG" && \ 18730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18731 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18732 ac_status=$? 18733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18734 test $ac_status = 0; }; then 18735 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 18736 test "x$?" != "x0" && pkg_failed=yes 18737else 18738 pkg_failed=yes 18739fi 18740 else 18741 pkg_failed=untried 18742fi 18743if test -n "$XEXT_LIBS"; then 18744 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18745 elif test -n "$PKG_CONFIG"; then 18746 if test -n "$PKG_CONFIG" && \ 18747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18748 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18749 ac_status=$? 18750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18751 test $ac_status = 0; }; then 18752 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 18753 test "x$?" != "x0" && pkg_failed=yes 18754else 18755 pkg_failed=yes 18756fi 18757 else 18758 pkg_failed=untried 18759fi 18760 18761 18762 18763if test $pkg_failed = yes; then 18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18765$as_echo "no" >&6; } 18766 18767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18768 _pkg_short_errors_supported=yes 18769else 18770 _pkg_short_errors_supported=no 18771fi 18772 if test $_pkg_short_errors_supported = yes; then 18773 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18774 else 18775 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18776 fi 18777 # Put the nasty error message in config.log where it belongs 18778 echo "$XEXT_PKG_ERRORS" >&5 18779 18780 HAVE_XEXTPROTO_71="no" 18781elif test $pkg_failed = untried; then 18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18783$as_echo "no" >&6; } 18784 HAVE_XEXTPROTO_71="no" 18785else 18786 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18787 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18789$as_echo "yes" >&6; } 18790 HAVE_XEXTPROTO_71="yes"; 18791$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18792 18793fi 18794 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18795 HAVE_XEXTPROTO_71_TRUE= 18796 HAVE_XEXTPROTO_71_FALSE='#' 18797else 18798 HAVE_XEXTPROTO_71_TRUE='#' 18799 HAVE_XEXTPROTO_71_FALSE= 18800fi 18801 18802 18803# Checks for libraries. 18804 18805 18806save_CFLAGS="$CFLAGS" 18807CFLAGS="$XORG_CFLAGS" 18808 18809# PCI rework 18810ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18811" 18812if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18813 XSERVER_LIBPCIACCESS=yes 18814else 18815 XSERVER_LIBPCIACCESS=no 18816fi 18817 18818if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then 18819 18820pkg_failed=no 18821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18822$as_echo_n "checking for PCIACCESS... " >&6; } 18823 18824if test -n "$PCIACCESS_CFLAGS"; then 18825 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18826 elif test -n "$PKG_CONFIG"; then 18827 if test -n "$PKG_CONFIG" && \ 18828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5 18829 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5 18830 ac_status=$? 18831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18832 test $ac_status = 0; }; then 18833 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10.7" 2>/dev/null` 18834 test "x$?" != "x0" && pkg_failed=yes 18835else 18836 pkg_failed=yes 18837fi 18838 else 18839 pkg_failed=untried 18840fi 18841if test -n "$PCIACCESS_LIBS"; then 18842 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18843 elif test -n "$PKG_CONFIG"; then 18844 if test -n "$PKG_CONFIG" && \ 18845 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5 18846 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5 18847 ac_status=$? 18848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18849 test $ac_status = 0; }; then 18850 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10.7" 2>/dev/null` 18851 test "x$?" != "x0" && pkg_failed=yes 18852else 18853 pkg_failed=yes 18854fi 18855 else 18856 pkg_failed=untried 18857fi 18858 18859 18860 18861if test $pkg_failed = yes; then 18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18863$as_echo "no" >&6; } 18864 18865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18866 _pkg_short_errors_supported=yes 18867else 18868 _pkg_short_errors_supported=no 18869fi 18870 if test $_pkg_short_errors_supported = yes; then 18871 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1` 18872 else 18873 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1` 18874 fi 18875 # Put the nasty error message in config.log where it belongs 18876 echo "$PCIACCESS_PKG_ERRORS" >&5 18877 18878 as_fn_error $? "Package requirements (pciaccess >= 0.10.7) were not met: 18879 18880$PCIACCESS_PKG_ERRORS 18881 18882Consider adjusting the PKG_CONFIG_PATH environment variable if you 18883installed software in a non-standard prefix. 18884 18885Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18886and PCIACCESS_LIBS to avoid the need to call pkg-config. 18887See the pkg-config man page for more details." "$LINENO" 5 18888elif test $pkg_failed = untried; then 18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18890$as_echo "no" >&6; } 18891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18893as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18894is in your PATH or set the PKG_CONFIG environment variable to the full 18895path to pkg-config. 18896 18897Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18898and PCIACCESS_LIBS to avoid the need to call pkg-config. 18899See the pkg-config man page for more details. 18900 18901To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18902See \`config.log' for more details" "$LINENO" 5; } 18903else 18904 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18905 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18907$as_echo "yes" >&6; } 18908 18909fi 18910fi 18911 18912CFLAGS="$save_CFLAGS" 18913 18914# Check whether --enable-xaa was given. 18915if test "${enable_xaa+set}" = set; then : 18916 enableval=$enable_xaa; XAA="$enableval" 18917else 18918 XAA=auto 18919fi 18920 18921if test "x$XAA" != xno; then 18922 save_CFLAGS=$CFLAGS 18923 save_CPPFLAGS=$CPPFLAGS 18924 CFLAGS=$XORG_CFLAGS 18925 CPPFLAGS="$XORG_CFLAGS" 18926 for ac_header in xaa.h 18927do : 18928 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18929if test "x$ac_cv_header_xaa_h" = xyes; then : 18930 cat >>confdefs.h <<_ACEOF 18931#define HAVE_XAA_H 1 18932_ACEOF 18933 XAA=yes 18934else 18935 XAA=no 18936fi 18937 18938done 18939 18940 CFLAGS=$save_CFLAGS 18941 CPPFLAGS=$save_CPPFLAGS 18942fi 18943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18944$as_echo_n "checking whether to include XAA support... " >&6; } 18945 if test "x$XAA" = xyes; then 18946 XAA_TRUE= 18947 XAA_FALSE='#' 18948else 18949 XAA_TRUE='#' 18950 XAA_FALSE= 18951fi 18952 18953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18954$as_echo "$XAA" >&6; } 18955 18956# Substitutions 18957 18958 18959DRIVER_NAME=nv 18960 18961 18962ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 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; } 19081if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19082 as_fn_error $? "conditional \"AMDEP\" was never defined. 19083Usually this means the macro was only invoked conditionally." "$LINENO" 5 19084fi 19085if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19086 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19087Usually this means the macro was only invoked conditionally." "$LINENO" 5 19088fi 19089 if test -n "$EXEEXT"; then 19090 am__EXEEXT_TRUE= 19091 am__EXEEXT_FALSE='#' 19092else 19093 am__EXEEXT_TRUE='#' 19094 am__EXEEXT_FALSE= 19095fi 19096 19097if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19098 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19099Usually this means the macro was only invoked conditionally." "$LINENO" 5 19100fi 19101if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19102 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19103Usually this means the macro was only invoked conditionally." "$LINENO" 5 19104fi 19105if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19106 as_fn_error $? "conditional \"XAA\" was never defined. 19107Usually this means the macro was only invoked conditionally." "$LINENO" 5 19108fi 19109 19110: "${CONFIG_STATUS=./config.status}" 19111ac_write_fail=0 19112ac_clean_files_save=$ac_clean_files 19113ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19114{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19115$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19116as_write_fail=0 19117cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19118#! $SHELL 19119# Generated by $as_me. 19120# Run this file to recreate the current configuration. 19121# Compiler output produced by configure, useful for debugging 19122# configure, is in config.log if it exists. 19123 19124debug=false 19125ac_cs_recheck=false 19126ac_cs_silent=false 19127 19128SHELL=\${CONFIG_SHELL-$SHELL} 19129export SHELL 19130_ASEOF 19131cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19132## -------------------- ## 19133## M4sh Initialization. ## 19134## -------------------- ## 19135 19136# Be more Bourne compatible 19137DUALCASE=1; export DUALCASE # for MKS sh 19138if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19139 emulate sh 19140 NULLCMD=: 19141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19142 # is contrary to our usage. Disable this feature. 19143 alias -g '${1+"$@"}'='"$@"' 19144 setopt NO_GLOB_SUBST 19145else 19146 case `(set -o) 2>/dev/null` in #( 19147 *posix*) : 19148 set -o posix ;; #( 19149 *) : 19150 ;; 19151esac 19152fi 19153 19154 19155as_nl=' 19156' 19157export as_nl 19158# Printing a long string crashes Solaris 7 /usr/bin/printf. 19159as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19160as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19161as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19162# Prefer a ksh shell builtin over an external printf program on Solaris, 19163# but without wasting forks for bash or zsh. 19164if test -z "$BASH_VERSION$ZSH_VERSION" \ 19165 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19166 as_echo='print -r --' 19167 as_echo_n='print -rn --' 19168elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19169 as_echo='printf %s\n' 19170 as_echo_n='printf %s' 19171else 19172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19174 as_echo_n='/usr/ucb/echo -n' 19175 else 19176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19177 as_echo_n_body='eval 19178 arg=$1; 19179 case $arg in #( 19180 *"$as_nl"*) 19181 expr "X$arg" : "X\\(.*\\)$as_nl"; 19182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19183 esac; 19184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19185 ' 19186 export as_echo_n_body 19187 as_echo_n='sh -c $as_echo_n_body as_echo' 19188 fi 19189 export as_echo_body 19190 as_echo='sh -c $as_echo_body as_echo' 19191fi 19192 19193# The user is always right. 19194if test "${PATH_SEPARATOR+set}" != set; then 19195 PATH_SEPARATOR=: 19196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19198 PATH_SEPARATOR=';' 19199 } 19200fi 19201 19202 19203# IFS 19204# We need space, tab and new line, in precisely that order. Quoting is 19205# there to prevent editors from complaining about space-tab. 19206# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19207# splitting by setting IFS to empty value.) 19208IFS=" "" $as_nl" 19209 19210# Find who we are. Look in the path if we contain no directory separator. 19211as_myself= 19212case $0 in #(( 19213 *[\\/]* ) as_myself=$0 ;; 19214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19215for as_dir in $PATH 19216do 19217 IFS=$as_save_IFS 19218 test -z "$as_dir" && as_dir=. 19219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19220 done 19221IFS=$as_save_IFS 19222 19223 ;; 19224esac 19225# We did not find ourselves, most probably we were run as `sh COMMAND' 19226# in which case we are not to be found in the path. 19227if test "x$as_myself" = x; then 19228 as_myself=$0 19229fi 19230if test ! -f "$as_myself"; then 19231 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19232 exit 1 19233fi 19234 19235# Unset variables that we do not need and which cause bugs (e.g. in 19236# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19237# suppresses any "Segmentation fault" message there. '((' could 19238# trigger a bug in pdksh 5.2.14. 19239for as_var in BASH_ENV ENV MAIL MAILPATH 19240do eval test x\${$as_var+set} = xset \ 19241 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19242done 19243PS1='$ ' 19244PS2='> ' 19245PS4='+ ' 19246 19247# NLS nuisances. 19248LC_ALL=C 19249export LC_ALL 19250LANGUAGE=C 19251export LANGUAGE 19252 19253# CDPATH. 19254(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19255 19256 19257# as_fn_error STATUS ERROR [LINENO LOG_FD] 19258# ---------------------------------------- 19259# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19260# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19261# script with STATUS, using 1 if that was 0. 19262as_fn_error () 19263{ 19264 as_status=$1; test $as_status -eq 0 && as_status=1 19265 if test "$4"; then 19266 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19267 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19268 fi 19269 $as_echo "$as_me: error: $2" >&2 19270 as_fn_exit $as_status 19271} # as_fn_error 19272 19273 19274# as_fn_set_status STATUS 19275# ----------------------- 19276# Set $? to STATUS, without forking. 19277as_fn_set_status () 19278{ 19279 return $1 19280} # as_fn_set_status 19281 19282# as_fn_exit STATUS 19283# ----------------- 19284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19285as_fn_exit () 19286{ 19287 set +e 19288 as_fn_set_status $1 19289 exit $1 19290} # as_fn_exit 19291 19292# as_fn_unset VAR 19293# --------------- 19294# Portably unset VAR. 19295as_fn_unset () 19296{ 19297 { eval $1=; unset $1;} 19298} 19299as_unset=as_fn_unset 19300# as_fn_append VAR VALUE 19301# ---------------------- 19302# Append the text in VALUE to the end of the definition contained in VAR. Take 19303# advantage of any shell optimizations that allow amortized linear growth over 19304# repeated appends, instead of the typical quadratic growth present in naive 19305# implementations. 19306if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19307 eval 'as_fn_append () 19308 { 19309 eval $1+=\$2 19310 }' 19311else 19312 as_fn_append () 19313 { 19314 eval $1=\$$1\$2 19315 } 19316fi # as_fn_append 19317 19318# as_fn_arith ARG... 19319# ------------------ 19320# Perform arithmetic evaluation on the ARGs, and store the result in the 19321# global $as_val. Take advantage of shells that can avoid forks. The arguments 19322# must be portable across $(()) and expr. 19323if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19324 eval 'as_fn_arith () 19325 { 19326 as_val=$(( $* )) 19327 }' 19328else 19329 as_fn_arith () 19330 { 19331 as_val=`expr "$@" || test $? -eq 1` 19332 } 19333fi # as_fn_arith 19334 19335 19336if expr a : '\(a\)' >/dev/null 2>&1 && 19337 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19338 as_expr=expr 19339else 19340 as_expr=false 19341fi 19342 19343if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19344 as_basename=basename 19345else 19346 as_basename=false 19347fi 19348 19349if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19350 as_dirname=dirname 19351else 19352 as_dirname=false 19353fi 19354 19355as_me=`$as_basename -- "$0" || 19356$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19357 X"$0" : 'X\(//\)$' \| \ 19358 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19359$as_echo X/"$0" | 19360 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19361 s//\1/ 19362 q 19363 } 19364 /^X\/\(\/\/\)$/{ 19365 s//\1/ 19366 q 19367 } 19368 /^X\/\(\/\).*/{ 19369 s//\1/ 19370 q 19371 } 19372 s/.*/./; q'` 19373 19374# Avoid depending upon Character Ranges. 19375as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19376as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19377as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19378as_cr_digits='0123456789' 19379as_cr_alnum=$as_cr_Letters$as_cr_digits 19380 19381ECHO_C= ECHO_N= ECHO_T= 19382case `echo -n x` in #((((( 19383-n*) 19384 case `echo 'xy\c'` in 19385 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19386 xy) ECHO_C='\c';; 19387 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19388 ECHO_T=' ';; 19389 esac;; 19390*) 19391 ECHO_N='-n';; 19392esac 19393 19394rm -f conf$$ conf$$.exe conf$$.file 19395if test -d conf$$.dir; then 19396 rm -f conf$$.dir/conf$$.file 19397else 19398 rm -f conf$$.dir 19399 mkdir conf$$.dir 2>/dev/null 19400fi 19401if (echo >conf$$.file) 2>/dev/null; then 19402 if ln -s conf$$.file conf$$ 2>/dev/null; then 19403 as_ln_s='ln -s' 19404 # ... but there are two gotchas: 19405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19407 # In both cases, we have to default to `cp -pR'. 19408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19409 as_ln_s='cp -pR' 19410 elif ln conf$$.file conf$$ 2>/dev/null; then 19411 as_ln_s=ln 19412 else 19413 as_ln_s='cp -pR' 19414 fi 19415else 19416 as_ln_s='cp -pR' 19417fi 19418rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19419rmdir conf$$.dir 2>/dev/null 19420 19421 19422# as_fn_mkdir_p 19423# ------------- 19424# Create "$as_dir" as a directory, including parents if necessary. 19425as_fn_mkdir_p () 19426{ 19427 19428 case $as_dir in #( 19429 -*) as_dir=./$as_dir;; 19430 esac 19431 test -d "$as_dir" || eval $as_mkdir_p || { 19432 as_dirs= 19433 while :; do 19434 case $as_dir in #( 19435 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19436 *) as_qdir=$as_dir;; 19437 esac 19438 as_dirs="'$as_qdir' $as_dirs" 19439 as_dir=`$as_dirname -- "$as_dir" || 19440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19441 X"$as_dir" : 'X\(//\)[^/]' \| \ 19442 X"$as_dir" : 'X\(//\)$' \| \ 19443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19444$as_echo X"$as_dir" | 19445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19446 s//\1/ 19447 q 19448 } 19449 /^X\(\/\/\)[^/].*/{ 19450 s//\1/ 19451 q 19452 } 19453 /^X\(\/\/\)$/{ 19454 s//\1/ 19455 q 19456 } 19457 /^X\(\/\).*/{ 19458 s//\1/ 19459 q 19460 } 19461 s/.*/./; q'` 19462 test -d "$as_dir" && break 19463 done 19464 test -z "$as_dirs" || eval "mkdir $as_dirs" 19465 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19466 19467 19468} # as_fn_mkdir_p 19469if mkdir -p . 2>/dev/null; then 19470 as_mkdir_p='mkdir -p "$as_dir"' 19471else 19472 test -d ./-p && rmdir ./-p 19473 as_mkdir_p=false 19474fi 19475 19476 19477# as_fn_executable_p FILE 19478# ----------------------- 19479# Test if FILE is an executable regular file. 19480as_fn_executable_p () 19481{ 19482 test -f "$1" && test -x "$1" 19483} # as_fn_executable_p 19484as_test_x='test -x' 19485as_executable_p=as_fn_executable_p 19486 19487# Sed expression to map a string onto a valid CPP name. 19488as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19489 19490# Sed expression to map a string onto a valid variable name. 19491as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19492 19493 19494exec 6>&1 19495## ----------------------------------- ## 19496## Main body of $CONFIG_STATUS script. ## 19497## ----------------------------------- ## 19498_ASEOF 19499test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19500 19501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19502# Save the log message, to keep $0 and so on meaningful, and to 19503# report actual input values of CONFIG_FILES etc. instead of their 19504# values after options handling. 19505ac_log=" 19506This file was extended by xf86-video-nv $as_me 2.1.21, which was 19507generated by GNU Autoconf 2.69. Invocation command line was 19508 19509 CONFIG_FILES = $CONFIG_FILES 19510 CONFIG_HEADERS = $CONFIG_HEADERS 19511 CONFIG_LINKS = $CONFIG_LINKS 19512 CONFIG_COMMANDS = $CONFIG_COMMANDS 19513 $ $0 $@ 19514 19515on `(hostname || uname -n) 2>/dev/null | sed 1q` 19516" 19517 19518_ACEOF 19519 19520case $ac_config_files in *" 19521"*) set x $ac_config_files; shift; ac_config_files=$*;; 19522esac 19523 19524case $ac_config_headers in *" 19525"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19526esac 19527 19528 19529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19530# Files that config.status was made for. 19531config_files="$ac_config_files" 19532config_headers="$ac_config_headers" 19533config_commands="$ac_config_commands" 19534 19535_ACEOF 19536 19537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19538ac_cs_usage="\ 19539\`$as_me' instantiates files and other configuration actions 19540from templates according to the current configuration. Unless the files 19541and actions are specified as TAGs, all are instantiated by default. 19542 19543Usage: $0 [OPTION]... [TAG]... 19544 19545 -h, --help print this help, then exit 19546 -V, --version print version number and configuration settings, then exit 19547 --config print configuration, then exit 19548 -q, --quiet, --silent 19549 do not print progress messages 19550 -d, --debug don't remove temporary files 19551 --recheck update $as_me by reconfiguring in the same conditions 19552 --file=FILE[:TEMPLATE] 19553 instantiate the configuration file FILE 19554 --header=FILE[:TEMPLATE] 19555 instantiate the configuration header FILE 19556 19557Configuration files: 19558$config_files 19559 19560Configuration headers: 19561$config_headers 19562 19563Configuration commands: 19564$config_commands 19565 19566Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19567 19568_ACEOF 19569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19570ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19571ac_cs_version="\\ 19572xf86-video-nv config.status 2.1.21 19573configured by $0, generated by GNU Autoconf 2.69, 19574 with options \\"\$ac_cs_config\\" 19575 19576Copyright (C) 2012 Free Software Foundation, Inc. 19577This config.status script is free software; the Free Software Foundation 19578gives unlimited permission to copy, distribute and modify it." 19579 19580ac_pwd='$ac_pwd' 19581srcdir='$srcdir' 19582INSTALL='$INSTALL' 19583MKDIR_P='$MKDIR_P' 19584AWK='$AWK' 19585test -n "\$AWK" || AWK=awk 19586_ACEOF 19587 19588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19589# The default lists apply if the user does not specify any file. 19590ac_need_defaults=: 19591while test $# != 0 19592do 19593 case $1 in 19594 --*=?*) 19595 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19597 ac_shift=: 19598 ;; 19599 --*=) 19600 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19601 ac_optarg= 19602 ac_shift=: 19603 ;; 19604 *) 19605 ac_option=$1 19606 ac_optarg=$2 19607 ac_shift=shift 19608 ;; 19609 esac 19610 19611 case $ac_option in 19612 # Handling of the options. 19613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19614 ac_cs_recheck=: ;; 19615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19616 $as_echo "$ac_cs_version"; exit ;; 19617 --config | --confi | --conf | --con | --co | --c ) 19618 $as_echo "$ac_cs_config"; exit ;; 19619 --debug | --debu | --deb | --de | --d | -d ) 19620 debug=: ;; 19621 --file | --fil | --fi | --f ) 19622 $ac_shift 19623 case $ac_optarg in 19624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19625 '') as_fn_error $? "missing file argument" ;; 19626 esac 19627 as_fn_append CONFIG_FILES " '$ac_optarg'" 19628 ac_need_defaults=false;; 19629 --header | --heade | --head | --hea ) 19630 $ac_shift 19631 case $ac_optarg in 19632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19633 esac 19634 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19635 ac_need_defaults=false;; 19636 --he | --h) 19637 # Conflict between --help and --header 19638 as_fn_error $? "ambiguous option: \`$1' 19639Try \`$0 --help' for more information.";; 19640 --help | --hel | -h ) 19641 $as_echo "$ac_cs_usage"; exit ;; 19642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19643 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19644 ac_cs_silent=: ;; 19645 19646 # This is an error. 19647 -*) as_fn_error $? "unrecognized option: \`$1' 19648Try \`$0 --help' for more information." ;; 19649 19650 *) as_fn_append ac_config_targets " $1" 19651 ac_need_defaults=false ;; 19652 19653 esac 19654 shift 19655done 19656 19657ac_configure_extra_args= 19658 19659if $ac_cs_silent; then 19660 exec 6>/dev/null 19661 ac_configure_extra_args="$ac_configure_extra_args --silent" 19662fi 19663 19664_ACEOF 19665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19666if \$ac_cs_recheck; then 19667 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19668 shift 19669 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19670 CONFIG_SHELL='$SHELL' 19671 export CONFIG_SHELL 19672 exec "\$@" 19673fi 19674 19675_ACEOF 19676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19677exec 5>>config.log 19678{ 19679 echo 19680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19681## Running $as_me. ## 19682_ASBOX 19683 $as_echo "$ac_log" 19684} >&5 19685 19686_ACEOF 19687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19688# 19689# INIT-COMMANDS 19690# 19691AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19692 19693 19694# The HP-UX ksh and POSIX shell print the target directory to stdout 19695# if CDPATH is set. 19696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19697 19698sed_quote_subst='$sed_quote_subst' 19699double_quote_subst='$double_quote_subst' 19700delay_variable_subst='$delay_variable_subst' 19701enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19702macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19703macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19704enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19705pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19706enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19707shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19708SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19709ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19710PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19711host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19712host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19713host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19714build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19715build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19716build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19717SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19718Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19719GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19720EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19721FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19722LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19723NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19724LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19725max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19726ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19727exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19728lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19729lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19730lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19731lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19732lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19733reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19734reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19735OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19736deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19737file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19738file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19739want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19740DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19741sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19742AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19743AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19744archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19745STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19746RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19747old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19748old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19749old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19750lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19751CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19752CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19753compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19754GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19755lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19756lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19757lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19758lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19759lt_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"`' 19760lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19761nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19762lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19763lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19764objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19765MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19766lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19767lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19768lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19769lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19770lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19771need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19772MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19773DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19774NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19775LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19776OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19777OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19778libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19779shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19780extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19781archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19782enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19783export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19784whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19785compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19786old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19787old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19788archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19789archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19790module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19791module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19792with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19793allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19794no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19795hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19796hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19797hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19798hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19799hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19800hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19801hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19802inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19803link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19804always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19805export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19806exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19807include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19808prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19809postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19810file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19811variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19812need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19813need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19814version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19815runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19816shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19817shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19818libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19819library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19820soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19821install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19822postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19823postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19824finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19825finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19826hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19827sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19828configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19829configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19830hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19831enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19832enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19833enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19834old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19835striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19836 19837LTCC='$LTCC' 19838LTCFLAGS='$LTCFLAGS' 19839compiler='$compiler_DEFAULT' 19840 19841# A function that is used when there is no print builtin or printf. 19842func_fallback_echo () 19843{ 19844 eval 'cat <<_LTECHO_EOF 19845\$1 19846_LTECHO_EOF' 19847} 19848 19849# Quote evaled strings. 19850for var in SHELL \ 19851ECHO \ 19852PATH_SEPARATOR \ 19853SED \ 19854GREP \ 19855EGREP \ 19856FGREP \ 19857LD \ 19858NM \ 19859LN_S \ 19860lt_SP2NL \ 19861lt_NL2SP \ 19862reload_flag \ 19863OBJDUMP \ 19864deplibs_check_method \ 19865file_magic_cmd \ 19866file_magic_glob \ 19867want_nocaseglob \ 19868DLLTOOL \ 19869sharedlib_from_linklib_cmd \ 19870AR \ 19871AR_FLAGS \ 19872archiver_list_spec \ 19873STRIP \ 19874RANLIB \ 19875CC \ 19876CFLAGS \ 19877compiler \ 19878lt_cv_sys_global_symbol_pipe \ 19879lt_cv_sys_global_symbol_to_cdecl \ 19880lt_cv_sys_global_symbol_to_import \ 19881lt_cv_sys_global_symbol_to_c_name_address \ 19882lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19883lt_cv_nm_interface \ 19884nm_file_list_spec \ 19885lt_cv_truncate_bin \ 19886lt_prog_compiler_no_builtin_flag \ 19887lt_prog_compiler_pic \ 19888lt_prog_compiler_wl \ 19889lt_prog_compiler_static \ 19890lt_cv_prog_compiler_c_o \ 19891need_locks \ 19892MANIFEST_TOOL \ 19893DSYMUTIL \ 19894NMEDIT \ 19895LIPO \ 19896OTOOL \ 19897OTOOL64 \ 19898shrext_cmds \ 19899export_dynamic_flag_spec \ 19900whole_archive_flag_spec \ 19901compiler_needs_object \ 19902with_gnu_ld \ 19903allow_undefined_flag \ 19904no_undefined_flag \ 19905hardcode_libdir_flag_spec \ 19906hardcode_libdir_separator \ 19907exclude_expsyms \ 19908include_expsyms \ 19909file_list_spec \ 19910variables_saved_for_relink \ 19911libname_spec \ 19912library_names_spec \ 19913soname_spec \ 19914install_override_mode \ 19915finish_eval \ 19916old_striplib \ 19917striplib; do 19918 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19919 *[\\\\\\\`\\"\\\$]*) 19920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19921 ;; 19922 *) 19923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19924 ;; 19925 esac 19926done 19927 19928# Double-quote double-evaled strings. 19929for var in reload_cmds \ 19930old_postinstall_cmds \ 19931old_postuninstall_cmds \ 19932old_archive_cmds \ 19933extract_expsyms_cmds \ 19934old_archive_from_new_cmds \ 19935old_archive_from_expsyms_cmds \ 19936archive_cmds \ 19937archive_expsym_cmds \ 19938module_cmds \ 19939module_expsym_cmds \ 19940export_symbols_cmds \ 19941prelink_cmds \ 19942postlink_cmds \ 19943postinstall_cmds \ 19944postuninstall_cmds \ 19945finish_cmds \ 19946sys_lib_search_path_spec \ 19947configure_time_dlsearch_path \ 19948configure_time_lt_sys_library_path; do 19949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19950 *[\\\\\\\`\\"\\\$]*) 19951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19952 ;; 19953 *) 19954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19955 ;; 19956 esac 19957done 19958 19959ac_aux_dir='$ac_aux_dir' 19960 19961# See if we are running on zsh, and set the options that allow our 19962# commands through without removal of \ escapes INIT. 19963if test -n "\${ZSH_VERSION+set}"; then 19964 setopt NO_GLOB_SUBST 19965fi 19966 19967 19968 PACKAGE='$PACKAGE' 19969 VERSION='$VERSION' 19970 RM='$RM' 19971 ofile='$ofile' 19972 19973 19974 19975 19976_ACEOF 19977 19978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19979 19980# Handling of arguments. 19981for ac_config_target in $ac_config_targets 19982do 19983 case $ac_config_target in 19984 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19985 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19986 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19988 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19989 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19990 19991 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19992 esac 19993done 19994 19995 19996# If the user did not use the arguments to specify the items to instantiate, 19997# then the envvar interface is used. Set only those that are not. 19998# We use the long form for the default assignment because of an extremely 19999# bizarre bug on SunOS 4.1.3. 20000if $ac_need_defaults; then 20001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20004fi 20005 20006# Have a temporary directory for convenience. Make it in the build tree 20007# simply because there is no reason against having it here, and in addition, 20008# creating and moving files from /tmp can sometimes cause problems. 20009# Hook for its removal unless debugging. 20010# Note that there is a small window in which the directory will not be cleaned: 20011# after its creation but before its name has been assigned to `$tmp'. 20012$debug || 20013{ 20014 tmp= ac_tmp= 20015 trap 'exit_status=$? 20016 : "${ac_tmp:=$tmp}" 20017 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20018' 0 20019 trap 'as_fn_exit 1' 1 2 13 15 20020} 20021# Create a (secure) tmp directory for tmp files. 20022 20023{ 20024 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20025 test -d "$tmp" 20026} || 20027{ 20028 tmp=./conf$$-$RANDOM 20029 (umask 077 && mkdir "$tmp") 20030} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20031ac_tmp=$tmp 20032 20033# Set up the scripts for CONFIG_FILES section. 20034# No need to generate them if there are no CONFIG_FILES. 20035# This happens for instance with `./config.status config.h'. 20036if test -n "$CONFIG_FILES"; then 20037 20038 20039ac_cr=`echo X | tr X '\015'` 20040# On cygwin, bash can eat \r inside `` if the user requested igncr. 20041# But we know of no other shell where ac_cr would be empty at this 20042# point, so we can use a bashism as a fallback. 20043if test "x$ac_cr" = x; then 20044 eval ac_cr=\$\'\\r\' 20045fi 20046ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20047if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20048 ac_cs_awk_cr='\\r' 20049else 20050 ac_cs_awk_cr=$ac_cr 20051fi 20052 20053echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20054_ACEOF 20055 20056 20057{ 20058 echo "cat >conf$$subs.awk <<_ACEOF" && 20059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20060 echo "_ACEOF" 20061} >conf$$subs.sh || 20062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20063ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20064ac_delim='%!_!# ' 20065for ac_last_try in false false false false false :; do 20066 . ./conf$$subs.sh || 20067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20068 20069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20070 if test $ac_delim_n = $ac_delim_num; then 20071 break 20072 elif $ac_last_try; then 20073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20074 else 20075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20076 fi 20077done 20078rm -f conf$$subs.sh 20079 20080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20081cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20082_ACEOF 20083sed -n ' 20084h 20085s/^/S["/; s/!.*/"]=/ 20086p 20087g 20088s/^[^!]*!// 20089:repl 20090t repl 20091s/'"$ac_delim"'$// 20092t delim 20093:nl 20094h 20095s/\(.\{148\}\)..*/\1/ 20096t more1 20097s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20098p 20099n 20100b repl 20101:more1 20102s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20103p 20104g 20105s/.\{148\}// 20106t nl 20107:delim 20108h 20109s/\(.\{148\}\)..*/\1/ 20110t more2 20111s/["\\]/\\&/g; s/^/"/; s/$/"/ 20112p 20113b 20114:more2 20115s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20116p 20117g 20118s/.\{148\}// 20119t delim 20120' <conf$$subs.awk | sed ' 20121/^[^""]/{ 20122 N 20123 s/\n// 20124} 20125' >>$CONFIG_STATUS || ac_write_fail=1 20126rm -f conf$$subs.awk 20127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20128_ACAWK 20129cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20130 for (key in S) S_is_set[key] = 1 20131 FS = "" 20132 20133} 20134{ 20135 line = $ 0 20136 nfields = split(line, field, "@") 20137 substed = 0 20138 len = length(field[1]) 20139 for (i = 2; i < nfields; i++) { 20140 key = field[i] 20141 keylen = length(key) 20142 if (S_is_set[key]) { 20143 value = S[key] 20144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20145 len += length(value) + length(field[++i]) 20146 substed = 1 20147 } else 20148 len += 1 + keylen 20149 } 20150 20151 print line 20152} 20153 20154_ACAWK 20155_ACEOF 20156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20157if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20158 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20159else 20160 cat 20161fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20162 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20163_ACEOF 20164 20165# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20166# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20167# trailing colons and then remove the whole line if VPATH becomes empty 20168# (actually we leave an empty line to preserve line numbers). 20169if test "x$srcdir" = x.; then 20170 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20171h 20172s/// 20173s/^/:/ 20174s/[ ]*$/:/ 20175s/:\$(srcdir):/:/g 20176s/:\${srcdir}:/:/g 20177s/:@srcdir@:/:/g 20178s/^:*// 20179s/:*$// 20180x 20181s/\(=[ ]*\).*/\1/ 20182G 20183s/\n// 20184s/^[^=]*=[ ]*$// 20185}' 20186fi 20187 20188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20189fi # test -n "$CONFIG_FILES" 20190 20191# Set up the scripts for CONFIG_HEADERS section. 20192# No need to generate them if there are no CONFIG_HEADERS. 20193# This happens for instance with `./config.status Makefile'. 20194if test -n "$CONFIG_HEADERS"; then 20195cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20196BEGIN { 20197_ACEOF 20198 20199# Transform confdefs.h into an awk script `defines.awk', embedded as 20200# here-document in config.status, that substitutes the proper values into 20201# config.h.in to produce config.h. 20202 20203# Create a delimiter string that does not exist in confdefs.h, to ease 20204# handling of long lines. 20205ac_delim='%!_!# ' 20206for ac_last_try in false false :; do 20207 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20208 if test -z "$ac_tt"; then 20209 break 20210 elif $ac_last_try; then 20211 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20212 else 20213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20214 fi 20215done 20216 20217# For the awk script, D is an array of macro values keyed by name, 20218# likewise P contains macro parameters if any. Preserve backslash 20219# newline sequences. 20220 20221ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20222sed -n ' 20223s/.\{148\}/&'"$ac_delim"'/g 20224t rset 20225:rset 20226s/^[ ]*#[ ]*define[ ][ ]*/ / 20227t def 20228d 20229:def 20230s/\\$// 20231t bsnl 20232s/["\\]/\\&/g 20233s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20234D["\1"]=" \3"/p 20235s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20236d 20237:bsnl 20238s/["\\]/\\&/g 20239s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20240D["\1"]=" \3\\\\\\n"\\/p 20241t cont 20242s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20243t cont 20244d 20245:cont 20246n 20247s/.\{148\}/&'"$ac_delim"'/g 20248t clear 20249:clear 20250s/\\$// 20251t bsnlc 20252s/["\\]/\\&/g; s/^/"/; s/$/"/p 20253d 20254:bsnlc 20255s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20256b cont 20257' <confdefs.h | sed ' 20258s/'"$ac_delim"'/"\\\ 20259"/g' >>$CONFIG_STATUS || ac_write_fail=1 20260 20261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20262 for (key in D) D_is_set[key] = 1 20263 FS = "" 20264} 20265/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20266 line = \$ 0 20267 split(line, arg, " ") 20268 if (arg[1] == "#") { 20269 defundef = arg[2] 20270 mac1 = arg[3] 20271 } else { 20272 defundef = substr(arg[1], 2) 20273 mac1 = arg[2] 20274 } 20275 split(mac1, mac2, "(") #) 20276 macro = mac2[1] 20277 prefix = substr(line, 1, index(line, defundef) - 1) 20278 if (D_is_set[macro]) { 20279 # Preserve the white space surrounding the "#". 20280 print prefix "define", macro P[macro] D[macro] 20281 next 20282 } else { 20283 # Replace #undef with comments. This is necessary, for example, 20284 # in the case of _POSIX_SOURCE, which is predefined and required 20285 # on some systems where configure will not decide to define it. 20286 if (defundef == "undef") { 20287 print "/*", prefix defundef, macro, "*/" 20288 next 20289 } 20290 } 20291} 20292{ print } 20293_ACAWK 20294_ACEOF 20295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20296 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20297fi # test -n "$CONFIG_HEADERS" 20298 20299 20300eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20301shift 20302for ac_tag 20303do 20304 case $ac_tag in 20305 :[FHLC]) ac_mode=$ac_tag; continue;; 20306 esac 20307 case $ac_mode$ac_tag in 20308 :[FHL]*:*);; 20309 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20310 :[FH]-) ac_tag=-:-;; 20311 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20312 esac 20313 ac_save_IFS=$IFS 20314 IFS=: 20315 set x $ac_tag 20316 IFS=$ac_save_IFS 20317 shift 20318 ac_file=$1 20319 shift 20320 20321 case $ac_mode in 20322 :L) ac_source=$1;; 20323 :[FH]) 20324 ac_file_inputs= 20325 for ac_f 20326 do 20327 case $ac_f in 20328 -) ac_f="$ac_tmp/stdin";; 20329 *) # Look for the file first in the build tree, then in the source tree 20330 # (if the path is not absolute). The absolute path cannot be DOS-style, 20331 # because $ac_f cannot contain `:'. 20332 test -f "$ac_f" || 20333 case $ac_f in 20334 [\\/$]*) false;; 20335 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20336 esac || 20337 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20338 esac 20339 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20340 as_fn_append ac_file_inputs " '$ac_f'" 20341 done 20342 20343 # Let's still pretend it is `configure' which instantiates (i.e., don't 20344 # use $as_me), people would be surprised to read: 20345 # /* config.h. Generated by config.status. */ 20346 configure_input='Generated from '` 20347 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20348 `' by configure.' 20349 if test x"$ac_file" != x-; then 20350 configure_input="$ac_file. $configure_input" 20351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20352$as_echo "$as_me: creating $ac_file" >&6;} 20353 fi 20354 # Neutralize special characters interpreted by sed in replacement strings. 20355 case $configure_input in #( 20356 *\&* | *\|* | *\\* ) 20357 ac_sed_conf_input=`$as_echo "$configure_input" | 20358 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20359 *) ac_sed_conf_input=$configure_input;; 20360 esac 20361 20362 case $ac_tag in 20363 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20365 esac 20366 ;; 20367 esac 20368 20369 ac_dir=`$as_dirname -- "$ac_file" || 20370$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20371 X"$ac_file" : 'X\(//\)[^/]' \| \ 20372 X"$ac_file" : 'X\(//\)$' \| \ 20373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20374$as_echo X"$ac_file" | 20375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20376 s//\1/ 20377 q 20378 } 20379 /^X\(\/\/\)[^/].*/{ 20380 s//\1/ 20381 q 20382 } 20383 /^X\(\/\/\)$/{ 20384 s//\1/ 20385 q 20386 } 20387 /^X\(\/\).*/{ 20388 s//\1/ 20389 q 20390 } 20391 s/.*/./; q'` 20392 as_dir="$ac_dir"; as_fn_mkdir_p 20393 ac_builddir=. 20394 20395case "$ac_dir" in 20396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20397*) 20398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20399 # A ".." for each directory in $ac_dir_suffix. 20400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20401 case $ac_top_builddir_sub in 20402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20404 esac ;; 20405esac 20406ac_abs_top_builddir=$ac_pwd 20407ac_abs_builddir=$ac_pwd$ac_dir_suffix 20408# for backward compatibility: 20409ac_top_builddir=$ac_top_build_prefix 20410 20411case $srcdir in 20412 .) # We are building in place. 20413 ac_srcdir=. 20414 ac_top_srcdir=$ac_top_builddir_sub 20415 ac_abs_top_srcdir=$ac_pwd ;; 20416 [\\/]* | ?:[\\/]* ) # Absolute name. 20417 ac_srcdir=$srcdir$ac_dir_suffix; 20418 ac_top_srcdir=$srcdir 20419 ac_abs_top_srcdir=$srcdir ;; 20420 *) # Relative name. 20421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20422 ac_top_srcdir=$ac_top_build_prefix$srcdir 20423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20424esac 20425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20426 20427 20428 case $ac_mode in 20429 :F) 20430 # 20431 # CONFIG_FILE 20432 # 20433 20434 case $INSTALL in 20435 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20436 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20437 esac 20438 ac_MKDIR_P=$MKDIR_P 20439 case $MKDIR_P in 20440 [\\/$]* | ?:[\\/]* ) ;; 20441 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20442 esac 20443_ACEOF 20444 20445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20446# If the template does not know about datarootdir, expand it. 20447# FIXME: This hack should be removed a few years after 2.60. 20448ac_datarootdir_hack=; ac_datarootdir_seen= 20449ac_sed_dataroot=' 20450/datarootdir/ { 20451 p 20452 q 20453} 20454/@datadir@/p 20455/@docdir@/p 20456/@infodir@/p 20457/@localedir@/p 20458/@mandir@/p' 20459case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20460*datarootdir*) ac_datarootdir_seen=yes;; 20461*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20463$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20464_ACEOF 20465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20466 ac_datarootdir_hack=' 20467 s&@datadir@&$datadir&g 20468 s&@docdir@&$docdir&g 20469 s&@infodir@&$infodir&g 20470 s&@localedir@&$localedir&g 20471 s&@mandir@&$mandir&g 20472 s&\\\${datarootdir}&$datarootdir&g' ;; 20473esac 20474_ACEOF 20475 20476# Neutralize VPATH when `$srcdir' = `.'. 20477# Shell code in configure.ac might set extrasub. 20478# FIXME: do we really want to maintain this feature? 20479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20480ac_sed_extra="$ac_vpsub 20481$extrasub 20482_ACEOF 20483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20484:t 20485/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20486s|@configure_input@|$ac_sed_conf_input|;t t 20487s&@top_builddir@&$ac_top_builddir_sub&;t t 20488s&@top_build_prefix@&$ac_top_build_prefix&;t t 20489s&@srcdir@&$ac_srcdir&;t t 20490s&@abs_srcdir@&$ac_abs_srcdir&;t t 20491s&@top_srcdir@&$ac_top_srcdir&;t t 20492s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20493s&@builddir@&$ac_builddir&;t t 20494s&@abs_builddir@&$ac_abs_builddir&;t t 20495s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20496s&@INSTALL@&$ac_INSTALL&;t t 20497s&@MKDIR_P@&$ac_MKDIR_P&;t t 20498$ac_datarootdir_hack 20499" 20500eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20501 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20502 20503test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20504 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20505 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20506 "$ac_tmp/out"`; test -z "$ac_out"; } && 20507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20508which seems to be undefined. Please make sure it is defined" >&5 20509$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20510which seems to be undefined. Please make sure it is defined" >&2;} 20511 20512 rm -f "$ac_tmp/stdin" 20513 case $ac_file in 20514 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20515 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20516 esac \ 20517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20518 ;; 20519 :H) 20520 # 20521 # CONFIG_HEADER 20522 # 20523 if test x"$ac_file" != x-; then 20524 { 20525 $as_echo "/* $configure_input */" \ 20526 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20527 } >"$ac_tmp/config.h" \ 20528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20529 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20530 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20531$as_echo "$as_me: $ac_file is unchanged" >&6;} 20532 else 20533 rm -f "$ac_file" 20534 mv "$ac_tmp/config.h" "$ac_file" \ 20535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20536 fi 20537 else 20538 $as_echo "/* $configure_input */" \ 20539 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20540 || as_fn_error $? "could not create -" "$LINENO" 5 20541 fi 20542# Compute "$ac_file"'s index in $config_headers. 20543_am_arg="$ac_file" 20544_am_stamp_count=1 20545for _am_header in $config_headers :; do 20546 case $_am_header in 20547 $_am_arg | $_am_arg:* ) 20548 break ;; 20549 * ) 20550 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20551 esac 20552done 20553echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20554$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20555 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20556 X"$_am_arg" : 'X\(//\)$' \| \ 20557 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20558$as_echo X"$_am_arg" | 20559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20560 s//\1/ 20561 q 20562 } 20563 /^X\(\/\/\)[^/].*/{ 20564 s//\1/ 20565 q 20566 } 20567 /^X\(\/\/\)$/{ 20568 s//\1/ 20569 q 20570 } 20571 /^X\(\/\).*/{ 20572 s//\1/ 20573 q 20574 } 20575 s/.*/./; q'`/stamp-h$_am_stamp_count 20576 ;; 20577 20578 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20579$as_echo "$as_me: executing $ac_file commands" >&6;} 20580 ;; 20581 esac 20582 20583 20584 case $ac_file$ac_mode in 20585 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20586 # Older Autoconf quotes --file arguments for eval, but not when files 20587 # are listed without --file. Let's play safe and only enable the eval 20588 # if we detect the quoting. 20589 case $CONFIG_FILES in 20590 *\'*) eval set x "$CONFIG_FILES" ;; 20591 *) set x $CONFIG_FILES ;; 20592 esac 20593 shift 20594 for mf 20595 do 20596 # Strip MF so we end up with the name of the file. 20597 mf=`echo "$mf" | sed -e 's/:.*$//'` 20598 # Check whether this is an Automake generated Makefile or not. 20599 # We used to match only the files named 'Makefile.in', but 20600 # some people rename them; so instead we look at the file content. 20601 # Grep'ing the first line is not enough: some people post-process 20602 # each Makefile.in and add a new line on top of each file to say so. 20603 # Grep'ing the whole file is not good either: AIX grep has a line 20604 # limit of 2048, but all sed's we know have understand at least 4000. 20605 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20606 dirpart=`$as_dirname -- "$mf" || 20607$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20608 X"$mf" : 'X\(//\)[^/]' \| \ 20609 X"$mf" : 'X\(//\)$' \| \ 20610 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20611$as_echo X"$mf" | 20612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20613 s//\1/ 20614 q 20615 } 20616 /^X\(\/\/\)[^/].*/{ 20617 s//\1/ 20618 q 20619 } 20620 /^X\(\/\/\)$/{ 20621 s//\1/ 20622 q 20623 } 20624 /^X\(\/\).*/{ 20625 s//\1/ 20626 q 20627 } 20628 s/.*/./; q'` 20629 else 20630 continue 20631 fi 20632 # Extract the definition of DEPDIR, am__include, and am__quote 20633 # from the Makefile without running 'make'. 20634 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20635 test -z "$DEPDIR" && continue 20636 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20637 test -z "$am__include" && continue 20638 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20639 # Find all dependency output files, they are included files with 20640 # $(DEPDIR) in their names. We invoke sed twice because it is the 20641 # simplest approach to changing $(DEPDIR) to its actual value in the 20642 # expansion. 20643 for file in `sed -n " 20644 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20645 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20646 # Make sure the directory exists. 20647 test -f "$dirpart/$file" && continue 20648 fdir=`$as_dirname -- "$file" || 20649$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20650 X"$file" : 'X\(//\)[^/]' \| \ 20651 X"$file" : 'X\(//\)$' \| \ 20652 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20653$as_echo X"$file" | 20654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20655 s//\1/ 20656 q 20657 } 20658 /^X\(\/\/\)[^/].*/{ 20659 s//\1/ 20660 q 20661 } 20662 /^X\(\/\/\)$/{ 20663 s//\1/ 20664 q 20665 } 20666 /^X\(\/\).*/{ 20667 s//\1/ 20668 q 20669 } 20670 s/.*/./; q'` 20671 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20672 # echo "creating $dirpart/$file" 20673 echo '# dummy' > "$dirpart/$file" 20674 done 20675 done 20676} 20677 ;; 20678 "libtool":C) 20679 20680 # See if we are running on zsh, and set the options that allow our 20681 # commands through without removal of \ escapes. 20682 if test -n "${ZSH_VERSION+set}"; then 20683 setopt NO_GLOB_SUBST 20684 fi 20685 20686 cfgfile=${ofile}T 20687 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20688 $RM "$cfgfile" 20689 20690 cat <<_LT_EOF >> "$cfgfile" 20691#! $SHELL 20692# Generated automatically by $as_me ($PACKAGE) $VERSION 20693# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20694# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20695 20696# Provide generalized library-building support services. 20697# Written by Gordon Matzigkeit, 1996 20698 20699# Copyright (C) 2014 Free Software Foundation, Inc. 20700# This is free software; see the source for copying conditions. There is NO 20701# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20702 20703# GNU Libtool is free software; you can redistribute it and/or modify 20704# it under the terms of the GNU General Public License as published by 20705# the Free Software Foundation; either version 2 of of the License, or 20706# (at your option) any later version. 20707# 20708# As a special exception to the GNU General Public License, if you 20709# distribute this file as part of a program or library that is built 20710# using GNU Libtool, you may include this file under the same 20711# distribution terms that you use for the rest of that program. 20712# 20713# GNU Libtool is distributed in the hope that it will be useful, but 20714# WITHOUT ANY WARRANTY; without even the implied warranty of 20715# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20716# GNU General Public License for more details. 20717# 20718# You should have received a copy of the GNU General Public License 20719# along with this program. If not, see <http://www.gnu.org/licenses/>. 20720 20721 20722# The names of the tagged configurations supported by this script. 20723available_tags='' 20724 20725# Configured defaults for sys_lib_dlsearch_path munging. 20726: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20727 20728# ### BEGIN LIBTOOL CONFIG 20729 20730# Whether or not to build static libraries. 20731build_old_libs=$enable_static 20732 20733# Which release of libtool.m4 was used? 20734macro_version=$macro_version 20735macro_revision=$macro_revision 20736 20737# Whether or not to build shared libraries. 20738build_libtool_libs=$enable_shared 20739 20740# What type of objects to build. 20741pic_mode=$pic_mode 20742 20743# Whether or not to optimize for fast installation. 20744fast_install=$enable_fast_install 20745 20746# Shared archive member basename,for filename based shared library versioning on AIX. 20747shared_archive_member_spec=$shared_archive_member_spec 20748 20749# Shell to use when invoking shell scripts. 20750SHELL=$lt_SHELL 20751 20752# An echo program that protects backslashes. 20753ECHO=$lt_ECHO 20754 20755# The PATH separator for the build system. 20756PATH_SEPARATOR=$lt_PATH_SEPARATOR 20757 20758# The host system. 20759host_alias=$host_alias 20760host=$host 20761host_os=$host_os 20762 20763# The build system. 20764build_alias=$build_alias 20765build=$build 20766build_os=$build_os 20767 20768# A sed program that does not truncate output. 20769SED=$lt_SED 20770 20771# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20772Xsed="\$SED -e 1s/^X//" 20773 20774# A grep program that handles long lines. 20775GREP=$lt_GREP 20776 20777# An ERE matcher. 20778EGREP=$lt_EGREP 20779 20780# A literal string matcher. 20781FGREP=$lt_FGREP 20782 20783# A BSD- or MS-compatible name lister. 20784NM=$lt_NM 20785 20786# Whether we need soft or hard links. 20787LN_S=$lt_LN_S 20788 20789# What is the maximum length of a command? 20790max_cmd_len=$max_cmd_len 20791 20792# Object file suffix (normally "o"). 20793objext=$ac_objext 20794 20795# Executable file suffix (normally ""). 20796exeext=$exeext 20797 20798# whether the shell understands "unset". 20799lt_unset=$lt_unset 20800 20801# turn spaces into newlines. 20802SP2NL=$lt_lt_SP2NL 20803 20804# turn newlines into spaces. 20805NL2SP=$lt_lt_NL2SP 20806 20807# convert \$build file names to \$host format. 20808to_host_file_cmd=$lt_cv_to_host_file_cmd 20809 20810# convert \$build files to toolchain format. 20811to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20812 20813# An object symbol dumper. 20814OBJDUMP=$lt_OBJDUMP 20815 20816# Method to check whether dependent libraries are shared objects. 20817deplibs_check_method=$lt_deplibs_check_method 20818 20819# Command to use when deplibs_check_method = "file_magic". 20820file_magic_cmd=$lt_file_magic_cmd 20821 20822# How to find potential files when deplibs_check_method = "file_magic". 20823file_magic_glob=$lt_file_magic_glob 20824 20825# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20826want_nocaseglob=$lt_want_nocaseglob 20827 20828# DLL creation program. 20829DLLTOOL=$lt_DLLTOOL 20830 20831# Command to associate shared and link libraries. 20832sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20833 20834# The archiver. 20835AR=$lt_AR 20836 20837# Flags to create an archive. 20838AR_FLAGS=$lt_AR_FLAGS 20839 20840# How to feed a file listing to the archiver. 20841archiver_list_spec=$lt_archiver_list_spec 20842 20843# A symbol stripping program. 20844STRIP=$lt_STRIP 20845 20846# Commands used to install an old-style archive. 20847RANLIB=$lt_RANLIB 20848old_postinstall_cmds=$lt_old_postinstall_cmds 20849old_postuninstall_cmds=$lt_old_postuninstall_cmds 20850 20851# Whether to use a lock for old archive extraction. 20852lock_old_archive_extraction=$lock_old_archive_extraction 20853 20854# A C compiler. 20855LTCC=$lt_CC 20856 20857# LTCC compiler flags. 20858LTCFLAGS=$lt_CFLAGS 20859 20860# Take the output of nm and produce a listing of raw symbols and C names. 20861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20862 20863# Transform the output of nm in a proper C declaration. 20864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20865 20866# Transform the output of nm into a list of symbols to manually relocate. 20867global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20868 20869# Transform the output of nm in a C name address pair. 20870global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20871 20872# Transform the output of nm in a C name address pair when lib prefix is needed. 20873global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20874 20875# The name lister interface. 20876nm_interface=$lt_lt_cv_nm_interface 20877 20878# Specify filename containing input files for \$NM. 20879nm_file_list_spec=$lt_nm_file_list_spec 20880 20881# The root where to search for dependent libraries,and where our libraries should be installed. 20882lt_sysroot=$lt_sysroot 20883 20884# Command to truncate a binary pipe. 20885lt_truncate_bin=$lt_lt_cv_truncate_bin 20886 20887# The name of the directory that contains temporary libtool files. 20888objdir=$objdir 20889 20890# Used to examine libraries when file_magic_cmd begins with "file". 20891MAGIC_CMD=$MAGIC_CMD 20892 20893# Must we lock files when doing compilation? 20894need_locks=$lt_need_locks 20895 20896# Manifest tool. 20897MANIFEST_TOOL=$lt_MANIFEST_TOOL 20898 20899# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20900DSYMUTIL=$lt_DSYMUTIL 20901 20902# Tool to change global to local symbols on Mac OS X. 20903NMEDIT=$lt_NMEDIT 20904 20905# Tool to manipulate fat objects and archives on Mac OS X. 20906LIPO=$lt_LIPO 20907 20908# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20909OTOOL=$lt_OTOOL 20910 20911# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20912OTOOL64=$lt_OTOOL64 20913 20914# Old archive suffix (normally "a"). 20915libext=$libext 20916 20917# Shared library suffix (normally ".so"). 20918shrext_cmds=$lt_shrext_cmds 20919 20920# The commands to extract the exported symbol list from a shared archive. 20921extract_expsyms_cmds=$lt_extract_expsyms_cmds 20922 20923# Variables whose values should be saved in libtool wrapper scripts and 20924# restored at link time. 20925variables_saved_for_relink=$lt_variables_saved_for_relink 20926 20927# Do we need the "lib" prefix for modules? 20928need_lib_prefix=$need_lib_prefix 20929 20930# Do we need a version for libraries? 20931need_version=$need_version 20932 20933# Library versioning type. 20934version_type=$version_type 20935 20936# Shared library runtime path variable. 20937runpath_var=$runpath_var 20938 20939# Shared library path variable. 20940shlibpath_var=$shlibpath_var 20941 20942# Is shlibpath searched before the hard-coded library search path? 20943shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20944 20945# Format of library name prefix. 20946libname_spec=$lt_libname_spec 20947 20948# List of archive names. First name is the real one, the rest are links. 20949# The last name is the one that the linker finds with -lNAME 20950library_names_spec=$lt_library_names_spec 20951 20952# The coded name of the library, if different from the real name. 20953soname_spec=$lt_soname_spec 20954 20955# Permission mode override for installation of shared libraries. 20956install_override_mode=$lt_install_override_mode 20957 20958# Command to use after installation of a shared archive. 20959postinstall_cmds=$lt_postinstall_cmds 20960 20961# Command to use after uninstallation of a shared archive. 20962postuninstall_cmds=$lt_postuninstall_cmds 20963 20964# Commands used to finish a libtool library installation in a directory. 20965finish_cmds=$lt_finish_cmds 20966 20967# As "finish_cmds", except a single script fragment to be evaled but 20968# not shown. 20969finish_eval=$lt_finish_eval 20970 20971# Whether we should hardcode library paths into libraries. 20972hardcode_into_libs=$hardcode_into_libs 20973 20974# Compile-time system search path for libraries. 20975sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20976 20977# Detected run-time system search path for libraries. 20978sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20979 20980# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20981configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20982 20983# Whether dlopen is supported. 20984dlopen_support=$enable_dlopen 20985 20986# Whether dlopen of programs is supported. 20987dlopen_self=$enable_dlopen_self 20988 20989# Whether dlopen of statically linked programs is supported. 20990dlopen_self_static=$enable_dlopen_self_static 20991 20992# Commands to strip libraries. 20993old_striplib=$lt_old_striplib 20994striplib=$lt_striplib 20995 20996 20997# The linker used to build libraries. 20998LD=$lt_LD 20999 21000# How to create reloadable object files. 21001reload_flag=$lt_reload_flag 21002reload_cmds=$lt_reload_cmds 21003 21004# Commands used to build an old-style archive. 21005old_archive_cmds=$lt_old_archive_cmds 21006 21007# A language specific compiler. 21008CC=$lt_compiler 21009 21010# Is the compiler the GNU compiler? 21011with_gcc=$GCC 21012 21013# Compiler flag to turn off builtin functions. 21014no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21015 21016# Additional compiler flags for building library objects. 21017pic_flag=$lt_lt_prog_compiler_pic 21018 21019# How to pass a linker flag through the compiler. 21020wl=$lt_lt_prog_compiler_wl 21021 21022# Compiler flag to prevent dynamic linking. 21023link_static_flag=$lt_lt_prog_compiler_static 21024 21025# Does compiler simultaneously support -c and -o options? 21026compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21027 21028# Whether or not to add -lc for building shared libraries. 21029build_libtool_need_lc=$archive_cmds_need_lc 21030 21031# Whether or not to disallow shared libs when runtime libs are static. 21032allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21033 21034# Compiler flag to allow reflexive dlopens. 21035export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21036 21037# Compiler flag to generate shared objects directly from archives. 21038whole_archive_flag_spec=$lt_whole_archive_flag_spec 21039 21040# Whether the compiler copes with passing no objects directly. 21041compiler_needs_object=$lt_compiler_needs_object 21042 21043# Create an old-style archive from a shared archive. 21044old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21045 21046# Create a temporary old-style archive to link instead of a shared archive. 21047old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21048 21049# Commands used to build a shared archive. 21050archive_cmds=$lt_archive_cmds 21051archive_expsym_cmds=$lt_archive_expsym_cmds 21052 21053# Commands used to build a loadable module if different from building 21054# a shared archive. 21055module_cmds=$lt_module_cmds 21056module_expsym_cmds=$lt_module_expsym_cmds 21057 21058# Whether we are building with GNU ld or not. 21059with_gnu_ld=$lt_with_gnu_ld 21060 21061# Flag that allows shared libraries with undefined symbols to be built. 21062allow_undefined_flag=$lt_allow_undefined_flag 21063 21064# Flag that enforces no undefined symbols. 21065no_undefined_flag=$lt_no_undefined_flag 21066 21067# Flag to hardcode \$libdir into a binary during linking. 21068# This must work even if \$libdir does not exist 21069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21070 21071# Whether we need a single "-rpath" flag with a separated argument. 21072hardcode_libdir_separator=$lt_hardcode_libdir_separator 21073 21074# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21075# DIR into the resulting binary. 21076hardcode_direct=$hardcode_direct 21077 21078# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21079# DIR into the resulting binary and the resulting library dependency is 21080# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21081# library is relocated. 21082hardcode_direct_absolute=$hardcode_direct_absolute 21083 21084# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21085# into the resulting binary. 21086hardcode_minus_L=$hardcode_minus_L 21087 21088# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21089# into the resulting binary. 21090hardcode_shlibpath_var=$hardcode_shlibpath_var 21091 21092# Set to "yes" if building a shared library automatically hardcodes DIR 21093# into the library and all subsequent libraries and executables linked 21094# against it. 21095hardcode_automatic=$hardcode_automatic 21096 21097# Set to yes if linker adds runtime paths of dependent libraries 21098# to runtime path list. 21099inherit_rpath=$inherit_rpath 21100 21101# Whether libtool must link a program against all its dependency libraries. 21102link_all_deplibs=$link_all_deplibs 21103 21104# Set to "yes" if exported symbols are required. 21105always_export_symbols=$always_export_symbols 21106 21107# The commands to list exported symbols. 21108export_symbols_cmds=$lt_export_symbols_cmds 21109 21110# Symbols that should not be listed in the preloaded symbols. 21111exclude_expsyms=$lt_exclude_expsyms 21112 21113# Symbols that must always be exported. 21114include_expsyms=$lt_include_expsyms 21115 21116# Commands necessary for linking programs (against libraries) with templates. 21117prelink_cmds=$lt_prelink_cmds 21118 21119# Commands necessary for finishing linking programs. 21120postlink_cmds=$lt_postlink_cmds 21121 21122# Specify filename containing input files. 21123file_list_spec=$lt_file_list_spec 21124 21125# How to hardcode a shared library path into an executable. 21126hardcode_action=$hardcode_action 21127 21128# ### END LIBTOOL CONFIG 21129 21130_LT_EOF 21131 21132 cat <<'_LT_EOF' >> "$cfgfile" 21133 21134# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21135 21136# func_munge_path_list VARIABLE PATH 21137# ----------------------------------- 21138# VARIABLE is name of variable containing _space_ separated list of 21139# directories to be munged by the contents of PATH, which is string 21140# having a format: 21141# "DIR[:DIR]:" 21142# string "DIR[ DIR]" will be prepended to VARIABLE 21143# ":DIR[:DIR]" 21144# string "DIR[ DIR]" will be appended to VARIABLE 21145# "DIRP[:DIRP]::[DIRA:]DIRA" 21146# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21147# "DIRA[ DIRA]" will be appended to VARIABLE 21148# "DIR[:DIR]" 21149# VARIABLE will be replaced by "DIR[ DIR]" 21150func_munge_path_list () 21151{ 21152 case x$2 in 21153 x) 21154 ;; 21155 *:) 21156 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21157 ;; 21158 x:*) 21159 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21160 ;; 21161 *::*) 21162 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21163 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21164 ;; 21165 *) 21166 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21167 ;; 21168 esac 21169} 21170 21171 21172# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21173func_cc_basename () 21174{ 21175 for cc_temp in $*""; do 21176 case $cc_temp in 21177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21179 \-*) ;; 21180 *) break;; 21181 esac 21182 done 21183 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21184} 21185 21186 21187# ### END FUNCTIONS SHARED WITH CONFIGURE 21188 21189_LT_EOF 21190 21191 case $host_os in 21192 aix3*) 21193 cat <<\_LT_EOF >> "$cfgfile" 21194# AIX sometimes has problems with the GCC collect2 program. For some 21195# reason, if we set the COLLECT_NAMES environment variable, the problems 21196# vanish in a puff of smoke. 21197if test set != "${COLLECT_NAMES+set}"; then 21198 COLLECT_NAMES= 21199 export COLLECT_NAMES 21200fi 21201_LT_EOF 21202 ;; 21203 esac 21204 21205 21206ltmain=$ac_aux_dir/ltmain.sh 21207 21208 21209 # We use sed instead of cat because bash on DJGPP gets confused if 21210 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21211 # text mode, it properly converts lines to CR/LF. This bash problem 21212 # is reportedly fixed, but why not run on old versions too? 21213 sed '$q' "$ltmain" >> "$cfgfile" \ 21214 || (rm -f "$cfgfile"; exit 1) 21215 21216 mv -f "$cfgfile" "$ofile" || 21217 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21218 chmod +x "$ofile" 21219 21220 ;; 21221 21222 esac 21223done # for ac_tag 21224 21225 21226as_fn_exit 0 21227_ACEOF 21228ac_clean_files=$ac_clean_files_save 21229 21230test $ac_write_fail = 0 || 21231 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21232 21233 21234# configure is writing to config.log, and then calls config.status. 21235# config.status does its own redirection, appending to config.log. 21236# Unfortunately, on DOS this fails, as config.log is still kept open 21237# by configure, so config.status won't be able to write to it; its 21238# output is simply discarded. So we exec the FD to /dev/null, 21239# effectively closing config.log, so it can be properly (re)opened and 21240# appended to by config.status. When coming back to configure, we 21241# need to make the FD available again. 21242if test "$no_create" != yes; then 21243 ac_cs_success=: 21244 ac_config_status_args= 21245 test "$silent" = yes && 21246 ac_config_status_args="$ac_config_status_args --quiet" 21247 exec 5>/dev/null 21248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21249 exec 5>>config.log 21250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21251 # would make configure fail if this is the last instruction. 21252 $ac_cs_success || as_fn_exit 1 21253fi 21254if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21256$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21257fi 21258 21259