configure revision 16ee1e9a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-nouveau 1.0.12. 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-nouveau' 593PACKAGE_TARNAME='xf86-video-nouveau' 594PACKAGE_VERSION='1.0.12' 595PACKAGE_STRING='xf86-video-nouveau 1.0.12' 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 642LIBUDEV_FALSE 643LIBUDEV_TRUE 644LIBUDEV_LIBS 645LIBUDEV_CFLAGS 646PCIACCESS_LIBS 647PCIACCESS_CFLAGS 648HAVE_XEXTPROTO_71_FALSE 649HAVE_XEXTPROTO_71_TRUE 650XEXT_LIBS 651XEXT_CFLAGS 652XORG_LIBS 653XORG_CFLAGS 654LIBDRM_NOUVEAU_LIBS 655LIBDRM_NOUVEAU_CFLAGS 656LIBDRM_LIBS 657LIBDRM_CFLAGS 658LT_SYS_LIBRARY_PATH 659OTOOL64 660OTOOL 661LIPO 662NMEDIT 663DSYMUTIL 664MANIFEST_TOOL 665RANLIB 666ac_ct_AR 667AR 668DLLTOOL 669OBJDUMP 670LN_S 671NM 672ac_ct_DUMPBIN 673DUMPBIN 674LD 675FGREP 676LIBTOOL 677MAN_SUBSTS 678XORG_MAN_PAGE 679ADMIN_MAN_DIR 680DRIVER_MAN_DIR 681MISC_MAN_DIR 682FILE_MAN_DIR 683LIB_MAN_DIR 684APP_MAN_DIR 685ADMIN_MAN_SUFFIX 686DRIVER_MAN_SUFFIX 687MISC_MAN_SUFFIX 688FILE_MAN_SUFFIX 689LIB_MAN_SUFFIX 690APP_MAN_SUFFIX 691SED 692host_os 693host_vendor 694host_cpu 695host 696build_os 697build_vendor 698build_cpu 699build 700INSTALL_CMD 701PKG_CONFIG_LIBDIR 702PKG_CONFIG_PATH 703PKG_CONFIG 704CHANGELOG_CMD 705STRICT_CFLAGS 706CWARNFLAGS 707BASE_CFLAGS 708EGREP 709GREP 710CPP 711am__fastdepCC_FALSE 712am__fastdepCC_TRUE 713CCDEPMODE 714am__nodep 715AMDEPBACKSLASH 716AMDEP_FALSE 717AMDEP_TRUE 718am__quote 719am__include 720DEPDIR 721OBJEXT 722EXEEXT 723ac_ct_CC 724CPPFLAGS 725LDFLAGS 726CFLAGS 727CC 728AM_BACKSLASH 729AM_DEFAULT_VERBOSITY 730AM_DEFAULT_V 731AM_V 732am__untar 733am__tar 734AMTAR 735am__leading_dot 736SET_MAKE 737AWK 738mkdir_p 739MKDIR_P 740INSTALL_STRIP_PROGRAM 741STRIP 742install_sh 743MAKEINFO 744AUTOHEADER 745AUTOMAKE 746AUTOCONF 747ACLOCAL 748VERSION 749PACKAGE 750CYGPATH_W 751am__isrc 752INSTALL_DATA 753INSTALL_SCRIPT 754INSTALL_PROGRAM 755target_alias 756host_alias 757build_alias 758LIBS 759ECHO_T 760ECHO_N 761ECHO_C 762DEFS 763mandir 764localedir 765libdir 766psdir 767pdfdir 768dvidir 769htmldir 770infodir 771docdir 772oldincludedir 773includedir 774localstatedir 775sharedstatedir 776sysconfdir 777datadir 778datarootdir 779libexecdir 780sbindir 781bindir 782program_transform_name 783prefix 784exec_prefix 785PACKAGE_URL 786PACKAGE_BUGREPORT 787PACKAGE_STRING 788PACKAGE_VERSION 789PACKAGE_TARNAME 790PACKAGE_NAME 791PATH_SEPARATOR 792SHELL' 793ac_subst_files='' 794ac_user_opts=' 795enable_option_checking 796enable_silent_rules 797enable_dependency_tracking 798enable_selective_werror 799enable_strict_compilation 800enable_static 801enable_shared 802with_pic 803enable_fast_install 804with_aix_soname 805with_gnu_ld 806with_sysroot 807enable_libtool_lock 808with_xorg_module_dir 809' 810 ac_precious_vars='build_alias 811host_alias 812target_alias 813CC 814CFLAGS 815LDFLAGS 816LIBS 817CPPFLAGS 818CPP 819PKG_CONFIG 820PKG_CONFIG_PATH 821PKG_CONFIG_LIBDIR 822LT_SYS_LIBRARY_PATH 823LIBDRM_CFLAGS 824LIBDRM_LIBS 825LIBDRM_NOUVEAU_CFLAGS 826LIBDRM_NOUVEAU_LIBS 827XORG_CFLAGS 828XORG_LIBS 829XEXT_CFLAGS 830XEXT_LIBS 831PCIACCESS_CFLAGS 832PCIACCESS_LIBS 833LIBUDEV_CFLAGS 834LIBUDEV_LIBS' 835 836 837# Initialize some variables set by options. 838ac_init_help= 839ac_init_version=false 840ac_unrecognized_opts= 841ac_unrecognized_sep= 842# The variables have the same names as the options, with 843# dashes changed to underlines. 844cache_file=/dev/null 845exec_prefix=NONE 846no_create= 847no_recursion= 848prefix=NONE 849program_prefix=NONE 850program_suffix=NONE 851program_transform_name=s,x,x, 852silent= 853site= 854srcdir= 855verbose= 856x_includes=NONE 857x_libraries=NONE 858 859# Installation directory options. 860# These are left unexpanded so users can "make install exec_prefix=/foo" 861# and all the variables that are supposed to be based on exec_prefix 862# by default will actually change. 863# Use braces instead of parens because sh, perl, etc. also accept them. 864# (The list follows the same order as the GNU Coding Standards.) 865bindir='${exec_prefix}/bin' 866sbindir='${exec_prefix}/sbin' 867libexecdir='${exec_prefix}/libexec' 868datarootdir='${prefix}/share' 869datadir='${datarootdir}' 870sysconfdir='${prefix}/etc' 871sharedstatedir='${prefix}/com' 872localstatedir='${prefix}/var' 873includedir='${prefix}/include' 874oldincludedir='/usr/include' 875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 876infodir='${datarootdir}/info' 877htmldir='${docdir}' 878dvidir='${docdir}' 879pdfdir='${docdir}' 880psdir='${docdir}' 881libdir='${exec_prefix}/lib' 882localedir='${datarootdir}/locale' 883mandir='${datarootdir}/man' 884 885ac_prev= 886ac_dashdash= 887for ac_option 888do 889 # If the previous option needs an argument, assign it. 890 if test -n "$ac_prev"; then 891 eval $ac_prev=\$ac_option 892 ac_prev= 893 continue 894 fi 895 896 case $ac_option in 897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 898 *=) ac_optarg= ;; 899 *) ac_optarg=yes ;; 900 esac 901 902 # Accept the important Cygnus configure options, so we can diagnose typos. 903 904 case $ac_dashdash$ac_option in 905 --) 906 ac_dashdash=yes ;; 907 908 -bindir | --bindir | --bindi | --bind | --bin | --bi) 909 ac_prev=bindir ;; 910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 911 bindir=$ac_optarg ;; 912 913 -build | --build | --buil | --bui | --bu) 914 ac_prev=build_alias ;; 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 916 build_alias=$ac_optarg ;; 917 918 -cache-file | --cache-file | --cache-fil | --cache-fi \ 919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 920 ac_prev=cache_file ;; 921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 923 cache_file=$ac_optarg ;; 924 925 --config-cache | -C) 926 cache_file=config.cache ;; 927 928 -datadir | --datadir | --datadi | --datad) 929 ac_prev=datadir ;; 930 -datadir=* | --datadir=* | --datadi=* | --datad=*) 931 datadir=$ac_optarg ;; 932 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 934 | --dataroo | --dataro | --datar) 935 ac_prev=datarootdir ;; 936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 938 datarootdir=$ac_optarg ;; 939 940 -disable-* | --disable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=no ;; 955 956 -docdir | --docdir | --docdi | --doc | --do) 957 ac_prev=docdir ;; 958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 959 docdir=$ac_optarg ;; 960 961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 962 ac_prev=dvidir ;; 963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 964 dvidir=$ac_optarg ;; 965 966 -enable-* | --enable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: $ac_useropt" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=\$ac_optarg ;; 981 982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 984 | --exec | --exe | --ex) 985 ac_prev=exec_prefix ;; 986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 988 | --exec=* | --exe=* | --ex=*) 989 exec_prefix=$ac_optarg ;; 990 991 -gas | --gas | --ga | --g) 992 # Obsolete; use --with-gas. 993 with_gas=yes ;; 994 995 -help | --help | --hel | --he | -h) 996 ac_init_help=long ;; 997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 998 ac_init_help=recursive ;; 999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1000 ac_init_help=short ;; 1001 1002 -host | --host | --hos | --ho) 1003 ac_prev=host_alias ;; 1004 -host=* | --host=* | --hos=* | --ho=*) 1005 host_alias=$ac_optarg ;; 1006 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1008 ac_prev=htmldir ;; 1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1010 | --ht=*) 1011 htmldir=$ac_optarg ;; 1012 1013 -includedir | --includedir | --includedi | --included | --include \ 1014 | --includ | --inclu | --incl | --inc) 1015 ac_prev=includedir ;; 1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1017 | --includ=* | --inclu=* | --incl=* | --inc=*) 1018 includedir=$ac_optarg ;; 1019 1020 -infodir | --infodir | --infodi | --infod | --info | --inf) 1021 ac_prev=infodir ;; 1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1023 infodir=$ac_optarg ;; 1024 1025 -libdir | --libdir | --libdi | --libd) 1026 ac_prev=libdir ;; 1027 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1028 libdir=$ac_optarg ;; 1029 1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1031 | --libexe | --libex | --libe) 1032 ac_prev=libexecdir ;; 1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1034 | --libexe=* | --libex=* | --libe=*) 1035 libexecdir=$ac_optarg ;; 1036 1037 -localedir | --localedir | --localedi | --localed | --locale) 1038 ac_prev=localedir ;; 1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1040 localedir=$ac_optarg ;; 1041 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1043 | --localstate | --localstat | --localsta | --localst | --locals) 1044 ac_prev=localstatedir ;; 1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1047 localstatedir=$ac_optarg ;; 1048 1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1050 ac_prev=mandir ;; 1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1052 mandir=$ac_optarg ;; 1053 1054 -nfp | --nfp | --nf) 1055 # Obsolete; use --without-fp. 1056 with_fp=no ;; 1057 1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1059 | --no-cr | --no-c | -n) 1060 no_create=yes ;; 1061 1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1064 no_recursion=yes ;; 1065 1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1068 | --oldin | --oldi | --old | --ol | --o) 1069 ac_prev=oldincludedir ;; 1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1073 oldincludedir=$ac_optarg ;; 1074 1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1076 ac_prev=prefix ;; 1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1078 prefix=$ac_optarg ;; 1079 1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1081 | --program-pre | --program-pr | --program-p) 1082 ac_prev=program_prefix ;; 1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1085 program_prefix=$ac_optarg ;; 1086 1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1088 | --program-suf | --program-su | --program-s) 1089 ac_prev=program_suffix ;; 1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1092 program_suffix=$ac_optarg ;; 1093 1094 -program-transform-name | --program-transform-name \ 1095 | --program-transform-nam | --program-transform-na \ 1096 | --program-transform-n | --program-transform- \ 1097 | --program-transform | --program-transfor \ 1098 | --program-transfo | --program-transf \ 1099 | --program-trans | --program-tran \ 1100 | --progr-tra | --program-tr | --program-t) 1101 ac_prev=program_transform_name ;; 1102 -program-transform-name=* | --program-transform-name=* \ 1103 | --program-transform-nam=* | --program-transform-na=* \ 1104 | --program-transform-n=* | --program-transform-=* \ 1105 | --program-transform=* | --program-transfor=* \ 1106 | --program-transfo=* | --program-transf=* \ 1107 | --program-trans=* | --program-tran=* \ 1108 | --progr-tra=* | --program-tr=* | --program-t=*) 1109 program_transform_name=$ac_optarg ;; 1110 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1112 ac_prev=pdfdir ;; 1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1114 pdfdir=$ac_optarg ;; 1115 1116 -psdir | --psdir | --psdi | --psd | --ps) 1117 ac_prev=psdir ;; 1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1119 psdir=$ac_optarg ;; 1120 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1122 | -silent | --silent | --silen | --sile | --sil) 1123 silent=yes ;; 1124 1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1126 ac_prev=sbindir ;; 1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1128 | --sbi=* | --sb=*) 1129 sbindir=$ac_optarg ;; 1130 1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1133 | --sharedst | --shareds | --shared | --share | --shar \ 1134 | --sha | --sh) 1135 ac_prev=sharedstatedir ;; 1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1139 | --sha=* | --sh=*) 1140 sharedstatedir=$ac_optarg ;; 1141 1142 -site | --site | --sit) 1143 ac_prev=site ;; 1144 -site=* | --site=* | --sit=*) 1145 site=$ac_optarg ;; 1146 1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1148 ac_prev=srcdir ;; 1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1150 srcdir=$ac_optarg ;; 1151 1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1153 | --syscon | --sysco | --sysc | --sys | --sy) 1154 ac_prev=sysconfdir ;; 1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1157 sysconfdir=$ac_optarg ;; 1158 1159 -target | --target | --targe | --targ | --tar | --ta | --t) 1160 ac_prev=target_alias ;; 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1162 target_alias=$ac_optarg ;; 1163 1164 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1165 verbose=yes ;; 1166 1167 -version | --version | --versio | --versi | --vers | -V) 1168 ac_init_version=: ;; 1169 1170 -with-* | --with-*) 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1172 # Reject names that are not valid shell variable names. 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt" 1175 ac_useropt_orig=$ac_useropt 1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 case $ac_user_opts in 1178 *" 1179"with_$ac_useropt" 1180"*) ;; 1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1182 ac_unrecognized_sep=', ';; 1183 esac 1184 eval with_$ac_useropt=\$ac_optarg ;; 1185 1186 -without-* | --without-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195"with_$ac_useropt" 1196"*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=no ;; 1201 1202 --x) 1203 # Obsolete; use --with-x. 1204 with_x=yes ;; 1205 1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1207 | --x-incl | --x-inc | --x-in | --x-i) 1208 ac_prev=x_includes ;; 1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1211 x_includes=$ac_optarg ;; 1212 1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1215 ac_prev=x_libraries ;; 1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1218 x_libraries=$ac_optarg ;; 1219 1220 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1221Try \`$0 --help' for more information" 1222 ;; 1223 1224 *=*) 1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1226 # Reject names that are not valid shell variable names. 1227 case $ac_envvar in #( 1228 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1230 esac 1231 eval $ac_envvar=\$ac_optarg 1232 export $ac_envvar ;; 1233 1234 *) 1235 # FIXME: should be removed in autoconf 3.0. 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1240 ;; 1241 1242 esac 1243done 1244 1245if test -n "$ac_prev"; then 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1247 as_fn_error $? "missing argument to $ac_option" 1248fi 1249 1250if test -n "$ac_unrecognized_opts"; then 1251 case $enable_option_checking in 1252 no) ;; 1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1255 esac 1256fi 1257 1258# Check all directory arguments for consistency. 1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1260 datadir sysconfdir sharedstatedir localstatedir includedir \ 1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1262 libdir localedir mandir 1263do 1264 eval ac_val=\$$ac_var 1265 # Remove trailing slashes. 1266 case $ac_val in 1267 */ ) 1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1269 eval $ac_var=\$ac_val;; 1270 esac 1271 # Be sure to have absolute directory names. 1272 case $ac_val in 1273 [\\/$]* | ?:[\\/]* ) continue;; 1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1275 esac 1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1277done 1278 1279# There might be people who depend on the old broken behavior: `$host' 1280# used to hold the argument of --host etc. 1281# FIXME: To remove some day. 1282build=$build_alias 1283host=$host_alias 1284target=$target_alias 1285 1286# FIXME: To remove some day. 1287if test "x$host_alias" != x; then 1288 if test "x$build_alias" = x; then 1289 cross_compiling=maybe 1290 elif test "x$build_alias" != "x$host_alias"; then 1291 cross_compiling=yes 1292 fi 1293fi 1294 1295ac_tool_prefix= 1296test -n "$host_alias" && ac_tool_prefix=$host_alias- 1297 1298test "$silent" = yes && exec 6>/dev/null 1299 1300 1301ac_pwd=`pwd` && test -n "$ac_pwd" && 1302ac_ls_di=`ls -di .` && 1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1304 as_fn_error $? "working directory cannot be determined" 1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1306 as_fn_error $? "pwd does not report name of working directory" 1307 1308 1309# Find the source files, if location was not specified. 1310if test -z "$srcdir"; then 1311 ac_srcdir_defaulted=yes 1312 # Try the directory containing this script, then the parent directory. 1313 ac_confdir=`$as_dirname -- "$as_myself" || 1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1315 X"$as_myself" : 'X\(//\)[^/]' \| \ 1316 X"$as_myself" : 'X\(//\)$' \| \ 1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1318$as_echo X"$as_myself" | 1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\/\)[^/].*/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\/\)$/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\).*/{ 1332 s//\1/ 1333 q 1334 } 1335 s/.*/./; q'` 1336 srcdir=$ac_confdir 1337 if test ! -r "$srcdir/$ac_unique_file"; then 1338 srcdir=.. 1339 fi 1340else 1341 ac_srcdir_defaulted=no 1342fi 1343if test ! -r "$srcdir/$ac_unique_file"; then 1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1346fi 1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1348ac_abs_confdir=`( 1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1350 pwd)` 1351# When building in place, set srcdir=. 1352if test "$ac_abs_confdir" = "$ac_pwd"; then 1353 srcdir=. 1354fi 1355# Remove unnecessary trailing slashes from srcdir. 1356# Double slashes in file names in object file debugging info 1357# mess up M-x gdb in Emacs. 1358case $srcdir in 1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1360esac 1361for ac_var in $ac_precious_vars; do 1362 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1363 eval ac_env_${ac_var}_value=\$${ac_var} 1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1366done 1367 1368# 1369# Report the --help message. 1370# 1371if test "$ac_init_help" = "long"; then 1372 # Omit some internal or obsolete options to make the list less imposing. 1373 # This message is too long to be a string in the A/UX 3.1 sh. 1374 cat <<_ACEOF 1375\`configure' configures xf86-video-nouveau 1.0.12 to adapt to many kinds of systems. 1376 1377Usage: $0 [OPTION]... [VAR=VALUE]... 1378 1379To assign environment variables (e.g., CC, CFLAGS...), specify them as 1380VAR=VALUE. See below for descriptions of some of the useful variables. 1381 1382Defaults for the options are specified in brackets. 1383 1384Configuration: 1385 -h, --help display this help and exit 1386 --help=short display options specific to this package 1387 --help=recursive display the short help of all the included packages 1388 -V, --version display version information and exit 1389 -q, --quiet, --silent do not print \`checking ...' messages 1390 --cache-file=FILE cache test results in FILE [disabled] 1391 -C, --config-cache alias for \`--cache-file=config.cache' 1392 -n, --no-create do not create output files 1393 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1394 1395Installation directories: 1396 --prefix=PREFIX install architecture-independent files in PREFIX 1397 [$ac_default_prefix] 1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1399 [PREFIX] 1400 1401By default, \`make install' will install all the files in 1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1403an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1404for instance \`--prefix=\$HOME'. 1405 1406For better control, use the options below. 1407 1408Fine tuning of the installation directories: 1409 --bindir=DIR user executables [EPREFIX/bin] 1410 --sbindir=DIR system admin executables [EPREFIX/sbin] 1411 --libexecdir=DIR program executables [EPREFIX/libexec] 1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1415 --libdir=DIR object code libraries [EPREFIX/lib] 1416 --includedir=DIR C header files [PREFIX/include] 1417 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1420 --infodir=DIR info documentation [DATAROOTDIR/info] 1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1422 --mandir=DIR man documentation [DATAROOTDIR/man] 1423 --docdir=DIR documentation root 1424 [DATAROOTDIR/doc/xf86-video-nouveau] 1425 --htmldir=DIR html documentation [DOCDIR] 1426 --dvidir=DIR dvi documentation [DOCDIR] 1427 --pdfdir=DIR pdf documentation [DOCDIR] 1428 --psdir=DIR ps documentation [DOCDIR] 1429_ACEOF 1430 1431 cat <<\_ACEOF 1432 1433Program names: 1434 --program-prefix=PREFIX prepend PREFIX to installed program names 1435 --program-suffix=SUFFIX append SUFFIX to installed program names 1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1437 1438System types: 1439 --build=BUILD configure for building on BUILD [guessed] 1440 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1441_ACEOF 1442fi 1443 1444if test -n "$ac_init_help"; then 1445 case $ac_init_help in 1446 short | recursive ) echo "Configuration of xf86-video-nouveau 1.0.12:";; 1447 esac 1448 cat <<\_ACEOF 1449 1450Optional Features: 1451 --disable-option-checking ignore unrecognized --enable/--with options 1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1454 --enable-silent-rules less verbose build output (undo: "make V=1") 1455 --disable-silent-rules verbose build output (undo: "make V=0") 1456 --enable-dependency-tracking 1457 do not reject slow dependency extractors 1458 --disable-dependency-tracking 1459 speeds up one-time build 1460 --disable-selective-werror 1461 Turn off selective compiler errors. (default: 1462 enabled) 1463 --enable-strict-compilation 1464 Enable all warnings from compiler and make them 1465 errors (default: disabled) 1466 --enable-static[=PKGS] build static libraries [default=no] 1467 --enable-shared[=PKGS] build shared libraries [default=yes] 1468 --enable-fast-install[=PKGS] 1469 optimize for fast installation [default=yes] 1470 --disable-libtool-lock avoid locking (might break parallel builds) 1471 1472Optional Packages: 1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1475 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1476 both] 1477 --with-aix-soname=aix|svr4|both 1478 shared library versioning (aka "SONAME") variant to 1479 provide on AIX, [default=aix]. 1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1482 compiler's sysroot if not specified). 1483 --with-xorg-module-dir=DIR 1484 Default xorg module directory 1485 [[default=$libdir/xorg/modules]] 1486 1487Some influential environment variables: 1488 CC C compiler command 1489 CFLAGS C compiler flags 1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1491 nonstandard directory <lib dir> 1492 LIBS libraries to pass to the linker, e.g. -l<library> 1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1494 you have headers in a nonstandard directory <include dir> 1495 CPP C preprocessor 1496 PKG_CONFIG path to pkg-config utility 1497 PKG_CONFIG_PATH 1498 directories to add to pkg-config's search path 1499 PKG_CONFIG_LIBDIR 1500 path overriding pkg-config's built-in search path 1501 LT_SYS_LIBRARY_PATH 1502 User-defined run-time library search path. 1503 LIBDRM_CFLAGS 1504 C compiler flags for LIBDRM, overriding pkg-config 1505 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1506 LIBDRM_NOUVEAU_CFLAGS 1507 C compiler flags for LIBDRM_NOUVEAU, overriding pkg-config 1508 LIBDRM_NOUVEAU_LIBS 1509 linker flags for LIBDRM_NOUVEAU, overriding pkg-config 1510 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1511 XORG_LIBS linker flags for XORG, overriding pkg-config 1512 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1513 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1514 PCIACCESS_CFLAGS 1515 C compiler flags for PCIACCESS, overriding pkg-config 1516 PCIACCESS_LIBS 1517 linker flags for PCIACCESS, overriding pkg-config 1518 LIBUDEV_CFLAGS 1519 C compiler flags for LIBUDEV, overriding pkg-config 1520 LIBUDEV_LIBS 1521 linker flags for LIBUDEV, overriding pkg-config 1522 1523Use these variables to override the choices made by `configure' or to help 1524it to find libraries and programs with nonstandard names/locations. 1525 1526Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1527_ACEOF 1528ac_status=$? 1529fi 1530 1531if test "$ac_init_help" = "recursive"; then 1532 # If there are subdirs, report their specific --help. 1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1534 test -d "$ac_dir" || 1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1536 continue 1537 ac_builddir=. 1538 1539case "$ac_dir" in 1540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1541*) 1542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1543 # A ".." for each directory in $ac_dir_suffix. 1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1545 case $ac_top_builddir_sub in 1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1548 esac ;; 1549esac 1550ac_abs_top_builddir=$ac_pwd 1551ac_abs_builddir=$ac_pwd$ac_dir_suffix 1552# for backward compatibility: 1553ac_top_builddir=$ac_top_build_prefix 1554 1555case $srcdir in 1556 .) # We are building in place. 1557 ac_srcdir=. 1558 ac_top_srcdir=$ac_top_builddir_sub 1559 ac_abs_top_srcdir=$ac_pwd ;; 1560 [\\/]* | ?:[\\/]* ) # Absolute name. 1561 ac_srcdir=$srcdir$ac_dir_suffix; 1562 ac_top_srcdir=$srcdir 1563 ac_abs_top_srcdir=$srcdir ;; 1564 *) # Relative name. 1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1566 ac_top_srcdir=$ac_top_build_prefix$srcdir 1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1568esac 1569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1570 1571 cd "$ac_dir" || { ac_status=$?; continue; } 1572 # Check for guested configure. 1573 if test -f "$ac_srcdir/configure.gnu"; then 1574 echo && 1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1576 elif test -f "$ac_srcdir/configure"; then 1577 echo && 1578 $SHELL "$ac_srcdir/configure" --help=recursive 1579 else 1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1581 fi || ac_status=$? 1582 cd "$ac_pwd" || { ac_status=$?; break; } 1583 done 1584fi 1585 1586test -n "$ac_init_help" && exit $ac_status 1587if $ac_init_version; then 1588 cat <<\_ACEOF 1589xf86-video-nouveau configure 1.0.12 1590generated by GNU Autoconf 2.69 1591 1592Copyright (C) 2012 Free Software Foundation, Inc. 1593This configure script is free software; the Free Software Foundation 1594gives unlimited permission to copy, distribute and modify it. 1595_ACEOF 1596 exit 1597fi 1598 1599## ------------------------ ## 1600## Autoconf initialization. ## 1601## ------------------------ ## 1602 1603# ac_fn_c_try_compile LINENO 1604# -------------------------- 1605# Try to compile conftest.$ac_ext, and return whether this succeeded. 1606ac_fn_c_try_compile () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 rm -f conftest.$ac_objext 1610 if { { ac_try="$ac_compile" 1611case "(($ac_try" in 1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613 *) ac_try_echo=$ac_try;; 1614esac 1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616$as_echo "$ac_try_echo"; } >&5 1617 (eval "$ac_compile") 2>conftest.err 1618 ac_status=$? 1619 if test -s conftest.err; then 1620 grep -v '^ *+' conftest.err >conftest.er1 1621 cat conftest.er1 >&5 1622 mv -f conftest.er1 conftest.err 1623 fi 1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1625 test $ac_status = 0; } && { 1626 test -z "$ac_c_werror_flag" || 1627 test ! -s conftest.err 1628 } && test -s conftest.$ac_objext; then : 1629 ac_retval=0 1630else 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_compile 1640 1641# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1642# --------------------------------------------- 1643# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1644# accordingly. 1645ac_fn_c_check_decl () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 as_decl_name=`echo $2|sed 's/ *(.*//'` 1649 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1651$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1652if eval \${$3+:} false; then : 1653 $as_echo_n "(cached) " >&6 1654else 1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1656/* end confdefs.h. */ 1657$4 1658int 1659main () 1660{ 1661#ifndef $as_decl_name 1662#ifdef __cplusplus 1663 (void) $as_decl_use; 1664#else 1665 (void) $as_decl_name; 1666#endif 1667#endif 1668 1669 ; 1670 return 0; 1671} 1672_ACEOF 1673if ac_fn_c_try_compile "$LINENO"; then : 1674 eval "$3=yes" 1675else 1676 eval "$3=no" 1677fi 1678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1679fi 1680eval ac_res=\$$3 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682$as_echo "$ac_res" >&6; } 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 1685} # ac_fn_c_check_decl 1686 1687# ac_fn_c_try_cpp LINENO 1688# ---------------------- 1689# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_cpp () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 if { { ac_try="$ac_cpp conftest.$ac_ext" 1694case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1701 ac_status=$? 1702 if test -s conftest.err; then 1703 grep -v '^ *+' conftest.err >conftest.er1 1704 cat conftest.er1 >&5 1705 mv -f conftest.er1 conftest.err 1706 fi 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } > conftest.i && { 1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1710 test ! -s conftest.err 1711 }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 1718fi 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 as_fn_set_status $ac_retval 1721 1722} # ac_fn_c_try_cpp 1723 1724# ac_fn_c_try_run LINENO 1725# ---------------------- 1726# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1727# that executables *can* be run. 1728ac_fn_c_try_run () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 if { { ac_try="$ac_link" 1732case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_link") 2>&5 1739 ac_status=$? 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1742 { { case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_try") 2>&5 1749 ac_status=$? 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; }; }; then : 1752 ac_retval=0 1753else 1754 $as_echo "$as_me: program exited with status $ac_status" >&5 1755 $as_echo "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=$ac_status 1759fi 1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764} # ac_fn_c_try_run 1765 1766# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1767# ------------------------------------------------------- 1768# Tests whether HEADER exists and can be compiled using the include files in 1769# INCLUDES, setting the cache variable VAR accordingly. 1770ac_fn_c_check_header_compile () 1771{ 1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774$as_echo_n "checking for $2... " >&6; } 1775if eval \${$3+:} false; then : 1776 $as_echo_n "(cached) " >&6 1777else 1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1779/* end confdefs.h. */ 1780$4 1781#include <$2> 1782_ACEOF 1783if ac_fn_c_try_compile "$LINENO"; then : 1784 eval "$3=yes" 1785else 1786 eval "$3=no" 1787fi 1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1789fi 1790eval ac_res=\$$3 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1792$as_echo "$ac_res" >&6; } 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 1795} # ac_fn_c_check_header_compile 1796 1797# ac_fn_c_try_link LINENO 1798# ----------------------- 1799# Try to link conftest.$ac_ext, and return whether this succeeded. 1800ac_fn_c_try_link () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 rm -f conftest.$ac_objext conftest$ac_exeext 1804 if { { ac_try="$ac_link" 1805case "(($ac_try" in 1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1807 *) ac_try_echo=$ac_try;; 1808esac 1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1810$as_echo "$ac_try_echo"; } >&5 1811 (eval "$ac_link") 2>conftest.err 1812 ac_status=$? 1813 if test -s conftest.err; then 1814 grep -v '^ *+' conftest.err >conftest.er1 1815 cat conftest.er1 >&5 1816 mv -f conftest.er1 conftest.err 1817 fi 1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1819 test $ac_status = 0; } && { 1820 test -z "$ac_c_werror_flag" || 1821 test ! -s conftest.err 1822 } && test -s conftest$ac_exeext && { 1823 test "$cross_compiling" = yes || 1824 test -x conftest$ac_exeext 1825 }; then : 1826 ac_retval=0 1827else 1828 $as_echo "$as_me: failed program was:" >&5 1829sed 's/^/| /' conftest.$ac_ext >&5 1830 1831 ac_retval=1 1832fi 1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1835 # interfere with the next link command; also delete a directory that is 1836 # left behind by Apple's compiler. We do this before executing the actions. 1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 as_fn_set_status $ac_retval 1840 1841} # ac_fn_c_try_link 1842 1843# ac_fn_c_check_func LINENO FUNC VAR 1844# ---------------------------------- 1845# Tests whether FUNC exists, setting the cache variable VAR accordingly 1846ac_fn_c_check_func () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1850$as_echo_n "checking for $2... " >&6; } 1851if eval \${$3+:} false; then : 1852 $as_echo_n "(cached) " >&6 1853else 1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1855/* end confdefs.h. */ 1856/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1858#define $2 innocuous_$2 1859 1860/* System header to define __stub macros and hopefully few prototypes, 1861 which can conflict with char $2 (); below. 1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1863 <limits.h> exists even on freestanding compilers. */ 1864 1865#ifdef __STDC__ 1866# include <limits.h> 1867#else 1868# include <assert.h> 1869#endif 1870 1871#undef $2 1872 1873/* Override any GCC internal prototype to avoid an error. 1874 Use char because int might match the return type of a GCC 1875 builtin and then its argument prototype would still apply. */ 1876#ifdef __cplusplus 1877extern "C" 1878#endif 1879char $2 (); 1880/* The GNU C library defines this for functions which it implements 1881 to always fail with ENOSYS. Some functions are actually named 1882 something starting with __ and the normal name is an alias. */ 1883#if defined __stub_$2 || defined __stub___$2 1884choke me 1885#endif 1886 1887int 1888main () 1889{ 1890return $2 (); 1891 ; 1892 return 0; 1893} 1894_ACEOF 1895if ac_fn_c_try_link "$LINENO"; then : 1896 eval "$3=yes" 1897else 1898 eval "$3=no" 1899fi 1900rm -f core conftest.err conftest.$ac_objext \ 1901 conftest$ac_exeext conftest.$ac_ext 1902fi 1903eval ac_res=\$$3 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1905$as_echo "$ac_res" >&6; } 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 1908} # ac_fn_c_check_func 1909cat >config.log <<_ACEOF 1910This file contains any messages produced by compilers while 1911running configure, to aid debugging if configure makes a mistake. 1912 1913It was created by xf86-video-nouveau $as_me 1.0.12, which was 1914generated by GNU Autoconf 2.69. Invocation command line was 1915 1916 $ $0 $@ 1917 1918_ACEOF 1919exec 5>>config.log 1920{ 1921cat <<_ASUNAME 1922## --------- ## 1923## Platform. ## 1924## --------- ## 1925 1926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1927uname -m = `(uname -m) 2>/dev/null || echo unknown` 1928uname -r = `(uname -r) 2>/dev/null || echo unknown` 1929uname -s = `(uname -s) 2>/dev/null || echo unknown` 1930uname -v = `(uname -v) 2>/dev/null || echo unknown` 1931 1932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1933/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1934 1935/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1936/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1938/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1939/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1940/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1941/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1942 1943_ASUNAME 1944 1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1946for as_dir in $PATH 1947do 1948 IFS=$as_save_IFS 1949 test -z "$as_dir" && as_dir=. 1950 $as_echo "PATH: $as_dir" 1951 done 1952IFS=$as_save_IFS 1953 1954} >&5 1955 1956cat >&5 <<_ACEOF 1957 1958 1959## ----------- ## 1960## Core tests. ## 1961## ----------- ## 1962 1963_ACEOF 1964 1965 1966# Keep a trace of the command line. 1967# Strip out --no-create and --no-recursion so they do not pile up. 1968# Strip out --silent because we don't want to record it for future runs. 1969# Also quote any args containing shell meta-characters. 1970# Make two passes to allow for proper duplicate-argument suppression. 1971ac_configure_args= 1972ac_configure_args0= 1973ac_configure_args1= 1974ac_must_keep_next=false 1975for ac_pass in 1 2 1976do 1977 for ac_arg 1978 do 1979 case $ac_arg in 1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1982 | -silent | --silent | --silen | --sile | --sil) 1983 continue ;; 1984 *\'*) 1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1986 esac 1987 case $ac_pass in 1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1989 2) 1990 as_fn_append ac_configure_args1 " '$ac_arg'" 1991 if test $ac_must_keep_next = true; then 1992 ac_must_keep_next=false # Got value, back to normal. 1993 else 1994 case $ac_arg in 1995 *=* | --config-cache | -C | -disable-* | --disable-* \ 1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1998 | -with-* | --with-* | -without-* | --without-* | --x) 1999 case "$ac_configure_args0 " in 2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2001 esac 2002 ;; 2003 -* ) ac_must_keep_next=true ;; 2004 esac 2005 fi 2006 as_fn_append ac_configure_args " '$ac_arg'" 2007 ;; 2008 esac 2009 done 2010done 2011{ ac_configure_args0=; unset ac_configure_args0;} 2012{ ac_configure_args1=; unset ac_configure_args1;} 2013 2014# When interrupted or exit'd, cleanup temporary files, and complete 2015# config.log. We remove comments because anyway the quotes in there 2016# would cause problems or look ugly. 2017# WARNING: Use '\'' to represent an apostrophe within the trap. 2018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2019trap 'exit_status=$? 2020 # Save into config.log some information that might help in debugging. 2021 { 2022 echo 2023 2024 $as_echo "## ---------------- ## 2025## Cache variables. ## 2026## ---------------- ##" 2027 echo 2028 # The following way of writing the cache mishandles newlines in values, 2029( 2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2031 eval ac_val=\$$ac_var 2032 case $ac_val in #( 2033 *${as_nl}*) 2034 case $ac_var in #( 2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2037 esac 2038 case $ac_var in #( 2039 _ | IFS | as_nl) ;; #( 2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2041 *) { eval $ac_var=; unset $ac_var;} ;; 2042 esac ;; 2043 esac 2044 done 2045 (set) 2>&1 | 2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2047 *${as_nl}ac_space=\ *) 2048 sed -n \ 2049 "s/'\''/'\''\\\\'\'''\''/g; 2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2051 ;; #( 2052 *) 2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2054 ;; 2055 esac | 2056 sort 2057) 2058 echo 2059 2060 $as_echo "## ----------------- ## 2061## Output variables. ## 2062## ----------------- ##" 2063 echo 2064 for ac_var in $ac_subst_vars 2065 do 2066 eval ac_val=\$$ac_var 2067 case $ac_val in 2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2069 esac 2070 $as_echo "$ac_var='\''$ac_val'\''" 2071 done | sort 2072 echo 2073 2074 if test -n "$ac_subst_files"; then 2075 $as_echo "## ------------------- ## 2076## File substitutions. ## 2077## ------------------- ##" 2078 echo 2079 for ac_var in $ac_subst_files 2080 do 2081 eval ac_val=\$$ac_var 2082 case $ac_val in 2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2084 esac 2085 $as_echo "$ac_var='\''$ac_val'\''" 2086 done | sort 2087 echo 2088 fi 2089 2090 if test -s confdefs.h; then 2091 $as_echo "## ----------- ## 2092## confdefs.h. ## 2093## ----------- ##" 2094 echo 2095 cat confdefs.h 2096 echo 2097 fi 2098 test "$ac_signal" != 0 && 2099 $as_echo "$as_me: caught signal $ac_signal" 2100 $as_echo "$as_me: exit $exit_status" 2101 } >&5 2102 rm -f core *.core core.conftest.* && 2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2104 exit $exit_status 2105' 0 2106for ac_signal in 1 2 13 15; do 2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2108done 2109ac_signal=0 2110 2111# confdefs.h avoids OS command line length limits that DEFS can exceed. 2112rm -f -r conftest* confdefs.h 2113 2114$as_echo "/* confdefs.h */" > confdefs.h 2115 2116# Predefined preprocessor variables. 2117 2118cat >>confdefs.h <<_ACEOF 2119#define PACKAGE_NAME "$PACKAGE_NAME" 2120_ACEOF 2121 2122cat >>confdefs.h <<_ACEOF 2123#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2124_ACEOF 2125 2126cat >>confdefs.h <<_ACEOF 2127#define PACKAGE_VERSION "$PACKAGE_VERSION" 2128_ACEOF 2129 2130cat >>confdefs.h <<_ACEOF 2131#define PACKAGE_STRING "$PACKAGE_STRING" 2132_ACEOF 2133 2134cat >>confdefs.h <<_ACEOF 2135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2136_ACEOF 2137 2138cat >>confdefs.h <<_ACEOF 2139#define PACKAGE_URL "$PACKAGE_URL" 2140_ACEOF 2141 2142 2143# Let the site file select an alternate cache file if it wants to. 2144# Prefer an explicitly selected file to automatically selected ones. 2145ac_site_file1=NONE 2146ac_site_file2=NONE 2147if test -n "$CONFIG_SITE"; then 2148 # We do not want a PATH search for config.site. 2149 case $CONFIG_SITE in #(( 2150 -*) ac_site_file1=./$CONFIG_SITE;; 2151 */*) ac_site_file1=$CONFIG_SITE;; 2152 *) ac_site_file1=./$CONFIG_SITE;; 2153 esac 2154elif test "x$prefix" != xNONE; then 2155 ac_site_file1=$prefix/share/config.site 2156 ac_site_file2=$prefix/etc/config.site 2157else 2158 ac_site_file1=$ac_default_prefix/share/config.site 2159 ac_site_file2=$ac_default_prefix/etc/config.site 2160fi 2161for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2162do 2163 test "x$ac_site_file" = xNONE && continue 2164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2166$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2167 sed 's/^/| /' "$ac_site_file" >&5 2168 . "$ac_site_file" \ 2169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2171as_fn_error $? "failed to load site script $ac_site_file 2172See \`config.log' for more details" "$LINENO" 5; } 2173 fi 2174done 2175 2176if test -r "$cache_file"; then 2177 # Some versions of bash will fail to source /dev/null (special files 2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2181$as_echo "$as_me: loading cache $cache_file" >&6;} 2182 case $cache_file in 2183 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2184 *) . "./$cache_file";; 2185 esac 2186 fi 2187else 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2189$as_echo "$as_me: creating cache $cache_file" >&6;} 2190 >$cache_file 2191fi 2192 2193# Check that the precious variables saved in the cache have kept the same 2194# value. 2195ac_cache_corrupted=false 2196for ac_var in $ac_precious_vars; do 2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2198 eval ac_new_set=\$ac_env_${ac_var}_set 2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2200 eval ac_new_val=\$ac_env_${ac_var}_value 2201 case $ac_old_set,$ac_new_set in 2202 set,) 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2204$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2205 ac_cache_corrupted=: ;; 2206 ,set) 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2208$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2209 ac_cache_corrupted=: ;; 2210 ,);; 2211 *) 2212 if test "x$ac_old_val" != "x$ac_new_val"; then 2213 # differences in whitespace do not lead to failure. 2214 ac_old_val_w=`echo x $ac_old_val` 2215 ac_new_val_w=`echo x $ac_new_val` 2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2218$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2219 ac_cache_corrupted=: 2220 else 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2222$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2223 eval $ac_var=\$ac_old_val 2224 fi 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2226$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2228$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2229 fi;; 2230 esac 2231 # Pass precious variables to config.status. 2232 if test "$ac_new_set" = set; then 2233 case $ac_new_val in 2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2235 *) ac_arg=$ac_var=$ac_new_val ;; 2236 esac 2237 case " $ac_configure_args " in 2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2240 esac 2241 fi 2242done 2243if $ac_cache_corrupted; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2247$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2248 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2249fi 2250## -------------------- ## 2251## Main body of script. ## 2252## -------------------- ## 2253 2254ac_ext=c 2255ac_cpp='$CPP $CPPFLAGS' 2256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2258ac_compiler_gnu=$ac_cv_c_compiler_gnu 2259 2260 2261 2262 2263cat >>confdefs.h <<_ACEOF 2264#define NV_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/') 2265_ACEOF 2266 2267 2268cat >>confdefs.h <<_ACEOF 2269#define NV_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/') 2270_ACEOF 2271 2272 2273cat >>confdefs.h <<_ACEOF 2274#define NV_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/') 2275_ACEOF 2276 2277 2278cat >>confdefs.h <<_ACEOF 2279#define NV_DRIVER_DATE $(echo -n \";git log |head -3|tail -1|tr -d '\n';echo -n \") 2280_ACEOF 2281 2282 2283 2284ac_config_headers="$ac_config_headers config.h" 2285 2286ac_aux_dir= 2287for ac_dir in . "$srcdir"/.; do 2288 if test -f "$ac_dir/install-sh"; then 2289 ac_aux_dir=$ac_dir 2290 ac_install_sh="$ac_aux_dir/install-sh -c" 2291 break 2292 elif test -f "$ac_dir/install.sh"; then 2293 ac_aux_dir=$ac_dir 2294 ac_install_sh="$ac_aux_dir/install.sh -c" 2295 break 2296 elif test -f "$ac_dir/shtool"; then 2297 ac_aux_dir=$ac_dir 2298 ac_install_sh="$ac_aux_dir/shtool install -c" 2299 break 2300 fi 2301done 2302if test -z "$ac_aux_dir"; then 2303 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2304fi 2305 2306# These three variables are undocumented and unsupported, 2307# and are intended to be withdrawn in a future Autoconf release. 2308# They can cause serious problems if a builder's source tree is in a directory 2309# whose full name contains unusual characters. 2310ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2311ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2312ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2313 2314 2315 2316am__api_version='1.15' 2317 2318# Find a good install program. We prefer a C program (faster), 2319# so one script is as good as another. But avoid the broken or 2320# incompatible versions: 2321# SysV /etc/install, /usr/sbin/install 2322# SunOS /usr/etc/install 2323# IRIX /sbin/install 2324# AIX /bin/install 2325# AmigaOS /C/install, which installs bootblocks on floppy discs 2326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2327# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2329# OS/2's system install, which has a completely different semantic 2330# ./install, which can be erroneously created by make from ./install.sh. 2331# Reject install programs that cannot install multiple files. 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2333$as_echo_n "checking for a BSD-compatible install... " >&6; } 2334if test -z "$INSTALL"; then 2335if ${ac_cv_path_install+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339for as_dir in $PATH 2340do 2341 IFS=$as_save_IFS 2342 test -z "$as_dir" && as_dir=. 2343 # Account for people who put trailing slashes in PATH elements. 2344case $as_dir/ in #(( 2345 ./ | .// | /[cC]/* | \ 2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2348 /usr/ucb/* ) ;; 2349 *) 2350 # OSF1 and SCO ODT 3.0 have their own names for install. 2351 # Don't use installbsd from OSF since it installs stuff as root 2352 # by default. 2353 for ac_prog in ginstall scoinst install; do 2354 for ac_exec_ext in '' $ac_executable_extensions; do 2355 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2356 if test $ac_prog = install && 2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2358 # AIX install. It has an incompatible calling convention. 2359 : 2360 elif test $ac_prog = install && 2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2362 # program-specific install script used by HP pwplus--don't use. 2363 : 2364 else 2365 rm -rf conftest.one conftest.two conftest.dir 2366 echo one > conftest.one 2367 echo two > conftest.two 2368 mkdir conftest.dir 2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2370 test -s conftest.one && test -s conftest.two && 2371 test -s conftest.dir/conftest.one && 2372 test -s conftest.dir/conftest.two 2373 then 2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2375 break 3 2376 fi 2377 fi 2378 fi 2379 done 2380 done 2381 ;; 2382esac 2383 2384 done 2385IFS=$as_save_IFS 2386 2387rm -rf conftest.one conftest.two conftest.dir 2388 2389fi 2390 if test "${ac_cv_path_install+set}" = set; then 2391 INSTALL=$ac_cv_path_install 2392 else 2393 # As a last resort, use the slow shell script. Don't cache a 2394 # value for INSTALL within a source directory, because that will 2395 # break other packages using the cache if that directory is 2396 # removed, or if the value is a relative name. 2397 INSTALL=$ac_install_sh 2398 fi 2399fi 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2401$as_echo "$INSTALL" >&6; } 2402 2403# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2404# It thinks the first close brace ends the variable substitution. 2405test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2406 2407test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2408 2409test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2410 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2412$as_echo_n "checking whether build environment is sane... " >&6; } 2413# Reject unsafe characters in $srcdir or the absolute working directory 2414# name. Accept space and tab only in the latter. 2415am_lf=' 2416' 2417case `pwd` in 2418 *[\\\"\#\$\&\'\`$am_lf]*) 2419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2420esac 2421case $srcdir in 2422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2423 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2424esac 2425 2426# Do 'set' in a subshell so we don't clobber the current shell's 2427# arguments. Must try -L first in case configure is actually a 2428# symlink; some systems play weird games with the mod time of symlinks 2429# (eg FreeBSD returns the mod time of the symlink's containing 2430# directory). 2431if ( 2432 am_has_slept=no 2433 for am_try in 1 2; do 2434 echo "timestamp, slept: $am_has_slept" > conftest.file 2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2436 if test "$*" = "X"; then 2437 # -L didn't work. 2438 set X `ls -t "$srcdir/configure" conftest.file` 2439 fi 2440 if test "$*" != "X $srcdir/configure conftest.file" \ 2441 && test "$*" != "X conftest.file $srcdir/configure"; then 2442 2443 # If neither matched, then we have a broken ls. This can happen 2444 # if, for instance, CONFIG_SHELL is bash and it inherits a 2445 # broken ls alias from the environment. This has actually 2446 # happened. Such a system could not be considered "sane". 2447 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2448 alias in your environment" "$LINENO" 5 2449 fi 2450 if test "$2" = conftest.file || test $am_try -eq 2; then 2451 break 2452 fi 2453 # Just in case. 2454 sleep 1 2455 am_has_slept=yes 2456 done 2457 test "$2" = conftest.file 2458 ) 2459then 2460 # Ok. 2461 : 2462else 2463 as_fn_error $? "newly created file is older than distributed files! 2464Check your system clock" "$LINENO" 5 2465fi 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2467$as_echo "yes" >&6; } 2468# If we didn't sleep, we still need to ensure time stamps of config.status and 2469# generated files are strictly newer. 2470am_sleep_pid= 2471if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2472 ( sleep 1 ) & 2473 am_sleep_pid=$! 2474fi 2475 2476rm -f conftest.file 2477 2478test "$program_prefix" != NONE && 2479 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2480# Use a double $ so make ignores it. 2481test "$program_suffix" != NONE && 2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2483# Double any \ or $. 2484# By default was `s,x,x', remove it if useless. 2485ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2486program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2487 2488# Expand $ac_aux_dir to an absolute path. 2489am_aux_dir=`cd "$ac_aux_dir" && pwd` 2490 2491if test x"${MISSING+set}" != xset; then 2492 case $am_aux_dir in 2493 *\ * | *\ *) 2494 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2495 *) 2496 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2497 esac 2498fi 2499# Use eval to expand $SHELL 2500if eval "$MISSING --is-lightweight"; then 2501 am_missing_run="$MISSING " 2502else 2503 am_missing_run= 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2505$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2506fi 2507 2508if test x"${install_sh+set}" != xset; then 2509 case $am_aux_dir in 2510 *\ * | *\ *) 2511 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2512 *) 2513 install_sh="\${SHELL} $am_aux_dir/install-sh" 2514 esac 2515fi 2516 2517# Installed binaries are usually stripped using 'strip' when the user 2518# run "make install-strip". However 'strip' might not be the right 2519# tool to use in cross-compilation environments, therefore Automake 2520# will honor the 'STRIP' environment variable to overrule this program. 2521if test "$cross_compiling" != no; then 2522 if test -n "$ac_tool_prefix"; then 2523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2524set dummy ${ac_tool_prefix}strip; ac_word=$2 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2526$as_echo_n "checking for $ac_word... " >&6; } 2527if ${ac_cv_prog_STRIP+:} false; then : 2528 $as_echo_n "(cached) " >&6 2529else 2530 if test -n "$STRIP"; then 2531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2532else 2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534for as_dir in $PATH 2535do 2536 IFS=$as_save_IFS 2537 test -z "$as_dir" && as_dir=. 2538 for ac_exec_ext in '' $ac_executable_extensions; do 2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2540 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2542 break 2 2543 fi 2544done 2545 done 2546IFS=$as_save_IFS 2547 2548fi 2549fi 2550STRIP=$ac_cv_prog_STRIP 2551if test -n "$STRIP"; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2553$as_echo "$STRIP" >&6; } 2554else 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2556$as_echo "no" >&6; } 2557fi 2558 2559 2560fi 2561if test -z "$ac_cv_prog_STRIP"; then 2562 ac_ct_STRIP=$STRIP 2563 # Extract the first word of "strip", so it can be a program name with args. 2564set dummy strip; ac_word=$2 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2566$as_echo_n "checking for $ac_word... " >&6; } 2567if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2568 $as_echo_n "(cached) " >&6 2569else 2570 if test -n "$ac_ct_STRIP"; then 2571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2572else 2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2574for as_dir in $PATH 2575do 2576 IFS=$as_save_IFS 2577 test -z "$as_dir" && as_dir=. 2578 for ac_exec_ext in '' $ac_executable_extensions; do 2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2580 ac_cv_prog_ac_ct_STRIP="strip" 2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2582 break 2 2583 fi 2584done 2585 done 2586IFS=$as_save_IFS 2587 2588fi 2589fi 2590ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2591if test -n "$ac_ct_STRIP"; then 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2593$as_echo "$ac_ct_STRIP" >&6; } 2594else 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2596$as_echo "no" >&6; } 2597fi 2598 2599 if test "x$ac_ct_STRIP" = x; then 2600 STRIP=":" 2601 else 2602 case $cross_compiling:$ac_tool_warned in 2603yes:) 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2606ac_tool_warned=yes ;; 2607esac 2608 STRIP=$ac_ct_STRIP 2609 fi 2610else 2611 STRIP="$ac_cv_prog_STRIP" 2612fi 2613 2614fi 2615INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2616 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2618$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2619if test -z "$MKDIR_P"; then 2620 if ${ac_cv_path_mkdir+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_prog in mkdir gmkdir; do 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2632 'mkdir (GNU coreutils) '* | \ 2633 'mkdir (coreutils) '* | \ 2634 'mkdir (fileutils) '4.1*) 2635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2636 break 3;; 2637 esac 2638 done 2639 done 2640 done 2641IFS=$as_save_IFS 2642 2643fi 2644 2645 test -d ./--version && rmdir ./--version 2646 if test "${ac_cv_path_mkdir+set}" = set; then 2647 MKDIR_P="$ac_cv_path_mkdir -p" 2648 else 2649 # As a last resort, use the slow shell script. Don't cache a 2650 # value for MKDIR_P within a source directory, because that will 2651 # break other packages using the cache if that directory is 2652 # removed, or if the value is a relative name. 2653 MKDIR_P="$ac_install_sh -d" 2654 fi 2655fi 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2657$as_echo "$MKDIR_P" >&6; } 2658 2659for ac_prog in gawk mawk nawk awk 2660do 2661 # Extract the first word of "$ac_prog", so it can be a program name with args. 2662set dummy $ac_prog; ac_word=$2 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2664$as_echo_n "checking for $ac_word... " >&6; } 2665if ${ac_cv_prog_AWK+:} false; then : 2666 $as_echo_n "(cached) " >&6 2667else 2668 if test -n "$AWK"; then 2669 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2670else 2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672for as_dir in $PATH 2673do 2674 IFS=$as_save_IFS 2675 test -z "$as_dir" && as_dir=. 2676 for ac_exec_ext in '' $ac_executable_extensions; do 2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2678 ac_cv_prog_AWK="$ac_prog" 2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2680 break 2 2681 fi 2682done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687fi 2688AWK=$ac_cv_prog_AWK 2689if test -n "$AWK"; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2691$as_echo "$AWK" >&6; } 2692else 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2694$as_echo "no" >&6; } 2695fi 2696 2697 2698 test -n "$AWK" && break 2699done 2700 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2702$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2703set x ${MAKE-make} 2704ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2705if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2706 $as_echo_n "(cached) " >&6 2707else 2708 cat >conftest.make <<\_ACEOF 2709SHELL = /bin/sh 2710all: 2711 @echo '@@@%%%=$(MAKE)=@@@%%%' 2712_ACEOF 2713# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2714case `${MAKE-make} -f conftest.make 2>/dev/null` in 2715 *@@@%%%=?*=@@@%%%*) 2716 eval ac_cv_prog_make_${ac_make}_set=yes;; 2717 *) 2718 eval ac_cv_prog_make_${ac_make}_set=no;; 2719esac 2720rm -f conftest.make 2721fi 2722if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2724$as_echo "yes" >&6; } 2725 SET_MAKE= 2726else 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2728$as_echo "no" >&6; } 2729 SET_MAKE="MAKE=${MAKE-make}" 2730fi 2731 2732rm -rf .tst 2>/dev/null 2733mkdir .tst 2>/dev/null 2734if test -d .tst; then 2735 am__leading_dot=. 2736else 2737 am__leading_dot=_ 2738fi 2739rmdir .tst 2>/dev/null 2740 2741# Check whether --enable-silent-rules was given. 2742if test "${enable_silent_rules+set}" = set; then : 2743 enableval=$enable_silent_rules; 2744fi 2745 2746case $enable_silent_rules in # ((( 2747 yes) AM_DEFAULT_VERBOSITY=0;; 2748 no) AM_DEFAULT_VERBOSITY=1;; 2749 *) AM_DEFAULT_VERBOSITY=1;; 2750esac 2751am_make=${MAKE-make} 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2753$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2754if ${am_cv_make_support_nested_variables+:} false; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 if $as_echo 'TRUE=$(BAR$(V)) 2758BAR0=false 2759BAR1=true 2760V=1 2761am__doit: 2762 @$(TRUE) 2763.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2764 am_cv_make_support_nested_variables=yes 2765else 2766 am_cv_make_support_nested_variables=no 2767fi 2768fi 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2770$as_echo "$am_cv_make_support_nested_variables" >&6; } 2771if test $am_cv_make_support_nested_variables = yes; then 2772 AM_V='$(V)' 2773 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2774else 2775 AM_V=$AM_DEFAULT_VERBOSITY 2776 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2777fi 2778AM_BACKSLASH='\' 2779 2780if test "`cd $srcdir && pwd`" != "`pwd`"; then 2781 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2782 # is not polluted with repeated "-I." 2783 am__isrc=' -I$(srcdir)' 2784 # test to see if srcdir already configured 2785 if test -f $srcdir/config.status; then 2786 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2787 fi 2788fi 2789 2790# test whether we have cygpath 2791if test -z "$CYGPATH_W"; then 2792 if (cygpath --version) >/dev/null 2>/dev/null; then 2793 CYGPATH_W='cygpath -w' 2794 else 2795 CYGPATH_W=echo 2796 fi 2797fi 2798 2799 2800# Define the identity of the package. 2801 PACKAGE='xf86-video-nouveau' 2802 VERSION='1.0.12' 2803 2804 2805cat >>confdefs.h <<_ACEOF 2806#define PACKAGE "$PACKAGE" 2807_ACEOF 2808 2809 2810cat >>confdefs.h <<_ACEOF 2811#define VERSION "$VERSION" 2812_ACEOF 2813 2814# Some tools Automake needs. 2815 2816ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2817 2818 2819AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2820 2821 2822AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2823 2824 2825AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2826 2827 2828MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2829 2830# For better backward compatibility. To be removed once Automake 1.9.x 2831# dies out for good. For more background, see: 2832# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2833# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2834mkdir_p='$(MKDIR_P)' 2835 2836# We need awk for the "check" target (and possibly the TAP driver). The 2837# system "awk" is bad on some platforms. 2838# Always define AMTAR for backward compatibility. Yes, it's still used 2839# in the wild :-( We should find a proper way to deprecate it ... 2840AMTAR='$${TAR-tar}' 2841 2842 2843# We'll loop over all known methods to create a tar archive until one works. 2844_am_tools='gnutar pax cpio none' 2845 2846am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2847 2848 2849 2850 2851 2852 2853# POSIX will say in a future version that running "rm -f" with no argument 2854# is OK; and we want to be able to make that assumption in our Makefile 2855# recipes. So use an aggressive probe to check that the usage we want is 2856# actually supported "in the wild" to an acceptable degree. 2857# See automake bug#10828. 2858# To make any issue more visible, cause the running configure to be aborted 2859# by default if the 'rm' program in use doesn't match our expectations; the 2860# user can still override this though. 2861if rm -f && rm -fr && rm -rf; then : OK; else 2862 cat >&2 <<'END' 2863Oops! 2864 2865Your 'rm' program seems unable to run without file operands specified 2866on the command line, even when the '-f' option is present. This is contrary 2867to the behaviour of most rm programs out there, and not conforming with 2868the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2869 2870Please tell bug-automake@gnu.org about your system, including the value 2871of your $PATH and any error possibly output before this message. This 2872can help us improve future automake versions. 2873 2874END 2875 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2876 echo 'Configuration will proceed anyway, since you have set the' >&2 2877 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2878 echo >&2 2879 else 2880 cat >&2 <<'END' 2881Aborting the configuration process, to ensure you take notice of the issue. 2882 2883You can download and install GNU coreutils to get an 'rm' implementation 2884that behaves properly: <http://www.gnu.org/software/coreutils/>. 2885 2886If you want to complete the configuration process using your problematic 2887'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2888to "yes", and re-run configure. 2889 2890END 2891 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2892 fi 2893fi 2894 2895 2896# Check whether --enable-silent-rules was given. 2897if test "${enable_silent_rules+set}" = set; then : 2898 enableval=$enable_silent_rules; 2899fi 2900 2901case $enable_silent_rules in # ((( 2902 yes) AM_DEFAULT_VERBOSITY=0;; 2903 no) AM_DEFAULT_VERBOSITY=1;; 2904 *) AM_DEFAULT_VERBOSITY=0;; 2905esac 2906am_make=${MAKE-make} 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2908$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2909if ${am_cv_make_support_nested_variables+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 if $as_echo 'TRUE=$(BAR$(V)) 2913BAR0=false 2914BAR1=true 2915V=1 2916am__doit: 2917 @$(TRUE) 2918.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2919 am_cv_make_support_nested_variables=yes 2920else 2921 am_cv_make_support_nested_variables=no 2922fi 2923fi 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2925$as_echo "$am_cv_make_support_nested_variables" >&6; } 2926if test $am_cv_make_support_nested_variables = yes; then 2927 AM_V='$(V)' 2928 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2929else 2930 AM_V=$AM_DEFAULT_VERBOSITY 2931 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2932fi 2933AM_BACKSLASH='\' 2934 2935 2936# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949DEPDIR="${am__leading_dot}deps" 2950 2951ac_config_commands="$ac_config_commands depfiles" 2952 2953 2954am_make=${MAKE-make} 2955cat > confinc << 'END' 2956am__doit: 2957 @echo this is the am__doit target 2958.PHONY: am__doit 2959END 2960# If we don't find an include directive, just comment out the code. 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2962$as_echo_n "checking for style of include used by $am_make... " >&6; } 2963am__include="#" 2964am__quote= 2965_am_result=none 2966# First try GNU make style include. 2967echo "include confinc" > confmf 2968# Ignore all kinds of additional output from 'make'. 2969case `$am_make -s -f confmf 2> /dev/null` in #( 2970*the\ am__doit\ target*) 2971 am__include=include 2972 am__quote= 2973 _am_result=GNU 2974 ;; 2975esac 2976# Now try BSD make style include. 2977if test "$am__include" = "#"; then 2978 echo '.include "confinc"' > confmf 2979 case `$am_make -s -f confmf 2> /dev/null` in #( 2980 *the\ am__doit\ target*) 2981 am__include=.include 2982 am__quote="\"" 2983 _am_result=BSD 2984 ;; 2985 esac 2986fi 2987 2988 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2990$as_echo "$_am_result" >&6; } 2991rm -f confinc confmf 2992 2993# Check whether --enable-dependency-tracking was given. 2994if test "${enable_dependency_tracking+set}" = set; then : 2995 enableval=$enable_dependency_tracking; 2996fi 2997 2998if test "x$enable_dependency_tracking" != xno; then 2999 am_depcomp="$ac_aux_dir/depcomp" 3000 AMDEPBACKSLASH='\' 3001 am__nodep='_no' 3002fi 3003 if test "x$enable_dependency_tracking" != xno; then 3004 AMDEP_TRUE= 3005 AMDEP_FALSE='#' 3006else 3007 AMDEP_TRUE='#' 3008 AMDEP_FALSE= 3009fi 3010 3011 3012ac_ext=c 3013ac_cpp='$CPP $CPPFLAGS' 3014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3016ac_compiler_gnu=$ac_cv_c_compiler_gnu 3017if test -n "$ac_tool_prefix"; then 3018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3019set dummy ${ac_tool_prefix}gcc; ac_word=$2 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3021$as_echo_n "checking for $ac_word... " >&6; } 3022if ${ac_cv_prog_CC+:} false; then : 3023 $as_echo_n "(cached) " >&6 3024else 3025 if test -n "$CC"; then 3026 ac_cv_prog_CC="$CC" # Let the user override the test. 3027else 3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029for as_dir in $PATH 3030do 3031 IFS=$as_save_IFS 3032 test -z "$as_dir" && as_dir=. 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3035 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039done 3040 done 3041IFS=$as_save_IFS 3042 3043fi 3044fi 3045CC=$ac_cv_prog_CC 3046if test -n "$CC"; then 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3048$as_echo "$CC" >&6; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052fi 3053 3054 3055fi 3056if test -z "$ac_cv_prog_CC"; then 3057 ac_ct_CC=$CC 3058 # Extract the first word of "gcc", so it can be a program name with args. 3059set dummy gcc; ac_word=$2 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3061$as_echo_n "checking for $ac_word... " >&6; } 3062if ${ac_cv_prog_ac_ct_CC+:} false; then : 3063 $as_echo_n "(cached) " >&6 3064else 3065 if test -n "$ac_ct_CC"; then 3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3067else 3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069for as_dir in $PATH 3070do 3071 IFS=$as_save_IFS 3072 test -z "$as_dir" && as_dir=. 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3075 ac_cv_prog_ac_ct_CC="gcc" 3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079done 3080 done 3081IFS=$as_save_IFS 3082 3083fi 3084fi 3085ac_ct_CC=$ac_cv_prog_ac_ct_CC 3086if test -n "$ac_ct_CC"; then 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3088$as_echo "$ac_ct_CC" >&6; } 3089else 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3091$as_echo "no" >&6; } 3092fi 3093 3094 if test "x$ac_ct_CC" = x; then 3095 CC="" 3096 else 3097 case $cross_compiling:$ac_tool_warned in 3098yes:) 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3101ac_tool_warned=yes ;; 3102esac 3103 CC=$ac_ct_CC 3104 fi 3105else 3106 CC="$ac_cv_prog_CC" 3107fi 3108 3109if test -z "$CC"; then 3110 if test -n "$ac_tool_prefix"; then 3111 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3112set dummy ${ac_tool_prefix}cc; ac_word=$2 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114$as_echo_n "checking for $ac_word... " >&6; } 3115if ${ac_cv_prog_CC+:} false; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if test -n "$CC"; then 3119 ac_cv_prog_CC="$CC" # Let the user override the test. 3120else 3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 test -z "$as_dir" && as_dir=. 3126 for ac_exec_ext in '' $ac_executable_extensions; do 3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3128 ac_cv_prog_CC="${ac_tool_prefix}cc" 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3130 break 2 3131 fi 3132done 3133 done 3134IFS=$as_save_IFS 3135 3136fi 3137fi 3138CC=$ac_cv_prog_CC 3139if test -n "$CC"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3141$as_echo "$CC" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 3148 fi 3149fi 3150if test -z "$CC"; then 3151 # Extract the first word of "cc", so it can be a program name with args. 3152set dummy cc; ac_word=$2 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3154$as_echo_n "checking for $ac_word... " >&6; } 3155if ${ac_cv_prog_CC+:} false; then : 3156 $as_echo_n "(cached) " >&6 3157else 3158 if test -n "$CC"; then 3159 ac_cv_prog_CC="$CC" # Let the user override the test. 3160else 3161 ac_prog_rejected=no 3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3163for as_dir in $PATH 3164do 3165 IFS=$as_save_IFS 3166 test -z "$as_dir" && as_dir=. 3167 for ac_exec_ext in '' $ac_executable_extensions; do 3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3170 ac_prog_rejected=yes 3171 continue 3172 fi 3173 ac_cv_prog_CC="cc" 3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3175 break 2 3176 fi 3177done 3178 done 3179IFS=$as_save_IFS 3180 3181if test $ac_prog_rejected = yes; then 3182 # We found a bogon in the path, so make sure we never use it. 3183 set dummy $ac_cv_prog_CC 3184 shift 3185 if test $# != 0; then 3186 # We chose a different compiler from the bogus one. 3187 # However, it has the same basename, so the bogon will be chosen 3188 # first if we set CC to just the basename; use the full file name. 3189 shift 3190 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3191 fi 3192fi 3193fi 3194fi 3195CC=$ac_cv_prog_CC 3196if test -n "$CC"; then 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3198$as_echo "$CC" >&6; } 3199else 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3201$as_echo "no" >&6; } 3202fi 3203 3204 3205fi 3206if test -z "$CC"; then 3207 if test -n "$ac_tool_prefix"; then 3208 for ac_prog in cl.exe 3209 do 3210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3211set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3213$as_echo_n "checking for $ac_word... " >&6; } 3214if ${ac_cv_prog_CC+:} false; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 if test -n "$CC"; then 3218 ac_cv_prog_CC="$CC" # Let the user override the test. 3219else 3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3229 break 2 3230 fi 3231done 3232 done 3233IFS=$as_save_IFS 3234 3235fi 3236fi 3237CC=$ac_cv_prog_CC 3238if test -n "$CC"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3240$as_echo "$CC" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 3247 test -n "$CC" && break 3248 done 3249fi 3250if test -z "$CC"; then 3251 ac_ct_CC=$CC 3252 for ac_prog in cl.exe 3253do 3254 # Extract the first word of "$ac_prog", so it can be a program name with args. 3255set dummy $ac_prog; ac_word=$2 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257$as_echo_n "checking for $ac_word... " >&6; } 3258if ${ac_cv_prog_ac_ct_CC+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$ac_ct_CC"; then 3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3263else 3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3265for as_dir in $PATH 3266do 3267 IFS=$as_save_IFS 3268 test -z "$as_dir" && as_dir=. 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3271 ac_cv_prog_ac_ct_CC="$ac_prog" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281ac_ct_CC=$ac_cv_prog_ac_ct_CC 3282if test -n "$ac_ct_CC"; then 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3284$as_echo "$ac_ct_CC" >&6; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 3291 test -n "$ac_ct_CC" && break 3292done 3293 3294 if test "x$ac_ct_CC" = x; then 3295 CC="" 3296 else 3297 case $cross_compiling:$ac_tool_warned in 3298yes:) 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3301ac_tool_warned=yes ;; 3302esac 3303 CC=$ac_ct_CC 3304 fi 3305fi 3306 3307fi 3308 3309 3310test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3312as_fn_error $? "no acceptable C compiler found in \$PATH 3313See \`config.log' for more details" "$LINENO" 5; } 3314 3315# Provide some information about the compiler. 3316$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3317set X $ac_compile 3318ac_compiler=$2 3319for ac_option in --version -v -V -qversion; do 3320 { { ac_try="$ac_compiler $ac_option >&5" 3321case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3326$as_echo "$ac_try_echo"; } >&5 3327 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3328 ac_status=$? 3329 if test -s conftest.err; then 3330 sed '10a\ 3331... rest of stderr output deleted ... 3332 10q' conftest.err >conftest.er1 3333 cat conftest.er1 >&5 3334 fi 3335 rm -f conftest.er1 conftest.err 3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3337 test $ac_status = 0; } 3338done 3339 3340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3341/* end confdefs.h. */ 3342 3343int 3344main () 3345{ 3346 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351ac_clean_files_save=$ac_clean_files 3352ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3353# Try to create an executable without -o first, disregard a.out. 3354# It will help us diagnose broken compilers, and finding out an intuition 3355# of exeext. 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3357$as_echo_n "checking whether the C compiler works... " >&6; } 3358ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3359 3360# The possible output files: 3361ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3362 3363ac_rmfiles= 3364for ac_file in $ac_files 3365do 3366 case $ac_file in 3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3368 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3369 esac 3370done 3371rm -f $ac_rmfiles 3372 3373if { { ac_try="$ac_link_default" 3374case "(($ac_try" in 3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3376 *) ac_try_echo=$ac_try;; 3377esac 3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3379$as_echo "$ac_try_echo"; } >&5 3380 (eval "$ac_link_default") 2>&5 3381 ac_status=$? 3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3383 test $ac_status = 0; }; then : 3384 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3385# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3386# in a Makefile. We should not override ac_cv_exeext if it was cached, 3387# so that the user can short-circuit this test for compilers unknown to 3388# Autoconf. 3389for ac_file in $ac_files '' 3390do 3391 test -f "$ac_file" || continue 3392 case $ac_file in 3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3394 ;; 3395 [ab].out ) 3396 # We found the default executable, but exeext='' is most 3397 # certainly right. 3398 break;; 3399 *.* ) 3400 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3401 then :; else 3402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3403 fi 3404 # We set ac_cv_exeext here because the later test for it is not 3405 # safe: cross compilers may not add the suffix if given an `-o' 3406 # argument, so we may need to know it at that point already. 3407 # Even if this section looks crufty: it has the advantage of 3408 # actually working. 3409 break;; 3410 * ) 3411 break;; 3412 esac 3413done 3414test "$ac_cv_exeext" = no && ac_cv_exeext= 3415 3416else 3417 ac_file='' 3418fi 3419if test -z "$ac_file"; then : 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3421$as_echo "no" >&6; } 3422$as_echo "$as_me: failed program was:" >&5 3423sed 's/^/| /' conftest.$ac_ext >&5 3424 3425{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3427as_fn_error 77 "C compiler cannot create executables 3428See \`config.log' for more details" "$LINENO" 5; } 3429else 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3431$as_echo "yes" >&6; } 3432fi 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3434$as_echo_n "checking for C compiler default output file name... " >&6; } 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3436$as_echo "$ac_file" >&6; } 3437ac_exeext=$ac_cv_exeext 3438 3439rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3440ac_clean_files=$ac_clean_files_save 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3442$as_echo_n "checking for suffix of executables... " >&6; } 3443if { { ac_try="$ac_link" 3444case "(($ac_try" in 3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446 *) ac_try_echo=$ac_try;; 3447esac 3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3449$as_echo "$ac_try_echo"; } >&5 3450 (eval "$ac_link") 2>&5 3451 ac_status=$? 3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3453 test $ac_status = 0; }; then : 3454 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3455# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3456# work properly (i.e., refer to `conftest.exe'), while it won't with 3457# `rm'. 3458for ac_file in conftest.exe conftest conftest.*; do 3459 test -f "$ac_file" || continue 3460 case $ac_file in 3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3463 break;; 3464 * ) break;; 3465 esac 3466done 3467else 3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3470as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3471See \`config.log' for more details" "$LINENO" 5; } 3472fi 3473rm -f conftest conftest$ac_cv_exeext 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3475$as_echo "$ac_cv_exeext" >&6; } 3476 3477rm -f conftest.$ac_ext 3478EXEEXT=$ac_cv_exeext 3479ac_exeext=$EXEEXT 3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482#include <stdio.h> 3483int 3484main () 3485{ 3486FILE *f = fopen ("conftest.out", "w"); 3487 return ferror (f) || fclose (f) != 0; 3488 3489 ; 3490 return 0; 3491} 3492_ACEOF 3493ac_clean_files="$ac_clean_files conftest.out" 3494# Check that the compiler produces executables we can run. If not, either 3495# the compiler is broken, or we cross compile. 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3497$as_echo_n "checking whether we are cross compiling... " >&6; } 3498if test "$cross_compiling" != yes; then 3499 { { ac_try="$ac_link" 3500case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3505$as_echo "$ac_try_echo"; } >&5 3506 (eval "$ac_link") 2>&5 3507 ac_status=$? 3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3509 test $ac_status = 0; } 3510 if { ac_try='./conftest$ac_cv_exeext' 3511 { { case "(($ac_try" in 3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3513 *) ac_try_echo=$ac_try;; 3514esac 3515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3516$as_echo "$ac_try_echo"; } >&5 3517 (eval "$ac_try") 2>&5 3518 ac_status=$? 3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3520 test $ac_status = 0; }; }; then 3521 cross_compiling=no 3522 else 3523 if test "$cross_compiling" = maybe; then 3524 cross_compiling=yes 3525 else 3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3528as_fn_error $? "cannot run C compiled programs. 3529If you meant to cross compile, use \`--host'. 3530See \`config.log' for more details" "$LINENO" 5; } 3531 fi 3532 fi 3533fi 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3535$as_echo "$cross_compiling" >&6; } 3536 3537rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3538ac_clean_files=$ac_clean_files_save 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3540$as_echo_n "checking for suffix of object files... " >&6; } 3541if ${ac_cv_objext+:} false; then : 3542 $as_echo_n "(cached) " >&6 3543else 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545/* end confdefs.h. */ 3546 3547int 3548main () 3549{ 3550 3551 ; 3552 return 0; 3553} 3554_ACEOF 3555rm -f conftest.o conftest.obj 3556if { { ac_try="$ac_compile" 3557case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560esac 3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3562$as_echo "$ac_try_echo"; } >&5 3563 (eval "$ac_compile") 2>&5 3564 ac_status=$? 3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3566 test $ac_status = 0; }; then : 3567 for ac_file in conftest.o conftest.obj conftest.*; do 3568 test -f "$ac_file" || continue; 3569 case $ac_file in 3570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3572 break;; 3573 esac 3574done 3575else 3576 $as_echo "$as_me: failed program was:" >&5 3577sed 's/^/| /' conftest.$ac_ext >&5 3578 3579{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3581as_fn_error $? "cannot compute suffix of object files: cannot compile 3582See \`config.log' for more details" "$LINENO" 5; } 3583fi 3584rm -f conftest.$ac_cv_objext conftest.$ac_ext 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3587$as_echo "$ac_cv_objext" >&6; } 3588OBJEXT=$ac_cv_objext 3589ac_objext=$OBJEXT 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3591$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3592if ${ac_cv_c_compiler_gnu+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594else 3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3596/* end confdefs.h. */ 3597 3598int 3599main () 3600{ 3601#ifndef __GNUC__ 3602 choke me 3603#endif 3604 3605 ; 3606 return 0; 3607} 3608_ACEOF 3609if ac_fn_c_try_compile "$LINENO"; then : 3610 ac_compiler_gnu=yes 3611else 3612 ac_compiler_gnu=no 3613fi 3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3615ac_cv_c_compiler_gnu=$ac_compiler_gnu 3616 3617fi 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3619$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3620if test $ac_compiler_gnu = yes; then 3621 GCC=yes 3622else 3623 GCC= 3624fi 3625ac_test_CFLAGS=${CFLAGS+set} 3626ac_save_CFLAGS=$CFLAGS 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3628$as_echo_n "checking whether $CC accepts -g... " >&6; } 3629if ${ac_cv_prog_cc_g+:} false; then : 3630 $as_echo_n "(cached) " >&6 3631else 3632 ac_save_c_werror_flag=$ac_c_werror_flag 3633 ac_c_werror_flag=yes 3634 ac_cv_prog_cc_g=no 3635 CFLAGS="-g" 3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3637/* end confdefs.h. */ 3638 3639int 3640main () 3641{ 3642 3643 ; 3644 return 0; 3645} 3646_ACEOF 3647if ac_fn_c_try_compile "$LINENO"; then : 3648 ac_cv_prog_cc_g=yes 3649else 3650 CFLAGS="" 3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3652/* end confdefs.h. */ 3653 3654int 3655main () 3656{ 3657 3658 ; 3659 return 0; 3660} 3661_ACEOF 3662if ac_fn_c_try_compile "$LINENO"; then : 3663 3664else 3665 ac_c_werror_flag=$ac_save_c_werror_flag 3666 CFLAGS="-g" 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669 3670int 3671main () 3672{ 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678if ac_fn_c_try_compile "$LINENO"; then : 3679 ac_cv_prog_cc_g=yes 3680fi 3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3682fi 3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3684fi 3685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3686 ac_c_werror_flag=$ac_save_c_werror_flag 3687fi 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3689$as_echo "$ac_cv_prog_cc_g" >&6; } 3690if test "$ac_test_CFLAGS" = set; then 3691 CFLAGS=$ac_save_CFLAGS 3692elif test $ac_cv_prog_cc_g = yes; then 3693 if test "$GCC" = yes; then 3694 CFLAGS="-g -O2" 3695 else 3696 CFLAGS="-g" 3697 fi 3698else 3699 if test "$GCC" = yes; then 3700 CFLAGS="-O2" 3701 else 3702 CFLAGS= 3703 fi 3704fi 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3706$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3707if ${ac_cv_prog_cc_c89+:} false; then : 3708 $as_echo_n "(cached) " >&6 3709else 3710 ac_cv_prog_cc_c89=no 3711ac_save_CC=$CC 3712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714#include <stdarg.h> 3715#include <stdio.h> 3716struct stat; 3717/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3718struct buf { int x; }; 3719FILE * (*rcsopen) (struct buf *, struct stat *, int); 3720static char *e (p, i) 3721 char **p; 3722 int i; 3723{ 3724 return p[i]; 3725} 3726static char *f (char * (*g) (char **, int), char **p, ...) 3727{ 3728 char *s; 3729 va_list v; 3730 va_start (v,p); 3731 s = g (p, va_arg (v,int)); 3732 va_end (v); 3733 return s; 3734} 3735 3736/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3737 function prototypes and stuff, but not '\xHH' hex character constants. 3738 These don't provoke an error unfortunately, instead are silently treated 3739 as 'x'. The following induces an error, until -std is added to get 3740 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3741 array size at least. It's necessary to write '\x00'==0 to get something 3742 that's true only with -std. */ 3743int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3744 3745/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3746 inside strings and character constants. */ 3747#define FOO(x) 'x' 3748int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3749 3750int test (int i, double x); 3751struct s1 {int (*f) (int a);}; 3752struct s2 {int (*f) (double a);}; 3753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3754int argc; 3755char **argv; 3756int 3757main () 3758{ 3759return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3760 ; 3761 return 0; 3762} 3763_ACEOF 3764for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3765 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3766do 3767 CC="$ac_save_CC $ac_arg" 3768 if ac_fn_c_try_compile "$LINENO"; then : 3769 ac_cv_prog_cc_c89=$ac_arg 3770fi 3771rm -f core conftest.err conftest.$ac_objext 3772 test "x$ac_cv_prog_cc_c89" != "xno" && break 3773done 3774rm -f conftest.$ac_ext 3775CC=$ac_save_CC 3776 3777fi 3778# AC_CACHE_VAL 3779case "x$ac_cv_prog_cc_c89" in 3780 x) 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3782$as_echo "none needed" >&6; } ;; 3783 xno) 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3785$as_echo "unsupported" >&6; } ;; 3786 *) 3787 CC="$CC $ac_cv_prog_cc_c89" 3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3789$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3790esac 3791if test "x$ac_cv_prog_cc_c89" != xno; then : 3792 3793fi 3794 3795ac_ext=c 3796ac_cpp='$CPP $CPPFLAGS' 3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3799ac_compiler_gnu=$ac_cv_c_compiler_gnu 3800 3801ac_ext=c 3802ac_cpp='$CPP $CPPFLAGS' 3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3805ac_compiler_gnu=$ac_cv_c_compiler_gnu 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3807$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3808if ${am_cv_prog_cc_c_o+:} false; then : 3809 $as_echo_n "(cached) " >&6 3810else 3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3812/* end confdefs.h. */ 3813 3814int 3815main () 3816{ 3817 3818 ; 3819 return 0; 3820} 3821_ACEOF 3822 # Make sure it works both with $CC and with simple cc. 3823 # Following AC_PROG_CC_C_O, we do the test twice because some 3824 # compilers refuse to overwrite an existing .o file with -o, 3825 # though they will create one. 3826 am_cv_prog_cc_c_o=yes 3827 for am_i in 1 2; do 3828 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3829 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3830 ac_status=$? 3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3832 (exit $ac_status); } \ 3833 && test -f conftest2.$ac_objext; then 3834 : OK 3835 else 3836 am_cv_prog_cc_c_o=no 3837 break 3838 fi 3839 done 3840 rm -f core conftest* 3841 unset am_i 3842fi 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3844$as_echo "$am_cv_prog_cc_c_o" >&6; } 3845if test "$am_cv_prog_cc_c_o" != yes; then 3846 # Losing compiler, so override with the script. 3847 # FIXME: It is wrong to rewrite CC. 3848 # But if we don't then we get into trouble of one sort or another. 3849 # A longer-term fix would be to have automake use am__CC in this case, 3850 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3851 CC="$am_aux_dir/compile $CC" 3852fi 3853ac_ext=c 3854ac_cpp='$CPP $CPPFLAGS' 3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3857ac_compiler_gnu=$ac_cv_c_compiler_gnu 3858 3859 3860depcc="$CC" am_compiler_list= 3861 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3863$as_echo_n "checking dependency style of $depcc... " >&6; } 3864if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3868 # We make a subdir and do the tests there. Otherwise we can end up 3869 # making bogus files that we don't know about and never remove. For 3870 # instance it was reported that on HP-UX the gcc test will end up 3871 # making a dummy file named 'D' -- because '-MD' means "put the output 3872 # in D". 3873 rm -rf conftest.dir 3874 mkdir conftest.dir 3875 # Copy depcomp to subdir because otherwise we won't find it if we're 3876 # using a relative directory. 3877 cp "$am_depcomp" conftest.dir 3878 cd conftest.dir 3879 # We will build objects and dependencies in a subdirectory because 3880 # it helps to detect inapplicable dependency modes. For instance 3881 # both Tru64's cc and ICC support -MD to output dependencies as a 3882 # side effect of compilation, but ICC will put the dependencies in 3883 # the current directory while Tru64 will put them in the object 3884 # directory. 3885 mkdir sub 3886 3887 am_cv_CC_dependencies_compiler_type=none 3888 if test "$am_compiler_list" = ""; then 3889 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3890 fi 3891 am__universal=false 3892 case " $depcc " in #( 3893 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3894 esac 3895 3896 for depmode in $am_compiler_list; do 3897 # Setup a source with many dependencies, because some compilers 3898 # like to wrap large dependency lists on column 80 (with \), and 3899 # we should not choose a depcomp mode which is confused by this. 3900 # 3901 # We need to recreate these files for each test, as the compiler may 3902 # overwrite some of them when testing with obscure command lines. 3903 # This happens at least with the AIX C compiler. 3904 : > sub/conftest.c 3905 for i in 1 2 3 4 5 6; do 3906 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3907 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3908 # Solaris 10 /bin/sh. 3909 echo '/* dummy */' > sub/conftst$i.h 3910 done 3911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3912 3913 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3914 # mode. It turns out that the SunPro C++ compiler does not properly 3915 # handle '-M -o', and we need to detect this. Also, some Intel 3916 # versions had trouble with output in subdirs. 3917 am__obj=sub/conftest.${OBJEXT-o} 3918 am__minus_obj="-o $am__obj" 3919 case $depmode in 3920 gcc) 3921 # This depmode causes a compiler race in universal mode. 3922 test "$am__universal" = false || continue 3923 ;; 3924 nosideeffect) 3925 # After this tag, mechanisms are not by side-effect, so they'll 3926 # only be used when explicitly requested. 3927 if test "x$enable_dependency_tracking" = xyes; then 3928 continue 3929 else 3930 break 3931 fi 3932 ;; 3933 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3934 # This compiler won't grok '-c -o', but also, the minuso test has 3935 # not run yet. These depmodes are late enough in the game, and 3936 # so weak that their functioning should not be impacted. 3937 am__obj=conftest.${OBJEXT-o} 3938 am__minus_obj= 3939 ;; 3940 none) break ;; 3941 esac 3942 if depmode=$depmode \ 3943 source=sub/conftest.c object=$am__obj \ 3944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3946 >/dev/null 2>conftest.err && 3947 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3949 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3951 # icc doesn't choke on unknown options, it will just issue warnings 3952 # or remarks (even with -Werror). So we grep stderr for any message 3953 # that says an option was ignored or not supported. 3954 # When given -MP, icc 7.0 and 7.1 complain thusly: 3955 # icc: Command line warning: ignoring option '-M'; no argument required 3956 # The diagnosis changed in icc 8.0: 3957 # icc: Command line remark: option '-MP' not supported 3958 if (grep 'ignoring option' conftest.err || 3959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3960 am_cv_CC_dependencies_compiler_type=$depmode 3961 break 3962 fi 3963 fi 3964 done 3965 3966 cd .. 3967 rm -rf conftest.dir 3968else 3969 am_cv_CC_dependencies_compiler_type=none 3970fi 3971 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3974$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3975CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3976 3977 if 3978 test "x$enable_dependency_tracking" != xno \ 3979 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3980 am__fastdepCC_TRUE= 3981 am__fastdepCC_FALSE='#' 3982else 3983 am__fastdepCC_TRUE='#' 3984 am__fastdepCC_FALSE= 3985fi 3986 3987 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3989$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3990if ${ac_cv_prog_cc_c99+:} false; then : 3991 $as_echo_n "(cached) " >&6 3992else 3993 ac_cv_prog_cc_c99=no 3994ac_save_CC=$CC 3995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997#include <stdarg.h> 3998#include <stdbool.h> 3999#include <stdlib.h> 4000#include <wchar.h> 4001#include <stdio.h> 4002 4003// Check varargs macros. These examples are taken from C99 6.10.3.5. 4004#define debug(...) fprintf (stderr, __VA_ARGS__) 4005#define showlist(...) puts (#__VA_ARGS__) 4006#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4007static void 4008test_varargs_macros (void) 4009{ 4010 int x = 1234; 4011 int y = 5678; 4012 debug ("Flag"); 4013 debug ("X = %d\n", x); 4014 showlist (The first, second, and third items.); 4015 report (x>y, "x is %d but y is %d", x, y); 4016} 4017 4018// Check long long types. 4019#define BIG64 18446744073709551615ull 4020#define BIG32 4294967295ul 4021#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4022#if !BIG_OK 4023 your preprocessor is broken; 4024#endif 4025#if BIG_OK 4026#else 4027 your preprocessor is broken; 4028#endif 4029static long long int bignum = -9223372036854775807LL; 4030static unsigned long long int ubignum = BIG64; 4031 4032struct incomplete_array 4033{ 4034 int datasize; 4035 double data[]; 4036}; 4037 4038struct named_init { 4039 int number; 4040 const wchar_t *name; 4041 double average; 4042}; 4043 4044typedef const char *ccp; 4045 4046static inline int 4047test_restrict (ccp restrict text) 4048{ 4049 // See if C++-style comments work. 4050 // Iterate through items via the restricted pointer. 4051 // Also check for declarations in for loops. 4052 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4053 continue; 4054 return 0; 4055} 4056 4057// Check varargs and va_copy. 4058static void 4059test_varargs (const char *format, ...) 4060{ 4061 va_list args; 4062 va_start (args, format); 4063 va_list args_copy; 4064 va_copy (args_copy, args); 4065 4066 const char *str; 4067 int number; 4068 float fnumber; 4069 4070 while (*format) 4071 { 4072 switch (*format++) 4073 { 4074 case 's': // string 4075 str = va_arg (args_copy, const char *); 4076 break; 4077 case 'd': // int 4078 number = va_arg (args_copy, int); 4079 break; 4080 case 'f': // float 4081 fnumber = va_arg (args_copy, double); 4082 break; 4083 default: 4084 break; 4085 } 4086 } 4087 va_end (args_copy); 4088 va_end (args); 4089} 4090 4091int 4092main () 4093{ 4094 4095 // Check bool. 4096 _Bool success = false; 4097 4098 // Check restrict. 4099 if (test_restrict ("String literal") == 0) 4100 success = true; 4101 char *restrict newvar = "Another string"; 4102 4103 // Check varargs. 4104 test_varargs ("s, d' f .", "string", 65, 34.234); 4105 test_varargs_macros (); 4106 4107 // Check flexible array members. 4108 struct incomplete_array *ia = 4109 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4110 ia->datasize = 10; 4111 for (int i = 0; i < ia->datasize; ++i) 4112 ia->data[i] = i * 1.234; 4113 4114 // Check named initializers. 4115 struct named_init ni = { 4116 .number = 34, 4117 .name = L"Test wide string", 4118 .average = 543.34343, 4119 }; 4120 4121 ni.number = 58; 4122 4123 int dynamic_array[ni.number]; 4124 dynamic_array[ni.number - 1] = 543; 4125 4126 // work around unused variable warnings 4127 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4128 || dynamic_array[ni.number - 1] != 543); 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4135do 4136 CC="$ac_save_CC $ac_arg" 4137 if ac_fn_c_try_compile "$LINENO"; then : 4138 ac_cv_prog_cc_c99=$ac_arg 4139fi 4140rm -f core conftest.err conftest.$ac_objext 4141 test "x$ac_cv_prog_cc_c99" != "xno" && break 4142done 4143rm -f conftest.$ac_ext 4144CC=$ac_save_CC 4145 4146fi 4147# AC_CACHE_VAL 4148case "x$ac_cv_prog_cc_c99" in 4149 x) 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4151$as_echo "none needed" >&6; } ;; 4152 xno) 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4154$as_echo "unsupported" >&6; } ;; 4155 *) 4156 CC="$CC $ac_cv_prog_cc_c99" 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4158$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4159esac 4160if test "x$ac_cv_prog_cc_c99" != xno; then : 4161 4162fi 4163 4164 4165 4166ac_ext=c 4167ac_cpp='$CPP $CPPFLAGS' 4168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4170ac_compiler_gnu=$ac_cv_c_compiler_gnu 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4172$as_echo_n "checking how to run the C preprocessor... " >&6; } 4173# On Suns, sometimes $CPP names a directory. 4174if test -n "$CPP" && test -d "$CPP"; then 4175 CPP= 4176fi 4177if test -z "$CPP"; then 4178 if ${ac_cv_prog_CPP+:} false; then : 4179 $as_echo_n "(cached) " >&6 4180else 4181 # Double quotes because CPP needs to be expanded 4182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4183 do 4184 ac_preproc_ok=false 4185for ac_c_preproc_warn_flag in '' yes 4186do 4187 # Use a header file that comes with gcc, so configuring glibc 4188 # with a fresh cross-compiler works. 4189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4190 # <limits.h> exists even on freestanding compilers. 4191 # On the NeXT, cc -E runs the code through the compiler's parser, 4192 # not just through cpp. "Syntax error" is here to catch this case. 4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4194/* end confdefs.h. */ 4195#ifdef __STDC__ 4196# include <limits.h> 4197#else 4198# include <assert.h> 4199#endif 4200 Syntax error 4201_ACEOF 4202if ac_fn_c_try_cpp "$LINENO"; then : 4203 4204else 4205 # Broken: fails on valid input. 4206continue 4207fi 4208rm -f conftest.err conftest.i conftest.$ac_ext 4209 4210 # OK, works on sane cases. Now check whether nonexistent headers 4211 # can be detected and how. 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213/* end confdefs.h. */ 4214#include <ac_nonexistent.h> 4215_ACEOF 4216if ac_fn_c_try_cpp "$LINENO"; then : 4217 # Broken: success on invalid input. 4218continue 4219else 4220 # Passes both tests. 4221ac_preproc_ok=: 4222break 4223fi 4224rm -f conftest.err conftest.i conftest.$ac_ext 4225 4226done 4227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4228rm -f conftest.i conftest.err conftest.$ac_ext 4229if $ac_preproc_ok; then : 4230 break 4231fi 4232 4233 done 4234 ac_cv_prog_CPP=$CPP 4235 4236fi 4237 CPP=$ac_cv_prog_CPP 4238else 4239 ac_cv_prog_CPP=$CPP 4240fi 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4242$as_echo "$CPP" >&6; } 4243ac_preproc_ok=false 4244for ac_c_preproc_warn_flag in '' yes 4245do 4246 # Use a header file that comes with gcc, so configuring glibc 4247 # with a fresh cross-compiler works. 4248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4249 # <limits.h> exists even on freestanding compilers. 4250 # On the NeXT, cc -E runs the code through the compiler's parser, 4251 # not just through cpp. "Syntax error" is here to catch this case. 4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253/* end confdefs.h. */ 4254#ifdef __STDC__ 4255# include <limits.h> 4256#else 4257# include <assert.h> 4258#endif 4259 Syntax error 4260_ACEOF 4261if ac_fn_c_try_cpp "$LINENO"; then : 4262 4263else 4264 # Broken: fails on valid input. 4265continue 4266fi 4267rm -f conftest.err conftest.i conftest.$ac_ext 4268 4269 # OK, works on sane cases. Now check whether nonexistent headers 4270 # can be detected and how. 4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273#include <ac_nonexistent.h> 4274_ACEOF 4275if ac_fn_c_try_cpp "$LINENO"; then : 4276 # Broken: success on invalid input. 4277continue 4278else 4279 # Passes both tests. 4280ac_preproc_ok=: 4281break 4282fi 4283rm -f conftest.err conftest.i conftest.$ac_ext 4284 4285done 4286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4287rm -f conftest.i conftest.err conftest.$ac_ext 4288if $ac_preproc_ok; then : 4289 4290else 4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4293as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4294See \`config.log' for more details" "$LINENO" 5; } 4295fi 4296 4297ac_ext=c 4298ac_cpp='$CPP $CPPFLAGS' 4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4301ac_compiler_gnu=$ac_cv_c_compiler_gnu 4302 4303 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4305$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4306if ${ac_cv_path_GREP+:} false; then : 4307 $as_echo_n "(cached) " >&6 4308else 4309 if test -z "$GREP"; then 4310 ac_path_GREP_found=false 4311 # Loop through the user's path and test for each of PROGNAME-LIST 4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4314do 4315 IFS=$as_save_IFS 4316 test -z "$as_dir" && as_dir=. 4317 for ac_prog in grep ggrep; do 4318 for ac_exec_ext in '' $ac_executable_extensions; do 4319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4320 as_fn_executable_p "$ac_path_GREP" || continue 4321# Check for GNU ac_path_GREP and select it if it is found. 4322 # Check for GNU $ac_path_GREP 4323case `"$ac_path_GREP" --version 2>&1` in 4324*GNU*) 4325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4326*) 4327 ac_count=0 4328 $as_echo_n 0123456789 >"conftest.in" 4329 while : 4330 do 4331 cat "conftest.in" "conftest.in" >"conftest.tmp" 4332 mv "conftest.tmp" "conftest.in" 4333 cp "conftest.in" "conftest.nl" 4334 $as_echo 'GREP' >> "conftest.nl" 4335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4337 as_fn_arith $ac_count + 1 && ac_count=$as_val 4338 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4339 # Best one so far, save it but keep looking for a better one 4340 ac_cv_path_GREP="$ac_path_GREP" 4341 ac_path_GREP_max=$ac_count 4342 fi 4343 # 10*(2^10) chars as input seems more than enough 4344 test $ac_count -gt 10 && break 4345 done 4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4347esac 4348 4349 $ac_path_GREP_found && break 3 4350 done 4351 done 4352 done 4353IFS=$as_save_IFS 4354 if test -z "$ac_cv_path_GREP"; then 4355 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4356 fi 4357else 4358 ac_cv_path_GREP=$GREP 4359fi 4360 4361fi 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4363$as_echo "$ac_cv_path_GREP" >&6; } 4364 GREP="$ac_cv_path_GREP" 4365 4366 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4368$as_echo_n "checking for egrep... " >&6; } 4369if ${ac_cv_path_EGREP+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4373 then ac_cv_path_EGREP="$GREP -E" 4374 else 4375 if test -z "$EGREP"; then 4376 ac_path_EGREP_found=false 4377 # Loop through the user's path and test for each of PROGNAME-LIST 4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4379for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4380do 4381 IFS=$as_save_IFS 4382 test -z "$as_dir" && as_dir=. 4383 for ac_prog in egrep; do 4384 for ac_exec_ext in '' $ac_executable_extensions; do 4385 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4386 as_fn_executable_p "$ac_path_EGREP" || continue 4387# Check for GNU ac_path_EGREP and select it if it is found. 4388 # Check for GNU $ac_path_EGREP 4389case `"$ac_path_EGREP" --version 2>&1` in 4390*GNU*) 4391 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4392*) 4393 ac_count=0 4394 $as_echo_n 0123456789 >"conftest.in" 4395 while : 4396 do 4397 cat "conftest.in" "conftest.in" >"conftest.tmp" 4398 mv "conftest.tmp" "conftest.in" 4399 cp "conftest.in" "conftest.nl" 4400 $as_echo 'EGREP' >> "conftest.nl" 4401 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4403 as_fn_arith $ac_count + 1 && ac_count=$as_val 4404 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4405 # Best one so far, save it but keep looking for a better one 4406 ac_cv_path_EGREP="$ac_path_EGREP" 4407 ac_path_EGREP_max=$ac_count 4408 fi 4409 # 10*(2^10) chars as input seems more than enough 4410 test $ac_count -gt 10 && break 4411 done 4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4413esac 4414 4415 $ac_path_EGREP_found && break 3 4416 done 4417 done 4418 done 4419IFS=$as_save_IFS 4420 if test -z "$ac_cv_path_EGREP"; then 4421 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4422 fi 4423else 4424 ac_cv_path_EGREP=$EGREP 4425fi 4426 4427 fi 4428fi 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4430$as_echo "$ac_cv_path_EGREP" >&6; } 4431 EGREP="$ac_cv_path_EGREP" 4432 4433 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4435$as_echo_n "checking for ANSI C header files... " >&6; } 4436if ${ac_cv_header_stdc+:} false; then : 4437 $as_echo_n "(cached) " >&6 4438else 4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4440/* end confdefs.h. */ 4441#include <stdlib.h> 4442#include <stdarg.h> 4443#include <string.h> 4444#include <float.h> 4445 4446int 4447main () 4448{ 4449 4450 ; 4451 return 0; 4452} 4453_ACEOF 4454if ac_fn_c_try_compile "$LINENO"; then : 4455 ac_cv_header_stdc=yes 4456else 4457 ac_cv_header_stdc=no 4458fi 4459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4460 4461if test $ac_cv_header_stdc = yes; then 4462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4464/* end confdefs.h. */ 4465#include <string.h> 4466 4467_ACEOF 4468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4469 $EGREP "memchr" >/dev/null 2>&1; then : 4470 4471else 4472 ac_cv_header_stdc=no 4473fi 4474rm -f conftest* 4475 4476fi 4477 4478if test $ac_cv_header_stdc = yes; then 4479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481/* end confdefs.h. */ 4482#include <stdlib.h> 4483 4484_ACEOF 4485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4486 $EGREP "free" >/dev/null 2>&1; then : 4487 4488else 4489 ac_cv_header_stdc=no 4490fi 4491rm -f conftest* 4492 4493fi 4494 4495if test $ac_cv_header_stdc = yes; then 4496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4497 if test "$cross_compiling" = yes; then : 4498 : 4499else 4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4501/* end confdefs.h. */ 4502#include <ctype.h> 4503#include <stdlib.h> 4504#if ((' ' & 0x0FF) == 0x020) 4505# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4506# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4507#else 4508# define ISLOWER(c) \ 4509 (('a' <= (c) && (c) <= 'i') \ 4510 || ('j' <= (c) && (c) <= 'r') \ 4511 || ('s' <= (c) && (c) <= 'z')) 4512# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4513#endif 4514 4515#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4516int 4517main () 4518{ 4519 int i; 4520 for (i = 0; i < 256; i++) 4521 if (XOR (islower (i), ISLOWER (i)) 4522 || toupper (i) != TOUPPER (i)) 4523 return 2; 4524 return 0; 4525} 4526_ACEOF 4527if ac_fn_c_try_run "$LINENO"; then : 4528 4529else 4530 ac_cv_header_stdc=no 4531fi 4532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4533 conftest.$ac_objext conftest.beam conftest.$ac_ext 4534fi 4535 4536fi 4537fi 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4539$as_echo "$ac_cv_header_stdc" >&6; } 4540if test $ac_cv_header_stdc = yes; then 4541 4542$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4543 4544fi 4545 4546# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4547for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4548 inttypes.h stdint.h unistd.h 4549do : 4550 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4551ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4552" 4553if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4554 cat >>confdefs.h <<_ACEOF 4555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4556_ACEOF 4557 4558fi 4559 4560done 4561 4562 4563 4564 4565 4566 4567ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4568if test "x$ac_cv_have_decl___clang__" = xyes; then : 4569 CLANGCC="yes" 4570else 4571 CLANGCC="no" 4572fi 4573 4574ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4575if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4576 INTELCC="yes" 4577else 4578 INTELCC="no" 4579fi 4580 4581ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4582if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4583 SUNCC="yes" 4584else 4585 SUNCC="no" 4586fi 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4597 if test -n "$ac_tool_prefix"; then 4598 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4599set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4601$as_echo_n "checking for $ac_word... " >&6; } 4602if ${ac_cv_path_PKG_CONFIG+:} false; then : 4603 $as_echo_n "(cached) " >&6 4604else 4605 case $PKG_CONFIG in 4606 [\\/]* | ?:[\\/]*) 4607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4608 ;; 4609 *) 4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4611for as_dir in $PATH 4612do 4613 IFS=$as_save_IFS 4614 test -z "$as_dir" && as_dir=. 4615 for ac_exec_ext in '' $ac_executable_extensions; do 4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4619 break 2 4620 fi 4621done 4622 done 4623IFS=$as_save_IFS 4624 4625 ;; 4626esac 4627fi 4628PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4629if test -n "$PKG_CONFIG"; then 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4631$as_echo "$PKG_CONFIG" >&6; } 4632else 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4634$as_echo "no" >&6; } 4635fi 4636 4637 4638fi 4639if test -z "$ac_cv_path_PKG_CONFIG"; then 4640 ac_pt_PKG_CONFIG=$PKG_CONFIG 4641 # Extract the first word of "pkg-config", so it can be a program name with args. 4642set dummy pkg-config; ac_word=$2 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4644$as_echo_n "checking for $ac_word... " >&6; } 4645if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 case $ac_pt_PKG_CONFIG in 4649 [\\/]* | ?:[\\/]*) 4650 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4651 ;; 4652 *) 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_exec_ext in '' $ac_executable_extensions; do 4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4660 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4662 break 2 4663 fi 4664done 4665 done 4666IFS=$as_save_IFS 4667 4668 ;; 4669esac 4670fi 4671ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4672if test -n "$ac_pt_PKG_CONFIG"; then 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4674$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4675else 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4677$as_echo "no" >&6; } 4678fi 4679 4680 if test "x$ac_pt_PKG_CONFIG" = x; then 4681 PKG_CONFIG="" 4682 else 4683 case $cross_compiling:$ac_tool_warned in 4684yes:) 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4687ac_tool_warned=yes ;; 4688esac 4689 PKG_CONFIG=$ac_pt_PKG_CONFIG 4690 fi 4691else 4692 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4693fi 4694 4695fi 4696if test -n "$PKG_CONFIG"; then 4697 _pkg_min_version=0.9.0 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4699$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4700 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4702$as_echo "yes" >&6; } 4703 else 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4705$as_echo "no" >&6; } 4706 PKG_CONFIG="" 4707 fi 4708fi 4709# Make sure we can run config.sub. 4710$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4711 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4712 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4714$as_echo_n "checking build system type... " >&6; } 4715if ${ac_cv_build+:} false; then : 4716 $as_echo_n "(cached) " >&6 4717else 4718 ac_build_alias=$build_alias 4719test "x$ac_build_alias" = x && 4720 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4721test "x$ac_build_alias" = x && 4722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4723ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4725 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4728$as_echo "$ac_cv_build" >&6; } 4729case $ac_cv_build in 4730*-*-*) ;; 4731*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4732esac 4733build=$ac_cv_build 4734ac_save_IFS=$IFS; IFS='-' 4735set x $ac_cv_build 4736shift 4737build_cpu=$1 4738build_vendor=$2 4739shift; shift 4740# Remember, the first character of IFS is used to create $*, 4741# except with old shells: 4742build_os=$* 4743IFS=$ac_save_IFS 4744case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4745 4746 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4748$as_echo_n "checking host system type... " >&6; } 4749if ${ac_cv_host+:} false; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 if test "x$host_alias" = x; then 4753 ac_cv_host=$ac_cv_build 4754else 4755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4757fi 4758 4759fi 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4761$as_echo "$ac_cv_host" >&6; } 4762case $ac_cv_host in 4763*-*-*) ;; 4764*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4765esac 4766host=$ac_cv_host 4767ac_save_IFS=$IFS; IFS='-' 4768set x $ac_cv_host 4769shift 4770host_cpu=$1 4771host_vendor=$2 4772shift; shift 4773# Remember, the first character of IFS is used to create $*, 4774# except with old shells: 4775host_os=$* 4776IFS=$ac_save_IFS 4777case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4778 4779 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4781$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4782if ${ac_cv_path_SED+:} false; then : 4783 $as_echo_n "(cached) " >&6 4784else 4785 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4786 for ac_i in 1 2 3 4 5 6 7; do 4787 ac_script="$ac_script$as_nl$ac_script" 4788 done 4789 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4790 { ac_script=; unset ac_script;} 4791 if test -z "$SED"; then 4792 ac_path_SED_found=false 4793 # Loop through the user's path and test for each of PROGNAME-LIST 4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4795for as_dir in $PATH 4796do 4797 IFS=$as_save_IFS 4798 test -z "$as_dir" && as_dir=. 4799 for ac_prog in sed gsed; do 4800 for ac_exec_ext in '' $ac_executable_extensions; do 4801 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4802 as_fn_executable_p "$ac_path_SED" || continue 4803# Check for GNU ac_path_SED and select it if it is found. 4804 # Check for GNU $ac_path_SED 4805case `"$ac_path_SED" --version 2>&1` in 4806*GNU*) 4807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4808*) 4809 ac_count=0 4810 $as_echo_n 0123456789 >"conftest.in" 4811 while : 4812 do 4813 cat "conftest.in" "conftest.in" >"conftest.tmp" 4814 mv "conftest.tmp" "conftest.in" 4815 cp "conftest.in" "conftest.nl" 4816 $as_echo '' >> "conftest.nl" 4817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4819 as_fn_arith $ac_count + 1 && ac_count=$as_val 4820 if test $ac_count -gt ${ac_path_SED_max-0}; then 4821 # Best one so far, save it but keep looking for a better one 4822 ac_cv_path_SED="$ac_path_SED" 4823 ac_path_SED_max=$ac_count 4824 fi 4825 # 10*(2^10) chars as input seems more than enough 4826 test $ac_count -gt 10 && break 4827 done 4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4829esac 4830 4831 $ac_path_SED_found && break 3 4832 done 4833 done 4834 done 4835IFS=$as_save_IFS 4836 if test -z "$ac_cv_path_SED"; then 4837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4838 fi 4839else 4840 ac_cv_path_SED=$SED 4841fi 4842 4843fi 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4845$as_echo "$ac_cv_path_SED" >&6; } 4846 SED="$ac_cv_path_SED" 4847 rm -f conftest.sed 4848 4849 4850 4851 4852 4853 4854# Check whether --enable-selective-werror was given. 4855if test "${enable_selective_werror+set}" = set; then : 4856 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4857else 4858 SELECTIVE_WERROR=yes 4859fi 4860 4861 4862 4863 4864 4865# -v is too short to test reliably with XORG_TESTSET_CFLAG 4866if test "x$SUNCC" = "xyes"; then 4867 BASE_CFLAGS="-v" 4868else 4869 BASE_CFLAGS="" 4870fi 4871 4872# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886xorg_testset_save_CFLAGS="$CFLAGS" 4887 4888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4893 $as_echo_n "(cached) " >&6 4894else 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896/* end confdefs.h. */ 4897int i; 4898_ACEOF 4899if ac_fn_c_try_compile "$LINENO"; then : 4900 xorg_cv_cc_flag_unknown_warning_option=yes 4901else 4902 xorg_cv_cc_flag_unknown_warning_option=no 4903fi 4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4905fi 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4909 CFLAGS="$xorg_testset_save_CFLAGS" 4910fi 4911 4912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4915 fi 4916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924int i; 4925_ACEOF 4926if ac_fn_c_try_compile "$LINENO"; then : 4927 xorg_cv_cc_flag_unused_command_line_argument=yes 4928else 4929 xorg_cv_cc_flag_unused_command_line_argument=no 4930fi 4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4932fi 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4936 CFLAGS="$xorg_testset_save_CFLAGS" 4937fi 4938 4939found="no" 4940 4941 if test $found = "no" ; then 4942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4944 fi 4945 4946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4948 fi 4949 4950 CFLAGS="$CFLAGS -Wall" 4951 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4953$as_echo_n "checking if $CC supports -Wall... " >&6; } 4954 cacheid=xorg_cv_cc_flag__Wall 4955 if eval \${$cacheid+:} false; then : 4956 $as_echo_n "(cached) " >&6 4957else 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959/* end confdefs.h. */ 4960int i; 4961int 4962main () 4963{ 4964 4965 ; 4966 return 0; 4967} 4968_ACEOF 4969if ac_fn_c_try_link "$LINENO"; then : 4970 eval $cacheid=yes 4971else 4972 eval $cacheid=no 4973fi 4974rm -f core conftest.err conftest.$ac_objext \ 4975 conftest$ac_exeext conftest.$ac_ext 4976fi 4977 4978 4979 CFLAGS="$xorg_testset_save_CFLAGS" 4980 4981 eval supported=\$$cacheid 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4983$as_echo "$supported" >&6; } 4984 if test "$supported" = "yes" ; then 4985 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4986 found="yes" 4987 fi 4988 fi 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004xorg_testset_save_CFLAGS="$CFLAGS" 5005 5006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014/* end confdefs.h. */ 5015int i; 5016_ACEOF 5017if ac_fn_c_try_compile "$LINENO"; then : 5018 xorg_cv_cc_flag_unknown_warning_option=yes 5019else 5020 xorg_cv_cc_flag_unknown_warning_option=no 5021fi 5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5023fi 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5027 CFLAGS="$xorg_testset_save_CFLAGS" 5028fi 5029 5030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5033 fi 5034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041/* end confdefs.h. */ 5042int i; 5043_ACEOF 5044if ac_fn_c_try_compile "$LINENO"; then : 5045 xorg_cv_cc_flag_unused_command_line_argument=yes 5046else 5047 xorg_cv_cc_flag_unused_command_line_argument=no 5048fi 5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5050fi 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5054 CFLAGS="$xorg_testset_save_CFLAGS" 5055fi 5056 5057found="no" 5058 5059 if test $found = "no" ; then 5060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5062 fi 5063 5064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5066 fi 5067 5068 CFLAGS="$CFLAGS -Wpointer-arith" 5069 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5071$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5072 cacheid=xorg_cv_cc_flag__Wpointer_arith 5073 if eval \${$cacheid+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5077/* end confdefs.h. */ 5078int i; 5079int 5080main () 5081{ 5082 5083 ; 5084 return 0; 5085} 5086_ACEOF 5087if ac_fn_c_try_link "$LINENO"; then : 5088 eval $cacheid=yes 5089else 5090 eval $cacheid=no 5091fi 5092rm -f core conftest.err conftest.$ac_objext \ 5093 conftest$ac_exeext conftest.$ac_ext 5094fi 5095 5096 5097 CFLAGS="$xorg_testset_save_CFLAGS" 5098 5099 eval supported=\$$cacheid 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5101$as_echo "$supported" >&6; } 5102 if test "$supported" = "yes" ; then 5103 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5104 found="yes" 5105 fi 5106 fi 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122xorg_testset_save_CFLAGS="$CFLAGS" 5123 5124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130else 5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132/* end confdefs.h. */ 5133int i; 5134_ACEOF 5135if ac_fn_c_try_compile "$LINENO"; then : 5136 xorg_cv_cc_flag_unknown_warning_option=yes 5137else 5138 xorg_cv_cc_flag_unknown_warning_option=no 5139fi 5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5141fi 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5145 CFLAGS="$xorg_testset_save_CFLAGS" 5146fi 5147 5148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5151 fi 5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5156 $as_echo_n "(cached) " >&6 5157else 5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159/* end confdefs.h. */ 5160int i; 5161_ACEOF 5162if ac_fn_c_try_compile "$LINENO"; then : 5163 xorg_cv_cc_flag_unused_command_line_argument=yes 5164else 5165 xorg_cv_cc_flag_unused_command_line_argument=no 5166fi 5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5168fi 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5172 CFLAGS="$xorg_testset_save_CFLAGS" 5173fi 5174 5175found="no" 5176 5177 if test $found = "no" ; then 5178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5180 fi 5181 5182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5184 fi 5185 5186 CFLAGS="$CFLAGS -Wmissing-declarations" 5187 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5189$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5190 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5191 if eval \${$cacheid+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5195/* end confdefs.h. */ 5196int i; 5197int 5198main () 5199{ 5200 5201 ; 5202 return 0; 5203} 5204_ACEOF 5205if ac_fn_c_try_link "$LINENO"; then : 5206 eval $cacheid=yes 5207else 5208 eval $cacheid=no 5209fi 5210rm -f core conftest.err conftest.$ac_objext \ 5211 conftest$ac_exeext conftest.$ac_ext 5212fi 5213 5214 5215 CFLAGS="$xorg_testset_save_CFLAGS" 5216 5217 eval supported=\$$cacheid 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5219$as_echo "$supported" >&6; } 5220 if test "$supported" = "yes" ; then 5221 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5222 found="yes" 5223 fi 5224 fi 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240xorg_testset_save_CFLAGS="$CFLAGS" 5241 5242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5250/* end confdefs.h. */ 5251int i; 5252_ACEOF 5253if ac_fn_c_try_compile "$LINENO"; then : 5254 xorg_cv_cc_flag_unknown_warning_option=yes 5255else 5256 xorg_cv_cc_flag_unknown_warning_option=no 5257fi 5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5259fi 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5263 CFLAGS="$xorg_testset_save_CFLAGS" 5264fi 5265 5266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5269 fi 5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277/* end confdefs.h. */ 5278int i; 5279_ACEOF 5280if ac_fn_c_try_compile "$LINENO"; then : 5281 xorg_cv_cc_flag_unused_command_line_argument=yes 5282else 5283 xorg_cv_cc_flag_unused_command_line_argument=no 5284fi 5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5286fi 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291fi 5292 5293found="no" 5294 5295 if test $found = "no" ; then 5296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5298 fi 5299 5300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5302 fi 5303 5304 CFLAGS="$CFLAGS -Wformat=2" 5305 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5307$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5308 cacheid=xorg_cv_cc_flag__Wformat_2 5309 if eval \${$cacheid+:} false; then : 5310 $as_echo_n "(cached) " >&6 5311else 5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5313/* end confdefs.h. */ 5314int i; 5315int 5316main () 5317{ 5318 5319 ; 5320 return 0; 5321} 5322_ACEOF 5323if ac_fn_c_try_link "$LINENO"; then : 5324 eval $cacheid=yes 5325else 5326 eval $cacheid=no 5327fi 5328rm -f core conftest.err conftest.$ac_objext \ 5329 conftest$ac_exeext conftest.$ac_ext 5330fi 5331 5332 5333 CFLAGS="$xorg_testset_save_CFLAGS" 5334 5335 eval supported=\$$cacheid 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5337$as_echo "$supported" >&6; } 5338 if test "$supported" = "yes" ; then 5339 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5340 found="yes" 5341 fi 5342 fi 5343 5344 if test $found = "no" ; then 5345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5347 fi 5348 5349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5351 fi 5352 5353 CFLAGS="$CFLAGS -Wformat" 5354 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5356$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5357 cacheid=xorg_cv_cc_flag__Wformat 5358 if eval \${$cacheid+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5362/* end confdefs.h. */ 5363int i; 5364int 5365main () 5366{ 5367 5368 ; 5369 return 0; 5370} 5371_ACEOF 5372if ac_fn_c_try_link "$LINENO"; then : 5373 eval $cacheid=yes 5374else 5375 eval $cacheid=no 5376fi 5377rm -f core conftest.err conftest.$ac_objext \ 5378 conftest$ac_exeext conftest.$ac_ext 5379fi 5380 5381 5382 CFLAGS="$xorg_testset_save_CFLAGS" 5383 5384 eval supported=\$$cacheid 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5386$as_echo "$supported" >&6; } 5387 if test "$supported" = "yes" ; then 5388 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5389 found="yes" 5390 fi 5391 fi 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409xorg_testset_save_CFLAGS="$CFLAGS" 5410 5411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420int i; 5421_ACEOF 5422if ac_fn_c_try_compile "$LINENO"; then : 5423 xorg_cv_cc_flag_unknown_warning_option=yes 5424else 5425 xorg_cv_cc_flag_unknown_warning_option=no 5426fi 5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5428fi 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433fi 5434 5435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5438 fi 5439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447int i; 5448_ACEOF 5449if ac_fn_c_try_compile "$LINENO"; then : 5450 xorg_cv_cc_flag_unused_command_line_argument=yes 5451else 5452 xorg_cv_cc_flag_unused_command_line_argument=no 5453fi 5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5459 CFLAGS="$xorg_testset_save_CFLAGS" 5460fi 5461 5462found="no" 5463 5464 if test $found = "no" ; then 5465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5467 fi 5468 5469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5471 fi 5472 5473 CFLAGS="$CFLAGS -Wstrict-prototypes" 5474 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5476$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5477 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5478 if eval \${$cacheid+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483int i; 5484int 5485main () 5486{ 5487 5488 ; 5489 return 0; 5490} 5491_ACEOF 5492if ac_fn_c_try_link "$LINENO"; then : 5493 eval $cacheid=yes 5494else 5495 eval $cacheid=no 5496fi 5497rm -f core conftest.err conftest.$ac_objext \ 5498 conftest$ac_exeext conftest.$ac_ext 5499fi 5500 5501 5502 CFLAGS="$xorg_testset_save_CFLAGS" 5503 5504 eval supported=\$$cacheid 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5506$as_echo "$supported" >&6; } 5507 if test "$supported" = "yes" ; then 5508 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5509 found="yes" 5510 fi 5511 fi 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527xorg_testset_save_CFLAGS="$CFLAGS" 5528 5529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538int i; 5539_ACEOF 5540if ac_fn_c_try_compile "$LINENO"; then : 5541 xorg_cv_cc_flag_unknown_warning_option=yes 5542else 5543 xorg_cv_cc_flag_unknown_warning_option=no 5544fi 5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5550 CFLAGS="$xorg_testset_save_CFLAGS" 5551fi 5552 5553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5556 fi 5557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5561 $as_echo_n "(cached) " >&6 5562else 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565int i; 5566_ACEOF 5567if ac_fn_c_try_compile "$LINENO"; then : 5568 xorg_cv_cc_flag_unused_command_line_argument=yes 5569else 5570 xorg_cv_cc_flag_unused_command_line_argument=no 5571fi 5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5573fi 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5577 CFLAGS="$xorg_testset_save_CFLAGS" 5578fi 5579 5580found="no" 5581 5582 if test $found = "no" ; then 5583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5585 fi 5586 5587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5589 fi 5590 5591 CFLAGS="$CFLAGS -Wmissing-prototypes" 5592 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5594$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5595 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5596 if eval \${$cacheid+:} false; then : 5597 $as_echo_n "(cached) " >&6 5598else 5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5600/* end confdefs.h. */ 5601int i; 5602int 5603main () 5604{ 5605 5606 ; 5607 return 0; 5608} 5609_ACEOF 5610if ac_fn_c_try_link "$LINENO"; then : 5611 eval $cacheid=yes 5612else 5613 eval $cacheid=no 5614fi 5615rm -f core conftest.err conftest.$ac_objext \ 5616 conftest$ac_exeext conftest.$ac_ext 5617fi 5618 5619 5620 CFLAGS="$xorg_testset_save_CFLAGS" 5621 5622 eval supported=\$$cacheid 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5624$as_echo "$supported" >&6; } 5625 if test "$supported" = "yes" ; then 5626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5627 found="yes" 5628 fi 5629 fi 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645xorg_testset_save_CFLAGS="$CFLAGS" 5646 5647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653else 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656int i; 5657_ACEOF 5658if ac_fn_c_try_compile "$LINENO"; then : 5659 xorg_cv_cc_flag_unknown_warning_option=yes 5660else 5661 xorg_cv_cc_flag_unknown_warning_option=no 5662fi 5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5664fi 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5668 CFLAGS="$xorg_testset_save_CFLAGS" 5669fi 5670 5671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5674 fi 5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5682/* end confdefs.h. */ 5683int i; 5684_ACEOF 5685if ac_fn_c_try_compile "$LINENO"; then : 5686 xorg_cv_cc_flag_unused_command_line_argument=yes 5687else 5688 xorg_cv_cc_flag_unused_command_line_argument=no 5689fi 5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5691fi 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5695 CFLAGS="$xorg_testset_save_CFLAGS" 5696fi 5697 5698found="no" 5699 5700 if test $found = "no" ; then 5701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5703 fi 5704 5705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5707 fi 5708 5709 CFLAGS="$CFLAGS -Wnested-externs" 5710 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5712$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5713 cacheid=xorg_cv_cc_flag__Wnested_externs 5714 if eval \${$cacheid+:} false; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718/* end confdefs.h. */ 5719int i; 5720int 5721main () 5722{ 5723 5724 ; 5725 return 0; 5726} 5727_ACEOF 5728if ac_fn_c_try_link "$LINENO"; then : 5729 eval $cacheid=yes 5730else 5731 eval $cacheid=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext \ 5734 conftest$ac_exeext conftest.$ac_ext 5735fi 5736 5737 5738 CFLAGS="$xorg_testset_save_CFLAGS" 5739 5740 eval supported=\$$cacheid 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5742$as_echo "$supported" >&6; } 5743 if test "$supported" = "yes" ; then 5744 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5745 found="yes" 5746 fi 5747 fi 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763xorg_testset_save_CFLAGS="$CFLAGS" 5764 5765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5770 $as_echo_n "(cached) " >&6 5771else 5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5773/* end confdefs.h. */ 5774int i; 5775_ACEOF 5776if ac_fn_c_try_compile "$LINENO"; then : 5777 xorg_cv_cc_flag_unknown_warning_option=yes 5778else 5779 xorg_cv_cc_flag_unknown_warning_option=no 5780fi 5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5782fi 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5786 CFLAGS="$xorg_testset_save_CFLAGS" 5787fi 5788 5789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5792 fi 5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5797 $as_echo_n "(cached) " >&6 5798else 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801int i; 5802_ACEOF 5803if ac_fn_c_try_compile "$LINENO"; then : 5804 xorg_cv_cc_flag_unused_command_line_argument=yes 5805else 5806 xorg_cv_cc_flag_unused_command_line_argument=no 5807fi 5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5809fi 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814fi 5815 5816found="no" 5817 5818 if test $found = "no" ; then 5819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5821 fi 5822 5823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5825 fi 5826 5827 CFLAGS="$CFLAGS -Wbad-function-cast" 5828 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5830$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5831 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5832 if eval \${$cacheid+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836/* end confdefs.h. */ 5837int i; 5838int 5839main () 5840{ 5841 5842 ; 5843 return 0; 5844} 5845_ACEOF 5846if ac_fn_c_try_link "$LINENO"; then : 5847 eval $cacheid=yes 5848else 5849 eval $cacheid=no 5850fi 5851rm -f core conftest.err conftest.$ac_objext \ 5852 conftest$ac_exeext conftest.$ac_ext 5853fi 5854 5855 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5857 5858 eval supported=\$$cacheid 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5860$as_echo "$supported" >&6; } 5861 if test "$supported" = "yes" ; then 5862 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5863 found="yes" 5864 fi 5865 fi 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881xorg_testset_save_CFLAGS="$CFLAGS" 5882 5883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5888 $as_echo_n "(cached) " >&6 5889else 5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5891/* end confdefs.h. */ 5892int i; 5893_ACEOF 5894if ac_fn_c_try_compile "$LINENO"; then : 5895 xorg_cv_cc_flag_unknown_warning_option=yes 5896else 5897 xorg_cv_cc_flag_unknown_warning_option=no 5898fi 5899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5900fi 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5904 CFLAGS="$xorg_testset_save_CFLAGS" 5905fi 5906 5907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5910 fi 5911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916else 5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5918/* end confdefs.h. */ 5919int i; 5920_ACEOF 5921if ac_fn_c_try_compile "$LINENO"; then : 5922 xorg_cv_cc_flag_unused_command_line_argument=yes 5923else 5924 xorg_cv_cc_flag_unused_command_line_argument=no 5925fi 5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5927fi 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5931 CFLAGS="$xorg_testset_save_CFLAGS" 5932fi 5933 5934found="no" 5935 5936 if test $found = "no" ; then 5937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5939 fi 5940 5941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5943 fi 5944 5945 CFLAGS="$CFLAGS -Wold-style-definition" 5946 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5948$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5949 cacheid=xorg_cv_cc_flag__Wold_style_definition 5950 if eval \${$cacheid+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952else 5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5954/* end confdefs.h. */ 5955int i; 5956int 5957main () 5958{ 5959 5960 ; 5961 return 0; 5962} 5963_ACEOF 5964if ac_fn_c_try_link "$LINENO"; then : 5965 eval $cacheid=yes 5966else 5967 eval $cacheid=no 5968fi 5969rm -f core conftest.err conftest.$ac_objext \ 5970 conftest$ac_exeext conftest.$ac_ext 5971fi 5972 5973 5974 CFLAGS="$xorg_testset_save_CFLAGS" 5975 5976 eval supported=\$$cacheid 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5978$as_echo "$supported" >&6; } 5979 if test "$supported" = "yes" ; then 5980 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5981 found="yes" 5982 fi 5983 fi 5984 5985 if test $found = "no" ; then 5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 fi 5989 5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5992 fi 5993 5994 CFLAGS="$CFLAGS -fd" 5995 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5997$as_echo_n "checking if $CC supports -fd... " >&6; } 5998 cacheid=xorg_cv_cc_flag__fd 5999 if eval \${$cacheid+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6003/* end confdefs.h. */ 6004int i; 6005int 6006main () 6007{ 6008 6009 ; 6010 return 0; 6011} 6012_ACEOF 6013if ac_fn_c_try_link "$LINENO"; then : 6014 eval $cacheid=yes 6015else 6016 eval $cacheid=no 6017fi 6018rm -f core conftest.err conftest.$ac_objext \ 6019 conftest$ac_exeext conftest.$ac_ext 6020fi 6021 6022 6023 CFLAGS="$xorg_testset_save_CFLAGS" 6024 6025 eval supported=\$$cacheid 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6027$as_echo "$supported" >&6; } 6028 if test "$supported" = "yes" ; then 6029 BASE_CFLAGS="$BASE_CFLAGS -fd" 6030 found="yes" 6031 fi 6032 fi 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048xorg_testset_save_CFLAGS="$CFLAGS" 6049 6050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6055 $as_echo_n "(cached) " >&6 6056else 6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6058/* end confdefs.h. */ 6059int i; 6060_ACEOF 6061if ac_fn_c_try_compile "$LINENO"; then : 6062 xorg_cv_cc_flag_unknown_warning_option=yes 6063else 6064 xorg_cv_cc_flag_unknown_warning_option=no 6065fi 6066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6067fi 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6071 CFLAGS="$xorg_testset_save_CFLAGS" 6072fi 6073 6074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6077 fi 6078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6082 $as_echo_n "(cached) " >&6 6083else 6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085/* end confdefs.h. */ 6086int i; 6087_ACEOF 6088if ac_fn_c_try_compile "$LINENO"; then : 6089 xorg_cv_cc_flag_unused_command_line_argument=yes 6090else 6091 xorg_cv_cc_flag_unused_command_line_argument=no 6092fi 6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6094fi 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6098 CFLAGS="$xorg_testset_save_CFLAGS" 6099fi 6100 6101found="no" 6102 6103 if test $found = "no" ; then 6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6106 fi 6107 6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6110 fi 6111 6112 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6113 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6115$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6116 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6117 if eval \${$cacheid+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119else 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121/* end confdefs.h. */ 6122int i; 6123int 6124main () 6125{ 6126 6127 ; 6128 return 0; 6129} 6130_ACEOF 6131if ac_fn_c_try_link "$LINENO"; then : 6132 eval $cacheid=yes 6133else 6134 eval $cacheid=no 6135fi 6136rm -f core conftest.err conftest.$ac_objext \ 6137 conftest$ac_exeext conftest.$ac_ext 6138fi 6139 6140 6141 CFLAGS="$xorg_testset_save_CFLAGS" 6142 6143 eval supported=\$$cacheid 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6145$as_echo "$supported" >&6; } 6146 if test "$supported" = "yes" ; then 6147 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6148 found="yes" 6149 fi 6150 fi 6151 6152 6153 6154 6155 6156# This chunk adds additional warnings that could catch undesired effects. 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170xorg_testset_save_CFLAGS="$CFLAGS" 6171 6172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178else 6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6180/* end confdefs.h. */ 6181int i; 6182_ACEOF 6183if ac_fn_c_try_compile "$LINENO"; then : 6184 xorg_cv_cc_flag_unknown_warning_option=yes 6185else 6186 xorg_cv_cc_flag_unknown_warning_option=no 6187fi 6188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6189fi 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6193 CFLAGS="$xorg_testset_save_CFLAGS" 6194fi 6195 6196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6199 fi 6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6204 $as_echo_n "(cached) " >&6 6205else 6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6207/* end confdefs.h. */ 6208int i; 6209_ACEOF 6210if ac_fn_c_try_compile "$LINENO"; then : 6211 xorg_cv_cc_flag_unused_command_line_argument=yes 6212else 6213 xorg_cv_cc_flag_unused_command_line_argument=no 6214fi 6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6216fi 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6220 CFLAGS="$xorg_testset_save_CFLAGS" 6221fi 6222 6223found="no" 6224 6225 if test $found = "no" ; then 6226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6228 fi 6229 6230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6232 fi 6233 6234 CFLAGS="$CFLAGS -Wunused" 6235 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6237$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6238 cacheid=xorg_cv_cc_flag__Wunused 6239 if eval \${$cacheid+:} false; then : 6240 $as_echo_n "(cached) " >&6 6241else 6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243/* end confdefs.h. */ 6244int i; 6245int 6246main () 6247{ 6248 6249 ; 6250 return 0; 6251} 6252_ACEOF 6253if ac_fn_c_try_link "$LINENO"; then : 6254 eval $cacheid=yes 6255else 6256 eval $cacheid=no 6257fi 6258rm -f core conftest.err conftest.$ac_objext \ 6259 conftest$ac_exeext conftest.$ac_ext 6260fi 6261 6262 6263 CFLAGS="$xorg_testset_save_CFLAGS" 6264 6265 eval supported=\$$cacheid 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6267$as_echo "$supported" >&6; } 6268 if test "$supported" = "yes" ; then 6269 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6270 found="yes" 6271 fi 6272 fi 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288xorg_testset_save_CFLAGS="$CFLAGS" 6289 6290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298/* end confdefs.h. */ 6299int i; 6300_ACEOF 6301if ac_fn_c_try_compile "$LINENO"; then : 6302 xorg_cv_cc_flag_unknown_warning_option=yes 6303else 6304 xorg_cv_cc_flag_unknown_warning_option=no 6305fi 6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6307fi 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6311 CFLAGS="$xorg_testset_save_CFLAGS" 6312fi 6313 6314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6317 fi 6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6325/* end confdefs.h. */ 6326int i; 6327_ACEOF 6328if ac_fn_c_try_compile "$LINENO"; then : 6329 xorg_cv_cc_flag_unused_command_line_argument=yes 6330else 6331 xorg_cv_cc_flag_unused_command_line_argument=no 6332fi 6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6334fi 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6338 CFLAGS="$xorg_testset_save_CFLAGS" 6339fi 6340 6341found="no" 6342 6343 if test $found = "no" ; then 6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6346 fi 6347 6348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6350 fi 6351 6352 CFLAGS="$CFLAGS -Wuninitialized" 6353 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6355$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6356 cacheid=xorg_cv_cc_flag__Wuninitialized 6357 if eval \${$cacheid+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361/* end confdefs.h. */ 6362int i; 6363int 6364main () 6365{ 6366 6367 ; 6368 return 0; 6369} 6370_ACEOF 6371if ac_fn_c_try_link "$LINENO"; then : 6372 eval $cacheid=yes 6373else 6374 eval $cacheid=no 6375fi 6376rm -f core conftest.err conftest.$ac_objext \ 6377 conftest$ac_exeext conftest.$ac_ext 6378fi 6379 6380 6381 CFLAGS="$xorg_testset_save_CFLAGS" 6382 6383 eval supported=\$$cacheid 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6385$as_echo "$supported" >&6; } 6386 if test "$supported" = "yes" ; then 6387 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6388 found="yes" 6389 fi 6390 fi 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406xorg_testset_save_CFLAGS="$CFLAGS" 6407 6408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6416/* end confdefs.h. */ 6417int i; 6418_ACEOF 6419if ac_fn_c_try_compile "$LINENO"; then : 6420 xorg_cv_cc_flag_unknown_warning_option=yes 6421else 6422 xorg_cv_cc_flag_unknown_warning_option=no 6423fi 6424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6425fi 6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6429 CFLAGS="$xorg_testset_save_CFLAGS" 6430fi 6431 6432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 fi 6436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6443/* end confdefs.h. */ 6444int i; 6445_ACEOF 6446if ac_fn_c_try_compile "$LINENO"; then : 6447 xorg_cv_cc_flag_unused_command_line_argument=yes 6448else 6449 xorg_cv_cc_flag_unused_command_line_argument=no 6450fi 6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6452fi 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6456 CFLAGS="$xorg_testset_save_CFLAGS" 6457fi 6458 6459found="no" 6460 6461 if test $found = "no" ; then 6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6464 fi 6465 6466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6468 fi 6469 6470 CFLAGS="$CFLAGS -Wshadow" 6471 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6473$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6474 cacheid=xorg_cv_cc_flag__Wshadow 6475 if eval \${$cacheid+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479/* end confdefs.h. */ 6480int i; 6481int 6482main () 6483{ 6484 6485 ; 6486 return 0; 6487} 6488_ACEOF 6489if ac_fn_c_try_link "$LINENO"; then : 6490 eval $cacheid=yes 6491else 6492 eval $cacheid=no 6493fi 6494rm -f core conftest.err conftest.$ac_objext \ 6495 conftest$ac_exeext conftest.$ac_ext 6496fi 6497 6498 6499 CFLAGS="$xorg_testset_save_CFLAGS" 6500 6501 eval supported=\$$cacheid 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6503$as_echo "$supported" >&6; } 6504 if test "$supported" = "yes" ; then 6505 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6506 found="yes" 6507 fi 6508 fi 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524xorg_testset_save_CFLAGS="$CFLAGS" 6525 6526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6531 $as_echo_n "(cached) " >&6 6532else 6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6534/* end confdefs.h. */ 6535int i; 6536_ACEOF 6537if ac_fn_c_try_compile "$LINENO"; then : 6538 xorg_cv_cc_flag_unknown_warning_option=yes 6539else 6540 xorg_cv_cc_flag_unknown_warning_option=no 6541fi 6542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6543fi 6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6547 CFLAGS="$xorg_testset_save_CFLAGS" 6548fi 6549 6550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6553 fi 6554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6561/* end confdefs.h. */ 6562int i; 6563_ACEOF 6564if ac_fn_c_try_compile "$LINENO"; then : 6565 xorg_cv_cc_flag_unused_command_line_argument=yes 6566else 6567 xorg_cv_cc_flag_unused_command_line_argument=no 6568fi 6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6570fi 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6574 CFLAGS="$xorg_testset_save_CFLAGS" 6575fi 6576 6577found="no" 6578 6579 if test $found = "no" ; then 6580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6582 fi 6583 6584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6586 fi 6587 6588 CFLAGS="$CFLAGS -Wmissing-noreturn" 6589 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6591$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6592 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6593 if eval \${$cacheid+:} false; then : 6594 $as_echo_n "(cached) " >&6 6595else 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597/* end confdefs.h. */ 6598int i; 6599int 6600main () 6601{ 6602 6603 ; 6604 return 0; 6605} 6606_ACEOF 6607if ac_fn_c_try_link "$LINENO"; then : 6608 eval $cacheid=yes 6609else 6610 eval $cacheid=no 6611fi 6612rm -f core conftest.err conftest.$ac_objext \ 6613 conftest$ac_exeext conftest.$ac_ext 6614fi 6615 6616 6617 CFLAGS="$xorg_testset_save_CFLAGS" 6618 6619 eval supported=\$$cacheid 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6621$as_echo "$supported" >&6; } 6622 if test "$supported" = "yes" ; then 6623 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6624 found="yes" 6625 fi 6626 fi 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642xorg_testset_save_CFLAGS="$CFLAGS" 6643 6644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6649 $as_echo_n "(cached) " >&6 6650else 6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652/* end confdefs.h. */ 6653int i; 6654_ACEOF 6655if ac_fn_c_try_compile "$LINENO"; then : 6656 xorg_cv_cc_flag_unknown_warning_option=yes 6657else 6658 xorg_cv_cc_flag_unknown_warning_option=no 6659fi 6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6661fi 6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6665 CFLAGS="$xorg_testset_save_CFLAGS" 6666fi 6667 6668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6671 fi 6672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6676 $as_echo_n "(cached) " >&6 6677else 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680int i; 6681_ACEOF 6682if ac_fn_c_try_compile "$LINENO"; then : 6683 xorg_cv_cc_flag_unused_command_line_argument=yes 6684else 6685 xorg_cv_cc_flag_unused_command_line_argument=no 6686fi 6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6688fi 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693fi 6694 6695found="no" 6696 6697 if test $found = "no" ; then 6698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6700 fi 6701 6702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6704 fi 6705 6706 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6707 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6709$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6710 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6711 if eval \${$cacheid+:} false; then : 6712 $as_echo_n "(cached) " >&6 6713else 6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715/* end confdefs.h. */ 6716int i; 6717int 6718main () 6719{ 6720 6721 ; 6722 return 0; 6723} 6724_ACEOF 6725if ac_fn_c_try_link "$LINENO"; then : 6726 eval $cacheid=yes 6727else 6728 eval $cacheid=no 6729fi 6730rm -f core conftest.err conftest.$ac_objext \ 6731 conftest$ac_exeext conftest.$ac_ext 6732fi 6733 6734 6735 CFLAGS="$xorg_testset_save_CFLAGS" 6736 6737 eval supported=\$$cacheid 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6739$as_echo "$supported" >&6; } 6740 if test "$supported" = "yes" ; then 6741 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6742 found="yes" 6743 fi 6744 fi 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760xorg_testset_save_CFLAGS="$CFLAGS" 6761 6762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6770/* end confdefs.h. */ 6771int i; 6772_ACEOF 6773if ac_fn_c_try_compile "$LINENO"; then : 6774 xorg_cv_cc_flag_unknown_warning_option=yes 6775else 6776 xorg_cv_cc_flag_unknown_warning_option=no 6777fi 6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6779fi 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6783 CFLAGS="$xorg_testset_save_CFLAGS" 6784fi 6785 6786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6789 fi 6790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797/* end confdefs.h. */ 6798int i; 6799_ACEOF 6800if ac_fn_c_try_compile "$LINENO"; then : 6801 xorg_cv_cc_flag_unused_command_line_argument=yes 6802else 6803 xorg_cv_cc_flag_unused_command_line_argument=no 6804fi 6805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6806fi 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6810 CFLAGS="$xorg_testset_save_CFLAGS" 6811fi 6812 6813found="no" 6814 6815 if test $found = "no" ; then 6816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6818 fi 6819 6820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6822 fi 6823 6824 CFLAGS="$CFLAGS -Wredundant-decls" 6825 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6827$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6828 cacheid=xorg_cv_cc_flag__Wredundant_decls 6829 if eval \${$cacheid+:} false; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6833/* end confdefs.h. */ 6834int i; 6835int 6836main () 6837{ 6838 6839 ; 6840 return 0; 6841} 6842_ACEOF 6843if ac_fn_c_try_link "$LINENO"; then : 6844 eval $cacheid=yes 6845else 6846 eval $cacheid=no 6847fi 6848rm -f core conftest.err conftest.$ac_objext \ 6849 conftest$ac_exeext conftest.$ac_ext 6850fi 6851 6852 6853 CFLAGS="$xorg_testset_save_CFLAGS" 6854 6855 eval supported=\$$cacheid 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6857$as_echo "$supported" >&6; } 6858 if test "$supported" = "yes" ; then 6859 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6860 found="yes" 6861 fi 6862 fi 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878xorg_testset_save_CFLAGS="$CFLAGS" 6879 6880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6888/* end confdefs.h. */ 6889int i; 6890_ACEOF 6891if ac_fn_c_try_compile "$LINENO"; then : 6892 xorg_cv_cc_flag_unknown_warning_option=yes 6893else 6894 xorg_cv_cc_flag_unknown_warning_option=no 6895fi 6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6897fi 6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6901 CFLAGS="$xorg_testset_save_CFLAGS" 6902fi 6903 6904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6907 fi 6908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913else 6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6915/* end confdefs.h. */ 6916int i; 6917_ACEOF 6918if ac_fn_c_try_compile "$LINENO"; then : 6919 xorg_cv_cc_flag_unused_command_line_argument=yes 6920else 6921 xorg_cv_cc_flag_unused_command_line_argument=no 6922fi 6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6924fi 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6928 CFLAGS="$xorg_testset_save_CFLAGS" 6929fi 6930 6931found="no" 6932 6933 if test $found = "no" ; then 6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6936 fi 6937 6938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6940 fi 6941 6942 CFLAGS="$CFLAGS -Wlogical-op" 6943 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6945$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6946 cacheid=xorg_cv_cc_flag__Wlogical_op 6947 if eval \${$cacheid+:} false; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952int i; 6953int 6954main () 6955{ 6956 6957 ; 6958 return 0; 6959} 6960_ACEOF 6961if ac_fn_c_try_link "$LINENO"; then : 6962 eval $cacheid=yes 6963else 6964 eval $cacheid=no 6965fi 6966rm -f core conftest.err conftest.$ac_objext \ 6967 conftest$ac_exeext conftest.$ac_ext 6968fi 6969 6970 6971 CFLAGS="$xorg_testset_save_CFLAGS" 6972 6973 eval supported=\$$cacheid 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6975$as_echo "$supported" >&6; } 6976 if test "$supported" = "yes" ; then 6977 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6978 found="yes" 6979 fi 6980 fi 6981 6982 6983 6984# These are currently disabled because they are noisy. They will be enabled 6985# in the future once the codebase is sufficiently modernized to silence 6986# them. For now, I don't want them to drown out the other warnings. 6987# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6988# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6989# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6990 6991# Turn some warnings into errors, so we don't accidently get successful builds 6992# when there are problems that should be fixed. 6993 6994if test "x$SELECTIVE_WERROR" = "xyes" ; then 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008xorg_testset_save_CFLAGS="$CFLAGS" 7009 7010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7015 $as_echo_n "(cached) " >&6 7016else 7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019int i; 7020_ACEOF 7021if ac_fn_c_try_compile "$LINENO"; then : 7022 xorg_cv_cc_flag_unknown_warning_option=yes 7023else 7024 xorg_cv_cc_flag_unknown_warning_option=no 7025fi 7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7027fi 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7031 CFLAGS="$xorg_testset_save_CFLAGS" 7032fi 7033 7034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7037 fi 7038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7042 $as_echo_n "(cached) " >&6 7043else 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7045/* end confdefs.h. */ 7046int i; 7047_ACEOF 7048if ac_fn_c_try_compile "$LINENO"; then : 7049 xorg_cv_cc_flag_unused_command_line_argument=yes 7050else 7051 xorg_cv_cc_flag_unused_command_line_argument=no 7052fi 7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7054fi 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7058 CFLAGS="$xorg_testset_save_CFLAGS" 7059fi 7060 7061found="no" 7062 7063 if test $found = "no" ; then 7064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7066 fi 7067 7068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7070 fi 7071 7072 CFLAGS="$CFLAGS -Werror=implicit" 7073 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7075$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7076 cacheid=xorg_cv_cc_flag__Werror_implicit 7077 if eval \${$cacheid+:} false; then : 7078 $as_echo_n "(cached) " >&6 7079else 7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7081/* end confdefs.h. */ 7082int i; 7083int 7084main () 7085{ 7086 7087 ; 7088 return 0; 7089} 7090_ACEOF 7091if ac_fn_c_try_link "$LINENO"; then : 7092 eval $cacheid=yes 7093else 7094 eval $cacheid=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext \ 7097 conftest$ac_exeext conftest.$ac_ext 7098fi 7099 7100 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102 7103 eval supported=\$$cacheid 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7105$as_echo "$supported" >&6; } 7106 if test "$supported" = "yes" ; then 7107 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7108 found="yes" 7109 fi 7110 fi 7111 7112 if test $found = "no" ; then 7113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7115 fi 7116 7117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7119 fi 7120 7121 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7122 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7124$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7125 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7126 if eval \${$cacheid+:} false; then : 7127 $as_echo_n "(cached) " >&6 7128else 7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7130/* end confdefs.h. */ 7131int i; 7132int 7133main () 7134{ 7135 7136 ; 7137 return 0; 7138} 7139_ACEOF 7140if ac_fn_c_try_link "$LINENO"; then : 7141 eval $cacheid=yes 7142else 7143 eval $cacheid=no 7144fi 7145rm -f core conftest.err conftest.$ac_objext \ 7146 conftest$ac_exeext conftest.$ac_ext 7147fi 7148 7149 7150 CFLAGS="$xorg_testset_save_CFLAGS" 7151 7152 eval supported=\$$cacheid 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7154$as_echo "$supported" >&6; } 7155 if test "$supported" = "yes" ; then 7156 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7157 found="yes" 7158 fi 7159 fi 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175xorg_testset_save_CFLAGS="$CFLAGS" 7176 7177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186int i; 7187_ACEOF 7188if ac_fn_c_try_compile "$LINENO"; then : 7189 xorg_cv_cc_flag_unknown_warning_option=yes 7190else 7191 xorg_cv_cc_flag_unknown_warning_option=no 7192fi 7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7194fi 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7198 CFLAGS="$xorg_testset_save_CFLAGS" 7199fi 7200 7201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7204 fi 7205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7212/* end confdefs.h. */ 7213int i; 7214_ACEOF 7215if ac_fn_c_try_compile "$LINENO"; then : 7216 xorg_cv_cc_flag_unused_command_line_argument=yes 7217else 7218 xorg_cv_cc_flag_unused_command_line_argument=no 7219fi 7220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7221fi 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7225 CFLAGS="$xorg_testset_save_CFLAGS" 7226fi 7227 7228found="no" 7229 7230 if test $found = "no" ; then 7231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7233 fi 7234 7235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7237 fi 7238 7239 CFLAGS="$CFLAGS -Werror=nonnull" 7240 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7242$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7243 cacheid=xorg_cv_cc_flag__Werror_nonnull 7244 if eval \${$cacheid+:} false; then : 7245 $as_echo_n "(cached) " >&6 7246else 7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7248/* end confdefs.h. */ 7249int i; 7250int 7251main () 7252{ 7253 7254 ; 7255 return 0; 7256} 7257_ACEOF 7258if ac_fn_c_try_link "$LINENO"; then : 7259 eval $cacheid=yes 7260else 7261 eval $cacheid=no 7262fi 7263rm -f core conftest.err conftest.$ac_objext \ 7264 conftest$ac_exeext conftest.$ac_ext 7265fi 7266 7267 7268 CFLAGS="$xorg_testset_save_CFLAGS" 7269 7270 eval supported=\$$cacheid 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7272$as_echo "$supported" >&6; } 7273 if test "$supported" = "yes" ; then 7274 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7275 found="yes" 7276 fi 7277 fi 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293xorg_testset_save_CFLAGS="$CFLAGS" 7294 7295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7300 $as_echo_n "(cached) " >&6 7301else 7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7303/* end confdefs.h. */ 7304int i; 7305_ACEOF 7306if ac_fn_c_try_compile "$LINENO"; then : 7307 xorg_cv_cc_flag_unknown_warning_option=yes 7308else 7309 xorg_cv_cc_flag_unknown_warning_option=no 7310fi 7311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7312fi 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7316 CFLAGS="$xorg_testset_save_CFLAGS" 7317fi 7318 7319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7322 fi 7323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7327 $as_echo_n "(cached) " >&6 7328else 7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7330/* end confdefs.h. */ 7331int i; 7332_ACEOF 7333if ac_fn_c_try_compile "$LINENO"; then : 7334 xorg_cv_cc_flag_unused_command_line_argument=yes 7335else 7336 xorg_cv_cc_flag_unused_command_line_argument=no 7337fi 7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7339fi 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7343 CFLAGS="$xorg_testset_save_CFLAGS" 7344fi 7345 7346found="no" 7347 7348 if test $found = "no" ; then 7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7351 fi 7352 7353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7355 fi 7356 7357 CFLAGS="$CFLAGS -Werror=init-self" 7358 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7360$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7361 cacheid=xorg_cv_cc_flag__Werror_init_self 7362 if eval \${$cacheid+:} false; then : 7363 $as_echo_n "(cached) " >&6 7364else 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367int i; 7368int 7369main () 7370{ 7371 7372 ; 7373 return 0; 7374} 7375_ACEOF 7376if ac_fn_c_try_link "$LINENO"; then : 7377 eval $cacheid=yes 7378else 7379 eval $cacheid=no 7380fi 7381rm -f core conftest.err conftest.$ac_objext \ 7382 conftest$ac_exeext conftest.$ac_ext 7383fi 7384 7385 7386 CFLAGS="$xorg_testset_save_CFLAGS" 7387 7388 eval supported=\$$cacheid 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7390$as_echo "$supported" >&6; } 7391 if test "$supported" = "yes" ; then 7392 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7393 found="yes" 7394 fi 7395 fi 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411xorg_testset_save_CFLAGS="$CFLAGS" 7412 7413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419else 7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7421/* end confdefs.h. */ 7422int i; 7423_ACEOF 7424if ac_fn_c_try_compile "$LINENO"; then : 7425 xorg_cv_cc_flag_unknown_warning_option=yes 7426else 7427 xorg_cv_cc_flag_unknown_warning_option=no 7428fi 7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7430fi 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7434 CFLAGS="$xorg_testset_save_CFLAGS" 7435fi 7436 7437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7440 fi 7441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446else 7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449int i; 7450_ACEOF 7451if ac_fn_c_try_compile "$LINENO"; then : 7452 xorg_cv_cc_flag_unused_command_line_argument=yes 7453else 7454 xorg_cv_cc_flag_unused_command_line_argument=no 7455fi 7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7457fi 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7461 CFLAGS="$xorg_testset_save_CFLAGS" 7462fi 7463 7464found="no" 7465 7466 if test $found = "no" ; then 7467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7469 fi 7470 7471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7473 fi 7474 7475 CFLAGS="$CFLAGS -Werror=main" 7476 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7478$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7479 cacheid=xorg_cv_cc_flag__Werror_main 7480 if eval \${$cacheid+:} false; then : 7481 $as_echo_n "(cached) " >&6 7482else 7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7484/* end confdefs.h. */ 7485int i; 7486int 7487main () 7488{ 7489 7490 ; 7491 return 0; 7492} 7493_ACEOF 7494if ac_fn_c_try_link "$LINENO"; then : 7495 eval $cacheid=yes 7496else 7497 eval $cacheid=no 7498fi 7499rm -f core conftest.err conftest.$ac_objext \ 7500 conftest$ac_exeext conftest.$ac_ext 7501fi 7502 7503 7504 CFLAGS="$xorg_testset_save_CFLAGS" 7505 7506 eval supported=\$$cacheid 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7508$as_echo "$supported" >&6; } 7509 if test "$supported" = "yes" ; then 7510 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7511 found="yes" 7512 fi 7513 fi 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529xorg_testset_save_CFLAGS="$CFLAGS" 7530 7531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7536 $as_echo_n "(cached) " >&6 7537else 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540int i; 7541_ACEOF 7542if ac_fn_c_try_compile "$LINENO"; then : 7543 xorg_cv_cc_flag_unknown_warning_option=yes 7544else 7545 xorg_cv_cc_flag_unknown_warning_option=no 7546fi 7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7548fi 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7552 CFLAGS="$xorg_testset_save_CFLAGS" 7553fi 7554 7555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7558 fi 7559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7563 $as_echo_n "(cached) " >&6 7564else 7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7566/* end confdefs.h. */ 7567int i; 7568_ACEOF 7569if ac_fn_c_try_compile "$LINENO"; then : 7570 xorg_cv_cc_flag_unused_command_line_argument=yes 7571else 7572 xorg_cv_cc_flag_unused_command_line_argument=no 7573fi 7574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7575fi 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7579 CFLAGS="$xorg_testset_save_CFLAGS" 7580fi 7581 7582found="no" 7583 7584 if test $found = "no" ; then 7585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7587 fi 7588 7589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7591 fi 7592 7593 CFLAGS="$CFLAGS -Werror=missing-braces" 7594 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7596$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7597 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7598 if eval \${$cacheid+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7602/* end confdefs.h. */ 7603int i; 7604int 7605main () 7606{ 7607 7608 ; 7609 return 0; 7610} 7611_ACEOF 7612if ac_fn_c_try_link "$LINENO"; then : 7613 eval $cacheid=yes 7614else 7615 eval $cacheid=no 7616fi 7617rm -f core conftest.err conftest.$ac_objext \ 7618 conftest$ac_exeext conftest.$ac_ext 7619fi 7620 7621 7622 CFLAGS="$xorg_testset_save_CFLAGS" 7623 7624 eval supported=\$$cacheid 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7626$as_echo "$supported" >&6; } 7627 if test "$supported" = "yes" ; then 7628 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7629 found="yes" 7630 fi 7631 fi 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647xorg_testset_save_CFLAGS="$CFLAGS" 7648 7649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658int i; 7659_ACEOF 7660if ac_fn_c_try_compile "$LINENO"; then : 7661 xorg_cv_cc_flag_unknown_warning_option=yes 7662else 7663 xorg_cv_cc_flag_unknown_warning_option=no 7664fi 7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7666fi 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7670 CFLAGS="$xorg_testset_save_CFLAGS" 7671fi 7672 7673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7676 fi 7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7684/* end confdefs.h. */ 7685int i; 7686_ACEOF 7687if ac_fn_c_try_compile "$LINENO"; then : 7688 xorg_cv_cc_flag_unused_command_line_argument=yes 7689else 7690 xorg_cv_cc_flag_unused_command_line_argument=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693fi 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7697 CFLAGS="$xorg_testset_save_CFLAGS" 7698fi 7699 7700found="no" 7701 7702 if test $found = "no" ; then 7703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7705 fi 7706 7707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7709 fi 7710 7711 CFLAGS="$CFLAGS -Werror=sequence-point" 7712 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7714$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7715 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7716 if eval \${$cacheid+:} false; then : 7717 $as_echo_n "(cached) " >&6 7718else 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721int i; 7722int 7723main () 7724{ 7725 7726 ; 7727 return 0; 7728} 7729_ACEOF 7730if ac_fn_c_try_link "$LINENO"; then : 7731 eval $cacheid=yes 7732else 7733 eval $cacheid=no 7734fi 7735rm -f core conftest.err conftest.$ac_objext \ 7736 conftest$ac_exeext conftest.$ac_ext 7737fi 7738 7739 7740 CFLAGS="$xorg_testset_save_CFLAGS" 7741 7742 eval supported=\$$cacheid 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7744$as_echo "$supported" >&6; } 7745 if test "$supported" = "yes" ; then 7746 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7747 found="yes" 7748 fi 7749 fi 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765xorg_testset_save_CFLAGS="$CFLAGS" 7766 7767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776int i; 7777_ACEOF 7778if ac_fn_c_try_compile "$LINENO"; then : 7779 xorg_cv_cc_flag_unknown_warning_option=yes 7780else 7781 xorg_cv_cc_flag_unknown_warning_option=no 7782fi 7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7784fi 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7788 CFLAGS="$xorg_testset_save_CFLAGS" 7789fi 7790 7791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7794 fi 7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7799 $as_echo_n "(cached) " >&6 7800else 7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7802/* end confdefs.h. */ 7803int i; 7804_ACEOF 7805if ac_fn_c_try_compile "$LINENO"; then : 7806 xorg_cv_cc_flag_unused_command_line_argument=yes 7807else 7808 xorg_cv_cc_flag_unused_command_line_argument=no 7809fi 7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7811fi 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7815 CFLAGS="$xorg_testset_save_CFLAGS" 7816fi 7817 7818found="no" 7819 7820 if test $found = "no" ; then 7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 fi 7824 7825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7827 fi 7828 7829 CFLAGS="$CFLAGS -Werror=return-type" 7830 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7832$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7833 cacheid=xorg_cv_cc_flag__Werror_return_type 7834 if eval \${$cacheid+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7838/* end confdefs.h. */ 7839int i; 7840int 7841main () 7842{ 7843 7844 ; 7845 return 0; 7846} 7847_ACEOF 7848if ac_fn_c_try_link "$LINENO"; then : 7849 eval $cacheid=yes 7850else 7851 eval $cacheid=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext \ 7854 conftest$ac_exeext conftest.$ac_ext 7855fi 7856 7857 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859 7860 eval supported=\$$cacheid 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7862$as_echo "$supported" >&6; } 7863 if test "$supported" = "yes" ; then 7864 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7865 found="yes" 7866 fi 7867 fi 7868 7869 if test $found = "no" ; then 7870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7872 fi 7873 7874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7876 fi 7877 7878 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7879 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7881$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7882 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7883 if eval \${$cacheid+:} false; then : 7884 $as_echo_n "(cached) " >&6 7885else 7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7887/* end confdefs.h. */ 7888int i; 7889int 7890main () 7891{ 7892 7893 ; 7894 return 0; 7895} 7896_ACEOF 7897if ac_fn_c_try_link "$LINENO"; then : 7898 eval $cacheid=yes 7899else 7900 eval $cacheid=no 7901fi 7902rm -f core conftest.err conftest.$ac_objext \ 7903 conftest$ac_exeext conftest.$ac_ext 7904fi 7905 7906 7907 CFLAGS="$xorg_testset_save_CFLAGS" 7908 7909 eval supported=\$$cacheid 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7911$as_echo "$supported" >&6; } 7912 if test "$supported" = "yes" ; then 7913 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7914 found="yes" 7915 fi 7916 fi 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932xorg_testset_save_CFLAGS="$CFLAGS" 7933 7934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7939 $as_echo_n "(cached) " >&6 7940else 7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7942/* end confdefs.h. */ 7943int i; 7944_ACEOF 7945if ac_fn_c_try_compile "$LINENO"; then : 7946 xorg_cv_cc_flag_unknown_warning_option=yes 7947else 7948 xorg_cv_cc_flag_unknown_warning_option=no 7949fi 7950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7951fi 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7955 CFLAGS="$xorg_testset_save_CFLAGS" 7956fi 7957 7958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7961 fi 7962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967else 7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7969/* end confdefs.h. */ 7970int i; 7971_ACEOF 7972if ac_fn_c_try_compile "$LINENO"; then : 7973 xorg_cv_cc_flag_unused_command_line_argument=yes 7974else 7975 xorg_cv_cc_flag_unused_command_line_argument=no 7976fi 7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7978fi 7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7982 CFLAGS="$xorg_testset_save_CFLAGS" 7983fi 7984 7985found="no" 7986 7987 if test $found = "no" ; then 7988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7990 fi 7991 7992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7994 fi 7995 7996 CFLAGS="$CFLAGS -Werror=trigraphs" 7997 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7999$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8000 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8001 if eval \${$cacheid+:} false; then : 8002 $as_echo_n "(cached) " >&6 8003else 8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8005/* end confdefs.h. */ 8006int i; 8007int 8008main () 8009{ 8010 8011 ; 8012 return 0; 8013} 8014_ACEOF 8015if ac_fn_c_try_link "$LINENO"; then : 8016 eval $cacheid=yes 8017else 8018 eval $cacheid=no 8019fi 8020rm -f core conftest.err conftest.$ac_objext \ 8021 conftest$ac_exeext conftest.$ac_ext 8022fi 8023 8024 8025 CFLAGS="$xorg_testset_save_CFLAGS" 8026 8027 eval supported=\$$cacheid 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8029$as_echo "$supported" >&6; } 8030 if test "$supported" = "yes" ; then 8031 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8032 found="yes" 8033 fi 8034 fi 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050xorg_testset_save_CFLAGS="$CFLAGS" 8051 8052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8057 $as_echo_n "(cached) " >&6 8058else 8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8060/* end confdefs.h. */ 8061int i; 8062_ACEOF 8063if ac_fn_c_try_compile "$LINENO"; then : 8064 xorg_cv_cc_flag_unknown_warning_option=yes 8065else 8066 xorg_cv_cc_flag_unknown_warning_option=no 8067fi 8068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8069fi 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8073 CFLAGS="$xorg_testset_save_CFLAGS" 8074fi 8075 8076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8079 fi 8080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085else 8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8087/* end confdefs.h. */ 8088int i; 8089_ACEOF 8090if ac_fn_c_try_compile "$LINENO"; then : 8091 xorg_cv_cc_flag_unused_command_line_argument=yes 8092else 8093 xorg_cv_cc_flag_unused_command_line_argument=no 8094fi 8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8096fi 8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8100 CFLAGS="$xorg_testset_save_CFLAGS" 8101fi 8102 8103found="no" 8104 8105 if test $found = "no" ; then 8106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8108 fi 8109 8110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8112 fi 8113 8114 CFLAGS="$CFLAGS -Werror=array-bounds" 8115 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8117$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8118 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8119 if eval \${$cacheid+:} false; then : 8120 $as_echo_n "(cached) " >&6 8121else 8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8123/* end confdefs.h. */ 8124int i; 8125int 8126main () 8127{ 8128 8129 ; 8130 return 0; 8131} 8132_ACEOF 8133if ac_fn_c_try_link "$LINENO"; then : 8134 eval $cacheid=yes 8135else 8136 eval $cacheid=no 8137fi 8138rm -f core conftest.err conftest.$ac_objext \ 8139 conftest$ac_exeext conftest.$ac_ext 8140fi 8141 8142 8143 CFLAGS="$xorg_testset_save_CFLAGS" 8144 8145 eval supported=\$$cacheid 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8147$as_echo "$supported" >&6; } 8148 if test "$supported" = "yes" ; then 8149 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8150 found="yes" 8151 fi 8152 fi 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168xorg_testset_save_CFLAGS="$CFLAGS" 8169 8170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176else 8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8178/* end confdefs.h. */ 8179int i; 8180_ACEOF 8181if ac_fn_c_try_compile "$LINENO"; then : 8182 xorg_cv_cc_flag_unknown_warning_option=yes 8183else 8184 xorg_cv_cc_flag_unknown_warning_option=no 8185fi 8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8187fi 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8191 CFLAGS="$xorg_testset_save_CFLAGS" 8192fi 8193 8194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8197 fi 8198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8202 $as_echo_n "(cached) " >&6 8203else 8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8205/* end confdefs.h. */ 8206int i; 8207_ACEOF 8208if ac_fn_c_try_compile "$LINENO"; then : 8209 xorg_cv_cc_flag_unused_command_line_argument=yes 8210else 8211 xorg_cv_cc_flag_unused_command_line_argument=no 8212fi 8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8214fi 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219fi 8220 8221found="no" 8222 8223 if test $found = "no" ; then 8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 8228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8230 fi 8231 8232 CFLAGS="$CFLAGS -Werror=write-strings" 8233 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8235$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8236 cacheid=xorg_cv_cc_flag__Werror_write_strings 8237 if eval \${$cacheid+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8241/* end confdefs.h. */ 8242int i; 8243int 8244main () 8245{ 8246 8247 ; 8248 return 0; 8249} 8250_ACEOF 8251if ac_fn_c_try_link "$LINENO"; then : 8252 eval $cacheid=yes 8253else 8254 eval $cacheid=no 8255fi 8256rm -f core conftest.err conftest.$ac_objext \ 8257 conftest$ac_exeext conftest.$ac_ext 8258fi 8259 8260 8261 CFLAGS="$xorg_testset_save_CFLAGS" 8262 8263 eval supported=\$$cacheid 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8265$as_echo "$supported" >&6; } 8266 if test "$supported" = "yes" ; then 8267 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8268 found="yes" 8269 fi 8270 fi 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286xorg_testset_save_CFLAGS="$CFLAGS" 8287 8288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297int i; 8298_ACEOF 8299if ac_fn_c_try_compile "$LINENO"; then : 8300 xorg_cv_cc_flag_unknown_warning_option=yes 8301else 8302 xorg_cv_cc_flag_unknown_warning_option=no 8303fi 8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8305fi 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8309 CFLAGS="$xorg_testset_save_CFLAGS" 8310fi 8311 8312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8315 fi 8316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8323/* end confdefs.h. */ 8324int i; 8325_ACEOF 8326if ac_fn_c_try_compile "$LINENO"; then : 8327 xorg_cv_cc_flag_unused_command_line_argument=yes 8328else 8329 xorg_cv_cc_flag_unused_command_line_argument=no 8330fi 8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8332fi 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8336 CFLAGS="$xorg_testset_save_CFLAGS" 8337fi 8338 8339found="no" 8340 8341 if test $found = "no" ; then 8342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8344 fi 8345 8346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8348 fi 8349 8350 CFLAGS="$CFLAGS -Werror=address" 8351 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8353$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8354 cacheid=xorg_cv_cc_flag__Werror_address 8355 if eval \${$cacheid+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357else 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359/* end confdefs.h. */ 8360int i; 8361int 8362main () 8363{ 8364 8365 ; 8366 return 0; 8367} 8368_ACEOF 8369if ac_fn_c_try_link "$LINENO"; then : 8370 eval $cacheid=yes 8371else 8372 eval $cacheid=no 8373fi 8374rm -f core conftest.err conftest.$ac_objext \ 8375 conftest$ac_exeext conftest.$ac_ext 8376fi 8377 8378 8379 CFLAGS="$xorg_testset_save_CFLAGS" 8380 8381 eval supported=\$$cacheid 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8383$as_echo "$supported" >&6; } 8384 if test "$supported" = "yes" ; then 8385 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8386 found="yes" 8387 fi 8388 fi 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404xorg_testset_save_CFLAGS="$CFLAGS" 8405 8406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8411 $as_echo_n "(cached) " >&6 8412else 8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414/* end confdefs.h. */ 8415int i; 8416_ACEOF 8417if ac_fn_c_try_compile "$LINENO"; then : 8418 xorg_cv_cc_flag_unknown_warning_option=yes 8419else 8420 xorg_cv_cc_flag_unknown_warning_option=no 8421fi 8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8423fi 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8427 CFLAGS="$xorg_testset_save_CFLAGS" 8428fi 8429 8430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8433 fi 8434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8438 $as_echo_n "(cached) " >&6 8439else 8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8441/* end confdefs.h. */ 8442int i; 8443_ACEOF 8444if ac_fn_c_try_compile "$LINENO"; then : 8445 xorg_cv_cc_flag_unused_command_line_argument=yes 8446else 8447 xorg_cv_cc_flag_unused_command_line_argument=no 8448fi 8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8450fi 8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8454 CFLAGS="$xorg_testset_save_CFLAGS" 8455fi 8456 8457found="no" 8458 8459 if test $found = "no" ; then 8460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8462 fi 8463 8464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8466 fi 8467 8468 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8469 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8471$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8472 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8473 if eval \${$cacheid+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478int i; 8479int 8480main () 8481{ 8482 8483 ; 8484 return 0; 8485} 8486_ACEOF 8487if ac_fn_c_try_link "$LINENO"; then : 8488 eval $cacheid=yes 8489else 8490 eval $cacheid=no 8491fi 8492rm -f core conftest.err conftest.$ac_objext \ 8493 conftest$ac_exeext conftest.$ac_ext 8494fi 8495 8496 8497 CFLAGS="$xorg_testset_save_CFLAGS" 8498 8499 eval supported=\$$cacheid 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8501$as_echo "$supported" >&6; } 8502 if test "$supported" = "yes" ; then 8503 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8504 found="yes" 8505 fi 8506 fi 8507 8508 if test $found = "no" ; then 8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8511 fi 8512 8513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8515 fi 8516 8517 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8518 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8520$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8521 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8522 if eval \${$cacheid+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8526/* end confdefs.h. */ 8527int i; 8528int 8529main () 8530{ 8531 8532 ; 8533 return 0; 8534} 8535_ACEOF 8536if ac_fn_c_try_link "$LINENO"; then : 8537 eval $cacheid=yes 8538else 8539 eval $cacheid=no 8540fi 8541rm -f core conftest.err conftest.$ac_objext \ 8542 conftest$ac_exeext conftest.$ac_ext 8543fi 8544 8545 8546 CFLAGS="$xorg_testset_save_CFLAGS" 8547 8548 eval supported=\$$cacheid 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8550$as_echo "$supported" >&6; } 8551 if test "$supported" = "yes" ; then 8552 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8553 found="yes" 8554 fi 8555 fi 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571xorg_testset_save_CFLAGS="$CFLAGS" 8572 8573if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8576$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8577if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8581/* end confdefs.h. */ 8582int i; 8583_ACEOF 8584if ac_fn_c_try_compile "$LINENO"; then : 8585 xorg_cv_cc_flag_unknown_warning_option=yes 8586else 8587 xorg_cv_cc_flag_unknown_warning_option=no 8588fi 8589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8590fi 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8592$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8594 CFLAGS="$xorg_testset_save_CFLAGS" 8595fi 8596 8597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8600 fi 8601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8603$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8604if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8605 $as_echo_n "(cached) " >&6 8606else 8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8608/* end confdefs.h. */ 8609int i; 8610_ACEOF 8611if ac_fn_c_try_compile "$LINENO"; then : 8612 xorg_cv_cc_flag_unused_command_line_argument=yes 8613else 8614 xorg_cv_cc_flag_unused_command_line_argument=no 8615fi 8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8617fi 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8619$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622fi 8623 8624found="no" 8625 8626 if test $found = "no" ; then 8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8629 fi 8630 8631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8633 fi 8634 8635 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8636 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8638$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8639 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8640 if eval \${$cacheid+:} false; then : 8641 $as_echo_n "(cached) " >&6 8642else 8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644/* end confdefs.h. */ 8645int i; 8646int 8647main () 8648{ 8649 8650 ; 8651 return 0; 8652} 8653_ACEOF 8654if ac_fn_c_try_link "$LINENO"; then : 8655 eval $cacheid=yes 8656else 8657 eval $cacheid=no 8658fi 8659rm -f core conftest.err conftest.$ac_objext \ 8660 conftest$ac_exeext conftest.$ac_ext 8661fi 8662 8663 8664 CFLAGS="$xorg_testset_save_CFLAGS" 8665 8666 eval supported=\$$cacheid 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8668$as_echo "$supported" >&6; } 8669 if test "$supported" = "yes" ; then 8670 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8671 found="yes" 8672 fi 8673 fi 8674 8675 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8676else 8677{ $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 8678$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;} 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692xorg_testset_save_CFLAGS="$CFLAGS" 8693 8694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8702/* end confdefs.h. */ 8703int i; 8704_ACEOF 8705if ac_fn_c_try_compile "$LINENO"; then : 8706 xorg_cv_cc_flag_unknown_warning_option=yes 8707else 8708 xorg_cv_cc_flag_unknown_warning_option=no 8709fi 8710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8711fi 8712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8715 CFLAGS="$xorg_testset_save_CFLAGS" 8716fi 8717 8718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8721 fi 8722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8726 $as_echo_n "(cached) " >&6 8727else 8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8729/* end confdefs.h. */ 8730int i; 8731_ACEOF 8732if ac_fn_c_try_compile "$LINENO"; then : 8733 xorg_cv_cc_flag_unused_command_line_argument=yes 8734else 8735 xorg_cv_cc_flag_unused_command_line_argument=no 8736fi 8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8742 CFLAGS="$xorg_testset_save_CFLAGS" 8743fi 8744 8745found="no" 8746 8747 if test $found = "no" ; then 8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8750 fi 8751 8752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8754 fi 8755 8756 CFLAGS="$CFLAGS -Wimplicit" 8757 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8759$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8760 cacheid=xorg_cv_cc_flag__Wimplicit 8761 if eval \${$cacheid+:} false; then : 8762 $as_echo_n "(cached) " >&6 8763else 8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8765/* end confdefs.h. */ 8766int i; 8767int 8768main () 8769{ 8770 8771 ; 8772 return 0; 8773} 8774_ACEOF 8775if ac_fn_c_try_link "$LINENO"; then : 8776 eval $cacheid=yes 8777else 8778 eval $cacheid=no 8779fi 8780rm -f core conftest.err conftest.$ac_objext \ 8781 conftest$ac_exeext conftest.$ac_ext 8782fi 8783 8784 8785 CFLAGS="$xorg_testset_save_CFLAGS" 8786 8787 eval supported=\$$cacheid 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8789$as_echo "$supported" >&6; } 8790 if test "$supported" = "yes" ; then 8791 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8792 found="yes" 8793 fi 8794 fi 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810xorg_testset_save_CFLAGS="$CFLAGS" 8811 8812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8817 $as_echo_n "(cached) " >&6 8818else 8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8820/* end confdefs.h. */ 8821int i; 8822_ACEOF 8823if ac_fn_c_try_compile "$LINENO"; then : 8824 xorg_cv_cc_flag_unknown_warning_option=yes 8825else 8826 xorg_cv_cc_flag_unknown_warning_option=no 8827fi 8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8829fi 8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8833 CFLAGS="$xorg_testset_save_CFLAGS" 8834fi 8835 8836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 fi 8840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8847/* end confdefs.h. */ 8848int i; 8849_ACEOF 8850if ac_fn_c_try_compile "$LINENO"; then : 8851 xorg_cv_cc_flag_unused_command_line_argument=yes 8852else 8853 xorg_cv_cc_flag_unused_command_line_argument=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8856fi 8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861fi 8862 8863found="no" 8864 8865 if test $found = "no" ; then 8866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8868 fi 8869 8870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8872 fi 8873 8874 CFLAGS="$CFLAGS -Wnonnull" 8875 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8877$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8878 cacheid=xorg_cv_cc_flag__Wnonnull 8879 if eval \${$cacheid+:} false; then : 8880 $as_echo_n "(cached) " >&6 8881else 8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884int i; 8885int 8886main () 8887{ 8888 8889 ; 8890 return 0; 8891} 8892_ACEOF 8893if ac_fn_c_try_link "$LINENO"; then : 8894 eval $cacheid=yes 8895else 8896 eval $cacheid=no 8897fi 8898rm -f core conftest.err conftest.$ac_objext \ 8899 conftest$ac_exeext conftest.$ac_ext 8900fi 8901 8902 8903 CFLAGS="$xorg_testset_save_CFLAGS" 8904 8905 eval supported=\$$cacheid 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8907$as_echo "$supported" >&6; } 8908 if test "$supported" = "yes" ; then 8909 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8910 found="yes" 8911 fi 8912 fi 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928xorg_testset_save_CFLAGS="$CFLAGS" 8929 8930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8935 $as_echo_n "(cached) " >&6 8936else 8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8938/* end confdefs.h. */ 8939int i; 8940_ACEOF 8941if ac_fn_c_try_compile "$LINENO"; then : 8942 xorg_cv_cc_flag_unknown_warning_option=yes 8943else 8944 xorg_cv_cc_flag_unknown_warning_option=no 8945fi 8946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8947fi 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8951 CFLAGS="$xorg_testset_save_CFLAGS" 8952fi 8953 8954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8957 fi 8958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963else 8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8965/* end confdefs.h. */ 8966int i; 8967_ACEOF 8968if ac_fn_c_try_compile "$LINENO"; then : 8969 xorg_cv_cc_flag_unused_command_line_argument=yes 8970else 8971 xorg_cv_cc_flag_unused_command_line_argument=no 8972fi 8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8974fi 8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979fi 8980 8981found="no" 8982 8983 if test $found = "no" ; then 8984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8986 fi 8987 8988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8990 fi 8991 8992 CFLAGS="$CFLAGS -Winit-self" 8993 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8995$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8996 cacheid=xorg_cv_cc_flag__Winit_self 8997 if eval \${$cacheid+:} false; then : 8998 $as_echo_n "(cached) " >&6 8999else 9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002int i; 9003int 9004main () 9005{ 9006 9007 ; 9008 return 0; 9009} 9010_ACEOF 9011if ac_fn_c_try_link "$LINENO"; then : 9012 eval $cacheid=yes 9013else 9014 eval $cacheid=no 9015fi 9016rm -f core conftest.err conftest.$ac_objext \ 9017 conftest$ac_exeext conftest.$ac_ext 9018fi 9019 9020 9021 CFLAGS="$xorg_testset_save_CFLAGS" 9022 9023 eval supported=\$$cacheid 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9025$as_echo "$supported" >&6; } 9026 if test "$supported" = "yes" ; then 9027 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9028 found="yes" 9029 fi 9030 fi 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046xorg_testset_save_CFLAGS="$CFLAGS" 9047 9048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9053 $as_echo_n "(cached) " >&6 9054else 9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9056/* end confdefs.h. */ 9057int i; 9058_ACEOF 9059if ac_fn_c_try_compile "$LINENO"; then : 9060 xorg_cv_cc_flag_unknown_warning_option=yes 9061else 9062 xorg_cv_cc_flag_unknown_warning_option=no 9063fi 9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9065fi 9066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9069 CFLAGS="$xorg_testset_save_CFLAGS" 9070fi 9071 9072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9075 fi 9076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9083/* end confdefs.h. */ 9084int i; 9085_ACEOF 9086if ac_fn_c_try_compile "$LINENO"; then : 9087 xorg_cv_cc_flag_unused_command_line_argument=yes 9088else 9089 xorg_cv_cc_flag_unused_command_line_argument=no 9090fi 9091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9092fi 9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9096 CFLAGS="$xorg_testset_save_CFLAGS" 9097fi 9098 9099found="no" 9100 9101 if test $found = "no" ; then 9102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9104 fi 9105 9106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9108 fi 9109 9110 CFLAGS="$CFLAGS -Wmain" 9111 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9113$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9114 cacheid=xorg_cv_cc_flag__Wmain 9115 if eval \${$cacheid+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9119/* end confdefs.h. */ 9120int i; 9121int 9122main () 9123{ 9124 9125 ; 9126 return 0; 9127} 9128_ACEOF 9129if ac_fn_c_try_link "$LINENO"; then : 9130 eval $cacheid=yes 9131else 9132 eval $cacheid=no 9133fi 9134rm -f core conftest.err conftest.$ac_objext \ 9135 conftest$ac_exeext conftest.$ac_ext 9136fi 9137 9138 9139 CFLAGS="$xorg_testset_save_CFLAGS" 9140 9141 eval supported=\$$cacheid 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9143$as_echo "$supported" >&6; } 9144 if test "$supported" = "yes" ; then 9145 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9146 found="yes" 9147 fi 9148 fi 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164xorg_testset_save_CFLAGS="$CFLAGS" 9165 9166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9171 $as_echo_n "(cached) " >&6 9172else 9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9174/* end confdefs.h. */ 9175int i; 9176_ACEOF 9177if ac_fn_c_try_compile "$LINENO"; then : 9178 xorg_cv_cc_flag_unknown_warning_option=yes 9179else 9180 xorg_cv_cc_flag_unknown_warning_option=no 9181fi 9182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9183fi 9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9187 CFLAGS="$xorg_testset_save_CFLAGS" 9188fi 9189 9190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9193 fi 9194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9198 $as_echo_n "(cached) " >&6 9199else 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9201/* end confdefs.h. */ 9202int i; 9203_ACEOF 9204if ac_fn_c_try_compile "$LINENO"; then : 9205 xorg_cv_cc_flag_unused_command_line_argument=yes 9206else 9207 xorg_cv_cc_flag_unused_command_line_argument=no 9208fi 9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9210fi 9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9214 CFLAGS="$xorg_testset_save_CFLAGS" 9215fi 9216 9217found="no" 9218 9219 if test $found = "no" ; then 9220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9222 fi 9223 9224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9226 fi 9227 9228 CFLAGS="$CFLAGS -Wmissing-braces" 9229 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9231$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9232 cacheid=xorg_cv_cc_flag__Wmissing_braces 9233 if eval \${$cacheid+:} false; then : 9234 $as_echo_n "(cached) " >&6 9235else 9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9237/* end confdefs.h. */ 9238int i; 9239int 9240main () 9241{ 9242 9243 ; 9244 return 0; 9245} 9246_ACEOF 9247if ac_fn_c_try_link "$LINENO"; then : 9248 eval $cacheid=yes 9249else 9250 eval $cacheid=no 9251fi 9252rm -f core conftest.err conftest.$ac_objext \ 9253 conftest$ac_exeext conftest.$ac_ext 9254fi 9255 9256 9257 CFLAGS="$xorg_testset_save_CFLAGS" 9258 9259 eval supported=\$$cacheid 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9261$as_echo "$supported" >&6; } 9262 if test "$supported" = "yes" ; then 9263 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9264 found="yes" 9265 fi 9266 fi 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282xorg_testset_save_CFLAGS="$CFLAGS" 9283 9284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9289 $as_echo_n "(cached) " >&6 9290else 9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9292/* end confdefs.h. */ 9293int i; 9294_ACEOF 9295if ac_fn_c_try_compile "$LINENO"; then : 9296 xorg_cv_cc_flag_unknown_warning_option=yes 9297else 9298 xorg_cv_cc_flag_unknown_warning_option=no 9299fi 9300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9301fi 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9305 CFLAGS="$xorg_testset_save_CFLAGS" 9306fi 9307 9308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 fi 9312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9316 $as_echo_n "(cached) " >&6 9317else 9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9319/* end confdefs.h. */ 9320int i; 9321_ACEOF 9322if ac_fn_c_try_compile "$LINENO"; then : 9323 xorg_cv_cc_flag_unused_command_line_argument=yes 9324else 9325 xorg_cv_cc_flag_unused_command_line_argument=no 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9328fi 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333fi 9334 9335found="no" 9336 9337 if test $found = "no" ; then 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 fi 9341 9342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9344 fi 9345 9346 CFLAGS="$CFLAGS -Wsequence-point" 9347 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9349$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9350 cacheid=xorg_cv_cc_flag__Wsequence_point 9351 if eval \${$cacheid+:} false; then : 9352 $as_echo_n "(cached) " >&6 9353else 9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9355/* end confdefs.h. */ 9356int i; 9357int 9358main () 9359{ 9360 9361 ; 9362 return 0; 9363} 9364_ACEOF 9365if ac_fn_c_try_link "$LINENO"; then : 9366 eval $cacheid=yes 9367else 9368 eval $cacheid=no 9369fi 9370rm -f core conftest.err conftest.$ac_objext \ 9371 conftest$ac_exeext conftest.$ac_ext 9372fi 9373 9374 9375 CFLAGS="$xorg_testset_save_CFLAGS" 9376 9377 eval supported=\$$cacheid 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9379$as_echo "$supported" >&6; } 9380 if test "$supported" = "yes" ; then 9381 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9382 found="yes" 9383 fi 9384 fi 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400xorg_testset_save_CFLAGS="$CFLAGS" 9401 9402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9407 $as_echo_n "(cached) " >&6 9408else 9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9410/* end confdefs.h. */ 9411int i; 9412_ACEOF 9413if ac_fn_c_try_compile "$LINENO"; then : 9414 xorg_cv_cc_flag_unknown_warning_option=yes 9415else 9416 xorg_cv_cc_flag_unknown_warning_option=no 9417fi 9418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9419fi 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9423 CFLAGS="$xorg_testset_save_CFLAGS" 9424fi 9425 9426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9429 fi 9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9434 $as_echo_n "(cached) " >&6 9435else 9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9437/* end confdefs.h. */ 9438int i; 9439_ACEOF 9440if ac_fn_c_try_compile "$LINENO"; then : 9441 xorg_cv_cc_flag_unused_command_line_argument=yes 9442else 9443 xorg_cv_cc_flag_unused_command_line_argument=no 9444fi 9445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9446fi 9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9450 CFLAGS="$xorg_testset_save_CFLAGS" 9451fi 9452 9453found="no" 9454 9455 if test $found = "no" ; then 9456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9458 fi 9459 9460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9462 fi 9463 9464 CFLAGS="$CFLAGS -Wreturn-type" 9465 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9467$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9468 cacheid=xorg_cv_cc_flag__Wreturn_type 9469 if eval \${$cacheid+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471else 9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9473/* end confdefs.h. */ 9474int i; 9475int 9476main () 9477{ 9478 9479 ; 9480 return 0; 9481} 9482_ACEOF 9483if ac_fn_c_try_link "$LINENO"; then : 9484 eval $cacheid=yes 9485else 9486 eval $cacheid=no 9487fi 9488rm -f core conftest.err conftest.$ac_objext \ 9489 conftest$ac_exeext conftest.$ac_ext 9490fi 9491 9492 9493 CFLAGS="$xorg_testset_save_CFLAGS" 9494 9495 eval supported=\$$cacheid 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9497$as_echo "$supported" >&6; } 9498 if test "$supported" = "yes" ; then 9499 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9500 found="yes" 9501 fi 9502 fi 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518xorg_testset_save_CFLAGS="$CFLAGS" 9519 9520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9525 $as_echo_n "(cached) " >&6 9526else 9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9528/* end confdefs.h. */ 9529int i; 9530_ACEOF 9531if ac_fn_c_try_compile "$LINENO"; then : 9532 xorg_cv_cc_flag_unknown_warning_option=yes 9533else 9534 xorg_cv_cc_flag_unknown_warning_option=no 9535fi 9536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9537fi 9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9541 CFLAGS="$xorg_testset_save_CFLAGS" 9542fi 9543 9544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9547 fi 9548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9552 $as_echo_n "(cached) " >&6 9553else 9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9555/* end confdefs.h. */ 9556int i; 9557_ACEOF 9558if ac_fn_c_try_compile "$LINENO"; then : 9559 xorg_cv_cc_flag_unused_command_line_argument=yes 9560else 9561 xorg_cv_cc_flag_unused_command_line_argument=no 9562fi 9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9564fi 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9568 CFLAGS="$xorg_testset_save_CFLAGS" 9569fi 9570 9571found="no" 9572 9573 if test $found = "no" ; then 9574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9576 fi 9577 9578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9580 fi 9581 9582 CFLAGS="$CFLAGS -Wtrigraphs" 9583 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9585$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9586 cacheid=xorg_cv_cc_flag__Wtrigraphs 9587 if eval \${$cacheid+:} false; then : 9588 $as_echo_n "(cached) " >&6 9589else 9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9591/* end confdefs.h. */ 9592int i; 9593int 9594main () 9595{ 9596 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601if ac_fn_c_try_link "$LINENO"; then : 9602 eval $cacheid=yes 9603else 9604 eval $cacheid=no 9605fi 9606rm -f core conftest.err conftest.$ac_objext \ 9607 conftest$ac_exeext conftest.$ac_ext 9608fi 9609 9610 9611 CFLAGS="$xorg_testset_save_CFLAGS" 9612 9613 eval supported=\$$cacheid 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9615$as_echo "$supported" >&6; } 9616 if test "$supported" = "yes" ; then 9617 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9618 found="yes" 9619 fi 9620 fi 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636xorg_testset_save_CFLAGS="$CFLAGS" 9637 9638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9643 $as_echo_n "(cached) " >&6 9644else 9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9646/* end confdefs.h. */ 9647int i; 9648_ACEOF 9649if ac_fn_c_try_compile "$LINENO"; then : 9650 xorg_cv_cc_flag_unknown_warning_option=yes 9651else 9652 xorg_cv_cc_flag_unknown_warning_option=no 9653fi 9654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9655fi 9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9659 CFLAGS="$xorg_testset_save_CFLAGS" 9660fi 9661 9662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9665 fi 9666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671else 9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673/* end confdefs.h. */ 9674int i; 9675_ACEOF 9676if ac_fn_c_try_compile "$LINENO"; then : 9677 xorg_cv_cc_flag_unused_command_line_argument=yes 9678else 9679 xorg_cv_cc_flag_unused_command_line_argument=no 9680fi 9681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9682fi 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9686 CFLAGS="$xorg_testset_save_CFLAGS" 9687fi 9688 9689found="no" 9690 9691 if test $found = "no" ; then 9692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9694 fi 9695 9696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9698 fi 9699 9700 CFLAGS="$CFLAGS -Warray-bounds" 9701 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9703$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9704 cacheid=xorg_cv_cc_flag__Warray_bounds 9705 if eval \${$cacheid+:} false; then : 9706 $as_echo_n "(cached) " >&6 9707else 9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9709/* end confdefs.h. */ 9710int i; 9711int 9712main () 9713{ 9714 9715 ; 9716 return 0; 9717} 9718_ACEOF 9719if ac_fn_c_try_link "$LINENO"; then : 9720 eval $cacheid=yes 9721else 9722 eval $cacheid=no 9723fi 9724rm -f core conftest.err conftest.$ac_objext \ 9725 conftest$ac_exeext conftest.$ac_ext 9726fi 9727 9728 9729 CFLAGS="$xorg_testset_save_CFLAGS" 9730 9731 eval supported=\$$cacheid 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9733$as_echo "$supported" >&6; } 9734 if test "$supported" = "yes" ; then 9735 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9736 found="yes" 9737 fi 9738 fi 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754xorg_testset_save_CFLAGS="$CFLAGS" 9755 9756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9761 $as_echo_n "(cached) " >&6 9762else 9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764/* end confdefs.h. */ 9765int i; 9766_ACEOF 9767if ac_fn_c_try_compile "$LINENO"; then : 9768 xorg_cv_cc_flag_unknown_warning_option=yes 9769else 9770 xorg_cv_cc_flag_unknown_warning_option=no 9771fi 9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9773fi 9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9777 CFLAGS="$xorg_testset_save_CFLAGS" 9778fi 9779 9780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9783 fi 9784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9791/* end confdefs.h. */ 9792int i; 9793_ACEOF 9794if ac_fn_c_try_compile "$LINENO"; then : 9795 xorg_cv_cc_flag_unused_command_line_argument=yes 9796else 9797 xorg_cv_cc_flag_unused_command_line_argument=no 9798fi 9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9800fi 9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9804 CFLAGS="$xorg_testset_save_CFLAGS" 9805fi 9806 9807found="no" 9808 9809 if test $found = "no" ; then 9810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9812 fi 9813 9814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9816 fi 9817 9818 CFLAGS="$CFLAGS -Wwrite-strings" 9819 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9821$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9822 cacheid=xorg_cv_cc_flag__Wwrite_strings 9823 if eval \${$cacheid+:} false; then : 9824 $as_echo_n "(cached) " >&6 9825else 9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827/* end confdefs.h. */ 9828int i; 9829int 9830main () 9831{ 9832 9833 ; 9834 return 0; 9835} 9836_ACEOF 9837if ac_fn_c_try_link "$LINENO"; then : 9838 eval $cacheid=yes 9839else 9840 eval $cacheid=no 9841fi 9842rm -f core conftest.err conftest.$ac_objext \ 9843 conftest$ac_exeext conftest.$ac_ext 9844fi 9845 9846 9847 CFLAGS="$xorg_testset_save_CFLAGS" 9848 9849 eval supported=\$$cacheid 9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9851$as_echo "$supported" >&6; } 9852 if test "$supported" = "yes" ; then 9853 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9854 found="yes" 9855 fi 9856 fi 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872xorg_testset_save_CFLAGS="$CFLAGS" 9873 9874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9879 $as_echo_n "(cached) " >&6 9880else 9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9882/* end confdefs.h. */ 9883int i; 9884_ACEOF 9885if ac_fn_c_try_compile "$LINENO"; then : 9886 xorg_cv_cc_flag_unknown_warning_option=yes 9887else 9888 xorg_cv_cc_flag_unknown_warning_option=no 9889fi 9890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9891fi 9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9895 CFLAGS="$xorg_testset_save_CFLAGS" 9896fi 9897 9898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9901 fi 9902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9906 $as_echo_n "(cached) " >&6 9907else 9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909/* end confdefs.h. */ 9910int i; 9911_ACEOF 9912if ac_fn_c_try_compile "$LINENO"; then : 9913 xorg_cv_cc_flag_unused_command_line_argument=yes 9914else 9915 xorg_cv_cc_flag_unused_command_line_argument=no 9916fi 9917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9918fi 9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9922 CFLAGS="$xorg_testset_save_CFLAGS" 9923fi 9924 9925found="no" 9926 9927 if test $found = "no" ; then 9928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9930 fi 9931 9932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9934 fi 9935 9936 CFLAGS="$CFLAGS -Waddress" 9937 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9939$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9940 cacheid=xorg_cv_cc_flag__Waddress 9941 if eval \${$cacheid+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943else 9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9945/* end confdefs.h. */ 9946int i; 9947int 9948main () 9949{ 9950 9951 ; 9952 return 0; 9953} 9954_ACEOF 9955if ac_fn_c_try_link "$LINENO"; then : 9956 eval $cacheid=yes 9957else 9958 eval $cacheid=no 9959fi 9960rm -f core conftest.err conftest.$ac_objext \ 9961 conftest$ac_exeext conftest.$ac_ext 9962fi 9963 9964 9965 CFLAGS="$xorg_testset_save_CFLAGS" 9966 9967 eval supported=\$$cacheid 9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9969$as_echo "$supported" >&6; } 9970 if test "$supported" = "yes" ; then 9971 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9972 found="yes" 9973 fi 9974 fi 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990xorg_testset_save_CFLAGS="$CFLAGS" 9991 9992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9997 $as_echo_n "(cached) " >&6 9998else 9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10000/* end confdefs.h. */ 10001int i; 10002_ACEOF 10003if ac_fn_c_try_compile "$LINENO"; then : 10004 xorg_cv_cc_flag_unknown_warning_option=yes 10005else 10006 xorg_cv_cc_flag_unknown_warning_option=no 10007fi 10008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10009fi 10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10013 CFLAGS="$xorg_testset_save_CFLAGS" 10014fi 10015 10016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10019 fi 10020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10024 $as_echo_n "(cached) " >&6 10025else 10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10027/* end confdefs.h. */ 10028int i; 10029_ACEOF 10030if ac_fn_c_try_compile "$LINENO"; then : 10031 xorg_cv_cc_flag_unused_command_line_argument=yes 10032else 10033 xorg_cv_cc_flag_unused_command_line_argument=no 10034fi 10035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10036fi 10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10040 CFLAGS="$xorg_testset_save_CFLAGS" 10041fi 10042 10043found="no" 10044 10045 if test $found = "no" ; then 10046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10048 fi 10049 10050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10052 fi 10053 10054 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10055 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10057$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10058 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10059 if eval \${$cacheid+:} false; then : 10060 $as_echo_n "(cached) " >&6 10061else 10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10063/* end confdefs.h. */ 10064int i; 10065int 10066main () 10067{ 10068 10069 ; 10070 return 0; 10071} 10072_ACEOF 10073if ac_fn_c_try_link "$LINENO"; then : 10074 eval $cacheid=yes 10075else 10076 eval $cacheid=no 10077fi 10078rm -f core conftest.err conftest.$ac_objext \ 10079 conftest$ac_exeext conftest.$ac_ext 10080fi 10081 10082 10083 CFLAGS="$xorg_testset_save_CFLAGS" 10084 10085 eval supported=\$$cacheid 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10087$as_echo "$supported" >&6; } 10088 if test "$supported" = "yes" ; then 10089 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10090 found="yes" 10091 fi 10092 fi 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108xorg_testset_save_CFLAGS="$CFLAGS" 10109 10110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10115 $as_echo_n "(cached) " >&6 10116else 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10118/* end confdefs.h. */ 10119int i; 10120_ACEOF 10121if ac_fn_c_try_compile "$LINENO"; then : 10122 xorg_cv_cc_flag_unknown_warning_option=yes 10123else 10124 xorg_cv_cc_flag_unknown_warning_option=no 10125fi 10126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10127fi 10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10131 CFLAGS="$xorg_testset_save_CFLAGS" 10132fi 10133 10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 fi 10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10142 $as_echo_n "(cached) " >&6 10143else 10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10145/* end confdefs.h. */ 10146int i; 10147_ACEOF 10148if ac_fn_c_try_compile "$LINENO"; then : 10149 xorg_cv_cc_flag_unused_command_line_argument=yes 10150else 10151 xorg_cv_cc_flag_unused_command_line_argument=no 10152fi 10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10154fi 10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10158 CFLAGS="$xorg_testset_save_CFLAGS" 10159fi 10160 10161found="no" 10162 10163 if test $found = "no" ; then 10164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10166 fi 10167 10168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10170 fi 10171 10172 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10173 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10175$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10176 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10177 if eval \${$cacheid+:} false; then : 10178 $as_echo_n "(cached) " >&6 10179else 10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10181/* end confdefs.h. */ 10182int i; 10183int 10184main () 10185{ 10186 10187 ; 10188 return 0; 10189} 10190_ACEOF 10191if ac_fn_c_try_link "$LINENO"; then : 10192 eval $cacheid=yes 10193else 10194 eval $cacheid=no 10195fi 10196rm -f core conftest.err conftest.$ac_objext \ 10197 conftest$ac_exeext conftest.$ac_ext 10198fi 10199 10200 10201 CFLAGS="$xorg_testset_save_CFLAGS" 10202 10203 eval supported=\$$cacheid 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10205$as_echo "$supported" >&6; } 10206 if test "$supported" = "yes" ; then 10207 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10208 found="yes" 10209 fi 10210 fi 10211 10212 10213fi 10214 10215 10216 10217 10218 10219 10220 10221 CWARNFLAGS="$BASE_CFLAGS" 10222 if test "x$GCC" = xyes ; then 10223 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10224 fi 10225 10226 10227 10228 10229 10230 10231 10232 10233# Check whether --enable-strict-compilation was given. 10234if test "${enable_strict_compilation+set}" = set; then : 10235 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10236else 10237 STRICT_COMPILE=no 10238fi 10239 10240 10241 10242 10243 10244 10245STRICT_CFLAGS="" 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259xorg_testset_save_CFLAGS="$CFLAGS" 10260 10261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10266 $as_echo_n "(cached) " >&6 10267else 10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10269/* end confdefs.h. */ 10270int i; 10271_ACEOF 10272if ac_fn_c_try_compile "$LINENO"; then : 10273 xorg_cv_cc_flag_unknown_warning_option=yes 10274else 10275 xorg_cv_cc_flag_unknown_warning_option=no 10276fi 10277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10278fi 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10282 CFLAGS="$xorg_testset_save_CFLAGS" 10283fi 10284 10285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10288 fi 10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10293 $as_echo_n "(cached) " >&6 10294else 10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296/* end confdefs.h. */ 10297int i; 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO"; then : 10300 xorg_cv_cc_flag_unused_command_line_argument=yes 10301else 10302 xorg_cv_cc_flag_unused_command_line_argument=no 10303fi 10304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10305fi 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10309 CFLAGS="$xorg_testset_save_CFLAGS" 10310fi 10311 10312found="no" 10313 10314 if test $found = "no" ; then 10315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10317 fi 10318 10319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10321 fi 10322 10323 CFLAGS="$CFLAGS -pedantic" 10324 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10326$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10327 cacheid=xorg_cv_cc_flag__pedantic 10328 if eval \${$cacheid+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330else 10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10332/* end confdefs.h. */ 10333int i; 10334int 10335main () 10336{ 10337 10338 ; 10339 return 0; 10340} 10341_ACEOF 10342if ac_fn_c_try_link "$LINENO"; then : 10343 eval $cacheid=yes 10344else 10345 eval $cacheid=no 10346fi 10347rm -f core conftest.err conftest.$ac_objext \ 10348 conftest$ac_exeext conftest.$ac_ext 10349fi 10350 10351 10352 CFLAGS="$xorg_testset_save_CFLAGS" 10353 10354 eval supported=\$$cacheid 10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10356$as_echo "$supported" >&6; } 10357 if test "$supported" = "yes" ; then 10358 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10359 found="yes" 10360 fi 10361 fi 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377xorg_testset_save_CFLAGS="$CFLAGS" 10378 10379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10384 $as_echo_n "(cached) " >&6 10385else 10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10387/* end confdefs.h. */ 10388int i; 10389_ACEOF 10390if ac_fn_c_try_compile "$LINENO"; then : 10391 xorg_cv_cc_flag_unknown_warning_option=yes 10392else 10393 xorg_cv_cc_flag_unknown_warning_option=no 10394fi 10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10396fi 10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10400 CFLAGS="$xorg_testset_save_CFLAGS" 10401fi 10402 10403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10406 fi 10407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10411 $as_echo_n "(cached) " >&6 10412else 10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10414/* end confdefs.h. */ 10415int i; 10416_ACEOF 10417if ac_fn_c_try_compile "$LINENO"; then : 10418 xorg_cv_cc_flag_unused_command_line_argument=yes 10419else 10420 xorg_cv_cc_flag_unused_command_line_argument=no 10421fi 10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10423fi 10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10427 CFLAGS="$xorg_testset_save_CFLAGS" 10428fi 10429 10430found="no" 10431 10432 if test $found = "no" ; then 10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10435 fi 10436 10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10439 fi 10440 10441 CFLAGS="$CFLAGS -Werror" 10442 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10444$as_echo_n "checking if $CC supports -Werror... " >&6; } 10445 cacheid=xorg_cv_cc_flag__Werror 10446 if eval \${$cacheid+:} false; then : 10447 $as_echo_n "(cached) " >&6 10448else 10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10450/* end confdefs.h. */ 10451int i; 10452int 10453main () 10454{ 10455 10456 ; 10457 return 0; 10458} 10459_ACEOF 10460if ac_fn_c_try_link "$LINENO"; then : 10461 eval $cacheid=yes 10462else 10463 eval $cacheid=no 10464fi 10465rm -f core conftest.err conftest.$ac_objext \ 10466 conftest$ac_exeext conftest.$ac_ext 10467fi 10468 10469 10470 CFLAGS="$xorg_testset_save_CFLAGS" 10471 10472 eval supported=\$$cacheid 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10474$as_echo "$supported" >&6; } 10475 if test "$supported" = "yes" ; then 10476 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10477 found="yes" 10478 fi 10479 fi 10480 10481 if test $found = "no" ; then 10482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10484 fi 10485 10486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10488 fi 10489 10490 CFLAGS="$CFLAGS -errwarn" 10491 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10493$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10494 cacheid=xorg_cv_cc_flag__errwarn 10495 if eval \${$cacheid+:} false; then : 10496 $as_echo_n "(cached) " >&6 10497else 10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499/* end confdefs.h. */ 10500int i; 10501int 10502main () 10503{ 10504 10505 ; 10506 return 0; 10507} 10508_ACEOF 10509if ac_fn_c_try_link "$LINENO"; then : 10510 eval $cacheid=yes 10511else 10512 eval $cacheid=no 10513fi 10514rm -f core conftest.err conftest.$ac_objext \ 10515 conftest$ac_exeext conftest.$ac_ext 10516fi 10517 10518 10519 CFLAGS="$xorg_testset_save_CFLAGS" 10520 10521 eval supported=\$$cacheid 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10523$as_echo "$supported" >&6; } 10524 if test "$supported" = "yes" ; then 10525 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10526 found="yes" 10527 fi 10528 fi 10529 10530 10531 10532# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10533# activate it with -Werror, so we add it here explicitly. 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547xorg_testset_save_CFLAGS="$CFLAGS" 10548 10549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10554 $as_echo_n "(cached) " >&6 10555else 10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10557/* end confdefs.h. */ 10558int i; 10559_ACEOF 10560if ac_fn_c_try_compile "$LINENO"; then : 10561 xorg_cv_cc_flag_unknown_warning_option=yes 10562else 10563 xorg_cv_cc_flag_unknown_warning_option=no 10564fi 10565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10566fi 10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10570 CFLAGS="$xorg_testset_save_CFLAGS" 10571fi 10572 10573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10576 fi 10577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10581 $as_echo_n "(cached) " >&6 10582else 10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10584/* end confdefs.h. */ 10585int i; 10586_ACEOF 10587if ac_fn_c_try_compile "$LINENO"; then : 10588 xorg_cv_cc_flag_unused_command_line_argument=yes 10589else 10590 xorg_cv_cc_flag_unused_command_line_argument=no 10591fi 10592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10593fi 10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10597 CFLAGS="$xorg_testset_save_CFLAGS" 10598fi 10599 10600found="no" 10601 10602 if test $found = "no" ; then 10603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10605 fi 10606 10607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10609 fi 10610 10611 CFLAGS="$CFLAGS -Werror=attributes" 10612 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10614$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10615 cacheid=xorg_cv_cc_flag__Werror_attributes 10616 if eval \${$cacheid+:} false; then : 10617 $as_echo_n "(cached) " >&6 10618else 10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10620/* end confdefs.h. */ 10621int i; 10622int 10623main () 10624{ 10625 10626 ; 10627 return 0; 10628} 10629_ACEOF 10630if ac_fn_c_try_link "$LINENO"; then : 10631 eval $cacheid=yes 10632else 10633 eval $cacheid=no 10634fi 10635rm -f core conftest.err conftest.$ac_objext \ 10636 conftest$ac_exeext conftest.$ac_ext 10637fi 10638 10639 10640 CFLAGS="$xorg_testset_save_CFLAGS" 10641 10642 eval supported=\$$cacheid 10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10644$as_echo "$supported" >&6; } 10645 if test "$supported" = "yes" ; then 10646 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10647 found="yes" 10648 fi 10649 fi 10650 10651 10652 10653if test "x$STRICT_COMPILE" = "xyes"; then 10654 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10655 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10656fi 10657 10658 10659 10660 10661 10662 10663cat >>confdefs.h <<_ACEOF 10664#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10665_ACEOF 10666 10667 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10668 if test "x$PVM" = "x"; then 10669 PVM="0" 10670 fi 10671 10672cat >>confdefs.h <<_ACEOF 10673#define PACKAGE_VERSION_MINOR $PVM 10674_ACEOF 10675 10676 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10677 if test "x$PVP" = "x"; then 10678 PVP="0" 10679 fi 10680 10681cat >>confdefs.h <<_ACEOF 10682#define PACKAGE_VERSION_PATCHLEVEL $PVP 10683_ACEOF 10684 10685 10686 10687CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10688mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10689|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10690echo 'git directory not found: installing possibly empty changelog.' >&2)" 10691 10692 10693 10694 10695macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10696INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10697mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10698|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10699echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10700 10701 10702 10703 10704 10705 10706if test x$APP_MAN_SUFFIX = x ; then 10707 APP_MAN_SUFFIX=1 10708fi 10709if test x$APP_MAN_DIR = x ; then 10710 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10711fi 10712 10713if test x$LIB_MAN_SUFFIX = x ; then 10714 LIB_MAN_SUFFIX=3 10715fi 10716if test x$LIB_MAN_DIR = x ; then 10717 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10718fi 10719 10720if test x$FILE_MAN_SUFFIX = x ; then 10721 case $host_os in 10722 solaris*) FILE_MAN_SUFFIX=4 ;; 10723 *) FILE_MAN_SUFFIX=5 ;; 10724 esac 10725fi 10726if test x$FILE_MAN_DIR = x ; then 10727 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10728fi 10729 10730if test x$MISC_MAN_SUFFIX = x ; then 10731 case $host_os in 10732 solaris*) MISC_MAN_SUFFIX=5 ;; 10733 *) MISC_MAN_SUFFIX=7 ;; 10734 esac 10735fi 10736if test x$MISC_MAN_DIR = x ; then 10737 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10738fi 10739 10740if test x$DRIVER_MAN_SUFFIX = x ; then 10741 case $host_os in 10742 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10743 *) DRIVER_MAN_SUFFIX=4 ;; 10744 esac 10745fi 10746if test x$DRIVER_MAN_DIR = x ; then 10747 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10748fi 10749 10750if test x$ADMIN_MAN_SUFFIX = x ; then 10751 case $host_os in 10752 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10753 *) ADMIN_MAN_SUFFIX=8 ;; 10754 esac 10755fi 10756if test x$ADMIN_MAN_DIR = x ; then 10757 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10758fi 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774XORG_MAN_PAGE="X Version 11" 10775 10776MAN_SUBSTS="\ 10777 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10778 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10779 -e 's|__xservername__|Xorg|g' \ 10780 -e 's|__xconfigfile__|xorg.conf|g' \ 10781 -e 's|__projectroot__|\$(prefix)|g' \ 10782 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10783 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10784 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10785 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10786 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10787 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10788 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10789 10790 10791 10792# Check whether --enable-silent-rules was given. 10793if test "${enable_silent_rules+set}" = set; then : 10794 enableval=$enable_silent_rules; 10795fi 10796 10797case $enable_silent_rules in # ((( 10798 yes) AM_DEFAULT_VERBOSITY=0;; 10799 no) AM_DEFAULT_VERBOSITY=1;; 10800 *) AM_DEFAULT_VERBOSITY=0;; 10801esac 10802am_make=${MAKE-make} 10803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10804$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10805if ${am_cv_make_support_nested_variables+:} false; then : 10806 $as_echo_n "(cached) " >&6 10807else 10808 if $as_echo 'TRUE=$(BAR$(V)) 10809BAR0=false 10810BAR1=true 10811V=1 10812am__doit: 10813 @$(TRUE) 10814.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10815 am_cv_make_support_nested_variables=yes 10816else 10817 am_cv_make_support_nested_variables=no 10818fi 10819fi 10820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10821$as_echo "$am_cv_make_support_nested_variables" >&6; } 10822if test $am_cv_make_support_nested_variables = yes; then 10823 AM_V='$(V)' 10824 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10825else 10826 AM_V=$AM_DEFAULT_VERBOSITY 10827 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10828fi 10829AM_BACKSLASH='\' 10830 10831 10832 10833# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules 10834 10835 10836 10837# Checks for programs. 10838# Check whether --enable-static was given. 10839if test "${enable_static+set}" = set; then : 10840 enableval=$enable_static; p=${PACKAGE-default} 10841 case $enableval in 10842 yes) enable_static=yes ;; 10843 no) enable_static=no ;; 10844 *) 10845 enable_static=no 10846 # Look at the argument we got. We use all the common list separators. 10847 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10848 for pkg in $enableval; do 10849 IFS=$lt_save_ifs 10850 if test "X$pkg" = "X$p"; then 10851 enable_static=yes 10852 fi 10853 done 10854 IFS=$lt_save_ifs 10855 ;; 10856 esac 10857else 10858 enable_static=no 10859fi 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869case `pwd` in 10870 *\ * | *\ *) 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10872$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10873esac 10874 10875 10876 10877macro_version='2.4.6' 10878macro_revision='2.4.6' 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892ltmain=$ac_aux_dir/ltmain.sh 10893 10894# Backslashify metacharacters that are still active within 10895# double-quoted strings. 10896sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10897 10898# Same as above, but do not quote variable references. 10899double_quote_subst='s/\(["`\\]\)/\\\1/g' 10900 10901# Sed substitution to delay expansion of an escaped shell variable in a 10902# double_quote_subst'ed string. 10903delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10904 10905# Sed substitution to delay expansion of an escaped single quote. 10906delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10907 10908# Sed substitution to avoid accidental globbing in evaled expressions 10909no_glob_subst='s/\*/\\\*/g' 10910 10911ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10912ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10913ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10914 10915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10916$as_echo_n "checking how to print strings... " >&6; } 10917# Test print first, because it will be a builtin if present. 10918if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10919 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10920 ECHO='print -r --' 10921elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10922 ECHO='printf %s\n' 10923else 10924 # Use this function as a fallback that always works. 10925 func_fallback_echo () 10926 { 10927 eval 'cat <<_LTECHO_EOF 10928$1 10929_LTECHO_EOF' 10930 } 10931 ECHO='func_fallback_echo' 10932fi 10933 10934# func_echo_all arg... 10935# Invoke $ECHO with all args, space-separated. 10936func_echo_all () 10937{ 10938 $ECHO "" 10939} 10940 10941case $ECHO in 10942 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10943$as_echo "printf" >&6; } ;; 10944 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10945$as_echo "print -r" >&6; } ;; 10946 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10947$as_echo "cat" >&6; } ;; 10948esac 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10964$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10965if ${ac_cv_path_SED+:} false; then : 10966 $as_echo_n "(cached) " >&6 10967else 10968 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10969 for ac_i in 1 2 3 4 5 6 7; do 10970 ac_script="$ac_script$as_nl$ac_script" 10971 done 10972 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10973 { ac_script=; unset ac_script;} 10974 if test -z "$SED"; then 10975 ac_path_SED_found=false 10976 # Loop through the user's path and test for each of PROGNAME-LIST 10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10978for as_dir in $PATH 10979do 10980 IFS=$as_save_IFS 10981 test -z "$as_dir" && as_dir=. 10982 for ac_prog in sed gsed; do 10983 for ac_exec_ext in '' $ac_executable_extensions; do 10984 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10985 as_fn_executable_p "$ac_path_SED" || continue 10986# Check for GNU ac_path_SED and select it if it is found. 10987 # Check for GNU $ac_path_SED 10988case `"$ac_path_SED" --version 2>&1` in 10989*GNU*) 10990 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10991*) 10992 ac_count=0 10993 $as_echo_n 0123456789 >"conftest.in" 10994 while : 10995 do 10996 cat "conftest.in" "conftest.in" >"conftest.tmp" 10997 mv "conftest.tmp" "conftest.in" 10998 cp "conftest.in" "conftest.nl" 10999 $as_echo '' >> "conftest.nl" 11000 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11002 as_fn_arith $ac_count + 1 && ac_count=$as_val 11003 if test $ac_count -gt ${ac_path_SED_max-0}; then 11004 # Best one so far, save it but keep looking for a better one 11005 ac_cv_path_SED="$ac_path_SED" 11006 ac_path_SED_max=$ac_count 11007 fi 11008 # 10*(2^10) chars as input seems more than enough 11009 test $ac_count -gt 10 && break 11010 done 11011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11012esac 11013 11014 $ac_path_SED_found && break 3 11015 done 11016 done 11017 done 11018IFS=$as_save_IFS 11019 if test -z "$ac_cv_path_SED"; then 11020 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11021 fi 11022else 11023 ac_cv_path_SED=$SED 11024fi 11025 11026fi 11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11028$as_echo "$ac_cv_path_SED" >&6; } 11029 SED="$ac_cv_path_SED" 11030 rm -f conftest.sed 11031 11032test -z "$SED" && SED=sed 11033Xsed="$SED -e 1s/^X//" 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11046$as_echo_n "checking for fgrep... " >&6; } 11047if ${ac_cv_path_FGREP+:} false; then : 11048 $as_echo_n "(cached) " >&6 11049else 11050 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11051 then ac_cv_path_FGREP="$GREP -F" 11052 else 11053 if test -z "$FGREP"; then 11054 ac_path_FGREP_found=false 11055 # Loop through the user's path and test for each of PROGNAME-LIST 11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11058do 11059 IFS=$as_save_IFS 11060 test -z "$as_dir" && as_dir=. 11061 for ac_prog in fgrep; do 11062 for ac_exec_ext in '' $ac_executable_extensions; do 11063 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11064 as_fn_executable_p "$ac_path_FGREP" || continue 11065# Check for GNU ac_path_FGREP and select it if it is found. 11066 # Check for GNU $ac_path_FGREP 11067case `"$ac_path_FGREP" --version 2>&1` in 11068*GNU*) 11069 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11070*) 11071 ac_count=0 11072 $as_echo_n 0123456789 >"conftest.in" 11073 while : 11074 do 11075 cat "conftest.in" "conftest.in" >"conftest.tmp" 11076 mv "conftest.tmp" "conftest.in" 11077 cp "conftest.in" "conftest.nl" 11078 $as_echo 'FGREP' >> "conftest.nl" 11079 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11081 as_fn_arith $ac_count + 1 && ac_count=$as_val 11082 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11083 # Best one so far, save it but keep looking for a better one 11084 ac_cv_path_FGREP="$ac_path_FGREP" 11085 ac_path_FGREP_max=$ac_count 11086 fi 11087 # 10*(2^10) chars as input seems more than enough 11088 test $ac_count -gt 10 && break 11089 done 11090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11091esac 11092 11093 $ac_path_FGREP_found && break 3 11094 done 11095 done 11096 done 11097IFS=$as_save_IFS 11098 if test -z "$ac_cv_path_FGREP"; then 11099 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11100 fi 11101else 11102 ac_cv_path_FGREP=$FGREP 11103fi 11104 11105 fi 11106fi 11107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11108$as_echo "$ac_cv_path_FGREP" >&6; } 11109 FGREP="$ac_cv_path_FGREP" 11110 11111 11112test -z "$GREP" && GREP=grep 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132# Check whether --with-gnu-ld was given. 11133if test "${with_gnu_ld+set}" = set; then : 11134 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11135else 11136 with_gnu_ld=no 11137fi 11138 11139ac_prog=ld 11140if test yes = "$GCC"; then 11141 # Check if gcc -print-prog-name=ld gives a path. 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11143$as_echo_n "checking for ld used by $CC... " >&6; } 11144 case $host in 11145 *-*-mingw*) 11146 # gcc leaves a trailing carriage return, which upsets mingw 11147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11148 *) 11149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11150 esac 11151 case $ac_prog in 11152 # Accept absolute paths. 11153 [\\/]* | ?:[\\/]*) 11154 re_direlt='/[^/][^/]*/\.\./' 11155 # Canonicalize the pathname of ld 11156 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11157 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11158 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11159 done 11160 test -z "$LD" && LD=$ac_prog 11161 ;; 11162 "") 11163 # If it fails, then pretend we aren't using GCC. 11164 ac_prog=ld 11165 ;; 11166 *) 11167 # If it is relative, then search for the first ld in PATH. 11168 with_gnu_ld=unknown 11169 ;; 11170 esac 11171elif test yes = "$with_gnu_ld"; then 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11173$as_echo_n "checking for GNU ld... " >&6; } 11174else 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11176$as_echo_n "checking for non-GNU ld... " >&6; } 11177fi 11178if ${lt_cv_path_LD+:} false; then : 11179 $as_echo_n "(cached) " >&6 11180else 11181 if test -z "$LD"; then 11182 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11183 for ac_dir in $PATH; do 11184 IFS=$lt_save_ifs 11185 test -z "$ac_dir" && ac_dir=. 11186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11187 lt_cv_path_LD=$ac_dir/$ac_prog 11188 # Check to see if the program is GNU ld. I'd rather use --version, 11189 # but apparently some variants of GNU ld only accept -v. 11190 # Break only if it was the GNU/non-GNU ld that we prefer. 11191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11192 *GNU* | *'with BFD'*) 11193 test no != "$with_gnu_ld" && break 11194 ;; 11195 *) 11196 test yes != "$with_gnu_ld" && break 11197 ;; 11198 esac 11199 fi 11200 done 11201 IFS=$lt_save_ifs 11202else 11203 lt_cv_path_LD=$LD # Let the user override the test with a path. 11204fi 11205fi 11206 11207LD=$lt_cv_path_LD 11208if test -n "$LD"; then 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11210$as_echo "$LD" >&6; } 11211else 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11213$as_echo "no" >&6; } 11214fi 11215test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11217$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11218if ${lt_cv_prog_gnu_ld+:} false; then : 11219 $as_echo_n "(cached) " >&6 11220else 11221 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11222case `$LD -v 2>&1 </dev/null` in 11223*GNU* | *'with BFD'*) 11224 lt_cv_prog_gnu_ld=yes 11225 ;; 11226*) 11227 lt_cv_prog_gnu_ld=no 11228 ;; 11229esac 11230fi 11231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11232$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11233with_gnu_ld=$lt_cv_prog_gnu_ld 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11244$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11245if ${lt_cv_path_NM+:} false; then : 11246 $as_echo_n "(cached) " >&6 11247else 11248 if test -n "$NM"; then 11249 # Let the user override the test. 11250 lt_cv_path_NM=$NM 11251else 11252 lt_nm_to_check=${ac_tool_prefix}nm 11253 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11254 lt_nm_to_check="$lt_nm_to_check nm" 11255 fi 11256 for lt_tmp_nm in $lt_nm_to_check; do 11257 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11258 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11259 IFS=$lt_save_ifs 11260 test -z "$ac_dir" && ac_dir=. 11261 tmp_nm=$ac_dir/$lt_tmp_nm 11262 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11263 # Check to see if the nm accepts a BSD-compat flag. 11264 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11265 # nm: unknown option "B" ignored 11266 # Tru64's nm complains that /dev/null is an invalid object file 11267 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11268 case $build_os in 11269 mingw*) lt_bad_file=conftest.nm/nofile ;; 11270 *) lt_bad_file=/dev/null ;; 11271 esac 11272 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11273 *$lt_bad_file* | *'Invalid file or object type'*) 11274 lt_cv_path_NM="$tmp_nm -B" 11275 break 2 11276 ;; 11277 *) 11278 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11279 */dev/null*) 11280 lt_cv_path_NM="$tmp_nm -p" 11281 break 2 11282 ;; 11283 *) 11284 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11285 continue # so that we can try to find one that supports BSD flags 11286 ;; 11287 esac 11288 ;; 11289 esac 11290 fi 11291 done 11292 IFS=$lt_save_ifs 11293 done 11294 : ${lt_cv_path_NM=no} 11295fi 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11298$as_echo "$lt_cv_path_NM" >&6; } 11299if test no != "$lt_cv_path_NM"; then 11300 NM=$lt_cv_path_NM 11301else 11302 # Didn't find any BSD compatible name lister, look for dumpbin. 11303 if test -n "$DUMPBIN"; then : 11304 # Let the user override the test. 11305 else 11306 if test -n "$ac_tool_prefix"; then 11307 for ac_prog in dumpbin "link -dump" 11308 do 11309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11310set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11312$as_echo_n "checking for $ac_word... " >&6; } 11313if ${ac_cv_prog_DUMPBIN+:} false; then : 11314 $as_echo_n "(cached) " >&6 11315else 11316 if test -n "$DUMPBIN"; then 11317 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11318else 11319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11320for as_dir in $PATH 11321do 11322 IFS=$as_save_IFS 11323 test -z "$as_dir" && as_dir=. 11324 for ac_exec_ext in '' $ac_executable_extensions; do 11325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11326 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11328 break 2 11329 fi 11330done 11331 done 11332IFS=$as_save_IFS 11333 11334fi 11335fi 11336DUMPBIN=$ac_cv_prog_DUMPBIN 11337if test -n "$DUMPBIN"; then 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11339$as_echo "$DUMPBIN" >&6; } 11340else 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11342$as_echo "no" >&6; } 11343fi 11344 11345 11346 test -n "$DUMPBIN" && break 11347 done 11348fi 11349if test -z "$DUMPBIN"; then 11350 ac_ct_DUMPBIN=$DUMPBIN 11351 for ac_prog in dumpbin "link -dump" 11352do 11353 # Extract the first word of "$ac_prog", so it can be a program name with args. 11354set dummy $ac_prog; ac_word=$2 11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11356$as_echo_n "checking for $ac_word... " >&6; } 11357if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11358 $as_echo_n "(cached) " >&6 11359else 11360 if test -n "$ac_ct_DUMPBIN"; then 11361 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11362else 11363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11364for as_dir in $PATH 11365do 11366 IFS=$as_save_IFS 11367 test -z "$as_dir" && as_dir=. 11368 for ac_exec_ext in '' $ac_executable_extensions; do 11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11370 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11372 break 2 11373 fi 11374done 11375 done 11376IFS=$as_save_IFS 11377 11378fi 11379fi 11380ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11381if test -n "$ac_ct_DUMPBIN"; then 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11383$as_echo "$ac_ct_DUMPBIN" >&6; } 11384else 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11386$as_echo "no" >&6; } 11387fi 11388 11389 11390 test -n "$ac_ct_DUMPBIN" && break 11391done 11392 11393 if test "x$ac_ct_DUMPBIN" = x; then 11394 DUMPBIN=":" 11395 else 11396 case $cross_compiling:$ac_tool_warned in 11397yes:) 11398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11400ac_tool_warned=yes ;; 11401esac 11402 DUMPBIN=$ac_ct_DUMPBIN 11403 fi 11404fi 11405 11406 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11407 *COFF*) 11408 DUMPBIN="$DUMPBIN -symbols -headers" 11409 ;; 11410 *) 11411 DUMPBIN=: 11412 ;; 11413 esac 11414 fi 11415 11416 if test : != "$DUMPBIN"; then 11417 NM=$DUMPBIN 11418 fi 11419fi 11420test -z "$NM" && NM=nm 11421 11422 11423 11424 11425 11426 11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11428$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11429if ${lt_cv_nm_interface+:} false; then : 11430 $as_echo_n "(cached) " >&6 11431else 11432 lt_cv_nm_interface="BSD nm" 11433 echo "int some_variable = 0;" > conftest.$ac_ext 11434 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11435 (eval "$ac_compile" 2>conftest.err) 11436 cat conftest.err >&5 11437 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11438 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11439 cat conftest.err >&5 11440 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11441 cat conftest.out >&5 11442 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11443 lt_cv_nm_interface="MS dumpbin" 11444 fi 11445 rm -f conftest* 11446fi 11447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11448$as_echo "$lt_cv_nm_interface" >&6; } 11449 11450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11451$as_echo_n "checking whether ln -s works... " >&6; } 11452LN_S=$as_ln_s 11453if test "$LN_S" = "ln -s"; then 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11455$as_echo "yes" >&6; } 11456else 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11458$as_echo "no, using $LN_S" >&6; } 11459fi 11460 11461# find the maximum length of command line arguments 11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11463$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11464if ${lt_cv_sys_max_cmd_len+:} false; then : 11465 $as_echo_n "(cached) " >&6 11466else 11467 i=0 11468 teststring=ABCD 11469 11470 case $build_os in 11471 msdosdjgpp*) 11472 # On DJGPP, this test can blow up pretty badly due to problems in libc 11473 # (any single argument exceeding 2000 bytes causes a buffer overrun 11474 # during glob expansion). Even if it were fixed, the result of this 11475 # check would be larger than it should be. 11476 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11477 ;; 11478 11479 gnu*) 11480 # Under GNU Hurd, this test is not required because there is 11481 # no limit to the length of command line arguments. 11482 # Libtool will interpret -1 as no limit whatsoever 11483 lt_cv_sys_max_cmd_len=-1; 11484 ;; 11485 11486 cygwin* | mingw* | cegcc*) 11487 # On Win9x/ME, this test blows up -- it succeeds, but takes 11488 # about 5 minutes as the teststring grows exponentially. 11489 # Worse, since 9x/ME are not pre-emptively multitasking, 11490 # you end up with a "frozen" computer, even though with patience 11491 # the test eventually succeeds (with a max line length of 256k). 11492 # Instead, let's just punt: use the minimum linelength reported by 11493 # all of the supported platforms: 8192 (on NT/2K/XP). 11494 lt_cv_sys_max_cmd_len=8192; 11495 ;; 11496 11497 mint*) 11498 # On MiNT this can take a long time and run out of memory. 11499 lt_cv_sys_max_cmd_len=8192; 11500 ;; 11501 11502 amigaos*) 11503 # On AmigaOS with pdksh, this test takes hours, literally. 11504 # So we just punt and use a minimum line length of 8192. 11505 lt_cv_sys_max_cmd_len=8192; 11506 ;; 11507 11508 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11509 # This has been around since 386BSD, at least. Likely further. 11510 if test -x /sbin/sysctl; then 11511 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11512 elif test -x /usr/sbin/sysctl; then 11513 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11514 else 11515 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11516 fi 11517 # And add a safety zone 11518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11520 ;; 11521 11522 interix*) 11523 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11524 lt_cv_sys_max_cmd_len=196608 11525 ;; 11526 11527 os2*) 11528 # The test takes a long time on OS/2. 11529 lt_cv_sys_max_cmd_len=8192 11530 ;; 11531 11532 osf*) 11533 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11534 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11535 # nice to cause kernel panics so lets avoid the loop below. 11536 # First set a reasonable default. 11537 lt_cv_sys_max_cmd_len=16384 11538 # 11539 if test -x /sbin/sysconfig; then 11540 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11541 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11542 esac 11543 fi 11544 ;; 11545 sco3.2v5*) 11546 lt_cv_sys_max_cmd_len=102400 11547 ;; 11548 sysv5* | sco5v6* | sysv4.2uw2*) 11549 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11550 if test -n "$kargmax"; then 11551 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11552 else 11553 lt_cv_sys_max_cmd_len=32768 11554 fi 11555 ;; 11556 *) 11557 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11558 if test -n "$lt_cv_sys_max_cmd_len" && \ 11559 test undefined != "$lt_cv_sys_max_cmd_len"; then 11560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11562 else 11563 # Make teststring a little bigger before we do anything with it. 11564 # a 1K string should be a reasonable start. 11565 for i in 1 2 3 4 5 6 7 8; do 11566 teststring=$teststring$teststring 11567 done 11568 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11569 # If test is not a shell built-in, we'll probably end up computing a 11570 # maximum length that is only half of the actual maximum length, but 11571 # we can't tell. 11572 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11573 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11574 test 17 != "$i" # 1/2 MB should be enough 11575 do 11576 i=`expr $i + 1` 11577 teststring=$teststring$teststring 11578 done 11579 # Only check the string length outside the loop. 11580 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11581 teststring= 11582 # Add a significant safety factor because C++ compilers can tack on 11583 # massive amounts of additional arguments before passing them to the 11584 # linker. It appears as though 1/2 is a usable value. 11585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11586 fi 11587 ;; 11588 esac 11589 11590fi 11591 11592if test -n "$lt_cv_sys_max_cmd_len"; then 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11594$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11595else 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11597$as_echo "none" >&6; } 11598fi 11599max_cmd_len=$lt_cv_sys_max_cmd_len 11600 11601 11602 11603 11604 11605 11606: ${CP="cp -f"} 11607: ${MV="mv -f"} 11608: ${RM="rm -f"} 11609 11610if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11611 lt_unset=unset 11612else 11613 lt_unset=false 11614fi 11615 11616 11617 11618 11619 11620# test EBCDIC or ASCII 11621case `echo X|tr X '\101'` in 11622 A) # ASCII based system 11623 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11624 lt_SP2NL='tr \040 \012' 11625 lt_NL2SP='tr \015\012 \040\040' 11626 ;; 11627 *) # EBCDIC based system 11628 lt_SP2NL='tr \100 \n' 11629 lt_NL2SP='tr \r\n \100\100' 11630 ;; 11631esac 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11642$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11643if ${lt_cv_to_host_file_cmd+:} false; then : 11644 $as_echo_n "(cached) " >&6 11645else 11646 case $host in 11647 *-*-mingw* ) 11648 case $build in 11649 *-*-mingw* ) # actually msys 11650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11651 ;; 11652 *-*-cygwin* ) 11653 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11654 ;; 11655 * ) # otherwise, assume *nix 11656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11657 ;; 11658 esac 11659 ;; 11660 *-*-cygwin* ) 11661 case $build in 11662 *-*-mingw* ) # actually msys 11663 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11664 ;; 11665 *-*-cygwin* ) 11666 lt_cv_to_host_file_cmd=func_convert_file_noop 11667 ;; 11668 * ) # otherwise, assume *nix 11669 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11670 ;; 11671 esac 11672 ;; 11673 * ) # unhandled hosts (and "normal" native builds) 11674 lt_cv_to_host_file_cmd=func_convert_file_noop 11675 ;; 11676esac 11677 11678fi 11679 11680to_host_file_cmd=$lt_cv_to_host_file_cmd 11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11682$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11683 11684 11685 11686 11687 11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11689$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11690if ${lt_cv_to_tool_file_cmd+:} false; then : 11691 $as_echo_n "(cached) " >&6 11692else 11693 #assume ordinary cross tools, or native build. 11694lt_cv_to_tool_file_cmd=func_convert_file_noop 11695case $host in 11696 *-*-mingw* ) 11697 case $build in 11698 *-*-mingw* ) # actually msys 11699 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11700 ;; 11701 esac 11702 ;; 11703esac 11704 11705fi 11706 11707to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11709$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11710 11711 11712 11713 11714 11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11716$as_echo_n "checking for $LD option to reload object files... " >&6; } 11717if ${lt_cv_ld_reload_flag+:} false; then : 11718 $as_echo_n "(cached) " >&6 11719else 11720 lt_cv_ld_reload_flag='-r' 11721fi 11722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11723$as_echo "$lt_cv_ld_reload_flag" >&6; } 11724reload_flag=$lt_cv_ld_reload_flag 11725case $reload_flag in 11726"" | " "*) ;; 11727*) reload_flag=" $reload_flag" ;; 11728esac 11729reload_cmds='$LD$reload_flag -o $output$reload_objs' 11730case $host_os in 11731 cygwin* | mingw* | pw32* | cegcc*) 11732 if test yes != "$GCC"; then 11733 reload_cmds=false 11734 fi 11735 ;; 11736 darwin*) 11737 if test yes = "$GCC"; then 11738 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11739 else 11740 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11741 fi 11742 ;; 11743esac 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753if test -n "$ac_tool_prefix"; then 11754 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11755set dummy ${ac_tool_prefix}objdump; ac_word=$2 11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11757$as_echo_n "checking for $ac_word... " >&6; } 11758if ${ac_cv_prog_OBJDUMP+:} false; then : 11759 $as_echo_n "(cached) " >&6 11760else 11761 if test -n "$OBJDUMP"; then 11762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11763else 11764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11765for as_dir in $PATH 11766do 11767 IFS=$as_save_IFS 11768 test -z "$as_dir" && as_dir=. 11769 for ac_exec_ext in '' $ac_executable_extensions; do 11770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11771 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11773 break 2 11774 fi 11775done 11776 done 11777IFS=$as_save_IFS 11778 11779fi 11780fi 11781OBJDUMP=$ac_cv_prog_OBJDUMP 11782if test -n "$OBJDUMP"; then 11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11784$as_echo "$OBJDUMP" >&6; } 11785else 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11787$as_echo "no" >&6; } 11788fi 11789 11790 11791fi 11792if test -z "$ac_cv_prog_OBJDUMP"; then 11793 ac_ct_OBJDUMP=$OBJDUMP 11794 # Extract the first word of "objdump", so it can be a program name with args. 11795set dummy objdump; ac_word=$2 11796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11797$as_echo_n "checking for $ac_word... " >&6; } 11798if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11799 $as_echo_n "(cached) " >&6 11800else 11801 if test -n "$ac_ct_OBJDUMP"; then 11802 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11803else 11804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11805for as_dir in $PATH 11806do 11807 IFS=$as_save_IFS 11808 test -z "$as_dir" && as_dir=. 11809 for ac_exec_ext in '' $ac_executable_extensions; do 11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11811 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11813 break 2 11814 fi 11815done 11816 done 11817IFS=$as_save_IFS 11818 11819fi 11820fi 11821ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11822if test -n "$ac_ct_OBJDUMP"; then 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11824$as_echo "$ac_ct_OBJDUMP" >&6; } 11825else 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11827$as_echo "no" >&6; } 11828fi 11829 11830 if test "x$ac_ct_OBJDUMP" = x; then 11831 OBJDUMP="false" 11832 else 11833 case $cross_compiling:$ac_tool_warned in 11834yes:) 11835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11837ac_tool_warned=yes ;; 11838esac 11839 OBJDUMP=$ac_ct_OBJDUMP 11840 fi 11841else 11842 OBJDUMP="$ac_cv_prog_OBJDUMP" 11843fi 11844 11845test -z "$OBJDUMP" && OBJDUMP=objdump 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11856$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11857if ${lt_cv_deplibs_check_method+:} false; then : 11858 $as_echo_n "(cached) " >&6 11859else 11860 lt_cv_file_magic_cmd='$MAGIC_CMD' 11861lt_cv_file_magic_test_file= 11862lt_cv_deplibs_check_method='unknown' 11863# Need to set the preceding variable on all platforms that support 11864# interlibrary dependencies. 11865# 'none' -- dependencies not supported. 11866# 'unknown' -- same as none, but documents that we really don't know. 11867# 'pass_all' -- all dependencies passed with no checks. 11868# 'test_compile' -- check by making test program. 11869# 'file_magic [[regex]]' -- check by looking for files in library path 11870# that responds to the $file_magic_cmd with a given extended regex. 11871# If you have 'file' or equivalent on your system and you're not sure 11872# whether 'pass_all' will *always* work, you probably want this one. 11873 11874case $host_os in 11875aix[4-9]*) 11876 lt_cv_deplibs_check_method=pass_all 11877 ;; 11878 11879beos*) 11880 lt_cv_deplibs_check_method=pass_all 11881 ;; 11882 11883bsdi[45]*) 11884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11885 lt_cv_file_magic_cmd='/usr/bin/file -L' 11886 lt_cv_file_magic_test_file=/shlib/libc.so 11887 ;; 11888 11889cygwin*) 11890 # func_win32_libid is a shell function defined in ltmain.sh 11891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11892 lt_cv_file_magic_cmd='func_win32_libid' 11893 ;; 11894 11895mingw* | pw32*) 11896 # Base MSYS/MinGW do not provide the 'file' command needed by 11897 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11898 # unless we find 'file', for example because we are cross-compiling. 11899 if ( file / ) >/dev/null 2>&1; then 11900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11901 lt_cv_file_magic_cmd='func_win32_libid' 11902 else 11903 # Keep this pattern in sync with the one in func_win32_libid. 11904 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11905 lt_cv_file_magic_cmd='$OBJDUMP -f' 11906 fi 11907 ;; 11908 11909cegcc*) 11910 # use the weaker test based on 'objdump'. See mingw*. 11911 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11912 lt_cv_file_magic_cmd='$OBJDUMP -f' 11913 ;; 11914 11915darwin* | rhapsody*) 11916 lt_cv_deplibs_check_method=pass_all 11917 ;; 11918 11919freebsd* | dragonfly*) 11920 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11921 case $host_cpu in 11922 i*86 ) 11923 # Not sure whether the presence of OpenBSD here was a mistake. 11924 # Let's accept both of them until this is cleared up. 11925 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11926 lt_cv_file_magic_cmd=/usr/bin/file 11927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11928 ;; 11929 esac 11930 else 11931 lt_cv_deplibs_check_method=pass_all 11932 fi 11933 ;; 11934 11935haiku*) 11936 lt_cv_deplibs_check_method=pass_all 11937 ;; 11938 11939hpux10.20* | hpux11*) 11940 lt_cv_file_magic_cmd=/usr/bin/file 11941 case $host_cpu in 11942 ia64*) 11943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11944 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11945 ;; 11946 hppa*64*) 11947 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]' 11948 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11949 ;; 11950 *) 11951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11952 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11953 ;; 11954 esac 11955 ;; 11956 11957interix[3-9]*) 11958 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11960 ;; 11961 11962irix5* | irix6* | nonstopux*) 11963 case $LD in 11964 *-32|*"-32 ") libmagic=32-bit;; 11965 *-n32|*"-n32 ") libmagic=N32;; 11966 *-64|*"-64 ") libmagic=64-bit;; 11967 *) libmagic=never-match;; 11968 esac 11969 lt_cv_deplibs_check_method=pass_all 11970 ;; 11971 11972# This must be glibc/ELF. 11973linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11974 lt_cv_deplibs_check_method=pass_all 11975 ;; 11976 11977netbsd*) 11978 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11980 else 11981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11982 fi 11983 ;; 11984 11985newos6*) 11986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11987 lt_cv_file_magic_cmd=/usr/bin/file 11988 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11989 ;; 11990 11991*nto* | *qnx*) 11992 lt_cv_deplibs_check_method=pass_all 11993 ;; 11994 11995openbsd* | bitrig*) 11996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11998 else 11999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12000 fi 12001 ;; 12002 12003osf3* | osf4* | osf5*) 12004 lt_cv_deplibs_check_method=pass_all 12005 ;; 12006 12007rdos*) 12008 lt_cv_deplibs_check_method=pass_all 12009 ;; 12010 12011solaris*) 12012 lt_cv_deplibs_check_method=pass_all 12013 ;; 12014 12015sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12016 lt_cv_deplibs_check_method=pass_all 12017 ;; 12018 12019sysv4 | sysv4.3*) 12020 case $host_vendor in 12021 motorola) 12022 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]' 12023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12024 ;; 12025 ncr) 12026 lt_cv_deplibs_check_method=pass_all 12027 ;; 12028 sequent) 12029 lt_cv_file_magic_cmd='/bin/file' 12030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12031 ;; 12032 sni) 12033 lt_cv_file_magic_cmd='/bin/file' 12034 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12035 lt_cv_file_magic_test_file=/lib/libc.so 12036 ;; 12037 siemens) 12038 lt_cv_deplibs_check_method=pass_all 12039 ;; 12040 pc) 12041 lt_cv_deplibs_check_method=pass_all 12042 ;; 12043 esac 12044 ;; 12045 12046tpf*) 12047 lt_cv_deplibs_check_method=pass_all 12048 ;; 12049os2*) 12050 lt_cv_deplibs_check_method=pass_all 12051 ;; 12052esac 12053 12054fi 12055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12056$as_echo "$lt_cv_deplibs_check_method" >&6; } 12057 12058file_magic_glob= 12059want_nocaseglob=no 12060if test "$build" = "$host"; then 12061 case $host_os in 12062 mingw* | pw32*) 12063 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12064 want_nocaseglob=yes 12065 else 12066 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12067 fi 12068 ;; 12069 esac 12070fi 12071 12072file_magic_cmd=$lt_cv_file_magic_cmd 12073deplibs_check_method=$lt_cv_deplibs_check_method 12074test -z "$deplibs_check_method" && deplibs_check_method=unknown 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097if test -n "$ac_tool_prefix"; then 12098 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12099set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12101$as_echo_n "checking for $ac_word... " >&6; } 12102if ${ac_cv_prog_DLLTOOL+:} false; then : 12103 $as_echo_n "(cached) " >&6 12104else 12105 if test -n "$DLLTOOL"; then 12106 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12107else 12108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12109for as_dir in $PATH 12110do 12111 IFS=$as_save_IFS 12112 test -z "$as_dir" && as_dir=. 12113 for ac_exec_ext in '' $ac_executable_extensions; do 12114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12115 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12117 break 2 12118 fi 12119done 12120 done 12121IFS=$as_save_IFS 12122 12123fi 12124fi 12125DLLTOOL=$ac_cv_prog_DLLTOOL 12126if test -n "$DLLTOOL"; then 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12128$as_echo "$DLLTOOL" >&6; } 12129else 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12131$as_echo "no" >&6; } 12132fi 12133 12134 12135fi 12136if test -z "$ac_cv_prog_DLLTOOL"; then 12137 ac_ct_DLLTOOL=$DLLTOOL 12138 # Extract the first word of "dlltool", so it can be a program name with args. 12139set dummy dlltool; ac_word=$2 12140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12141$as_echo_n "checking for $ac_word... " >&6; } 12142if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12143 $as_echo_n "(cached) " >&6 12144else 12145 if test -n "$ac_ct_DLLTOOL"; then 12146 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12147else 12148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12149for as_dir in $PATH 12150do 12151 IFS=$as_save_IFS 12152 test -z "$as_dir" && as_dir=. 12153 for ac_exec_ext in '' $ac_executable_extensions; do 12154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12155 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12157 break 2 12158 fi 12159done 12160 done 12161IFS=$as_save_IFS 12162 12163fi 12164fi 12165ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12166if test -n "$ac_ct_DLLTOOL"; then 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12168$as_echo "$ac_ct_DLLTOOL" >&6; } 12169else 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12171$as_echo "no" >&6; } 12172fi 12173 12174 if test "x$ac_ct_DLLTOOL" = x; then 12175 DLLTOOL="false" 12176 else 12177 case $cross_compiling:$ac_tool_warned in 12178yes:) 12179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12181ac_tool_warned=yes ;; 12182esac 12183 DLLTOOL=$ac_ct_DLLTOOL 12184 fi 12185else 12186 DLLTOOL="$ac_cv_prog_DLLTOOL" 12187fi 12188 12189test -z "$DLLTOOL" && DLLTOOL=dlltool 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12201$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12202if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12203 $as_echo_n "(cached) " >&6 12204else 12205 lt_cv_sharedlib_from_linklib_cmd='unknown' 12206 12207case $host_os in 12208cygwin* | mingw* | pw32* | cegcc*) 12209 # two different shell functions defined in ltmain.sh; 12210 # decide which one to use based on capabilities of $DLLTOOL 12211 case `$DLLTOOL --help 2>&1` in 12212 *--identify-strict*) 12213 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12214 ;; 12215 *) 12216 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12217 ;; 12218 esac 12219 ;; 12220*) 12221 # fallback: assume linklib IS sharedlib 12222 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12223 ;; 12224esac 12225 12226fi 12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12228$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12229sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12230test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12231 12232 12233 12234 12235 12236 12237 12238if test -n "$ac_tool_prefix"; then 12239 for ac_prog in ar 12240 do 12241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12242set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12244$as_echo_n "checking for $ac_word... " >&6; } 12245if ${ac_cv_prog_AR+:} false; then : 12246 $as_echo_n "(cached) " >&6 12247else 12248 if test -n "$AR"; then 12249 ac_cv_prog_AR="$AR" # Let the user override the test. 12250else 12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12252for as_dir in $PATH 12253do 12254 IFS=$as_save_IFS 12255 test -z "$as_dir" && as_dir=. 12256 for ac_exec_ext in '' $ac_executable_extensions; do 12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12258 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12260 break 2 12261 fi 12262done 12263 done 12264IFS=$as_save_IFS 12265 12266fi 12267fi 12268AR=$ac_cv_prog_AR 12269if test -n "$AR"; then 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12271$as_echo "$AR" >&6; } 12272else 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12274$as_echo "no" >&6; } 12275fi 12276 12277 12278 test -n "$AR" && break 12279 done 12280fi 12281if test -z "$AR"; then 12282 ac_ct_AR=$AR 12283 for ac_prog in ar 12284do 12285 # Extract the first word of "$ac_prog", so it can be a program name with args. 12286set dummy $ac_prog; ac_word=$2 12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12288$as_echo_n "checking for $ac_word... " >&6; } 12289if ${ac_cv_prog_ac_ct_AR+:} false; then : 12290 $as_echo_n "(cached) " >&6 12291else 12292 if test -n "$ac_ct_AR"; then 12293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12294else 12295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12296for as_dir in $PATH 12297do 12298 IFS=$as_save_IFS 12299 test -z "$as_dir" && as_dir=. 12300 for ac_exec_ext in '' $ac_executable_extensions; do 12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12302 ac_cv_prog_ac_ct_AR="$ac_prog" 12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12304 break 2 12305 fi 12306done 12307 done 12308IFS=$as_save_IFS 12309 12310fi 12311fi 12312ac_ct_AR=$ac_cv_prog_ac_ct_AR 12313if test -n "$ac_ct_AR"; then 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12315$as_echo "$ac_ct_AR" >&6; } 12316else 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12318$as_echo "no" >&6; } 12319fi 12320 12321 12322 test -n "$ac_ct_AR" && break 12323done 12324 12325 if test "x$ac_ct_AR" = x; then 12326 AR="false" 12327 else 12328 case $cross_compiling:$ac_tool_warned in 12329yes:) 12330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12332ac_tool_warned=yes ;; 12333esac 12334 AR=$ac_ct_AR 12335 fi 12336fi 12337 12338: ${AR=ar} 12339: ${AR_FLAGS=cru} 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12352$as_echo_n "checking for archiver @FILE support... " >&6; } 12353if ${lt_cv_ar_at_file+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 lt_cv_ar_at_file=no 12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12358/* end confdefs.h. */ 12359 12360int 12361main () 12362{ 12363 12364 ; 12365 return 0; 12366} 12367_ACEOF 12368if ac_fn_c_try_compile "$LINENO"; then : 12369 echo conftest.$ac_objext > conftest.lst 12370 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12372 (eval $lt_ar_try) 2>&5 12373 ac_status=$? 12374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12375 test $ac_status = 0; } 12376 if test 0 -eq "$ac_status"; then 12377 # Ensure the archiver fails upon bogus file names. 12378 rm -f conftest.$ac_objext libconftest.a 12379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12380 (eval $lt_ar_try) 2>&5 12381 ac_status=$? 12382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12383 test $ac_status = 0; } 12384 if test 0 -ne "$ac_status"; then 12385 lt_cv_ar_at_file=@ 12386 fi 12387 fi 12388 rm -f conftest.* libconftest.a 12389 12390fi 12391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12392 12393fi 12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12395$as_echo "$lt_cv_ar_at_file" >&6; } 12396 12397if test no = "$lt_cv_ar_at_file"; then 12398 archiver_list_spec= 12399else 12400 archiver_list_spec=$lt_cv_ar_at_file 12401fi 12402 12403 12404 12405 12406 12407 12408 12409if test -n "$ac_tool_prefix"; then 12410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12411set dummy ${ac_tool_prefix}strip; ac_word=$2 12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12413$as_echo_n "checking for $ac_word... " >&6; } 12414if ${ac_cv_prog_STRIP+:} false; then : 12415 $as_echo_n "(cached) " >&6 12416else 12417 if test -n "$STRIP"; then 12418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12419else 12420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12421for as_dir in $PATH 12422do 12423 IFS=$as_save_IFS 12424 test -z "$as_dir" && as_dir=. 12425 for ac_exec_ext in '' $ac_executable_extensions; do 12426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12427 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12429 break 2 12430 fi 12431done 12432 done 12433IFS=$as_save_IFS 12434 12435fi 12436fi 12437STRIP=$ac_cv_prog_STRIP 12438if test -n "$STRIP"; then 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12440$as_echo "$STRIP" >&6; } 12441else 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12443$as_echo "no" >&6; } 12444fi 12445 12446 12447fi 12448if test -z "$ac_cv_prog_STRIP"; then 12449 ac_ct_STRIP=$STRIP 12450 # Extract the first word of "strip", so it can be a program name with args. 12451set dummy strip; ac_word=$2 12452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12453$as_echo_n "checking for $ac_word... " >&6; } 12454if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12455 $as_echo_n "(cached) " >&6 12456else 12457 if test -n "$ac_ct_STRIP"; then 12458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12459else 12460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12461for as_dir in $PATH 12462do 12463 IFS=$as_save_IFS 12464 test -z "$as_dir" && as_dir=. 12465 for ac_exec_ext in '' $ac_executable_extensions; do 12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12467 ac_cv_prog_ac_ct_STRIP="strip" 12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12469 break 2 12470 fi 12471done 12472 done 12473IFS=$as_save_IFS 12474 12475fi 12476fi 12477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12478if test -n "$ac_ct_STRIP"; then 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12480$as_echo "$ac_ct_STRIP" >&6; } 12481else 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12483$as_echo "no" >&6; } 12484fi 12485 12486 if test "x$ac_ct_STRIP" = x; then 12487 STRIP=":" 12488 else 12489 case $cross_compiling:$ac_tool_warned in 12490yes:) 12491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12493ac_tool_warned=yes ;; 12494esac 12495 STRIP=$ac_ct_STRIP 12496 fi 12497else 12498 STRIP="$ac_cv_prog_STRIP" 12499fi 12500 12501test -z "$STRIP" && STRIP=: 12502 12503 12504 12505 12506 12507 12508if test -n "$ac_tool_prefix"; then 12509 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12510set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12512$as_echo_n "checking for $ac_word... " >&6; } 12513if ${ac_cv_prog_RANLIB+:} false; then : 12514 $as_echo_n "(cached) " >&6 12515else 12516 if test -n "$RANLIB"; then 12517 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12518else 12519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12520for as_dir in $PATH 12521do 12522 IFS=$as_save_IFS 12523 test -z "$as_dir" && as_dir=. 12524 for ac_exec_ext in '' $ac_executable_extensions; do 12525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12526 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12528 break 2 12529 fi 12530done 12531 done 12532IFS=$as_save_IFS 12533 12534fi 12535fi 12536RANLIB=$ac_cv_prog_RANLIB 12537if test -n "$RANLIB"; then 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12539$as_echo "$RANLIB" >&6; } 12540else 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542$as_echo "no" >&6; } 12543fi 12544 12545 12546fi 12547if test -z "$ac_cv_prog_RANLIB"; then 12548 ac_ct_RANLIB=$RANLIB 12549 # Extract the first word of "ranlib", so it can be a program name with args. 12550set dummy ranlib; ac_word=$2 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12552$as_echo_n "checking for $ac_word... " >&6; } 12553if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555else 12556 if test -n "$ac_ct_RANLIB"; then 12557 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12558else 12559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12560for as_dir in $PATH 12561do 12562 IFS=$as_save_IFS 12563 test -z "$as_dir" && as_dir=. 12564 for ac_exec_ext in '' $ac_executable_extensions; do 12565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12566 ac_cv_prog_ac_ct_RANLIB="ranlib" 12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12568 break 2 12569 fi 12570done 12571 done 12572IFS=$as_save_IFS 12573 12574fi 12575fi 12576ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12577if test -n "$ac_ct_RANLIB"; then 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12579$as_echo "$ac_ct_RANLIB" >&6; } 12580else 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12582$as_echo "no" >&6; } 12583fi 12584 12585 if test "x$ac_ct_RANLIB" = x; then 12586 RANLIB=":" 12587 else 12588 case $cross_compiling:$ac_tool_warned in 12589yes:) 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12592ac_tool_warned=yes ;; 12593esac 12594 RANLIB=$ac_ct_RANLIB 12595 fi 12596else 12597 RANLIB="$ac_cv_prog_RANLIB" 12598fi 12599 12600test -z "$RANLIB" && RANLIB=: 12601 12602 12603 12604 12605 12606 12607# Determine commands to create old-style static archives. 12608old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12609old_postinstall_cmds='chmod 644 $oldlib' 12610old_postuninstall_cmds= 12611 12612if test -n "$RANLIB"; then 12613 case $host_os in 12614 bitrig* | openbsd*) 12615 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12616 ;; 12617 *) 12618 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12619 ;; 12620 esac 12621 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12622fi 12623 12624case $host_os in 12625 darwin*) 12626 lock_old_archive_extraction=yes ;; 12627 *) 12628 lock_old_archive_extraction=no ;; 12629esac 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669# If no C compiler was specified, use CC. 12670LTCC=${LTCC-"$CC"} 12671 12672# If no C compiler flags were specified, use CFLAGS. 12673LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12674 12675# Allow CC to be a program name with arguments. 12676compiler=$CC 12677 12678 12679# Check for command to grab the raw symbol name followed by C symbol from nm. 12680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12681$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12682if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12683 $as_echo_n "(cached) " >&6 12684else 12685 12686# These are sane defaults that work on at least a few old systems. 12687# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12688 12689# Character class describing NM global symbol codes. 12690symcode='[BCDEGRST]' 12691 12692# Regexp to match symbols that can be accessed directly from C. 12693sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12694 12695# Define system-specific variables. 12696case $host_os in 12697aix*) 12698 symcode='[BCDT]' 12699 ;; 12700cygwin* | mingw* | pw32* | cegcc*) 12701 symcode='[ABCDGISTW]' 12702 ;; 12703hpux*) 12704 if test ia64 = "$host_cpu"; then 12705 symcode='[ABCDEGRST]' 12706 fi 12707 ;; 12708irix* | nonstopux*) 12709 symcode='[BCDEGRST]' 12710 ;; 12711osf*) 12712 symcode='[BCDEGQRST]' 12713 ;; 12714solaris*) 12715 symcode='[BDRT]' 12716 ;; 12717sco3.2v5*) 12718 symcode='[DT]' 12719 ;; 12720sysv4.2uw2*) 12721 symcode='[DT]' 12722 ;; 12723sysv5* | sco5v6* | unixware* | OpenUNIX*) 12724 symcode='[ABDT]' 12725 ;; 12726sysv4) 12727 symcode='[DFNSTU]' 12728 ;; 12729esac 12730 12731# If we're using GNU nm, then use its standard symbol codes. 12732case `$NM -V 2>&1` in 12733*GNU* | *'with BFD'*) 12734 symcode='[ABCDGIRSTW]' ;; 12735esac 12736 12737if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12738 # Gets list of data symbols to import. 12739 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12740 # Adjust the below global symbol transforms to fixup imported variables. 12741 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12742 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12743 lt_c_name_lib_hook="\ 12744 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12745 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12746else 12747 # Disable hooks by default. 12748 lt_cv_sys_global_symbol_to_import= 12749 lt_cdecl_hook= 12750 lt_c_name_hook= 12751 lt_c_name_lib_hook= 12752fi 12753 12754# Transform an extracted symbol line into a proper C declaration. 12755# Some systems (esp. on ia64) link data and code symbols differently, 12756# so use this general approach. 12757lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12758$lt_cdecl_hook\ 12759" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12760" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12761 12762# Transform an extracted symbol line into symbol name and symbol address 12763lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12764$lt_c_name_hook\ 12765" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12766" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12767 12768# Transform an extracted symbol line into symbol name with lib prefix and 12769# symbol address. 12770lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12771$lt_c_name_lib_hook\ 12772" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12773" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12774" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12775 12776# Handle CRLF in mingw tool chain 12777opt_cr= 12778case $build_os in 12779mingw*) 12780 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12781 ;; 12782esac 12783 12784# Try without a prefix underscore, then with it. 12785for ac_symprfx in "" "_"; do 12786 12787 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12788 symxfrm="\\1 $ac_symprfx\\2 \\2" 12789 12790 # Write the raw and C identifiers. 12791 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12792 # Fake it for dumpbin and say T for any non-static function, 12793 # D for any global variable and I for any imported variable. 12794 # Also find C++ and __fastcall symbols from MSVC++, 12795 # which start with @ or ?. 12796 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12797" {last_section=section; section=\$ 3};"\ 12798" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12799" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12800" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12801" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12802" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12803" \$ 0!~/External *\|/{next};"\ 12804" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12805" {if(hide[section]) next};"\ 12806" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12807" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12808" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12809" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12810" ' prfx=^$ac_symprfx" 12811 else 12812 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12813 fi 12814 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12815 12816 # Check to see that the pipe works correctly. 12817 pipe_works=no 12818 12819 rm -f conftest* 12820 cat > conftest.$ac_ext <<_LT_EOF 12821#ifdef __cplusplus 12822extern "C" { 12823#endif 12824char nm_test_var; 12825void nm_test_func(void); 12826void nm_test_func(void){} 12827#ifdef __cplusplus 12828} 12829#endif 12830int main(){nm_test_var='a';nm_test_func();return(0);} 12831_LT_EOF 12832 12833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12834 (eval $ac_compile) 2>&5 12835 ac_status=$? 12836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12837 test $ac_status = 0; }; then 12838 # Now try to grab the symbols. 12839 nlist=conftest.nm 12840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12841 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12842 ac_status=$? 12843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12844 test $ac_status = 0; } && test -s "$nlist"; then 12845 # Try sorting and uniquifying the output. 12846 if sort "$nlist" | uniq > "$nlist"T; then 12847 mv -f "$nlist"T "$nlist" 12848 else 12849 rm -f "$nlist"T 12850 fi 12851 12852 # Make sure that we snagged all the symbols we need. 12853 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12854 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12855 cat <<_LT_EOF > conftest.$ac_ext 12856/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12857#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12858/* DATA imports from DLLs on WIN32 can't be const, because runtime 12859 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12860# define LT_DLSYM_CONST 12861#elif defined __osf__ 12862/* This system does not cope well with relocations in const data. */ 12863# define LT_DLSYM_CONST 12864#else 12865# define LT_DLSYM_CONST const 12866#endif 12867 12868#ifdef __cplusplus 12869extern "C" { 12870#endif 12871 12872_LT_EOF 12873 # Now generate the symbol file. 12874 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12875 12876 cat <<_LT_EOF >> conftest.$ac_ext 12877 12878/* The mapping between symbol names and symbols. */ 12879LT_DLSYM_CONST struct { 12880 const char *name; 12881 void *address; 12882} 12883lt__PROGRAM__LTX_preloaded_symbols[] = 12884{ 12885 { "@PROGRAM@", (void *) 0 }, 12886_LT_EOF 12887 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12888 cat <<\_LT_EOF >> conftest.$ac_ext 12889 {0, (void *) 0} 12890}; 12891 12892/* This works around a problem in FreeBSD linker */ 12893#ifdef FREEBSD_WORKAROUND 12894static const void *lt_preloaded_setup() { 12895 return lt__PROGRAM__LTX_preloaded_symbols; 12896} 12897#endif 12898 12899#ifdef __cplusplus 12900} 12901#endif 12902_LT_EOF 12903 # Now try linking the two files. 12904 mv conftest.$ac_objext conftstm.$ac_objext 12905 lt_globsym_save_LIBS=$LIBS 12906 lt_globsym_save_CFLAGS=$CFLAGS 12907 LIBS=conftstm.$ac_objext 12908 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12910 (eval $ac_link) 2>&5 12911 ac_status=$? 12912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12913 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12914 pipe_works=yes 12915 fi 12916 LIBS=$lt_globsym_save_LIBS 12917 CFLAGS=$lt_globsym_save_CFLAGS 12918 else 12919 echo "cannot find nm_test_func in $nlist" >&5 12920 fi 12921 else 12922 echo "cannot find nm_test_var in $nlist" >&5 12923 fi 12924 else 12925 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12926 fi 12927 else 12928 echo "$progname: failed program was:" >&5 12929 cat conftest.$ac_ext >&5 12930 fi 12931 rm -rf conftest* conftst* 12932 12933 # Do not use the global_symbol_pipe unless it works. 12934 if test yes = "$pipe_works"; then 12935 break 12936 else 12937 lt_cv_sys_global_symbol_pipe= 12938 fi 12939done 12940 12941fi 12942 12943if test -z "$lt_cv_sys_global_symbol_pipe"; then 12944 lt_cv_sys_global_symbol_to_cdecl= 12945fi 12946if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12948$as_echo "failed" >&6; } 12949else 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12951$as_echo "ok" >&6; } 12952fi 12953 12954# Response file support. 12955if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12956 nm_file_list_spec='@' 12957elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12958 nm_file_list_spec='@' 12959fi 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12998$as_echo_n "checking for sysroot... " >&6; } 12999 13000# Check whether --with-sysroot was given. 13001if test "${with_sysroot+set}" = set; then : 13002 withval=$with_sysroot; 13003else 13004 with_sysroot=no 13005fi 13006 13007 13008lt_sysroot= 13009case $with_sysroot in #( 13010 yes) 13011 if test yes = "$GCC"; then 13012 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13013 fi 13014 ;; #( 13015 /*) 13016 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13017 ;; #( 13018 no|'') 13019 ;; #( 13020 *) 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13022$as_echo "$with_sysroot" >&6; } 13023 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13024 ;; 13025esac 13026 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13028$as_echo "${lt_sysroot:-no}" >&6; } 13029 13030 13031 13032 13033 13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13035$as_echo_n "checking for a working dd... " >&6; } 13036if ${ac_cv_path_lt_DD+:} false; then : 13037 $as_echo_n "(cached) " >&6 13038else 13039 printf 0123456789abcdef0123456789abcdef >conftest.i 13040cat conftest.i conftest.i >conftest2.i 13041: ${lt_DD:=$DD} 13042if test -z "$lt_DD"; then 13043 ac_path_lt_DD_found=false 13044 # Loop through the user's path and test for each of PROGNAME-LIST 13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13046for as_dir in $PATH 13047do 13048 IFS=$as_save_IFS 13049 test -z "$as_dir" && as_dir=. 13050 for ac_prog in dd; do 13051 for ac_exec_ext in '' $ac_executable_extensions; do 13052 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13053 as_fn_executable_p "$ac_path_lt_DD" || continue 13054if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13055 cmp -s conftest.i conftest.out \ 13056 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13057fi 13058 $ac_path_lt_DD_found && break 3 13059 done 13060 done 13061 done 13062IFS=$as_save_IFS 13063 if test -z "$ac_cv_path_lt_DD"; then 13064 : 13065 fi 13066else 13067 ac_cv_path_lt_DD=$lt_DD 13068fi 13069 13070rm -f conftest.i conftest2.i conftest.out 13071fi 13072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13073$as_echo "$ac_cv_path_lt_DD" >&6; } 13074 13075 13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13077$as_echo_n "checking how to truncate binary pipes... " >&6; } 13078if ${lt_cv_truncate_bin+:} false; then : 13079 $as_echo_n "(cached) " >&6 13080else 13081 printf 0123456789abcdef0123456789abcdef >conftest.i 13082cat conftest.i conftest.i >conftest2.i 13083lt_cv_truncate_bin= 13084if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13085 cmp -s conftest.i conftest.out \ 13086 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13087fi 13088rm -f conftest.i conftest2.i conftest.out 13089test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13090fi 13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13092$as_echo "$lt_cv_truncate_bin" >&6; } 13093 13094 13095 13096 13097 13098 13099 13100# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13101func_cc_basename () 13102{ 13103 for cc_temp in $*""; do 13104 case $cc_temp in 13105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13107 \-*) ;; 13108 *) break;; 13109 esac 13110 done 13111 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13112} 13113 13114# Check whether --enable-libtool-lock was given. 13115if test "${enable_libtool_lock+set}" = set; then : 13116 enableval=$enable_libtool_lock; 13117fi 13118 13119test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13120 13121# Some flags need to be propagated to the compiler or linker for good 13122# libtool support. 13123case $host in 13124ia64-*-hpux*) 13125 # Find out what ABI is being produced by ac_compile, and set mode 13126 # options accordingly. 13127 echo 'int i;' > conftest.$ac_ext 13128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13129 (eval $ac_compile) 2>&5 13130 ac_status=$? 13131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13132 test $ac_status = 0; }; then 13133 case `/usr/bin/file conftest.$ac_objext` in 13134 *ELF-32*) 13135 HPUX_IA64_MODE=32 13136 ;; 13137 *ELF-64*) 13138 HPUX_IA64_MODE=64 13139 ;; 13140 esac 13141 fi 13142 rm -rf conftest* 13143 ;; 13144*-*-irix6*) 13145 # Find out what ABI is being produced by ac_compile, and set linker 13146 # options accordingly. 13147 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13149 (eval $ac_compile) 2>&5 13150 ac_status=$? 13151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13152 test $ac_status = 0; }; then 13153 if test yes = "$lt_cv_prog_gnu_ld"; then 13154 case `/usr/bin/file conftest.$ac_objext` in 13155 *32-bit*) 13156 LD="${LD-ld} -melf32bsmip" 13157 ;; 13158 *N32*) 13159 LD="${LD-ld} -melf32bmipn32" 13160 ;; 13161 *64-bit*) 13162 LD="${LD-ld} -melf64bmip" 13163 ;; 13164 esac 13165 else 13166 case `/usr/bin/file conftest.$ac_objext` in 13167 *32-bit*) 13168 LD="${LD-ld} -32" 13169 ;; 13170 *N32*) 13171 LD="${LD-ld} -n32" 13172 ;; 13173 *64-bit*) 13174 LD="${LD-ld} -64" 13175 ;; 13176 esac 13177 fi 13178 fi 13179 rm -rf conftest* 13180 ;; 13181 13182mips64*-*linux*) 13183 # Find out what ABI is being produced by ac_compile, and set linker 13184 # options accordingly. 13185 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13187 (eval $ac_compile) 2>&5 13188 ac_status=$? 13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13190 test $ac_status = 0; }; then 13191 emul=elf 13192 case `/usr/bin/file conftest.$ac_objext` in 13193 *32-bit*) 13194 emul="${emul}32" 13195 ;; 13196 *64-bit*) 13197 emul="${emul}64" 13198 ;; 13199 esac 13200 case `/usr/bin/file conftest.$ac_objext` in 13201 *MSB*) 13202 emul="${emul}btsmip" 13203 ;; 13204 *LSB*) 13205 emul="${emul}ltsmip" 13206 ;; 13207 esac 13208 case `/usr/bin/file conftest.$ac_objext` in 13209 *N32*) 13210 emul="${emul}n32" 13211 ;; 13212 esac 13213 LD="${LD-ld} -m $emul" 13214 fi 13215 rm -rf conftest* 13216 ;; 13217 13218x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13219s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13220 # Find out what ABI is being produced by ac_compile, and set linker 13221 # options accordingly. Note that the listed cases only cover the 13222 # situations where additional linker options are needed (such as when 13223 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13224 # vice versa); the common cases where no linker options are needed do 13225 # not appear in the list. 13226 echo 'int i;' > conftest.$ac_ext 13227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13228 (eval $ac_compile) 2>&5 13229 ac_status=$? 13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13231 test $ac_status = 0; }; then 13232 case `/usr/bin/file conftest.o` in 13233 *32-bit*) 13234 case $host in 13235 x86_64-*kfreebsd*-gnu) 13236 LD="${LD-ld} -m elf_i386_fbsd" 13237 ;; 13238 x86_64-*linux*) 13239 case `/usr/bin/file conftest.o` in 13240 *x86-64*) 13241 LD="${LD-ld} -m elf32_x86_64" 13242 ;; 13243 *) 13244 LD="${LD-ld} -m elf_i386" 13245 ;; 13246 esac 13247 ;; 13248 powerpc64le-*linux*) 13249 LD="${LD-ld} -m elf32lppclinux" 13250 ;; 13251 powerpc64-*linux*) 13252 LD="${LD-ld} -m elf32ppclinux" 13253 ;; 13254 s390x-*linux*) 13255 LD="${LD-ld} -m elf_s390" 13256 ;; 13257 sparc64-*linux*) 13258 LD="${LD-ld} -m elf32_sparc" 13259 ;; 13260 esac 13261 ;; 13262 *64-bit*) 13263 case $host in 13264 x86_64-*kfreebsd*-gnu) 13265 LD="${LD-ld} -m elf_x86_64_fbsd" 13266 ;; 13267 x86_64-*linux*) 13268 LD="${LD-ld} -m elf_x86_64" 13269 ;; 13270 powerpcle-*linux*) 13271 LD="${LD-ld} -m elf64lppc" 13272 ;; 13273 powerpc-*linux*) 13274 LD="${LD-ld} -m elf64ppc" 13275 ;; 13276 s390*-*linux*|s390*-*tpf*) 13277 LD="${LD-ld} -m elf64_s390" 13278 ;; 13279 sparc*-*linux*) 13280 LD="${LD-ld} -m elf64_sparc" 13281 ;; 13282 esac 13283 ;; 13284 esac 13285 fi 13286 rm -rf conftest* 13287 ;; 13288 13289*-*-sco3.2v5*) 13290 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13291 SAVE_CFLAGS=$CFLAGS 13292 CFLAGS="$CFLAGS -belf" 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13294$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13295if ${lt_cv_cc_needs_belf+:} false; then : 13296 $as_echo_n "(cached) " >&6 13297else 13298 ac_ext=c 13299ac_cpp='$CPP $CPPFLAGS' 13300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13302ac_compiler_gnu=$ac_cv_c_compiler_gnu 13303 13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305/* end confdefs.h. */ 13306 13307int 13308main () 13309{ 13310 13311 ; 13312 return 0; 13313} 13314_ACEOF 13315if ac_fn_c_try_link "$LINENO"; then : 13316 lt_cv_cc_needs_belf=yes 13317else 13318 lt_cv_cc_needs_belf=no 13319fi 13320rm -f core conftest.err conftest.$ac_objext \ 13321 conftest$ac_exeext conftest.$ac_ext 13322 ac_ext=c 13323ac_cpp='$CPP $CPPFLAGS' 13324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13326ac_compiler_gnu=$ac_cv_c_compiler_gnu 13327 13328fi 13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13330$as_echo "$lt_cv_cc_needs_belf" >&6; } 13331 if test yes != "$lt_cv_cc_needs_belf"; then 13332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13333 CFLAGS=$SAVE_CFLAGS 13334 fi 13335 ;; 13336*-*solaris*) 13337 # Find out what ABI is being produced by ac_compile, and set linker 13338 # options accordingly. 13339 echo 'int i;' > conftest.$ac_ext 13340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13341 (eval $ac_compile) 2>&5 13342 ac_status=$? 13343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13344 test $ac_status = 0; }; then 13345 case `/usr/bin/file conftest.o` in 13346 *64-bit*) 13347 case $lt_cv_prog_gnu_ld in 13348 yes*) 13349 case $host in 13350 i?86-*-solaris*|x86_64-*-solaris*) 13351 LD="${LD-ld} -m elf_x86_64" 13352 ;; 13353 sparc*-*-solaris*) 13354 LD="${LD-ld} -m elf64_sparc" 13355 ;; 13356 esac 13357 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13358 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13359 LD=${LD-ld}_sol2 13360 fi 13361 ;; 13362 *) 13363 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13364 LD="${LD-ld} -64" 13365 fi 13366 ;; 13367 esac 13368 ;; 13369 esac 13370 fi 13371 rm -rf conftest* 13372 ;; 13373esac 13374 13375need_locks=$enable_libtool_lock 13376 13377if test -n "$ac_tool_prefix"; then 13378 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13379set dummy ${ac_tool_prefix}mt; ac_word=$2 13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13381$as_echo_n "checking for $ac_word... " >&6; } 13382if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13383 $as_echo_n "(cached) " >&6 13384else 13385 if test -n "$MANIFEST_TOOL"; then 13386 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13387else 13388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13389for as_dir in $PATH 13390do 13391 IFS=$as_save_IFS 13392 test -z "$as_dir" && as_dir=. 13393 for ac_exec_ext in '' $ac_executable_extensions; do 13394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13395 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13397 break 2 13398 fi 13399done 13400 done 13401IFS=$as_save_IFS 13402 13403fi 13404fi 13405MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13406if test -n "$MANIFEST_TOOL"; then 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13408$as_echo "$MANIFEST_TOOL" >&6; } 13409else 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13411$as_echo "no" >&6; } 13412fi 13413 13414 13415fi 13416if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13417 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13418 # Extract the first word of "mt", so it can be a program name with args. 13419set dummy mt; ac_word=$2 13420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13421$as_echo_n "checking for $ac_word... " >&6; } 13422if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13423 $as_echo_n "(cached) " >&6 13424else 13425 if test -n "$ac_ct_MANIFEST_TOOL"; then 13426 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13427else 13428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13429for as_dir in $PATH 13430do 13431 IFS=$as_save_IFS 13432 test -z "$as_dir" && as_dir=. 13433 for ac_exec_ext in '' $ac_executable_extensions; do 13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13435 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13437 break 2 13438 fi 13439done 13440 done 13441IFS=$as_save_IFS 13442 13443fi 13444fi 13445ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13446if test -n "$ac_ct_MANIFEST_TOOL"; then 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13448$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13449else 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13451$as_echo "no" >&6; } 13452fi 13453 13454 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13455 MANIFEST_TOOL=":" 13456 else 13457 case $cross_compiling:$ac_tool_warned in 13458yes:) 13459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13461ac_tool_warned=yes ;; 13462esac 13463 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13464 fi 13465else 13466 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13467fi 13468 13469test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13471$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13472if ${lt_cv_path_mainfest_tool+:} false; then : 13473 $as_echo_n "(cached) " >&6 13474else 13475 lt_cv_path_mainfest_tool=no 13476 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13477 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13478 cat conftest.err >&5 13479 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13480 lt_cv_path_mainfest_tool=yes 13481 fi 13482 rm -f conftest* 13483fi 13484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13485$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13486if test yes != "$lt_cv_path_mainfest_tool"; then 13487 MANIFEST_TOOL=: 13488fi 13489 13490 13491 13492 13493 13494 13495 case $host_os in 13496 rhapsody* | darwin*) 13497 if test -n "$ac_tool_prefix"; then 13498 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13499set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13501$as_echo_n "checking for $ac_word... " >&6; } 13502if ${ac_cv_prog_DSYMUTIL+:} false; then : 13503 $as_echo_n "(cached) " >&6 13504else 13505 if test -n "$DSYMUTIL"; then 13506 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13507else 13508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13509for as_dir in $PATH 13510do 13511 IFS=$as_save_IFS 13512 test -z "$as_dir" && as_dir=. 13513 for ac_exec_ext in '' $ac_executable_extensions; do 13514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13515 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13517 break 2 13518 fi 13519done 13520 done 13521IFS=$as_save_IFS 13522 13523fi 13524fi 13525DSYMUTIL=$ac_cv_prog_DSYMUTIL 13526if test -n "$DSYMUTIL"; then 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13528$as_echo "$DSYMUTIL" >&6; } 13529else 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13531$as_echo "no" >&6; } 13532fi 13533 13534 13535fi 13536if test -z "$ac_cv_prog_DSYMUTIL"; then 13537 ac_ct_DSYMUTIL=$DSYMUTIL 13538 # Extract the first word of "dsymutil", so it can be a program name with args. 13539set dummy dsymutil; ac_word=$2 13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13541$as_echo_n "checking for $ac_word... " >&6; } 13542if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13543 $as_echo_n "(cached) " >&6 13544else 13545 if test -n "$ac_ct_DSYMUTIL"; then 13546 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13547else 13548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13549for as_dir in $PATH 13550do 13551 IFS=$as_save_IFS 13552 test -z "$as_dir" && as_dir=. 13553 for ac_exec_ext in '' $ac_executable_extensions; do 13554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13555 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13557 break 2 13558 fi 13559done 13560 done 13561IFS=$as_save_IFS 13562 13563fi 13564fi 13565ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13566if test -n "$ac_ct_DSYMUTIL"; then 13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13568$as_echo "$ac_ct_DSYMUTIL" >&6; } 13569else 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13571$as_echo "no" >&6; } 13572fi 13573 13574 if test "x$ac_ct_DSYMUTIL" = x; then 13575 DSYMUTIL=":" 13576 else 13577 case $cross_compiling:$ac_tool_warned in 13578yes:) 13579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13581ac_tool_warned=yes ;; 13582esac 13583 DSYMUTIL=$ac_ct_DSYMUTIL 13584 fi 13585else 13586 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13587fi 13588 13589 if test -n "$ac_tool_prefix"; then 13590 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13591set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13593$as_echo_n "checking for $ac_word... " >&6; } 13594if ${ac_cv_prog_NMEDIT+:} false; then : 13595 $as_echo_n "(cached) " >&6 13596else 13597 if test -n "$NMEDIT"; then 13598 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13599else 13600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13601for as_dir in $PATH 13602do 13603 IFS=$as_save_IFS 13604 test -z "$as_dir" && as_dir=. 13605 for ac_exec_ext in '' $ac_executable_extensions; do 13606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13607 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13609 break 2 13610 fi 13611done 13612 done 13613IFS=$as_save_IFS 13614 13615fi 13616fi 13617NMEDIT=$ac_cv_prog_NMEDIT 13618if test -n "$NMEDIT"; then 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13620$as_echo "$NMEDIT" >&6; } 13621else 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13623$as_echo "no" >&6; } 13624fi 13625 13626 13627fi 13628if test -z "$ac_cv_prog_NMEDIT"; then 13629 ac_ct_NMEDIT=$NMEDIT 13630 # Extract the first word of "nmedit", so it can be a program name with args. 13631set dummy nmedit; ac_word=$2 13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13633$as_echo_n "checking for $ac_word... " >&6; } 13634if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13635 $as_echo_n "(cached) " >&6 13636else 13637 if test -n "$ac_ct_NMEDIT"; then 13638 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13639else 13640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13641for as_dir in $PATH 13642do 13643 IFS=$as_save_IFS 13644 test -z "$as_dir" && as_dir=. 13645 for ac_exec_ext in '' $ac_executable_extensions; do 13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13647 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13649 break 2 13650 fi 13651done 13652 done 13653IFS=$as_save_IFS 13654 13655fi 13656fi 13657ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13658if test -n "$ac_ct_NMEDIT"; then 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13660$as_echo "$ac_ct_NMEDIT" >&6; } 13661else 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13663$as_echo "no" >&6; } 13664fi 13665 13666 if test "x$ac_ct_NMEDIT" = x; then 13667 NMEDIT=":" 13668 else 13669 case $cross_compiling:$ac_tool_warned in 13670yes:) 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13673ac_tool_warned=yes ;; 13674esac 13675 NMEDIT=$ac_ct_NMEDIT 13676 fi 13677else 13678 NMEDIT="$ac_cv_prog_NMEDIT" 13679fi 13680 13681 if test -n "$ac_tool_prefix"; then 13682 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13683set dummy ${ac_tool_prefix}lipo; ac_word=$2 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13685$as_echo_n "checking for $ac_word... " >&6; } 13686if ${ac_cv_prog_LIPO+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 if test -n "$LIPO"; then 13690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13691else 13692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13693for as_dir in $PATH 13694do 13695 IFS=$as_save_IFS 13696 test -z "$as_dir" && as_dir=. 13697 for ac_exec_ext in '' $ac_executable_extensions; do 13698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13699 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13701 break 2 13702 fi 13703done 13704 done 13705IFS=$as_save_IFS 13706 13707fi 13708fi 13709LIPO=$ac_cv_prog_LIPO 13710if test -n "$LIPO"; then 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13712$as_echo "$LIPO" >&6; } 13713else 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13715$as_echo "no" >&6; } 13716fi 13717 13718 13719fi 13720if test -z "$ac_cv_prog_LIPO"; then 13721 ac_ct_LIPO=$LIPO 13722 # Extract the first word of "lipo", so it can be a program name with args. 13723set dummy lipo; ac_word=$2 13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13725$as_echo_n "checking for $ac_word... " >&6; } 13726if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13727 $as_echo_n "(cached) " >&6 13728else 13729 if test -n "$ac_ct_LIPO"; then 13730 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13731else 13732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13733for as_dir in $PATH 13734do 13735 IFS=$as_save_IFS 13736 test -z "$as_dir" && as_dir=. 13737 for ac_exec_ext in '' $ac_executable_extensions; do 13738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13739 ac_cv_prog_ac_ct_LIPO="lipo" 13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13741 break 2 13742 fi 13743done 13744 done 13745IFS=$as_save_IFS 13746 13747fi 13748fi 13749ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13750if test -n "$ac_ct_LIPO"; then 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13752$as_echo "$ac_ct_LIPO" >&6; } 13753else 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13755$as_echo "no" >&6; } 13756fi 13757 13758 if test "x$ac_ct_LIPO" = x; then 13759 LIPO=":" 13760 else 13761 case $cross_compiling:$ac_tool_warned in 13762yes:) 13763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13765ac_tool_warned=yes ;; 13766esac 13767 LIPO=$ac_ct_LIPO 13768 fi 13769else 13770 LIPO="$ac_cv_prog_LIPO" 13771fi 13772 13773 if test -n "$ac_tool_prefix"; then 13774 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13775set dummy ${ac_tool_prefix}otool; ac_word=$2 13776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13777$as_echo_n "checking for $ac_word... " >&6; } 13778if ${ac_cv_prog_OTOOL+:} false; then : 13779 $as_echo_n "(cached) " >&6 13780else 13781 if test -n "$OTOOL"; then 13782 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13783else 13784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13785for as_dir in $PATH 13786do 13787 IFS=$as_save_IFS 13788 test -z "$as_dir" && as_dir=. 13789 for ac_exec_ext in '' $ac_executable_extensions; do 13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13791 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13793 break 2 13794 fi 13795done 13796 done 13797IFS=$as_save_IFS 13798 13799fi 13800fi 13801OTOOL=$ac_cv_prog_OTOOL 13802if test -n "$OTOOL"; then 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13804$as_echo "$OTOOL" >&6; } 13805else 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13807$as_echo "no" >&6; } 13808fi 13809 13810 13811fi 13812if test -z "$ac_cv_prog_OTOOL"; then 13813 ac_ct_OTOOL=$OTOOL 13814 # Extract the first word of "otool", so it can be a program name with args. 13815set dummy otool; ac_word=$2 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13817$as_echo_n "checking for $ac_word... " >&6; } 13818if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820else 13821 if test -n "$ac_ct_OTOOL"; then 13822 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13823else 13824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13825for as_dir in $PATH 13826do 13827 IFS=$as_save_IFS 13828 test -z "$as_dir" && as_dir=. 13829 for ac_exec_ext in '' $ac_executable_extensions; do 13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13831 ac_cv_prog_ac_ct_OTOOL="otool" 13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13833 break 2 13834 fi 13835done 13836 done 13837IFS=$as_save_IFS 13838 13839fi 13840fi 13841ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13842if test -n "$ac_ct_OTOOL"; then 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13844$as_echo "$ac_ct_OTOOL" >&6; } 13845else 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13847$as_echo "no" >&6; } 13848fi 13849 13850 if test "x$ac_ct_OTOOL" = x; then 13851 OTOOL=":" 13852 else 13853 case $cross_compiling:$ac_tool_warned in 13854yes:) 13855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13857ac_tool_warned=yes ;; 13858esac 13859 OTOOL=$ac_ct_OTOOL 13860 fi 13861else 13862 OTOOL="$ac_cv_prog_OTOOL" 13863fi 13864 13865 if test -n "$ac_tool_prefix"; then 13866 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13867set dummy ${ac_tool_prefix}otool64; ac_word=$2 13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13869$as_echo_n "checking for $ac_word... " >&6; } 13870if ${ac_cv_prog_OTOOL64+:} false; then : 13871 $as_echo_n "(cached) " >&6 13872else 13873 if test -n "$OTOOL64"; then 13874 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13875else 13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13877for as_dir in $PATH 13878do 13879 IFS=$as_save_IFS 13880 test -z "$as_dir" && as_dir=. 13881 for ac_exec_ext in '' $ac_executable_extensions; do 13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13883 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13885 break 2 13886 fi 13887done 13888 done 13889IFS=$as_save_IFS 13890 13891fi 13892fi 13893OTOOL64=$ac_cv_prog_OTOOL64 13894if test -n "$OTOOL64"; then 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13896$as_echo "$OTOOL64" >&6; } 13897else 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13899$as_echo "no" >&6; } 13900fi 13901 13902 13903fi 13904if test -z "$ac_cv_prog_OTOOL64"; then 13905 ac_ct_OTOOL64=$OTOOL64 13906 # Extract the first word of "otool64", so it can be a program name with args. 13907set dummy otool64; ac_word=$2 13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13909$as_echo_n "checking for $ac_word... " >&6; } 13910if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13911 $as_echo_n "(cached) " >&6 13912else 13913 if test -n "$ac_ct_OTOOL64"; then 13914 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13915else 13916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13917for as_dir in $PATH 13918do 13919 IFS=$as_save_IFS 13920 test -z "$as_dir" && as_dir=. 13921 for ac_exec_ext in '' $ac_executable_extensions; do 13922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13923 ac_cv_prog_ac_ct_OTOOL64="otool64" 13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13925 break 2 13926 fi 13927done 13928 done 13929IFS=$as_save_IFS 13930 13931fi 13932fi 13933ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13934if test -n "$ac_ct_OTOOL64"; then 13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13936$as_echo "$ac_ct_OTOOL64" >&6; } 13937else 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13939$as_echo "no" >&6; } 13940fi 13941 13942 if test "x$ac_ct_OTOOL64" = x; then 13943 OTOOL64=":" 13944 else 13945 case $cross_compiling:$ac_tool_warned in 13946yes:) 13947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13949ac_tool_warned=yes ;; 13950esac 13951 OTOOL64=$ac_ct_OTOOL64 13952 fi 13953else 13954 OTOOL64="$ac_cv_prog_OTOOL64" 13955fi 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13984$as_echo_n "checking for -single_module linker flag... " >&6; } 13985if ${lt_cv_apple_cc_single_mod+:} false; then : 13986 $as_echo_n "(cached) " >&6 13987else 13988 lt_cv_apple_cc_single_mod=no 13989 if test -z "$LT_MULTI_MODULE"; then 13990 # By default we will add the -single_module flag. You can override 13991 # by either setting the environment variable LT_MULTI_MODULE 13992 # non-empty at configure time, or by adding -multi_module to the 13993 # link flags. 13994 rm -rf libconftest.dylib* 13995 echo "int foo(void){return 1;}" > conftest.c 13996 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13997-dynamiclib -Wl,-single_module conftest.c" >&5 13998 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13999 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14000 _lt_result=$? 14001 # If there is a non-empty error log, and "single_module" 14002 # appears in it, assume the flag caused a linker warning 14003 if test -s conftest.err && $GREP single_module conftest.err; then 14004 cat conftest.err >&5 14005 # Otherwise, if the output was created with a 0 exit code from 14006 # the compiler, it worked. 14007 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14008 lt_cv_apple_cc_single_mod=yes 14009 else 14010 cat conftest.err >&5 14011 fi 14012 rm -rf libconftest.dylib* 14013 rm -f conftest.* 14014 fi 14015fi 14016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14017$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14018 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14020$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14021if ${lt_cv_ld_exported_symbols_list+:} false; then : 14022 $as_echo_n "(cached) " >&6 14023else 14024 lt_cv_ld_exported_symbols_list=no 14025 save_LDFLAGS=$LDFLAGS 14026 echo "_main" > conftest.sym 14027 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14029/* end confdefs.h. */ 14030 14031int 14032main () 14033{ 14034 14035 ; 14036 return 0; 14037} 14038_ACEOF 14039if ac_fn_c_try_link "$LINENO"; then : 14040 lt_cv_ld_exported_symbols_list=yes 14041else 14042 lt_cv_ld_exported_symbols_list=no 14043fi 14044rm -f core conftest.err conftest.$ac_objext \ 14045 conftest$ac_exeext conftest.$ac_ext 14046 LDFLAGS=$save_LDFLAGS 14047 14048fi 14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14050$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14051 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14053$as_echo_n "checking for -force_load linker flag... " >&6; } 14054if ${lt_cv_ld_force_load+:} false; then : 14055 $as_echo_n "(cached) " >&6 14056else 14057 lt_cv_ld_force_load=no 14058 cat > conftest.c << _LT_EOF 14059int forced_loaded() { return 2;} 14060_LT_EOF 14061 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14062 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14063 echo "$AR cru libconftest.a conftest.o" >&5 14064 $AR cru libconftest.a conftest.o 2>&5 14065 echo "$RANLIB libconftest.a" >&5 14066 $RANLIB libconftest.a 2>&5 14067 cat > conftest.c << _LT_EOF 14068int main() { return 0;} 14069_LT_EOF 14070 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14071 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14072 _lt_result=$? 14073 if test -s conftest.err && $GREP force_load conftest.err; then 14074 cat conftest.err >&5 14075 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14076 lt_cv_ld_force_load=yes 14077 else 14078 cat conftest.err >&5 14079 fi 14080 rm -f conftest.err libconftest.a conftest conftest.c 14081 rm -rf conftest.dSYM 14082 14083fi 14084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14085$as_echo "$lt_cv_ld_force_load" >&6; } 14086 case $host_os in 14087 rhapsody* | darwin1.[012]) 14088 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14089 darwin1.*) 14090 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14091 darwin*) # darwin 5.x on 14092 # if running on 10.5 or later, the deployment target defaults 14093 # to the OS version, if on x86, and 10.4, the deployment 14094 # target defaults to 10.4. Don't you love it? 14095 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14096 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14097 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14098 10.[012][,.]*) 14099 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14100 10.*) 14101 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14102 esac 14103 ;; 14104 esac 14105 if test yes = "$lt_cv_apple_cc_single_mod"; then 14106 _lt_dar_single_mod='$single_module' 14107 fi 14108 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14109 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14110 else 14111 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14112 fi 14113 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14114 _lt_dsymutil='~$DSYMUTIL $lib || :' 14115 else 14116 _lt_dsymutil= 14117 fi 14118 ;; 14119 esac 14120 14121# func_munge_path_list VARIABLE PATH 14122# ----------------------------------- 14123# VARIABLE is name of variable containing _space_ separated list of 14124# directories to be munged by the contents of PATH, which is string 14125# having a format: 14126# "DIR[:DIR]:" 14127# string "DIR[ DIR]" will be prepended to VARIABLE 14128# ":DIR[:DIR]" 14129# string "DIR[ DIR]" will be appended to VARIABLE 14130# "DIRP[:DIRP]::[DIRA:]DIRA" 14131# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14132# "DIRA[ DIRA]" will be appended to VARIABLE 14133# "DIR[:DIR]" 14134# VARIABLE will be replaced by "DIR[ DIR]" 14135func_munge_path_list () 14136{ 14137 case x$2 in 14138 x) 14139 ;; 14140 *:) 14141 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14142 ;; 14143 x:*) 14144 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14145 ;; 14146 *::*) 14147 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14148 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14149 ;; 14150 *) 14151 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14152 ;; 14153 esac 14154} 14155 14156for ac_header in dlfcn.h 14157do : 14158 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14159" 14160if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14161 cat >>confdefs.h <<_ACEOF 14162#define HAVE_DLFCN_H 1 14163_ACEOF 14164 14165fi 14166 14167done 14168 14169 14170 14171 14172 14173# Set options 14174 14175 14176 14177 enable_dlopen=no 14178 14179 14180 enable_win32_dll=no 14181 14182 14183 # Check whether --enable-shared was given. 14184if test "${enable_shared+set}" = set; then : 14185 enableval=$enable_shared; p=${PACKAGE-default} 14186 case $enableval in 14187 yes) enable_shared=yes ;; 14188 no) enable_shared=no ;; 14189 *) 14190 enable_shared=no 14191 # Look at the argument we got. We use all the common list separators. 14192 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14193 for pkg in $enableval; do 14194 IFS=$lt_save_ifs 14195 if test "X$pkg" = "X$p"; then 14196 enable_shared=yes 14197 fi 14198 done 14199 IFS=$lt_save_ifs 14200 ;; 14201 esac 14202else 14203 enable_shared=yes 14204fi 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216# Check whether --with-pic was given. 14217if test "${with_pic+set}" = set; then : 14218 withval=$with_pic; lt_p=${PACKAGE-default} 14219 case $withval in 14220 yes|no) pic_mode=$withval ;; 14221 *) 14222 pic_mode=default 14223 # Look at the argument we got. We use all the common list separators. 14224 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14225 for lt_pkg in $withval; do 14226 IFS=$lt_save_ifs 14227 if test "X$lt_pkg" = "X$lt_p"; then 14228 pic_mode=yes 14229 fi 14230 done 14231 IFS=$lt_save_ifs 14232 ;; 14233 esac 14234else 14235 pic_mode=default 14236fi 14237 14238 14239 14240 14241 14242 14243 14244 14245 # Check whether --enable-fast-install was given. 14246if test "${enable_fast_install+set}" = set; then : 14247 enableval=$enable_fast_install; p=${PACKAGE-default} 14248 case $enableval in 14249 yes) enable_fast_install=yes ;; 14250 no) enable_fast_install=no ;; 14251 *) 14252 enable_fast_install=no 14253 # Look at the argument we got. We use all the common list separators. 14254 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14255 for pkg in $enableval; do 14256 IFS=$lt_save_ifs 14257 if test "X$pkg" = "X$p"; then 14258 enable_fast_install=yes 14259 fi 14260 done 14261 IFS=$lt_save_ifs 14262 ;; 14263 esac 14264else 14265 enable_fast_install=yes 14266fi 14267 14268 14269 14270 14271 14272 14273 14274 14275 shared_archive_member_spec= 14276case $host,$enable_shared in 14277power*-*-aix[5-9]*,yes) 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14279$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14280 14281# Check whether --with-aix-soname was given. 14282if test "${with_aix_soname+set}" = set; then : 14283 withval=$with_aix_soname; case $withval in 14284 aix|svr4|both) 14285 ;; 14286 *) 14287 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14288 ;; 14289 esac 14290 lt_cv_with_aix_soname=$with_aix_soname 14291else 14292 if ${lt_cv_with_aix_soname+:} false; then : 14293 $as_echo_n "(cached) " >&6 14294else 14295 lt_cv_with_aix_soname=aix 14296fi 14297 14298 with_aix_soname=$lt_cv_with_aix_soname 14299fi 14300 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14302$as_echo "$with_aix_soname" >&6; } 14303 if test aix != "$with_aix_soname"; then 14304 # For the AIX way of multilib, we name the shared archive member 14305 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14306 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14307 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14308 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14309 if test 64 = "${OBJECT_MODE-32}"; then 14310 shared_archive_member_spec=shr_64 14311 else 14312 shared_archive_member_spec=shr 14313 fi 14314 fi 14315 ;; 14316*) 14317 with_aix_soname=aix 14318 ;; 14319esac 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330# This can be used to rebuild libtool when needed 14331LIBTOOL_DEPS=$ltmain 14332 14333# Always use our own libtool. 14334LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365test -z "$LN_S" && LN_S="ln -s" 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380if test -n "${ZSH_VERSION+set}"; then 14381 setopt NO_GLOB_SUBST 14382fi 14383 14384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14385$as_echo_n "checking for objdir... " >&6; } 14386if ${lt_cv_objdir+:} false; then : 14387 $as_echo_n "(cached) " >&6 14388else 14389 rm -f .libs 2>/dev/null 14390mkdir .libs 2>/dev/null 14391if test -d .libs; then 14392 lt_cv_objdir=.libs 14393else 14394 # MS-DOS does not allow filenames that begin with a dot. 14395 lt_cv_objdir=_libs 14396fi 14397rmdir .libs 2>/dev/null 14398fi 14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14400$as_echo "$lt_cv_objdir" >&6; } 14401objdir=$lt_cv_objdir 14402 14403 14404 14405 14406 14407cat >>confdefs.h <<_ACEOF 14408#define LT_OBJDIR "$lt_cv_objdir/" 14409_ACEOF 14410 14411 14412 14413 14414case $host_os in 14415aix3*) 14416 # AIX sometimes has problems with the GCC collect2 program. For some 14417 # reason, if we set the COLLECT_NAMES environment variable, the problems 14418 # vanish in a puff of smoke. 14419 if test set != "${COLLECT_NAMES+set}"; then 14420 COLLECT_NAMES= 14421 export COLLECT_NAMES 14422 fi 14423 ;; 14424esac 14425 14426# Global variables: 14427ofile=libtool 14428can_build_shared=yes 14429 14430# All known linkers require a '.a' archive for static linking (except MSVC, 14431# which needs '.lib'). 14432libext=a 14433 14434with_gnu_ld=$lt_cv_prog_gnu_ld 14435 14436old_CC=$CC 14437old_CFLAGS=$CFLAGS 14438 14439# Set sane defaults for various variables 14440test -z "$CC" && CC=cc 14441test -z "$LTCC" && LTCC=$CC 14442test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14443test -z "$LD" && LD=ld 14444test -z "$ac_objext" && ac_objext=o 14445 14446func_cc_basename $compiler 14447cc_basename=$func_cc_basename_result 14448 14449 14450# Only perform the check for file, if the check method requires it 14451test -z "$MAGIC_CMD" && MAGIC_CMD=file 14452case $deplibs_check_method in 14453file_magic*) 14454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14456$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14457if ${lt_cv_path_MAGIC_CMD+:} false; then : 14458 $as_echo_n "(cached) " >&6 14459else 14460 case $MAGIC_CMD in 14461[\\/*] | ?:[\\/]*) 14462 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14463 ;; 14464*) 14465 lt_save_MAGIC_CMD=$MAGIC_CMD 14466 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14468 for ac_dir in $ac_dummy; do 14469 IFS=$lt_save_ifs 14470 test -z "$ac_dir" && ac_dir=. 14471 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14472 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14473 if test -n "$file_magic_test_file"; then 14474 case $deplibs_check_method in 14475 "file_magic "*) 14476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14477 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14479 $EGREP "$file_magic_regex" > /dev/null; then 14480 : 14481 else 14482 cat <<_LT_EOF 1>&2 14483 14484*** Warning: the command libtool uses to detect shared libraries, 14485*** $file_magic_cmd, produces output that libtool cannot recognize. 14486*** The result is that libtool may fail to recognize shared libraries 14487*** as such. This will affect the creation of libtool libraries that 14488*** depend on shared libraries, but programs linked with such libtool 14489*** libraries will work regardless of this problem. Nevertheless, you 14490*** may want to report the problem to your system manager and/or to 14491*** bug-libtool@gnu.org 14492 14493_LT_EOF 14494 fi ;; 14495 esac 14496 fi 14497 break 14498 fi 14499 done 14500 IFS=$lt_save_ifs 14501 MAGIC_CMD=$lt_save_MAGIC_CMD 14502 ;; 14503esac 14504fi 14505 14506MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14507if test -n "$MAGIC_CMD"; then 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14509$as_echo "$MAGIC_CMD" >&6; } 14510else 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14512$as_echo "no" >&6; } 14513fi 14514 14515 14516 14517 14518 14519if test -z "$lt_cv_path_MAGIC_CMD"; then 14520 if test -n "$ac_tool_prefix"; then 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14522$as_echo_n "checking for file... " >&6; } 14523if ${lt_cv_path_MAGIC_CMD+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 case $MAGIC_CMD in 14527[\\/*] | ?:[\\/]*) 14528 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14529 ;; 14530*) 14531 lt_save_MAGIC_CMD=$MAGIC_CMD 14532 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14534 for ac_dir in $ac_dummy; do 14535 IFS=$lt_save_ifs 14536 test -z "$ac_dir" && ac_dir=. 14537 if test -f "$ac_dir/file"; then 14538 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14539 if test -n "$file_magic_test_file"; then 14540 case $deplibs_check_method in 14541 "file_magic "*) 14542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14543 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14545 $EGREP "$file_magic_regex" > /dev/null; then 14546 : 14547 else 14548 cat <<_LT_EOF 1>&2 14549 14550*** Warning: the command libtool uses to detect shared libraries, 14551*** $file_magic_cmd, produces output that libtool cannot recognize. 14552*** The result is that libtool may fail to recognize shared libraries 14553*** as such. This will affect the creation of libtool libraries that 14554*** depend on shared libraries, but programs linked with such libtool 14555*** libraries will work regardless of this problem. Nevertheless, you 14556*** may want to report the problem to your system manager and/or to 14557*** bug-libtool@gnu.org 14558 14559_LT_EOF 14560 fi ;; 14561 esac 14562 fi 14563 break 14564 fi 14565 done 14566 IFS=$lt_save_ifs 14567 MAGIC_CMD=$lt_save_MAGIC_CMD 14568 ;; 14569esac 14570fi 14571 14572MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14573if test -n "$MAGIC_CMD"; then 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14575$as_echo "$MAGIC_CMD" >&6; } 14576else 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14578$as_echo "no" >&6; } 14579fi 14580 14581 14582 else 14583 MAGIC_CMD=: 14584 fi 14585fi 14586 14587 fi 14588 ;; 14589esac 14590 14591# Use C for the default configuration in the libtool script 14592 14593lt_save_CC=$CC 14594ac_ext=c 14595ac_cpp='$CPP $CPPFLAGS' 14596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14598ac_compiler_gnu=$ac_cv_c_compiler_gnu 14599 14600 14601# Source file extension for C test sources. 14602ac_ext=c 14603 14604# Object file extension for compiled C test sources. 14605objext=o 14606objext=$objext 14607 14608# Code to be used in simple compile tests 14609lt_simple_compile_test_code="int some_variable = 0;" 14610 14611# Code to be used in simple link tests 14612lt_simple_link_test_code='int main(){return(0);}' 14613 14614 14615 14616 14617 14618 14619 14620# If no C compiler was specified, use CC. 14621LTCC=${LTCC-"$CC"} 14622 14623# If no C compiler flags were specified, use CFLAGS. 14624LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14625 14626# Allow CC to be a program name with arguments. 14627compiler=$CC 14628 14629# Save the default compiler, since it gets overwritten when the other 14630# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14631compiler_DEFAULT=$CC 14632 14633# save warnings/boilerplate of simple test code 14634ac_outfile=conftest.$ac_objext 14635echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14637_lt_compiler_boilerplate=`cat conftest.err` 14638$RM conftest* 14639 14640ac_outfile=conftest.$ac_objext 14641echo "$lt_simple_link_test_code" >conftest.$ac_ext 14642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14643_lt_linker_boilerplate=`cat conftest.err` 14644$RM -r conftest* 14645 14646 14647if test -n "$compiler"; then 14648 14649lt_prog_compiler_no_builtin_flag= 14650 14651if test yes = "$GCC"; then 14652 case $cc_basename in 14653 nvcc*) 14654 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14655 *) 14656 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14657 esac 14658 14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14660$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14661if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14662 $as_echo_n "(cached) " >&6 14663else 14664 lt_cv_prog_compiler_rtti_exceptions=no 14665 ac_outfile=conftest.$ac_objext 14666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14667 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14668 # Insert the option either (1) after the last *FLAGS variable, or 14669 # (2) before a word containing "conftest.", or (3) at the end. 14670 # Note that $ac_compile itself does not contain backslashes and begins 14671 # with a dollar sign (not a hyphen), so the echo should work correctly. 14672 # The option is referenced via a variable to avoid confusing sed. 14673 lt_compile=`echo "$ac_compile" | $SED \ 14674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14676 -e 's:$: $lt_compiler_flag:'` 14677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14678 (eval "$lt_compile" 2>conftest.err) 14679 ac_status=$? 14680 cat conftest.err >&5 14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14682 if (exit $ac_status) && test -s "$ac_outfile"; then 14683 # The compiler can only warn and ignore the option if not recognized 14684 # So say no if there are warnings other than the usual output. 14685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14688 lt_cv_prog_compiler_rtti_exceptions=yes 14689 fi 14690 fi 14691 $RM conftest* 14692 14693fi 14694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14695$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14696 14697if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14698 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14699else 14700 : 14701fi 14702 14703fi 14704 14705 14706 14707 14708 14709 14710 lt_prog_compiler_wl= 14711lt_prog_compiler_pic= 14712lt_prog_compiler_static= 14713 14714 14715 if test yes = "$GCC"; then 14716 lt_prog_compiler_wl='-Wl,' 14717 lt_prog_compiler_static='-static' 14718 14719 case $host_os in 14720 aix*) 14721 # All AIX code is PIC. 14722 if test ia64 = "$host_cpu"; then 14723 # AIX 5 now supports IA64 processor 14724 lt_prog_compiler_static='-Bstatic' 14725 fi 14726 lt_prog_compiler_pic='-fPIC' 14727 ;; 14728 14729 amigaos*) 14730 case $host_cpu in 14731 powerpc) 14732 # see comment about AmigaOS4 .so support 14733 lt_prog_compiler_pic='-fPIC' 14734 ;; 14735 m68k) 14736 # FIXME: we need at least 68020 code to build shared libraries, but 14737 # adding the '-m68020' flag to GCC prevents building anything better, 14738 # like '-m68040'. 14739 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14740 ;; 14741 esac 14742 ;; 14743 14744 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14745 # PIC is the default for these OSes. 14746 ;; 14747 14748 mingw* | cygwin* | pw32* | os2* | cegcc*) 14749 # This hack is so that the source file can tell whether it is being 14750 # built for inclusion in a dll (and should export symbols for example). 14751 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14752 # (--disable-auto-import) libraries 14753 lt_prog_compiler_pic='-DDLL_EXPORT' 14754 case $host_os in 14755 os2*) 14756 lt_prog_compiler_static='$wl-static' 14757 ;; 14758 esac 14759 ;; 14760 14761 darwin* | rhapsody*) 14762 # PIC is the default on this platform 14763 # Common symbols not allowed in MH_DYLIB files 14764 lt_prog_compiler_pic='-fno-common' 14765 ;; 14766 14767 haiku*) 14768 # PIC is the default for Haiku. 14769 # The "-static" flag exists, but is broken. 14770 lt_prog_compiler_static= 14771 ;; 14772 14773 hpux*) 14774 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14775 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14776 # sets the default TLS model and affects inlining. 14777 case $host_cpu in 14778 hppa*64*) 14779 # +Z the default 14780 ;; 14781 *) 14782 lt_prog_compiler_pic='-fPIC' 14783 ;; 14784 esac 14785 ;; 14786 14787 interix[3-9]*) 14788 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14789 # Instead, we relocate shared libraries at runtime. 14790 ;; 14791 14792 msdosdjgpp*) 14793 # Just because we use GCC doesn't mean we suddenly get shared libraries 14794 # on systems that don't support them. 14795 lt_prog_compiler_can_build_shared=no 14796 enable_shared=no 14797 ;; 14798 14799 *nto* | *qnx*) 14800 # QNX uses GNU C++, but need to define -shared option too, otherwise 14801 # it will coredump. 14802 lt_prog_compiler_pic='-fPIC -shared' 14803 ;; 14804 14805 sysv4*MP*) 14806 if test -d /usr/nec; then 14807 lt_prog_compiler_pic=-Kconform_pic 14808 fi 14809 ;; 14810 14811 *) 14812 lt_prog_compiler_pic='-fPIC' 14813 ;; 14814 esac 14815 14816 case $cc_basename in 14817 nvcc*) # Cuda Compiler Driver 2.2 14818 lt_prog_compiler_wl='-Xlinker ' 14819 if test -n "$lt_prog_compiler_pic"; then 14820 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14821 fi 14822 ;; 14823 esac 14824 else 14825 # PORTME Check for flag to pass linker flags through the system compiler. 14826 case $host_os in 14827 aix*) 14828 lt_prog_compiler_wl='-Wl,' 14829 if test ia64 = "$host_cpu"; then 14830 # AIX 5 now supports IA64 processor 14831 lt_prog_compiler_static='-Bstatic' 14832 else 14833 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14834 fi 14835 ;; 14836 14837 darwin* | rhapsody*) 14838 # PIC is the default on this platform 14839 # Common symbols not allowed in MH_DYLIB files 14840 lt_prog_compiler_pic='-fno-common' 14841 case $cc_basename in 14842 nagfor*) 14843 # NAG Fortran compiler 14844 lt_prog_compiler_wl='-Wl,-Wl,,' 14845 lt_prog_compiler_pic='-PIC' 14846 lt_prog_compiler_static='-Bstatic' 14847 ;; 14848 esac 14849 ;; 14850 14851 mingw* | cygwin* | pw32* | os2* | cegcc*) 14852 # This hack is so that the source file can tell whether it is being 14853 # built for inclusion in a dll (and should export symbols for example). 14854 lt_prog_compiler_pic='-DDLL_EXPORT' 14855 case $host_os in 14856 os2*) 14857 lt_prog_compiler_static='$wl-static' 14858 ;; 14859 esac 14860 ;; 14861 14862 hpux9* | hpux10* | hpux11*) 14863 lt_prog_compiler_wl='-Wl,' 14864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14865 # not for PA HP-UX. 14866 case $host_cpu in 14867 hppa*64*|ia64*) 14868 # +Z the default 14869 ;; 14870 *) 14871 lt_prog_compiler_pic='+Z' 14872 ;; 14873 esac 14874 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14875 lt_prog_compiler_static='$wl-a ${wl}archive' 14876 ;; 14877 14878 irix5* | irix6* | nonstopux*) 14879 lt_prog_compiler_wl='-Wl,' 14880 # PIC (with -KPIC) is the default. 14881 lt_prog_compiler_static='-non_shared' 14882 ;; 14883 14884 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14885 case $cc_basename in 14886 # old Intel for x86_64, which still supported -KPIC. 14887 ecc*) 14888 lt_prog_compiler_wl='-Wl,' 14889 lt_prog_compiler_pic='-KPIC' 14890 lt_prog_compiler_static='-static' 14891 ;; 14892 # icc used to be incompatible with GCC. 14893 # ICC 10 doesn't accept -KPIC any more. 14894 icc* | ifort*) 14895 lt_prog_compiler_wl='-Wl,' 14896 lt_prog_compiler_pic='-fPIC' 14897 lt_prog_compiler_static='-static' 14898 ;; 14899 # Lahey Fortran 8.1. 14900 lf95*) 14901 lt_prog_compiler_wl='-Wl,' 14902 lt_prog_compiler_pic='--shared' 14903 lt_prog_compiler_static='--static' 14904 ;; 14905 nagfor*) 14906 # NAG Fortran compiler 14907 lt_prog_compiler_wl='-Wl,-Wl,,' 14908 lt_prog_compiler_pic='-PIC' 14909 lt_prog_compiler_static='-Bstatic' 14910 ;; 14911 tcc*) 14912 # Fabrice Bellard et al's Tiny C Compiler 14913 lt_prog_compiler_wl='-Wl,' 14914 lt_prog_compiler_pic='-fPIC' 14915 lt_prog_compiler_static='-static' 14916 ;; 14917 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14918 # Portland Group compilers (*not* the Pentium gcc compiler, 14919 # which looks to be a dead project) 14920 lt_prog_compiler_wl='-Wl,' 14921 lt_prog_compiler_pic='-fpic' 14922 lt_prog_compiler_static='-Bstatic' 14923 ;; 14924 ccc*) 14925 lt_prog_compiler_wl='-Wl,' 14926 # All Alpha code is PIC. 14927 lt_prog_compiler_static='-non_shared' 14928 ;; 14929 xl* | bgxl* | bgf* | mpixl*) 14930 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14931 lt_prog_compiler_wl='-Wl,' 14932 lt_prog_compiler_pic='-qpic' 14933 lt_prog_compiler_static='-qstaticlink' 14934 ;; 14935 *) 14936 case `$CC -V 2>&1 | sed 5q` in 14937 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14938 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14939 lt_prog_compiler_pic='-KPIC' 14940 lt_prog_compiler_static='-Bstatic' 14941 lt_prog_compiler_wl='' 14942 ;; 14943 *Sun\ F* | *Sun*Fortran*) 14944 lt_prog_compiler_pic='-KPIC' 14945 lt_prog_compiler_static='-Bstatic' 14946 lt_prog_compiler_wl='-Qoption ld ' 14947 ;; 14948 *Sun\ C*) 14949 # Sun C 5.9 14950 lt_prog_compiler_pic='-KPIC' 14951 lt_prog_compiler_static='-Bstatic' 14952 lt_prog_compiler_wl='-Wl,' 14953 ;; 14954 *Intel*\ [CF]*Compiler*) 14955 lt_prog_compiler_wl='-Wl,' 14956 lt_prog_compiler_pic='-fPIC' 14957 lt_prog_compiler_static='-static' 14958 ;; 14959 *Portland\ Group*) 14960 lt_prog_compiler_wl='-Wl,' 14961 lt_prog_compiler_pic='-fpic' 14962 lt_prog_compiler_static='-Bstatic' 14963 ;; 14964 esac 14965 ;; 14966 esac 14967 ;; 14968 14969 newsos6) 14970 lt_prog_compiler_pic='-KPIC' 14971 lt_prog_compiler_static='-Bstatic' 14972 ;; 14973 14974 *nto* | *qnx*) 14975 # QNX uses GNU C++, but need to define -shared option too, otherwise 14976 # it will coredump. 14977 lt_prog_compiler_pic='-fPIC -shared' 14978 ;; 14979 14980 osf3* | osf4* | osf5*) 14981 lt_prog_compiler_wl='-Wl,' 14982 # All OSF/1 code is PIC. 14983 lt_prog_compiler_static='-non_shared' 14984 ;; 14985 14986 rdos*) 14987 lt_prog_compiler_static='-non_shared' 14988 ;; 14989 14990 solaris*) 14991 lt_prog_compiler_pic='-KPIC' 14992 lt_prog_compiler_static='-Bstatic' 14993 case $cc_basename in 14994 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14995 lt_prog_compiler_wl='-Qoption ld ';; 14996 *) 14997 lt_prog_compiler_wl='-Wl,';; 14998 esac 14999 ;; 15000 15001 sunos4*) 15002 lt_prog_compiler_wl='-Qoption ld ' 15003 lt_prog_compiler_pic='-PIC' 15004 lt_prog_compiler_static='-Bstatic' 15005 ;; 15006 15007 sysv4 | sysv4.2uw2* | sysv4.3*) 15008 lt_prog_compiler_wl='-Wl,' 15009 lt_prog_compiler_pic='-KPIC' 15010 lt_prog_compiler_static='-Bstatic' 15011 ;; 15012 15013 sysv4*MP*) 15014 if test -d /usr/nec; then 15015 lt_prog_compiler_pic='-Kconform_pic' 15016 lt_prog_compiler_static='-Bstatic' 15017 fi 15018 ;; 15019 15020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15021 lt_prog_compiler_wl='-Wl,' 15022 lt_prog_compiler_pic='-KPIC' 15023 lt_prog_compiler_static='-Bstatic' 15024 ;; 15025 15026 unicos*) 15027 lt_prog_compiler_wl='-Wl,' 15028 lt_prog_compiler_can_build_shared=no 15029 ;; 15030 15031 uts4*) 15032 lt_prog_compiler_pic='-pic' 15033 lt_prog_compiler_static='-Bstatic' 15034 ;; 15035 15036 *) 15037 lt_prog_compiler_can_build_shared=no 15038 ;; 15039 esac 15040 fi 15041 15042case $host_os in 15043 # For platforms that do not support PIC, -DPIC is meaningless: 15044 *djgpp*) 15045 lt_prog_compiler_pic= 15046 ;; 15047 *) 15048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15049 ;; 15050esac 15051 15052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15053$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15054if ${lt_cv_prog_compiler_pic+:} false; then : 15055 $as_echo_n "(cached) " >&6 15056else 15057 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15058fi 15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15060$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15061lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15062 15063# 15064# Check to make sure the PIC flag actually works. 15065# 15066if test -n "$lt_prog_compiler_pic"; then 15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15068$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15069if ${lt_cv_prog_compiler_pic_works+:} false; then : 15070 $as_echo_n "(cached) " >&6 15071else 15072 lt_cv_prog_compiler_pic_works=no 15073 ac_outfile=conftest.$ac_objext 15074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15075 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15076 # Insert the option either (1) after the last *FLAGS variable, or 15077 # (2) before a word containing "conftest.", or (3) at the end. 15078 # Note that $ac_compile itself does not contain backslashes and begins 15079 # with a dollar sign (not a hyphen), so the echo should work correctly. 15080 # The option is referenced via a variable to avoid confusing sed. 15081 lt_compile=`echo "$ac_compile" | $SED \ 15082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15084 -e 's:$: $lt_compiler_flag:'` 15085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15086 (eval "$lt_compile" 2>conftest.err) 15087 ac_status=$? 15088 cat conftest.err >&5 15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15090 if (exit $ac_status) && test -s "$ac_outfile"; then 15091 # The compiler can only warn and ignore the option if not recognized 15092 # So say no if there are warnings other than the usual output. 15093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15096 lt_cv_prog_compiler_pic_works=yes 15097 fi 15098 fi 15099 $RM conftest* 15100 15101fi 15102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15103$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15104 15105if test yes = "$lt_cv_prog_compiler_pic_works"; then 15106 case $lt_prog_compiler_pic in 15107 "" | " "*) ;; 15108 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15109 esac 15110else 15111 lt_prog_compiler_pic= 15112 lt_prog_compiler_can_build_shared=no 15113fi 15114 15115fi 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127# 15128# Check to make sure the static flag actually works. 15129# 15130wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15132$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15133if ${lt_cv_prog_compiler_static_works+:} false; then : 15134 $as_echo_n "(cached) " >&6 15135else 15136 lt_cv_prog_compiler_static_works=no 15137 save_LDFLAGS=$LDFLAGS 15138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15139 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15141 # The linker can only warn and ignore the option if not recognized 15142 # So say no if there are warnings 15143 if test -s conftest.err; then 15144 # Append any errors to the config.log. 15145 cat conftest.err 1>&5 15146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15148 if diff conftest.exp conftest.er2 >/dev/null; then 15149 lt_cv_prog_compiler_static_works=yes 15150 fi 15151 else 15152 lt_cv_prog_compiler_static_works=yes 15153 fi 15154 fi 15155 $RM -r conftest* 15156 LDFLAGS=$save_LDFLAGS 15157 15158fi 15159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15160$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15161 15162if test yes = "$lt_cv_prog_compiler_static_works"; then 15163 : 15164else 15165 lt_prog_compiler_static= 15166fi 15167 15168 15169 15170 15171 15172 15173 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15175$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15176if ${lt_cv_prog_compiler_c_o+:} false; then : 15177 $as_echo_n "(cached) " >&6 15178else 15179 lt_cv_prog_compiler_c_o=no 15180 $RM -r conftest 2>/dev/null 15181 mkdir conftest 15182 cd conftest 15183 mkdir out 15184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15185 15186 lt_compiler_flag="-o out/conftest2.$ac_objext" 15187 # Insert the option either (1) after the last *FLAGS variable, or 15188 # (2) before a word containing "conftest.", or (3) at the end. 15189 # Note that $ac_compile itself does not contain backslashes and begins 15190 # with a dollar sign (not a hyphen), so the echo should work correctly. 15191 lt_compile=`echo "$ac_compile" | $SED \ 15192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15194 -e 's:$: $lt_compiler_flag:'` 15195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15196 (eval "$lt_compile" 2>out/conftest.err) 15197 ac_status=$? 15198 cat out/conftest.err >&5 15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15200 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15201 then 15202 # The compiler can only warn and ignore the option if not recognized 15203 # So say no if there are warnings 15204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15207 lt_cv_prog_compiler_c_o=yes 15208 fi 15209 fi 15210 chmod u+w . 2>&5 15211 $RM conftest* 15212 # SGI C++ compiler will create directory out/ii_files/ for 15213 # template instantiation 15214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15215 $RM out/* && rmdir out 15216 cd .. 15217 $RM -r conftest 15218 $RM conftest* 15219 15220fi 15221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15222$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15223 15224 15225 15226 15227 15228 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15230$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15231if ${lt_cv_prog_compiler_c_o+:} false; then : 15232 $as_echo_n "(cached) " >&6 15233else 15234 lt_cv_prog_compiler_c_o=no 15235 $RM -r conftest 2>/dev/null 15236 mkdir conftest 15237 cd conftest 15238 mkdir out 15239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15240 15241 lt_compiler_flag="-o out/conftest2.$ac_objext" 15242 # Insert the option either (1) after the last *FLAGS variable, or 15243 # (2) before a word containing "conftest.", or (3) at the end. 15244 # Note that $ac_compile itself does not contain backslashes and begins 15245 # with a dollar sign (not a hyphen), so the echo should work correctly. 15246 lt_compile=`echo "$ac_compile" | $SED \ 15247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15249 -e 's:$: $lt_compiler_flag:'` 15250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15251 (eval "$lt_compile" 2>out/conftest.err) 15252 ac_status=$? 15253 cat out/conftest.err >&5 15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15255 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15256 then 15257 # The compiler can only warn and ignore the option if not recognized 15258 # So say no if there are warnings 15259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15262 lt_cv_prog_compiler_c_o=yes 15263 fi 15264 fi 15265 chmod u+w . 2>&5 15266 $RM conftest* 15267 # SGI C++ compiler will create directory out/ii_files/ for 15268 # template instantiation 15269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15270 $RM out/* && rmdir out 15271 cd .. 15272 $RM -r conftest 15273 $RM conftest* 15274 15275fi 15276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15277$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15278 15279 15280 15281 15282hard_links=nottested 15283if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15284 # do not overwrite the value of need_locks provided by the user 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15286$as_echo_n "checking if we can lock with hard links... " >&6; } 15287 hard_links=yes 15288 $RM conftest* 15289 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15290 touch conftest.a 15291 ln conftest.a conftest.b 2>&5 || hard_links=no 15292 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15294$as_echo "$hard_links" >&6; } 15295 if test no = "$hard_links"; then 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15297$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15298 need_locks=warn 15299 fi 15300else 15301 need_locks=no 15302fi 15303 15304 15305 15306 15307 15308 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15310$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15311 15312 runpath_var= 15313 allow_undefined_flag= 15314 always_export_symbols=no 15315 archive_cmds= 15316 archive_expsym_cmds= 15317 compiler_needs_object=no 15318 enable_shared_with_static_runtimes=no 15319 export_dynamic_flag_spec= 15320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15321 hardcode_automatic=no 15322 hardcode_direct=no 15323 hardcode_direct_absolute=no 15324 hardcode_libdir_flag_spec= 15325 hardcode_libdir_separator= 15326 hardcode_minus_L=no 15327 hardcode_shlibpath_var=unsupported 15328 inherit_rpath=no 15329 link_all_deplibs=unknown 15330 module_cmds= 15331 module_expsym_cmds= 15332 old_archive_from_new_cmds= 15333 old_archive_from_expsyms_cmds= 15334 thread_safe_flag_spec= 15335 whole_archive_flag_spec= 15336 # include_expsyms should be a list of space-separated symbols to be *always* 15337 # included in the symbol list 15338 include_expsyms= 15339 # exclude_expsyms can be an extended regexp of symbols to exclude 15340 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15341 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15342 # as well as any symbol that contains 'd'. 15343 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15345 # platforms (ab)use it in PIC code, but their linkers get confused if 15346 # the symbol is explicitly referenced. Since portable code cannot 15347 # rely on this symbol name, it's probably fine to never include it in 15348 # preloaded symbol tables. 15349 # Exclude shared library initialization/finalization symbols. 15350 extract_expsyms_cmds= 15351 15352 case $host_os in 15353 cygwin* | mingw* | pw32* | cegcc*) 15354 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15355 # When not using gcc, we currently assume that we are using 15356 # Microsoft Visual C++. 15357 if test yes != "$GCC"; then 15358 with_gnu_ld=no 15359 fi 15360 ;; 15361 interix*) 15362 # we just hope/assume this is gcc and not c89 (= MSVC++) 15363 with_gnu_ld=yes 15364 ;; 15365 openbsd* | bitrig*) 15366 with_gnu_ld=no 15367 ;; 15368 esac 15369 15370 ld_shlibs=yes 15371 15372 # On some targets, GNU ld is compatible enough with the native linker 15373 # that we're better off using the native interface for both. 15374 lt_use_gnu_ld_interface=no 15375 if test yes = "$with_gnu_ld"; then 15376 case $host_os in 15377 aix*) 15378 # The AIX port of GNU ld has always aspired to compatibility 15379 # with the native linker. However, as the warning in the GNU ld 15380 # block says, versions before 2.19.5* couldn't really create working 15381 # shared libraries, regardless of the interface used. 15382 case `$LD -v 2>&1` in 15383 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15384 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15385 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15386 *) 15387 lt_use_gnu_ld_interface=yes 15388 ;; 15389 esac 15390 ;; 15391 *) 15392 lt_use_gnu_ld_interface=yes 15393 ;; 15394 esac 15395 fi 15396 15397 if test yes = "$lt_use_gnu_ld_interface"; then 15398 # If archive_cmds runs LD, not CC, wlarc should be empty 15399 wlarc='$wl' 15400 15401 # Set some defaults for GNU ld with shared library support. These 15402 # are reset later if shared libraries are not supported. Putting them 15403 # here allows them to be overridden if necessary. 15404 runpath_var=LD_RUN_PATH 15405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15406 export_dynamic_flag_spec='$wl--export-dynamic' 15407 # ancient GNU ld didn't support --whole-archive et. al. 15408 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15409 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15410 else 15411 whole_archive_flag_spec= 15412 fi 15413 supports_anon_versioning=no 15414 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15415 *GNU\ gold*) supports_anon_versioning=yes ;; 15416 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15419 *\ 2.11.*) ;; # other 2.11 versions 15420 *) supports_anon_versioning=yes ;; 15421 esac 15422 15423 # See if GNU ld supports shared libraries. 15424 case $host_os in 15425 aix[3-9]*) 15426 # On AIX/PPC, the GNU linker is very broken 15427 if test ia64 != "$host_cpu"; then 15428 ld_shlibs=no 15429 cat <<_LT_EOF 1>&2 15430 15431*** Warning: the GNU linker, at least up to release 2.19, is reported 15432*** to be unable to reliably create shared libraries on AIX. 15433*** Therefore, libtool is disabling shared libraries support. If you 15434*** really care for shared libraries, you may want to install binutils 15435*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15436*** You will then need to restart the configuration process. 15437 15438_LT_EOF 15439 fi 15440 ;; 15441 15442 amigaos*) 15443 case $host_cpu in 15444 powerpc) 15445 # see comment about AmigaOS4 .so support 15446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15447 archive_expsym_cmds='' 15448 ;; 15449 m68k) 15450 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)' 15451 hardcode_libdir_flag_spec='-L$libdir' 15452 hardcode_minus_L=yes 15453 ;; 15454 esac 15455 ;; 15456 15457 beos*) 15458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15459 allow_undefined_flag=unsupported 15460 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15461 # support --undefined. This deserves some investigation. FIXME 15462 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15463 else 15464 ld_shlibs=no 15465 fi 15466 ;; 15467 15468 cygwin* | mingw* | pw32* | cegcc*) 15469 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15470 # as there is no search path for DLLs. 15471 hardcode_libdir_flag_spec='-L$libdir' 15472 export_dynamic_flag_spec='$wl--export-all-symbols' 15473 allow_undefined_flag=unsupported 15474 always_export_symbols=no 15475 enable_shared_with_static_runtimes=yes 15476 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' 15477 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15478 15479 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15481 # If the export-symbols file already is a .def file, use it as 15482 # is; otherwise, prepend EXPORTS... 15483 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15484 cp $export_symbols $output_objdir/$soname.def; 15485 else 15486 echo EXPORTS > $output_objdir/$soname.def; 15487 cat $export_symbols >> $output_objdir/$soname.def; 15488 fi~ 15489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15490 else 15491 ld_shlibs=no 15492 fi 15493 ;; 15494 15495 haiku*) 15496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15497 link_all_deplibs=yes 15498 ;; 15499 15500 os2*) 15501 hardcode_libdir_flag_spec='-L$libdir' 15502 hardcode_minus_L=yes 15503 allow_undefined_flag=unsupported 15504 shrext_cmds=.dll 15505 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15506 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15507 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15508 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15509 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15510 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15511 emximp -o $lib $output_objdir/$libname.def' 15512 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15513 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15514 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15515 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15516 prefix_cmds="$SED"~ 15517 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15518 prefix_cmds="$prefix_cmds -e 1d"; 15519 fi~ 15520 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15521 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15522 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15523 emximp -o $lib $output_objdir/$libname.def' 15524 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15525 enable_shared_with_static_runtimes=yes 15526 ;; 15527 15528 interix[3-9]*) 15529 hardcode_direct=no 15530 hardcode_shlibpath_var=no 15531 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15532 export_dynamic_flag_spec='$wl-E' 15533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15534 # Instead, shared libraries are loaded at an image base (0x10000000 by 15535 # default) and relocated if they conflict, which is a slow very memory 15536 # consuming and fragmenting process. To avoid this, we pick a random, 15537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15538 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15540 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' 15541 ;; 15542 15543 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15544 tmp_diet=no 15545 if test linux-dietlibc = "$host_os"; then 15546 case $cc_basename in 15547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15548 esac 15549 fi 15550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15551 && test no = "$tmp_diet" 15552 then 15553 tmp_addflag=' $pic_flag' 15554 tmp_sharedflag='-shared' 15555 case $cc_basename,$host_cpu in 15556 pgcc*) # Portland Group C compiler 15557 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' 15558 tmp_addflag=' $pic_flag' 15559 ;; 15560 pgf77* | pgf90* | pgf95* | pgfortran*) 15561 # Portland Group f77 and f90 compilers 15562 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' 15563 tmp_addflag=' $pic_flag -Mnomain' ;; 15564 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15565 tmp_addflag=' -i_dynamic' ;; 15566 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15567 tmp_addflag=' -i_dynamic -nofor_main' ;; 15568 ifc* | ifort*) # Intel Fortran compiler 15569 tmp_addflag=' -nofor_main' ;; 15570 lf95*) # Lahey Fortran 8.1 15571 whole_archive_flag_spec= 15572 tmp_sharedflag='--shared' ;; 15573 nagfor*) # NAGFOR 5.3 15574 tmp_sharedflag='-Wl,-shared' ;; 15575 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15576 tmp_sharedflag='-qmkshrobj' 15577 tmp_addflag= ;; 15578 nvcc*) # Cuda Compiler Driver 2.2 15579 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' 15580 compiler_needs_object=yes 15581 ;; 15582 esac 15583 case `$CC -V 2>&1 | sed 5q` in 15584 *Sun\ C*) # Sun C 5.9 15585 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' 15586 compiler_needs_object=yes 15587 tmp_sharedflag='-G' ;; 15588 *Sun\ F*) # Sun Fortran 8.3 15589 tmp_sharedflag='-G' ;; 15590 esac 15591 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15592 15593 if test yes = "$supports_anon_versioning"; then 15594 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15596 echo "local: *; };" >> $output_objdir/$libname.ver~ 15597 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15598 fi 15599 15600 case $cc_basename in 15601 tcc*) 15602 export_dynamic_flag_spec='-rdynamic' 15603 ;; 15604 xlf* | bgf* | bgxlf* | mpixlf*) 15605 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15606 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15607 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15608 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15609 if test yes = "$supports_anon_versioning"; then 15610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15612 echo "local: *; };" >> $output_objdir/$libname.ver~ 15613 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15614 fi 15615 ;; 15616 esac 15617 else 15618 ld_shlibs=no 15619 fi 15620 ;; 15621 15622 netbsd*) 15623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15624 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15625 wlarc= 15626 else 15627 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15628 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15629 fi 15630 ;; 15631 15632 solaris*) 15633 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15634 ld_shlibs=no 15635 cat <<_LT_EOF 1>&2 15636 15637*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15638*** create shared libraries on Solaris systems. Therefore, libtool 15639*** is disabling shared libraries support. We urge you to upgrade GNU 15640*** binutils to release 2.9.1 or newer. Another option is to modify 15641*** your PATH or compiler configuration so that the native linker is 15642*** used, and then restart. 15643 15644_LT_EOF 15645 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15646 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15647 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15648 else 15649 ld_shlibs=no 15650 fi 15651 ;; 15652 15653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15654 case `$LD -v 2>&1` in 15655 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15656 ld_shlibs=no 15657 cat <<_LT_EOF 1>&2 15658 15659*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15660*** reliably create shared libraries on SCO systems. Therefore, libtool 15661*** is disabling shared libraries support. We urge you to upgrade GNU 15662*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15663*** your PATH or compiler configuration so that the native linker is 15664*** used, and then restart. 15665 15666_LT_EOF 15667 ;; 15668 *) 15669 # For security reasons, it is highly recommended that you always 15670 # use absolute paths for naming shared libraries, and exclude the 15671 # DT_RUNPATH tag from executables and libraries. But doing so 15672 # requires that you compile everything twice, which is a pain. 15673 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15674 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15677 else 15678 ld_shlibs=no 15679 fi 15680 ;; 15681 esac 15682 ;; 15683 15684 sunos4*) 15685 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15686 wlarc= 15687 hardcode_direct=yes 15688 hardcode_shlibpath_var=no 15689 ;; 15690 15691 *) 15692 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15694 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15695 else 15696 ld_shlibs=no 15697 fi 15698 ;; 15699 esac 15700 15701 if test no = "$ld_shlibs"; then 15702 runpath_var= 15703 hardcode_libdir_flag_spec= 15704 export_dynamic_flag_spec= 15705 whole_archive_flag_spec= 15706 fi 15707 else 15708 # PORTME fill in a description of your system's linker (not GNU ld) 15709 case $host_os in 15710 aix3*) 15711 allow_undefined_flag=unsupported 15712 always_export_symbols=yes 15713 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' 15714 # Note: this linker hardcodes the directories in LIBPATH if there 15715 # are no directories specified by -L. 15716 hardcode_minus_L=yes 15717 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15718 # Neither direct hardcoding nor static linking is supported with a 15719 # broken collect2. 15720 hardcode_direct=unsupported 15721 fi 15722 ;; 15723 15724 aix[4-9]*) 15725 if test ia64 = "$host_cpu"; then 15726 # On IA64, the linker does run time linking by default, so we don't 15727 # have to do anything special. 15728 aix_use_runtimelinking=no 15729 exp_sym_flag='-Bexport' 15730 no_entry_flag= 15731 else 15732 # If we're using GNU nm, then we don't want the "-C" option. 15733 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15734 # Without the "-l" option, or with the "-B" option, AIX nm treats 15735 # weak defined symbols like other global defined symbols, whereas 15736 # GNU nm marks them as "W". 15737 # While the 'weak' keyword is ignored in the Export File, we need 15738 # it in the Import File for the 'aix-soname' feature, so we have 15739 # to replace the "-B" option with "-P" for AIX nm. 15740 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15741 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' 15742 else 15743 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' 15744 fi 15745 aix_use_runtimelinking=no 15746 15747 # Test if we are trying to use run time linking or normal 15748 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15749 # have runtime linking enabled, and use it for executables. 15750 # For shared libraries, we enable/disable runtime linking 15751 # depending on the kind of the shared library created - 15752 # when "with_aix_soname,aix_use_runtimelinking" is: 15753 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15754 # "aix,yes" lib.so shared, rtl:yes, for executables 15755 # lib.a static archive 15756 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15757 # lib.a(lib.so.V) shared, rtl:no, for executables 15758 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15759 # lib.a(lib.so.V) shared, rtl:no 15760 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15761 # lib.a static archive 15762 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15763 for ld_flag in $LDFLAGS; do 15764 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15765 aix_use_runtimelinking=yes 15766 break 15767 fi 15768 done 15769 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15770 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15771 # so we don't have lib.a shared libs to link our executables. 15772 # We have to force runtime linking in this case. 15773 aix_use_runtimelinking=yes 15774 LDFLAGS="$LDFLAGS -Wl,-brtl" 15775 fi 15776 ;; 15777 esac 15778 15779 exp_sym_flag='-bexport' 15780 no_entry_flag='-bnoentry' 15781 fi 15782 15783 # When large executables or shared objects are built, AIX ld can 15784 # have problems creating the table of contents. If linking a library 15785 # or program results in "error TOC overflow" add -mminimal-toc to 15786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15788 15789 archive_cmds='' 15790 hardcode_direct=yes 15791 hardcode_direct_absolute=yes 15792 hardcode_libdir_separator=':' 15793 link_all_deplibs=yes 15794 file_list_spec='$wl-f,' 15795 case $with_aix_soname,$aix_use_runtimelinking in 15796 aix,*) ;; # traditional, no import file 15797 svr4,* | *,yes) # use import file 15798 # The Import File defines what to hardcode. 15799 hardcode_direct=no 15800 hardcode_direct_absolute=no 15801 ;; 15802 esac 15803 15804 if test yes = "$GCC"; then 15805 case $host_os in aix4.[012]|aix4.[012].*) 15806 # We only want to do this on AIX 4.2 and lower, the check 15807 # below for broken collect2 doesn't work under 4.3+ 15808 collect2name=`$CC -print-prog-name=collect2` 15809 if test -f "$collect2name" && 15810 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15811 then 15812 # We have reworked collect2 15813 : 15814 else 15815 # We have old collect2 15816 hardcode_direct=unsupported 15817 # It fails to find uninstalled libraries when the uninstalled 15818 # path is not listed in the libpath. Setting hardcode_minus_L 15819 # to unsupported forces relinking 15820 hardcode_minus_L=yes 15821 hardcode_libdir_flag_spec='-L$libdir' 15822 hardcode_libdir_separator= 15823 fi 15824 ;; 15825 esac 15826 shared_flag='-shared' 15827 if test yes = "$aix_use_runtimelinking"; then 15828 shared_flag="$shared_flag "'$wl-G' 15829 fi 15830 # Need to ensure runtime linking is disabled for the traditional 15831 # shared library, or the linker may eventually find shared libraries 15832 # /with/ Import File - we do not want to mix them. 15833 shared_flag_aix='-shared' 15834 shared_flag_svr4='-shared $wl-G' 15835 else 15836 # not using gcc 15837 if test ia64 = "$host_cpu"; then 15838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15839 # chokes on -Wl,-G. The following line is correct: 15840 shared_flag='-G' 15841 else 15842 if test yes = "$aix_use_runtimelinking"; then 15843 shared_flag='$wl-G' 15844 else 15845 shared_flag='$wl-bM:SRE' 15846 fi 15847 shared_flag_aix='$wl-bM:SRE' 15848 shared_flag_svr4='$wl-G' 15849 fi 15850 fi 15851 15852 export_dynamic_flag_spec='$wl-bexpall' 15853 # It seems that -bexpall does not export symbols beginning with 15854 # underscore (_), so it is better to generate a list of symbols to export. 15855 always_export_symbols=yes 15856 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15857 # Warning - without using the other runtime loading flags (-brtl), 15858 # -berok will link without error, but may produce a broken library. 15859 allow_undefined_flag='-berok' 15860 # Determine the default libpath from the value encoded in an 15861 # empty executable. 15862 if test set = "${lt_cv_aix_libpath+set}"; then 15863 aix_libpath=$lt_cv_aix_libpath 15864else 15865 if ${lt_cv_aix_libpath_+:} false; then : 15866 $as_echo_n "(cached) " >&6 15867else 15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15869/* end confdefs.h. */ 15870 15871int 15872main () 15873{ 15874 15875 ; 15876 return 0; 15877} 15878_ACEOF 15879if ac_fn_c_try_link "$LINENO"; then : 15880 15881 lt_aix_libpath_sed=' 15882 /Import File Strings/,/^$/ { 15883 /^0/ { 15884 s/^0 *\([^ ]*\) *$/\1/ 15885 p 15886 } 15887 }' 15888 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15889 # Check for a 64-bit object if we didn't find anything. 15890 if test -z "$lt_cv_aix_libpath_"; then 15891 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15892 fi 15893fi 15894rm -f core conftest.err conftest.$ac_objext \ 15895 conftest$ac_exeext conftest.$ac_ext 15896 if test -z "$lt_cv_aix_libpath_"; then 15897 lt_cv_aix_libpath_=/usr/lib:/lib 15898 fi 15899 15900fi 15901 15902 aix_libpath=$lt_cv_aix_libpath_ 15903fi 15904 15905 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15906 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 15907 else 15908 if test ia64 = "$host_cpu"; then 15909 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15910 allow_undefined_flag="-z nodefs" 15911 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" 15912 else 15913 # Determine the default libpath from the value encoded in an 15914 # empty executable. 15915 if test set = "${lt_cv_aix_libpath+set}"; then 15916 aix_libpath=$lt_cv_aix_libpath 15917else 15918 if ${lt_cv_aix_libpath_+:} false; then : 15919 $as_echo_n "(cached) " >&6 15920else 15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15922/* end confdefs.h. */ 15923 15924int 15925main () 15926{ 15927 15928 ; 15929 return 0; 15930} 15931_ACEOF 15932if ac_fn_c_try_link "$LINENO"; then : 15933 15934 lt_aix_libpath_sed=' 15935 /Import File Strings/,/^$/ { 15936 /^0/ { 15937 s/^0 *\([^ ]*\) *$/\1/ 15938 p 15939 } 15940 }' 15941 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15942 # Check for a 64-bit object if we didn't find anything. 15943 if test -z "$lt_cv_aix_libpath_"; then 15944 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15945 fi 15946fi 15947rm -f core conftest.err conftest.$ac_objext \ 15948 conftest$ac_exeext conftest.$ac_ext 15949 if test -z "$lt_cv_aix_libpath_"; then 15950 lt_cv_aix_libpath_=/usr/lib:/lib 15951 fi 15952 15953fi 15954 15955 aix_libpath=$lt_cv_aix_libpath_ 15956fi 15957 15958 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15959 # Warning - without using the other run time loading flags, 15960 # -berok will link without error, but may produce a broken library. 15961 no_undefined_flag=' $wl-bernotok' 15962 allow_undefined_flag=' $wl-berok' 15963 if test yes = "$with_gnu_ld"; then 15964 # We only use this code for GNU lds that support --whole-archive. 15965 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15966 else 15967 # Exported symbols can be pulled into shared objects from archives 15968 whole_archive_flag_spec='$convenience' 15969 fi 15970 archive_cmds_need_lc=yes 15971 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15972 # -brtl affects multiple linker settings, -berok does not and is overridden later 15973 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15974 if test svr4 != "$with_aix_soname"; then 15975 # This is similar to how AIX traditionally builds its shared libraries. 15976 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' 15977 fi 15978 if test aix != "$with_aix_soname"; then 15979 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' 15980 else 15981 # used by -dlpreopen to get the symbols 15982 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15983 fi 15984 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 15985 fi 15986 fi 15987 ;; 15988 15989 amigaos*) 15990 case $host_cpu in 15991 powerpc) 15992 # see comment about AmigaOS4 .so support 15993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15994 archive_expsym_cmds='' 15995 ;; 15996 m68k) 15997 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)' 15998 hardcode_libdir_flag_spec='-L$libdir' 15999 hardcode_minus_L=yes 16000 ;; 16001 esac 16002 ;; 16003 16004 bsdi[45]*) 16005 export_dynamic_flag_spec=-rdynamic 16006 ;; 16007 16008 cygwin* | mingw* | pw32* | cegcc*) 16009 # When not using gcc, we currently assume that we are using 16010 # Microsoft Visual C++. 16011 # hardcode_libdir_flag_spec is actually meaningless, as there is 16012 # no search path for DLLs. 16013 case $cc_basename in 16014 cl*) 16015 # Native MSVC 16016 hardcode_libdir_flag_spec=' ' 16017 allow_undefined_flag=unsupported 16018 always_export_symbols=yes 16019 file_list_spec='@' 16020 # Tell ltmain to make .lib files, not .a files. 16021 libext=lib 16022 # Tell ltmain to make .dll files, not .so files. 16023 shrext_cmds=.dll 16024 # FIXME: Setting linknames here is a bad hack. 16025 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16026 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16027 cp "$export_symbols" "$output_objdir/$soname.def"; 16028 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16029 else 16030 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16031 fi~ 16032 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16033 linknames=' 16034 # The linker will not automatically build a static lib if we build a DLL. 16035 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16036 enable_shared_with_static_runtimes=yes 16037 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16039 # Don't use ranlib 16040 old_postinstall_cmds='chmod 644 $oldlib' 16041 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16042 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16043 case $lt_outputfile in 16044 *.exe|*.EXE) ;; 16045 *) 16046 lt_outputfile=$lt_outputfile.exe 16047 lt_tool_outputfile=$lt_tool_outputfile.exe 16048 ;; 16049 esac~ 16050 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16051 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16052 $RM "$lt_outputfile.manifest"; 16053 fi' 16054 ;; 16055 *) 16056 # Assume MSVC wrapper 16057 hardcode_libdir_flag_spec=' ' 16058 allow_undefined_flag=unsupported 16059 # Tell ltmain to make .lib files, not .a files. 16060 libext=lib 16061 # Tell ltmain to make .dll files, not .so files. 16062 shrext_cmds=.dll 16063 # FIXME: Setting linknames here is a bad hack. 16064 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16065 # The linker will automatically build a .lib file if we build a DLL. 16066 old_archive_from_new_cmds='true' 16067 # FIXME: Should let the user specify the lib program. 16068 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16069 enable_shared_with_static_runtimes=yes 16070 ;; 16071 esac 16072 ;; 16073 16074 darwin* | rhapsody*) 16075 16076 16077 archive_cmds_need_lc=no 16078 hardcode_direct=no 16079 hardcode_automatic=yes 16080 hardcode_shlibpath_var=unsupported 16081 if test yes = "$lt_cv_ld_force_load"; then 16082 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\"`' 16083 16084 else 16085 whole_archive_flag_spec='' 16086 fi 16087 link_all_deplibs=yes 16088 allow_undefined_flag=$_lt_dar_allow_undefined 16089 case $cc_basename in 16090 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16091 *) _lt_dar_can_shared=$GCC ;; 16092 esac 16093 if test yes = "$_lt_dar_can_shared"; then 16094 output_verbose_link_cmd=func_echo_all 16095 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16096 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16097 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" 16098 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" 16099 16100 else 16101 ld_shlibs=no 16102 fi 16103 16104 ;; 16105 16106 dgux*) 16107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16108 hardcode_libdir_flag_spec='-L$libdir' 16109 hardcode_shlibpath_var=no 16110 ;; 16111 16112 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16113 # support. Future versions do this automatically, but an explicit c++rt0.o 16114 # does not break anything, and helps significantly (at the cost of a little 16115 # extra space). 16116 freebsd2.2*) 16117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16118 hardcode_libdir_flag_spec='-R$libdir' 16119 hardcode_direct=yes 16120 hardcode_shlibpath_var=no 16121 ;; 16122 16123 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16124 freebsd2.*) 16125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16126 hardcode_direct=yes 16127 hardcode_minus_L=yes 16128 hardcode_shlibpath_var=no 16129 ;; 16130 16131 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16132 freebsd* | dragonfly*) 16133 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16134 hardcode_libdir_flag_spec='-R$libdir' 16135 hardcode_direct=yes 16136 hardcode_shlibpath_var=no 16137 ;; 16138 16139 hpux9*) 16140 if test yes = "$GCC"; then 16141 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' 16142 else 16143 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' 16144 fi 16145 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16146 hardcode_libdir_separator=: 16147 hardcode_direct=yes 16148 16149 # hardcode_minus_L: Not really in the search PATH, 16150 # but as the default location of the library. 16151 hardcode_minus_L=yes 16152 export_dynamic_flag_spec='$wl-E' 16153 ;; 16154 16155 hpux10*) 16156 if test yes,no = "$GCC,$with_gnu_ld"; then 16157 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16158 else 16159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16160 fi 16161 if test no = "$with_gnu_ld"; then 16162 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16163 hardcode_libdir_separator=: 16164 hardcode_direct=yes 16165 hardcode_direct_absolute=yes 16166 export_dynamic_flag_spec='$wl-E' 16167 # hardcode_minus_L: Not really in the search PATH, 16168 # but as the default location of the library. 16169 hardcode_minus_L=yes 16170 fi 16171 ;; 16172 16173 hpux11*) 16174 if test yes,no = "$GCC,$with_gnu_ld"; then 16175 case $host_cpu in 16176 hppa*64*) 16177 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16178 ;; 16179 ia64*) 16180 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16181 ;; 16182 *) 16183 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16184 ;; 16185 esac 16186 else 16187 case $host_cpu in 16188 hppa*64*) 16189 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16190 ;; 16191 ia64*) 16192 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16193 ;; 16194 *) 16195 16196 # Older versions of the 11.00 compiler do not understand -b yet 16197 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16199$as_echo_n "checking if $CC understands -b... " >&6; } 16200if ${lt_cv_prog_compiler__b+:} false; then : 16201 $as_echo_n "(cached) " >&6 16202else 16203 lt_cv_prog_compiler__b=no 16204 save_LDFLAGS=$LDFLAGS 16205 LDFLAGS="$LDFLAGS -b" 16206 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16207 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16208 # The linker can only warn and ignore the option if not recognized 16209 # So say no if there are warnings 16210 if test -s conftest.err; then 16211 # Append any errors to the config.log. 16212 cat conftest.err 1>&5 16213 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16215 if diff conftest.exp conftest.er2 >/dev/null; then 16216 lt_cv_prog_compiler__b=yes 16217 fi 16218 else 16219 lt_cv_prog_compiler__b=yes 16220 fi 16221 fi 16222 $RM -r conftest* 16223 LDFLAGS=$save_LDFLAGS 16224 16225fi 16226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16227$as_echo "$lt_cv_prog_compiler__b" >&6; } 16228 16229if test yes = "$lt_cv_prog_compiler__b"; then 16230 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16231else 16232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16233fi 16234 16235 ;; 16236 esac 16237 fi 16238 if test no = "$with_gnu_ld"; then 16239 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16240 hardcode_libdir_separator=: 16241 16242 case $host_cpu in 16243 hppa*64*|ia64*) 16244 hardcode_direct=no 16245 hardcode_shlibpath_var=no 16246 ;; 16247 *) 16248 hardcode_direct=yes 16249 hardcode_direct_absolute=yes 16250 export_dynamic_flag_spec='$wl-E' 16251 16252 # hardcode_minus_L: Not really in the search PATH, 16253 # but as the default location of the library. 16254 hardcode_minus_L=yes 16255 ;; 16256 esac 16257 fi 16258 ;; 16259 16260 irix5* | irix6* | nonstopux*) 16261 if test yes = "$GCC"; then 16262 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' 16263 # Try to use the -exported_symbol ld option, if it does not 16264 # work, assume that -exports_file does not work either and 16265 # implicitly export all symbols. 16266 # This should be the same for all languages, so no per-tag cache variable. 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16268$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16269if ${lt_cv_irix_exported_symbol+:} false; then : 16270 $as_echo_n "(cached) " >&6 16271else 16272 save_LDFLAGS=$LDFLAGS 16273 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16275/* end confdefs.h. */ 16276int foo (void) { return 0; } 16277_ACEOF 16278if ac_fn_c_try_link "$LINENO"; then : 16279 lt_cv_irix_exported_symbol=yes 16280else 16281 lt_cv_irix_exported_symbol=no 16282fi 16283rm -f core conftest.err conftest.$ac_objext \ 16284 conftest$ac_exeext conftest.$ac_ext 16285 LDFLAGS=$save_LDFLAGS 16286fi 16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16288$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16289 if test yes = "$lt_cv_irix_exported_symbol"; then 16290 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' 16291 fi 16292 else 16293 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' 16294 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' 16295 fi 16296 archive_cmds_need_lc='no' 16297 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16298 hardcode_libdir_separator=: 16299 inherit_rpath=yes 16300 link_all_deplibs=yes 16301 ;; 16302 16303 linux*) 16304 case $cc_basename in 16305 tcc*) 16306 # Fabrice Bellard et al's Tiny C Compiler 16307 ld_shlibs=yes 16308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16309 ;; 16310 esac 16311 ;; 16312 16313 netbsd*) 16314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16316 else 16317 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16318 fi 16319 hardcode_libdir_flag_spec='-R$libdir' 16320 hardcode_direct=yes 16321 hardcode_shlibpath_var=no 16322 ;; 16323 16324 newsos6) 16325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16326 hardcode_direct=yes 16327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16328 hardcode_libdir_separator=: 16329 hardcode_shlibpath_var=no 16330 ;; 16331 16332 *nto* | *qnx*) 16333 ;; 16334 16335 openbsd* | bitrig*) 16336 if test -f /usr/libexec/ld.so; then 16337 hardcode_direct=yes 16338 hardcode_shlibpath_var=no 16339 hardcode_direct_absolute=yes 16340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16342 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16343 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16344 export_dynamic_flag_spec='$wl-E' 16345 else 16346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16347 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16348 fi 16349 else 16350 ld_shlibs=no 16351 fi 16352 ;; 16353 16354 os2*) 16355 hardcode_libdir_flag_spec='-L$libdir' 16356 hardcode_minus_L=yes 16357 allow_undefined_flag=unsupported 16358 shrext_cmds=.dll 16359 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16360 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16361 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16362 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16363 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16364 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16365 emximp -o $lib $output_objdir/$libname.def' 16366 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16367 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16368 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16369 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16370 prefix_cmds="$SED"~ 16371 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16372 prefix_cmds="$prefix_cmds -e 1d"; 16373 fi~ 16374 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16375 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16376 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16377 emximp -o $lib $output_objdir/$libname.def' 16378 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16379 enable_shared_with_static_runtimes=yes 16380 ;; 16381 16382 osf3*) 16383 if test yes = "$GCC"; then 16384 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16385 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' 16386 else 16387 allow_undefined_flag=' -expect_unresolved \*' 16388 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' 16389 fi 16390 archive_cmds_need_lc='no' 16391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16392 hardcode_libdir_separator=: 16393 ;; 16394 16395 osf4* | osf5*) # as osf3* with the addition of -msym flag 16396 if test yes = "$GCC"; then 16397 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16398 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' 16399 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16400 else 16401 allow_undefined_flag=' -expect_unresolved \*' 16402 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' 16403 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~ 16404 $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' 16405 16406 # Both c and cxx compiler support -rpath directly 16407 hardcode_libdir_flag_spec='-rpath $libdir' 16408 fi 16409 archive_cmds_need_lc='no' 16410 hardcode_libdir_separator=: 16411 ;; 16412 16413 solaris*) 16414 no_undefined_flag=' -z defs' 16415 if test yes = "$GCC"; then 16416 wlarc='$wl' 16417 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16419 $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' 16420 else 16421 case `$CC -V 2>&1` in 16422 *"Compilers 5.0"*) 16423 wlarc='' 16424 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16426 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16427 ;; 16428 *) 16429 wlarc='$wl' 16430 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16431 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16432 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16433 ;; 16434 esac 16435 fi 16436 hardcode_libdir_flag_spec='-R$libdir' 16437 hardcode_shlibpath_var=no 16438 case $host_os in 16439 solaris2.[0-5] | solaris2.[0-5].*) ;; 16440 *) 16441 # The compiler driver will combine and reorder linker options, 16442 # but understands '-z linker_flag'. GCC discards it without '$wl', 16443 # but is careful enough not to reorder. 16444 # Supported since Solaris 2.6 (maybe 2.5.1?) 16445 if test yes = "$GCC"; then 16446 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16447 else 16448 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16449 fi 16450 ;; 16451 esac 16452 link_all_deplibs=yes 16453 ;; 16454 16455 sunos4*) 16456 if test sequent = "$host_vendor"; then 16457 # Use $CC to link under sequent, because it throws in some extra .o 16458 # files that make .init and .fini sections work. 16459 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16460 else 16461 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16462 fi 16463 hardcode_libdir_flag_spec='-L$libdir' 16464 hardcode_direct=yes 16465 hardcode_minus_L=yes 16466 hardcode_shlibpath_var=no 16467 ;; 16468 16469 sysv4) 16470 case $host_vendor in 16471 sni) 16472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16473 hardcode_direct=yes # is this really true??? 16474 ;; 16475 siemens) 16476 ## LD is ld it makes a PLAMLIB 16477 ## CC just makes a GrossModule. 16478 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16479 reload_cmds='$CC -r -o $output$reload_objs' 16480 hardcode_direct=no 16481 ;; 16482 motorola) 16483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16484 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16485 ;; 16486 esac 16487 runpath_var='LD_RUN_PATH' 16488 hardcode_shlibpath_var=no 16489 ;; 16490 16491 sysv4.3*) 16492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16493 hardcode_shlibpath_var=no 16494 export_dynamic_flag_spec='-Bexport' 16495 ;; 16496 16497 sysv4*MP*) 16498 if test -d /usr/nec; then 16499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16500 hardcode_shlibpath_var=no 16501 runpath_var=LD_RUN_PATH 16502 hardcode_runpath_var=yes 16503 ld_shlibs=yes 16504 fi 16505 ;; 16506 16507 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16508 no_undefined_flag='$wl-z,text' 16509 archive_cmds_need_lc=no 16510 hardcode_shlibpath_var=no 16511 runpath_var='LD_RUN_PATH' 16512 16513 if test yes = "$GCC"; then 16514 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16515 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16516 else 16517 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16518 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16519 fi 16520 ;; 16521 16522 sysv5* | sco3.2v5* | sco5v6*) 16523 # Note: We CANNOT use -z defs as we might desire, because we do not 16524 # link with -lc, and that would cause any symbols used from libc to 16525 # always be unresolved, which means just about no library would 16526 # ever link correctly. If we're not using GNU ld we use -z text 16527 # though, which does catch some bad symbols but isn't as heavy-handed 16528 # as -z defs. 16529 no_undefined_flag='$wl-z,text' 16530 allow_undefined_flag='$wl-z,nodefs' 16531 archive_cmds_need_lc=no 16532 hardcode_shlibpath_var=no 16533 hardcode_libdir_flag_spec='$wl-R,$libdir' 16534 hardcode_libdir_separator=':' 16535 link_all_deplibs=yes 16536 export_dynamic_flag_spec='$wl-Bexport' 16537 runpath_var='LD_RUN_PATH' 16538 16539 if test yes = "$GCC"; then 16540 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16541 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16542 else 16543 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16544 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16545 fi 16546 ;; 16547 16548 uts4*) 16549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16550 hardcode_libdir_flag_spec='-L$libdir' 16551 hardcode_shlibpath_var=no 16552 ;; 16553 16554 *) 16555 ld_shlibs=no 16556 ;; 16557 esac 16558 16559 if test sni = "$host_vendor"; then 16560 case $host in 16561 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16562 export_dynamic_flag_spec='$wl-Blargedynsym' 16563 ;; 16564 esac 16565 fi 16566 fi 16567 16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16569$as_echo "$ld_shlibs" >&6; } 16570test no = "$ld_shlibs" && can_build_shared=no 16571 16572with_gnu_ld=$with_gnu_ld 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588# 16589# Do we need to explicitly link libc? 16590# 16591case "x$archive_cmds_need_lc" in 16592x|xyes) 16593 # Assume -lc should be added 16594 archive_cmds_need_lc=yes 16595 16596 if test yes,yes = "$GCC,$enable_shared"; then 16597 case $archive_cmds in 16598 *'~'*) 16599 # FIXME: we may have to deal with multi-command sequences. 16600 ;; 16601 '$CC '*) 16602 # Test whether the compiler implicitly links with -lc since on some 16603 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16604 # to ld, don't add -lc before -lgcc. 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16606$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16607if ${lt_cv_archive_cmds_need_lc+:} false; then : 16608 $as_echo_n "(cached) " >&6 16609else 16610 $RM conftest* 16611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16612 16613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16614 (eval $ac_compile) 2>&5 16615 ac_status=$? 16616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16617 test $ac_status = 0; } 2>conftest.err; then 16618 soname=conftest 16619 lib=conftest 16620 libobjs=conftest.$ac_objext 16621 deplibs= 16622 wl=$lt_prog_compiler_wl 16623 pic_flag=$lt_prog_compiler_pic 16624 compiler_flags=-v 16625 linker_flags=-v 16626 verstring= 16627 output_objdir=. 16628 libname=conftest 16629 lt_save_allow_undefined_flag=$allow_undefined_flag 16630 allow_undefined_flag= 16631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16632 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16633 ac_status=$? 16634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16635 test $ac_status = 0; } 16636 then 16637 lt_cv_archive_cmds_need_lc=no 16638 else 16639 lt_cv_archive_cmds_need_lc=yes 16640 fi 16641 allow_undefined_flag=$lt_save_allow_undefined_flag 16642 else 16643 cat conftest.err 1>&5 16644 fi 16645 $RM conftest* 16646 16647fi 16648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16649$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16650 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16651 ;; 16652 esac 16653 fi 16654 ;; 16655esac 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16809$as_echo_n "checking dynamic linker characteristics... " >&6; } 16810 16811if test yes = "$GCC"; then 16812 case $host_os in 16813 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16814 *) lt_awk_arg='/^libraries:/' ;; 16815 esac 16816 case $host_os in 16817 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16818 *) lt_sed_strip_eq='s|=/|/|g' ;; 16819 esac 16820 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16821 case $lt_search_path_spec in 16822 *\;*) 16823 # if the path contains ";" then we assume it to be the separator 16824 # otherwise default to the standard path separator (i.e. ":") - it is 16825 # assumed that no part of a normal pathname contains ";" but that should 16826 # okay in the real world where ";" in dirpaths is itself problematic. 16827 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16828 ;; 16829 *) 16830 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16831 ;; 16832 esac 16833 # Ok, now we have the path, separated by spaces, we can step through it 16834 # and add multilib dir if necessary... 16835 lt_tmp_lt_search_path_spec= 16836 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16837 # ...but if some path component already ends with the multilib dir we assume 16838 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16839 case "$lt_multi_os_dir; $lt_search_path_spec " in 16840 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16841 lt_multi_os_dir= 16842 ;; 16843 esac 16844 for lt_sys_path in $lt_search_path_spec; do 16845 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16846 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16847 elif test -n "$lt_multi_os_dir"; then 16848 test -d "$lt_sys_path" && \ 16849 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16850 fi 16851 done 16852 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16853BEGIN {RS = " "; FS = "/|\n";} { 16854 lt_foo = ""; 16855 lt_count = 0; 16856 for (lt_i = NF; lt_i > 0; lt_i--) { 16857 if ($lt_i != "" && $lt_i != ".") { 16858 if ($lt_i == "..") { 16859 lt_count++; 16860 } else { 16861 if (lt_count == 0) { 16862 lt_foo = "/" $lt_i lt_foo; 16863 } else { 16864 lt_count--; 16865 } 16866 } 16867 } 16868 } 16869 if (lt_foo != "") { lt_freq[lt_foo]++; } 16870 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16871}'` 16872 # AWK program above erroneously prepends '/' to C:/dos/paths 16873 # for these hosts. 16874 case $host_os in 16875 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16876 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16877 esac 16878 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16879else 16880 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16881fi 16882library_names_spec= 16883libname_spec='lib$name' 16884soname_spec= 16885shrext_cmds=.so 16886postinstall_cmds= 16887postuninstall_cmds= 16888finish_cmds= 16889finish_eval= 16890shlibpath_var= 16891shlibpath_overrides_runpath=unknown 16892version_type=none 16893dynamic_linker="$host_os ld.so" 16894sys_lib_dlsearch_path_spec="/lib /usr/lib" 16895need_lib_prefix=unknown 16896hardcode_into_libs=no 16897 16898# when you set need_version to no, make sure it does not cause -set_version 16899# flags to be left without arguments 16900need_version=unknown 16901 16902 16903 16904case $host_os in 16905aix3*) 16906 version_type=linux # correct to gnu/linux during the next big refactor 16907 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16908 shlibpath_var=LIBPATH 16909 16910 # AIX 3 has no versioning support, so we append a major version to the name. 16911 soname_spec='$libname$release$shared_ext$major' 16912 ;; 16913 16914aix[4-9]*) 16915 version_type=linux # correct to gnu/linux during the next big refactor 16916 need_lib_prefix=no 16917 need_version=no 16918 hardcode_into_libs=yes 16919 if test ia64 = "$host_cpu"; then 16920 # AIX 5 supports IA64 16921 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16922 shlibpath_var=LD_LIBRARY_PATH 16923 else 16924 # With GCC up to 2.95.x, collect2 would create an import file 16925 # for dependence libraries. The import file would start with 16926 # the line '#! .'. This would cause the generated library to 16927 # depend on '.', always an invalid library. This was fixed in 16928 # development snapshots of GCC prior to 3.0. 16929 case $host_os in 16930 aix4 | aix4.[01] | aix4.[01].*) 16931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16932 echo ' yes ' 16933 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16934 : 16935 else 16936 can_build_shared=no 16937 fi 16938 ;; 16939 esac 16940 # Using Import Files as archive members, it is possible to support 16941 # filename-based versioning of shared library archives on AIX. While 16942 # this would work for both with and without runtime linking, it will 16943 # prevent static linking of such archives. So we do filename-based 16944 # shared library versioning with .so extension only, which is used 16945 # when both runtime linking and shared linking is enabled. 16946 # Unfortunately, runtime linking may impact performance, so we do 16947 # not want this to be the default eventually. Also, we use the 16948 # versioned .so libs for executables only if there is the -brtl 16949 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16950 # To allow for filename-based versioning support, we need to create 16951 # libNAME.so.V as an archive file, containing: 16952 # *) an Import File, referring to the versioned filename of the 16953 # archive as well as the shared archive member, telling the 16954 # bitwidth (32 or 64) of that shared object, and providing the 16955 # list of exported symbols of that shared object, eventually 16956 # decorated with the 'weak' keyword 16957 # *) the shared object with the F_LOADONLY flag set, to really avoid 16958 # it being seen by the linker. 16959 # At run time we better use the real file rather than another symlink, 16960 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16961 16962 case $with_aix_soname,$aix_use_runtimelinking in 16963 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16964 # soname into executable. Probably we can add versioning support to 16965 # collect2, so additional links can be useful in future. 16966 aix,yes) # traditional libtool 16967 dynamic_linker='AIX unversionable lib.so' 16968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16969 # instead of lib<name>.a to let people know that these are not 16970 # typical AIX shared libraries. 16971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16972 ;; 16973 aix,no) # traditional AIX only 16974 dynamic_linker='AIX lib.a(lib.so.V)' 16975 # We preserve .a as extension for shared libraries through AIX4.2 16976 # and later when we are not doing run time linking. 16977 library_names_spec='$libname$release.a $libname.a' 16978 soname_spec='$libname$release$shared_ext$major' 16979 ;; 16980 svr4,*) # full svr4 only 16981 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16982 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16983 # We do not specify a path in Import Files, so LIBPATH fires. 16984 shlibpath_overrides_runpath=yes 16985 ;; 16986 *,yes) # both, prefer svr4 16987 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16988 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16989 # unpreferred sharedlib libNAME.a needs extra handling 16990 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"' 16991 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"' 16992 # We do not specify a path in Import Files, so LIBPATH fires. 16993 shlibpath_overrides_runpath=yes 16994 ;; 16995 *,no) # both, prefer aix 16996 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16997 library_names_spec='$libname$release.a $libname.a' 16998 soname_spec='$libname$release$shared_ext$major' 16999 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17000 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)' 17001 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"' 17002 ;; 17003 esac 17004 shlibpath_var=LIBPATH 17005 fi 17006 ;; 17007 17008amigaos*) 17009 case $host_cpu in 17010 powerpc) 17011 # Since July 2007 AmigaOS4 officially supports .so libraries. 17012 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17014 ;; 17015 m68k) 17016 library_names_spec='$libname.ixlibrary $libname.a' 17017 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17018 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' 17019 ;; 17020 esac 17021 ;; 17022 17023beos*) 17024 library_names_spec='$libname$shared_ext' 17025 dynamic_linker="$host_os ld.so" 17026 shlibpath_var=LIBRARY_PATH 17027 ;; 17028 17029bsdi[45]*) 17030 version_type=linux # correct to gnu/linux during the next big refactor 17031 need_version=no 17032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17033 soname_spec='$libname$release$shared_ext$major' 17034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17035 shlibpath_var=LD_LIBRARY_PATH 17036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17038 # the default ld.so.conf also contains /usr/contrib/lib and 17039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17040 # libtool to hard-code these into programs 17041 ;; 17042 17043cygwin* | mingw* | pw32* | cegcc*) 17044 version_type=windows 17045 shrext_cmds=.dll 17046 need_version=no 17047 need_lib_prefix=no 17048 17049 case $GCC,$cc_basename in 17050 yes,*) 17051 # gcc 17052 library_names_spec='$libname.dll.a' 17053 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17054 postinstall_cmds='base_file=`basename \$file`~ 17055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17056 dldir=$destdir/`dirname \$dlpath`~ 17057 test -d \$dldir || mkdir -p \$dldir~ 17058 $install_prog $dir/$dlname \$dldir/$dlname~ 17059 chmod a+x \$dldir/$dlname~ 17060 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17061 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17062 fi' 17063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17064 dlpath=$dir/\$dldll~ 17065 $RM \$dlpath' 17066 shlibpath_overrides_runpath=yes 17067 17068 case $host_os in 17069 cygwin*) 17070 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17071 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17072 17073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17074 ;; 17075 mingw* | cegcc*) 17076 # MinGW DLLs use traditional 'lib' prefix 17077 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17078 ;; 17079 pw32*) 17080 # pw32 DLLs use 'pw' prefix rather than 'lib' 17081 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17082 ;; 17083 esac 17084 dynamic_linker='Win32 ld.exe' 17085 ;; 17086 17087 *,cl*) 17088 # Native MSVC 17089 libname_spec='$name' 17090 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17091 library_names_spec='$libname.dll.lib' 17092 17093 case $build_os in 17094 mingw*) 17095 sys_lib_search_path_spec= 17096 lt_save_ifs=$IFS 17097 IFS=';' 17098 for lt_path in $LIB 17099 do 17100 IFS=$lt_save_ifs 17101 # Let DOS variable expansion print the short 8.3 style file name. 17102 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17103 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17104 done 17105 IFS=$lt_save_ifs 17106 # Convert to MSYS style. 17107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17108 ;; 17109 cygwin*) 17110 # Convert to unix form, then to dos form, then back to unix form 17111 # but this time dos style (no spaces!) so that the unix form looks 17112 # like /cygdrive/c/PROGRA~1:/cygdr... 17113 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17114 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17115 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17116 ;; 17117 *) 17118 sys_lib_search_path_spec=$LIB 17119 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17120 # It is most probably a Windows format PATH. 17121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17122 else 17123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17124 fi 17125 # FIXME: find the short name or the path components, as spaces are 17126 # common. (e.g. "Program Files" -> "PROGRA~1") 17127 ;; 17128 esac 17129 17130 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17131 postinstall_cmds='base_file=`basename \$file`~ 17132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17133 dldir=$destdir/`dirname \$dlpath`~ 17134 test -d \$dldir || mkdir -p \$dldir~ 17135 $install_prog $dir/$dlname \$dldir/$dlname' 17136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17137 dlpath=$dir/\$dldll~ 17138 $RM \$dlpath' 17139 shlibpath_overrides_runpath=yes 17140 dynamic_linker='Win32 link.exe' 17141 ;; 17142 17143 *) 17144 # Assume MSVC wrapper 17145 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17146 dynamic_linker='Win32 ld.exe' 17147 ;; 17148 esac 17149 # FIXME: first we should search . and the directory the executable is in 17150 shlibpath_var=PATH 17151 ;; 17152 17153darwin* | rhapsody*) 17154 dynamic_linker="$host_os dyld" 17155 version_type=darwin 17156 need_lib_prefix=no 17157 need_version=no 17158 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17159 soname_spec='$libname$release$major$shared_ext' 17160 shlibpath_overrides_runpath=yes 17161 shlibpath_var=DYLD_LIBRARY_PATH 17162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17163 17164 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17166 ;; 17167 17168dgux*) 17169 version_type=linux # correct to gnu/linux during the next big refactor 17170 need_lib_prefix=no 17171 need_version=no 17172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17173 soname_spec='$libname$release$shared_ext$major' 17174 shlibpath_var=LD_LIBRARY_PATH 17175 ;; 17176 17177freebsd* | dragonfly*) 17178 # DragonFly does not have aout. When/if they implement a new 17179 # versioning mechanism, adjust this. 17180 if test -x /usr/bin/objformat; then 17181 objformat=`/usr/bin/objformat` 17182 else 17183 case $host_os in 17184 freebsd[23].*) objformat=aout ;; 17185 *) objformat=elf ;; 17186 esac 17187 fi 17188 version_type=freebsd-$objformat 17189 case $version_type in 17190 freebsd-elf*) 17191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17192 soname_spec='$libname$release$shared_ext$major' 17193 need_version=no 17194 need_lib_prefix=no 17195 ;; 17196 freebsd-*) 17197 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17198 need_version=yes 17199 ;; 17200 esac 17201 shlibpath_var=LD_LIBRARY_PATH 17202 case $host_os in 17203 freebsd2.*) 17204 shlibpath_overrides_runpath=yes 17205 ;; 17206 freebsd3.[01]* | freebsdelf3.[01]*) 17207 shlibpath_overrides_runpath=yes 17208 hardcode_into_libs=yes 17209 ;; 17210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17212 shlibpath_overrides_runpath=no 17213 hardcode_into_libs=yes 17214 ;; 17215 *) # from 4.6 on, and DragonFly 17216 shlibpath_overrides_runpath=yes 17217 hardcode_into_libs=yes 17218 ;; 17219 esac 17220 ;; 17221 17222haiku*) 17223 version_type=linux # correct to gnu/linux during the next big refactor 17224 need_lib_prefix=no 17225 need_version=no 17226 dynamic_linker="$host_os runtime_loader" 17227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17228 soname_spec='$libname$release$shared_ext$major' 17229 shlibpath_var=LIBRARY_PATH 17230 shlibpath_overrides_runpath=no 17231 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17232 hardcode_into_libs=yes 17233 ;; 17234 17235hpux9* | hpux10* | hpux11*) 17236 # Give a soname corresponding to the major version so that dld.sl refuses to 17237 # link against other versions. 17238 version_type=sunos 17239 need_lib_prefix=no 17240 need_version=no 17241 case $host_cpu in 17242 ia64*) 17243 shrext_cmds='.so' 17244 hardcode_into_libs=yes 17245 dynamic_linker="$host_os dld.so" 17246 shlibpath_var=LD_LIBRARY_PATH 17247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17249 soname_spec='$libname$release$shared_ext$major' 17250 if test 32 = "$HPUX_IA64_MODE"; then 17251 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17252 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17253 else 17254 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17255 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17256 fi 17257 ;; 17258 hppa*64*) 17259 shrext_cmds='.sl' 17260 hardcode_into_libs=yes 17261 dynamic_linker="$host_os dld.sl" 17262 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17265 soname_spec='$libname$release$shared_ext$major' 17266 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17268 ;; 17269 *) 17270 shrext_cmds='.sl' 17271 dynamic_linker="$host_os dld.sl" 17272 shlibpath_var=SHLIB_PATH 17273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17275 soname_spec='$libname$release$shared_ext$major' 17276 ;; 17277 esac 17278 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17279 postinstall_cmds='chmod 555 $lib' 17280 # or fails outright, so override atomically: 17281 install_override_mode=555 17282 ;; 17283 17284interix[3-9]*) 17285 version_type=linux # correct to gnu/linux during the next big refactor 17286 need_lib_prefix=no 17287 need_version=no 17288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17289 soname_spec='$libname$release$shared_ext$major' 17290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17291 shlibpath_var=LD_LIBRARY_PATH 17292 shlibpath_overrides_runpath=no 17293 hardcode_into_libs=yes 17294 ;; 17295 17296irix5* | irix6* | nonstopux*) 17297 case $host_os in 17298 nonstopux*) version_type=nonstopux ;; 17299 *) 17300 if test yes = "$lt_cv_prog_gnu_ld"; then 17301 version_type=linux # correct to gnu/linux during the next big refactor 17302 else 17303 version_type=irix 17304 fi ;; 17305 esac 17306 need_lib_prefix=no 17307 need_version=no 17308 soname_spec='$libname$release$shared_ext$major' 17309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17310 case $host_os in 17311 irix5* | nonstopux*) 17312 libsuff= shlibsuff= 17313 ;; 17314 *) 17315 case $LD in # libtool.m4 will add one of these switches to LD 17316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17317 libsuff= shlibsuff= libmagic=32-bit;; 17318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17319 libsuff=32 shlibsuff=N32 libmagic=N32;; 17320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17321 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17322 *) libsuff= shlibsuff= libmagic=never-match;; 17323 esac 17324 ;; 17325 esac 17326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17327 shlibpath_overrides_runpath=no 17328 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17329 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17330 hardcode_into_libs=yes 17331 ;; 17332 17333# No shared lib support for Linux oldld, aout, or coff. 17334linux*oldld* | linux*aout* | linux*coff*) 17335 dynamic_linker=no 17336 ;; 17337 17338linux*android*) 17339 version_type=none # Android doesn't support versioned libraries. 17340 need_lib_prefix=no 17341 need_version=no 17342 library_names_spec='$libname$release$shared_ext' 17343 soname_spec='$libname$release$shared_ext' 17344 finish_cmds= 17345 shlibpath_var=LD_LIBRARY_PATH 17346 shlibpath_overrides_runpath=yes 17347 17348 # This implies no fast_install, which is unacceptable. 17349 # Some rework will be needed to allow for fast_install 17350 # before this can be enabled. 17351 hardcode_into_libs=yes 17352 17353 dynamic_linker='Android linker' 17354 # Don't embed -rpath directories since the linker doesn't support them. 17355 hardcode_libdir_flag_spec='-L$libdir' 17356 ;; 17357 17358# This must be glibc/ELF. 17359linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17360 version_type=linux # correct to gnu/linux during the next big refactor 17361 need_lib_prefix=no 17362 need_version=no 17363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17364 soname_spec='$libname$release$shared_ext$major' 17365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17366 shlibpath_var=LD_LIBRARY_PATH 17367 shlibpath_overrides_runpath=no 17368 17369 # Some binutils ld are patched to set DT_RUNPATH 17370 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17371 $as_echo_n "(cached) " >&6 17372else 17373 lt_cv_shlibpath_overrides_runpath=no 17374 save_LDFLAGS=$LDFLAGS 17375 save_libdir=$libdir 17376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17379/* end confdefs.h. */ 17380 17381int 17382main () 17383{ 17384 17385 ; 17386 return 0; 17387} 17388_ACEOF 17389if ac_fn_c_try_link "$LINENO"; then : 17390 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17391 lt_cv_shlibpath_overrides_runpath=yes 17392fi 17393fi 17394rm -f core conftest.err conftest.$ac_objext \ 17395 conftest$ac_exeext conftest.$ac_ext 17396 LDFLAGS=$save_LDFLAGS 17397 libdir=$save_libdir 17398 17399fi 17400 17401 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17402 17403 # This implies no fast_install, which is unacceptable. 17404 # Some rework will be needed to allow for fast_install 17405 # before this can be enabled. 17406 hardcode_into_libs=yes 17407 17408 # Add ABI-specific directories to the system library path. 17409 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 17410 17411 # Ideally, we could use ldconfig to report *all* directores which are 17412 # searched for libraries, however this is still not possible. Aside from not 17413 # being certain /sbin/ldconfig is available, command 17414 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17415 # even though it is searched at run-time. Try to do the best guess by 17416 # appending ld.so.conf contents (and includes) to the search path. 17417 if test -f /etc/ld.so.conf; then 17418 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' ' '` 17419 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 17420 fi 17421 17422 # We used to test for /lib/ld.so.1 and disable shared libraries on 17423 # powerpc, because MkLinux only supported shared libraries with the 17424 # GNU dynamic linker. Since this was broken with cross compilers, 17425 # most powerpc-linux boxes support dynamic linking these days and 17426 # people can always --disable-shared, the test was removed, and we 17427 # assume the GNU/Linux dynamic linker is in use. 17428 dynamic_linker='GNU/Linux ld.so' 17429 ;; 17430 17431netbsd*) 17432 version_type=sunos 17433 need_lib_prefix=no 17434 need_version=no 17435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17436 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17438 dynamic_linker='NetBSD (a.out) ld.so' 17439 else 17440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17441 soname_spec='$libname$release$shared_ext$major' 17442 dynamic_linker='NetBSD ld.elf_so' 17443 fi 17444 shlibpath_var=LD_LIBRARY_PATH 17445 shlibpath_overrides_runpath=yes 17446 hardcode_into_libs=yes 17447 ;; 17448 17449newsos6) 17450 version_type=linux # correct to gnu/linux during the next big refactor 17451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17452 shlibpath_var=LD_LIBRARY_PATH 17453 shlibpath_overrides_runpath=yes 17454 ;; 17455 17456*nto* | *qnx*) 17457 version_type=qnx 17458 need_lib_prefix=no 17459 need_version=no 17460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17461 soname_spec='$libname$release$shared_ext$major' 17462 shlibpath_var=LD_LIBRARY_PATH 17463 shlibpath_overrides_runpath=no 17464 hardcode_into_libs=yes 17465 dynamic_linker='ldqnx.so' 17466 ;; 17467 17468openbsd* | bitrig*) 17469 version_type=sunos 17470 sys_lib_dlsearch_path_spec=/usr/lib 17471 need_lib_prefix=no 17472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17473 need_version=no 17474 else 17475 need_version=yes 17476 fi 17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17479 shlibpath_var=LD_LIBRARY_PATH 17480 shlibpath_overrides_runpath=yes 17481 ;; 17482 17483os2*) 17484 libname_spec='$name' 17485 version_type=windows 17486 shrext_cmds=.dll 17487 need_version=no 17488 need_lib_prefix=no 17489 # OS/2 can only load a DLL with a base name of 8 characters or less. 17490 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17491 v=$($ECHO $release$versuffix | tr -d .-); 17492 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17493 $ECHO $n$v`$shared_ext' 17494 library_names_spec='${libname}_dll.$libext' 17495 dynamic_linker='OS/2 ld.exe' 17496 shlibpath_var=BEGINLIBPATH 17497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17499 postinstall_cmds='base_file=`basename \$file`~ 17500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17501 dldir=$destdir/`dirname \$dlpath`~ 17502 test -d \$dldir || mkdir -p \$dldir~ 17503 $install_prog $dir/$dlname \$dldir/$dlname~ 17504 chmod a+x \$dldir/$dlname~ 17505 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17506 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17507 fi' 17508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17509 dlpath=$dir/\$dldll~ 17510 $RM \$dlpath' 17511 ;; 17512 17513osf3* | osf4* | osf5*) 17514 version_type=osf 17515 need_lib_prefix=no 17516 need_version=no 17517 soname_spec='$libname$release$shared_ext$major' 17518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17519 shlibpath_var=LD_LIBRARY_PATH 17520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17522 ;; 17523 17524rdos*) 17525 dynamic_linker=no 17526 ;; 17527 17528solaris*) 17529 version_type=linux # correct to gnu/linux during the next big refactor 17530 need_lib_prefix=no 17531 need_version=no 17532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17533 soname_spec='$libname$release$shared_ext$major' 17534 shlibpath_var=LD_LIBRARY_PATH 17535 shlibpath_overrides_runpath=yes 17536 hardcode_into_libs=yes 17537 # ldd complains unless libraries are executable 17538 postinstall_cmds='chmod +x $lib' 17539 ;; 17540 17541sunos4*) 17542 version_type=sunos 17543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17545 shlibpath_var=LD_LIBRARY_PATH 17546 shlibpath_overrides_runpath=yes 17547 if test yes = "$with_gnu_ld"; then 17548 need_lib_prefix=no 17549 fi 17550 need_version=yes 17551 ;; 17552 17553sysv4 | sysv4.3*) 17554 version_type=linux # correct to gnu/linux during the next big refactor 17555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17556 soname_spec='$libname$release$shared_ext$major' 17557 shlibpath_var=LD_LIBRARY_PATH 17558 case $host_vendor in 17559 sni) 17560 shlibpath_overrides_runpath=no 17561 need_lib_prefix=no 17562 runpath_var=LD_RUN_PATH 17563 ;; 17564 siemens) 17565 need_lib_prefix=no 17566 ;; 17567 motorola) 17568 need_lib_prefix=no 17569 need_version=no 17570 shlibpath_overrides_runpath=no 17571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17572 ;; 17573 esac 17574 ;; 17575 17576sysv4*MP*) 17577 if test -d /usr/nec; then 17578 version_type=linux # correct to gnu/linux during the next big refactor 17579 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17580 soname_spec='$libname$shared_ext.$major' 17581 shlibpath_var=LD_LIBRARY_PATH 17582 fi 17583 ;; 17584 17585sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17586 version_type=sco 17587 need_lib_prefix=no 17588 need_version=no 17589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17590 soname_spec='$libname$release$shared_ext$major' 17591 shlibpath_var=LD_LIBRARY_PATH 17592 shlibpath_overrides_runpath=yes 17593 hardcode_into_libs=yes 17594 if test yes = "$with_gnu_ld"; then 17595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17596 else 17597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17598 case $host_os in 17599 sco3.2v5*) 17600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17601 ;; 17602 esac 17603 fi 17604 sys_lib_dlsearch_path_spec='/usr/lib' 17605 ;; 17606 17607tpf*) 17608 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17609 version_type=linux # correct to gnu/linux during the next big refactor 17610 need_lib_prefix=no 17611 need_version=no 17612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17613 shlibpath_var=LD_LIBRARY_PATH 17614 shlibpath_overrides_runpath=no 17615 hardcode_into_libs=yes 17616 ;; 17617 17618uts4*) 17619 version_type=linux # correct to gnu/linux during the next big refactor 17620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17621 soname_spec='$libname$release$shared_ext$major' 17622 shlibpath_var=LD_LIBRARY_PATH 17623 ;; 17624 17625*) 17626 dynamic_linker=no 17627 ;; 17628esac 17629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17630$as_echo "$dynamic_linker" >&6; } 17631test no = "$dynamic_linker" && can_build_shared=no 17632 17633variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17634if test yes = "$GCC"; then 17635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17636fi 17637 17638if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17639 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17640fi 17641 17642if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17643 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17644fi 17645 17646# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17647configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17648 17649# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17650func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17651 17652# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17653configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17752$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17753hardcode_action= 17754if test -n "$hardcode_libdir_flag_spec" || 17755 test -n "$runpath_var" || 17756 test yes = "$hardcode_automatic"; then 17757 17758 # We can hardcode non-existent directories. 17759 if test no != "$hardcode_direct" && 17760 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17761 # have to relink, otherwise we might link with an installed library 17762 # when we should be linking with a yet-to-be-installed one 17763 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17764 test no != "$hardcode_minus_L"; then 17765 # Linking always hardcodes the temporary library directory. 17766 hardcode_action=relink 17767 else 17768 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17769 hardcode_action=immediate 17770 fi 17771else 17772 # We cannot hardcode anything, or else we can only hardcode existing 17773 # directories. 17774 hardcode_action=unsupported 17775fi 17776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17777$as_echo "$hardcode_action" >&6; } 17778 17779if test relink = "$hardcode_action" || 17780 test yes = "$inherit_rpath"; then 17781 # Fast installation is not supported 17782 enable_fast_install=no 17783elif test yes = "$shlibpath_overrides_runpath" || 17784 test no = "$enable_shared"; then 17785 # Fast installation is not necessary 17786 enable_fast_install=needless 17787fi 17788 17789 17790 17791 17792 17793 17794 if test yes != "$enable_dlopen"; then 17795 enable_dlopen=unknown 17796 enable_dlopen_self=unknown 17797 enable_dlopen_self_static=unknown 17798else 17799 lt_cv_dlopen=no 17800 lt_cv_dlopen_libs= 17801 17802 case $host_os in 17803 beos*) 17804 lt_cv_dlopen=load_add_on 17805 lt_cv_dlopen_libs= 17806 lt_cv_dlopen_self=yes 17807 ;; 17808 17809 mingw* | pw32* | cegcc*) 17810 lt_cv_dlopen=LoadLibrary 17811 lt_cv_dlopen_libs= 17812 ;; 17813 17814 cygwin*) 17815 lt_cv_dlopen=dlopen 17816 lt_cv_dlopen_libs= 17817 ;; 17818 17819 darwin*) 17820 # if libdl is installed we need to link against it 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17822$as_echo_n "checking for dlopen in -ldl... " >&6; } 17823if ${ac_cv_lib_dl_dlopen+:} false; then : 17824 $as_echo_n "(cached) " >&6 17825else 17826 ac_check_lib_save_LIBS=$LIBS 17827LIBS="-ldl $LIBS" 17828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17829/* end confdefs.h. */ 17830 17831/* Override any GCC internal prototype to avoid an error. 17832 Use char because int might match the return type of a GCC 17833 builtin and then its argument prototype would still apply. */ 17834#ifdef __cplusplus 17835extern "C" 17836#endif 17837char dlopen (); 17838int 17839main () 17840{ 17841return dlopen (); 17842 ; 17843 return 0; 17844} 17845_ACEOF 17846if ac_fn_c_try_link "$LINENO"; then : 17847 ac_cv_lib_dl_dlopen=yes 17848else 17849 ac_cv_lib_dl_dlopen=no 17850fi 17851rm -f core conftest.err conftest.$ac_objext \ 17852 conftest$ac_exeext conftest.$ac_ext 17853LIBS=$ac_check_lib_save_LIBS 17854fi 17855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17856$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17857if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17858 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17859else 17860 17861 lt_cv_dlopen=dyld 17862 lt_cv_dlopen_libs= 17863 lt_cv_dlopen_self=yes 17864 17865fi 17866 17867 ;; 17868 17869 tpf*) 17870 # Don't try to run any link tests for TPF. We know it's impossible 17871 # because TPF is a cross-compiler, and we know how we open DSOs. 17872 lt_cv_dlopen=dlopen 17873 lt_cv_dlopen_libs= 17874 lt_cv_dlopen_self=no 17875 ;; 17876 17877 *) 17878 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17879if test "x$ac_cv_func_shl_load" = xyes; then : 17880 lt_cv_dlopen=shl_load 17881else 17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17883$as_echo_n "checking for shl_load in -ldld... " >&6; } 17884if ${ac_cv_lib_dld_shl_load+:} false; then : 17885 $as_echo_n "(cached) " >&6 17886else 17887 ac_check_lib_save_LIBS=$LIBS 17888LIBS="-ldld $LIBS" 17889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17890/* end confdefs.h. */ 17891 17892/* Override any GCC internal prototype to avoid an error. 17893 Use char because int might match the return type of a GCC 17894 builtin and then its argument prototype would still apply. */ 17895#ifdef __cplusplus 17896extern "C" 17897#endif 17898char shl_load (); 17899int 17900main () 17901{ 17902return shl_load (); 17903 ; 17904 return 0; 17905} 17906_ACEOF 17907if ac_fn_c_try_link "$LINENO"; then : 17908 ac_cv_lib_dld_shl_load=yes 17909else 17910 ac_cv_lib_dld_shl_load=no 17911fi 17912rm -f core conftest.err conftest.$ac_objext \ 17913 conftest$ac_exeext conftest.$ac_ext 17914LIBS=$ac_check_lib_save_LIBS 17915fi 17916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17917$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17918if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17919 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17920else 17921 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17922if test "x$ac_cv_func_dlopen" = xyes; then : 17923 lt_cv_dlopen=dlopen 17924else 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17926$as_echo_n "checking for dlopen in -ldl... " >&6; } 17927if ${ac_cv_lib_dl_dlopen+:} false; then : 17928 $as_echo_n "(cached) " >&6 17929else 17930 ac_check_lib_save_LIBS=$LIBS 17931LIBS="-ldl $LIBS" 17932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17933/* end confdefs.h. */ 17934 17935/* Override any GCC internal prototype to avoid an error. 17936 Use char because int might match the return type of a GCC 17937 builtin and then its argument prototype would still apply. */ 17938#ifdef __cplusplus 17939extern "C" 17940#endif 17941char dlopen (); 17942int 17943main () 17944{ 17945return dlopen (); 17946 ; 17947 return 0; 17948} 17949_ACEOF 17950if ac_fn_c_try_link "$LINENO"; then : 17951 ac_cv_lib_dl_dlopen=yes 17952else 17953 ac_cv_lib_dl_dlopen=no 17954fi 17955rm -f core conftest.err conftest.$ac_objext \ 17956 conftest$ac_exeext conftest.$ac_ext 17957LIBS=$ac_check_lib_save_LIBS 17958fi 17959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17960$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17961if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17962 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17963else 17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17965$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17966if ${ac_cv_lib_svld_dlopen+:} false; then : 17967 $as_echo_n "(cached) " >&6 17968else 17969 ac_check_lib_save_LIBS=$LIBS 17970LIBS="-lsvld $LIBS" 17971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17972/* end confdefs.h. */ 17973 17974/* Override any GCC internal prototype to avoid an error. 17975 Use char because int might match the return type of a GCC 17976 builtin and then its argument prototype would still apply. */ 17977#ifdef __cplusplus 17978extern "C" 17979#endif 17980char dlopen (); 17981int 17982main () 17983{ 17984return dlopen (); 17985 ; 17986 return 0; 17987} 17988_ACEOF 17989if ac_fn_c_try_link "$LINENO"; then : 17990 ac_cv_lib_svld_dlopen=yes 17991else 17992 ac_cv_lib_svld_dlopen=no 17993fi 17994rm -f core conftest.err conftest.$ac_objext \ 17995 conftest$ac_exeext conftest.$ac_ext 17996LIBS=$ac_check_lib_save_LIBS 17997fi 17998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17999$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18000if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18001 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18002else 18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18004$as_echo_n "checking for dld_link in -ldld... " >&6; } 18005if ${ac_cv_lib_dld_dld_link+:} false; then : 18006 $as_echo_n "(cached) " >&6 18007else 18008 ac_check_lib_save_LIBS=$LIBS 18009LIBS="-ldld $LIBS" 18010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18011/* end confdefs.h. */ 18012 18013/* Override any GCC internal prototype to avoid an error. 18014 Use char because int might match the return type of a GCC 18015 builtin and then its argument prototype would still apply. */ 18016#ifdef __cplusplus 18017extern "C" 18018#endif 18019char dld_link (); 18020int 18021main () 18022{ 18023return dld_link (); 18024 ; 18025 return 0; 18026} 18027_ACEOF 18028if ac_fn_c_try_link "$LINENO"; then : 18029 ac_cv_lib_dld_dld_link=yes 18030else 18031 ac_cv_lib_dld_dld_link=no 18032fi 18033rm -f core conftest.err conftest.$ac_objext \ 18034 conftest$ac_exeext conftest.$ac_ext 18035LIBS=$ac_check_lib_save_LIBS 18036fi 18037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18038$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18039if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18040 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18041fi 18042 18043 18044fi 18045 18046 18047fi 18048 18049 18050fi 18051 18052 18053fi 18054 18055 18056fi 18057 18058 ;; 18059 esac 18060 18061 if test no = "$lt_cv_dlopen"; then 18062 enable_dlopen=no 18063 else 18064 enable_dlopen=yes 18065 fi 18066 18067 case $lt_cv_dlopen in 18068 dlopen) 18069 save_CPPFLAGS=$CPPFLAGS 18070 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18071 18072 save_LDFLAGS=$LDFLAGS 18073 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18074 18075 save_LIBS=$LIBS 18076 LIBS="$lt_cv_dlopen_libs $LIBS" 18077 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18079$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18080if ${lt_cv_dlopen_self+:} false; then : 18081 $as_echo_n "(cached) " >&6 18082else 18083 if test yes = "$cross_compiling"; then : 18084 lt_cv_dlopen_self=cross 18085else 18086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18087 lt_status=$lt_dlunknown 18088 cat > conftest.$ac_ext <<_LT_EOF 18089#line $LINENO "configure" 18090#include "confdefs.h" 18091 18092#if HAVE_DLFCN_H 18093#include <dlfcn.h> 18094#endif 18095 18096#include <stdio.h> 18097 18098#ifdef RTLD_GLOBAL 18099# define LT_DLGLOBAL RTLD_GLOBAL 18100#else 18101# ifdef DL_GLOBAL 18102# define LT_DLGLOBAL DL_GLOBAL 18103# else 18104# define LT_DLGLOBAL 0 18105# endif 18106#endif 18107 18108/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18109 find out it does not work in some platform. */ 18110#ifndef LT_DLLAZY_OR_NOW 18111# ifdef RTLD_LAZY 18112# define LT_DLLAZY_OR_NOW RTLD_LAZY 18113# else 18114# ifdef DL_LAZY 18115# define LT_DLLAZY_OR_NOW DL_LAZY 18116# else 18117# ifdef RTLD_NOW 18118# define LT_DLLAZY_OR_NOW RTLD_NOW 18119# else 18120# ifdef DL_NOW 18121# define LT_DLLAZY_OR_NOW DL_NOW 18122# else 18123# define LT_DLLAZY_OR_NOW 0 18124# endif 18125# endif 18126# endif 18127# endif 18128#endif 18129 18130/* When -fvisibility=hidden is used, assume the code has been annotated 18131 correspondingly for the symbols needed. */ 18132#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18133int fnord () __attribute__((visibility("default"))); 18134#endif 18135 18136int fnord () { return 42; } 18137int main () 18138{ 18139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18140 int status = $lt_dlunknown; 18141 18142 if (self) 18143 { 18144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18145 else 18146 { 18147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18148 else puts (dlerror ()); 18149 } 18150 /* dlclose (self); */ 18151 } 18152 else 18153 puts (dlerror ()); 18154 18155 return status; 18156} 18157_LT_EOF 18158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18159 (eval $ac_link) 2>&5 18160 ac_status=$? 18161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18162 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18163 (./conftest; exit; ) >&5 2>/dev/null 18164 lt_status=$? 18165 case x$lt_status in 18166 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18167 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18168 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18169 esac 18170 else : 18171 # compilation failed 18172 lt_cv_dlopen_self=no 18173 fi 18174fi 18175rm -fr conftest* 18176 18177 18178fi 18179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18180$as_echo "$lt_cv_dlopen_self" >&6; } 18181 18182 if test yes = "$lt_cv_dlopen_self"; then 18183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18185$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18186if ${lt_cv_dlopen_self_static+:} false; then : 18187 $as_echo_n "(cached) " >&6 18188else 18189 if test yes = "$cross_compiling"; then : 18190 lt_cv_dlopen_self_static=cross 18191else 18192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18193 lt_status=$lt_dlunknown 18194 cat > conftest.$ac_ext <<_LT_EOF 18195#line $LINENO "configure" 18196#include "confdefs.h" 18197 18198#if HAVE_DLFCN_H 18199#include <dlfcn.h> 18200#endif 18201 18202#include <stdio.h> 18203 18204#ifdef RTLD_GLOBAL 18205# define LT_DLGLOBAL RTLD_GLOBAL 18206#else 18207# ifdef DL_GLOBAL 18208# define LT_DLGLOBAL DL_GLOBAL 18209# else 18210# define LT_DLGLOBAL 0 18211# endif 18212#endif 18213 18214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18215 find out it does not work in some platform. */ 18216#ifndef LT_DLLAZY_OR_NOW 18217# ifdef RTLD_LAZY 18218# define LT_DLLAZY_OR_NOW RTLD_LAZY 18219# else 18220# ifdef DL_LAZY 18221# define LT_DLLAZY_OR_NOW DL_LAZY 18222# else 18223# ifdef RTLD_NOW 18224# define LT_DLLAZY_OR_NOW RTLD_NOW 18225# else 18226# ifdef DL_NOW 18227# define LT_DLLAZY_OR_NOW DL_NOW 18228# else 18229# define LT_DLLAZY_OR_NOW 0 18230# endif 18231# endif 18232# endif 18233# endif 18234#endif 18235 18236/* When -fvisibility=hidden is used, assume the code has been annotated 18237 correspondingly for the symbols needed. */ 18238#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18239int fnord () __attribute__((visibility("default"))); 18240#endif 18241 18242int fnord () { return 42; } 18243int main () 18244{ 18245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18246 int status = $lt_dlunknown; 18247 18248 if (self) 18249 { 18250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18251 else 18252 { 18253 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18254 else puts (dlerror ()); 18255 } 18256 /* dlclose (self); */ 18257 } 18258 else 18259 puts (dlerror ()); 18260 18261 return status; 18262} 18263_LT_EOF 18264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18265 (eval $ac_link) 2>&5 18266 ac_status=$? 18267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18268 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18269 (./conftest; exit; ) >&5 2>/dev/null 18270 lt_status=$? 18271 case x$lt_status in 18272 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18273 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18274 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18275 esac 18276 else : 18277 # compilation failed 18278 lt_cv_dlopen_self_static=no 18279 fi 18280fi 18281rm -fr conftest* 18282 18283 18284fi 18285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18286$as_echo "$lt_cv_dlopen_self_static" >&6; } 18287 fi 18288 18289 CPPFLAGS=$save_CPPFLAGS 18290 LDFLAGS=$save_LDFLAGS 18291 LIBS=$save_LIBS 18292 ;; 18293 esac 18294 18295 case $lt_cv_dlopen_self in 18296 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18297 *) enable_dlopen_self=unknown ;; 18298 esac 18299 18300 case $lt_cv_dlopen_self_static in 18301 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18302 *) enable_dlopen_self_static=unknown ;; 18303 esac 18304fi 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322striplib= 18323old_striplib= 18324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18325$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18326if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18327 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18328 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18330$as_echo "yes" >&6; } 18331else 18332# FIXME - insert some real tests, host_os isn't really good enough 18333 case $host_os in 18334 darwin*) 18335 if test -n "$STRIP"; then 18336 striplib="$STRIP -x" 18337 old_striplib="$STRIP -S" 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18339$as_echo "yes" >&6; } 18340 else 18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18342$as_echo "no" >&6; } 18343 fi 18344 ;; 18345 *) 18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18347$as_echo "no" >&6; } 18348 ;; 18349 esac 18350fi 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 # Report what library types will actually be built 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18365$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18367$as_echo "$can_build_shared" >&6; } 18368 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18370$as_echo_n "checking whether to build shared libraries... " >&6; } 18371 test no = "$can_build_shared" && enable_shared=no 18372 18373 # On AIX, shared libraries and static libraries use the same namespace, and 18374 # are all built from PIC. 18375 case $host_os in 18376 aix3*) 18377 test yes = "$enable_shared" && enable_static=no 18378 if test -n "$RANLIB"; then 18379 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18380 postinstall_cmds='$RANLIB $lib' 18381 fi 18382 ;; 18383 18384 aix[4-9]*) 18385 if test ia64 != "$host_cpu"; then 18386 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18387 yes,aix,yes) ;; # shared object as lib.so file only 18388 yes,svr4,*) ;; # shared object as lib.so archive member only 18389 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18390 esac 18391 fi 18392 ;; 18393 esac 18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18395$as_echo "$enable_shared" >&6; } 18396 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18398$as_echo_n "checking whether to build static libraries... " >&6; } 18399 # Make sure either enable_shared or enable_static is yes. 18400 test yes = "$enable_shared" || enable_static=yes 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18402$as_echo "$enable_static" >&6; } 18403 18404 18405 18406 18407fi 18408ac_ext=c 18409ac_cpp='$CPP $CPPFLAGS' 18410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18412ac_compiler_gnu=$ac_cv_c_compiler_gnu 18413 18414CC=$lt_save_CC 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 ac_config_commands="$ac_config_commands libtool" 18431 18432 18433 18434 18435# Only expand once: 18436 18437 18438ac_ext=c 18439ac_cpp='$CPP $CPPFLAGS' 18440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18442ac_compiler_gnu=$ac_cv_c_compiler_gnu 18443if test -n "$ac_tool_prefix"; then 18444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18445set dummy ${ac_tool_prefix}gcc; ac_word=$2 18446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18447$as_echo_n "checking for $ac_word... " >&6; } 18448if ${ac_cv_prog_CC+:} false; then : 18449 $as_echo_n "(cached) " >&6 18450else 18451 if test -n "$CC"; then 18452 ac_cv_prog_CC="$CC" # Let the user override the test. 18453else 18454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18455for as_dir in $PATH 18456do 18457 IFS=$as_save_IFS 18458 test -z "$as_dir" && as_dir=. 18459 for ac_exec_ext in '' $ac_executable_extensions; do 18460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18461 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18463 break 2 18464 fi 18465done 18466 done 18467IFS=$as_save_IFS 18468 18469fi 18470fi 18471CC=$ac_cv_prog_CC 18472if test -n "$CC"; then 18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18474$as_echo "$CC" >&6; } 18475else 18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18477$as_echo "no" >&6; } 18478fi 18479 18480 18481fi 18482if test -z "$ac_cv_prog_CC"; then 18483 ac_ct_CC=$CC 18484 # Extract the first word of "gcc", so it can be a program name with args. 18485set dummy gcc; ac_word=$2 18486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18487$as_echo_n "checking for $ac_word... " >&6; } 18488if ${ac_cv_prog_ac_ct_CC+:} false; then : 18489 $as_echo_n "(cached) " >&6 18490else 18491 if test -n "$ac_ct_CC"; then 18492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18493else 18494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18495for as_dir in $PATH 18496do 18497 IFS=$as_save_IFS 18498 test -z "$as_dir" && as_dir=. 18499 for ac_exec_ext in '' $ac_executable_extensions; do 18500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18501 ac_cv_prog_ac_ct_CC="gcc" 18502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18503 break 2 18504 fi 18505done 18506 done 18507IFS=$as_save_IFS 18508 18509fi 18510fi 18511ac_ct_CC=$ac_cv_prog_ac_ct_CC 18512if test -n "$ac_ct_CC"; then 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 18514$as_echo "$ac_ct_CC" >&6; } 18515else 18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18517$as_echo "no" >&6; } 18518fi 18519 18520 if test "x$ac_ct_CC" = x; then 18521 CC="" 18522 else 18523 case $cross_compiling:$ac_tool_warned in 18524yes:) 18525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18527ac_tool_warned=yes ;; 18528esac 18529 CC=$ac_ct_CC 18530 fi 18531else 18532 CC="$ac_cv_prog_CC" 18533fi 18534 18535if test -z "$CC"; then 18536 if test -n "$ac_tool_prefix"; then 18537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18538set dummy ${ac_tool_prefix}cc; ac_word=$2 18539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18540$as_echo_n "checking for $ac_word... " >&6; } 18541if ${ac_cv_prog_CC+:} false; then : 18542 $as_echo_n "(cached) " >&6 18543else 18544 if test -n "$CC"; then 18545 ac_cv_prog_CC="$CC" # Let the user override the test. 18546else 18547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18548for as_dir in $PATH 18549do 18550 IFS=$as_save_IFS 18551 test -z "$as_dir" && as_dir=. 18552 for ac_exec_ext in '' $ac_executable_extensions; do 18553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18554 ac_cv_prog_CC="${ac_tool_prefix}cc" 18555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18556 break 2 18557 fi 18558done 18559 done 18560IFS=$as_save_IFS 18561 18562fi 18563fi 18564CC=$ac_cv_prog_CC 18565if test -n "$CC"; then 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18567$as_echo "$CC" >&6; } 18568else 18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18570$as_echo "no" >&6; } 18571fi 18572 18573 18574 fi 18575fi 18576if test -z "$CC"; then 18577 # Extract the first word of "cc", so it can be a program name with args. 18578set dummy cc; ac_word=$2 18579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18580$as_echo_n "checking for $ac_word... " >&6; } 18581if ${ac_cv_prog_CC+:} false; then : 18582 $as_echo_n "(cached) " >&6 18583else 18584 if test -n "$CC"; then 18585 ac_cv_prog_CC="$CC" # Let the user override the test. 18586else 18587 ac_prog_rejected=no 18588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18589for as_dir in $PATH 18590do 18591 IFS=$as_save_IFS 18592 test -z "$as_dir" && as_dir=. 18593 for ac_exec_ext in '' $ac_executable_extensions; do 18594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18596 ac_prog_rejected=yes 18597 continue 18598 fi 18599 ac_cv_prog_CC="cc" 18600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18601 break 2 18602 fi 18603done 18604 done 18605IFS=$as_save_IFS 18606 18607if test $ac_prog_rejected = yes; then 18608 # We found a bogon in the path, so make sure we never use it. 18609 set dummy $ac_cv_prog_CC 18610 shift 18611 if test $# != 0; then 18612 # We chose a different compiler from the bogus one. 18613 # However, it has the same basename, so the bogon will be chosen 18614 # first if we set CC to just the basename; use the full file name. 18615 shift 18616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18617 fi 18618fi 18619fi 18620fi 18621CC=$ac_cv_prog_CC 18622if test -n "$CC"; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18624$as_echo "$CC" >&6; } 18625else 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18627$as_echo "no" >&6; } 18628fi 18629 18630 18631fi 18632if test -z "$CC"; then 18633 if test -n "$ac_tool_prefix"; then 18634 for ac_prog in cl.exe 18635 do 18636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18637set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18639$as_echo_n "checking for $ac_word... " >&6; } 18640if ${ac_cv_prog_CC+:} false; then : 18641 $as_echo_n "(cached) " >&6 18642else 18643 if test -n "$CC"; then 18644 ac_cv_prog_CC="$CC" # Let the user override the test. 18645else 18646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18647for as_dir in $PATH 18648do 18649 IFS=$as_save_IFS 18650 test -z "$as_dir" && as_dir=. 18651 for ac_exec_ext in '' $ac_executable_extensions; do 18652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18655 break 2 18656 fi 18657done 18658 done 18659IFS=$as_save_IFS 18660 18661fi 18662fi 18663CC=$ac_cv_prog_CC 18664if test -n "$CC"; then 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18666$as_echo "$CC" >&6; } 18667else 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18669$as_echo "no" >&6; } 18670fi 18671 18672 18673 test -n "$CC" && break 18674 done 18675fi 18676if test -z "$CC"; then 18677 ac_ct_CC=$CC 18678 for ac_prog in cl.exe 18679do 18680 # Extract the first word of "$ac_prog", so it can be a program name with args. 18681set dummy $ac_prog; ac_word=$2 18682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18683$as_echo_n "checking for $ac_word... " >&6; } 18684if ${ac_cv_prog_ac_ct_CC+:} false; then : 18685 $as_echo_n "(cached) " >&6 18686else 18687 if test -n "$ac_ct_CC"; then 18688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18689else 18690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18691for as_dir in $PATH 18692do 18693 IFS=$as_save_IFS 18694 test -z "$as_dir" && as_dir=. 18695 for ac_exec_ext in '' $ac_executable_extensions; do 18696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18697 ac_cv_prog_ac_ct_CC="$ac_prog" 18698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18699 break 2 18700 fi 18701done 18702 done 18703IFS=$as_save_IFS 18704 18705fi 18706fi 18707ac_ct_CC=$ac_cv_prog_ac_ct_CC 18708if test -n "$ac_ct_CC"; then 18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 18710$as_echo "$ac_ct_CC" >&6; } 18711else 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18713$as_echo "no" >&6; } 18714fi 18715 18716 18717 test -n "$ac_ct_CC" && break 18718done 18719 18720 if test "x$ac_ct_CC" = x; then 18721 CC="" 18722 else 18723 case $cross_compiling:$ac_tool_warned in 18724yes:) 18725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18727ac_tool_warned=yes ;; 18728esac 18729 CC=$ac_ct_CC 18730 fi 18731fi 18732 18733fi 18734 18735 18736test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18738as_fn_error $? "no acceptable C compiler found in \$PATH 18739See \`config.log' for more details" "$LINENO" 5; } 18740 18741# Provide some information about the compiler. 18742$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 18743set X $ac_compile 18744ac_compiler=$2 18745for ac_option in --version -v -V -qversion; do 18746 { { ac_try="$ac_compiler $ac_option >&5" 18747case "(($ac_try" in 18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18749 *) ac_try_echo=$ac_try;; 18750esac 18751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18752$as_echo "$ac_try_echo"; } >&5 18753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 18754 ac_status=$? 18755 if test -s conftest.err; then 18756 sed '10a\ 18757... rest of stderr output deleted ... 18758 10q' conftest.err >conftest.er1 18759 cat conftest.er1 >&5 18760 fi 18761 rm -f conftest.er1 conftest.err 18762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18763 test $ac_status = 0; } 18764done 18765 18766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 18767$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 18768if ${ac_cv_c_compiler_gnu+:} false; then : 18769 $as_echo_n "(cached) " >&6 18770else 18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18772/* end confdefs.h. */ 18773 18774int 18775main () 18776{ 18777#ifndef __GNUC__ 18778 choke me 18779#endif 18780 18781 ; 18782 return 0; 18783} 18784_ACEOF 18785if ac_fn_c_try_compile "$LINENO"; then : 18786 ac_compiler_gnu=yes 18787else 18788 ac_compiler_gnu=no 18789fi 18790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18791ac_cv_c_compiler_gnu=$ac_compiler_gnu 18792 18793fi 18794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 18795$as_echo "$ac_cv_c_compiler_gnu" >&6; } 18796if test $ac_compiler_gnu = yes; then 18797 GCC=yes 18798else 18799 GCC= 18800fi 18801ac_test_CFLAGS=${CFLAGS+set} 18802ac_save_CFLAGS=$CFLAGS 18803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 18804$as_echo_n "checking whether $CC accepts -g... " >&6; } 18805if ${ac_cv_prog_cc_g+:} false; then : 18806 $as_echo_n "(cached) " >&6 18807else 18808 ac_save_c_werror_flag=$ac_c_werror_flag 18809 ac_c_werror_flag=yes 18810 ac_cv_prog_cc_g=no 18811 CFLAGS="-g" 18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18813/* end confdefs.h. */ 18814 18815int 18816main () 18817{ 18818 18819 ; 18820 return 0; 18821} 18822_ACEOF 18823if ac_fn_c_try_compile "$LINENO"; then : 18824 ac_cv_prog_cc_g=yes 18825else 18826 CFLAGS="" 18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18828/* end confdefs.h. */ 18829 18830int 18831main () 18832{ 18833 18834 ; 18835 return 0; 18836} 18837_ACEOF 18838if ac_fn_c_try_compile "$LINENO"; then : 18839 18840else 18841 ac_c_werror_flag=$ac_save_c_werror_flag 18842 CFLAGS="-g" 18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18844/* end confdefs.h. */ 18845 18846int 18847main () 18848{ 18849 18850 ; 18851 return 0; 18852} 18853_ACEOF 18854if ac_fn_c_try_compile "$LINENO"; then : 18855 ac_cv_prog_cc_g=yes 18856fi 18857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18858fi 18859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18860fi 18861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18862 ac_c_werror_flag=$ac_save_c_werror_flag 18863fi 18864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 18865$as_echo "$ac_cv_prog_cc_g" >&6; } 18866if test "$ac_test_CFLAGS" = set; then 18867 CFLAGS=$ac_save_CFLAGS 18868elif test $ac_cv_prog_cc_g = yes; then 18869 if test "$GCC" = yes; then 18870 CFLAGS="-g -O2" 18871 else 18872 CFLAGS="-g" 18873 fi 18874else 18875 if test "$GCC" = yes; then 18876 CFLAGS="-O2" 18877 else 18878 CFLAGS= 18879 fi 18880fi 18881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 18882$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 18883if ${ac_cv_prog_cc_c89+:} false; then : 18884 $as_echo_n "(cached) " >&6 18885else 18886 ac_cv_prog_cc_c89=no 18887ac_save_CC=$CC 18888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18889/* end confdefs.h. */ 18890#include <stdarg.h> 18891#include <stdio.h> 18892struct stat; 18893/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 18894struct buf { int x; }; 18895FILE * (*rcsopen) (struct buf *, struct stat *, int); 18896static char *e (p, i) 18897 char **p; 18898 int i; 18899{ 18900 return p[i]; 18901} 18902static char *f (char * (*g) (char **, int), char **p, ...) 18903{ 18904 char *s; 18905 va_list v; 18906 va_start (v,p); 18907 s = g (p, va_arg (v,int)); 18908 va_end (v); 18909 return s; 18910} 18911 18912/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 18913 function prototypes and stuff, but not '\xHH' hex character constants. 18914 These don't provoke an error unfortunately, instead are silently treated 18915 as 'x'. The following induces an error, until -std is added to get 18916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 18917 array size at least. It's necessary to write '\x00'==0 to get something 18918 that's true only with -std. */ 18919int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 18920 18921/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 18922 inside strings and character constants. */ 18923#define FOO(x) 'x' 18924int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 18925 18926int test (int i, double x); 18927struct s1 {int (*f) (int a);}; 18928struct s2 {int (*f) (double a);}; 18929int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 18930int argc; 18931char **argv; 18932int 18933main () 18934{ 18935return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 18936 ; 18937 return 0; 18938} 18939_ACEOF 18940for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 18941 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 18942do 18943 CC="$ac_save_CC $ac_arg" 18944 if ac_fn_c_try_compile "$LINENO"; then : 18945 ac_cv_prog_cc_c89=$ac_arg 18946fi 18947rm -f core conftest.err conftest.$ac_objext 18948 test "x$ac_cv_prog_cc_c89" != "xno" && break 18949done 18950rm -f conftest.$ac_ext 18951CC=$ac_save_CC 18952 18953fi 18954# AC_CACHE_VAL 18955case "x$ac_cv_prog_cc_c89" in 18956 x) 18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 18958$as_echo "none needed" >&6; } ;; 18959 xno) 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 18961$as_echo "unsupported" >&6; } ;; 18962 *) 18963 CC="$CC $ac_cv_prog_cc_c89" 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 18965$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 18966esac 18967if test "x$ac_cv_prog_cc_c89" != xno; then : 18968 18969fi 18970 18971ac_ext=c 18972ac_cpp='$CPP $CPPFLAGS' 18973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18975ac_compiler_gnu=$ac_cv_c_compiler_gnu 18976 18977ac_ext=c 18978ac_cpp='$CPP $CPPFLAGS' 18979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18981ac_compiler_gnu=$ac_cv_c_compiler_gnu 18982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 18983$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 18984if ${am_cv_prog_cc_c_o+:} false; then : 18985 $as_echo_n "(cached) " >&6 18986else 18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18988/* end confdefs.h. */ 18989 18990int 18991main () 18992{ 18993 18994 ; 18995 return 0; 18996} 18997_ACEOF 18998 # Make sure it works both with $CC and with simple cc. 18999 # Following AC_PROG_CC_C_O, we do the test twice because some 19000 # compilers refuse to overwrite an existing .o file with -o, 19001 # though they will create one. 19002 am_cv_prog_cc_c_o=yes 19003 for am_i in 1 2; do 19004 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 19005 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 19006 ac_status=$? 19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19008 (exit $ac_status); } \ 19009 && test -f conftest2.$ac_objext; then 19010 : OK 19011 else 19012 am_cv_prog_cc_c_o=no 19013 break 19014 fi 19015 done 19016 rm -f core conftest* 19017 unset am_i 19018fi 19019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 19020$as_echo "$am_cv_prog_cc_c_o" >&6; } 19021if test "$am_cv_prog_cc_c_o" != yes; then 19022 # Losing compiler, so override with the script. 19023 # FIXME: It is wrong to rewrite CC. 19024 # But if we don't then we get into trouble of one sort or another. 19025 # A longer-term fix would be to have automake use am__CC in this case, 19026 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 19027 CC="$am_aux_dir/compile $CC" 19028fi 19029ac_ext=c 19030ac_cpp='$CPP $CPPFLAGS' 19031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19033ac_compiler_gnu=$ac_cv_c_compiler_gnu 19034 19035 19036depcc="$CC" am_compiler_list= 19037 19038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 19039$as_echo_n "checking dependency style of $depcc... " >&6; } 19040if ${am_cv_CC_dependencies_compiler_type+:} false; then : 19041 $as_echo_n "(cached) " >&6 19042else 19043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19044 # We make a subdir and do the tests there. Otherwise we can end up 19045 # making bogus files that we don't know about and never remove. For 19046 # instance it was reported that on HP-UX the gcc test will end up 19047 # making a dummy file named 'D' -- because '-MD' means "put the output 19048 # in D". 19049 rm -rf conftest.dir 19050 mkdir conftest.dir 19051 # Copy depcomp to subdir because otherwise we won't find it if we're 19052 # using a relative directory. 19053 cp "$am_depcomp" conftest.dir 19054 cd conftest.dir 19055 # We will build objects and dependencies in a subdirectory because 19056 # it helps to detect inapplicable dependency modes. For instance 19057 # both Tru64's cc and ICC support -MD to output dependencies as a 19058 # side effect of compilation, but ICC will put the dependencies in 19059 # the current directory while Tru64 will put them in the object 19060 # directory. 19061 mkdir sub 19062 19063 am_cv_CC_dependencies_compiler_type=none 19064 if test "$am_compiler_list" = ""; then 19065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19066 fi 19067 am__universal=false 19068 case " $depcc " in #( 19069 *\ -arch\ *\ -arch\ *) am__universal=true ;; 19070 esac 19071 19072 for depmode in $am_compiler_list; do 19073 # Setup a source with many dependencies, because some compilers 19074 # like to wrap large dependency lists on column 80 (with \), and 19075 # we should not choose a depcomp mode which is confused by this. 19076 # 19077 # We need to recreate these files for each test, as the compiler may 19078 # overwrite some of them when testing with obscure command lines. 19079 # This happens at least with the AIX C compiler. 19080 : > sub/conftest.c 19081 for i in 1 2 3 4 5 6; do 19082 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19083 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 19084 # Solaris 10 /bin/sh. 19085 echo '/* dummy */' > sub/conftst$i.h 19086 done 19087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19088 19089 # We check with '-c' and '-o' for the sake of the "dashmstdout" 19090 # mode. It turns out that the SunPro C++ compiler does not properly 19091 # handle '-M -o', and we need to detect this. Also, some Intel 19092 # versions had trouble with output in subdirs. 19093 am__obj=sub/conftest.${OBJEXT-o} 19094 am__minus_obj="-o $am__obj" 19095 case $depmode in 19096 gcc) 19097 # This depmode causes a compiler race in universal mode. 19098 test "$am__universal" = false || continue 19099 ;; 19100 nosideeffect) 19101 # After this tag, mechanisms are not by side-effect, so they'll 19102 # only be used when explicitly requested. 19103 if test "x$enable_dependency_tracking" = xyes; then 19104 continue 19105 else 19106 break 19107 fi 19108 ;; 19109 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 19110 # This compiler won't grok '-c -o', but also, the minuso test has 19111 # not run yet. These depmodes are late enough in the game, and 19112 # so weak that their functioning should not be impacted. 19113 am__obj=conftest.${OBJEXT-o} 19114 am__minus_obj= 19115 ;; 19116 none) break ;; 19117 esac 19118 if depmode=$depmode \ 19119 source=sub/conftest.c object=$am__obj \ 19120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 19122 >/dev/null 2>conftest.err && 19123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 19124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 19126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19127 # icc doesn't choke on unknown options, it will just issue warnings 19128 # or remarks (even with -Werror). So we grep stderr for any message 19129 # that says an option was ignored or not supported. 19130 # When given -MP, icc 7.0 and 7.1 complain thusly: 19131 # icc: Command line warning: ignoring option '-M'; no argument required 19132 # The diagnosis changed in icc 8.0: 19133 # icc: Command line remark: option '-MP' not supported 19134 if (grep 'ignoring option' conftest.err || 19135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19136 am_cv_CC_dependencies_compiler_type=$depmode 19137 break 19138 fi 19139 fi 19140 done 19141 19142 cd .. 19143 rm -rf conftest.dir 19144else 19145 am_cv_CC_dependencies_compiler_type=none 19146fi 19147 19148fi 19149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 19150$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 19151CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19152 19153 if 19154 test "x$enable_dependency_tracking" != xno \ 19155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19156 am__fastdepCC_TRUE= 19157 am__fastdepCC_FALSE='#' 19158else 19159 am__fastdepCC_TRUE='#' 19160 am__fastdepCC_FALSE= 19161fi 19162 19163 19164 19165 19166 19167 19168# Check whether --with-xorg-module-dir was given. 19169if test "${with_xorg_module_dir+set}" = set; then : 19170 withval=$with_xorg_module_dir; moduledir="$withval" 19171else 19172 moduledir="$libdir/xorg/modules" 19173fi 19174 19175 19176# Checks for extensions 19177 19178 19179 SAVE_CFLAGS="$CFLAGS" 19180 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19182/* end confdefs.h. */ 19183 19184#include "xorg-server.h" 19185#if !defined RANDR 19186#error RANDR not defined 19187#endif 19188 19189int 19190main () 19191{ 19192 19193 ; 19194 return 0; 19195} 19196_ACEOF 19197if ac_fn_c_try_compile "$LINENO"; then : 19198 _EXT_CHECK=yes 19199else 19200 _EXT_CHECK=no 19201fi 19202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19203 CFLAGS="$SAVE_CFLAGS" 19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19205$as_echo_n "checking if RANDR is defined... " >&6; } 19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19207$as_echo "$_EXT_CHECK" >&6; } 19208 if test "$_EXT_CHECK" != no; then 19209 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19210 fi 19211 19212 19213 19214 SAVE_CFLAGS="$CFLAGS" 19215 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19217/* end confdefs.h. */ 19218 19219#include "xorg-server.h" 19220#if !defined RENDER 19221#error RENDER not defined 19222#endif 19223 19224int 19225main () 19226{ 19227 19228 ; 19229 return 0; 19230} 19231_ACEOF 19232if ac_fn_c_try_compile "$LINENO"; then : 19233 _EXT_CHECK=yes 19234else 19235 _EXT_CHECK=no 19236fi 19237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19238 CFLAGS="$SAVE_CFLAGS" 19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19240$as_echo_n "checking if RENDER is defined... " >&6; } 19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19242$as_echo "$_EXT_CHECK" >&6; } 19243 if test "$_EXT_CHECK" != no; then 19244 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19245 fi 19246 19247 19248 19249 SAVE_CFLAGS="$CFLAGS" 19250 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19252/* end confdefs.h. */ 19253 19254#include "xorg-server.h" 19255#if !defined XV 19256#error XV not defined 19257#endif 19258 19259int 19260main () 19261{ 19262 19263 ; 19264 return 0; 19265} 19266_ACEOF 19267if ac_fn_c_try_compile "$LINENO"; then : 19268 _EXT_CHECK=yes 19269else 19270 _EXT_CHECK=no 19271fi 19272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19273 CFLAGS="$SAVE_CFLAGS" 19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19275$as_echo_n "checking if XV is defined... " >&6; } 19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19277$as_echo "$_EXT_CHECK" >&6; } 19278 if test "$_EXT_CHECK" != no; then 19279 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19280 fi 19281 19282 19283 19284 SAVE_CFLAGS="$CFLAGS" 19285 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19287/* end confdefs.h. */ 19288 19289#include "xorg-server.h" 19290#if !defined DPMSExtension 19291#error DPMSExtension not defined 19292#endif 19293 19294int 19295main () 19296{ 19297 19298 ; 19299 return 0; 19300} 19301_ACEOF 19302if ac_fn_c_try_compile "$LINENO"; then : 19303 _EXT_CHECK=yes 19304else 19305 _EXT_CHECK=no 19306fi 19307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19308 CFLAGS="$SAVE_CFLAGS" 19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19310$as_echo_n "checking if DPMSExtension is defined... " >&6; } 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19312$as_echo "$_EXT_CHECK" >&6; } 19313 if test "$_EXT_CHECK" != no; then 19314 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19315 fi 19316 19317 19318 19319 SAVE_CFLAGS="$CFLAGS" 19320 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19322/* end confdefs.h. */ 19323 19324#include "xorg-server.h" 19325#if !defined DRI2 19326#error DRI2 not defined 19327#endif 19328 19329int 19330main () 19331{ 19332 19333 ; 19334 return 0; 19335} 19336_ACEOF 19337if ac_fn_c_try_compile "$LINENO"; then : 19338 _EXT_CHECK=yes 19339else 19340 _EXT_CHECK=no 19341fi 19342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19343 CFLAGS="$SAVE_CFLAGS" 19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI2 is defined" >&5 19345$as_echo_n "checking if DRI2 is defined... " >&6; } 19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19347$as_echo "$_EXT_CHECK" >&6; } 19348 if test "$_EXT_CHECK" != no; then 19349 REQUIRED_MODULES="$REQUIRED_MODULES dri2proto >= 2.6" 19350 fi 19351 19352 19353# Checks for pkg-config packages 19354 19355pkg_failed=no 19356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 19357$as_echo_n "checking for LIBDRM... " >&6; } 19358 19359if test -n "$LIBDRM_CFLAGS"; then 19360 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 19361 elif test -n "$PKG_CONFIG"; then 19362 if test -n "$PKG_CONFIG" && \ 19363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5 19364 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5 19365 ac_status=$? 19366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19367 test $ac_status = 0; }; then 19368 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.60" 2>/dev/null` 19369 test "x$?" != "x0" && pkg_failed=yes 19370else 19371 pkg_failed=yes 19372fi 19373 else 19374 pkg_failed=untried 19375fi 19376if test -n "$LIBDRM_LIBS"; then 19377 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 19378 elif test -n "$PKG_CONFIG"; then 19379 if test -n "$PKG_CONFIG" && \ 19380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5 19381 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5 19382 ac_status=$? 19383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19384 test $ac_status = 0; }; then 19385 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.60" 2>/dev/null` 19386 test "x$?" != "x0" && pkg_failed=yes 19387else 19388 pkg_failed=yes 19389fi 19390 else 19391 pkg_failed=untried 19392fi 19393 19394 19395 19396if test $pkg_failed = yes; then 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19398$as_echo "no" >&6; } 19399 19400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19401 _pkg_short_errors_supported=yes 19402else 19403 _pkg_short_errors_supported=no 19404fi 19405 if test $_pkg_short_errors_supported = yes; then 19406 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1` 19407 else 19408 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1` 19409 fi 19410 # Put the nasty error message in config.log where it belongs 19411 echo "$LIBDRM_PKG_ERRORS" >&5 19412 19413 as_fn_error $? "Package requirements (libdrm >= 2.4.60) were not met: 19414 19415$LIBDRM_PKG_ERRORS 19416 19417Consider adjusting the PKG_CONFIG_PATH environment variable if you 19418installed software in a non-standard prefix. 19419 19420Alternatively, you may set the environment variables LIBDRM_CFLAGS 19421and LIBDRM_LIBS to avoid the need to call pkg-config. 19422See the pkg-config man page for more details." "$LINENO" 5 19423elif test $pkg_failed = untried; then 19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19425$as_echo "no" >&6; } 19426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19428as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19429is in your PATH or set the PKG_CONFIG environment variable to the full 19430path to pkg-config. 19431 19432Alternatively, you may set the environment variables LIBDRM_CFLAGS 19433and LIBDRM_LIBS to avoid the need to call pkg-config. 19434See the pkg-config man page for more details. 19435 19436To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19437See \`config.log' for more details" "$LINENO" 5; } 19438else 19439 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 19440 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19442$as_echo "yes" >&6; } 19443 19444fi 19445 19446pkg_failed=no 19447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_NOUVEAU" >&5 19448$as_echo_n "checking for LIBDRM_NOUVEAU... " >&6; } 19449 19450if test -n "$LIBDRM_NOUVEAU_CFLAGS"; then 19451 pkg_cv_LIBDRM_NOUVEAU_CFLAGS="$LIBDRM_NOUVEAU_CFLAGS" 19452 elif test -n "$PKG_CONFIG"; then 19453 if test -n "$PKG_CONFIG" && \ 19454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5 19455 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5 19456 ac_status=$? 19457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19458 test $ac_status = 0; }; then 19459 pkg_cv_LIBDRM_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= 2.4.25" 2>/dev/null` 19460 test "x$?" != "x0" && pkg_failed=yes 19461else 19462 pkg_failed=yes 19463fi 19464 else 19465 pkg_failed=untried 19466fi 19467if test -n "$LIBDRM_NOUVEAU_LIBS"; then 19468 pkg_cv_LIBDRM_NOUVEAU_LIBS="$LIBDRM_NOUVEAU_LIBS" 19469 elif test -n "$PKG_CONFIG"; then 19470 if test -n "$PKG_CONFIG" && \ 19471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5 19472 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5 19473 ac_status=$? 19474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19475 test $ac_status = 0; }; then 19476 pkg_cv_LIBDRM_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= 2.4.25" 2>/dev/null` 19477 test "x$?" != "x0" && pkg_failed=yes 19478else 19479 pkg_failed=yes 19480fi 19481 else 19482 pkg_failed=untried 19483fi 19484 19485 19486 19487if test $pkg_failed = yes; then 19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19489$as_echo "no" >&6; } 19490 19491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19492 _pkg_short_errors_supported=yes 19493else 19494 _pkg_short_errors_supported=no 19495fi 19496 if test $_pkg_short_errors_supported = yes; then 19497 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1` 19498 else 19499 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1` 19500 fi 19501 # Put the nasty error message in config.log where it belongs 19502 echo "$LIBDRM_NOUVEAU_PKG_ERRORS" >&5 19503 19504 as_fn_error $? "Package requirements (libdrm_nouveau >= 2.4.25) were not met: 19505 19506$LIBDRM_NOUVEAU_PKG_ERRORS 19507 19508Consider adjusting the PKG_CONFIG_PATH environment variable if you 19509installed software in a non-standard prefix. 19510 19511Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS 19512and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config. 19513See the pkg-config man page for more details." "$LINENO" 5 19514elif test $pkg_failed = untried; then 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19516$as_echo "no" >&6; } 19517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19519as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19520is in your PATH or set the PKG_CONFIG environment variable to the full 19521path to pkg-config. 19522 19523Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS 19524and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config. 19525See the pkg-config man page for more details. 19526 19527To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19528See \`config.log' for more details" "$LINENO" 5; } 19529else 19530 LIBDRM_NOUVEAU_CFLAGS=$pkg_cv_LIBDRM_NOUVEAU_CFLAGS 19531 LIBDRM_NOUVEAU_LIBS=$pkg_cv_LIBDRM_NOUVEAU_LIBS 19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19533$as_echo "yes" >&6; } 19534 19535fi 19536 19537 19538 19539 19540pkg_failed=no 19541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19542$as_echo_n "checking for XORG... " >&6; } 19543 19544if test -n "$XORG_CFLAGS"; then 19545 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19546 elif test -n "$PKG_CONFIG"; then 19547 if test -n "$PKG_CONFIG" && \ 19548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5 19549 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5 19550 ac_status=$? 19551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19552 test $ac_status = 0; }; then 19553 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null` 19554 test "x$?" != "x0" && pkg_failed=yes 19555else 19556 pkg_failed=yes 19557fi 19558 else 19559 pkg_failed=untried 19560fi 19561if test -n "$XORG_LIBS"; then 19562 pkg_cv_XORG_LIBS="$XORG_LIBS" 19563 elif test -n "$PKG_CONFIG"; then 19564 if test -n "$PKG_CONFIG" && \ 19565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5 19566 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5 19567 ac_status=$? 19568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19569 test $ac_status = 0; }; then 19570 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null` 19571 test "x$?" != "x0" && pkg_failed=yes 19572else 19573 pkg_failed=yes 19574fi 19575 else 19576 pkg_failed=untried 19577fi 19578 19579 19580 19581if test $pkg_failed = yes; then 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19583$as_echo "no" >&6; } 19584 19585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19586 _pkg_short_errors_supported=yes 19587else 19588 _pkg_short_errors_supported=no 19589fi 19590 if test $_pkg_short_errors_supported = yes; then 19591 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1` 19592 else 19593 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1` 19594 fi 19595 # Put the nasty error message in config.log where it belongs 19596 echo "$XORG_PKG_ERRORS" >&5 19597 19598 as_fn_error $? "Package requirements (xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES) were not met: 19599 19600$XORG_PKG_ERRORS 19601 19602Consider adjusting the PKG_CONFIG_PATH environment variable if you 19603installed software in a non-standard prefix. 19604 19605Alternatively, you may set the environment variables XORG_CFLAGS 19606and XORG_LIBS to avoid the need to call pkg-config. 19607See the pkg-config man page for more details." "$LINENO" 5 19608elif test $pkg_failed = untried; then 19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19610$as_echo "no" >&6; } 19611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19613as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19614is in your PATH or set the PKG_CONFIG environment variable to the full 19615path to pkg-config. 19616 19617Alternatively, you may set the environment variables XORG_CFLAGS 19618and XORG_LIBS to avoid the need to call pkg-config. 19619See the pkg-config man page for more details. 19620 19621To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19622See \`config.log' for more details" "$LINENO" 5; } 19623else 19624 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19625 XORG_LIBS=$pkg_cv_XORG_LIBS 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19627$as_echo "yes" >&6; } 19628 19629fi 19630 19631pkg_failed=no 19632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19633$as_echo_n "checking for XEXT... " >&6; } 19634 19635if test -n "$XEXT_CFLAGS"; then 19636 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19637 elif test -n "$PKG_CONFIG"; then 19638 if test -n "$PKG_CONFIG" && \ 19639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19640 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19641 ac_status=$? 19642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19643 test $ac_status = 0; }; then 19644 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19645 test "x$?" != "x0" && pkg_failed=yes 19646else 19647 pkg_failed=yes 19648fi 19649 else 19650 pkg_failed=untried 19651fi 19652if test -n "$XEXT_LIBS"; then 19653 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19654 elif test -n "$PKG_CONFIG"; then 19655 if test -n "$PKG_CONFIG" && \ 19656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19657 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19658 ac_status=$? 19659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19660 test $ac_status = 0; }; then 19661 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19662 test "x$?" != "x0" && pkg_failed=yes 19663else 19664 pkg_failed=yes 19665fi 19666 else 19667 pkg_failed=untried 19668fi 19669 19670 19671 19672if test $pkg_failed = yes; then 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19674$as_echo "no" >&6; } 19675 19676if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19677 _pkg_short_errors_supported=yes 19678else 19679 _pkg_short_errors_supported=no 19680fi 19681 if test $_pkg_short_errors_supported = yes; then 19682 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19683 else 19684 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19685 fi 19686 # Put the nasty error message in config.log where it belongs 19687 echo "$XEXT_PKG_ERRORS" >&5 19688 19689 HAVE_XEXTPROTO_71="no" 19690elif test $pkg_failed = untried; then 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19692$as_echo "no" >&6; } 19693 HAVE_XEXTPROTO_71="no" 19694else 19695 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19696 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19698$as_echo "yes" >&6; } 19699 HAVE_XEXTPROTO_71="yes"; 19700$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19701 19702fi 19703 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19704 HAVE_XEXTPROTO_71_TRUE= 19705 HAVE_XEXTPROTO_71_FALSE='#' 19706else 19707 HAVE_XEXTPROTO_71_TRUE='#' 19708 HAVE_XEXTPROTO_71_FALSE= 19709fi 19710 19711sdkdir=$(pkg-config --variable=sdkdir xorg-server) 19712 19713# Checks for libraries. 19714 19715pkg_failed=no 19716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19717$as_echo_n "checking for PCIACCESS... " >&6; } 19718 19719if test -n "$PCIACCESS_CFLAGS"; then 19720 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19721 elif test -n "$PKG_CONFIG"; then 19722 if test -n "$PKG_CONFIG" && \ 19723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 19724 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 19725 ac_status=$? 19726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19727 test $ac_status = 0; }; then 19728 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 19729 test "x$?" != "x0" && pkg_failed=yes 19730else 19731 pkg_failed=yes 19732fi 19733 else 19734 pkg_failed=untried 19735fi 19736if test -n "$PCIACCESS_LIBS"; then 19737 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19738 elif test -n "$PKG_CONFIG"; then 19739 if test -n "$PKG_CONFIG" && \ 19740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 19741 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 19742 ac_status=$? 19743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19744 test $ac_status = 0; }; then 19745 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 19746 test "x$?" != "x0" && pkg_failed=yes 19747else 19748 pkg_failed=yes 19749fi 19750 else 19751 pkg_failed=untried 19752fi 19753 19754 19755 19756if test $pkg_failed = yes; then 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19758$as_echo "no" >&6; } 19759 19760if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19761 _pkg_short_errors_supported=yes 19762else 19763 _pkg_short_errors_supported=no 19764fi 19765 if test $_pkg_short_errors_supported = yes; then 19766 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 19767 else 19768 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 19769 fi 19770 # Put the nasty error message in config.log where it belongs 19771 echo "$PCIACCESS_PKG_ERRORS" >&5 19772 19773 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 19774 19775$PCIACCESS_PKG_ERRORS 19776 19777Consider adjusting the PKG_CONFIG_PATH environment variable if you 19778installed software in a non-standard prefix. 19779 19780Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19781and PCIACCESS_LIBS to avoid the need to call pkg-config. 19782See the pkg-config man page for more details." "$LINENO" 5 19783elif test $pkg_failed = untried; then 19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19785$as_echo "no" >&6; } 19786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19788as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19789is in your PATH or set the PKG_CONFIG environment variable to the full 19790path to pkg-config. 19791 19792Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19793and PCIACCESS_LIBS to avoid the need to call pkg-config. 19794See the pkg-config man page for more details. 19795 19796To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19797See \`config.log' for more details" "$LINENO" 5; } 19798else 19799 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19800 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19802$as_echo "yes" >&6; } 19803 19804fi 19805 19806 19807pkg_failed=no 19808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 19809$as_echo_n "checking for LIBUDEV... " >&6; } 19810 19811if test -n "$LIBUDEV_CFLAGS"; then 19812 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 19813 elif test -n "$PKG_CONFIG"; then 19814 if test -n "$PKG_CONFIG" && \ 19815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19816 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19817 ac_status=$? 19818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19819 test $ac_status = 0; }; then 19820 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19821 test "x$?" != "x0" && pkg_failed=yes 19822else 19823 pkg_failed=yes 19824fi 19825 else 19826 pkg_failed=untried 19827fi 19828if test -n "$LIBUDEV_LIBS"; then 19829 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 19830 elif test -n "$PKG_CONFIG"; then 19831 if test -n "$PKG_CONFIG" && \ 19832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19833 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19834 ac_status=$? 19835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19836 test $ac_status = 0; }; then 19837 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19838 test "x$?" != "x0" && pkg_failed=yes 19839else 19840 pkg_failed=yes 19841fi 19842 else 19843 pkg_failed=untried 19844fi 19845 19846 19847 19848if test $pkg_failed = yes; then 19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19850$as_echo "no" >&6; } 19851 19852if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19853 _pkg_short_errors_supported=yes 19854else 19855 _pkg_short_errors_supported=no 19856fi 19857 if test $_pkg_short_errors_supported = yes; then 19858 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19859 else 19860 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19861 fi 19862 # Put the nasty error message in config.log where it belongs 19863 echo "$LIBUDEV_PKG_ERRORS" >&5 19864 19865 LIBUDEV=no 19866elif test $pkg_failed = untried; then 19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19868$as_echo "no" >&6; } 19869 LIBUDEV=no 19870else 19871 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 19872 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19874$as_echo "yes" >&6; } 19875 LIBUDEV=yes 19876fi 19877if test "x$LIBUDEV" = xyes; then 19878 19879$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 19880 19881fi 19882 if test "x$LIBUDEV" = "xyes" ; then 19883 LIBUDEV_TRUE= 19884 LIBUDEV_FALSE='#' 19885else 19886 LIBUDEV_TRUE='#' 19887 LIBUDEV_FALSE= 19888fi 19889 19890 19891 19892 19893# Checks for header files. 19894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19895$as_echo_n "checking for ANSI C header files... " >&6; } 19896if ${ac_cv_header_stdc+:} false; then : 19897 $as_echo_n "(cached) " >&6 19898else 19899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19900/* end confdefs.h. */ 19901#include <stdlib.h> 19902#include <stdarg.h> 19903#include <string.h> 19904#include <float.h> 19905 19906int 19907main () 19908{ 19909 19910 ; 19911 return 0; 19912} 19913_ACEOF 19914if ac_fn_c_try_compile "$LINENO"; then : 19915 ac_cv_header_stdc=yes 19916else 19917 ac_cv_header_stdc=no 19918fi 19919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19920 19921if test $ac_cv_header_stdc = yes; then 19922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19924/* end confdefs.h. */ 19925#include <string.h> 19926 19927_ACEOF 19928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19929 $EGREP "memchr" >/dev/null 2>&1; then : 19930 19931else 19932 ac_cv_header_stdc=no 19933fi 19934rm -f conftest* 19935 19936fi 19937 19938if test $ac_cv_header_stdc = yes; then 19939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19941/* end confdefs.h. */ 19942#include <stdlib.h> 19943 19944_ACEOF 19945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19946 $EGREP "free" >/dev/null 2>&1; then : 19947 19948else 19949 ac_cv_header_stdc=no 19950fi 19951rm -f conftest* 19952 19953fi 19954 19955if test $ac_cv_header_stdc = yes; then 19956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19957 if test "$cross_compiling" = yes; then : 19958 : 19959else 19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19961/* end confdefs.h. */ 19962#include <ctype.h> 19963#include <stdlib.h> 19964#if ((' ' & 0x0FF) == 0x020) 19965# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19966# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19967#else 19968# define ISLOWER(c) \ 19969 (('a' <= (c) && (c) <= 'i') \ 19970 || ('j' <= (c) && (c) <= 'r') \ 19971 || ('s' <= (c) && (c) <= 'z')) 19972# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19973#endif 19974 19975#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19976int 19977main () 19978{ 19979 int i; 19980 for (i = 0; i < 256; i++) 19981 if (XOR (islower (i), ISLOWER (i)) 19982 || toupper (i) != TOUPPER (i)) 19983 return 2; 19984 return 0; 19985} 19986_ACEOF 19987if ac_fn_c_try_run "$LINENO"; then : 19988 19989else 19990 ac_cv_header_stdc=no 19991fi 19992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19993 conftest.$ac_objext conftest.beam conftest.$ac_ext 19994fi 19995 19996fi 19997fi 19998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19999$as_echo "$ac_cv_header_stdc" >&6; } 20000if test $ac_cv_header_stdc = yes; then 20001 20002$as_echo "#define STDC_HEADERS 1" >>confdefs.h 20003 20004fi 20005 20006 20007# Use -Wall all the time 20008CFLAGS="$CFLAGS -Wall" 20009 20010# Check for -minline-all-stringops availabtility 20011OLD_CFLAGS="$CFLAGS" 20012CFLAGS="$CFLAGS -minline-all-stringops" 20013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20014/* end confdefs.h. */ 20015 #include <stdio.h> 20016int 20017main () 20018{ 20019 20020 ; 20021 return 0; 20022} 20023_ACEOF 20024if ac_fn_c_try_compile "$LINENO"; then : 20025 CFLAGS="$OLD_CFLAGS -minline-all-stringops" 20026else 20027 CFLAGS="$OLD_CFLAGS" 20028fi 20029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20030 20031# needed for the next test 20032CFLAGS="$CFLAGS $XORG_CFLAGS" 20033 20034 20035 20036 20037DRIVER_NAME=nouveau 20038 20039 20040 20041 20042 20043 20044if test x$APP_MAN_SUFFIX = x ; then 20045 APP_MAN_SUFFIX=1 20046fi 20047if test x$APP_MAN_DIR = x ; then 20048 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20049fi 20050 20051if test x$LIB_MAN_SUFFIX = x ; then 20052 LIB_MAN_SUFFIX=3 20053fi 20054if test x$LIB_MAN_DIR = x ; then 20055 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20056fi 20057 20058if test x$FILE_MAN_SUFFIX = x ; then 20059 case $host_os in 20060 solaris*) FILE_MAN_SUFFIX=4 ;; 20061 *) FILE_MAN_SUFFIX=5 ;; 20062 esac 20063fi 20064if test x$FILE_MAN_DIR = x ; then 20065 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20066fi 20067 20068if test x$MISC_MAN_SUFFIX = x ; then 20069 case $host_os in 20070 solaris*) MISC_MAN_SUFFIX=5 ;; 20071 *) MISC_MAN_SUFFIX=7 ;; 20072 esac 20073fi 20074if test x$MISC_MAN_DIR = x ; then 20075 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20076fi 20077 20078if test x$DRIVER_MAN_SUFFIX = x ; then 20079 case $host_os in 20080 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20081 *) DRIVER_MAN_SUFFIX=4 ;; 20082 esac 20083fi 20084if test x$DRIVER_MAN_DIR = x ; then 20085 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20086fi 20087 20088if test x$ADMIN_MAN_SUFFIX = x ; then 20089 case $host_os in 20090 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20091 *) ADMIN_MAN_SUFFIX=8 ;; 20092 esac 20093fi 20094if test x$ADMIN_MAN_DIR = x ; then 20095 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20096fi 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112XORG_MAN_PAGE="X Version 11" 20113 20114MAN_SUBSTS="\ 20115 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20116 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20117 -e 's|__xservername__|Xorg|g' \ 20118 -e 's|__xconfigfile__|xorg.conf|g' \ 20119 -e 's|__projectroot__|\$(prefix)|g' \ 20120 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20121 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20122 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20123 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20124 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20125 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20126 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20127 20128 20129 20130 20131 20132cat >>confdefs.h <<_ACEOF 20133#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20134_ACEOF 20135 20136 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20137 if test "x$PVM" = "x"; then 20138 PVM="0" 20139 fi 20140 20141cat >>confdefs.h <<_ACEOF 20142#define PACKAGE_VERSION_MINOR $PVM 20143_ACEOF 20144 20145 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20146 if test "x$PVP" = "x"; then 20147 PVP="0" 20148 fi 20149 20150cat >>confdefs.h <<_ACEOF 20151#define PACKAGE_VERSION_PATCHLEVEL $PVP 20152_ACEOF 20153 20154 20155 20156for ac_header in list.h 20157do : 20158 ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h> 20159 #include \"xorg-server.h\" 20160" 20161if test "x$ac_cv_header_list_h" = xyes; then : 20162 cat >>confdefs.h <<_ACEOF 20163#define HAVE_LIST_H 1 20164_ACEOF 20165 have_list_h="yes" 20166else 20167 have_list_h="no" 20168fi 20169 20170done 20171 20172 20173if test "x$have_list_h" = xyes; then 20174 ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h> 20175 #include \"xorg-server.h\" 20176 #include \"list.h\" 20177" 20178if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then : 20179 20180$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h 20181 20182fi 20183 20184fi 20185 20186ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20187 20188cat >confcache <<\_ACEOF 20189# This file is a shell script that caches the results of configure 20190# tests run on this system so they can be shared between configure 20191# scripts and configure runs, see configure's option --config-cache. 20192# It is not useful on other systems. If it contains results you don't 20193# want to keep, you may remove or edit it. 20194# 20195# config.status only pays attention to the cache file if you give it 20196# the --recheck option to rerun configure. 20197# 20198# `ac_cv_env_foo' variables (set or unset) will be overridden when 20199# loading this file, other *unset* `ac_cv_foo' will be assigned the 20200# following values. 20201 20202_ACEOF 20203 20204# The following way of writing the cache mishandles newlines in values, 20205# but we know of no workaround that is simple, portable, and efficient. 20206# So, we kill variables containing newlines. 20207# Ultrix sh set writes to stderr and can't be redirected directly, 20208# and sets the high bit in the cache file unless we assign to the vars. 20209( 20210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20211 eval ac_val=\$$ac_var 20212 case $ac_val in #( 20213 *${as_nl}*) 20214 case $ac_var in #( 20215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20216$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20217 esac 20218 case $ac_var in #( 20219 _ | IFS | as_nl) ;; #( 20220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20221 *) { eval $ac_var=; unset $ac_var;} ;; 20222 esac ;; 20223 esac 20224 done 20225 20226 (set) 2>&1 | 20227 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20228 *${as_nl}ac_space=\ *) 20229 # `set' does not quote correctly, so add quotes: double-quote 20230 # substitution turns \\\\ into \\, and sed turns \\ into \. 20231 sed -n \ 20232 "s/'/'\\\\''/g; 20233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20234 ;; #( 20235 *) 20236 # `set' quotes correctly as required by POSIX, so do not add quotes. 20237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20238 ;; 20239 esac | 20240 sort 20241) | 20242 sed ' 20243 /^ac_cv_env_/b end 20244 t clear 20245 :clear 20246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20247 t end 20248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20249 :end' >>confcache 20250if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20251 if test -w "$cache_file"; then 20252 if test "x$cache_file" != "x/dev/null"; then 20253 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20254$as_echo "$as_me: updating cache $cache_file" >&6;} 20255 if test ! -f "$cache_file" || test -h "$cache_file"; then 20256 cat confcache >"$cache_file" 20257 else 20258 case $cache_file in #( 20259 */* | ?:*) 20260 mv -f confcache "$cache_file"$$ && 20261 mv -f "$cache_file"$$ "$cache_file" ;; #( 20262 *) 20263 mv -f confcache "$cache_file" ;; 20264 esac 20265 fi 20266 fi 20267 else 20268 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20269$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20270 fi 20271fi 20272rm -f confcache 20273 20274test "x$prefix" = xNONE && prefix=$ac_default_prefix 20275# Let make expand exec_prefix. 20276test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20277 20278DEFS=-DHAVE_CONFIG_H 20279 20280ac_libobjs= 20281ac_ltlibobjs= 20282U= 20283for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20284 # 1. Remove the extension, and $U if already installed. 20285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20286 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20288 # will be set to the directory where LIBOBJS objects are built. 20289 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20290 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20291done 20292LIBOBJS=$ac_libobjs 20293 20294LTLIBOBJS=$ac_ltlibobjs 20295 20296 20297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20298$as_echo_n "checking that generated files are newer than configure... " >&6; } 20299 if test -n "$am_sleep_pid"; then 20300 # Hide warnings about reused PIDs. 20301 wait $am_sleep_pid 2>/dev/null 20302 fi 20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20304$as_echo "done" >&6; } 20305 if test -n "$EXEEXT"; then 20306 am__EXEEXT_TRUE= 20307 am__EXEEXT_FALSE='#' 20308else 20309 am__EXEEXT_TRUE='#' 20310 am__EXEEXT_FALSE= 20311fi 20312 20313if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20314 as_fn_error $? "conditional \"AMDEP\" was never defined. 20315Usually this means the macro was only invoked conditionally." "$LINENO" 5 20316fi 20317if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20318 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20319Usually this means the macro was only invoked conditionally." "$LINENO" 5 20320fi 20321if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20322 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20323Usually this means the macro was only invoked conditionally." "$LINENO" 5 20324fi 20325if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20326 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20327Usually this means the macro was only invoked conditionally." "$LINENO" 5 20328fi 20329if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20330 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20331Usually this means the macro was only invoked conditionally." "$LINENO" 5 20332fi 20333 20334: "${CONFIG_STATUS=./config.status}" 20335ac_write_fail=0 20336ac_clean_files_save=$ac_clean_files 20337ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20338{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20339$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20340as_write_fail=0 20341cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20342#! $SHELL 20343# Generated by $as_me. 20344# Run this file to recreate the current configuration. 20345# Compiler output produced by configure, useful for debugging 20346# configure, is in config.log if it exists. 20347 20348debug=false 20349ac_cs_recheck=false 20350ac_cs_silent=false 20351 20352SHELL=\${CONFIG_SHELL-$SHELL} 20353export SHELL 20354_ASEOF 20355cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20356## -------------------- ## 20357## M4sh Initialization. ## 20358## -------------------- ## 20359 20360# Be more Bourne compatible 20361DUALCASE=1; export DUALCASE # for MKS sh 20362if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20363 emulate sh 20364 NULLCMD=: 20365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20366 # is contrary to our usage. Disable this feature. 20367 alias -g '${1+"$@"}'='"$@"' 20368 setopt NO_GLOB_SUBST 20369else 20370 case `(set -o) 2>/dev/null` in #( 20371 *posix*) : 20372 set -o posix ;; #( 20373 *) : 20374 ;; 20375esac 20376fi 20377 20378 20379as_nl=' 20380' 20381export as_nl 20382# Printing a long string crashes Solaris 7 /usr/bin/printf. 20383as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20384as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20385as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20386# Prefer a ksh shell builtin over an external printf program on Solaris, 20387# but without wasting forks for bash or zsh. 20388if test -z "$BASH_VERSION$ZSH_VERSION" \ 20389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20390 as_echo='print -r --' 20391 as_echo_n='print -rn --' 20392elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20393 as_echo='printf %s\n' 20394 as_echo_n='printf %s' 20395else 20396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20398 as_echo_n='/usr/ucb/echo -n' 20399 else 20400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20401 as_echo_n_body='eval 20402 arg=$1; 20403 case $arg in #( 20404 *"$as_nl"*) 20405 expr "X$arg" : "X\\(.*\\)$as_nl"; 20406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20407 esac; 20408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20409 ' 20410 export as_echo_n_body 20411 as_echo_n='sh -c $as_echo_n_body as_echo' 20412 fi 20413 export as_echo_body 20414 as_echo='sh -c $as_echo_body as_echo' 20415fi 20416 20417# The user is always right. 20418if test "${PATH_SEPARATOR+set}" != set; then 20419 PATH_SEPARATOR=: 20420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20422 PATH_SEPARATOR=';' 20423 } 20424fi 20425 20426 20427# IFS 20428# We need space, tab and new line, in precisely that order. Quoting is 20429# there to prevent editors from complaining about space-tab. 20430# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20431# splitting by setting IFS to empty value.) 20432IFS=" "" $as_nl" 20433 20434# Find who we are. Look in the path if we contain no directory separator. 20435as_myself= 20436case $0 in #(( 20437 *[\\/]* ) as_myself=$0 ;; 20438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20439for as_dir in $PATH 20440do 20441 IFS=$as_save_IFS 20442 test -z "$as_dir" && as_dir=. 20443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20444 done 20445IFS=$as_save_IFS 20446 20447 ;; 20448esac 20449# We did not find ourselves, most probably we were run as `sh COMMAND' 20450# in which case we are not to be found in the path. 20451if test "x$as_myself" = x; then 20452 as_myself=$0 20453fi 20454if test ! -f "$as_myself"; then 20455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20456 exit 1 20457fi 20458 20459# Unset variables that we do not need and which cause bugs (e.g. in 20460# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20461# suppresses any "Segmentation fault" message there. '((' could 20462# trigger a bug in pdksh 5.2.14. 20463for as_var in BASH_ENV ENV MAIL MAILPATH 20464do eval test x\${$as_var+set} = xset \ 20465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20466done 20467PS1='$ ' 20468PS2='> ' 20469PS4='+ ' 20470 20471# NLS nuisances. 20472LC_ALL=C 20473export LC_ALL 20474LANGUAGE=C 20475export LANGUAGE 20476 20477# CDPATH. 20478(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20479 20480 20481# as_fn_error STATUS ERROR [LINENO LOG_FD] 20482# ---------------------------------------- 20483# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20484# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20485# script with STATUS, using 1 if that was 0. 20486as_fn_error () 20487{ 20488 as_status=$1; test $as_status -eq 0 && as_status=1 20489 if test "$4"; then 20490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20492 fi 20493 $as_echo "$as_me: error: $2" >&2 20494 as_fn_exit $as_status 20495} # as_fn_error 20496 20497 20498# as_fn_set_status STATUS 20499# ----------------------- 20500# Set $? to STATUS, without forking. 20501as_fn_set_status () 20502{ 20503 return $1 20504} # as_fn_set_status 20505 20506# as_fn_exit STATUS 20507# ----------------- 20508# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20509as_fn_exit () 20510{ 20511 set +e 20512 as_fn_set_status $1 20513 exit $1 20514} # as_fn_exit 20515 20516# as_fn_unset VAR 20517# --------------- 20518# Portably unset VAR. 20519as_fn_unset () 20520{ 20521 { eval $1=; unset $1;} 20522} 20523as_unset=as_fn_unset 20524# as_fn_append VAR VALUE 20525# ---------------------- 20526# Append the text in VALUE to the end of the definition contained in VAR. Take 20527# advantage of any shell optimizations that allow amortized linear growth over 20528# repeated appends, instead of the typical quadratic growth present in naive 20529# implementations. 20530if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20531 eval 'as_fn_append () 20532 { 20533 eval $1+=\$2 20534 }' 20535else 20536 as_fn_append () 20537 { 20538 eval $1=\$$1\$2 20539 } 20540fi # as_fn_append 20541 20542# as_fn_arith ARG... 20543# ------------------ 20544# Perform arithmetic evaluation on the ARGs, and store the result in the 20545# global $as_val. Take advantage of shells that can avoid forks. The arguments 20546# must be portable across $(()) and expr. 20547if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20548 eval 'as_fn_arith () 20549 { 20550 as_val=$(( $* )) 20551 }' 20552else 20553 as_fn_arith () 20554 { 20555 as_val=`expr "$@" || test $? -eq 1` 20556 } 20557fi # as_fn_arith 20558 20559 20560if expr a : '\(a\)' >/dev/null 2>&1 && 20561 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20562 as_expr=expr 20563else 20564 as_expr=false 20565fi 20566 20567if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20568 as_basename=basename 20569else 20570 as_basename=false 20571fi 20572 20573if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20574 as_dirname=dirname 20575else 20576 as_dirname=false 20577fi 20578 20579as_me=`$as_basename -- "$0" || 20580$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20581 X"$0" : 'X\(//\)$' \| \ 20582 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20583$as_echo X/"$0" | 20584 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20585 s//\1/ 20586 q 20587 } 20588 /^X\/\(\/\/\)$/{ 20589 s//\1/ 20590 q 20591 } 20592 /^X\/\(\/\).*/{ 20593 s//\1/ 20594 q 20595 } 20596 s/.*/./; q'` 20597 20598# Avoid depending upon Character Ranges. 20599as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20601as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20602as_cr_digits='0123456789' 20603as_cr_alnum=$as_cr_Letters$as_cr_digits 20604 20605ECHO_C= ECHO_N= ECHO_T= 20606case `echo -n x` in #((((( 20607-n*) 20608 case `echo 'xy\c'` in 20609 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20610 xy) ECHO_C='\c';; 20611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20612 ECHO_T=' ';; 20613 esac;; 20614*) 20615 ECHO_N='-n';; 20616esac 20617 20618rm -f conf$$ conf$$.exe conf$$.file 20619if test -d conf$$.dir; then 20620 rm -f conf$$.dir/conf$$.file 20621else 20622 rm -f conf$$.dir 20623 mkdir conf$$.dir 2>/dev/null 20624fi 20625if (echo >conf$$.file) 2>/dev/null; then 20626 if ln -s conf$$.file conf$$ 2>/dev/null; then 20627 as_ln_s='ln -s' 20628 # ... but there are two gotchas: 20629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20631 # In both cases, we have to default to `cp -pR'. 20632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20633 as_ln_s='cp -pR' 20634 elif ln conf$$.file conf$$ 2>/dev/null; then 20635 as_ln_s=ln 20636 else 20637 as_ln_s='cp -pR' 20638 fi 20639else 20640 as_ln_s='cp -pR' 20641fi 20642rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20643rmdir conf$$.dir 2>/dev/null 20644 20645 20646# as_fn_mkdir_p 20647# ------------- 20648# Create "$as_dir" as a directory, including parents if necessary. 20649as_fn_mkdir_p () 20650{ 20651 20652 case $as_dir in #( 20653 -*) as_dir=./$as_dir;; 20654 esac 20655 test -d "$as_dir" || eval $as_mkdir_p || { 20656 as_dirs= 20657 while :; do 20658 case $as_dir in #( 20659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20660 *) as_qdir=$as_dir;; 20661 esac 20662 as_dirs="'$as_qdir' $as_dirs" 20663 as_dir=`$as_dirname -- "$as_dir" || 20664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20665 X"$as_dir" : 'X\(//\)[^/]' \| \ 20666 X"$as_dir" : 'X\(//\)$' \| \ 20667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20668$as_echo X"$as_dir" | 20669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20670 s//\1/ 20671 q 20672 } 20673 /^X\(\/\/\)[^/].*/{ 20674 s//\1/ 20675 q 20676 } 20677 /^X\(\/\/\)$/{ 20678 s//\1/ 20679 q 20680 } 20681 /^X\(\/\).*/{ 20682 s//\1/ 20683 q 20684 } 20685 s/.*/./; q'` 20686 test -d "$as_dir" && break 20687 done 20688 test -z "$as_dirs" || eval "mkdir $as_dirs" 20689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20690 20691 20692} # as_fn_mkdir_p 20693if mkdir -p . 2>/dev/null; then 20694 as_mkdir_p='mkdir -p "$as_dir"' 20695else 20696 test -d ./-p && rmdir ./-p 20697 as_mkdir_p=false 20698fi 20699 20700 20701# as_fn_executable_p FILE 20702# ----------------------- 20703# Test if FILE is an executable regular file. 20704as_fn_executable_p () 20705{ 20706 test -f "$1" && test -x "$1" 20707} # as_fn_executable_p 20708as_test_x='test -x' 20709as_executable_p=as_fn_executable_p 20710 20711# Sed expression to map a string onto a valid CPP name. 20712as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20713 20714# Sed expression to map a string onto a valid variable name. 20715as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20716 20717 20718exec 6>&1 20719## ----------------------------------- ## 20720## Main body of $CONFIG_STATUS script. ## 20721## ----------------------------------- ## 20722_ASEOF 20723test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20724 20725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20726# Save the log message, to keep $0 and so on meaningful, and to 20727# report actual input values of CONFIG_FILES etc. instead of their 20728# values after options handling. 20729ac_log=" 20730This file was extended by xf86-video-nouveau $as_me 1.0.12, which was 20731generated by GNU Autoconf 2.69. Invocation command line was 20732 20733 CONFIG_FILES = $CONFIG_FILES 20734 CONFIG_HEADERS = $CONFIG_HEADERS 20735 CONFIG_LINKS = $CONFIG_LINKS 20736 CONFIG_COMMANDS = $CONFIG_COMMANDS 20737 $ $0 $@ 20738 20739on `(hostname || uname -n) 2>/dev/null | sed 1q` 20740" 20741 20742_ACEOF 20743 20744case $ac_config_files in *" 20745"*) set x $ac_config_files; shift; ac_config_files=$*;; 20746esac 20747 20748case $ac_config_headers in *" 20749"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20750esac 20751 20752 20753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20754# Files that config.status was made for. 20755config_files="$ac_config_files" 20756config_headers="$ac_config_headers" 20757config_commands="$ac_config_commands" 20758 20759_ACEOF 20760 20761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20762ac_cs_usage="\ 20763\`$as_me' instantiates files and other configuration actions 20764from templates according to the current configuration. Unless the files 20765and actions are specified as TAGs, all are instantiated by default. 20766 20767Usage: $0 [OPTION]... [TAG]... 20768 20769 -h, --help print this help, then exit 20770 -V, --version print version number and configuration settings, then exit 20771 --config print configuration, then exit 20772 -q, --quiet, --silent 20773 do not print progress messages 20774 -d, --debug don't remove temporary files 20775 --recheck update $as_me by reconfiguring in the same conditions 20776 --file=FILE[:TEMPLATE] 20777 instantiate the configuration file FILE 20778 --header=FILE[:TEMPLATE] 20779 instantiate the configuration header FILE 20780 20781Configuration files: 20782$config_files 20783 20784Configuration headers: 20785$config_headers 20786 20787Configuration commands: 20788$config_commands 20789 20790Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 20791 20792_ACEOF 20793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20794ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20795ac_cs_version="\\ 20796xf86-video-nouveau config.status 1.0.12 20797configured by $0, generated by GNU Autoconf 2.69, 20798 with options \\"\$ac_cs_config\\" 20799 20800Copyright (C) 2012 Free Software Foundation, Inc. 20801This config.status script is free software; the Free Software Foundation 20802gives unlimited permission to copy, distribute and modify it." 20803 20804ac_pwd='$ac_pwd' 20805srcdir='$srcdir' 20806INSTALL='$INSTALL' 20807MKDIR_P='$MKDIR_P' 20808AWK='$AWK' 20809test -n "\$AWK" || AWK=awk 20810_ACEOF 20811 20812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20813# The default lists apply if the user does not specify any file. 20814ac_need_defaults=: 20815while test $# != 0 20816do 20817 case $1 in 20818 --*=?*) 20819 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20820 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20821 ac_shift=: 20822 ;; 20823 --*=) 20824 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20825 ac_optarg= 20826 ac_shift=: 20827 ;; 20828 *) 20829 ac_option=$1 20830 ac_optarg=$2 20831 ac_shift=shift 20832 ;; 20833 esac 20834 20835 case $ac_option in 20836 # Handling of the options. 20837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20838 ac_cs_recheck=: ;; 20839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20840 $as_echo "$ac_cs_version"; exit ;; 20841 --config | --confi | --conf | --con | --co | --c ) 20842 $as_echo "$ac_cs_config"; exit ;; 20843 --debug | --debu | --deb | --de | --d | -d ) 20844 debug=: ;; 20845 --file | --fil | --fi | --f ) 20846 $ac_shift 20847 case $ac_optarg in 20848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20849 '') as_fn_error $? "missing file argument" ;; 20850 esac 20851 as_fn_append CONFIG_FILES " '$ac_optarg'" 20852 ac_need_defaults=false;; 20853 --header | --heade | --head | --hea ) 20854 $ac_shift 20855 case $ac_optarg in 20856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20857 esac 20858 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20859 ac_need_defaults=false;; 20860 --he | --h) 20861 # Conflict between --help and --header 20862 as_fn_error $? "ambiguous option: \`$1' 20863Try \`$0 --help' for more information.";; 20864 --help | --hel | -h ) 20865 $as_echo "$ac_cs_usage"; exit ;; 20866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20867 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20868 ac_cs_silent=: ;; 20869 20870 # This is an error. 20871 -*) as_fn_error $? "unrecognized option: \`$1' 20872Try \`$0 --help' for more information." ;; 20873 20874 *) as_fn_append ac_config_targets " $1" 20875 ac_need_defaults=false ;; 20876 20877 esac 20878 shift 20879done 20880 20881ac_configure_extra_args= 20882 20883if $ac_cs_silent; then 20884 exec 6>/dev/null 20885 ac_configure_extra_args="$ac_configure_extra_args --silent" 20886fi 20887 20888_ACEOF 20889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20890if \$ac_cs_recheck; then 20891 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20892 shift 20893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20894 CONFIG_SHELL='$SHELL' 20895 export CONFIG_SHELL 20896 exec "\$@" 20897fi 20898 20899_ACEOF 20900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20901exec 5>>config.log 20902{ 20903 echo 20904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20905## Running $as_me. ## 20906_ASBOX 20907 $as_echo "$ac_log" 20908} >&5 20909 20910_ACEOF 20911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20912# 20913# INIT-COMMANDS 20914# 20915AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20916 20917 20918# The HP-UX ksh and POSIX shell print the target directory to stdout 20919# if CDPATH is set. 20920(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20921 20922sed_quote_subst='$sed_quote_subst' 20923double_quote_subst='$double_quote_subst' 20924delay_variable_subst='$delay_variable_subst' 20925enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20926macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20927macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20928enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20929pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20930enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20931shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20932SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20933ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20934PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20935host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20936host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20937host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20938build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20939build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20940build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20941SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20942Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20943GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20944EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20945FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20946LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20947NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20948LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20949max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20950ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20951exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20952lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20953lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20954lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20955lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20956lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20957reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20958reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20959OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20960deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20961file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20962file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20963want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20964DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20965sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20966AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20967AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20968archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20969STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20970RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20971old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20972old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20973old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20974lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20975CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20976CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20977compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20978GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20979lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20980lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20981lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20982lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20983lt_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"`' 20984lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20985nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20986lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20987lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20988objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20989MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20990lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20991lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20992lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20993lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20994lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20995need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20996MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20997DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20998NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20999LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21000OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21001OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21002libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21003shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21004extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21005archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21006enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21007export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21008whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21009compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21010old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21011old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21012archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21013archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21014module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21015module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21016with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21017allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21018no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21019hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21020hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21021hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21022hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21023hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21024hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21025hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21026inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21027link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21028always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21029export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21030exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21031include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21032prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21033postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21034file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21035variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21036need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21037need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21038version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21039runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21040shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21041shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21042libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21043library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21044soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21045install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21046postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21047postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21048finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21049finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21050hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21051sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21052configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21053configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21054hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21055enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21056enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21057enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21058old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21059striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21060 21061LTCC='$LTCC' 21062LTCFLAGS='$LTCFLAGS' 21063compiler='$compiler_DEFAULT' 21064 21065# A function that is used when there is no print builtin or printf. 21066func_fallback_echo () 21067{ 21068 eval 'cat <<_LTECHO_EOF 21069\$1 21070_LTECHO_EOF' 21071} 21072 21073# Quote evaled strings. 21074for var in SHELL \ 21075ECHO \ 21076PATH_SEPARATOR \ 21077SED \ 21078GREP \ 21079EGREP \ 21080FGREP \ 21081LD \ 21082NM \ 21083LN_S \ 21084lt_SP2NL \ 21085lt_NL2SP \ 21086reload_flag \ 21087OBJDUMP \ 21088deplibs_check_method \ 21089file_magic_cmd \ 21090file_magic_glob \ 21091want_nocaseglob \ 21092DLLTOOL \ 21093sharedlib_from_linklib_cmd \ 21094AR \ 21095AR_FLAGS \ 21096archiver_list_spec \ 21097STRIP \ 21098RANLIB \ 21099CC \ 21100CFLAGS \ 21101compiler \ 21102lt_cv_sys_global_symbol_pipe \ 21103lt_cv_sys_global_symbol_to_cdecl \ 21104lt_cv_sys_global_symbol_to_import \ 21105lt_cv_sys_global_symbol_to_c_name_address \ 21106lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21107lt_cv_nm_interface \ 21108nm_file_list_spec \ 21109lt_cv_truncate_bin \ 21110lt_prog_compiler_no_builtin_flag \ 21111lt_prog_compiler_pic \ 21112lt_prog_compiler_wl \ 21113lt_prog_compiler_static \ 21114lt_cv_prog_compiler_c_o \ 21115need_locks \ 21116MANIFEST_TOOL \ 21117DSYMUTIL \ 21118NMEDIT \ 21119LIPO \ 21120OTOOL \ 21121OTOOL64 \ 21122shrext_cmds \ 21123export_dynamic_flag_spec \ 21124whole_archive_flag_spec \ 21125compiler_needs_object \ 21126with_gnu_ld \ 21127allow_undefined_flag \ 21128no_undefined_flag \ 21129hardcode_libdir_flag_spec \ 21130hardcode_libdir_separator \ 21131exclude_expsyms \ 21132include_expsyms \ 21133file_list_spec \ 21134variables_saved_for_relink \ 21135libname_spec \ 21136library_names_spec \ 21137soname_spec \ 21138install_override_mode \ 21139finish_eval \ 21140old_striplib \ 21141striplib; do 21142 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21143 *[\\\\\\\`\\"\\\$]*) 21144 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21145 ;; 21146 *) 21147 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21148 ;; 21149 esac 21150done 21151 21152# Double-quote double-evaled strings. 21153for var in reload_cmds \ 21154old_postinstall_cmds \ 21155old_postuninstall_cmds \ 21156old_archive_cmds \ 21157extract_expsyms_cmds \ 21158old_archive_from_new_cmds \ 21159old_archive_from_expsyms_cmds \ 21160archive_cmds \ 21161archive_expsym_cmds \ 21162module_cmds \ 21163module_expsym_cmds \ 21164export_symbols_cmds \ 21165prelink_cmds \ 21166postlink_cmds \ 21167postinstall_cmds \ 21168postuninstall_cmds \ 21169finish_cmds \ 21170sys_lib_search_path_spec \ 21171configure_time_dlsearch_path \ 21172configure_time_lt_sys_library_path; do 21173 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21174 *[\\\\\\\`\\"\\\$]*) 21175 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21176 ;; 21177 *) 21178 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21179 ;; 21180 esac 21181done 21182 21183ac_aux_dir='$ac_aux_dir' 21184 21185# See if we are running on zsh, and set the options that allow our 21186# commands through without removal of \ escapes INIT. 21187if test -n "\${ZSH_VERSION+set}"; then 21188 setopt NO_GLOB_SUBST 21189fi 21190 21191 21192 PACKAGE='$PACKAGE' 21193 VERSION='$VERSION' 21194 RM='$RM' 21195 ofile='$ofile' 21196 21197 21198 21199 21200_ACEOF 21201 21202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21203 21204# Handling of arguments. 21205for ac_config_target in $ac_config_targets 21206do 21207 case $ac_config_target in 21208 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21209 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21210 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21211 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21212 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21213 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21214 21215 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21216 esac 21217done 21218 21219 21220# If the user did not use the arguments to specify the items to instantiate, 21221# then the envvar interface is used. Set only those that are not. 21222# We use the long form for the default assignment because of an extremely 21223# bizarre bug on SunOS 4.1.3. 21224if $ac_need_defaults; then 21225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21228fi 21229 21230# Have a temporary directory for convenience. Make it in the build tree 21231# simply because there is no reason against having it here, and in addition, 21232# creating and moving files from /tmp can sometimes cause problems. 21233# Hook for its removal unless debugging. 21234# Note that there is a small window in which the directory will not be cleaned: 21235# after its creation but before its name has been assigned to `$tmp'. 21236$debug || 21237{ 21238 tmp= ac_tmp= 21239 trap 'exit_status=$? 21240 : "${ac_tmp:=$tmp}" 21241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21242' 0 21243 trap 'as_fn_exit 1' 1 2 13 15 21244} 21245# Create a (secure) tmp directory for tmp files. 21246 21247{ 21248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21249 test -d "$tmp" 21250} || 21251{ 21252 tmp=./conf$$-$RANDOM 21253 (umask 077 && mkdir "$tmp") 21254} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21255ac_tmp=$tmp 21256 21257# Set up the scripts for CONFIG_FILES section. 21258# No need to generate them if there are no CONFIG_FILES. 21259# This happens for instance with `./config.status config.h'. 21260if test -n "$CONFIG_FILES"; then 21261 21262 21263ac_cr=`echo X | tr X '\015'` 21264# On cygwin, bash can eat \r inside `` if the user requested igncr. 21265# But we know of no other shell where ac_cr would be empty at this 21266# point, so we can use a bashism as a fallback. 21267if test "x$ac_cr" = x; then 21268 eval ac_cr=\$\'\\r\' 21269fi 21270ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21271if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21272 ac_cs_awk_cr='\\r' 21273else 21274 ac_cs_awk_cr=$ac_cr 21275fi 21276 21277echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21278_ACEOF 21279 21280 21281{ 21282 echo "cat >conf$$subs.awk <<_ACEOF" && 21283 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21284 echo "_ACEOF" 21285} >conf$$subs.sh || 21286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21287ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21288ac_delim='%!_!# ' 21289for ac_last_try in false false false false false :; do 21290 . ./conf$$subs.sh || 21291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21292 21293 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21294 if test $ac_delim_n = $ac_delim_num; then 21295 break 21296 elif $ac_last_try; then 21297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21298 else 21299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21300 fi 21301done 21302rm -f conf$$subs.sh 21303 21304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21305cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21306_ACEOF 21307sed -n ' 21308h 21309s/^/S["/; s/!.*/"]=/ 21310p 21311g 21312s/^[^!]*!// 21313:repl 21314t repl 21315s/'"$ac_delim"'$// 21316t delim 21317:nl 21318h 21319s/\(.\{148\}\)..*/\1/ 21320t more1 21321s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21322p 21323n 21324b repl 21325:more1 21326s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21327p 21328g 21329s/.\{148\}// 21330t nl 21331:delim 21332h 21333s/\(.\{148\}\)..*/\1/ 21334t more2 21335s/["\\]/\\&/g; s/^/"/; s/$/"/ 21336p 21337b 21338:more2 21339s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21340p 21341g 21342s/.\{148\}// 21343t delim 21344' <conf$$subs.awk | sed ' 21345/^[^""]/{ 21346 N 21347 s/\n// 21348} 21349' >>$CONFIG_STATUS || ac_write_fail=1 21350rm -f conf$$subs.awk 21351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21352_ACAWK 21353cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21354 for (key in S) S_is_set[key] = 1 21355 FS = "" 21356 21357} 21358{ 21359 line = $ 0 21360 nfields = split(line, field, "@") 21361 substed = 0 21362 len = length(field[1]) 21363 for (i = 2; i < nfields; i++) { 21364 key = field[i] 21365 keylen = length(key) 21366 if (S_is_set[key]) { 21367 value = S[key] 21368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21369 len += length(value) + length(field[++i]) 21370 substed = 1 21371 } else 21372 len += 1 + keylen 21373 } 21374 21375 print line 21376} 21377 21378_ACAWK 21379_ACEOF 21380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21383else 21384 cat 21385fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21387_ACEOF 21388 21389# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21390# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21391# trailing colons and then remove the whole line if VPATH becomes empty 21392# (actually we leave an empty line to preserve line numbers). 21393if test "x$srcdir" = x.; then 21394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21395h 21396s/// 21397s/^/:/ 21398s/[ ]*$/:/ 21399s/:\$(srcdir):/:/g 21400s/:\${srcdir}:/:/g 21401s/:@srcdir@:/:/g 21402s/^:*// 21403s/:*$// 21404x 21405s/\(=[ ]*\).*/\1/ 21406G 21407s/\n// 21408s/^[^=]*=[ ]*$// 21409}' 21410fi 21411 21412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21413fi # test -n "$CONFIG_FILES" 21414 21415# Set up the scripts for CONFIG_HEADERS section. 21416# No need to generate them if there are no CONFIG_HEADERS. 21417# This happens for instance with `./config.status Makefile'. 21418if test -n "$CONFIG_HEADERS"; then 21419cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21420BEGIN { 21421_ACEOF 21422 21423# Transform confdefs.h into an awk script `defines.awk', embedded as 21424# here-document in config.status, that substitutes the proper values into 21425# config.h.in to produce config.h. 21426 21427# Create a delimiter string that does not exist in confdefs.h, to ease 21428# handling of long lines. 21429ac_delim='%!_!# ' 21430for ac_last_try in false false :; do 21431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21432 if test -z "$ac_tt"; then 21433 break 21434 elif $ac_last_try; then 21435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21436 else 21437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21438 fi 21439done 21440 21441# For the awk script, D is an array of macro values keyed by name, 21442# likewise P contains macro parameters if any. Preserve backslash 21443# newline sequences. 21444 21445ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21446sed -n ' 21447s/.\{148\}/&'"$ac_delim"'/g 21448t rset 21449:rset 21450s/^[ ]*#[ ]*define[ ][ ]*/ / 21451t def 21452d 21453:def 21454s/\\$// 21455t bsnl 21456s/["\\]/\\&/g 21457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21458D["\1"]=" \3"/p 21459s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21460d 21461:bsnl 21462s/["\\]/\\&/g 21463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21464D["\1"]=" \3\\\\\\n"\\/p 21465t cont 21466s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21467t cont 21468d 21469:cont 21470n 21471s/.\{148\}/&'"$ac_delim"'/g 21472t clear 21473:clear 21474s/\\$// 21475t bsnlc 21476s/["\\]/\\&/g; s/^/"/; s/$/"/p 21477d 21478:bsnlc 21479s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21480b cont 21481' <confdefs.h | sed ' 21482s/'"$ac_delim"'/"\\\ 21483"/g' >>$CONFIG_STATUS || ac_write_fail=1 21484 21485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21486 for (key in D) D_is_set[key] = 1 21487 FS = "" 21488} 21489/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21490 line = \$ 0 21491 split(line, arg, " ") 21492 if (arg[1] == "#") { 21493 defundef = arg[2] 21494 mac1 = arg[3] 21495 } else { 21496 defundef = substr(arg[1], 2) 21497 mac1 = arg[2] 21498 } 21499 split(mac1, mac2, "(") #) 21500 macro = mac2[1] 21501 prefix = substr(line, 1, index(line, defundef) - 1) 21502 if (D_is_set[macro]) { 21503 # Preserve the white space surrounding the "#". 21504 print prefix "define", macro P[macro] D[macro] 21505 next 21506 } else { 21507 # Replace #undef with comments. This is necessary, for example, 21508 # in the case of _POSIX_SOURCE, which is predefined and required 21509 # on some systems where configure will not decide to define it. 21510 if (defundef == "undef") { 21511 print "/*", prefix defundef, macro, "*/" 21512 next 21513 } 21514 } 21515} 21516{ print } 21517_ACAWK 21518_ACEOF 21519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21521fi # test -n "$CONFIG_HEADERS" 21522 21523 21524eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21525shift 21526for ac_tag 21527do 21528 case $ac_tag in 21529 :[FHLC]) ac_mode=$ac_tag; continue;; 21530 esac 21531 case $ac_mode$ac_tag in 21532 :[FHL]*:*);; 21533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21534 :[FH]-) ac_tag=-:-;; 21535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21536 esac 21537 ac_save_IFS=$IFS 21538 IFS=: 21539 set x $ac_tag 21540 IFS=$ac_save_IFS 21541 shift 21542 ac_file=$1 21543 shift 21544 21545 case $ac_mode in 21546 :L) ac_source=$1;; 21547 :[FH]) 21548 ac_file_inputs= 21549 for ac_f 21550 do 21551 case $ac_f in 21552 -) ac_f="$ac_tmp/stdin";; 21553 *) # Look for the file first in the build tree, then in the source tree 21554 # (if the path is not absolute). The absolute path cannot be DOS-style, 21555 # because $ac_f cannot contain `:'. 21556 test -f "$ac_f" || 21557 case $ac_f in 21558 [\\/$]*) false;; 21559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21560 esac || 21561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21562 esac 21563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21564 as_fn_append ac_file_inputs " '$ac_f'" 21565 done 21566 21567 # Let's still pretend it is `configure' which instantiates (i.e., don't 21568 # use $as_me), people would be surprised to read: 21569 # /* config.h. Generated by config.status. */ 21570 configure_input='Generated from '` 21571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21572 `' by configure.' 21573 if test x"$ac_file" != x-; then 21574 configure_input="$ac_file. $configure_input" 21575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21576$as_echo "$as_me: creating $ac_file" >&6;} 21577 fi 21578 # Neutralize special characters interpreted by sed in replacement strings. 21579 case $configure_input in #( 21580 *\&* | *\|* | *\\* ) 21581 ac_sed_conf_input=`$as_echo "$configure_input" | 21582 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21583 *) ac_sed_conf_input=$configure_input;; 21584 esac 21585 21586 case $ac_tag in 21587 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21589 esac 21590 ;; 21591 esac 21592 21593 ac_dir=`$as_dirname -- "$ac_file" || 21594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21595 X"$ac_file" : 'X\(//\)[^/]' \| \ 21596 X"$ac_file" : 'X\(//\)$' \| \ 21597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21598$as_echo X"$ac_file" | 21599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21600 s//\1/ 21601 q 21602 } 21603 /^X\(\/\/\)[^/].*/{ 21604 s//\1/ 21605 q 21606 } 21607 /^X\(\/\/\)$/{ 21608 s//\1/ 21609 q 21610 } 21611 /^X\(\/\).*/{ 21612 s//\1/ 21613 q 21614 } 21615 s/.*/./; q'` 21616 as_dir="$ac_dir"; as_fn_mkdir_p 21617 ac_builddir=. 21618 21619case "$ac_dir" in 21620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21621*) 21622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21623 # A ".." for each directory in $ac_dir_suffix. 21624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21625 case $ac_top_builddir_sub in 21626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21628 esac ;; 21629esac 21630ac_abs_top_builddir=$ac_pwd 21631ac_abs_builddir=$ac_pwd$ac_dir_suffix 21632# for backward compatibility: 21633ac_top_builddir=$ac_top_build_prefix 21634 21635case $srcdir in 21636 .) # We are building in place. 21637 ac_srcdir=. 21638 ac_top_srcdir=$ac_top_builddir_sub 21639 ac_abs_top_srcdir=$ac_pwd ;; 21640 [\\/]* | ?:[\\/]* ) # Absolute name. 21641 ac_srcdir=$srcdir$ac_dir_suffix; 21642 ac_top_srcdir=$srcdir 21643 ac_abs_top_srcdir=$srcdir ;; 21644 *) # Relative name. 21645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21646 ac_top_srcdir=$ac_top_build_prefix$srcdir 21647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21648esac 21649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21650 21651 21652 case $ac_mode in 21653 :F) 21654 # 21655 # CONFIG_FILE 21656 # 21657 21658 case $INSTALL in 21659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21661 esac 21662 ac_MKDIR_P=$MKDIR_P 21663 case $MKDIR_P in 21664 [\\/$]* | ?:[\\/]* ) ;; 21665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21666 esac 21667_ACEOF 21668 21669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21670# If the template does not know about datarootdir, expand it. 21671# FIXME: This hack should be removed a few years after 2.60. 21672ac_datarootdir_hack=; ac_datarootdir_seen= 21673ac_sed_dataroot=' 21674/datarootdir/ { 21675 p 21676 q 21677} 21678/@datadir@/p 21679/@docdir@/p 21680/@infodir@/p 21681/@localedir@/p 21682/@mandir@/p' 21683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21684*datarootdir*) ac_datarootdir_seen=yes;; 21685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21688_ACEOF 21689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21690 ac_datarootdir_hack=' 21691 s&@datadir@&$datadir&g 21692 s&@docdir@&$docdir&g 21693 s&@infodir@&$infodir&g 21694 s&@localedir@&$localedir&g 21695 s&@mandir@&$mandir&g 21696 s&\\\${datarootdir}&$datarootdir&g' ;; 21697esac 21698_ACEOF 21699 21700# Neutralize VPATH when `$srcdir' = `.'. 21701# Shell code in configure.ac might set extrasub. 21702# FIXME: do we really want to maintain this feature? 21703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21704ac_sed_extra="$ac_vpsub 21705$extrasub 21706_ACEOF 21707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21708:t 21709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21710s|@configure_input@|$ac_sed_conf_input|;t t 21711s&@top_builddir@&$ac_top_builddir_sub&;t t 21712s&@top_build_prefix@&$ac_top_build_prefix&;t t 21713s&@srcdir@&$ac_srcdir&;t t 21714s&@abs_srcdir@&$ac_abs_srcdir&;t t 21715s&@top_srcdir@&$ac_top_srcdir&;t t 21716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21717s&@builddir@&$ac_builddir&;t t 21718s&@abs_builddir@&$ac_abs_builddir&;t t 21719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21720s&@INSTALL@&$ac_INSTALL&;t t 21721s&@MKDIR_P@&$ac_MKDIR_P&;t t 21722$ac_datarootdir_hack 21723" 21724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21726 21727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21730 "$ac_tmp/out"`; test -z "$ac_out"; } && 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21732which seems to be undefined. Please make sure it is defined" >&5 21733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21734which seems to be undefined. Please make sure it is defined" >&2;} 21735 21736 rm -f "$ac_tmp/stdin" 21737 case $ac_file in 21738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21740 esac \ 21741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21742 ;; 21743 :H) 21744 # 21745 # CONFIG_HEADER 21746 # 21747 if test x"$ac_file" != x-; then 21748 { 21749 $as_echo "/* $configure_input */" \ 21750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21751 } >"$ac_tmp/config.h" \ 21752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21755$as_echo "$as_me: $ac_file is unchanged" >&6;} 21756 else 21757 rm -f "$ac_file" 21758 mv "$ac_tmp/config.h" "$ac_file" \ 21759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21760 fi 21761 else 21762 $as_echo "/* $configure_input */" \ 21763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21764 || as_fn_error $? "could not create -" "$LINENO" 5 21765 fi 21766# Compute "$ac_file"'s index in $config_headers. 21767_am_arg="$ac_file" 21768_am_stamp_count=1 21769for _am_header in $config_headers :; do 21770 case $_am_header in 21771 $_am_arg | $_am_arg:* ) 21772 break ;; 21773 * ) 21774 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21775 esac 21776done 21777echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21778$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21779 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21780 X"$_am_arg" : 'X\(//\)$' \| \ 21781 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21782$as_echo X"$_am_arg" | 21783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21784 s//\1/ 21785 q 21786 } 21787 /^X\(\/\/\)[^/].*/{ 21788 s//\1/ 21789 q 21790 } 21791 /^X\(\/\/\)$/{ 21792 s//\1/ 21793 q 21794 } 21795 /^X\(\/\).*/{ 21796 s//\1/ 21797 q 21798 } 21799 s/.*/./; q'`/stamp-h$_am_stamp_count 21800 ;; 21801 21802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21803$as_echo "$as_me: executing $ac_file commands" >&6;} 21804 ;; 21805 esac 21806 21807 21808 case $ac_file$ac_mode in 21809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21810 # Older Autoconf quotes --file arguments for eval, but not when files 21811 # are listed without --file. Let's play safe and only enable the eval 21812 # if we detect the quoting. 21813 case $CONFIG_FILES in 21814 *\'*) eval set x "$CONFIG_FILES" ;; 21815 *) set x $CONFIG_FILES ;; 21816 esac 21817 shift 21818 for mf 21819 do 21820 # Strip MF so we end up with the name of the file. 21821 mf=`echo "$mf" | sed -e 's/:.*$//'` 21822 # Check whether this is an Automake generated Makefile or not. 21823 # We used to match only the files named 'Makefile.in', but 21824 # some people rename them; so instead we look at the file content. 21825 # Grep'ing the first line is not enough: some people post-process 21826 # each Makefile.in and add a new line on top of each file to say so. 21827 # Grep'ing the whole file is not good either: AIX grep has a line 21828 # limit of 2048, but all sed's we know have understand at least 4000. 21829 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21830 dirpart=`$as_dirname -- "$mf" || 21831$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21832 X"$mf" : 'X\(//\)[^/]' \| \ 21833 X"$mf" : 'X\(//\)$' \| \ 21834 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21835$as_echo X"$mf" | 21836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21837 s//\1/ 21838 q 21839 } 21840 /^X\(\/\/\)[^/].*/{ 21841 s//\1/ 21842 q 21843 } 21844 /^X\(\/\/\)$/{ 21845 s//\1/ 21846 q 21847 } 21848 /^X\(\/\).*/{ 21849 s//\1/ 21850 q 21851 } 21852 s/.*/./; q'` 21853 else 21854 continue 21855 fi 21856 # Extract the definition of DEPDIR, am__include, and am__quote 21857 # from the Makefile without running 'make'. 21858 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21859 test -z "$DEPDIR" && continue 21860 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21861 test -z "$am__include" && continue 21862 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21863 # Find all dependency output files, they are included files with 21864 # $(DEPDIR) in their names. We invoke sed twice because it is the 21865 # simplest approach to changing $(DEPDIR) to its actual value in the 21866 # expansion. 21867 for file in `sed -n " 21868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21870 # Make sure the directory exists. 21871 test -f "$dirpart/$file" && continue 21872 fdir=`$as_dirname -- "$file" || 21873$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21874 X"$file" : 'X\(//\)[^/]' \| \ 21875 X"$file" : 'X\(//\)$' \| \ 21876 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21877$as_echo X"$file" | 21878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21879 s//\1/ 21880 q 21881 } 21882 /^X\(\/\/\)[^/].*/{ 21883 s//\1/ 21884 q 21885 } 21886 /^X\(\/\/\)$/{ 21887 s//\1/ 21888 q 21889 } 21890 /^X\(\/\).*/{ 21891 s//\1/ 21892 q 21893 } 21894 s/.*/./; q'` 21895 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21896 # echo "creating $dirpart/$file" 21897 echo '# dummy' > "$dirpart/$file" 21898 done 21899 done 21900} 21901 ;; 21902 "libtool":C) 21903 21904 # See if we are running on zsh, and set the options that allow our 21905 # commands through without removal of \ escapes. 21906 if test -n "${ZSH_VERSION+set}"; then 21907 setopt NO_GLOB_SUBST 21908 fi 21909 21910 cfgfile=${ofile}T 21911 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21912 $RM "$cfgfile" 21913 21914 cat <<_LT_EOF >> "$cfgfile" 21915#! $SHELL 21916# Generated automatically by $as_me ($PACKAGE) $VERSION 21917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21918# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21919 21920# Provide generalized library-building support services. 21921# Written by Gordon Matzigkeit, 1996 21922 21923# Copyright (C) 2014 Free Software Foundation, Inc. 21924# This is free software; see the source for copying conditions. There is NO 21925# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21926 21927# GNU Libtool is free software; you can redistribute it and/or modify 21928# it under the terms of the GNU General Public License as published by 21929# the Free Software Foundation; either version 2 of of the License, or 21930# (at your option) any later version. 21931# 21932# As a special exception to the GNU General Public License, if you 21933# distribute this file as part of a program or library that is built 21934# using GNU Libtool, you may include this file under the same 21935# distribution terms that you use for the rest of that program. 21936# 21937# GNU Libtool is distributed in the hope that it will be useful, but 21938# WITHOUT ANY WARRANTY; without even the implied warranty of 21939# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21940# GNU General Public License for more details. 21941# 21942# You should have received a copy of the GNU General Public License 21943# along with this program. If not, see <http://www.gnu.org/licenses/>. 21944 21945 21946# The names of the tagged configurations supported by this script. 21947available_tags='' 21948 21949# Configured defaults for sys_lib_dlsearch_path munging. 21950: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21951 21952# ### BEGIN LIBTOOL CONFIG 21953 21954# Whether or not to build static libraries. 21955build_old_libs=$enable_static 21956 21957# Which release of libtool.m4 was used? 21958macro_version=$macro_version 21959macro_revision=$macro_revision 21960 21961# Whether or not to build shared libraries. 21962build_libtool_libs=$enable_shared 21963 21964# What type of objects to build. 21965pic_mode=$pic_mode 21966 21967# Whether or not to optimize for fast installation. 21968fast_install=$enable_fast_install 21969 21970# Shared archive member basename,for filename based shared library versioning on AIX. 21971shared_archive_member_spec=$shared_archive_member_spec 21972 21973# Shell to use when invoking shell scripts. 21974SHELL=$lt_SHELL 21975 21976# An echo program that protects backslashes. 21977ECHO=$lt_ECHO 21978 21979# The PATH separator for the build system. 21980PATH_SEPARATOR=$lt_PATH_SEPARATOR 21981 21982# The host system. 21983host_alias=$host_alias 21984host=$host 21985host_os=$host_os 21986 21987# The build system. 21988build_alias=$build_alias 21989build=$build 21990build_os=$build_os 21991 21992# A sed program that does not truncate output. 21993SED=$lt_SED 21994 21995# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21996Xsed="\$SED -e 1s/^X//" 21997 21998# A grep program that handles long lines. 21999GREP=$lt_GREP 22000 22001# An ERE matcher. 22002EGREP=$lt_EGREP 22003 22004# A literal string matcher. 22005FGREP=$lt_FGREP 22006 22007# A BSD- or MS-compatible name lister. 22008NM=$lt_NM 22009 22010# Whether we need soft or hard links. 22011LN_S=$lt_LN_S 22012 22013# What is the maximum length of a command? 22014max_cmd_len=$max_cmd_len 22015 22016# Object file suffix (normally "o"). 22017objext=$ac_objext 22018 22019# Executable file suffix (normally ""). 22020exeext=$exeext 22021 22022# whether the shell understands "unset". 22023lt_unset=$lt_unset 22024 22025# turn spaces into newlines. 22026SP2NL=$lt_lt_SP2NL 22027 22028# turn newlines into spaces. 22029NL2SP=$lt_lt_NL2SP 22030 22031# convert \$build file names to \$host format. 22032to_host_file_cmd=$lt_cv_to_host_file_cmd 22033 22034# convert \$build files to toolchain format. 22035to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22036 22037# An object symbol dumper. 22038OBJDUMP=$lt_OBJDUMP 22039 22040# Method to check whether dependent libraries are shared objects. 22041deplibs_check_method=$lt_deplibs_check_method 22042 22043# Command to use when deplibs_check_method = "file_magic". 22044file_magic_cmd=$lt_file_magic_cmd 22045 22046# How to find potential files when deplibs_check_method = "file_magic". 22047file_magic_glob=$lt_file_magic_glob 22048 22049# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22050want_nocaseglob=$lt_want_nocaseglob 22051 22052# DLL creation program. 22053DLLTOOL=$lt_DLLTOOL 22054 22055# Command to associate shared and link libraries. 22056sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22057 22058# The archiver. 22059AR=$lt_AR 22060 22061# Flags to create an archive. 22062AR_FLAGS=$lt_AR_FLAGS 22063 22064# How to feed a file listing to the archiver. 22065archiver_list_spec=$lt_archiver_list_spec 22066 22067# A symbol stripping program. 22068STRIP=$lt_STRIP 22069 22070# Commands used to install an old-style archive. 22071RANLIB=$lt_RANLIB 22072old_postinstall_cmds=$lt_old_postinstall_cmds 22073old_postuninstall_cmds=$lt_old_postuninstall_cmds 22074 22075# Whether to use a lock for old archive extraction. 22076lock_old_archive_extraction=$lock_old_archive_extraction 22077 22078# A C compiler. 22079LTCC=$lt_CC 22080 22081# LTCC compiler flags. 22082LTCFLAGS=$lt_CFLAGS 22083 22084# Take the output of nm and produce a listing of raw symbols and C names. 22085global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22086 22087# Transform the output of nm in a proper C declaration. 22088global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22089 22090# Transform the output of nm into a list of symbols to manually relocate. 22091global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22092 22093# Transform the output of nm in a C name address pair. 22094global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22095 22096# Transform the output of nm in a C name address pair when lib prefix is needed. 22097global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22098 22099# The name lister interface. 22100nm_interface=$lt_lt_cv_nm_interface 22101 22102# Specify filename containing input files for \$NM. 22103nm_file_list_spec=$lt_nm_file_list_spec 22104 22105# The root where to search for dependent libraries,and where our libraries should be installed. 22106lt_sysroot=$lt_sysroot 22107 22108# Command to truncate a binary pipe. 22109lt_truncate_bin=$lt_lt_cv_truncate_bin 22110 22111# The name of the directory that contains temporary libtool files. 22112objdir=$objdir 22113 22114# Used to examine libraries when file_magic_cmd begins with "file". 22115MAGIC_CMD=$MAGIC_CMD 22116 22117# Must we lock files when doing compilation? 22118need_locks=$lt_need_locks 22119 22120# Manifest tool. 22121MANIFEST_TOOL=$lt_MANIFEST_TOOL 22122 22123# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22124DSYMUTIL=$lt_DSYMUTIL 22125 22126# Tool to change global to local symbols on Mac OS X. 22127NMEDIT=$lt_NMEDIT 22128 22129# Tool to manipulate fat objects and archives on Mac OS X. 22130LIPO=$lt_LIPO 22131 22132# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22133OTOOL=$lt_OTOOL 22134 22135# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22136OTOOL64=$lt_OTOOL64 22137 22138# Old archive suffix (normally "a"). 22139libext=$libext 22140 22141# Shared library suffix (normally ".so"). 22142shrext_cmds=$lt_shrext_cmds 22143 22144# The commands to extract the exported symbol list from a shared archive. 22145extract_expsyms_cmds=$lt_extract_expsyms_cmds 22146 22147# Variables whose values should be saved in libtool wrapper scripts and 22148# restored at link time. 22149variables_saved_for_relink=$lt_variables_saved_for_relink 22150 22151# Do we need the "lib" prefix for modules? 22152need_lib_prefix=$need_lib_prefix 22153 22154# Do we need a version for libraries? 22155need_version=$need_version 22156 22157# Library versioning type. 22158version_type=$version_type 22159 22160# Shared library runtime path variable. 22161runpath_var=$runpath_var 22162 22163# Shared library path variable. 22164shlibpath_var=$shlibpath_var 22165 22166# Is shlibpath searched before the hard-coded library search path? 22167shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22168 22169# Format of library name prefix. 22170libname_spec=$lt_libname_spec 22171 22172# List of archive names. First name is the real one, the rest are links. 22173# The last name is the one that the linker finds with -lNAME 22174library_names_spec=$lt_library_names_spec 22175 22176# The coded name of the library, if different from the real name. 22177soname_spec=$lt_soname_spec 22178 22179# Permission mode override for installation of shared libraries. 22180install_override_mode=$lt_install_override_mode 22181 22182# Command to use after installation of a shared archive. 22183postinstall_cmds=$lt_postinstall_cmds 22184 22185# Command to use after uninstallation of a shared archive. 22186postuninstall_cmds=$lt_postuninstall_cmds 22187 22188# Commands used to finish a libtool library installation in a directory. 22189finish_cmds=$lt_finish_cmds 22190 22191# As "finish_cmds", except a single script fragment to be evaled but 22192# not shown. 22193finish_eval=$lt_finish_eval 22194 22195# Whether we should hardcode library paths into libraries. 22196hardcode_into_libs=$hardcode_into_libs 22197 22198# Compile-time system search path for libraries. 22199sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22200 22201# Detected run-time system search path for libraries. 22202sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22203 22204# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22205configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22206 22207# Whether dlopen is supported. 22208dlopen_support=$enable_dlopen 22209 22210# Whether dlopen of programs is supported. 22211dlopen_self=$enable_dlopen_self 22212 22213# Whether dlopen of statically linked programs is supported. 22214dlopen_self_static=$enable_dlopen_self_static 22215 22216# Commands to strip libraries. 22217old_striplib=$lt_old_striplib 22218striplib=$lt_striplib 22219 22220 22221# The linker used to build libraries. 22222LD=$lt_LD 22223 22224# How to create reloadable object files. 22225reload_flag=$lt_reload_flag 22226reload_cmds=$lt_reload_cmds 22227 22228# Commands used to build an old-style archive. 22229old_archive_cmds=$lt_old_archive_cmds 22230 22231# A language specific compiler. 22232CC=$lt_compiler 22233 22234# Is the compiler the GNU compiler? 22235with_gcc=$GCC 22236 22237# Compiler flag to turn off builtin functions. 22238no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22239 22240# Additional compiler flags for building library objects. 22241pic_flag=$lt_lt_prog_compiler_pic 22242 22243# How to pass a linker flag through the compiler. 22244wl=$lt_lt_prog_compiler_wl 22245 22246# Compiler flag to prevent dynamic linking. 22247link_static_flag=$lt_lt_prog_compiler_static 22248 22249# Does compiler simultaneously support -c and -o options? 22250compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22251 22252# Whether or not to add -lc for building shared libraries. 22253build_libtool_need_lc=$archive_cmds_need_lc 22254 22255# Whether or not to disallow shared libs when runtime libs are static. 22256allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22257 22258# Compiler flag to allow reflexive dlopens. 22259export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22260 22261# Compiler flag to generate shared objects directly from archives. 22262whole_archive_flag_spec=$lt_whole_archive_flag_spec 22263 22264# Whether the compiler copes with passing no objects directly. 22265compiler_needs_object=$lt_compiler_needs_object 22266 22267# Create an old-style archive from a shared archive. 22268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22269 22270# Create a temporary old-style archive to link instead of a shared archive. 22271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22272 22273# Commands used to build a shared archive. 22274archive_cmds=$lt_archive_cmds 22275archive_expsym_cmds=$lt_archive_expsym_cmds 22276 22277# Commands used to build a loadable module if different from building 22278# a shared archive. 22279module_cmds=$lt_module_cmds 22280module_expsym_cmds=$lt_module_expsym_cmds 22281 22282# Whether we are building with GNU ld or not. 22283with_gnu_ld=$lt_with_gnu_ld 22284 22285# Flag that allows shared libraries with undefined symbols to be built. 22286allow_undefined_flag=$lt_allow_undefined_flag 22287 22288# Flag that enforces no undefined symbols. 22289no_undefined_flag=$lt_no_undefined_flag 22290 22291# Flag to hardcode \$libdir into a binary during linking. 22292# This must work even if \$libdir does not exist 22293hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22294 22295# Whether we need a single "-rpath" flag with a separated argument. 22296hardcode_libdir_separator=$lt_hardcode_libdir_separator 22297 22298# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22299# DIR into the resulting binary. 22300hardcode_direct=$hardcode_direct 22301 22302# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22303# DIR into the resulting binary and the resulting library dependency is 22304# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22305# library is relocated. 22306hardcode_direct_absolute=$hardcode_direct_absolute 22307 22308# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22309# into the resulting binary. 22310hardcode_minus_L=$hardcode_minus_L 22311 22312# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22313# into the resulting binary. 22314hardcode_shlibpath_var=$hardcode_shlibpath_var 22315 22316# Set to "yes" if building a shared library automatically hardcodes DIR 22317# into the library and all subsequent libraries and executables linked 22318# against it. 22319hardcode_automatic=$hardcode_automatic 22320 22321# Set to yes if linker adds runtime paths of dependent libraries 22322# to runtime path list. 22323inherit_rpath=$inherit_rpath 22324 22325# Whether libtool must link a program against all its dependency libraries. 22326link_all_deplibs=$link_all_deplibs 22327 22328# Set to "yes" if exported symbols are required. 22329always_export_symbols=$always_export_symbols 22330 22331# The commands to list exported symbols. 22332export_symbols_cmds=$lt_export_symbols_cmds 22333 22334# Symbols that should not be listed in the preloaded symbols. 22335exclude_expsyms=$lt_exclude_expsyms 22336 22337# Symbols that must always be exported. 22338include_expsyms=$lt_include_expsyms 22339 22340# Commands necessary for linking programs (against libraries) with templates. 22341prelink_cmds=$lt_prelink_cmds 22342 22343# Commands necessary for finishing linking programs. 22344postlink_cmds=$lt_postlink_cmds 22345 22346# Specify filename containing input files. 22347file_list_spec=$lt_file_list_spec 22348 22349# How to hardcode a shared library path into an executable. 22350hardcode_action=$hardcode_action 22351 22352# ### END LIBTOOL CONFIG 22353 22354_LT_EOF 22355 22356 cat <<'_LT_EOF' >> "$cfgfile" 22357 22358# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22359 22360# func_munge_path_list VARIABLE PATH 22361# ----------------------------------- 22362# VARIABLE is name of variable containing _space_ separated list of 22363# directories to be munged by the contents of PATH, which is string 22364# having a format: 22365# "DIR[:DIR]:" 22366# string "DIR[ DIR]" will be prepended to VARIABLE 22367# ":DIR[:DIR]" 22368# string "DIR[ DIR]" will be appended to VARIABLE 22369# "DIRP[:DIRP]::[DIRA:]DIRA" 22370# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22371# "DIRA[ DIRA]" will be appended to VARIABLE 22372# "DIR[:DIR]" 22373# VARIABLE will be replaced by "DIR[ DIR]" 22374func_munge_path_list () 22375{ 22376 case x$2 in 22377 x) 22378 ;; 22379 *:) 22380 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22381 ;; 22382 x:*) 22383 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22384 ;; 22385 *::*) 22386 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22387 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22388 ;; 22389 *) 22390 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22391 ;; 22392 esac 22393} 22394 22395 22396# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22397func_cc_basename () 22398{ 22399 for cc_temp in $*""; do 22400 case $cc_temp in 22401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22403 \-*) ;; 22404 *) break;; 22405 esac 22406 done 22407 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22408} 22409 22410 22411# ### END FUNCTIONS SHARED WITH CONFIGURE 22412 22413_LT_EOF 22414 22415 case $host_os in 22416 aix3*) 22417 cat <<\_LT_EOF >> "$cfgfile" 22418# AIX sometimes has problems with the GCC collect2 program. For some 22419# reason, if we set the COLLECT_NAMES environment variable, the problems 22420# vanish in a puff of smoke. 22421if test set != "${COLLECT_NAMES+set}"; then 22422 COLLECT_NAMES= 22423 export COLLECT_NAMES 22424fi 22425_LT_EOF 22426 ;; 22427 esac 22428 22429 22430ltmain=$ac_aux_dir/ltmain.sh 22431 22432 22433 # We use sed instead of cat because bash on DJGPP gets confused if 22434 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22435 # text mode, it properly converts lines to CR/LF. This bash problem 22436 # is reportedly fixed, but why not run on old versions too? 22437 sed '$q' "$ltmain" >> "$cfgfile" \ 22438 || (rm -f "$cfgfile"; exit 1) 22439 22440 mv -f "$cfgfile" "$ofile" || 22441 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22442 chmod +x "$ofile" 22443 22444 ;; 22445 22446 esac 22447done # for ac_tag 22448 22449 22450as_fn_exit 0 22451_ACEOF 22452ac_clean_files=$ac_clean_files_save 22453 22454test $ac_write_fail = 0 || 22455 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22456 22457 22458# configure is writing to config.log, and then calls config.status. 22459# config.status does its own redirection, appending to config.log. 22460# Unfortunately, on DOS this fails, as config.log is still kept open 22461# by configure, so config.status won't be able to write to it; its 22462# output is simply discarded. So we exec the FD to /dev/null, 22463# effectively closing config.log, so it can be properly (re)opened and 22464# appended to by config.status. When coming back to configure, we 22465# need to make the FD available again. 22466if test "$no_create" != yes; then 22467 ac_cs_success=: 22468 ac_config_status_args= 22469 test "$silent" = yes && 22470 ac_config_status_args="$ac_config_status_args --quiet" 22471 exec 5>/dev/null 22472 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22473 exec 5>>config.log 22474 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22475 # would make configure fail if this is the last instruction. 22476 $ac_cs_success || as_fn_exit 1 22477fi 22478if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22480$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22481fi 22482 22483 22484echo "" 22485echo " prefix: $prefix" 22486echo " exec_prefix: $exec_prefix" 22487echo " libdir: $libdir" 22488echo " includedir: $includedir" 22489 22490echo "" 22491echo " CFLAGS: $CFLAGS" 22492echo " CXXFLAGS: $CXXFLAGS" 22493echo " Macros: $DEFINES" 22494 22495echo "" 22496echo " Run '${MAKE-make}' to build xf86-video-nouveau" 22497echo "" 22498