configure revision f395c03e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-siliconmotion 1.7.9. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion 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-siliconmotion' 593PACKAGE_TARNAME='xf86-video-siliconmotion' 594PACKAGE_VERSION='1.7.9' 595PACKAGE_STRING='xf86-video-siliconmotion 1.7.9' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion' 597PACKAGE_URL='' 598 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_unique_file="Makefile.am" 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642XAA_FALSE 643XAA_TRUE 644XMODES_FALSE 645XMODES_TRUE 646XSERVER_LIBPCIACCESS_FALSE 647XSERVER_LIBPCIACCESS_TRUE 648PCIACCESS_LIBS 649PCIACCESS_CFLAGS 650HAVE_XEXTPROTO_71_FALSE 651HAVE_XEXTPROTO_71_TRUE 652XEXT_LIBS 653XEXT_CFLAGS 654XORG_LIBS 655XORG_CFLAGS 656LT_SYS_LIBRARY_PATH 657OTOOL64 658OTOOL 659LIPO 660NMEDIT 661DSYMUTIL 662MANIFEST_TOOL 663RANLIB 664ac_ct_AR 665AR 666DLLTOOL 667OBJDUMP 668LN_S 669NM 670ac_ct_DUMPBIN 671DUMPBIN 672LD 673FGREP 674LIBTOOL 675MAINT 676MAINTAINER_MODE_FALSE 677MAINTAINER_MODE_TRUE 678am__fastdepCC_FALSE 679am__fastdepCC_TRUE 680CCDEPMODE 681am__nodep 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__quote 686am__include 687DEPDIR 688am__untar 689am__tar 690AMTAR 691am__leading_dot 692SET_MAKE 693AWK 694mkdir_p 695MKDIR_P 696INSTALL_STRIP_PROGRAM 697STRIP 698install_sh 699MAKEINFO 700AUTOHEADER 701AUTOMAKE 702AUTOCONF 703ACLOCAL 704VERSION 705PACKAGE 706CYGPATH_W 707am__isrc 708AM_BACKSLASH 709AM_DEFAULT_VERBOSITY 710AM_DEFAULT_V 711AM_V 712MAN_SUBSTS 713XORG_MAN_PAGE 714ADMIN_MAN_DIR 715DRIVER_MAN_DIR 716MISC_MAN_DIR 717FILE_MAN_DIR 718LIB_MAN_DIR 719APP_MAN_DIR 720ADMIN_MAN_SUFFIX 721DRIVER_MAN_SUFFIX 722MISC_MAN_SUFFIX 723FILE_MAN_SUFFIX 724LIB_MAN_SUFFIX 725APP_MAN_SUFFIX 726SED 727host_os 728host_vendor 729host_cpu 730host 731build_os 732build_vendor 733build_cpu 734build 735INSTALL_CMD 736PKG_CONFIG_LIBDIR 737PKG_CONFIG_PATH 738PKG_CONFIG 739CHANGELOG_CMD 740STRICT_CFLAGS 741CWARNFLAGS 742BASE_CFLAGS 743EGREP 744GREP 745CPP 746OBJEXT 747EXEEXT 748ac_ct_CC 749CPPFLAGS 750LDFLAGS 751CFLAGS 752CC 753INSTALL_DATA 754INSTALL_SCRIPT 755INSTALL_PROGRAM 756target_alias 757host_alias 758build_alias 759LIBS 760ECHO_T 761ECHO_N 762ECHO_C 763DEFS 764mandir 765localedir 766libdir 767psdir 768pdfdir 769dvidir 770htmldir 771infodir 772docdir 773oldincludedir 774includedir 775localstatedir 776sharedstatedir 777sysconfdir 778datadir 779datarootdir 780libexecdir 781sbindir 782bindir 783program_transform_name 784prefix 785exec_prefix 786PACKAGE_URL 787PACKAGE_BUGREPORT 788PACKAGE_STRING 789PACKAGE_VERSION 790PACKAGE_TARNAME 791PACKAGE_NAME 792PATH_SEPARATOR 793SHELL' 794ac_subst_files='' 795ac_user_opts=' 796enable_option_checking 797enable_selective_werror 798enable_strict_compilation 799enable_silent_rules 800enable_dependency_tracking 801enable_maintainer_mode 802enable_static 803enable_shared 804with_pic 805enable_fast_install 806with_aix_soname 807with_gnu_ld 808with_sysroot 809enable_libtool_lock 810with_xorg_module_dir 811enable_xaa 812' 813 ac_precious_vars='build_alias 814host_alias 815target_alias 816CC 817CFLAGS 818LDFLAGS 819LIBS 820CPPFLAGS 821CPP 822PKG_CONFIG 823PKG_CONFIG_PATH 824PKG_CONFIG_LIBDIR 825LT_SYS_LIBRARY_PATH 826XORG_CFLAGS 827XORG_LIBS 828XEXT_CFLAGS 829XEXT_LIBS 830PCIACCESS_CFLAGS 831PCIACCESS_LIBS' 832 833 834# Initialize some variables set by options. 835ac_init_help= 836ac_init_version=false 837ac_unrecognized_opts= 838ac_unrecognized_sep= 839# The variables have the same names as the options, with 840# dashes changed to underlines. 841cache_file=/dev/null 842exec_prefix=NONE 843no_create= 844no_recursion= 845prefix=NONE 846program_prefix=NONE 847program_suffix=NONE 848program_transform_name=s,x,x, 849silent= 850site= 851srcdir= 852verbose= 853x_includes=NONE 854x_libraries=NONE 855 856# Installation directory options. 857# These are left unexpanded so users can "make install exec_prefix=/foo" 858# and all the variables that are supposed to be based on exec_prefix 859# by default will actually change. 860# Use braces instead of parens because sh, perl, etc. also accept them. 861# (The list follows the same order as the GNU Coding Standards.) 862bindir='${exec_prefix}/bin' 863sbindir='${exec_prefix}/sbin' 864libexecdir='${exec_prefix}/libexec' 865datarootdir='${prefix}/share' 866datadir='${datarootdir}' 867sysconfdir='${prefix}/etc' 868sharedstatedir='${prefix}/com' 869localstatedir='${prefix}/var' 870includedir='${prefix}/include' 871oldincludedir='/usr/include' 872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 873infodir='${datarootdir}/info' 874htmldir='${docdir}' 875dvidir='${docdir}' 876pdfdir='${docdir}' 877psdir='${docdir}' 878libdir='${exec_prefix}/lib' 879localedir='${datarootdir}/locale' 880mandir='${datarootdir}/man' 881 882ac_prev= 883ac_dashdash= 884for ac_option 885do 886 # If the previous option needs an argument, assign it. 887 if test -n "$ac_prev"; then 888 eval $ac_prev=\$ac_option 889 ac_prev= 890 continue 891 fi 892 893 case $ac_option in 894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 *=) ac_optarg= ;; 896 *) ac_optarg=yes ;; 897 esac 898 899 # Accept the important Cygnus configure options, so we can diagnose typos. 900 901 case $ac_dashdash$ac_option in 902 --) 903 ac_dashdash=yes ;; 904 905 -bindir | --bindir | --bindi | --bind | --bin | --bi) 906 ac_prev=bindir ;; 907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 908 bindir=$ac_optarg ;; 909 910 -build | --build | --buil | --bui | --bu) 911 ac_prev=build_alias ;; 912 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 913 build_alias=$ac_optarg ;; 914 915 -cache-file | --cache-file | --cache-fil | --cache-fi \ 916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 917 ac_prev=cache_file ;; 918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 920 cache_file=$ac_optarg ;; 921 922 --config-cache | -C) 923 cache_file=config.cache ;; 924 925 -datadir | --datadir | --datadi | --datad) 926 ac_prev=datadir ;; 927 -datadir=* | --datadir=* | --datadi=* | --datad=*) 928 datadir=$ac_optarg ;; 929 930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 931 | --dataroo | --dataro | --datar) 932 ac_prev=datarootdir ;; 933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 935 datarootdir=$ac_optarg ;; 936 937 -disable-* | --disable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=no ;; 952 953 -docdir | --docdir | --docdi | --doc | --do) 954 ac_prev=docdir ;; 955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 956 docdir=$ac_optarg ;; 957 958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 959 ac_prev=dvidir ;; 960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 961 dvidir=$ac_optarg ;; 962 963 -enable-* | --enable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=\$ac_optarg ;; 978 979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 981 | --exec | --exe | --ex) 982 ac_prev=exec_prefix ;; 983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 985 | --exec=* | --exe=* | --ex=*) 986 exec_prefix=$ac_optarg ;; 987 988 -gas | --gas | --ga | --g) 989 # Obsolete; use --with-gas. 990 with_gas=yes ;; 991 992 -help | --help | --hel | --he | -h) 993 ac_init_help=long ;; 994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 995 ac_init_help=recursive ;; 996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 997 ac_init_help=short ;; 998 999 -host | --host | --hos | --ho) 1000 ac_prev=host_alias ;; 1001 -host=* | --host=* | --hos=* | --ho=*) 1002 host_alias=$ac_optarg ;; 1003 1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1005 ac_prev=htmldir ;; 1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1007 | --ht=*) 1008 htmldir=$ac_optarg ;; 1009 1010 -includedir | --includedir | --includedi | --included | --include \ 1011 | --includ | --inclu | --incl | --inc) 1012 ac_prev=includedir ;; 1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1014 | --includ=* | --inclu=* | --incl=* | --inc=*) 1015 includedir=$ac_optarg ;; 1016 1017 -infodir | --infodir | --infodi | --infod | --info | --inf) 1018 ac_prev=infodir ;; 1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1020 infodir=$ac_optarg ;; 1021 1022 -libdir | --libdir | --libdi | --libd) 1023 ac_prev=libdir ;; 1024 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1025 libdir=$ac_optarg ;; 1026 1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1028 | --libexe | --libex | --libe) 1029 ac_prev=libexecdir ;; 1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1031 | --libexe=* | --libex=* | --libe=*) 1032 libexecdir=$ac_optarg ;; 1033 1034 -localedir | --localedir | --localedi | --localed | --locale) 1035 ac_prev=localedir ;; 1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1037 localedir=$ac_optarg ;; 1038 1039 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1040 | --localstate | --localstat | --localsta | --localst | --locals) 1041 ac_prev=localstatedir ;; 1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1044 localstatedir=$ac_optarg ;; 1045 1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1047 ac_prev=mandir ;; 1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1049 mandir=$ac_optarg ;; 1050 1051 -nfp | --nfp | --nf) 1052 # Obsolete; use --without-fp. 1053 with_fp=no ;; 1054 1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1056 | --no-cr | --no-c | -n) 1057 no_create=yes ;; 1058 1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1061 no_recursion=yes ;; 1062 1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1065 | --oldin | --oldi | --old | --ol | --o) 1066 ac_prev=oldincludedir ;; 1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1070 oldincludedir=$ac_optarg ;; 1071 1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1073 ac_prev=prefix ;; 1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1075 prefix=$ac_optarg ;; 1076 1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1078 | --program-pre | --program-pr | --program-p) 1079 ac_prev=program_prefix ;; 1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1082 program_prefix=$ac_optarg ;; 1083 1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1085 | --program-suf | --program-su | --program-s) 1086 ac_prev=program_suffix ;; 1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1089 program_suffix=$ac_optarg ;; 1090 1091 -program-transform-name | --program-transform-name \ 1092 | --program-transform-nam | --program-transform-na \ 1093 | --program-transform-n | --program-transform- \ 1094 | --program-transform | --program-transfor \ 1095 | --program-transfo | --program-transf \ 1096 | --program-trans | --program-tran \ 1097 | --progr-tra | --program-tr | --program-t) 1098 ac_prev=program_transform_name ;; 1099 -program-transform-name=* | --program-transform-name=* \ 1100 | --program-transform-nam=* | --program-transform-na=* \ 1101 | --program-transform-n=* | --program-transform-=* \ 1102 | --program-transform=* | --program-transfor=* \ 1103 | --program-transfo=* | --program-transf=* \ 1104 | --program-trans=* | --program-tran=* \ 1105 | --progr-tra=* | --program-tr=* | --program-t=*) 1106 program_transform_name=$ac_optarg ;; 1107 1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1109 ac_prev=pdfdir ;; 1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1111 pdfdir=$ac_optarg ;; 1112 1113 -psdir | --psdir | --psdi | --psd | --ps) 1114 ac_prev=psdir ;; 1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1116 psdir=$ac_optarg ;; 1117 1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1119 | -silent | --silent | --silen | --sile | --sil) 1120 silent=yes ;; 1121 1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1123 ac_prev=sbindir ;; 1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1125 | --sbi=* | --sb=*) 1126 sbindir=$ac_optarg ;; 1127 1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1130 | --sharedst | --shareds | --shared | --share | --shar \ 1131 | --sha | --sh) 1132 ac_prev=sharedstatedir ;; 1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1136 | --sha=* | --sh=*) 1137 sharedstatedir=$ac_optarg ;; 1138 1139 -site | --site | --sit) 1140 ac_prev=site ;; 1141 -site=* | --site=* | --sit=*) 1142 site=$ac_optarg ;; 1143 1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1145 ac_prev=srcdir ;; 1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1147 srcdir=$ac_optarg ;; 1148 1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1150 | --syscon | --sysco | --sysc | --sys | --sy) 1151 ac_prev=sysconfdir ;; 1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1154 sysconfdir=$ac_optarg ;; 1155 1156 -target | --target | --targe | --targ | --tar | --ta | --t) 1157 ac_prev=target_alias ;; 1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1159 target_alias=$ac_optarg ;; 1160 1161 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1162 verbose=yes ;; 1163 1164 -version | --version | --versio | --versi | --vers | -V) 1165 ac_init_version=: ;; 1166 1167 -with-* | --with-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=\$ac_optarg ;; 1182 1183 -without-* | --without-*) 1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1185 # Reject names that are not valid shell variable names. 1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1187 as_fn_error $? "invalid package name: $ac_useropt" 1188 ac_useropt_orig=$ac_useropt 1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1190 case $ac_user_opts in 1191 *" 1192"with_$ac_useropt" 1193"*) ;; 1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1195 ac_unrecognized_sep=', ';; 1196 esac 1197 eval with_$ac_useropt=no ;; 1198 1199 --x) 1200 # Obsolete; use --with-x. 1201 with_x=yes ;; 1202 1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1204 | --x-incl | --x-inc | --x-in | --x-i) 1205 ac_prev=x_includes ;; 1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1208 x_includes=$ac_optarg ;; 1209 1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1212 ac_prev=x_libraries ;; 1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1215 x_libraries=$ac_optarg ;; 1216 1217 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1218Try \`$0 --help' for more information" 1219 ;; 1220 1221 *=*) 1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1223 # Reject names that are not valid shell variable names. 1224 case $ac_envvar in #( 1225 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1227 esac 1228 eval $ac_envvar=\$ac_optarg 1229 export $ac_envvar ;; 1230 1231 *) 1232 # FIXME: should be removed in autoconf 3.0. 1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1237 ;; 1238 1239 esac 1240done 1241 1242if test -n "$ac_prev"; then 1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1244 as_fn_error $? "missing argument to $ac_option" 1245fi 1246 1247if test -n "$ac_unrecognized_opts"; then 1248 case $enable_option_checking in 1249 no) ;; 1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1252 esac 1253fi 1254 1255# Check all directory arguments for consistency. 1256for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1257 datadir sysconfdir sharedstatedir localstatedir includedir \ 1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1259 libdir localedir mandir 1260do 1261 eval ac_val=\$$ac_var 1262 # Remove trailing slashes. 1263 case $ac_val in 1264 */ ) 1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1266 eval $ac_var=\$ac_val;; 1267 esac 1268 # Be sure to have absolute directory names. 1269 case $ac_val in 1270 [\\/$]* | ?:[\\/]* ) continue;; 1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1272 esac 1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1274done 1275 1276# There might be people who depend on the old broken behavior: `$host' 1277# used to hold the argument of --host etc. 1278# FIXME: To remove some day. 1279build=$build_alias 1280host=$host_alias 1281target=$target_alias 1282 1283# FIXME: To remove some day. 1284if test "x$host_alias" != x; then 1285 if test "x$build_alias" = x; then 1286 cross_compiling=maybe 1287 elif test "x$build_alias" != "x$host_alias"; then 1288 cross_compiling=yes 1289 fi 1290fi 1291 1292ac_tool_prefix= 1293test -n "$host_alias" && ac_tool_prefix=$host_alias- 1294 1295test "$silent" = yes && exec 6>/dev/null 1296 1297 1298ac_pwd=`pwd` && test -n "$ac_pwd" && 1299ac_ls_di=`ls -di .` && 1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1301 as_fn_error $? "working directory cannot be determined" 1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1303 as_fn_error $? "pwd does not report name of working directory" 1304 1305 1306# Find the source files, if location was not specified. 1307if test -z "$srcdir"; then 1308 ac_srcdir_defaulted=yes 1309 # Try the directory containing this script, then the parent directory. 1310 ac_confdir=`$as_dirname -- "$as_myself" || 1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1312 X"$as_myself" : 'X\(//\)[^/]' \| \ 1313 X"$as_myself" : 'X\(//\)$' \| \ 1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1315$as_echo X"$as_myself" | 1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\/\)[^/].*/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)$/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\).*/{ 1329 s//\1/ 1330 q 1331 } 1332 s/.*/./; q'` 1333 srcdir=$ac_confdir 1334 if test ! -r "$srcdir/$ac_unique_file"; then 1335 srcdir=.. 1336 fi 1337else 1338 ac_srcdir_defaulted=no 1339fi 1340if test ! -r "$srcdir/$ac_unique_file"; then 1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1343fi 1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1345ac_abs_confdir=`( 1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1347 pwd)` 1348# When building in place, set srcdir=. 1349if test "$ac_abs_confdir" = "$ac_pwd"; then 1350 srcdir=. 1351fi 1352# Remove unnecessary trailing slashes from srcdir. 1353# Double slashes in file names in object file debugging info 1354# mess up M-x gdb in Emacs. 1355case $srcdir in 1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1357esac 1358for ac_var in $ac_precious_vars; do 1359 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_env_${ac_var}_value=\$${ac_var} 1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1363done 1364 1365# 1366# Report the --help message. 1367# 1368if test "$ac_init_help" = "long"; then 1369 # Omit some internal or obsolete options to make the list less imposing. 1370 # This message is too long to be a string in the A/UX 3.1 sh. 1371 cat <<_ACEOF 1372\`configure' configures xf86-video-siliconmotion 1.7.9 to adapt to many kinds of systems. 1373 1374Usage: $0 [OPTION]... [VAR=VALUE]... 1375 1376To assign environment variables (e.g., CC, CFLAGS...), specify them as 1377VAR=VALUE. See below for descriptions of some of the useful variables. 1378 1379Defaults for the options are specified in brackets. 1380 1381Configuration: 1382 -h, --help display this help and exit 1383 --help=short display options specific to this package 1384 --help=recursive display the short help of all the included packages 1385 -V, --version display version information and exit 1386 -q, --quiet, --silent do not print \`checking ...' messages 1387 --cache-file=FILE cache test results in FILE [disabled] 1388 -C, --config-cache alias for \`--cache-file=config.cache' 1389 -n, --no-create do not create output files 1390 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1391 1392Installation directories: 1393 --prefix=PREFIX install architecture-independent files in PREFIX 1394 [$ac_default_prefix] 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1396 [PREFIX] 1397 1398By default, \`make install' will install all the files in 1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1400an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1401for instance \`--prefix=\$HOME'. 1402 1403For better control, use the options below. 1404 1405Fine tuning of the installation directories: 1406 --bindir=DIR user executables [EPREFIX/bin] 1407 --sbindir=DIR system admin executables [EPREFIX/sbin] 1408 --libexecdir=DIR program executables [EPREFIX/libexec] 1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1412 --libdir=DIR object code libraries [EPREFIX/lib] 1413 --includedir=DIR C header files [PREFIX/include] 1414 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1417 --infodir=DIR info documentation [DATAROOTDIR/info] 1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1419 --mandir=DIR man documentation [DATAROOTDIR/man] 1420 --docdir=DIR documentation root 1421 [DATAROOTDIR/doc/xf86-video-siliconmotion] 1422 --htmldir=DIR html documentation [DOCDIR] 1423 --dvidir=DIR dvi documentation [DOCDIR] 1424 --pdfdir=DIR pdf documentation [DOCDIR] 1425 --psdir=DIR ps documentation [DOCDIR] 1426_ACEOF 1427 1428 cat <<\_ACEOF 1429 1430Program names: 1431 --program-prefix=C prepend C to installed program names 1432 --program-suffix=SUFFIX append SUFFIX to installed program names 1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1434 1435System types: 1436 --build=BUILD configure for building on BUILD [guessed] 1437 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1438_ACEOF 1439fi 1440 1441if test -n "$ac_init_help"; then 1442 case $ac_init_help in 1443 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.9:";; 1444 esac 1445 cat <<\_ACEOF 1446 1447Optional Features: 1448 --disable-option-checking ignore unrecognized --enable/--with options 1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1451 --disable-selective-werror 1452 Turn off selective compiler errors. (default: 1453 enabled) 1454 --enable-strict-compilation 1455 Enable all warnings from compiler and make them 1456 errors (default: disabled) 1457 --enable-silent-rules less verbose build output (undo: "make V=1") 1458 --disable-silent-rules verbose build output (undo: "make V=0") 1459 --enable-dependency-tracking 1460 do not reject slow dependency extractors 1461 --disable-dependency-tracking 1462 speeds up one-time build 1463 --enable-maintainer-mode 1464 enable make rules and dependencies not useful (and 1465 sometimes confusing) to the casual installer 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 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1472 [default=auto] 1473 1474Optional Packages: 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1478 both] 1479 --with-aix-soname=aix|svr4|both 1480 shared library versioning (aka "SONAME") variant to 1481 provide on AIX, [default=aix]. 1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1483 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1484 compiler's sysroot if not specified). 1485 --with-xorg-module-dir=DIR 1486 Default xorg module directory 1487 [[default=$libdir/xorg/modules]] 1488 1489Some influential environment variables: 1490 CC C compiler command 1491 CFLAGS C compiler flags 1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1493 nonstandard directory <lib dir> 1494 LIBS libraries to pass to the linker, e.g. -l<library> 1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1496 you have headers in a nonstandard directory <include dir> 1497 CPP C preprocessor 1498 PKG_CONFIG path to pkg-config utility 1499 PKG_CONFIG_PATH 1500 directories to add to pkg-config's search path 1501 PKG_CONFIG_LIBDIR 1502 path overriding pkg-config's built-in search path 1503 LT_SYS_LIBRARY_PATH 1504 User-defined run-time library search path. 1505 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1506 XORG_LIBS linker flags for XORG, overriding pkg-config 1507 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1508 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1509 PCIACCESS_CFLAGS 1510 C compiler flags for PCIACCESS, overriding pkg-config 1511 PCIACCESS_LIBS 1512 linker flags for PCIACCESS, overriding pkg-config 1513 1514Use these variables to override the choices made by `configure' or to help 1515it to find libraries and programs with nonstandard names/locations. 1516 1517Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>. 1518_ACEOF 1519ac_status=$? 1520fi 1521 1522if test "$ac_init_help" = "recursive"; then 1523 # If there are subdirs, report their specific --help. 1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1525 test -d "$ac_dir" || 1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1527 continue 1528 ac_builddir=. 1529 1530case "$ac_dir" in 1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532*) 1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1534 # A ".." for each directory in $ac_dir_suffix. 1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1536 case $ac_top_builddir_sub in 1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1539 esac ;; 1540esac 1541ac_abs_top_builddir=$ac_pwd 1542ac_abs_builddir=$ac_pwd$ac_dir_suffix 1543# for backward compatibility: 1544ac_top_builddir=$ac_top_build_prefix 1545 1546case $srcdir in 1547 .) # We are building in place. 1548 ac_srcdir=. 1549 ac_top_srcdir=$ac_top_builddir_sub 1550 ac_abs_top_srcdir=$ac_pwd ;; 1551 [\\/]* | ?:[\\/]* ) # Absolute name. 1552 ac_srcdir=$srcdir$ac_dir_suffix; 1553 ac_top_srcdir=$srcdir 1554 ac_abs_top_srcdir=$srcdir ;; 1555 *) # Relative name. 1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1557 ac_top_srcdir=$ac_top_build_prefix$srcdir 1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1559esac 1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1561 1562 cd "$ac_dir" || { ac_status=$?; continue; } 1563 # Check for guested configure. 1564 if test -f "$ac_srcdir/configure.gnu"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1567 elif test -f "$ac_srcdir/configure"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure" --help=recursive 1570 else 1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1572 fi || ac_status=$? 1573 cd "$ac_pwd" || { ac_status=$?; break; } 1574 done 1575fi 1576 1577test -n "$ac_init_help" && exit $ac_status 1578if $ac_init_version; then 1579 cat <<\_ACEOF 1580xf86-video-siliconmotion configure 1.7.9 1581generated by GNU Autoconf 2.69 1582 1583Copyright (C) 2012 Free Software Foundation, Inc. 1584This configure script is free software; the Free Software Foundation 1585gives unlimited permission to copy, distribute and modify it. 1586_ACEOF 1587 exit 1588fi 1589 1590## ------------------------ ## 1591## Autoconf initialization. ## 1592## ------------------------ ## 1593 1594# ac_fn_c_try_compile LINENO 1595# -------------------------- 1596# Try to compile conftest.$ac_ext, and return whether this succeeded. 1597ac_fn_c_try_compile () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 rm -f conftest.$ac_objext 1601 if { { ac_try="$ac_compile" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_compile") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } && { 1617 test -z "$ac_c_werror_flag" || 1618 test ! -s conftest.err 1619 } && test -s conftest.$ac_objext; then : 1620 ac_retval=0 1621else 1622 $as_echo "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=1 1626fi 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 as_fn_set_status $ac_retval 1629 1630} # ac_fn_c_try_compile 1631 1632# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1633# --------------------------------------------- 1634# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1635# accordingly. 1636ac_fn_c_check_decl () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 as_decl_name=`echo $2|sed 's/ *(.*//'` 1640 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1642$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1643if eval \${$3+:} false; then : 1644 $as_echo_n "(cached) " >&6 1645else 1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1647/* end confdefs.h. */ 1648$4 1649int 1650main () 1651{ 1652#ifndef $as_decl_name 1653#ifdef __cplusplus 1654 (void) $as_decl_use; 1655#else 1656 (void) $as_decl_name; 1657#endif 1658#endif 1659 1660 ; 1661 return 0; 1662} 1663_ACEOF 1664if ac_fn_c_try_compile "$LINENO"; then : 1665 eval "$3=yes" 1666else 1667 eval "$3=no" 1668fi 1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1670fi 1671eval ac_res=\$$3 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1673$as_echo "$ac_res" >&6; } 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 1676} # ac_fn_c_check_decl 1677 1678# ac_fn_c_try_cpp LINENO 1679# ---------------------- 1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_cpp () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_cpp conftest.$ac_ext" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } > conftest.i && { 1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_cpp 1714 1715# ac_fn_c_try_run LINENO 1716# ---------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1718# that executables *can* be run. 1719ac_fn_c_try_run () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>&5 1730 ac_status=$? 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1733 { { case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_try") 2>&5 1740 ac_status=$? 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; }; }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: program exited with status $ac_status" >&5 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=$ac_status 1750fi 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_run 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval \${$3+:} false; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_header_compile 1787 1788# ac_fn_c_try_link LINENO 1789# ----------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_link () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 rm -f conftest.$ac_objext conftest$ac_exeext 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { 1811 test -z "$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 } && test -s conftest$ac_exeext && { 1814 test "$cross_compiling" = yes || 1815 test -x conftest$ac_exeext 1816 }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=1 1823fi 1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1826 # interfere with the next link command; also delete a directory that is 1827 # left behind by Apple's compiler. We do this before executing the actions. 1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 as_fn_set_status $ac_retval 1831 1832} # ac_fn_c_try_link 1833 1834# ac_fn_c_check_func LINENO FUNC VAR 1835# ---------------------------------- 1836# Tests whether FUNC exists, setting the cache variable VAR accordingly 1837ac_fn_c_check_func () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1841$as_echo_n "checking for $2... " >&6; } 1842if eval \${$3+:} false; then : 1843 $as_echo_n "(cached) " >&6 1844else 1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1846/* end confdefs.h. */ 1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1849#define $2 innocuous_$2 1850 1851/* System header to define __stub macros and hopefully few prototypes, 1852 which can conflict with char $2 (); below. 1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1854 <limits.h> exists even on freestanding compilers. */ 1855 1856#ifdef __STDC__ 1857# include <limits.h> 1858#else 1859# include <assert.h> 1860#endif 1861 1862#undef $2 1863 1864/* Override any GCC internal prototype to avoid an error. 1865 Use char because int might match the return type of a GCC 1866 builtin and then its argument prototype would still apply. */ 1867#ifdef __cplusplus 1868extern "C" 1869#endif 1870char $2 (); 1871/* The GNU C library defines this for functions which it implements 1872 to always fail with ENOSYS. Some functions are actually named 1873 something starting with __ and the normal name is an alias. */ 1874#if defined __stub_$2 || defined __stub___$2 1875choke me 1876#endif 1877 1878int 1879main () 1880{ 1881return $2 (); 1882 ; 1883 return 0; 1884} 1885_ACEOF 1886if ac_fn_c_try_link "$LINENO"; then : 1887 eval "$3=yes" 1888else 1889 eval "$3=no" 1890fi 1891rm -f core conftest.err conftest.$ac_objext \ 1892 conftest$ac_exeext conftest.$ac_ext 1893fi 1894eval ac_res=\$$3 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1896$as_echo "$ac_res" >&6; } 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 1899} # ac_fn_c_check_func 1900 1901# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1902# ------------------------------------------------------- 1903# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1904# the include files in INCLUDES and setting the cache variable VAR 1905# accordingly. 1906ac_fn_c_check_header_mongrel () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 if eval \${$3+:} false; then : 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1911$as_echo_n "checking for $2... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914fi 1915eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917$as_echo "$ac_res" >&6; } 1918else 1919 # Is the header compilable? 1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1921$as_echo_n "checking $2 usability... " >&6; } 1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924$4 1925#include <$2> 1926_ACEOF 1927if ac_fn_c_try_compile "$LINENO"; then : 1928 ac_header_compiler=yes 1929else 1930 ac_header_compiler=no 1931fi 1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1934$as_echo "$ac_header_compiler" >&6; } 1935 1936# Is the header present? 1937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1938$as_echo_n "checking $2 presence... " >&6; } 1939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941#include <$2> 1942_ACEOF 1943if ac_fn_c_try_cpp "$LINENO"; then : 1944 ac_header_preproc=yes 1945else 1946 ac_header_preproc=no 1947fi 1948rm -f conftest.err conftest.i conftest.$ac_ext 1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1950$as_echo "$ac_header_preproc" >&6; } 1951 1952# So? What about this header? 1953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1954 yes:no: ) 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1956$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1958$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1959 ;; 1960 no:yes:* ) 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1962$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1964$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1966$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1968$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1971( $as_echo "## ----------------------------------------------------------------------------------------------------- ## 1972## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion ## 1973## ----------------------------------------------------------------------------------------------------- ##" 1974 ) | sed "s/^/$as_me: WARNING: /" >&2 1975 ;; 1976esac 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978$as_echo_n "checking for $2... " >&6; } 1979if eval \${$3+:} false; then : 1980 $as_echo_n "(cached) " >&6 1981else 1982 eval "$3=\$ac_header_compiler" 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987fi 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 1990} # ac_fn_c_check_header_mongrel 1991cat >config.log <<_ACEOF 1992This file contains any messages produced by compilers while 1993running configure, to aid debugging if configure makes a mistake. 1994 1995It was created by xf86-video-siliconmotion $as_me 1.7.9, which was 1996generated by GNU Autoconf 2.69. Invocation command line was 1997 1998 $ $0 $@ 1999 2000_ACEOF 2001exec 5>>config.log 2002{ 2003cat <<_ASUNAME 2004## --------- ## 2005## Platform. ## 2006## --------- ## 2007 2008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2009uname -m = `(uname -m) 2>/dev/null || echo unknown` 2010uname -r = `(uname -r) 2>/dev/null || echo unknown` 2011uname -s = `(uname -s) 2>/dev/null || echo unknown` 2012uname -v = `(uname -v) 2>/dev/null || echo unknown` 2013 2014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2016 2017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2020/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2024 2025_ASUNAME 2026 2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2028for as_dir in $PATH 2029do 2030 IFS=$as_save_IFS 2031 test -z "$as_dir" && as_dir=. 2032 $as_echo "PATH: $as_dir" 2033 done 2034IFS=$as_save_IFS 2035 2036} >&5 2037 2038cat >&5 <<_ACEOF 2039 2040 2041## ----------- ## 2042## Core tests. ## 2043## ----------- ## 2044 2045_ACEOF 2046 2047 2048# Keep a trace of the command line. 2049# Strip out --no-create and --no-recursion so they do not pile up. 2050# Strip out --silent because we don't want to record it for future runs. 2051# Also quote any args containing shell meta-characters. 2052# Make two passes to allow for proper duplicate-argument suppression. 2053ac_configure_args= 2054ac_configure_args0= 2055ac_configure_args1= 2056ac_must_keep_next=false 2057for ac_pass in 1 2 2058do 2059 for ac_arg 2060 do 2061 case $ac_arg in 2062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2064 | -silent | --silent | --silen | --sile | --sil) 2065 continue ;; 2066 *\'*) 2067 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2068 esac 2069 case $ac_pass in 2070 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2071 2) 2072 as_fn_append ac_configure_args1 " '$ac_arg'" 2073 if test $ac_must_keep_next = true; then 2074 ac_must_keep_next=false # Got value, back to normal. 2075 else 2076 case $ac_arg in 2077 *=* | --config-cache | -C | -disable-* | --disable-* \ 2078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2080 | -with-* | --with-* | -without-* | --without-* | --x) 2081 case "$ac_configure_args0 " in 2082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2083 esac 2084 ;; 2085 -* ) ac_must_keep_next=true ;; 2086 esac 2087 fi 2088 as_fn_append ac_configure_args " '$ac_arg'" 2089 ;; 2090 esac 2091 done 2092done 2093{ ac_configure_args0=; unset ac_configure_args0;} 2094{ ac_configure_args1=; unset ac_configure_args1;} 2095 2096# When interrupted or exit'd, cleanup temporary files, and complete 2097# config.log. We remove comments because anyway the quotes in there 2098# would cause problems or look ugly. 2099# WARNING: Use '\'' to represent an apostrophe within the trap. 2100# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2101trap 'exit_status=$? 2102 # Save into config.log some information that might help in debugging. 2103 { 2104 echo 2105 2106 $as_echo "## ---------------- ## 2107## Cache variables. ## 2108## ---------------- ##" 2109 echo 2110 # The following way of writing the cache mishandles newlines in values, 2111( 2112 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2113 eval ac_val=\$$ac_var 2114 case $ac_val in #( 2115 *${as_nl}*) 2116 case $ac_var in #( 2117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2118$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2119 esac 2120 case $ac_var in #( 2121 _ | IFS | as_nl) ;; #( 2122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2123 *) { eval $ac_var=; unset $ac_var;} ;; 2124 esac ;; 2125 esac 2126 done 2127 (set) 2>&1 | 2128 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2129 *${as_nl}ac_space=\ *) 2130 sed -n \ 2131 "s/'\''/'\''\\\\'\'''\''/g; 2132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2133 ;; #( 2134 *) 2135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2136 ;; 2137 esac | 2138 sort 2139) 2140 echo 2141 2142 $as_echo "## ----------------- ## 2143## Output variables. ## 2144## ----------------- ##" 2145 echo 2146 for ac_var in $ac_subst_vars 2147 do 2148 eval ac_val=\$$ac_var 2149 case $ac_val in 2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2151 esac 2152 $as_echo "$ac_var='\''$ac_val'\''" 2153 done | sort 2154 echo 2155 2156 if test -n "$ac_subst_files"; then 2157 $as_echo "## ------------------- ## 2158## File substitutions. ## 2159## ------------------- ##" 2160 echo 2161 for ac_var in $ac_subst_files 2162 do 2163 eval ac_val=\$$ac_var 2164 case $ac_val in 2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2166 esac 2167 $as_echo "$ac_var='\''$ac_val'\''" 2168 done | sort 2169 echo 2170 fi 2171 2172 if test -s confdefs.h; then 2173 $as_echo "## ----------- ## 2174## confdefs.h. ## 2175## ----------- ##" 2176 echo 2177 cat confdefs.h 2178 echo 2179 fi 2180 test "$ac_signal" != 0 && 2181 $as_echo "$as_me: caught signal $ac_signal" 2182 $as_echo "$as_me: exit $exit_status" 2183 } >&5 2184 rm -f core *.core core.conftest.* && 2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2186 exit $exit_status 2187' 0 2188for ac_signal in 1 2 13 15; do 2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2190done 2191ac_signal=0 2192 2193# confdefs.h avoids OS command line length limits that DEFS can exceed. 2194rm -f -r conftest* confdefs.h 2195 2196$as_echo "/* confdefs.h */" > confdefs.h 2197 2198# Predefined preprocessor variables. 2199 2200cat >>confdefs.h <<_ACEOF 2201#define PACKAGE_NAME "$PACKAGE_NAME" 2202_ACEOF 2203 2204cat >>confdefs.h <<_ACEOF 2205#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2206_ACEOF 2207 2208cat >>confdefs.h <<_ACEOF 2209#define PACKAGE_VERSION "$PACKAGE_VERSION" 2210_ACEOF 2211 2212cat >>confdefs.h <<_ACEOF 2213#define PACKAGE_STRING "$PACKAGE_STRING" 2214_ACEOF 2215 2216cat >>confdefs.h <<_ACEOF 2217#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2218_ACEOF 2219 2220cat >>confdefs.h <<_ACEOF 2221#define PACKAGE_URL "$PACKAGE_URL" 2222_ACEOF 2223 2224 2225# Let the site file select an alternate cache file if it wants to. 2226# Prefer an explicitly selected file to automatically selected ones. 2227ac_site_file1=NONE 2228ac_site_file2=NONE 2229if test -n "$CONFIG_SITE"; then 2230 # We do not want a PATH search for config.site. 2231 case $CONFIG_SITE in #(( 2232 -*) ac_site_file1=./$CONFIG_SITE;; 2233 */*) ac_site_file1=$CONFIG_SITE;; 2234 *) ac_site_file1=./$CONFIG_SITE;; 2235 esac 2236elif test "x$prefix" != xNONE; then 2237 ac_site_file1=$prefix/share/config.site 2238 ac_site_file2=$prefix/etc/config.site 2239else 2240 ac_site_file1=$ac_default_prefix/share/config.site 2241 ac_site_file2=$ac_default_prefix/etc/config.site 2242fi 2243for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2244do 2245 test "x$ac_site_file" = xNONE && continue 2246 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2248$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2249 sed 's/^/| /' "$ac_site_file" >&5 2250 . "$ac_site_file" \ 2251 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2253as_fn_error $? "failed to load site script $ac_site_file 2254See \`config.log' for more details" "$LINENO" 5; } 2255 fi 2256done 2257 2258if test -r "$cache_file"; then 2259 # Some versions of bash will fail to source /dev/null (special files 2260 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2263$as_echo "$as_me: loading cache $cache_file" >&6;} 2264 case $cache_file in 2265 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2266 *) . "./$cache_file";; 2267 esac 2268 fi 2269else 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2271$as_echo "$as_me: creating cache $cache_file" >&6;} 2272 >$cache_file 2273fi 2274 2275# Check that the precious variables saved in the cache have kept the same 2276# value. 2277ac_cache_corrupted=false 2278for ac_var in $ac_precious_vars; do 2279 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2280 eval ac_new_set=\$ac_env_${ac_var}_set 2281 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2282 eval ac_new_val=\$ac_env_${ac_var}_value 2283 case $ac_old_set,$ac_new_set in 2284 set,) 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2286$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2287 ac_cache_corrupted=: ;; 2288 ,set) 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2290$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2291 ac_cache_corrupted=: ;; 2292 ,);; 2293 *) 2294 if test "x$ac_old_val" != "x$ac_new_val"; then 2295 # differences in whitespace do not lead to failure. 2296 ac_old_val_w=`echo x $ac_old_val` 2297 ac_new_val_w=`echo x $ac_new_val` 2298 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2300$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2301 ac_cache_corrupted=: 2302 else 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2304$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2305 eval $ac_var=\$ac_old_val 2306 fi 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2308$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2310$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2311 fi;; 2312 esac 2313 # Pass precious variables to config.status. 2314 if test "$ac_new_set" = set; then 2315 case $ac_new_val in 2316 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2317 *) ac_arg=$ac_var=$ac_new_val ;; 2318 esac 2319 case " $ac_configure_args " in 2320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2321 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2322 esac 2323 fi 2324done 2325if $ac_cache_corrupted; then 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2329$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2330 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2331fi 2332## -------------------- ## 2333## Main body of script. ## 2334## -------------------- ## 2335 2336ac_ext=c 2337ac_cpp='$CPP $CPPFLAGS' 2338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2340ac_compiler_gnu=$ac_cv_c_compiler_gnu 2341 2342 2343 2344# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356ac_aux_dir= 2357for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2358 if test -f "$ac_dir/install-sh"; then 2359 ac_aux_dir=$ac_dir 2360 ac_install_sh="$ac_aux_dir/install-sh -c" 2361 break 2362 elif test -f "$ac_dir/install.sh"; then 2363 ac_aux_dir=$ac_dir 2364 ac_install_sh="$ac_aux_dir/install.sh -c" 2365 break 2366 elif test -f "$ac_dir/shtool"; then 2367 ac_aux_dir=$ac_dir 2368 ac_install_sh="$ac_aux_dir/shtool install -c" 2369 break 2370 fi 2371done 2372if test -z "$ac_aux_dir"; then 2373 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2374fi 2375 2376# These three variables are undocumented and unsupported, 2377# and are intended to be withdrawn in a future Autoconf release. 2378# They can cause serious problems if a builder's source tree is in a directory 2379# whose full name contains unusual characters. 2380ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2381ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2382ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2383 2384 2385# Find a good install program. We prefer a C program (faster), 2386# so one script is as good as another. But avoid the broken or 2387# incompatible versions: 2388# SysV /etc/install, /usr/sbin/install 2389# SunOS /usr/etc/install 2390# IRIX /sbin/install 2391# AIX /bin/install 2392# AmigaOS /C/install, which installs bootblocks on floppy discs 2393# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2394# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2395# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2396# OS/2's system install, which has a completely different semantic 2397# ./install, which can be erroneously created by make from ./install.sh. 2398# Reject install programs that cannot install multiple files. 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2400$as_echo_n "checking for a BSD-compatible install... " >&6; } 2401if test -z "$INSTALL"; then 2402if ${ac_cv_path_install+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406for as_dir in $PATH 2407do 2408 IFS=$as_save_IFS 2409 test -z "$as_dir" && as_dir=. 2410 # Account for people who put trailing slashes in PATH elements. 2411case $as_dir/ in #(( 2412 ./ | .// | /[cC]/* | \ 2413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2414 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2415 /usr/ucb/* ) ;; 2416 *) 2417 # OSF1 and SCO ODT 3.0 have their own names for install. 2418 # Don't use installbsd from OSF since it installs stuff as root 2419 # by default. 2420 for ac_prog in ginstall scoinst install; do 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2423 if test $ac_prog = install && 2424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2425 # AIX install. It has an incompatible calling convention. 2426 : 2427 elif test $ac_prog = install && 2428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2429 # program-specific install script used by HP pwplus--don't use. 2430 : 2431 else 2432 rm -rf conftest.one conftest.two conftest.dir 2433 echo one > conftest.one 2434 echo two > conftest.two 2435 mkdir conftest.dir 2436 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2437 test -s conftest.one && test -s conftest.two && 2438 test -s conftest.dir/conftest.one && 2439 test -s conftest.dir/conftest.two 2440 then 2441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2442 break 3 2443 fi 2444 fi 2445 fi 2446 done 2447 done 2448 ;; 2449esac 2450 2451 done 2452IFS=$as_save_IFS 2453 2454rm -rf conftest.one conftest.two conftest.dir 2455 2456fi 2457 if test "${ac_cv_path_install+set}" = set; then 2458 INSTALL=$ac_cv_path_install 2459 else 2460 # As a last resort, use the slow shell script. Don't cache a 2461 # value for INSTALL within a source directory, because that will 2462 # break other packages using the cache if that directory is 2463 # removed, or if the value is a relative name. 2464 INSTALL=$ac_install_sh 2465 fi 2466fi 2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2468$as_echo "$INSTALL" >&6; } 2469 2470# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2471# It thinks the first close brace ends the variable substitution. 2472test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2473 2474test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2475 2476test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2477 2478# Expand $ac_aux_dir to an absolute path. 2479am_aux_dir=`cd "$ac_aux_dir" && pwd` 2480 2481ac_ext=c 2482ac_cpp='$CPP $CPPFLAGS' 2483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2485ac_compiler_gnu=$ac_cv_c_compiler_gnu 2486if test -n "$ac_tool_prefix"; then 2487 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2488set dummy ${ac_tool_prefix}gcc; ac_word=$2 2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2490$as_echo_n "checking for $ac_word... " >&6; } 2491if ${ac_cv_prog_CC+:} false; then : 2492 $as_echo_n "(cached) " >&6 2493else 2494 if test -n "$CC"; then 2495 ac_cv_prog_CC="$CC" # Let the user override the test. 2496else 2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2498for as_dir in $PATH 2499do 2500 IFS=$as_save_IFS 2501 test -z "$as_dir" && as_dir=. 2502 for ac_exec_ext in '' $ac_executable_extensions; do 2503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2504 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2506 break 2 2507 fi 2508done 2509 done 2510IFS=$as_save_IFS 2511 2512fi 2513fi 2514CC=$ac_cv_prog_CC 2515if test -n "$CC"; then 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2517$as_echo "$CC" >&6; } 2518else 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2520$as_echo "no" >&6; } 2521fi 2522 2523 2524fi 2525if test -z "$ac_cv_prog_CC"; then 2526 ac_ct_CC=$CC 2527 # Extract the first word of "gcc", so it can be a program name with args. 2528set dummy gcc; ac_word=$2 2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2530$as_echo_n "checking for $ac_word... " >&6; } 2531if ${ac_cv_prog_ac_ct_CC+:} false; then : 2532 $as_echo_n "(cached) " >&6 2533else 2534 if test -n "$ac_ct_CC"; then 2535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2536else 2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538for as_dir in $PATH 2539do 2540 IFS=$as_save_IFS 2541 test -z "$as_dir" && as_dir=. 2542 for ac_exec_ext in '' $ac_executable_extensions; do 2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2544 ac_cv_prog_ac_ct_CC="gcc" 2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2546 break 2 2547 fi 2548done 2549 done 2550IFS=$as_save_IFS 2551 2552fi 2553fi 2554ac_ct_CC=$ac_cv_prog_ac_ct_CC 2555if test -n "$ac_ct_CC"; then 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2557$as_echo "$ac_ct_CC" >&6; } 2558else 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2560$as_echo "no" >&6; } 2561fi 2562 2563 if test "x$ac_ct_CC" = x; then 2564 CC="" 2565 else 2566 case $cross_compiling:$ac_tool_warned in 2567yes:) 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2570ac_tool_warned=yes ;; 2571esac 2572 CC=$ac_ct_CC 2573 fi 2574else 2575 CC="$ac_cv_prog_CC" 2576fi 2577 2578if test -z "$CC"; then 2579 if test -n "$ac_tool_prefix"; then 2580 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2581set dummy ${ac_tool_prefix}cc; ac_word=$2 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2583$as_echo_n "checking for $ac_word... " >&6; } 2584if ${ac_cv_prog_CC+:} false; then : 2585 $as_echo_n "(cached) " >&6 2586else 2587 if test -n "$CC"; then 2588 ac_cv_prog_CC="$CC" # Let the user override the test. 2589else 2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2597 ac_cv_prog_CC="${ac_tool_prefix}cc" 2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2599 break 2 2600 fi 2601done 2602 done 2603IFS=$as_save_IFS 2604 2605fi 2606fi 2607CC=$ac_cv_prog_CC 2608if test -n "$CC"; then 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2610$as_echo "$CC" >&6; } 2611else 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2613$as_echo "no" >&6; } 2614fi 2615 2616 2617 fi 2618fi 2619if test -z "$CC"; then 2620 # Extract the first word of "cc", so it can be a program name with args. 2621set dummy cc; ac_word=$2 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2623$as_echo_n "checking for $ac_word... " >&6; } 2624if ${ac_cv_prog_CC+:} false; then : 2625 $as_echo_n "(cached) " >&6 2626else 2627 if test -n "$CC"; then 2628 ac_cv_prog_CC="$CC" # Let the user override the test. 2629else 2630 ac_prog_rejected=no 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2639 ac_prog_rejected=yes 2640 continue 2641 fi 2642 ac_cv_prog_CC="cc" 2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2644 break 2 2645 fi 2646done 2647 done 2648IFS=$as_save_IFS 2649 2650if test $ac_prog_rejected = yes; then 2651 # We found a bogon in the path, so make sure we never use it. 2652 set dummy $ac_cv_prog_CC 2653 shift 2654 if test $# != 0; then 2655 # We chose a different compiler from the bogus one. 2656 # However, it has the same basename, so the bogon will be chosen 2657 # first if we set CC to just the basename; use the full file name. 2658 shift 2659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2660 fi 2661fi 2662fi 2663fi 2664CC=$ac_cv_prog_CC 2665if test -n "$CC"; then 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2667$as_echo "$CC" >&6; } 2668else 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2670$as_echo "no" >&6; } 2671fi 2672 2673 2674fi 2675if test -z "$CC"; then 2676 if test -n "$ac_tool_prefix"; then 2677 for ac_prog in cl.exe 2678 do 2679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2680set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2682$as_echo_n "checking for $ac_word... " >&6; } 2683if ${ac_cv_prog_CC+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 if test -n "$CC"; then 2687 ac_cv_prog_CC="$CC" # Let the user override the test. 2688else 2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690for as_dir in $PATH 2691do 2692 IFS=$as_save_IFS 2693 test -z "$as_dir" && as_dir=. 2694 for ac_exec_ext in '' $ac_executable_extensions; do 2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2696 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2698 break 2 2699 fi 2700done 2701 done 2702IFS=$as_save_IFS 2703 2704fi 2705fi 2706CC=$ac_cv_prog_CC 2707if test -n "$CC"; then 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2709$as_echo "$CC" >&6; } 2710else 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2712$as_echo "no" >&6; } 2713fi 2714 2715 2716 test -n "$CC" && break 2717 done 2718fi 2719if test -z "$CC"; then 2720 ac_ct_CC=$CC 2721 for ac_prog in cl.exe 2722do 2723 # Extract the first word of "$ac_prog", so it can be a program name with args. 2724set dummy $ac_prog; ac_word=$2 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2726$as_echo_n "checking for $ac_word... " >&6; } 2727if ${ac_cv_prog_ac_ct_CC+:} false; then : 2728 $as_echo_n "(cached) " >&6 2729else 2730 if test -n "$ac_ct_CC"; then 2731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2732else 2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH 2735do 2736 IFS=$as_save_IFS 2737 test -z "$as_dir" && as_dir=. 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2740 ac_cv_prog_ac_ct_CC="$ac_prog" 2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745 done 2746IFS=$as_save_IFS 2747 2748fi 2749fi 2750ac_ct_CC=$ac_cv_prog_ac_ct_CC 2751if test -n "$ac_ct_CC"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2753$as_echo "$ac_ct_CC" >&6; } 2754else 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756$as_echo "no" >&6; } 2757fi 2758 2759 2760 test -n "$ac_ct_CC" && break 2761done 2762 2763 if test "x$ac_ct_CC" = x; then 2764 CC="" 2765 else 2766 case $cross_compiling:$ac_tool_warned in 2767yes:) 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2770ac_tool_warned=yes ;; 2771esac 2772 CC=$ac_ct_CC 2773 fi 2774fi 2775 2776fi 2777 2778 2779test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2781as_fn_error $? "no acceptable C compiler found in \$PATH 2782See \`config.log' for more details" "$LINENO" 5; } 2783 2784# Provide some information about the compiler. 2785$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2786set X $ac_compile 2787ac_compiler=$2 2788for ac_option in --version -v -V -qversion; do 2789 { { ac_try="$ac_compiler $ac_option >&5" 2790case "(($ac_try" in 2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2792 *) ac_try_echo=$ac_try;; 2793esac 2794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2795$as_echo "$ac_try_echo"; } >&5 2796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2797 ac_status=$? 2798 if test -s conftest.err; then 2799 sed '10a\ 2800... rest of stderr output deleted ... 2801 10q' conftest.err >conftest.er1 2802 cat conftest.er1 >&5 2803 fi 2804 rm -f conftest.er1 conftest.err 2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2806 test $ac_status = 0; } 2807done 2808 2809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2810/* end confdefs.h. */ 2811 2812int 2813main () 2814{ 2815 2816 ; 2817 return 0; 2818} 2819_ACEOF 2820ac_clean_files_save=$ac_clean_files 2821ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2822# Try to create an executable without -o first, disregard a.out. 2823# It will help us diagnose broken compilers, and finding out an intuition 2824# of exeext. 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2826$as_echo_n "checking whether the C compiler works... " >&6; } 2827ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2828 2829# The possible output files: 2830ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2831 2832ac_rmfiles= 2833for ac_file in $ac_files 2834do 2835 case $ac_file in 2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2837 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2838 esac 2839done 2840rm -f $ac_rmfiles 2841 2842if { { ac_try="$ac_link_default" 2843case "(($ac_try" in 2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2845 *) ac_try_echo=$ac_try;; 2846esac 2847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2848$as_echo "$ac_try_echo"; } >&5 2849 (eval "$ac_link_default") 2>&5 2850 ac_status=$? 2851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2852 test $ac_status = 0; }; then : 2853 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2854# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2855# in a Makefile. We should not override ac_cv_exeext if it was cached, 2856# so that the user can short-circuit this test for compilers unknown to 2857# Autoconf. 2858for ac_file in $ac_files '' 2859do 2860 test -f "$ac_file" || continue 2861 case $ac_file in 2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2863 ;; 2864 [ab].out ) 2865 # We found the default executable, but exeext='' is most 2866 # certainly right. 2867 break;; 2868 *.* ) 2869 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2870 then :; else 2871 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2872 fi 2873 # We set ac_cv_exeext here because the later test for it is not 2874 # safe: cross compilers may not add the suffix if given an `-o' 2875 # argument, so we may need to know it at that point already. 2876 # Even if this section looks crufty: it has the advantage of 2877 # actually working. 2878 break;; 2879 * ) 2880 break;; 2881 esac 2882done 2883test "$ac_cv_exeext" = no && ac_cv_exeext= 2884 2885else 2886 ac_file='' 2887fi 2888if test -z "$ac_file"; then : 2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2890$as_echo "no" >&6; } 2891$as_echo "$as_me: failed program was:" >&5 2892sed 's/^/| /' conftest.$ac_ext >&5 2893 2894{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2896as_fn_error 77 "C compiler cannot create executables 2897See \`config.log' for more details" "$LINENO" 5; } 2898else 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2900$as_echo "yes" >&6; } 2901fi 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2903$as_echo_n "checking for C compiler default output file name... " >&6; } 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2905$as_echo "$ac_file" >&6; } 2906ac_exeext=$ac_cv_exeext 2907 2908rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2909ac_clean_files=$ac_clean_files_save 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2911$as_echo_n "checking for suffix of executables... " >&6; } 2912if { { ac_try="$ac_link" 2913case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916esac 2917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2918$as_echo "$ac_try_echo"; } >&5 2919 (eval "$ac_link") 2>&5 2920 ac_status=$? 2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2922 test $ac_status = 0; }; then : 2923 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2924# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2925# work properly (i.e., refer to `conftest.exe'), while it won't with 2926# `rm'. 2927for ac_file in conftest.exe conftest conftest.*; do 2928 test -f "$ac_file" || continue 2929 case $ac_file in 2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2932 break;; 2933 * ) break;; 2934 esac 2935done 2936else 2937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2939as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2940See \`config.log' for more details" "$LINENO" 5; } 2941fi 2942rm -f conftest conftest$ac_cv_exeext 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2944$as_echo "$ac_cv_exeext" >&6; } 2945 2946rm -f conftest.$ac_ext 2947EXEEXT=$ac_cv_exeext 2948ac_exeext=$EXEEXT 2949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2950/* end confdefs.h. */ 2951#include <stdio.h> 2952int 2953main () 2954{ 2955FILE *f = fopen ("conftest.out", "w"); 2956 return ferror (f) || fclose (f) != 0; 2957 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962ac_clean_files="$ac_clean_files conftest.out" 2963# Check that the compiler produces executables we can run. If not, either 2964# the compiler is broken, or we cross compile. 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2966$as_echo_n "checking whether we are cross compiling... " >&6; } 2967if test "$cross_compiling" != yes; then 2968 { { ac_try="$ac_link" 2969case "(($ac_try" in 2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2971 *) ac_try_echo=$ac_try;; 2972esac 2973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2974$as_echo "$ac_try_echo"; } >&5 2975 (eval "$ac_link") 2>&5 2976 ac_status=$? 2977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2978 test $ac_status = 0; } 2979 if { ac_try='./conftest$ac_cv_exeext' 2980 { { case "(($ac_try" in 2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2982 *) ac_try_echo=$ac_try;; 2983esac 2984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2985$as_echo "$ac_try_echo"; } >&5 2986 (eval "$ac_try") 2>&5 2987 ac_status=$? 2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2989 test $ac_status = 0; }; }; then 2990 cross_compiling=no 2991 else 2992 if test "$cross_compiling" = maybe; then 2993 cross_compiling=yes 2994 else 2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2997as_fn_error $? "cannot run C compiled programs. 2998If you meant to cross compile, use \`--host'. 2999See \`config.log' for more details" "$LINENO" 5; } 3000 fi 3001 fi 3002fi 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3004$as_echo "$cross_compiling" >&6; } 3005 3006rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3007ac_clean_files=$ac_clean_files_save 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3009$as_echo_n "checking for suffix of object files... " >&6; } 3010if ${ac_cv_objext+:} false; then : 3011 $as_echo_n "(cached) " >&6 3012else 3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3014/* end confdefs.h. */ 3015 3016int 3017main () 3018{ 3019 3020 ; 3021 return 0; 3022} 3023_ACEOF 3024rm -f conftest.o conftest.obj 3025if { { ac_try="$ac_compile" 3026case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3031$as_echo "$ac_try_echo"; } >&5 3032 (eval "$ac_compile") 2>&5 3033 ac_status=$? 3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3035 test $ac_status = 0; }; then : 3036 for ac_file in conftest.o conftest.obj conftest.*; do 3037 test -f "$ac_file" || continue; 3038 case $ac_file in 3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3040 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3041 break;; 3042 esac 3043done 3044else 3045 $as_echo "$as_me: failed program was:" >&5 3046sed 's/^/| /' conftest.$ac_ext >&5 3047 3048{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3050as_fn_error $? "cannot compute suffix of object files: cannot compile 3051See \`config.log' for more details" "$LINENO" 5; } 3052fi 3053rm -f conftest.$ac_cv_objext conftest.$ac_ext 3054fi 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3056$as_echo "$ac_cv_objext" >&6; } 3057OBJEXT=$ac_cv_objext 3058ac_objext=$OBJEXT 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3060$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3061if ${ac_cv_c_compiler_gnu+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3065/* end confdefs.h. */ 3066 3067int 3068main () 3069{ 3070#ifndef __GNUC__ 3071 choke me 3072#endif 3073 3074 ; 3075 return 0; 3076} 3077_ACEOF 3078if ac_fn_c_try_compile "$LINENO"; then : 3079 ac_compiler_gnu=yes 3080else 3081 ac_compiler_gnu=no 3082fi 3083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3084ac_cv_c_compiler_gnu=$ac_compiler_gnu 3085 3086fi 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3088$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3089if test $ac_compiler_gnu = yes; then 3090 GCC=yes 3091else 3092 GCC= 3093fi 3094ac_test_CFLAGS=${CFLAGS+set} 3095ac_save_CFLAGS=$CFLAGS 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3097$as_echo_n "checking whether $CC accepts -g... " >&6; } 3098if ${ac_cv_prog_cc_g+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 ac_save_c_werror_flag=$ac_c_werror_flag 3102 ac_c_werror_flag=yes 3103 ac_cv_prog_cc_g=no 3104 CFLAGS="-g" 3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3106/* end confdefs.h. */ 3107 3108int 3109main () 3110{ 3111 3112 ; 3113 return 0; 3114} 3115_ACEOF 3116if ac_fn_c_try_compile "$LINENO"; then : 3117 ac_cv_prog_cc_g=yes 3118else 3119 CFLAGS="" 3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3121/* end confdefs.h. */ 3122 3123int 3124main () 3125{ 3126 3127 ; 3128 return 0; 3129} 3130_ACEOF 3131if ac_fn_c_try_compile "$LINENO"; then : 3132 3133else 3134 ac_c_werror_flag=$ac_save_c_werror_flag 3135 CFLAGS="-g" 3136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3137/* end confdefs.h. */ 3138 3139int 3140main () 3141{ 3142 3143 ; 3144 return 0; 3145} 3146_ACEOF 3147if ac_fn_c_try_compile "$LINENO"; then : 3148 ac_cv_prog_cc_g=yes 3149fi 3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3151fi 3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3153fi 3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3155 ac_c_werror_flag=$ac_save_c_werror_flag 3156fi 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3158$as_echo "$ac_cv_prog_cc_g" >&6; } 3159if test "$ac_test_CFLAGS" = set; then 3160 CFLAGS=$ac_save_CFLAGS 3161elif test $ac_cv_prog_cc_g = yes; then 3162 if test "$GCC" = yes; then 3163 CFLAGS="-g -O2" 3164 else 3165 CFLAGS="-g" 3166 fi 3167else 3168 if test "$GCC" = yes; then 3169 CFLAGS="-O2" 3170 else 3171 CFLAGS= 3172 fi 3173fi 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3175$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3176if ${ac_cv_prog_cc_c89+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 ac_cv_prog_cc_c89=no 3180ac_save_CC=$CC 3181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3182/* end confdefs.h. */ 3183#include <stdarg.h> 3184#include <stdio.h> 3185struct stat; 3186/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3187struct buf { int x; }; 3188FILE * (*rcsopen) (struct buf *, struct stat *, int); 3189static char *e (p, i) 3190 char **p; 3191 int i; 3192{ 3193 return p[i]; 3194} 3195static char *f (char * (*g) (char **, int), char **p, ...) 3196{ 3197 char *s; 3198 va_list v; 3199 va_start (v,p); 3200 s = g (p, va_arg (v,int)); 3201 va_end (v); 3202 return s; 3203} 3204 3205/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3206 function prototypes and stuff, but not '\xHH' hex character constants. 3207 These don't provoke an error unfortunately, instead are silently treated 3208 as 'x'. The following induces an error, until -std is added to get 3209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3210 array size at least. It's necessary to write '\x00'==0 to get something 3211 that's true only with -std. */ 3212int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3213 3214/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3215 inside strings and character constants. */ 3216#define FOO(x) 'x' 3217int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3218 3219int test (int i, double x); 3220struct s1 {int (*f) (int a);}; 3221struct s2 {int (*f) (double a);}; 3222int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3223int argc; 3224char **argv; 3225int 3226main () 3227{ 3228return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3235do 3236 CC="$ac_save_CC $ac_arg" 3237 if ac_fn_c_try_compile "$LINENO"; then : 3238 ac_cv_prog_cc_c89=$ac_arg 3239fi 3240rm -f core conftest.err conftest.$ac_objext 3241 test "x$ac_cv_prog_cc_c89" != "xno" && break 3242done 3243rm -f conftest.$ac_ext 3244CC=$ac_save_CC 3245 3246fi 3247# AC_CACHE_VAL 3248case "x$ac_cv_prog_cc_c89" in 3249 x) 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3251$as_echo "none needed" >&6; } ;; 3252 xno) 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3254$as_echo "unsupported" >&6; } ;; 3255 *) 3256 CC="$CC $ac_cv_prog_cc_c89" 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3258$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3259esac 3260if test "x$ac_cv_prog_cc_c89" != xno; then : 3261 3262fi 3263 3264ac_ext=c 3265ac_cpp='$CPP $CPPFLAGS' 3266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3268ac_compiler_gnu=$ac_cv_c_compiler_gnu 3269 3270ac_ext=c 3271ac_cpp='$CPP $CPPFLAGS' 3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3274ac_compiler_gnu=$ac_cv_c_compiler_gnu 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3276$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3277if ${am_cv_prog_cc_c_o+:} false; then : 3278 $as_echo_n "(cached) " >&6 3279else 3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3281/* end confdefs.h. */ 3282 3283int 3284main () 3285{ 3286 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291 # Make sure it works both with $CC and with simple cc. 3292 # Following AC_PROG_CC_C_O, we do the test twice because some 3293 # compilers refuse to overwrite an existing .o file with -o, 3294 # though they will create one. 3295 am_cv_prog_cc_c_o=yes 3296 for am_i in 1 2; do 3297 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3298 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3299 ac_status=$? 3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3301 (exit $ac_status); } \ 3302 && test -f conftest2.$ac_objext; then 3303 : OK 3304 else 3305 am_cv_prog_cc_c_o=no 3306 break 3307 fi 3308 done 3309 rm -f core conftest* 3310 unset am_i 3311fi 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3313$as_echo "$am_cv_prog_cc_c_o" >&6; } 3314if test "$am_cv_prog_cc_c_o" != yes; then 3315 # Losing compiler, so override with the script. 3316 # FIXME: It is wrong to rewrite CC. 3317 # But if we don't then we get into trouble of one sort or another. 3318 # A longer-term fix would be to have automake use am__CC in this case, 3319 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3320 CC="$am_aux_dir/compile $CC" 3321fi 3322ac_ext=c 3323ac_cpp='$CPP $CPPFLAGS' 3324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3326ac_compiler_gnu=$ac_cv_c_compiler_gnu 3327 3328 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3330$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3331if ${ac_cv_prog_cc_c99+:} false; then : 3332 $as_echo_n "(cached) " >&6 3333else 3334 ac_cv_prog_cc_c99=no 3335ac_save_CC=$CC 3336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3337/* end confdefs.h. */ 3338#include <stdarg.h> 3339#include <stdbool.h> 3340#include <stdlib.h> 3341#include <wchar.h> 3342#include <stdio.h> 3343 3344// Check varargs macros. These examples are taken from C99 6.10.3.5. 3345#define debug(...) fprintf (stderr, __VA_ARGS__) 3346#define showlist(...) puts (#__VA_ARGS__) 3347#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3348static void 3349test_varargs_macros (void) 3350{ 3351 int x = 1234; 3352 int y = 5678; 3353 debug ("Flag"); 3354 debug ("X = %d\n", x); 3355 showlist (The first, second, and third items.); 3356 report (x>y, "x is %d but y is %d", x, y); 3357} 3358 3359// Check long long types. 3360#define BIG64 18446744073709551615ull 3361#define BIG32 4294967295ul 3362#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3363#if !BIG_OK 3364 your preprocessor is broken; 3365#endif 3366#if BIG_OK 3367#else 3368 your preprocessor is broken; 3369#endif 3370static long long int bignum = -9223372036854775807LL; 3371static unsigned long long int ubignum = BIG64; 3372 3373struct incomplete_array 3374{ 3375 int datasize; 3376 double data[]; 3377}; 3378 3379struct named_init { 3380 int number; 3381 const wchar_t *name; 3382 double average; 3383}; 3384 3385typedef const char *ccp; 3386 3387static inline int 3388test_restrict (ccp restrict text) 3389{ 3390 // See if C++-style comments work. 3391 // Iterate through items via the restricted pointer. 3392 // Also check for declarations in for loops. 3393 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3394 continue; 3395 return 0; 3396} 3397 3398// Check varargs and va_copy. 3399static void 3400test_varargs (const char *format, ...) 3401{ 3402 va_list args; 3403 va_start (args, format); 3404 va_list args_copy; 3405 va_copy (args_copy, args); 3406 3407 const char *str; 3408 int number; 3409 float fnumber; 3410 3411 while (*format) 3412 { 3413 switch (*format++) 3414 { 3415 case 's': // string 3416 str = va_arg (args_copy, const char *); 3417 break; 3418 case 'd': // int 3419 number = va_arg (args_copy, int); 3420 break; 3421 case 'f': // float 3422 fnumber = va_arg (args_copy, double); 3423 break; 3424 default: 3425 break; 3426 } 3427 } 3428 va_end (args_copy); 3429 va_end (args); 3430} 3431 3432int 3433main () 3434{ 3435 3436 // Check bool. 3437 _Bool success = false; 3438 3439 // Check restrict. 3440 if (test_restrict ("String literal") == 0) 3441 success = true; 3442 char *restrict newvar = "Another string"; 3443 3444 // Check varargs. 3445 test_varargs ("s, d' f .", "string", 65, 34.234); 3446 test_varargs_macros (); 3447 3448 // Check flexible array members. 3449 struct incomplete_array *ia = 3450 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3451 ia->datasize = 10; 3452 for (int i = 0; i < ia->datasize; ++i) 3453 ia->data[i] = i * 1.234; 3454 3455 // Check named initializers. 3456 struct named_init ni = { 3457 .number = 34, 3458 .name = L"Test wide string", 3459 .average = 543.34343, 3460 }; 3461 3462 ni.number = 58; 3463 3464 int dynamic_array[ni.number]; 3465 dynamic_array[ni.number - 1] = 543; 3466 3467 // work around unused variable warnings 3468 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3469 || dynamic_array[ni.number - 1] != 543); 3470 3471 ; 3472 return 0; 3473} 3474_ACEOF 3475for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3476do 3477 CC="$ac_save_CC $ac_arg" 3478 if ac_fn_c_try_compile "$LINENO"; then : 3479 ac_cv_prog_cc_c99=$ac_arg 3480fi 3481rm -f core conftest.err conftest.$ac_objext 3482 test "x$ac_cv_prog_cc_c99" != "xno" && break 3483done 3484rm -f conftest.$ac_ext 3485CC=$ac_save_CC 3486 3487fi 3488# AC_CACHE_VAL 3489case "x$ac_cv_prog_cc_c99" in 3490 x) 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3492$as_echo "none needed" >&6; } ;; 3493 xno) 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3495$as_echo "unsupported" >&6; } ;; 3496 *) 3497 CC="$CC $ac_cv_prog_cc_c99" 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3499$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3500esac 3501if test "x$ac_cv_prog_cc_c99" != xno; then : 3502 3503fi 3504 3505 3506 3507ac_ext=c 3508ac_cpp='$CPP $CPPFLAGS' 3509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3511ac_compiler_gnu=$ac_cv_c_compiler_gnu 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3513$as_echo_n "checking how to run the C preprocessor... " >&6; } 3514# On Suns, sometimes $CPP names a directory. 3515if test -n "$CPP" && test -d "$CPP"; then 3516 CPP= 3517fi 3518if test -z "$CPP"; then 3519 if ${ac_cv_prog_CPP+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 # Double quotes because CPP needs to be expanded 3523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3524 do 3525 ac_preproc_ok=false 3526for ac_c_preproc_warn_flag in '' yes 3527do 3528 # Use a header file that comes with gcc, so configuring glibc 3529 # with a fresh cross-compiler works. 3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3531 # <limits.h> exists even on freestanding compilers. 3532 # On the NeXT, cc -E runs the code through the compiler's parser, 3533 # not just through cpp. "Syntax error" is here to catch this case. 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536#ifdef __STDC__ 3537# include <limits.h> 3538#else 3539# include <assert.h> 3540#endif 3541 Syntax error 3542_ACEOF 3543if ac_fn_c_try_cpp "$LINENO"; then : 3544 3545else 3546 # Broken: fails on valid input. 3547continue 3548fi 3549rm -f conftest.err conftest.i conftest.$ac_ext 3550 3551 # OK, works on sane cases. Now check whether nonexistent headers 3552 # can be detected and how. 3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3554/* end confdefs.h. */ 3555#include <ac_nonexistent.h> 3556_ACEOF 3557if ac_fn_c_try_cpp "$LINENO"; then : 3558 # Broken: success on invalid input. 3559continue 3560else 3561 # Passes both tests. 3562ac_preproc_ok=: 3563break 3564fi 3565rm -f conftest.err conftest.i conftest.$ac_ext 3566 3567done 3568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3569rm -f conftest.i conftest.err conftest.$ac_ext 3570if $ac_preproc_ok; then : 3571 break 3572fi 3573 3574 done 3575 ac_cv_prog_CPP=$CPP 3576 3577fi 3578 CPP=$ac_cv_prog_CPP 3579else 3580 ac_cv_prog_CPP=$CPP 3581fi 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3583$as_echo "$CPP" >&6; } 3584ac_preproc_ok=false 3585for ac_c_preproc_warn_flag in '' yes 3586do 3587 # Use a header file that comes with gcc, so configuring glibc 3588 # with a fresh cross-compiler works. 3589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3590 # <limits.h> exists even on freestanding compilers. 3591 # On the NeXT, cc -E runs the code through the compiler's parser, 3592 # not just through cpp. "Syntax error" is here to catch this case. 3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595#ifdef __STDC__ 3596# include <limits.h> 3597#else 3598# include <assert.h> 3599#endif 3600 Syntax error 3601_ACEOF 3602if ac_fn_c_try_cpp "$LINENO"; then : 3603 3604else 3605 # Broken: fails on valid input. 3606continue 3607fi 3608rm -f conftest.err conftest.i conftest.$ac_ext 3609 3610 # OK, works on sane cases. Now check whether nonexistent headers 3611 # can be detected and how. 3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613/* end confdefs.h. */ 3614#include <ac_nonexistent.h> 3615_ACEOF 3616if ac_fn_c_try_cpp "$LINENO"; then : 3617 # Broken: success on invalid input. 3618continue 3619else 3620 # Passes both tests. 3621ac_preproc_ok=: 3622break 3623fi 3624rm -f conftest.err conftest.i conftest.$ac_ext 3625 3626done 3627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3628rm -f conftest.i conftest.err conftest.$ac_ext 3629if $ac_preproc_ok; then : 3630 3631else 3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3634as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3635See \`config.log' for more details" "$LINENO" 5; } 3636fi 3637 3638ac_ext=c 3639ac_cpp='$CPP $CPPFLAGS' 3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3642ac_compiler_gnu=$ac_cv_c_compiler_gnu 3643 3644 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3646$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3647if ${ac_cv_path_GREP+:} false; then : 3648 $as_echo_n "(cached) " >&6 3649else 3650 if test -z "$GREP"; then 3651 ac_path_GREP_found=false 3652 # Loop through the user's path and test for each of PROGNAME-LIST 3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3655do 3656 IFS=$as_save_IFS 3657 test -z "$as_dir" && as_dir=. 3658 for ac_prog in grep ggrep; do 3659 for ac_exec_ext in '' $ac_executable_extensions; do 3660 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3661 as_fn_executable_p "$ac_path_GREP" || continue 3662# Check for GNU ac_path_GREP and select it if it is found. 3663 # Check for GNU $ac_path_GREP 3664case `"$ac_path_GREP" --version 2>&1` in 3665*GNU*) 3666 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3667*) 3668 ac_count=0 3669 $as_echo_n 0123456789 >"conftest.in" 3670 while : 3671 do 3672 cat "conftest.in" "conftest.in" >"conftest.tmp" 3673 mv "conftest.tmp" "conftest.in" 3674 cp "conftest.in" "conftest.nl" 3675 $as_echo 'GREP' >> "conftest.nl" 3676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3678 as_fn_arith $ac_count + 1 && ac_count=$as_val 3679 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3680 # Best one so far, save it but keep looking for a better one 3681 ac_cv_path_GREP="$ac_path_GREP" 3682 ac_path_GREP_max=$ac_count 3683 fi 3684 # 10*(2^10) chars as input seems more than enough 3685 test $ac_count -gt 10 && break 3686 done 3687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3688esac 3689 3690 $ac_path_GREP_found && break 3 3691 done 3692 done 3693 done 3694IFS=$as_save_IFS 3695 if test -z "$ac_cv_path_GREP"; then 3696 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3697 fi 3698else 3699 ac_cv_path_GREP=$GREP 3700fi 3701 3702fi 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3704$as_echo "$ac_cv_path_GREP" >&6; } 3705 GREP="$ac_cv_path_GREP" 3706 3707 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3709$as_echo_n "checking for egrep... " >&6; } 3710if ${ac_cv_path_EGREP+:} false; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3714 then ac_cv_path_EGREP="$GREP -E" 3715 else 3716 if test -z "$EGREP"; then 3717 ac_path_EGREP_found=false 3718 # Loop through the user's path and test for each of PROGNAME-LIST 3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3720for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3721do 3722 IFS=$as_save_IFS 3723 test -z "$as_dir" && as_dir=. 3724 for ac_prog in egrep; do 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3727 as_fn_executable_p "$ac_path_EGREP" || continue 3728# Check for GNU ac_path_EGREP and select it if it is found. 3729 # Check for GNU $ac_path_EGREP 3730case `"$ac_path_EGREP" --version 2>&1` in 3731*GNU*) 3732 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3733*) 3734 ac_count=0 3735 $as_echo_n 0123456789 >"conftest.in" 3736 while : 3737 do 3738 cat "conftest.in" "conftest.in" >"conftest.tmp" 3739 mv "conftest.tmp" "conftest.in" 3740 cp "conftest.in" "conftest.nl" 3741 $as_echo 'EGREP' >> "conftest.nl" 3742 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3744 as_fn_arith $ac_count + 1 && ac_count=$as_val 3745 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3746 # Best one so far, save it but keep looking for a better one 3747 ac_cv_path_EGREP="$ac_path_EGREP" 3748 ac_path_EGREP_max=$ac_count 3749 fi 3750 # 10*(2^10) chars as input seems more than enough 3751 test $ac_count -gt 10 && break 3752 done 3753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3754esac 3755 3756 $ac_path_EGREP_found && break 3 3757 done 3758 done 3759 done 3760IFS=$as_save_IFS 3761 if test -z "$ac_cv_path_EGREP"; then 3762 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3763 fi 3764else 3765 ac_cv_path_EGREP=$EGREP 3766fi 3767 3768 fi 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3771$as_echo "$ac_cv_path_EGREP" >&6; } 3772 EGREP="$ac_cv_path_EGREP" 3773 3774 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3776$as_echo_n "checking for ANSI C header files... " >&6; } 3777if ${ac_cv_header_stdc+:} false; then : 3778 $as_echo_n "(cached) " >&6 3779else 3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782#include <stdlib.h> 3783#include <stdarg.h> 3784#include <string.h> 3785#include <float.h> 3786 3787int 3788main () 3789{ 3790 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795if ac_fn_c_try_compile "$LINENO"; then : 3796 ac_cv_header_stdc=yes 3797else 3798 ac_cv_header_stdc=no 3799fi 3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3801 3802if test $ac_cv_header_stdc = yes; then 3803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806#include <string.h> 3807 3808_ACEOF 3809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3810 $EGREP "memchr" >/dev/null 2>&1; then : 3811 3812else 3813 ac_cv_header_stdc=no 3814fi 3815rm -f conftest* 3816 3817fi 3818 3819if test $ac_cv_header_stdc = yes; then 3820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822/* end confdefs.h. */ 3823#include <stdlib.h> 3824 3825_ACEOF 3826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3827 $EGREP "free" >/dev/null 2>&1; then : 3828 3829else 3830 ac_cv_header_stdc=no 3831fi 3832rm -f conftest* 3833 3834fi 3835 3836if test $ac_cv_header_stdc = yes; then 3837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3838 if test "$cross_compiling" = yes; then : 3839 : 3840else 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843#include <ctype.h> 3844#include <stdlib.h> 3845#if ((' ' & 0x0FF) == 0x020) 3846# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3847# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3848#else 3849# define ISLOWER(c) \ 3850 (('a' <= (c) && (c) <= 'i') \ 3851 || ('j' <= (c) && (c) <= 'r') \ 3852 || ('s' <= (c) && (c) <= 'z')) 3853# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3854#endif 3855 3856#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3857int 3858main () 3859{ 3860 int i; 3861 for (i = 0; i < 256; i++) 3862 if (XOR (islower (i), ISLOWER (i)) 3863 || toupper (i) != TOUPPER (i)) 3864 return 2; 3865 return 0; 3866} 3867_ACEOF 3868if ac_fn_c_try_run "$LINENO"; then : 3869 3870else 3871 ac_cv_header_stdc=no 3872fi 3873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3874 conftest.$ac_objext conftest.beam conftest.$ac_ext 3875fi 3876 3877fi 3878fi 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3880$as_echo "$ac_cv_header_stdc" >&6; } 3881if test $ac_cv_header_stdc = yes; then 3882 3883$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3884 3885fi 3886 3887# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3888for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3889 inttypes.h stdint.h unistd.h 3890do : 3891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3892ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3893" 3894if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3895 cat >>confdefs.h <<_ACEOF 3896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3897_ACEOF 3898 3899fi 3900 3901done 3902 3903 3904 3905 3906 3907 3908ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 3909if test "x$ac_cv_have_decl___clang__" = xyes; then : 3910 CLANGCC="yes" 3911else 3912 CLANGCC="no" 3913fi 3914 3915ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 3916if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 3917 INTELCC="yes" 3918else 3919 INTELCC="no" 3920fi 3921 3922ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3923if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 3924 SUNCC="yes" 3925else 3926 SUNCC="no" 3927fi 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3938 if test -n "$ac_tool_prefix"; then 3939 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3940set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3942$as_echo_n "checking for $ac_word... " >&6; } 3943if ${ac_cv_path_PKG_CONFIG+:} false; then : 3944 $as_echo_n "(cached) " >&6 3945else 3946 case $PKG_CONFIG in 3947 [\\/]* | ?:[\\/]*) 3948 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3949 ;; 3950 *) 3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952for as_dir in $PATH 3953do 3954 IFS=$as_save_IFS 3955 test -z "$as_dir" && as_dir=. 3956 for ac_exec_ext in '' $ac_executable_extensions; do 3957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3958 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3960 break 2 3961 fi 3962done 3963 done 3964IFS=$as_save_IFS 3965 3966 ;; 3967esac 3968fi 3969PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3970if test -n "$PKG_CONFIG"; then 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3972$as_echo "$PKG_CONFIG" >&6; } 3973else 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3975$as_echo "no" >&6; } 3976fi 3977 3978 3979fi 3980if test -z "$ac_cv_path_PKG_CONFIG"; then 3981 ac_pt_PKG_CONFIG=$PKG_CONFIG 3982 # Extract the first word of "pkg-config", so it can be a program name with args. 3983set dummy pkg-config; ac_word=$2 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3985$as_echo_n "checking for $ac_word... " >&6; } 3986if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 3987 $as_echo_n "(cached) " >&6 3988else 3989 case $ac_pt_PKG_CONFIG in 3990 [\\/]* | ?:[\\/]*) 3991 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3992 ;; 3993 *) 3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3995for as_dir in $PATH 3996do 3997 IFS=$as_save_IFS 3998 test -z "$as_dir" && as_dir=. 3999 for ac_exec_ext in '' $ac_executable_extensions; do 4000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4001 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4003 break 2 4004 fi 4005done 4006 done 4007IFS=$as_save_IFS 4008 4009 ;; 4010esac 4011fi 4012ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4013if test -n "$ac_pt_PKG_CONFIG"; then 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4015$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4016else 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4018$as_echo "no" >&6; } 4019fi 4020 4021 if test "x$ac_pt_PKG_CONFIG" = x; then 4022 PKG_CONFIG="" 4023 else 4024 case $cross_compiling:$ac_tool_warned in 4025yes:) 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4028ac_tool_warned=yes ;; 4029esac 4030 PKG_CONFIG=$ac_pt_PKG_CONFIG 4031 fi 4032else 4033 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4034fi 4035 4036fi 4037if test -n "$PKG_CONFIG"; then 4038 _pkg_min_version=0.9.0 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4040$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4041 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4043$as_echo "yes" >&6; } 4044 else 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4046$as_echo "no" >&6; } 4047 PKG_CONFIG="" 4048 fi 4049fi 4050# Make sure we can run config.sub. 4051$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4052 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4053 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4055$as_echo_n "checking build system type... " >&6; } 4056if ${ac_cv_build+:} false; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 ac_build_alias=$build_alias 4060test "x$ac_build_alias" = x && 4061 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4062test "x$ac_build_alias" = x && 4063 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4064ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4065 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4066 4067fi 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4069$as_echo "$ac_cv_build" >&6; } 4070case $ac_cv_build in 4071*-*-*) ;; 4072*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4073esac 4074build=$ac_cv_build 4075ac_save_IFS=$IFS; IFS='-' 4076set x $ac_cv_build 4077shift 4078build_cpu=$1 4079build_vendor=$2 4080shift; shift 4081# Remember, the first character of IFS is used to create $*, 4082# except with old shells: 4083build_os=$* 4084IFS=$ac_save_IFS 4085case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4086 4087 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4089$as_echo_n "checking host system type... " >&6; } 4090if ${ac_cv_host+:} false; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 if test "x$host_alias" = x; then 4094 ac_cv_host=$ac_cv_build 4095else 4096 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4097 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4098fi 4099 4100fi 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4102$as_echo "$ac_cv_host" >&6; } 4103case $ac_cv_host in 4104*-*-*) ;; 4105*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4106esac 4107host=$ac_cv_host 4108ac_save_IFS=$IFS; IFS='-' 4109set x $ac_cv_host 4110shift 4111host_cpu=$1 4112host_vendor=$2 4113shift; shift 4114# Remember, the first character of IFS is used to create $*, 4115# except with old shells: 4116host_os=$* 4117IFS=$ac_save_IFS 4118case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4119 4120 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4122$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4123if ${ac_cv_path_SED+:} false; then : 4124 $as_echo_n "(cached) " >&6 4125else 4126 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4127 for ac_i in 1 2 3 4 5 6 7; do 4128 ac_script="$ac_script$as_nl$ac_script" 4129 done 4130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4131 { ac_script=; unset ac_script;} 4132 if test -z "$SED"; then 4133 ac_path_SED_found=false 4134 # Loop through the user's path and test for each of PROGNAME-LIST 4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4136for as_dir in $PATH 4137do 4138 IFS=$as_save_IFS 4139 test -z "$as_dir" && as_dir=. 4140 for ac_prog in sed gsed; do 4141 for ac_exec_ext in '' $ac_executable_extensions; do 4142 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4143 as_fn_executable_p "$ac_path_SED" || continue 4144# Check for GNU ac_path_SED and select it if it is found. 4145 # Check for GNU $ac_path_SED 4146case `"$ac_path_SED" --version 2>&1` in 4147*GNU*) 4148 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4149*) 4150 ac_count=0 4151 $as_echo_n 0123456789 >"conftest.in" 4152 while : 4153 do 4154 cat "conftest.in" "conftest.in" >"conftest.tmp" 4155 mv "conftest.tmp" "conftest.in" 4156 cp "conftest.in" "conftest.nl" 4157 $as_echo '' >> "conftest.nl" 4158 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4160 as_fn_arith $ac_count + 1 && ac_count=$as_val 4161 if test $ac_count -gt ${ac_path_SED_max-0}; then 4162 # Best one so far, save it but keep looking for a better one 4163 ac_cv_path_SED="$ac_path_SED" 4164 ac_path_SED_max=$ac_count 4165 fi 4166 # 10*(2^10) chars as input seems more than enough 4167 test $ac_count -gt 10 && break 4168 done 4169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4170esac 4171 4172 $ac_path_SED_found && break 3 4173 done 4174 done 4175 done 4176IFS=$as_save_IFS 4177 if test -z "$ac_cv_path_SED"; then 4178 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4179 fi 4180else 4181 ac_cv_path_SED=$SED 4182fi 4183 4184fi 4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4186$as_echo "$ac_cv_path_SED" >&6; } 4187 SED="$ac_cv_path_SED" 4188 rm -f conftest.sed 4189 4190 4191 4192 4193 4194 4195# Check whether --enable-selective-werror was given. 4196if test "${enable_selective_werror+set}" = set; then : 4197 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4198else 4199 SELECTIVE_WERROR=yes 4200fi 4201 4202 4203 4204 4205 4206# -v is too short to test reliably with XORG_TESTSET_CFLAG 4207if test "x$SUNCC" = "xyes"; then 4208 BASE_CFLAGS="-v" 4209else 4210 BASE_CFLAGS="" 4211fi 4212 4213# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227xorg_testset_save_CFLAGS="$CFLAGS" 4228 4229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238int i; 4239_ACEOF 4240if ac_fn_c_try_compile "$LINENO"; then : 4241 xorg_cv_cc_flag_unknown_warning_option=yes 4242else 4243 xorg_cv_cc_flag_unknown_warning_option=no 4244fi 4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4250 CFLAGS="$xorg_testset_save_CFLAGS" 4251fi 4252 4253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4256 fi 4257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265int i; 4266_ACEOF 4267if ac_fn_c_try_compile "$LINENO"; then : 4268 xorg_cv_cc_flag_unused_command_line_argument=yes 4269else 4270 xorg_cv_cc_flag_unused_command_line_argument=no 4271fi 4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4273fi 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4277 CFLAGS="$xorg_testset_save_CFLAGS" 4278fi 4279 4280found="no" 4281 4282 if test $found = "no" ; then 4283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4285 fi 4286 4287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4289 fi 4290 4291 CFLAGS="$CFLAGS -Wall" 4292 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4294$as_echo_n "checking if $CC supports -Wall... " >&6; } 4295 cacheid=xorg_cv_cc_flag__Wall 4296 if eval \${$cacheid+:} false; then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301int i; 4302int 4303main () 4304{ 4305 4306 ; 4307 return 0; 4308} 4309_ACEOF 4310if ac_fn_c_try_link "$LINENO"; then : 4311 eval $cacheid=yes 4312else 4313 eval $cacheid=no 4314fi 4315rm -f core conftest.err conftest.$ac_objext \ 4316 conftest$ac_exeext conftest.$ac_ext 4317fi 4318 4319 4320 CFLAGS="$xorg_testset_save_CFLAGS" 4321 4322 eval supported=\$$cacheid 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4324$as_echo "$supported" >&6; } 4325 if test "$supported" = "yes" ; then 4326 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4327 found="yes" 4328 fi 4329 fi 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345xorg_testset_save_CFLAGS="$CFLAGS" 4346 4347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4352 $as_echo_n "(cached) " >&6 4353else 4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355/* end confdefs.h. */ 4356int i; 4357_ACEOF 4358if ac_fn_c_try_compile "$LINENO"; then : 4359 xorg_cv_cc_flag_unknown_warning_option=yes 4360else 4361 xorg_cv_cc_flag_unknown_warning_option=no 4362fi 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4364fi 4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4368 CFLAGS="$xorg_testset_save_CFLAGS" 4369fi 4370 4371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4374 fi 4375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4382/* end confdefs.h. */ 4383int i; 4384_ACEOF 4385if ac_fn_c_try_compile "$LINENO"; then : 4386 xorg_cv_cc_flag_unused_command_line_argument=yes 4387else 4388 xorg_cv_cc_flag_unused_command_line_argument=no 4389fi 4390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4391fi 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4395 CFLAGS="$xorg_testset_save_CFLAGS" 4396fi 4397 4398found="no" 4399 4400 if test $found = "no" ; then 4401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4403 fi 4404 4405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4407 fi 4408 4409 CFLAGS="$CFLAGS -Wpointer-arith" 4410 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4412$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4413 cacheid=xorg_cv_cc_flag__Wpointer_arith 4414 if eval \${$cacheid+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418/* end confdefs.h. */ 4419int i; 4420int 4421main () 4422{ 4423 4424 ; 4425 return 0; 4426} 4427_ACEOF 4428if ac_fn_c_try_link "$LINENO"; then : 4429 eval $cacheid=yes 4430else 4431 eval $cacheid=no 4432fi 4433rm -f core conftest.err conftest.$ac_objext \ 4434 conftest$ac_exeext conftest.$ac_ext 4435fi 4436 4437 4438 CFLAGS="$xorg_testset_save_CFLAGS" 4439 4440 eval supported=\$$cacheid 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4442$as_echo "$supported" >&6; } 4443 if test "$supported" = "yes" ; then 4444 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4445 found="yes" 4446 fi 4447 fi 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463xorg_testset_save_CFLAGS="$CFLAGS" 4464 4465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4470 $as_echo_n "(cached) " >&6 4471else 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4473/* end confdefs.h. */ 4474int i; 4475_ACEOF 4476if ac_fn_c_try_compile "$LINENO"; then : 4477 xorg_cv_cc_flag_unknown_warning_option=yes 4478else 4479 xorg_cv_cc_flag_unknown_warning_option=no 4480fi 4481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4482fi 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4486 CFLAGS="$xorg_testset_save_CFLAGS" 4487fi 4488 4489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4492 fi 4493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4497 $as_echo_n "(cached) " >&6 4498else 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500/* end confdefs.h. */ 4501int i; 4502_ACEOF 4503if ac_fn_c_try_compile "$LINENO"; then : 4504 xorg_cv_cc_flag_unused_command_line_argument=yes 4505else 4506 xorg_cv_cc_flag_unused_command_line_argument=no 4507fi 4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4513 CFLAGS="$xorg_testset_save_CFLAGS" 4514fi 4515 4516found="no" 4517 4518 if test $found = "no" ; then 4519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4521 fi 4522 4523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4525 fi 4526 4527 CFLAGS="$CFLAGS -Wmissing-declarations" 4528 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4530$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4531 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4532 if eval \${$cacheid+:} false; then : 4533 $as_echo_n "(cached) " >&6 4534else 4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4536/* end confdefs.h. */ 4537int i; 4538int 4539main () 4540{ 4541 4542 ; 4543 return 0; 4544} 4545_ACEOF 4546if ac_fn_c_try_link "$LINENO"; then : 4547 eval $cacheid=yes 4548else 4549 eval $cacheid=no 4550fi 4551rm -f core conftest.err conftest.$ac_objext \ 4552 conftest$ac_exeext conftest.$ac_ext 4553fi 4554 4555 4556 CFLAGS="$xorg_testset_save_CFLAGS" 4557 4558 eval supported=\$$cacheid 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4560$as_echo "$supported" >&6; } 4561 if test "$supported" = "yes" ; then 4562 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4563 found="yes" 4564 fi 4565 fi 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581xorg_testset_save_CFLAGS="$CFLAGS" 4582 4583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4591/* end confdefs.h. */ 4592int i; 4593_ACEOF 4594if ac_fn_c_try_compile "$LINENO"; then : 4595 xorg_cv_cc_flag_unknown_warning_option=yes 4596else 4597 xorg_cv_cc_flag_unknown_warning_option=no 4598fi 4599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4600fi 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4604 CFLAGS="$xorg_testset_save_CFLAGS" 4605fi 4606 4607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4610 fi 4611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4618/* end confdefs.h. */ 4619int i; 4620_ACEOF 4621if ac_fn_c_try_compile "$LINENO"; then : 4622 xorg_cv_cc_flag_unused_command_line_argument=yes 4623else 4624 xorg_cv_cc_flag_unused_command_line_argument=no 4625fi 4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4627fi 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4631 CFLAGS="$xorg_testset_save_CFLAGS" 4632fi 4633 4634found="no" 4635 4636 if test $found = "no" ; then 4637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4639 fi 4640 4641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4643 fi 4644 4645 CFLAGS="$CFLAGS -Wformat=2" 4646 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4648$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4649 cacheid=xorg_cv_cc_flag__Wformat_2 4650 if eval \${$cacheid+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4654/* end confdefs.h. */ 4655int i; 4656int 4657main () 4658{ 4659 4660 ; 4661 return 0; 4662} 4663_ACEOF 4664if ac_fn_c_try_link "$LINENO"; then : 4665 eval $cacheid=yes 4666else 4667 eval $cacheid=no 4668fi 4669rm -f core conftest.err conftest.$ac_objext \ 4670 conftest$ac_exeext conftest.$ac_ext 4671fi 4672 4673 4674 CFLAGS="$xorg_testset_save_CFLAGS" 4675 4676 eval supported=\$$cacheid 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4678$as_echo "$supported" >&6; } 4679 if test "$supported" = "yes" ; then 4680 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4681 found="yes" 4682 fi 4683 fi 4684 4685 if test $found = "no" ; then 4686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4688 fi 4689 4690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4692 fi 4693 4694 CFLAGS="$CFLAGS -Wformat" 4695 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4697$as_echo_n "checking if $CC supports -Wformat... " >&6; } 4698 cacheid=xorg_cv_cc_flag__Wformat 4699 if eval \${$cacheid+:} false; then : 4700 $as_echo_n "(cached) " >&6 4701else 4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4703/* end confdefs.h. */ 4704int i; 4705int 4706main () 4707{ 4708 4709 ; 4710 return 0; 4711} 4712_ACEOF 4713if ac_fn_c_try_link "$LINENO"; then : 4714 eval $cacheid=yes 4715else 4716 eval $cacheid=no 4717fi 4718rm -f core conftest.err conftest.$ac_objext \ 4719 conftest$ac_exeext conftest.$ac_ext 4720fi 4721 4722 4723 CFLAGS="$xorg_testset_save_CFLAGS" 4724 4725 eval supported=\$$cacheid 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4727$as_echo "$supported" >&6; } 4728 if test "$supported" = "yes" ; then 4729 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4730 found="yes" 4731 fi 4732 fi 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750xorg_testset_save_CFLAGS="$CFLAGS" 4751 4752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4760/* end confdefs.h. */ 4761int i; 4762_ACEOF 4763if ac_fn_c_try_compile "$LINENO"; then : 4764 xorg_cv_cc_flag_unknown_warning_option=yes 4765else 4766 xorg_cv_cc_flag_unknown_warning_option=no 4767fi 4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4773 CFLAGS="$xorg_testset_save_CFLAGS" 4774fi 4775 4776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4779 fi 4780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4784 $as_echo_n "(cached) " >&6 4785else 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788int i; 4789_ACEOF 4790if ac_fn_c_try_compile "$LINENO"; then : 4791 xorg_cv_cc_flag_unused_command_line_argument=yes 4792else 4793 xorg_cv_cc_flag_unused_command_line_argument=no 4794fi 4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4796fi 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4800 CFLAGS="$xorg_testset_save_CFLAGS" 4801fi 4802 4803found="no" 4804 4805 if test $found = "no" ; then 4806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4808 fi 4809 4810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4812 fi 4813 4814 CFLAGS="$CFLAGS -Wstrict-prototypes" 4815 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4817$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 4818 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4819 if eval \${$cacheid+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4823/* end confdefs.h. */ 4824int i; 4825int 4826main () 4827{ 4828 4829 ; 4830 return 0; 4831} 4832_ACEOF 4833if ac_fn_c_try_link "$LINENO"; then : 4834 eval $cacheid=yes 4835else 4836 eval $cacheid=no 4837fi 4838rm -f core conftest.err conftest.$ac_objext \ 4839 conftest$ac_exeext conftest.$ac_ext 4840fi 4841 4842 4843 CFLAGS="$xorg_testset_save_CFLAGS" 4844 4845 eval supported=\$$cacheid 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4847$as_echo "$supported" >&6; } 4848 if test "$supported" = "yes" ; then 4849 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4850 found="yes" 4851 fi 4852 fi 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868xorg_testset_save_CFLAGS="$CFLAGS" 4869 4870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4878/* end confdefs.h. */ 4879int i; 4880_ACEOF 4881if ac_fn_c_try_compile "$LINENO"; then : 4882 xorg_cv_cc_flag_unknown_warning_option=yes 4883else 4884 xorg_cv_cc_flag_unknown_warning_option=no 4885fi 4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4887fi 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4891 CFLAGS="$xorg_testset_save_CFLAGS" 4892fi 4893 4894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4897 fi 4898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4905/* end confdefs.h. */ 4906int i; 4907_ACEOF 4908if ac_fn_c_try_compile "$LINENO"; then : 4909 xorg_cv_cc_flag_unused_command_line_argument=yes 4910else 4911 xorg_cv_cc_flag_unused_command_line_argument=no 4912fi 4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4914fi 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4918 CFLAGS="$xorg_testset_save_CFLAGS" 4919fi 4920 4921found="no" 4922 4923 if test $found = "no" ; then 4924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4926 fi 4927 4928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4930 fi 4931 4932 CFLAGS="$CFLAGS -Wmissing-prototypes" 4933 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 4935$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 4936 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 4937 if eval \${$cacheid+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4941/* end confdefs.h. */ 4942int i; 4943int 4944main () 4945{ 4946 4947 ; 4948 return 0; 4949} 4950_ACEOF 4951if ac_fn_c_try_link "$LINENO"; then : 4952 eval $cacheid=yes 4953else 4954 eval $cacheid=no 4955fi 4956rm -f core conftest.err conftest.$ac_objext \ 4957 conftest$ac_exeext conftest.$ac_ext 4958fi 4959 4960 4961 CFLAGS="$xorg_testset_save_CFLAGS" 4962 4963 eval supported=\$$cacheid 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4965$as_echo "$supported" >&6; } 4966 if test "$supported" = "yes" ; then 4967 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 4968 found="yes" 4969 fi 4970 fi 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986xorg_testset_save_CFLAGS="$CFLAGS" 4987 4988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4993 $as_echo_n "(cached) " >&6 4994else 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4996/* end confdefs.h. */ 4997int i; 4998_ACEOF 4999if ac_fn_c_try_compile "$LINENO"; then : 5000 xorg_cv_cc_flag_unknown_warning_option=yes 5001else 5002 xorg_cv_cc_flag_unknown_warning_option=no 5003fi 5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5005fi 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5009 CFLAGS="$xorg_testset_save_CFLAGS" 5010fi 5011 5012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5015 fi 5016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024int i; 5025_ACEOF 5026if ac_fn_c_try_compile "$LINENO"; then : 5027 xorg_cv_cc_flag_unused_command_line_argument=yes 5028else 5029 xorg_cv_cc_flag_unused_command_line_argument=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5032fi 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037fi 5038 5039found="no" 5040 5041 if test $found = "no" ; then 5042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5044 fi 5045 5046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5048 fi 5049 5050 CFLAGS="$CFLAGS -Wnested-externs" 5051 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5053$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5054 cacheid=xorg_cv_cc_flag__Wnested_externs 5055 if eval \${$cacheid+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5059/* end confdefs.h. */ 5060int i; 5061int 5062main () 5063{ 5064 5065 ; 5066 return 0; 5067} 5068_ACEOF 5069if ac_fn_c_try_link "$LINENO"; then : 5070 eval $cacheid=yes 5071else 5072 eval $cacheid=no 5073fi 5074rm -f core conftest.err conftest.$ac_objext \ 5075 conftest$ac_exeext conftest.$ac_ext 5076fi 5077 5078 5079 CFLAGS="$xorg_testset_save_CFLAGS" 5080 5081 eval supported=\$$cacheid 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5083$as_echo "$supported" >&6; } 5084 if test "$supported" = "yes" ; then 5085 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5086 found="yes" 5087 fi 5088 fi 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104xorg_testset_save_CFLAGS="$CFLAGS" 5105 5106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5114/* end confdefs.h. */ 5115int i; 5116_ACEOF 5117if ac_fn_c_try_compile "$LINENO"; then : 5118 xorg_cv_cc_flag_unknown_warning_option=yes 5119else 5120 xorg_cv_cc_flag_unknown_warning_option=no 5121fi 5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5123fi 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5127 CFLAGS="$xorg_testset_save_CFLAGS" 5128fi 5129 5130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5133 fi 5134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142int i; 5143_ACEOF 5144if ac_fn_c_try_compile "$LINENO"; then : 5145 xorg_cv_cc_flag_unused_command_line_argument=yes 5146else 5147 xorg_cv_cc_flag_unused_command_line_argument=no 5148fi 5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5150fi 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5154 CFLAGS="$xorg_testset_save_CFLAGS" 5155fi 5156 5157found="no" 5158 5159 if test $found = "no" ; then 5160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5162 fi 5163 5164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5166 fi 5167 5168 CFLAGS="$CFLAGS -Wbad-function-cast" 5169 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5171$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5172 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5173 if eval \${$cacheid+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177/* end confdefs.h. */ 5178int i; 5179int 5180main () 5181{ 5182 5183 ; 5184 return 0; 5185} 5186_ACEOF 5187if ac_fn_c_try_link "$LINENO"; then : 5188 eval $cacheid=yes 5189else 5190 eval $cacheid=no 5191fi 5192rm -f core conftest.err conftest.$ac_objext \ 5193 conftest$ac_exeext conftest.$ac_ext 5194fi 5195 5196 5197 CFLAGS="$xorg_testset_save_CFLAGS" 5198 5199 eval supported=\$$cacheid 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5201$as_echo "$supported" >&6; } 5202 if test "$supported" = "yes" ; then 5203 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5204 found="yes" 5205 fi 5206 fi 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222xorg_testset_save_CFLAGS="$CFLAGS" 5223 5224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5232/* end confdefs.h. */ 5233int i; 5234_ACEOF 5235if ac_fn_c_try_compile "$LINENO"; then : 5236 xorg_cv_cc_flag_unknown_warning_option=yes 5237else 5238 xorg_cv_cc_flag_unknown_warning_option=no 5239fi 5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5241fi 5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5245 CFLAGS="$xorg_testset_save_CFLAGS" 5246fi 5247 5248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5251 fi 5252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5256 $as_echo_n "(cached) " >&6 5257else 5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5259/* end confdefs.h. */ 5260int i; 5261_ACEOF 5262if ac_fn_c_try_compile "$LINENO"; then : 5263 xorg_cv_cc_flag_unused_command_line_argument=yes 5264else 5265 xorg_cv_cc_flag_unused_command_line_argument=no 5266fi 5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5268fi 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5272 CFLAGS="$xorg_testset_save_CFLAGS" 5273fi 5274 5275found="no" 5276 5277 if test $found = "no" ; then 5278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5280 fi 5281 5282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5284 fi 5285 5286 CFLAGS="$CFLAGS -Wold-style-definition" 5287 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5289$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5290 cacheid=xorg_cv_cc_flag__Wold_style_definition 5291 if eval \${$cacheid+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295/* end confdefs.h. */ 5296int i; 5297int 5298main () 5299{ 5300 5301 ; 5302 return 0; 5303} 5304_ACEOF 5305if ac_fn_c_try_link "$LINENO"; then : 5306 eval $cacheid=yes 5307else 5308 eval $cacheid=no 5309fi 5310rm -f core conftest.err conftest.$ac_objext \ 5311 conftest$ac_exeext conftest.$ac_ext 5312fi 5313 5314 5315 CFLAGS="$xorg_testset_save_CFLAGS" 5316 5317 eval supported=\$$cacheid 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5319$as_echo "$supported" >&6; } 5320 if test "$supported" = "yes" ; then 5321 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5322 found="yes" 5323 fi 5324 fi 5325 5326 if test $found = "no" ; then 5327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5329 fi 5330 5331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5333 fi 5334 5335 CFLAGS="$CFLAGS -fd" 5336 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5338$as_echo_n "checking if $CC supports -fd... " >&6; } 5339 cacheid=xorg_cv_cc_flag__fd 5340 if eval \${$cacheid+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5344/* end confdefs.h. */ 5345int i; 5346int 5347main () 5348{ 5349 5350 ; 5351 return 0; 5352} 5353_ACEOF 5354if ac_fn_c_try_link "$LINENO"; then : 5355 eval $cacheid=yes 5356else 5357 eval $cacheid=no 5358fi 5359rm -f core conftest.err conftest.$ac_objext \ 5360 conftest$ac_exeext conftest.$ac_ext 5361fi 5362 5363 5364 CFLAGS="$xorg_testset_save_CFLAGS" 5365 5366 eval supported=\$$cacheid 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5368$as_echo "$supported" >&6; } 5369 if test "$supported" = "yes" ; then 5370 BASE_CFLAGS="$BASE_CFLAGS -fd" 5371 found="yes" 5372 fi 5373 fi 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389xorg_testset_save_CFLAGS="$CFLAGS" 5390 5391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400int i; 5401_ACEOF 5402if ac_fn_c_try_compile "$LINENO"; then : 5403 xorg_cv_cc_flag_unknown_warning_option=yes 5404else 5405 xorg_cv_cc_flag_unknown_warning_option=no 5406fi 5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5408fi 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5412 CFLAGS="$xorg_testset_save_CFLAGS" 5413fi 5414 5415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5418 fi 5419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5426/* end confdefs.h. */ 5427int i; 5428_ACEOF 5429if ac_fn_c_try_compile "$LINENO"; then : 5430 xorg_cv_cc_flag_unused_command_line_argument=yes 5431else 5432 xorg_cv_cc_flag_unused_command_line_argument=no 5433fi 5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5435fi 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5439 CFLAGS="$xorg_testset_save_CFLAGS" 5440fi 5441 5442found="no" 5443 5444 if test $found = "no" ; then 5445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5447 fi 5448 5449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5451 fi 5452 5453 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5454 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5456$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5457 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5458 if eval \${$cacheid+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463int i; 5464int 5465main () 5466{ 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472if ac_fn_c_try_link "$LINENO"; then : 5473 eval $cacheid=yes 5474else 5475 eval $cacheid=no 5476fi 5477rm -f core conftest.err conftest.$ac_objext \ 5478 conftest$ac_exeext conftest.$ac_ext 5479fi 5480 5481 5482 CFLAGS="$xorg_testset_save_CFLAGS" 5483 5484 eval supported=\$$cacheid 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5486$as_echo "$supported" >&6; } 5487 if test "$supported" = "yes" ; then 5488 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5489 found="yes" 5490 fi 5491 fi 5492 5493 5494 5495 5496 5497# This chunk adds additional warnings that could catch undesired effects. 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511xorg_testset_save_CFLAGS="$CFLAGS" 5512 5513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5521/* end confdefs.h. */ 5522int i; 5523_ACEOF 5524if ac_fn_c_try_compile "$LINENO"; then : 5525 xorg_cv_cc_flag_unknown_warning_option=yes 5526else 5527 xorg_cv_cc_flag_unknown_warning_option=no 5528fi 5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5530fi 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5534 CFLAGS="$xorg_testset_save_CFLAGS" 5535fi 5536 5537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5540 fi 5541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549int i; 5550_ACEOF 5551if ac_fn_c_try_compile "$LINENO"; then : 5552 xorg_cv_cc_flag_unused_command_line_argument=yes 5553else 5554 xorg_cv_cc_flag_unused_command_line_argument=no 5555fi 5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5557fi 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5561 CFLAGS="$xorg_testset_save_CFLAGS" 5562fi 5563 5564found="no" 5565 5566 if test $found = "no" ; then 5567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5569 fi 5570 5571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5573 fi 5574 5575 CFLAGS="$CFLAGS -Wunused" 5576 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5578$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5579 cacheid=xorg_cv_cc_flag__Wunused 5580 if eval \${$cacheid+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5584/* end confdefs.h. */ 5585int i; 5586int 5587main () 5588{ 5589 5590 ; 5591 return 0; 5592} 5593_ACEOF 5594if ac_fn_c_try_link "$LINENO"; then : 5595 eval $cacheid=yes 5596else 5597 eval $cacheid=no 5598fi 5599rm -f core conftest.err conftest.$ac_objext \ 5600 conftest$ac_exeext conftest.$ac_ext 5601fi 5602 5603 5604 CFLAGS="$xorg_testset_save_CFLAGS" 5605 5606 eval supported=\$$cacheid 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5608$as_echo "$supported" >&6; } 5609 if test "$supported" = "yes" ; then 5610 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5611 found="yes" 5612 fi 5613 fi 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629xorg_testset_save_CFLAGS="$CFLAGS" 5630 5631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639/* end confdefs.h. */ 5640int i; 5641_ACEOF 5642if ac_fn_c_try_compile "$LINENO"; then : 5643 xorg_cv_cc_flag_unknown_warning_option=yes 5644else 5645 xorg_cv_cc_flag_unknown_warning_option=no 5646fi 5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5648fi 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5652 CFLAGS="$xorg_testset_save_CFLAGS" 5653fi 5654 5655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5658 fi 5659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667int i; 5668_ACEOF 5669if ac_fn_c_try_compile "$LINENO"; then : 5670 xorg_cv_cc_flag_unused_command_line_argument=yes 5671else 5672 xorg_cv_cc_flag_unused_command_line_argument=no 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5679 CFLAGS="$xorg_testset_save_CFLAGS" 5680fi 5681 5682found="no" 5683 5684 if test $found = "no" ; then 5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 fi 5688 5689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5691 fi 5692 5693 CFLAGS="$CFLAGS -Wuninitialized" 5694 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5696$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5697 cacheid=xorg_cv_cc_flag__Wuninitialized 5698 if eval \${$cacheid+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5702/* end confdefs.h. */ 5703int i; 5704int 5705main () 5706{ 5707 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712if ac_fn_c_try_link "$LINENO"; then : 5713 eval $cacheid=yes 5714else 5715 eval $cacheid=no 5716fi 5717rm -f core conftest.err conftest.$ac_objext \ 5718 conftest$ac_exeext conftest.$ac_ext 5719fi 5720 5721 5722 CFLAGS="$xorg_testset_save_CFLAGS" 5723 5724 eval supported=\$$cacheid 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5726$as_echo "$supported" >&6; } 5727 if test "$supported" = "yes" ; then 5728 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5729 found="yes" 5730 fi 5731 fi 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747xorg_testset_save_CFLAGS="$CFLAGS" 5748 5749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5754 $as_echo_n "(cached) " >&6 5755else 5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5757/* end confdefs.h. */ 5758int i; 5759_ACEOF 5760if ac_fn_c_try_compile "$LINENO"; then : 5761 xorg_cv_cc_flag_unknown_warning_option=yes 5762else 5763 xorg_cv_cc_flag_unknown_warning_option=no 5764fi 5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5770 CFLAGS="$xorg_testset_save_CFLAGS" 5771fi 5772 5773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5776 fi 5777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782else 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784/* end confdefs.h. */ 5785int i; 5786_ACEOF 5787if ac_fn_c_try_compile "$LINENO"; then : 5788 xorg_cv_cc_flag_unused_command_line_argument=yes 5789else 5790 xorg_cv_cc_flag_unused_command_line_argument=no 5791fi 5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5793fi 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5797 CFLAGS="$xorg_testset_save_CFLAGS" 5798fi 5799 5800found="no" 5801 5802 if test $found = "no" ; then 5803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5805 fi 5806 5807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5809 fi 5810 5811 CFLAGS="$CFLAGS -Wshadow" 5812 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5814$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 5815 cacheid=xorg_cv_cc_flag__Wshadow 5816 if eval \${$cacheid+:} false; then : 5817 $as_echo_n "(cached) " >&6 5818else 5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5820/* end confdefs.h. */ 5821int i; 5822int 5823main () 5824{ 5825 5826 ; 5827 return 0; 5828} 5829_ACEOF 5830if ac_fn_c_try_link "$LINENO"; then : 5831 eval $cacheid=yes 5832else 5833 eval $cacheid=no 5834fi 5835rm -f core conftest.err conftest.$ac_objext \ 5836 conftest$ac_exeext conftest.$ac_ext 5837fi 5838 5839 5840 CFLAGS="$xorg_testset_save_CFLAGS" 5841 5842 eval supported=\$$cacheid 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5844$as_echo "$supported" >&6; } 5845 if test "$supported" = "yes" ; then 5846 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5847 found="yes" 5848 fi 5849 fi 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865xorg_testset_save_CFLAGS="$CFLAGS" 5866 5867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875/* end confdefs.h. */ 5876int i; 5877_ACEOF 5878if ac_fn_c_try_compile "$LINENO"; then : 5879 xorg_cv_cc_flag_unknown_warning_option=yes 5880else 5881 xorg_cv_cc_flag_unknown_warning_option=no 5882fi 5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5884fi 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5888 CFLAGS="$xorg_testset_save_CFLAGS" 5889fi 5890 5891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5894 fi 5895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900else 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903int i; 5904_ACEOF 5905if ac_fn_c_try_compile "$LINENO"; then : 5906 xorg_cv_cc_flag_unused_command_line_argument=yes 5907else 5908 xorg_cv_cc_flag_unused_command_line_argument=no 5909fi 5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5911fi 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5915 CFLAGS="$xorg_testset_save_CFLAGS" 5916fi 5917 5918found="no" 5919 5920 if test $found = "no" ; then 5921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5923 fi 5924 5925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5927 fi 5928 5929 CFLAGS="$CFLAGS -Wmissing-noreturn" 5930 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 5932$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 5933 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 5934 if eval \${$cacheid+:} false; then : 5935 $as_echo_n "(cached) " >&6 5936else 5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5938/* end confdefs.h. */ 5939int i; 5940int 5941main () 5942{ 5943 5944 ; 5945 return 0; 5946} 5947_ACEOF 5948if ac_fn_c_try_link "$LINENO"; then : 5949 eval $cacheid=yes 5950else 5951 eval $cacheid=no 5952fi 5953rm -f core conftest.err conftest.$ac_objext \ 5954 conftest$ac_exeext conftest.$ac_ext 5955fi 5956 5957 5958 CFLAGS="$xorg_testset_save_CFLAGS" 5959 5960 eval supported=\$$cacheid 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5962$as_echo "$supported" >&6; } 5963 if test "$supported" = "yes" ; then 5964 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 5965 found="yes" 5966 fi 5967 fi 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983xorg_testset_save_CFLAGS="$CFLAGS" 5984 5985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5993/* end confdefs.h. */ 5994int i; 5995_ACEOF 5996if ac_fn_c_try_compile "$LINENO"; then : 5997 xorg_cv_cc_flag_unknown_warning_option=yes 5998else 5999 xorg_cv_cc_flag_unknown_warning_option=no 6000fi 6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6002fi 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6006 CFLAGS="$xorg_testset_save_CFLAGS" 6007fi 6008 6009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6012 fi 6013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6020/* end confdefs.h. */ 6021int i; 6022_ACEOF 6023if ac_fn_c_try_compile "$LINENO"; then : 6024 xorg_cv_cc_flag_unused_command_line_argument=yes 6025else 6026 xorg_cv_cc_flag_unused_command_line_argument=no 6027fi 6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6029fi 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6033 CFLAGS="$xorg_testset_save_CFLAGS" 6034fi 6035 6036found="no" 6037 6038 if test $found = "no" ; then 6039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6041 fi 6042 6043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6045 fi 6046 6047 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6048 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6050$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6051 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6052 if eval \${$cacheid+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6056/* end confdefs.h. */ 6057int i; 6058int 6059main () 6060{ 6061 6062 ; 6063 return 0; 6064} 6065_ACEOF 6066if ac_fn_c_try_link "$LINENO"; then : 6067 eval $cacheid=yes 6068else 6069 eval $cacheid=no 6070fi 6071rm -f core conftest.err conftest.$ac_objext \ 6072 conftest$ac_exeext conftest.$ac_ext 6073fi 6074 6075 6076 CFLAGS="$xorg_testset_save_CFLAGS" 6077 6078 eval supported=\$$cacheid 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6080$as_echo "$supported" >&6; } 6081 if test "$supported" = "yes" ; then 6082 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6083 found="yes" 6084 fi 6085 fi 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101xorg_testset_save_CFLAGS="$CFLAGS" 6102 6103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111/* end confdefs.h. */ 6112int i; 6113_ACEOF 6114if ac_fn_c_try_compile "$LINENO"; then : 6115 xorg_cv_cc_flag_unknown_warning_option=yes 6116else 6117 xorg_cv_cc_flag_unknown_warning_option=no 6118fi 6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6120fi 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6124 CFLAGS="$xorg_testset_save_CFLAGS" 6125fi 6126 6127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6130 fi 6131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139int i; 6140_ACEOF 6141if ac_fn_c_try_compile "$LINENO"; then : 6142 xorg_cv_cc_flag_unused_command_line_argument=yes 6143else 6144 xorg_cv_cc_flag_unused_command_line_argument=no 6145fi 6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6147fi 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152fi 6153 6154found="no" 6155 6156 if test $found = "no" ; then 6157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6159 fi 6160 6161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6163 fi 6164 6165 CFLAGS="$CFLAGS -Wredundant-decls" 6166 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6168$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6169 cacheid=xorg_cv_cc_flag__Wredundant_decls 6170 if eval \${$cacheid+:} false; then : 6171 $as_echo_n "(cached) " >&6 6172else 6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6174/* end confdefs.h. */ 6175int i; 6176int 6177main () 6178{ 6179 6180 ; 6181 return 0; 6182} 6183_ACEOF 6184if ac_fn_c_try_link "$LINENO"; then : 6185 eval $cacheid=yes 6186else 6187 eval $cacheid=no 6188fi 6189rm -f core conftest.err conftest.$ac_objext \ 6190 conftest$ac_exeext conftest.$ac_ext 6191fi 6192 6193 6194 CFLAGS="$xorg_testset_save_CFLAGS" 6195 6196 eval supported=\$$cacheid 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6198$as_echo "$supported" >&6; } 6199 if test "$supported" = "yes" ; then 6200 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6201 found="yes" 6202 fi 6203 fi 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219xorg_testset_save_CFLAGS="$CFLAGS" 6220 6221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6229/* end confdefs.h. */ 6230int i; 6231_ACEOF 6232if ac_fn_c_try_compile "$LINENO"; then : 6233 xorg_cv_cc_flag_unknown_warning_option=yes 6234else 6235 xorg_cv_cc_flag_unknown_warning_option=no 6236fi 6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6238fi 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6242 CFLAGS="$xorg_testset_save_CFLAGS" 6243fi 6244 6245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 fi 6249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256/* end confdefs.h. */ 6257int i; 6258_ACEOF 6259if ac_fn_c_try_compile "$LINENO"; then : 6260 xorg_cv_cc_flag_unused_command_line_argument=yes 6261else 6262 xorg_cv_cc_flag_unused_command_line_argument=no 6263fi 6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6265fi 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6269 CFLAGS="$xorg_testset_save_CFLAGS" 6270fi 6271 6272found="no" 6273 6274 if test $found = "no" ; then 6275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6277 fi 6278 6279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6281 fi 6282 6283 CFLAGS="$CFLAGS -Wlogical-op" 6284 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6286$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6287 cacheid=xorg_cv_cc_flag__Wlogical_op 6288 if eval \${$cacheid+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293int i; 6294int 6295main () 6296{ 6297 6298 ; 6299 return 0; 6300} 6301_ACEOF 6302if ac_fn_c_try_link "$LINENO"; then : 6303 eval $cacheid=yes 6304else 6305 eval $cacheid=no 6306fi 6307rm -f core conftest.err conftest.$ac_objext \ 6308 conftest$ac_exeext conftest.$ac_ext 6309fi 6310 6311 6312 CFLAGS="$xorg_testset_save_CFLAGS" 6313 6314 eval supported=\$$cacheid 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6316$as_echo "$supported" >&6; } 6317 if test "$supported" = "yes" ; then 6318 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6319 found="yes" 6320 fi 6321 fi 6322 6323 6324 6325# These are currently disabled because they are noisy. They will be enabled 6326# in the future once the codebase is sufficiently modernized to silence 6327# them. For now, I don't want them to drown out the other warnings. 6328# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6329# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6330# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6331 6332# Turn some warnings into errors, so we don't accidently get successful builds 6333# when there are problems that should be fixed. 6334 6335if test "x$SELECTIVE_WERROR" = "xyes" ; then 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349xorg_testset_save_CFLAGS="$CFLAGS" 6350 6351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359/* end confdefs.h. */ 6360int i; 6361_ACEOF 6362if ac_fn_c_try_compile "$LINENO"; then : 6363 xorg_cv_cc_flag_unknown_warning_option=yes 6364else 6365 xorg_cv_cc_flag_unknown_warning_option=no 6366fi 6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6368fi 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6372 CFLAGS="$xorg_testset_save_CFLAGS" 6373fi 6374 6375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6378 fi 6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386/* end confdefs.h. */ 6387int i; 6388_ACEOF 6389if ac_fn_c_try_compile "$LINENO"; then : 6390 xorg_cv_cc_flag_unused_command_line_argument=yes 6391else 6392 xorg_cv_cc_flag_unused_command_line_argument=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6395fi 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6399 CFLAGS="$xorg_testset_save_CFLAGS" 6400fi 6401 6402found="no" 6403 6404 if test $found = "no" ; then 6405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6407 fi 6408 6409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6411 fi 6412 6413 CFLAGS="$CFLAGS -Werror=implicit" 6414 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6416$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6417 cacheid=xorg_cv_cc_flag__Werror_implicit 6418 if eval \${$cacheid+:} false; then : 6419 $as_echo_n "(cached) " >&6 6420else 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422/* end confdefs.h. */ 6423int i; 6424int 6425main () 6426{ 6427 6428 ; 6429 return 0; 6430} 6431_ACEOF 6432if ac_fn_c_try_link "$LINENO"; then : 6433 eval $cacheid=yes 6434else 6435 eval $cacheid=no 6436fi 6437rm -f core conftest.err conftest.$ac_objext \ 6438 conftest$ac_exeext conftest.$ac_ext 6439fi 6440 6441 6442 CFLAGS="$xorg_testset_save_CFLAGS" 6443 6444 eval supported=\$$cacheid 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6446$as_echo "$supported" >&6; } 6447 if test "$supported" = "yes" ; then 6448 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6449 found="yes" 6450 fi 6451 fi 6452 6453 if test $found = "no" ; then 6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6456 fi 6457 6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6460 fi 6461 6462 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6463 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6465$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6466 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6467 if eval \${$cacheid+:} false; then : 6468 $as_echo_n "(cached) " >&6 6469else 6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6471/* end confdefs.h. */ 6472int i; 6473int 6474main () 6475{ 6476 6477 ; 6478 return 0; 6479} 6480_ACEOF 6481if ac_fn_c_try_link "$LINENO"; then : 6482 eval $cacheid=yes 6483else 6484 eval $cacheid=no 6485fi 6486rm -f core conftest.err conftest.$ac_objext \ 6487 conftest$ac_exeext conftest.$ac_ext 6488fi 6489 6490 6491 CFLAGS="$xorg_testset_save_CFLAGS" 6492 6493 eval supported=\$$cacheid 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6495$as_echo "$supported" >&6; } 6496 if test "$supported" = "yes" ; then 6497 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6498 found="yes" 6499 fi 6500 fi 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516xorg_testset_save_CFLAGS="$CFLAGS" 6517 6518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6526/* end confdefs.h. */ 6527int i; 6528_ACEOF 6529if ac_fn_c_try_compile "$LINENO"; then : 6530 xorg_cv_cc_flag_unknown_warning_option=yes 6531else 6532 xorg_cv_cc_flag_unknown_warning_option=no 6533fi 6534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6535fi 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540fi 6541 6542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6545 fi 6546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6550 $as_echo_n "(cached) " >&6 6551else 6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6553/* end confdefs.h. */ 6554int i; 6555_ACEOF 6556if ac_fn_c_try_compile "$LINENO"; then : 6557 xorg_cv_cc_flag_unused_command_line_argument=yes 6558else 6559 xorg_cv_cc_flag_unused_command_line_argument=no 6560fi 6561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6562fi 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6566 CFLAGS="$xorg_testset_save_CFLAGS" 6567fi 6568 6569found="no" 6570 6571 if test $found = "no" ; then 6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6574 fi 6575 6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6578 fi 6579 6580 CFLAGS="$CFLAGS -Werror=nonnull" 6581 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6583$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6584 cacheid=xorg_cv_cc_flag__Werror_nonnull 6585 if eval \${$cacheid+:} false; then : 6586 $as_echo_n "(cached) " >&6 6587else 6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6589/* end confdefs.h. */ 6590int i; 6591int 6592main () 6593{ 6594 6595 ; 6596 return 0; 6597} 6598_ACEOF 6599if ac_fn_c_try_link "$LINENO"; then : 6600 eval $cacheid=yes 6601else 6602 eval $cacheid=no 6603fi 6604rm -f core conftest.err conftest.$ac_objext \ 6605 conftest$ac_exeext conftest.$ac_ext 6606fi 6607 6608 6609 CFLAGS="$xorg_testset_save_CFLAGS" 6610 6611 eval supported=\$$cacheid 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6613$as_echo "$supported" >&6; } 6614 if test "$supported" = "yes" ; then 6615 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6616 found="yes" 6617 fi 6618 fi 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634xorg_testset_save_CFLAGS="$CFLAGS" 6635 6636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644/* end confdefs.h. */ 6645int i; 6646_ACEOF 6647if ac_fn_c_try_compile "$LINENO"; then : 6648 xorg_cv_cc_flag_unknown_warning_option=yes 6649else 6650 xorg_cv_cc_flag_unknown_warning_option=no 6651fi 6652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6653fi 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6657 CFLAGS="$xorg_testset_save_CFLAGS" 6658fi 6659 6660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6663 fi 6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671/* end confdefs.h. */ 6672int i; 6673_ACEOF 6674if ac_fn_c_try_compile "$LINENO"; then : 6675 xorg_cv_cc_flag_unused_command_line_argument=yes 6676else 6677 xorg_cv_cc_flag_unused_command_line_argument=no 6678fi 6679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6680fi 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6684 CFLAGS="$xorg_testset_save_CFLAGS" 6685fi 6686 6687found="no" 6688 6689 if test $found = "no" ; then 6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6692 fi 6693 6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6696 fi 6697 6698 CFLAGS="$CFLAGS -Werror=init-self" 6699 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6701$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6702 cacheid=xorg_cv_cc_flag__Werror_init_self 6703 if eval \${$cacheid+:} false; then : 6704 $as_echo_n "(cached) " >&6 6705else 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707/* end confdefs.h. */ 6708int i; 6709int 6710main () 6711{ 6712 6713 ; 6714 return 0; 6715} 6716_ACEOF 6717if ac_fn_c_try_link "$LINENO"; then : 6718 eval $cacheid=yes 6719else 6720 eval $cacheid=no 6721fi 6722rm -f core conftest.err conftest.$ac_objext \ 6723 conftest$ac_exeext conftest.$ac_ext 6724fi 6725 6726 6727 CFLAGS="$xorg_testset_save_CFLAGS" 6728 6729 eval supported=\$$cacheid 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6731$as_echo "$supported" >&6; } 6732 if test "$supported" = "yes" ; then 6733 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6734 found="yes" 6735 fi 6736 fi 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752xorg_testset_save_CFLAGS="$CFLAGS" 6753 6754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6759 $as_echo_n "(cached) " >&6 6760else 6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6762/* end confdefs.h. */ 6763int i; 6764_ACEOF 6765if ac_fn_c_try_compile "$LINENO"; then : 6766 xorg_cv_cc_flag_unknown_warning_option=yes 6767else 6768 xorg_cv_cc_flag_unknown_warning_option=no 6769fi 6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6771fi 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6775 CFLAGS="$xorg_testset_save_CFLAGS" 6776fi 6777 6778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6781 fi 6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6786 $as_echo_n "(cached) " >&6 6787else 6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789/* end confdefs.h. */ 6790int i; 6791_ACEOF 6792if ac_fn_c_try_compile "$LINENO"; then : 6793 xorg_cv_cc_flag_unused_command_line_argument=yes 6794else 6795 xorg_cv_cc_flag_unused_command_line_argument=no 6796fi 6797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6798fi 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6802 CFLAGS="$xorg_testset_save_CFLAGS" 6803fi 6804 6805found="no" 6806 6807 if test $found = "no" ; then 6808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6810 fi 6811 6812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6814 fi 6815 6816 CFLAGS="$CFLAGS -Werror=main" 6817 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6819$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 6820 cacheid=xorg_cv_cc_flag__Werror_main 6821 if eval \${$cacheid+:} false; then : 6822 $as_echo_n "(cached) " >&6 6823else 6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6825/* end confdefs.h. */ 6826int i; 6827int 6828main () 6829{ 6830 6831 ; 6832 return 0; 6833} 6834_ACEOF 6835if ac_fn_c_try_link "$LINENO"; then : 6836 eval $cacheid=yes 6837else 6838 eval $cacheid=no 6839fi 6840rm -f core conftest.err conftest.$ac_objext \ 6841 conftest$ac_exeext conftest.$ac_ext 6842fi 6843 6844 6845 CFLAGS="$xorg_testset_save_CFLAGS" 6846 6847 eval supported=\$$cacheid 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6849$as_echo "$supported" >&6; } 6850 if test "$supported" = "yes" ; then 6851 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 6852 found="yes" 6853 fi 6854 fi 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870xorg_testset_save_CFLAGS="$CFLAGS" 6871 6872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6877 $as_echo_n "(cached) " >&6 6878else 6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6880/* end confdefs.h. */ 6881int i; 6882_ACEOF 6883if ac_fn_c_try_compile "$LINENO"; then : 6884 xorg_cv_cc_flag_unknown_warning_option=yes 6885else 6886 xorg_cv_cc_flag_unknown_warning_option=no 6887fi 6888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6889fi 6890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6893 CFLAGS="$xorg_testset_save_CFLAGS" 6894fi 6895 6896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6899 fi 6900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6904 $as_echo_n "(cached) " >&6 6905else 6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6907/* end confdefs.h. */ 6908int i; 6909_ACEOF 6910if ac_fn_c_try_compile "$LINENO"; then : 6911 xorg_cv_cc_flag_unused_command_line_argument=yes 6912else 6913 xorg_cv_cc_flag_unused_command_line_argument=no 6914fi 6915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6916fi 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6920 CFLAGS="$xorg_testset_save_CFLAGS" 6921fi 6922 6923found="no" 6924 6925 if test $found = "no" ; then 6926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6928 fi 6929 6930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6932 fi 6933 6934 CFLAGS="$CFLAGS -Werror=missing-braces" 6935 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 6937$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 6938 cacheid=xorg_cv_cc_flag__Werror_missing_braces 6939 if eval \${$cacheid+:} false; then : 6940 $as_echo_n "(cached) " >&6 6941else 6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6943/* end confdefs.h. */ 6944int i; 6945int 6946main () 6947{ 6948 6949 ; 6950 return 0; 6951} 6952_ACEOF 6953if ac_fn_c_try_link "$LINENO"; then : 6954 eval $cacheid=yes 6955else 6956 eval $cacheid=no 6957fi 6958rm -f core conftest.err conftest.$ac_objext \ 6959 conftest$ac_exeext conftest.$ac_ext 6960fi 6961 6962 6963 CFLAGS="$xorg_testset_save_CFLAGS" 6964 6965 eval supported=\$$cacheid 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6967$as_echo "$supported" >&6; } 6968 if test "$supported" = "yes" ; then 6969 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 6970 found="yes" 6971 fi 6972 fi 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988xorg_testset_save_CFLAGS="$CFLAGS" 6989 6990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999int i; 7000_ACEOF 7001if ac_fn_c_try_compile "$LINENO"; then : 7002 xorg_cv_cc_flag_unknown_warning_option=yes 7003else 7004 xorg_cv_cc_flag_unknown_warning_option=no 7005fi 7006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7007fi 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7011 CFLAGS="$xorg_testset_save_CFLAGS" 7012fi 7013 7014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7017 fi 7018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026int i; 7027_ACEOF 7028if ac_fn_c_try_compile "$LINENO"; then : 7029 xorg_cv_cc_flag_unused_command_line_argument=yes 7030else 7031 xorg_cv_cc_flag_unused_command_line_argument=no 7032fi 7033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7034fi 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7038 CFLAGS="$xorg_testset_save_CFLAGS" 7039fi 7040 7041found="no" 7042 7043 if test $found = "no" ; then 7044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7046 fi 7047 7048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7050 fi 7051 7052 CFLAGS="$CFLAGS -Werror=sequence-point" 7053 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7055$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7056 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7057 if eval \${$cacheid+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062int i; 7063int 7064main () 7065{ 7066 7067 ; 7068 return 0; 7069} 7070_ACEOF 7071if ac_fn_c_try_link "$LINENO"; then : 7072 eval $cacheid=yes 7073else 7074 eval $cacheid=no 7075fi 7076rm -f core conftest.err conftest.$ac_objext \ 7077 conftest$ac_exeext conftest.$ac_ext 7078fi 7079 7080 7081 CFLAGS="$xorg_testset_save_CFLAGS" 7082 7083 eval supported=\$$cacheid 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7085$as_echo "$supported" >&6; } 7086 if test "$supported" = "yes" ; then 7087 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7088 found="yes" 7089 fi 7090 fi 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106xorg_testset_save_CFLAGS="$CFLAGS" 7107 7108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114else 7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7116/* end confdefs.h. */ 7117int i; 7118_ACEOF 7119if ac_fn_c_try_compile "$LINENO"; then : 7120 xorg_cv_cc_flag_unknown_warning_option=yes 7121else 7122 xorg_cv_cc_flag_unknown_warning_option=no 7123fi 7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7125fi 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7129 CFLAGS="$xorg_testset_save_CFLAGS" 7130fi 7131 7132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7135 fi 7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7140 $as_echo_n "(cached) " >&6 7141else 7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7143/* end confdefs.h. */ 7144int i; 7145_ACEOF 7146if ac_fn_c_try_compile "$LINENO"; then : 7147 xorg_cv_cc_flag_unused_command_line_argument=yes 7148else 7149 xorg_cv_cc_flag_unused_command_line_argument=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7152fi 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157fi 7158 7159found="no" 7160 7161 if test $found = "no" ; then 7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 fi 7165 7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7168 fi 7169 7170 CFLAGS="$CFLAGS -Werror=return-type" 7171 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7173$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7174 cacheid=xorg_cv_cc_flag__Werror_return_type 7175 if eval \${$cacheid+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179/* end confdefs.h. */ 7180int i; 7181int 7182main () 7183{ 7184 7185 ; 7186 return 0; 7187} 7188_ACEOF 7189if ac_fn_c_try_link "$LINENO"; then : 7190 eval $cacheid=yes 7191else 7192 eval $cacheid=no 7193fi 7194rm -f core conftest.err conftest.$ac_objext \ 7195 conftest$ac_exeext conftest.$ac_ext 7196fi 7197 7198 7199 CFLAGS="$xorg_testset_save_CFLAGS" 7200 7201 eval supported=\$$cacheid 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7203$as_echo "$supported" >&6; } 7204 if test "$supported" = "yes" ; then 7205 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7206 found="yes" 7207 fi 7208 fi 7209 7210 if test $found = "no" ; then 7211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7213 fi 7214 7215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7217 fi 7218 7219 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7220 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7222$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7223 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7224 if eval \${$cacheid+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7228/* end confdefs.h. */ 7229int i; 7230int 7231main () 7232{ 7233 7234 ; 7235 return 0; 7236} 7237_ACEOF 7238if ac_fn_c_try_link "$LINENO"; then : 7239 eval $cacheid=yes 7240else 7241 eval $cacheid=no 7242fi 7243rm -f core conftest.err conftest.$ac_objext \ 7244 conftest$ac_exeext conftest.$ac_ext 7245fi 7246 7247 7248 CFLAGS="$xorg_testset_save_CFLAGS" 7249 7250 eval supported=\$$cacheid 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7252$as_echo "$supported" >&6; } 7253 if test "$supported" = "yes" ; then 7254 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7255 found="yes" 7256 fi 7257 fi 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273xorg_testset_save_CFLAGS="$CFLAGS" 7274 7275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7280 $as_echo_n "(cached) " >&6 7281else 7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7283/* end confdefs.h. */ 7284int i; 7285_ACEOF 7286if ac_fn_c_try_compile "$LINENO"; then : 7287 xorg_cv_cc_flag_unknown_warning_option=yes 7288else 7289 xorg_cv_cc_flag_unknown_warning_option=no 7290fi 7291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7292fi 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7296 CFLAGS="$xorg_testset_save_CFLAGS" 7297fi 7298 7299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7302 fi 7303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310/* end confdefs.h. */ 7311int i; 7312_ACEOF 7313if ac_fn_c_try_compile "$LINENO"; then : 7314 xorg_cv_cc_flag_unused_command_line_argument=yes 7315else 7316 xorg_cv_cc_flag_unused_command_line_argument=no 7317fi 7318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7319fi 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7323 CFLAGS="$xorg_testset_save_CFLAGS" 7324fi 7325 7326found="no" 7327 7328 if test $found = "no" ; then 7329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7331 fi 7332 7333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7335 fi 7336 7337 CFLAGS="$CFLAGS -Werror=trigraphs" 7338 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7340$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7341 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7342 if eval \${$cacheid+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347int i; 7348int 7349main () 7350{ 7351 7352 ; 7353 return 0; 7354} 7355_ACEOF 7356if ac_fn_c_try_link "$LINENO"; then : 7357 eval $cacheid=yes 7358else 7359 eval $cacheid=no 7360fi 7361rm -f core conftest.err conftest.$ac_objext \ 7362 conftest$ac_exeext conftest.$ac_ext 7363fi 7364 7365 7366 CFLAGS="$xorg_testset_save_CFLAGS" 7367 7368 eval supported=\$$cacheid 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7370$as_echo "$supported" >&6; } 7371 if test "$supported" = "yes" ; then 7372 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7373 found="yes" 7374 fi 7375 fi 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391xorg_testset_save_CFLAGS="$CFLAGS" 7392 7393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7398 $as_echo_n "(cached) " >&6 7399else 7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7401/* end confdefs.h. */ 7402int i; 7403_ACEOF 7404if ac_fn_c_try_compile "$LINENO"; then : 7405 xorg_cv_cc_flag_unknown_warning_option=yes 7406else 7407 xorg_cv_cc_flag_unknown_warning_option=no 7408fi 7409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7410fi 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7414 CFLAGS="$xorg_testset_save_CFLAGS" 7415fi 7416 7417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7420 fi 7421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429int i; 7430_ACEOF 7431if ac_fn_c_try_compile "$LINENO"; then : 7432 xorg_cv_cc_flag_unused_command_line_argument=yes 7433else 7434 xorg_cv_cc_flag_unused_command_line_argument=no 7435fi 7436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7437fi 7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7441 CFLAGS="$xorg_testset_save_CFLAGS" 7442fi 7443 7444found="no" 7445 7446 if test $found = "no" ; then 7447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7449 fi 7450 7451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7453 fi 7454 7455 CFLAGS="$CFLAGS -Werror=array-bounds" 7456 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7458$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7459 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7460 if eval \${$cacheid+:} false; then : 7461 $as_echo_n "(cached) " >&6 7462else 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465int i; 7466int 7467main () 7468{ 7469 7470 ; 7471 return 0; 7472} 7473_ACEOF 7474if ac_fn_c_try_link "$LINENO"; then : 7475 eval $cacheid=yes 7476else 7477 eval $cacheid=no 7478fi 7479rm -f core conftest.err conftest.$ac_objext \ 7480 conftest$ac_exeext conftest.$ac_ext 7481fi 7482 7483 7484 CFLAGS="$xorg_testset_save_CFLAGS" 7485 7486 eval supported=\$$cacheid 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7488$as_echo "$supported" >&6; } 7489 if test "$supported" = "yes" ; then 7490 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7491 found="yes" 7492 fi 7493 fi 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509xorg_testset_save_CFLAGS="$CFLAGS" 7510 7511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7516 $as_echo_n "(cached) " >&6 7517else 7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7519/* end confdefs.h. */ 7520int i; 7521_ACEOF 7522if ac_fn_c_try_compile "$LINENO"; then : 7523 xorg_cv_cc_flag_unknown_warning_option=yes 7524else 7525 xorg_cv_cc_flag_unknown_warning_option=no 7526fi 7527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7528fi 7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7532 CFLAGS="$xorg_testset_save_CFLAGS" 7533fi 7534 7535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7538 fi 7539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7543 $as_echo_n "(cached) " >&6 7544else 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547int i; 7548_ACEOF 7549if ac_fn_c_try_compile "$LINENO"; then : 7550 xorg_cv_cc_flag_unused_command_line_argument=yes 7551else 7552 xorg_cv_cc_flag_unused_command_line_argument=no 7553fi 7554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7555fi 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7559 CFLAGS="$xorg_testset_save_CFLAGS" 7560fi 7561 7562found="no" 7563 7564 if test $found = "no" ; then 7565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7567 fi 7568 7569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7571 fi 7572 7573 CFLAGS="$CFLAGS -Werror=write-strings" 7574 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7576$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7577 cacheid=xorg_cv_cc_flag__Werror_write_strings 7578 if eval \${$cacheid+:} false; then : 7579 $as_echo_n "(cached) " >&6 7580else 7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7582/* end confdefs.h. */ 7583int i; 7584int 7585main () 7586{ 7587 7588 ; 7589 return 0; 7590} 7591_ACEOF 7592if ac_fn_c_try_link "$LINENO"; then : 7593 eval $cacheid=yes 7594else 7595 eval $cacheid=no 7596fi 7597rm -f core conftest.err conftest.$ac_objext \ 7598 conftest$ac_exeext conftest.$ac_ext 7599fi 7600 7601 7602 CFLAGS="$xorg_testset_save_CFLAGS" 7603 7604 eval supported=\$$cacheid 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7606$as_echo "$supported" >&6; } 7607 if test "$supported" = "yes" ; then 7608 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7609 found="yes" 7610 fi 7611 fi 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627xorg_testset_save_CFLAGS="$CFLAGS" 7628 7629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638int i; 7639_ACEOF 7640if ac_fn_c_try_compile "$LINENO"; then : 7641 xorg_cv_cc_flag_unknown_warning_option=yes 7642else 7643 xorg_cv_cc_flag_unknown_warning_option=no 7644fi 7645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7646fi 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7650 CFLAGS="$xorg_testset_save_CFLAGS" 7651fi 7652 7653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7656 fi 7657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7664/* end confdefs.h. */ 7665int i; 7666_ACEOF 7667if ac_fn_c_try_compile "$LINENO"; then : 7668 xorg_cv_cc_flag_unused_command_line_argument=yes 7669else 7670 xorg_cv_cc_flag_unused_command_line_argument=no 7671fi 7672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7673fi 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7677 CFLAGS="$xorg_testset_save_CFLAGS" 7678fi 7679 7680found="no" 7681 7682 if test $found = "no" ; then 7683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7685 fi 7686 7687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7689 fi 7690 7691 CFLAGS="$CFLAGS -Werror=address" 7692 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7694$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7695 cacheid=xorg_cv_cc_flag__Werror_address 7696 if eval \${$cacheid+:} false; then : 7697 $as_echo_n "(cached) " >&6 7698else 7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700/* end confdefs.h. */ 7701int i; 7702int 7703main () 7704{ 7705 7706 ; 7707 return 0; 7708} 7709_ACEOF 7710if ac_fn_c_try_link "$LINENO"; then : 7711 eval $cacheid=yes 7712else 7713 eval $cacheid=no 7714fi 7715rm -f core conftest.err conftest.$ac_objext \ 7716 conftest$ac_exeext conftest.$ac_ext 7717fi 7718 7719 7720 CFLAGS="$xorg_testset_save_CFLAGS" 7721 7722 eval supported=\$$cacheid 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7724$as_echo "$supported" >&6; } 7725 if test "$supported" = "yes" ; then 7726 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7727 found="yes" 7728 fi 7729 fi 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745xorg_testset_save_CFLAGS="$CFLAGS" 7746 7747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7752 $as_echo_n "(cached) " >&6 7753else 7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7755/* end confdefs.h. */ 7756int i; 7757_ACEOF 7758if ac_fn_c_try_compile "$LINENO"; then : 7759 xorg_cv_cc_flag_unknown_warning_option=yes 7760else 7761 xorg_cv_cc_flag_unknown_warning_option=no 7762fi 7763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7764fi 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7768 CFLAGS="$xorg_testset_save_CFLAGS" 7769fi 7770 7771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 fi 7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784_ACEOF 7785if ac_fn_c_try_compile "$LINENO"; then : 7786 xorg_cv_cc_flag_unused_command_line_argument=yes 7787else 7788 xorg_cv_cc_flag_unused_command_line_argument=no 7789fi 7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7791fi 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7795 CFLAGS="$xorg_testset_save_CFLAGS" 7796fi 7797 7798found="no" 7799 7800 if test $found = "no" ; then 7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7803 fi 7804 7805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7807 fi 7808 7809 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 7810 7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 7812$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 7813 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 7814 if eval \${$cacheid+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819int i; 7820int 7821main () 7822{ 7823 7824 ; 7825 return 0; 7826} 7827_ACEOF 7828if ac_fn_c_try_link "$LINENO"; then : 7829 eval $cacheid=yes 7830else 7831 eval $cacheid=no 7832fi 7833rm -f core conftest.err conftest.$ac_objext \ 7834 conftest$ac_exeext conftest.$ac_ext 7835fi 7836 7837 7838 CFLAGS="$xorg_testset_save_CFLAGS" 7839 7840 eval supported=\$$cacheid 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7842$as_echo "$supported" >&6; } 7843 if test "$supported" = "yes" ; then 7844 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 7845 found="yes" 7846 fi 7847 fi 7848 7849 if test $found = "no" ; then 7850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7852 fi 7853 7854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7856 fi 7857 7858 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7859 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 7861$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 7862 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 7863 if eval \${$cacheid+:} false; then : 7864 $as_echo_n "(cached) " >&6 7865else 7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7867/* end confdefs.h. */ 7868int i; 7869int 7870main () 7871{ 7872 7873 ; 7874 return 0; 7875} 7876_ACEOF 7877if ac_fn_c_try_link "$LINENO"; then : 7878 eval $cacheid=yes 7879else 7880 eval $cacheid=no 7881fi 7882rm -f core conftest.err conftest.$ac_objext \ 7883 conftest$ac_exeext conftest.$ac_ext 7884fi 7885 7886 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888 7889 eval supported=\$$cacheid 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7891$as_echo "$supported" >&6; } 7892 if test "$supported" = "yes" ; then 7893 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7894 found="yes" 7895 fi 7896 fi 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912xorg_testset_save_CFLAGS="$CFLAGS" 7913 7914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7919 $as_echo_n "(cached) " >&6 7920else 7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7922/* end confdefs.h. */ 7923int i; 7924_ACEOF 7925if ac_fn_c_try_compile "$LINENO"; then : 7926 xorg_cv_cc_flag_unknown_warning_option=yes 7927else 7928 xorg_cv_cc_flag_unknown_warning_option=no 7929fi 7930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7931fi 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7935 CFLAGS="$xorg_testset_save_CFLAGS" 7936fi 7937 7938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7941 fi 7942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7946 $as_echo_n "(cached) " >&6 7947else 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950int i; 7951_ACEOF 7952if ac_fn_c_try_compile "$LINENO"; then : 7953 xorg_cv_cc_flag_unused_command_line_argument=yes 7954else 7955 xorg_cv_cc_flag_unused_command_line_argument=no 7956fi 7957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7958fi 7959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7962 CFLAGS="$xorg_testset_save_CFLAGS" 7963fi 7964 7965found="no" 7966 7967 if test $found = "no" ; then 7968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7970 fi 7971 7972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7974 fi 7975 7976 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 7977 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 7979$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 7980 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 7981 if eval \${$cacheid+:} false; then : 7982 $as_echo_n "(cached) " >&6 7983else 7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985/* end confdefs.h. */ 7986int i; 7987int 7988main () 7989{ 7990 7991 ; 7992 return 0; 7993} 7994_ACEOF 7995if ac_fn_c_try_link "$LINENO"; then : 7996 eval $cacheid=yes 7997else 7998 eval $cacheid=no 7999fi 8000rm -f core conftest.err conftest.$ac_objext \ 8001 conftest$ac_exeext conftest.$ac_ext 8002fi 8003 8004 8005 CFLAGS="$xorg_testset_save_CFLAGS" 8006 8007 eval supported=\$$cacheid 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8009$as_echo "$supported" >&6; } 8010 if test "$supported" = "yes" ; then 8011 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8012 found="yes" 8013 fi 8014 fi 8015 8016 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8017else 8018{ $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 8019$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;} 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033xorg_testset_save_CFLAGS="$CFLAGS" 8034 8035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8043/* end confdefs.h. */ 8044int i; 8045_ACEOF 8046if ac_fn_c_try_compile "$LINENO"; then : 8047 xorg_cv_cc_flag_unknown_warning_option=yes 8048else 8049 xorg_cv_cc_flag_unknown_warning_option=no 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8056 CFLAGS="$xorg_testset_save_CFLAGS" 8057fi 8058 8059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8062 fi 8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072_ACEOF 8073if ac_fn_c_try_compile "$LINENO"; then : 8074 xorg_cv_cc_flag_unused_command_line_argument=yes 8075else 8076 xorg_cv_cc_flag_unused_command_line_argument=no 8077fi 8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8079fi 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8083 CFLAGS="$xorg_testset_save_CFLAGS" 8084fi 8085 8086found="no" 8087 8088 if test $found = "no" ; then 8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8091 fi 8092 8093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8095 fi 8096 8097 CFLAGS="$CFLAGS -Wimplicit" 8098 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8100$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8101 cacheid=xorg_cv_cc_flag__Wimplicit 8102 if eval \${$cacheid+:} false; then : 8103 $as_echo_n "(cached) " >&6 8104else 8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8106/* end confdefs.h. */ 8107int i; 8108int 8109main () 8110{ 8111 8112 ; 8113 return 0; 8114} 8115_ACEOF 8116if ac_fn_c_try_link "$LINENO"; then : 8117 eval $cacheid=yes 8118else 8119 eval $cacheid=no 8120fi 8121rm -f core conftest.err conftest.$ac_objext \ 8122 conftest$ac_exeext conftest.$ac_ext 8123fi 8124 8125 8126 CFLAGS="$xorg_testset_save_CFLAGS" 8127 8128 eval supported=\$$cacheid 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8130$as_echo "$supported" >&6; } 8131 if test "$supported" = "yes" ; then 8132 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8133 found="yes" 8134 fi 8135 fi 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151xorg_testset_save_CFLAGS="$CFLAGS" 8152 8153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162int i; 8163_ACEOF 8164if ac_fn_c_try_compile "$LINENO"; then : 8165 xorg_cv_cc_flag_unknown_warning_option=yes 8166else 8167 xorg_cv_cc_flag_unknown_warning_option=no 8168fi 8169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8170fi 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8174 CFLAGS="$xorg_testset_save_CFLAGS" 8175fi 8176 8177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8180 fi 8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189int i; 8190_ACEOF 8191if ac_fn_c_try_compile "$LINENO"; then : 8192 xorg_cv_cc_flag_unused_command_line_argument=yes 8193else 8194 xorg_cv_cc_flag_unused_command_line_argument=no 8195fi 8196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8197fi 8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8201 CFLAGS="$xorg_testset_save_CFLAGS" 8202fi 8203 8204found="no" 8205 8206 if test $found = "no" ; then 8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 fi 8210 8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8213 fi 8214 8215 CFLAGS="$CFLAGS -Wnonnull" 8216 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8218$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8219 cacheid=xorg_cv_cc_flag__Wnonnull 8220 if eval \${$cacheid+:} false; then : 8221 $as_echo_n "(cached) " >&6 8222else 8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8224/* end confdefs.h. */ 8225int i; 8226int 8227main () 8228{ 8229 8230 ; 8231 return 0; 8232} 8233_ACEOF 8234if ac_fn_c_try_link "$LINENO"; then : 8235 eval $cacheid=yes 8236else 8237 eval $cacheid=no 8238fi 8239rm -f core conftest.err conftest.$ac_objext \ 8240 conftest$ac_exeext conftest.$ac_ext 8241fi 8242 8243 8244 CFLAGS="$xorg_testset_save_CFLAGS" 8245 8246 eval supported=\$$cacheid 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8248$as_echo "$supported" >&6; } 8249 if test "$supported" = "yes" ; then 8250 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8251 found="yes" 8252 fi 8253 fi 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269xorg_testset_save_CFLAGS="$CFLAGS" 8270 8271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280int i; 8281_ACEOF 8282if ac_fn_c_try_compile "$LINENO"; then : 8283 xorg_cv_cc_flag_unknown_warning_option=yes 8284else 8285 xorg_cv_cc_flag_unknown_warning_option=no 8286fi 8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288fi 8289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8292 CFLAGS="$xorg_testset_save_CFLAGS" 8293fi 8294 8295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8298 fi 8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307int i; 8308_ACEOF 8309if ac_fn_c_try_compile "$LINENO"; then : 8310 xorg_cv_cc_flag_unused_command_line_argument=yes 8311else 8312 xorg_cv_cc_flag_unused_command_line_argument=no 8313fi 8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8315fi 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8319 CFLAGS="$xorg_testset_save_CFLAGS" 8320fi 8321 8322found="no" 8323 8324 if test $found = "no" ; then 8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8327 fi 8328 8329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8331 fi 8332 8333 CFLAGS="$CFLAGS -Winit-self" 8334 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8336$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8337 cacheid=xorg_cv_cc_flag__Winit_self 8338 if eval \${$cacheid+:} false; then : 8339 $as_echo_n "(cached) " >&6 8340else 8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8342/* end confdefs.h. */ 8343int i; 8344int 8345main () 8346{ 8347 8348 ; 8349 return 0; 8350} 8351_ACEOF 8352if ac_fn_c_try_link "$LINENO"; then : 8353 eval $cacheid=yes 8354else 8355 eval $cacheid=no 8356fi 8357rm -f core conftest.err conftest.$ac_objext \ 8358 conftest$ac_exeext conftest.$ac_ext 8359fi 8360 8361 8362 CFLAGS="$xorg_testset_save_CFLAGS" 8363 8364 eval supported=\$$cacheid 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8366$as_echo "$supported" >&6; } 8367 if test "$supported" = "yes" ; then 8368 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8369 found="yes" 8370 fi 8371 fi 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387xorg_testset_save_CFLAGS="$CFLAGS" 8388 8389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8394 $as_echo_n "(cached) " >&6 8395else 8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8397/* end confdefs.h. */ 8398int i; 8399_ACEOF 8400if ac_fn_c_try_compile "$LINENO"; then : 8401 xorg_cv_cc_flag_unknown_warning_option=yes 8402else 8403 xorg_cv_cc_flag_unknown_warning_option=no 8404fi 8405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8406fi 8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8410 CFLAGS="$xorg_testset_save_CFLAGS" 8411fi 8412 8413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8416 fi 8417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8424/* end confdefs.h. */ 8425int i; 8426_ACEOF 8427if ac_fn_c_try_compile "$LINENO"; then : 8428 xorg_cv_cc_flag_unused_command_line_argument=yes 8429else 8430 xorg_cv_cc_flag_unused_command_line_argument=no 8431fi 8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8433fi 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8437 CFLAGS="$xorg_testset_save_CFLAGS" 8438fi 8439 8440found="no" 8441 8442 if test $found = "no" ; then 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 fi 8446 8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8449 fi 8450 8451 CFLAGS="$CFLAGS -Wmain" 8452 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8454$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8455 cacheid=xorg_cv_cc_flag__Wmain 8456 if eval \${$cacheid+:} false; then : 8457 $as_echo_n "(cached) " >&6 8458else 8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8460/* end confdefs.h. */ 8461int i; 8462int 8463main () 8464{ 8465 8466 ; 8467 return 0; 8468} 8469_ACEOF 8470if ac_fn_c_try_link "$LINENO"; then : 8471 eval $cacheid=yes 8472else 8473 eval $cacheid=no 8474fi 8475rm -f core conftest.err conftest.$ac_objext \ 8476 conftest$ac_exeext conftest.$ac_ext 8477fi 8478 8479 8480 CFLAGS="$xorg_testset_save_CFLAGS" 8481 8482 eval supported=\$$cacheid 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8484$as_echo "$supported" >&6; } 8485 if test "$supported" = "yes" ; then 8486 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8487 found="yes" 8488 fi 8489 fi 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505xorg_testset_save_CFLAGS="$CFLAGS" 8506 8507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8512 $as_echo_n "(cached) " >&6 8513else 8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8515/* end confdefs.h. */ 8516int i; 8517_ACEOF 8518if ac_fn_c_try_compile "$LINENO"; then : 8519 xorg_cv_cc_flag_unknown_warning_option=yes 8520else 8521 xorg_cv_cc_flag_unknown_warning_option=no 8522fi 8523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8524fi 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8528 CFLAGS="$xorg_testset_save_CFLAGS" 8529fi 8530 8531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8534 fi 8535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8539 $as_echo_n "(cached) " >&6 8540else 8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8542/* end confdefs.h. */ 8543int i; 8544_ACEOF 8545if ac_fn_c_try_compile "$LINENO"; then : 8546 xorg_cv_cc_flag_unused_command_line_argument=yes 8547else 8548 xorg_cv_cc_flag_unused_command_line_argument=no 8549fi 8550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8551fi 8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8555 CFLAGS="$xorg_testset_save_CFLAGS" 8556fi 8557 8558found="no" 8559 8560 if test $found = "no" ; then 8561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8563 fi 8564 8565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8567 fi 8568 8569 CFLAGS="$CFLAGS -Wmissing-braces" 8570 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8572$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8573 cacheid=xorg_cv_cc_flag__Wmissing_braces 8574 if eval \${$cacheid+:} false; then : 8575 $as_echo_n "(cached) " >&6 8576else 8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8578/* end confdefs.h. */ 8579int i; 8580int 8581main () 8582{ 8583 8584 ; 8585 return 0; 8586} 8587_ACEOF 8588if ac_fn_c_try_link "$LINENO"; then : 8589 eval $cacheid=yes 8590else 8591 eval $cacheid=no 8592fi 8593rm -f core conftest.err conftest.$ac_objext \ 8594 conftest$ac_exeext conftest.$ac_ext 8595fi 8596 8597 8598 CFLAGS="$xorg_testset_save_CFLAGS" 8599 8600 eval supported=\$$cacheid 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8602$as_echo "$supported" >&6; } 8603 if test "$supported" = "yes" ; then 8604 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8605 found="yes" 8606 fi 8607 fi 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623xorg_testset_save_CFLAGS="$CFLAGS" 8624 8625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8633/* end confdefs.h. */ 8634int i; 8635_ACEOF 8636if ac_fn_c_try_compile "$LINENO"; then : 8637 xorg_cv_cc_flag_unknown_warning_option=yes 8638else 8639 xorg_cv_cc_flag_unknown_warning_option=no 8640fi 8641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8642fi 8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8646 CFLAGS="$xorg_testset_save_CFLAGS" 8647fi 8648 8649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8652 fi 8653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8660/* end confdefs.h. */ 8661int i; 8662_ACEOF 8663if ac_fn_c_try_compile "$LINENO"; then : 8664 xorg_cv_cc_flag_unused_command_line_argument=yes 8665else 8666 xorg_cv_cc_flag_unused_command_line_argument=no 8667fi 8668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8669fi 8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8673 CFLAGS="$xorg_testset_save_CFLAGS" 8674fi 8675 8676found="no" 8677 8678 if test $found = "no" ; then 8679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8681 fi 8682 8683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8685 fi 8686 8687 CFLAGS="$CFLAGS -Wsequence-point" 8688 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8690$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8691 cacheid=xorg_cv_cc_flag__Wsequence_point 8692 if eval \${$cacheid+:} false; then : 8693 $as_echo_n "(cached) " >&6 8694else 8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8696/* end confdefs.h. */ 8697int i; 8698int 8699main () 8700{ 8701 8702 ; 8703 return 0; 8704} 8705_ACEOF 8706if ac_fn_c_try_link "$LINENO"; then : 8707 eval $cacheid=yes 8708else 8709 eval $cacheid=no 8710fi 8711rm -f core conftest.err conftest.$ac_objext \ 8712 conftest$ac_exeext conftest.$ac_ext 8713fi 8714 8715 8716 CFLAGS="$xorg_testset_save_CFLAGS" 8717 8718 eval supported=\$$cacheid 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8720$as_echo "$supported" >&6; } 8721 if test "$supported" = "yes" ; then 8722 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8723 found="yes" 8724 fi 8725 fi 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741xorg_testset_save_CFLAGS="$CFLAGS" 8742 8743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8748 $as_echo_n "(cached) " >&6 8749else 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752int i; 8753_ACEOF 8754if ac_fn_c_try_compile "$LINENO"; then : 8755 xorg_cv_cc_flag_unknown_warning_option=yes 8756else 8757 xorg_cv_cc_flag_unknown_warning_option=no 8758fi 8759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8760fi 8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8764 CFLAGS="$xorg_testset_save_CFLAGS" 8765fi 8766 8767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8770 fi 8771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776else 8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8778/* end confdefs.h. */ 8779int i; 8780_ACEOF 8781if ac_fn_c_try_compile "$LINENO"; then : 8782 xorg_cv_cc_flag_unused_command_line_argument=yes 8783else 8784 xorg_cv_cc_flag_unused_command_line_argument=no 8785fi 8786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8787fi 8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8791 CFLAGS="$xorg_testset_save_CFLAGS" 8792fi 8793 8794found="no" 8795 8796 if test $found = "no" ; then 8797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8799 fi 8800 8801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8803 fi 8804 8805 CFLAGS="$CFLAGS -Wreturn-type" 8806 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 8808$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 8809 cacheid=xorg_cv_cc_flag__Wreturn_type 8810 if eval \${$cacheid+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8814/* end confdefs.h. */ 8815int i; 8816int 8817main () 8818{ 8819 8820 ; 8821 return 0; 8822} 8823_ACEOF 8824if ac_fn_c_try_link "$LINENO"; then : 8825 eval $cacheid=yes 8826else 8827 eval $cacheid=no 8828fi 8829rm -f core conftest.err conftest.$ac_objext \ 8830 conftest$ac_exeext conftest.$ac_ext 8831fi 8832 8833 8834 CFLAGS="$xorg_testset_save_CFLAGS" 8835 8836 eval supported=\$$cacheid 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8838$as_echo "$supported" >&6; } 8839 if test "$supported" = "yes" ; then 8840 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 8841 found="yes" 8842 fi 8843 fi 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859xorg_testset_save_CFLAGS="$CFLAGS" 8860 8861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8869/* end confdefs.h. */ 8870int i; 8871_ACEOF 8872if ac_fn_c_try_compile "$LINENO"; then : 8873 xorg_cv_cc_flag_unknown_warning_option=yes 8874else 8875 xorg_cv_cc_flag_unknown_warning_option=no 8876fi 8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8878fi 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8882 CFLAGS="$xorg_testset_save_CFLAGS" 8883fi 8884 8885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8888 fi 8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896/* end confdefs.h. */ 8897int i; 8898_ACEOF 8899if ac_fn_c_try_compile "$LINENO"; then : 8900 xorg_cv_cc_flag_unused_command_line_argument=yes 8901else 8902 xorg_cv_cc_flag_unused_command_line_argument=no 8903fi 8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8905fi 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8909 CFLAGS="$xorg_testset_save_CFLAGS" 8910fi 8911 8912found="no" 8913 8914 if test $found = "no" ; then 8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8917 fi 8918 8919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8921 fi 8922 8923 CFLAGS="$CFLAGS -Wtrigraphs" 8924 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 8926$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 8927 cacheid=xorg_cv_cc_flag__Wtrigraphs 8928 if eval \${$cacheid+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8932/* end confdefs.h. */ 8933int i; 8934int 8935main () 8936{ 8937 8938 ; 8939 return 0; 8940} 8941_ACEOF 8942if ac_fn_c_try_link "$LINENO"; then : 8943 eval $cacheid=yes 8944else 8945 eval $cacheid=no 8946fi 8947rm -f core conftest.err conftest.$ac_objext \ 8948 conftest$ac_exeext conftest.$ac_ext 8949fi 8950 8951 8952 CFLAGS="$xorg_testset_save_CFLAGS" 8953 8954 eval supported=\$$cacheid 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8956$as_echo "$supported" >&6; } 8957 if test "$supported" = "yes" ; then 8958 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 8959 found="yes" 8960 fi 8961 fi 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977xorg_testset_save_CFLAGS="$CFLAGS" 8978 8979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8987/* end confdefs.h. */ 8988int i; 8989_ACEOF 8990if ac_fn_c_try_compile "$LINENO"; then : 8991 xorg_cv_cc_flag_unknown_warning_option=yes 8992else 8993 xorg_cv_cc_flag_unknown_warning_option=no 8994fi 8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8996fi 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9000 CFLAGS="$xorg_testset_save_CFLAGS" 9001fi 9002 9003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 fi 9007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012else 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015int i; 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO"; then : 9018 xorg_cv_cc_flag_unused_command_line_argument=yes 9019else 9020 xorg_cv_cc_flag_unused_command_line_argument=no 9021fi 9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9023fi 9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9027 CFLAGS="$xorg_testset_save_CFLAGS" 9028fi 9029 9030found="no" 9031 9032 if test $found = "no" ; then 9033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9035 fi 9036 9037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9039 fi 9040 9041 CFLAGS="$CFLAGS -Warray-bounds" 9042 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9044$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9045 cacheid=xorg_cv_cc_flag__Warray_bounds 9046 if eval \${$cacheid+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048else 9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9050/* end confdefs.h. */ 9051int i; 9052int 9053main () 9054{ 9055 9056 ; 9057 return 0; 9058} 9059_ACEOF 9060if ac_fn_c_try_link "$LINENO"; then : 9061 eval $cacheid=yes 9062else 9063 eval $cacheid=no 9064fi 9065rm -f core conftest.err conftest.$ac_objext \ 9066 conftest$ac_exeext conftest.$ac_ext 9067fi 9068 9069 9070 CFLAGS="$xorg_testset_save_CFLAGS" 9071 9072 eval supported=\$$cacheid 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9074$as_echo "$supported" >&6; } 9075 if test "$supported" = "yes" ; then 9076 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9077 found="yes" 9078 fi 9079 fi 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095xorg_testset_save_CFLAGS="$CFLAGS" 9096 9097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9102 $as_echo_n "(cached) " >&6 9103else 9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9105/* end confdefs.h. */ 9106int i; 9107_ACEOF 9108if ac_fn_c_try_compile "$LINENO"; then : 9109 xorg_cv_cc_flag_unknown_warning_option=yes 9110else 9111 xorg_cv_cc_flag_unknown_warning_option=no 9112fi 9113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9114fi 9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9118 CFLAGS="$xorg_testset_save_CFLAGS" 9119fi 9120 9121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9124 fi 9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9132/* end confdefs.h. */ 9133int i; 9134_ACEOF 9135if ac_fn_c_try_compile "$LINENO"; then : 9136 xorg_cv_cc_flag_unused_command_line_argument=yes 9137else 9138 xorg_cv_cc_flag_unused_command_line_argument=no 9139fi 9140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9141fi 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9145 CFLAGS="$xorg_testset_save_CFLAGS" 9146fi 9147 9148found="no" 9149 9150 if test $found = "no" ; then 9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9153 fi 9154 9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9157 fi 9158 9159 CFLAGS="$CFLAGS -Wwrite-strings" 9160 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9162$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9163 cacheid=xorg_cv_cc_flag__Wwrite_strings 9164 if eval \${$cacheid+:} false; then : 9165 $as_echo_n "(cached) " >&6 9166else 9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170int 9171main () 9172{ 9173 9174 ; 9175 return 0; 9176} 9177_ACEOF 9178if ac_fn_c_try_link "$LINENO"; then : 9179 eval $cacheid=yes 9180else 9181 eval $cacheid=no 9182fi 9183rm -f core conftest.err conftest.$ac_objext \ 9184 conftest$ac_exeext conftest.$ac_ext 9185fi 9186 9187 9188 CFLAGS="$xorg_testset_save_CFLAGS" 9189 9190 eval supported=\$$cacheid 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9192$as_echo "$supported" >&6; } 9193 if test "$supported" = "yes" ; then 9194 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9195 found="yes" 9196 fi 9197 fi 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213xorg_testset_save_CFLAGS="$CFLAGS" 9214 9215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9220 $as_echo_n "(cached) " >&6 9221else 9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223/* end confdefs.h. */ 9224int i; 9225_ACEOF 9226if ac_fn_c_try_compile "$LINENO"; then : 9227 xorg_cv_cc_flag_unknown_warning_option=yes 9228else 9229 xorg_cv_cc_flag_unknown_warning_option=no 9230fi 9231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9232fi 9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9236 CFLAGS="$xorg_testset_save_CFLAGS" 9237fi 9238 9239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9242 fi 9243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9247 $as_echo_n "(cached) " >&6 9248else 9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250/* end confdefs.h. */ 9251int i; 9252_ACEOF 9253if ac_fn_c_try_compile "$LINENO"; then : 9254 xorg_cv_cc_flag_unused_command_line_argument=yes 9255else 9256 xorg_cv_cc_flag_unused_command_line_argument=no 9257fi 9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9259fi 9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9263 CFLAGS="$xorg_testset_save_CFLAGS" 9264fi 9265 9266found="no" 9267 9268 if test $found = "no" ; then 9269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9271 fi 9272 9273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9275 fi 9276 9277 CFLAGS="$CFLAGS -Waddress" 9278 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9280$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9281 cacheid=xorg_cv_cc_flag__Waddress 9282 if eval \${$cacheid+:} false; then : 9283 $as_echo_n "(cached) " >&6 9284else 9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9286/* end confdefs.h. */ 9287int i; 9288int 9289main () 9290{ 9291 9292 ; 9293 return 0; 9294} 9295_ACEOF 9296if ac_fn_c_try_link "$LINENO"; then : 9297 eval $cacheid=yes 9298else 9299 eval $cacheid=no 9300fi 9301rm -f core conftest.err conftest.$ac_objext \ 9302 conftest$ac_exeext conftest.$ac_ext 9303fi 9304 9305 9306 CFLAGS="$xorg_testset_save_CFLAGS" 9307 9308 eval supported=\$$cacheid 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9310$as_echo "$supported" >&6; } 9311 if test "$supported" = "yes" ; then 9312 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9313 found="yes" 9314 fi 9315 fi 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331xorg_testset_save_CFLAGS="$CFLAGS" 9332 9333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9338 $as_echo_n "(cached) " >&6 9339else 9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9341/* end confdefs.h. */ 9342int i; 9343_ACEOF 9344if ac_fn_c_try_compile "$LINENO"; then : 9345 xorg_cv_cc_flag_unknown_warning_option=yes 9346else 9347 xorg_cv_cc_flag_unknown_warning_option=no 9348fi 9349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9350fi 9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9354 CFLAGS="$xorg_testset_save_CFLAGS" 9355fi 9356 9357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9360 fi 9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366else 9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9368/* end confdefs.h. */ 9369int i; 9370_ACEOF 9371if ac_fn_c_try_compile "$LINENO"; then : 9372 xorg_cv_cc_flag_unused_command_line_argument=yes 9373else 9374 xorg_cv_cc_flag_unused_command_line_argument=no 9375fi 9376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9377fi 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9381 CFLAGS="$xorg_testset_save_CFLAGS" 9382fi 9383 9384found="no" 9385 9386 if test $found = "no" ; then 9387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9389 fi 9390 9391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9393 fi 9394 9395 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9396 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9398$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9399 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9400 if eval \${$cacheid+:} false; then : 9401 $as_echo_n "(cached) " >&6 9402else 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405int i; 9406int 9407main () 9408{ 9409 9410 ; 9411 return 0; 9412} 9413_ACEOF 9414if ac_fn_c_try_link "$LINENO"; then : 9415 eval $cacheid=yes 9416else 9417 eval $cacheid=no 9418fi 9419rm -f core conftest.err conftest.$ac_objext \ 9420 conftest$ac_exeext conftest.$ac_ext 9421fi 9422 9423 9424 CFLAGS="$xorg_testset_save_CFLAGS" 9425 9426 eval supported=\$$cacheid 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9428$as_echo "$supported" >&6; } 9429 if test "$supported" = "yes" ; then 9430 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9431 found="yes" 9432 fi 9433 fi 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449xorg_testset_save_CFLAGS="$CFLAGS" 9450 9451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9456 $as_echo_n "(cached) " >&6 9457else 9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460int i; 9461_ACEOF 9462if ac_fn_c_try_compile "$LINENO"; then : 9463 xorg_cv_cc_flag_unknown_warning_option=yes 9464else 9465 xorg_cv_cc_flag_unknown_warning_option=no 9466fi 9467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9468fi 9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9472 CFLAGS="$xorg_testset_save_CFLAGS" 9473fi 9474 9475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9478 fi 9479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9483 $as_echo_n "(cached) " >&6 9484else 9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9486/* end confdefs.h. */ 9487int i; 9488_ACEOF 9489if ac_fn_c_try_compile "$LINENO"; then : 9490 xorg_cv_cc_flag_unused_command_line_argument=yes 9491else 9492 xorg_cv_cc_flag_unused_command_line_argument=no 9493fi 9494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9495fi 9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9499 CFLAGS="$xorg_testset_save_CFLAGS" 9500fi 9501 9502found="no" 9503 9504 if test $found = "no" ; then 9505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9507 fi 9508 9509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9511 fi 9512 9513 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9514 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9516$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9517 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9518 if eval \${$cacheid+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9522/* end confdefs.h. */ 9523int i; 9524int 9525main () 9526{ 9527 9528 ; 9529 return 0; 9530} 9531_ACEOF 9532if ac_fn_c_try_link "$LINENO"; then : 9533 eval $cacheid=yes 9534else 9535 eval $cacheid=no 9536fi 9537rm -f core conftest.err conftest.$ac_objext \ 9538 conftest$ac_exeext conftest.$ac_ext 9539fi 9540 9541 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543 9544 eval supported=\$$cacheid 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9546$as_echo "$supported" >&6; } 9547 if test "$supported" = "yes" ; then 9548 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9549 found="yes" 9550 fi 9551 fi 9552 9553 9554fi 9555 9556 9557 9558 9559 9560 9561 9562 CWARNFLAGS="$BASE_CFLAGS" 9563 if test "x$GCC" = xyes ; then 9564 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9565 fi 9566 9567 9568 9569 9570 9571 9572 9573 9574# Check whether --enable-strict-compilation was given. 9575if test "${enable_strict_compilation+set}" = set; then : 9576 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9577else 9578 STRICT_COMPILE=no 9579fi 9580 9581 9582 9583 9584 9585 9586STRICT_CFLAGS="" 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600xorg_testset_save_CFLAGS="$CFLAGS" 9601 9602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9605$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9606if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9607 $as_echo_n "(cached) " >&6 9608else 9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9610/* end confdefs.h. */ 9611int i; 9612_ACEOF 9613if ac_fn_c_try_compile "$LINENO"; then : 9614 xorg_cv_cc_flag_unknown_warning_option=yes 9615else 9616 xorg_cv_cc_flag_unknown_warning_option=no 9617fi 9618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9619fi 9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9621$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9623 CFLAGS="$xorg_testset_save_CFLAGS" 9624fi 9625 9626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9629 fi 9630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9632$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9633if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9634 $as_echo_n "(cached) " >&6 9635else 9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9637/* end confdefs.h. */ 9638int i; 9639_ACEOF 9640if ac_fn_c_try_compile "$LINENO"; then : 9641 xorg_cv_cc_flag_unused_command_line_argument=yes 9642else 9643 xorg_cv_cc_flag_unused_command_line_argument=no 9644fi 9645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9646fi 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9648$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9650 CFLAGS="$xorg_testset_save_CFLAGS" 9651fi 9652 9653found="no" 9654 9655 if test $found = "no" ; then 9656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9658 fi 9659 9660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9662 fi 9663 9664 CFLAGS="$CFLAGS -pedantic" 9665 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9667$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9668 cacheid=xorg_cv_cc_flag__pedantic 9669 if eval \${$cacheid+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671else 9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673/* end confdefs.h. */ 9674int i; 9675int 9676main () 9677{ 9678 9679 ; 9680 return 0; 9681} 9682_ACEOF 9683if ac_fn_c_try_link "$LINENO"; then : 9684 eval $cacheid=yes 9685else 9686 eval $cacheid=no 9687fi 9688rm -f core conftest.err conftest.$ac_objext \ 9689 conftest$ac_exeext conftest.$ac_ext 9690fi 9691 9692 9693 CFLAGS="$xorg_testset_save_CFLAGS" 9694 9695 eval supported=\$$cacheid 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9697$as_echo "$supported" >&6; } 9698 if test "$supported" = "yes" ; then 9699 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9700 found="yes" 9701 fi 9702 fi 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718xorg_testset_save_CFLAGS="$CFLAGS" 9719 9720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9725 $as_echo_n "(cached) " >&6 9726else 9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9728/* end confdefs.h. */ 9729int i; 9730_ACEOF 9731if ac_fn_c_try_compile "$LINENO"; then : 9732 xorg_cv_cc_flag_unknown_warning_option=yes 9733else 9734 xorg_cv_cc_flag_unknown_warning_option=no 9735fi 9736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9737fi 9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9741 CFLAGS="$xorg_testset_save_CFLAGS" 9742fi 9743 9744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9747 fi 9748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9752 $as_echo_n "(cached) " >&6 9753else 9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9755/* end confdefs.h. */ 9756int i; 9757_ACEOF 9758if ac_fn_c_try_compile "$LINENO"; then : 9759 xorg_cv_cc_flag_unused_command_line_argument=yes 9760else 9761 xorg_cv_cc_flag_unused_command_line_argument=no 9762fi 9763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9764fi 9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9768 CFLAGS="$xorg_testset_save_CFLAGS" 9769fi 9770 9771found="no" 9772 9773 if test $found = "no" ; then 9774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9776 fi 9777 9778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9780 fi 9781 9782 CFLAGS="$CFLAGS -Werror" 9783 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9785$as_echo_n "checking if $CC supports -Werror... " >&6; } 9786 cacheid=xorg_cv_cc_flag__Werror 9787 if eval \${$cacheid+:} false; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9791/* end confdefs.h. */ 9792int i; 9793int 9794main () 9795{ 9796 9797 ; 9798 return 0; 9799} 9800_ACEOF 9801if ac_fn_c_try_link "$LINENO"; then : 9802 eval $cacheid=yes 9803else 9804 eval $cacheid=no 9805fi 9806rm -f core conftest.err conftest.$ac_objext \ 9807 conftest$ac_exeext conftest.$ac_ext 9808fi 9809 9810 9811 CFLAGS="$xorg_testset_save_CFLAGS" 9812 9813 eval supported=\$$cacheid 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9815$as_echo "$supported" >&6; } 9816 if test "$supported" = "yes" ; then 9817 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 9818 found="yes" 9819 fi 9820 fi 9821 9822 if test $found = "no" ; then 9823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9825 fi 9826 9827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9829 fi 9830 9831 CFLAGS="$CFLAGS -errwarn" 9832 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 9834$as_echo_n "checking if $CC supports -errwarn... " >&6; } 9835 cacheid=xorg_cv_cc_flag__errwarn 9836 if eval \${$cacheid+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840/* end confdefs.h. */ 9841int i; 9842int 9843main () 9844{ 9845 9846 ; 9847 return 0; 9848} 9849_ACEOF 9850if ac_fn_c_try_link "$LINENO"; then : 9851 eval $cacheid=yes 9852else 9853 eval $cacheid=no 9854fi 9855rm -f core conftest.err conftest.$ac_objext \ 9856 conftest$ac_exeext conftest.$ac_ext 9857fi 9858 9859 9860 CFLAGS="$xorg_testset_save_CFLAGS" 9861 9862 eval supported=\$$cacheid 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9864$as_echo "$supported" >&6; } 9865 if test "$supported" = "yes" ; then 9866 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 9867 found="yes" 9868 fi 9869 fi 9870 9871 9872 9873# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 9874# activate it with -Werror, so we add it here explicitly. 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888xorg_testset_save_CFLAGS="$CFLAGS" 9889 9890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9895 $as_echo_n "(cached) " >&6 9896else 9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9898/* end confdefs.h. */ 9899int i; 9900_ACEOF 9901if ac_fn_c_try_compile "$LINENO"; then : 9902 xorg_cv_cc_flag_unknown_warning_option=yes 9903else 9904 xorg_cv_cc_flag_unknown_warning_option=no 9905fi 9906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9907fi 9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9911 CFLAGS="$xorg_testset_save_CFLAGS" 9912fi 9913 9914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9917 fi 9918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9922 $as_echo_n "(cached) " >&6 9923else 9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9925/* end confdefs.h. */ 9926int i; 9927_ACEOF 9928if ac_fn_c_try_compile "$LINENO"; then : 9929 xorg_cv_cc_flag_unused_command_line_argument=yes 9930else 9931 xorg_cv_cc_flag_unused_command_line_argument=no 9932fi 9933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9934fi 9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9938 CFLAGS="$xorg_testset_save_CFLAGS" 9939fi 9940 9941found="no" 9942 9943 if test $found = "no" ; then 9944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9946 fi 9947 9948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9950 fi 9951 9952 CFLAGS="$CFLAGS -Werror=attributes" 9953 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 9955$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 9956 cacheid=xorg_cv_cc_flag__Werror_attributes 9957 if eval \${$cacheid+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9961/* end confdefs.h. */ 9962int i; 9963int 9964main () 9965{ 9966 9967 ; 9968 return 0; 9969} 9970_ACEOF 9971if ac_fn_c_try_link "$LINENO"; then : 9972 eval $cacheid=yes 9973else 9974 eval $cacheid=no 9975fi 9976rm -f core conftest.err conftest.$ac_objext \ 9977 conftest$ac_exeext conftest.$ac_ext 9978fi 9979 9980 9981 CFLAGS="$xorg_testset_save_CFLAGS" 9982 9983 eval supported=\$$cacheid 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9985$as_echo "$supported" >&6; } 9986 if test "$supported" = "yes" ; then 9987 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 9988 found="yes" 9989 fi 9990 fi 9991 9992 9993 9994if test "x$STRICT_COMPILE" = "xyes"; then 9995 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 9996 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 9997fi 9998 9999 10000 10001 10002 10003 10004cat >>confdefs.h <<_ACEOF 10005#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10006_ACEOF 10007 10008 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10009 if test "x$PVM" = "x"; then 10010 PVM="0" 10011 fi 10012 10013cat >>confdefs.h <<_ACEOF 10014#define PACKAGE_VERSION_MINOR $PVM 10015_ACEOF 10016 10017 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10018 if test "x$PVP" = "x"; then 10019 PVP="0" 10020 fi 10021 10022cat >>confdefs.h <<_ACEOF 10023#define PACKAGE_VERSION_PATCHLEVEL $PVP 10024_ACEOF 10025 10026 10027 10028CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10029mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10030|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10031echo 'git directory not found: installing possibly empty changelog.' >&2)" 10032 10033 10034 10035 10036macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10037INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10038mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10039|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10040echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10041 10042 10043 10044 10045 10046 10047if test x$APP_MAN_SUFFIX = x ; then 10048 APP_MAN_SUFFIX=1 10049fi 10050if test x$APP_MAN_DIR = x ; then 10051 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10052fi 10053 10054if test x$LIB_MAN_SUFFIX = x ; then 10055 LIB_MAN_SUFFIX=3 10056fi 10057if test x$LIB_MAN_DIR = x ; then 10058 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10059fi 10060 10061if test x$FILE_MAN_SUFFIX = x ; then 10062 case $host_os in 10063 solaris*) FILE_MAN_SUFFIX=4 ;; 10064 *) FILE_MAN_SUFFIX=5 ;; 10065 esac 10066fi 10067if test x$FILE_MAN_DIR = x ; then 10068 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10069fi 10070 10071if test x$MISC_MAN_SUFFIX = x ; then 10072 case $host_os in 10073 solaris*) MISC_MAN_SUFFIX=5 ;; 10074 *) MISC_MAN_SUFFIX=7 ;; 10075 esac 10076fi 10077if test x$MISC_MAN_DIR = x ; then 10078 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10079fi 10080 10081if test x$DRIVER_MAN_SUFFIX = x ; then 10082 case $host_os in 10083 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10084 *) DRIVER_MAN_SUFFIX=4 ;; 10085 esac 10086fi 10087if test x$DRIVER_MAN_DIR = x ; then 10088 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10089fi 10090 10091if test x$ADMIN_MAN_SUFFIX = x ; then 10092 case $host_os in 10093 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10094 *) ADMIN_MAN_SUFFIX=8 ;; 10095 esac 10096fi 10097if test x$ADMIN_MAN_DIR = x ; then 10098 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10099fi 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115XORG_MAN_PAGE="X Version 11" 10116 10117MAN_SUBSTS="\ 10118 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10119 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10120 -e 's|__xservername__|Xorg|g' \ 10121 -e 's|__xconfigfile__|xorg.conf|g' \ 10122 -e 's|__projectroot__|\$(prefix)|g' \ 10123 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10124 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10125 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10126 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10127 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10128 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10129 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10130 10131 10132 10133# Check whether --enable-silent-rules was given. 10134if test "${enable_silent_rules+set}" = set; then : 10135 enableval=$enable_silent_rules; 10136fi 10137 10138case $enable_silent_rules in # ((( 10139 yes) AM_DEFAULT_VERBOSITY=0;; 10140 no) AM_DEFAULT_VERBOSITY=1;; 10141 *) AM_DEFAULT_VERBOSITY=0;; 10142esac 10143am_make=${MAKE-make} 10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10145$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10146if ${am_cv_make_support_nested_variables+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 if $as_echo 'TRUE=$(BAR$(V)) 10150BAR0=false 10151BAR1=true 10152V=1 10153am__doit: 10154 @$(TRUE) 10155.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10156 am_cv_make_support_nested_variables=yes 10157else 10158 am_cv_make_support_nested_variables=no 10159fi 10160fi 10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10162$as_echo "$am_cv_make_support_nested_variables" >&6; } 10163if test $am_cv_make_support_nested_variables = yes; then 10164 AM_V='$(V)' 10165 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10166else 10167 AM_V=$AM_DEFAULT_VERBOSITY 10168 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10169fi 10170AM_BACKSLASH='\' 10171 10172 10173 10174 10175ac_config_headers="$ac_config_headers config.h" 10176 10177ac_aux_dir= 10178for ac_dir in . "$srcdir"/.; do 10179 if test -f "$ac_dir/install-sh"; then 10180 ac_aux_dir=$ac_dir 10181 ac_install_sh="$ac_aux_dir/install-sh -c" 10182 break 10183 elif test -f "$ac_dir/install.sh"; then 10184 ac_aux_dir=$ac_dir 10185 ac_install_sh="$ac_aux_dir/install.sh -c" 10186 break 10187 elif test -f "$ac_dir/shtool"; then 10188 ac_aux_dir=$ac_dir 10189 ac_install_sh="$ac_aux_dir/shtool install -c" 10190 break 10191 fi 10192done 10193if test -z "$ac_aux_dir"; then 10194 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 10195fi 10196 10197# These three variables are undocumented and unsupported, 10198# and are intended to be withdrawn in a future Autoconf release. 10199# They can cause serious problems if a builder's source tree is in a directory 10200# whose full name contains unusual characters. 10201ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 10202ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 10203ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 10204 10205 10206 10207# Initialize Automake 10208am__api_version='1.15' 10209 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10211$as_echo_n "checking whether build environment is sane... " >&6; } 10212# Reject unsafe characters in $srcdir or the absolute working directory 10213# name. Accept space and tab only in the latter. 10214am_lf=' 10215' 10216case `pwd` in 10217 *[\\\"\#\$\&\'\`$am_lf]*) 10218 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10219esac 10220case $srcdir in 10221 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10222 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10223esac 10224 10225# Do 'set' in a subshell so we don't clobber the current shell's 10226# arguments. Must try -L first in case configure is actually a 10227# symlink; some systems play weird games with the mod time of symlinks 10228# (eg FreeBSD returns the mod time of the symlink's containing 10229# directory). 10230if ( 10231 am_has_slept=no 10232 for am_try in 1 2; do 10233 echo "timestamp, slept: $am_has_slept" > conftest.file 10234 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10235 if test "$*" = "X"; then 10236 # -L didn't work. 10237 set X `ls -t "$srcdir/configure" conftest.file` 10238 fi 10239 if test "$*" != "X $srcdir/configure conftest.file" \ 10240 && test "$*" != "X conftest.file $srcdir/configure"; then 10241 10242 # If neither matched, then we have a broken ls. This can happen 10243 # if, for instance, CONFIG_SHELL is bash and it inherits a 10244 # broken ls alias from the environment. This has actually 10245 # happened. Such a system could not be considered "sane". 10246 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10247 alias in your environment" "$LINENO" 5 10248 fi 10249 if test "$2" = conftest.file || test $am_try -eq 2; then 10250 break 10251 fi 10252 # Just in case. 10253 sleep 1 10254 am_has_slept=yes 10255 done 10256 test "$2" = conftest.file 10257 ) 10258then 10259 # Ok. 10260 : 10261else 10262 as_fn_error $? "newly created file is older than distributed files! 10263Check your system clock" "$LINENO" 5 10264fi 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10266$as_echo "yes" >&6; } 10267# If we didn't sleep, we still need to ensure time stamps of config.status and 10268# generated files are strictly newer. 10269am_sleep_pid= 10270if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10271 ( sleep 1 ) & 10272 am_sleep_pid=$! 10273fi 10274 10275rm -f conftest.file 10276 10277test "$program_prefix" != NONE && 10278 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10279# Use a double $ so make ignores it. 10280test "$program_suffix" != NONE && 10281 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10282# Double any \ or $. 10283# By default was `s,x,x', remove it if useless. 10284ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10285program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 10286 10287if test x"${MISSING+set}" != xset; then 10288 case $am_aux_dir in 10289 *\ * | *\ *) 10290 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 10291 *) 10292 MISSING="\${SHELL} $am_aux_dir/missing" ;; 10293 esac 10294fi 10295# Use eval to expand $SHELL 10296if eval "$MISSING --is-lightweight"; then 10297 am_missing_run="$MISSING " 10298else 10299 am_missing_run= 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10301$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10302fi 10303 10304if test x"${install_sh+set}" != xset; then 10305 case $am_aux_dir in 10306 *\ * | *\ *) 10307 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10308 *) 10309 install_sh="\${SHELL} $am_aux_dir/install-sh" 10310 esac 10311fi 10312 10313# Installed binaries are usually stripped using 'strip' when the user 10314# run "make install-strip". However 'strip' might not be the right 10315# tool to use in cross-compilation environments, therefore Automake 10316# will honor the 'STRIP' environment variable to overrule this program. 10317if test "$cross_compiling" != no; then 10318 if test -n "$ac_tool_prefix"; then 10319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10320set dummy ${ac_tool_prefix}strip; ac_word=$2 10321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10322$as_echo_n "checking for $ac_word... " >&6; } 10323if ${ac_cv_prog_STRIP+:} false; then : 10324 $as_echo_n "(cached) " >&6 10325else 10326 if test -n "$STRIP"; then 10327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10328else 10329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10330for as_dir in $PATH 10331do 10332 IFS=$as_save_IFS 10333 test -z "$as_dir" && as_dir=. 10334 for ac_exec_ext in '' $ac_executable_extensions; do 10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10336 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10338 break 2 10339 fi 10340done 10341 done 10342IFS=$as_save_IFS 10343 10344fi 10345fi 10346STRIP=$ac_cv_prog_STRIP 10347if test -n "$STRIP"; then 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10349$as_echo "$STRIP" >&6; } 10350else 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10352$as_echo "no" >&6; } 10353fi 10354 10355 10356fi 10357if test -z "$ac_cv_prog_STRIP"; then 10358 ac_ct_STRIP=$STRIP 10359 # Extract the first word of "strip", so it can be a program name with args. 10360set dummy strip; ac_word=$2 10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10362$as_echo_n "checking for $ac_word... " >&6; } 10363if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10364 $as_echo_n "(cached) " >&6 10365else 10366 if test -n "$ac_ct_STRIP"; then 10367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10368else 10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10370for as_dir in $PATH 10371do 10372 IFS=$as_save_IFS 10373 test -z "$as_dir" && as_dir=. 10374 for ac_exec_ext in '' $ac_executable_extensions; do 10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10376 ac_cv_prog_ac_ct_STRIP="strip" 10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10378 break 2 10379 fi 10380done 10381 done 10382IFS=$as_save_IFS 10383 10384fi 10385fi 10386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10387if test -n "$ac_ct_STRIP"; then 10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10389$as_echo "$ac_ct_STRIP" >&6; } 10390else 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10392$as_echo "no" >&6; } 10393fi 10394 10395 if test "x$ac_ct_STRIP" = x; then 10396 STRIP=":" 10397 else 10398 case $cross_compiling:$ac_tool_warned in 10399yes:) 10400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10402ac_tool_warned=yes ;; 10403esac 10404 STRIP=$ac_ct_STRIP 10405 fi 10406else 10407 STRIP="$ac_cv_prog_STRIP" 10408fi 10409 10410fi 10411INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10412 10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 10414$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 10415if test -z "$MKDIR_P"; then 10416 if ${ac_cv_path_mkdir+:} false; then : 10417 $as_echo_n "(cached) " >&6 10418else 10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10420for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10421do 10422 IFS=$as_save_IFS 10423 test -z "$as_dir" && as_dir=. 10424 for ac_prog in mkdir gmkdir; do 10425 for ac_exec_ext in '' $ac_executable_extensions; do 10426 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 10427 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 10428 'mkdir (GNU coreutils) '* | \ 10429 'mkdir (coreutils) '* | \ 10430 'mkdir (fileutils) '4.1*) 10431 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 10432 break 3;; 10433 esac 10434 done 10435 done 10436 done 10437IFS=$as_save_IFS 10438 10439fi 10440 10441 test -d ./--version && rmdir ./--version 10442 if test "${ac_cv_path_mkdir+set}" = set; then 10443 MKDIR_P="$ac_cv_path_mkdir -p" 10444 else 10445 # As a last resort, use the slow shell script. Don't cache a 10446 # value for MKDIR_P within a source directory, because that will 10447 # break other packages using the cache if that directory is 10448 # removed, or if the value is a relative name. 10449 MKDIR_P="$ac_install_sh -d" 10450 fi 10451fi 10452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10453$as_echo "$MKDIR_P" >&6; } 10454 10455for ac_prog in gawk mawk nawk awk 10456do 10457 # Extract the first word of "$ac_prog", so it can be a program name with args. 10458set dummy $ac_prog; ac_word=$2 10459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10460$as_echo_n "checking for $ac_word... " >&6; } 10461if ${ac_cv_prog_AWK+:} false; then : 10462 $as_echo_n "(cached) " >&6 10463else 10464 if test -n "$AWK"; then 10465 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10466else 10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10468for as_dir in $PATH 10469do 10470 IFS=$as_save_IFS 10471 test -z "$as_dir" && as_dir=. 10472 for ac_exec_ext in '' $ac_executable_extensions; do 10473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10474 ac_cv_prog_AWK="$ac_prog" 10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10476 break 2 10477 fi 10478done 10479 done 10480IFS=$as_save_IFS 10481 10482fi 10483fi 10484AWK=$ac_cv_prog_AWK 10485if test -n "$AWK"; then 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10487$as_echo "$AWK" >&6; } 10488else 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10490$as_echo "no" >&6; } 10491fi 10492 10493 10494 test -n "$AWK" && break 10495done 10496 10497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10498$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10499set x ${MAKE-make} 10500ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10501if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 10502 $as_echo_n "(cached) " >&6 10503else 10504 cat >conftest.make <<\_ACEOF 10505SHELL = /bin/sh 10506all: 10507 @echo '@@@%%%=$(MAKE)=@@@%%%' 10508_ACEOF 10509# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10510case `${MAKE-make} -f conftest.make 2>/dev/null` in 10511 *@@@%%%=?*=@@@%%%*) 10512 eval ac_cv_prog_make_${ac_make}_set=yes;; 10513 *) 10514 eval ac_cv_prog_make_${ac_make}_set=no;; 10515esac 10516rm -f conftest.make 10517fi 10518if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10520$as_echo "yes" >&6; } 10521 SET_MAKE= 10522else 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10524$as_echo "no" >&6; } 10525 SET_MAKE="MAKE=${MAKE-make}" 10526fi 10527 10528rm -rf .tst 2>/dev/null 10529mkdir .tst 2>/dev/null 10530if test -d .tst; then 10531 am__leading_dot=. 10532else 10533 am__leading_dot=_ 10534fi 10535rmdir .tst 2>/dev/null 10536 10537DEPDIR="${am__leading_dot}deps" 10538 10539ac_config_commands="$ac_config_commands depfiles" 10540 10541 10542am_make=${MAKE-make} 10543cat > confinc << 'END' 10544am__doit: 10545 @echo this is the am__doit target 10546.PHONY: am__doit 10547END 10548# If we don't find an include directive, just comment out the code. 10549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 10550$as_echo_n "checking for style of include used by $am_make... " >&6; } 10551am__include="#" 10552am__quote= 10553_am_result=none 10554# First try GNU make style include. 10555echo "include confinc" > confmf 10556# Ignore all kinds of additional output from 'make'. 10557case `$am_make -s -f confmf 2> /dev/null` in #( 10558*the\ am__doit\ target*) 10559 am__include=include 10560 am__quote= 10561 _am_result=GNU 10562 ;; 10563esac 10564# Now try BSD make style include. 10565if test "$am__include" = "#"; then 10566 echo '.include "confinc"' > confmf 10567 case `$am_make -s -f confmf 2> /dev/null` in #( 10568 *the\ am__doit\ target*) 10569 am__include=.include 10570 am__quote="\"" 10571 _am_result=BSD 10572 ;; 10573 esac 10574fi 10575 10576 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 10578$as_echo "$_am_result" >&6; } 10579rm -f confinc confmf 10580 10581# Check whether --enable-dependency-tracking was given. 10582if test "${enable_dependency_tracking+set}" = set; then : 10583 enableval=$enable_dependency_tracking; 10584fi 10585 10586if test "x$enable_dependency_tracking" != xno; then 10587 am_depcomp="$ac_aux_dir/depcomp" 10588 AMDEPBACKSLASH='\' 10589 am__nodep='_no' 10590fi 10591 if test "x$enable_dependency_tracking" != xno; then 10592 AMDEP_TRUE= 10593 AMDEP_FALSE='#' 10594else 10595 AMDEP_TRUE='#' 10596 AMDEP_FALSE= 10597fi 10598 10599 10600if test "`cd $srcdir && pwd`" != "`pwd`"; then 10601 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10602 # is not polluted with repeated "-I." 10603 am__isrc=' -I$(srcdir)' 10604 # test to see if srcdir already configured 10605 if test -f $srcdir/config.status; then 10606 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 10607 fi 10608fi 10609 10610# test whether we have cygpath 10611if test -z "$CYGPATH_W"; then 10612 if (cygpath --version) >/dev/null 2>/dev/null; then 10613 CYGPATH_W='cygpath -w' 10614 else 10615 CYGPATH_W=echo 10616 fi 10617fi 10618 10619 10620# Define the identity of the package. 10621 PACKAGE='xf86-video-siliconmotion' 10622 VERSION='1.7.9' 10623 10624 10625cat >>confdefs.h <<_ACEOF 10626#define PACKAGE "$PACKAGE" 10627_ACEOF 10628 10629 10630cat >>confdefs.h <<_ACEOF 10631#define VERSION "$VERSION" 10632_ACEOF 10633 10634# Some tools Automake needs. 10635 10636ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 10637 10638 10639AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 10640 10641 10642AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 10643 10644 10645AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 10646 10647 10648MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 10649 10650# For better backward compatibility. To be removed once Automake 1.9.x 10651# dies out for good. For more background, see: 10652# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 10653# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 10654mkdir_p='$(MKDIR_P)' 10655 10656# We need awk for the "check" target (and possibly the TAP driver). The 10657# system "awk" is bad on some platforms. 10658# Always define AMTAR for backward compatibility. Yes, it's still used 10659# in the wild :-( We should find a proper way to deprecate it ... 10660AMTAR='$${TAR-tar}' 10661 10662 10663# We'll loop over all known methods to create a tar archive until one works. 10664_am_tools='gnutar pax cpio none' 10665 10666am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 10667 10668 10669 10670 10671 10672depcc="$CC" am_compiler_list= 10673 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 10675$as_echo_n "checking dependency style of $depcc... " >&6; } 10676if ${am_cv_CC_dependencies_compiler_type+:} false; then : 10677 $as_echo_n "(cached) " >&6 10678else 10679 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10680 # We make a subdir and do the tests there. Otherwise we can end up 10681 # making bogus files that we don't know about and never remove. For 10682 # instance it was reported that on HP-UX the gcc test will end up 10683 # making a dummy file named 'D' -- because '-MD' means "put the output 10684 # in D". 10685 rm -rf conftest.dir 10686 mkdir conftest.dir 10687 # Copy depcomp to subdir because otherwise we won't find it if we're 10688 # using a relative directory. 10689 cp "$am_depcomp" conftest.dir 10690 cd conftest.dir 10691 # We will build objects and dependencies in a subdirectory because 10692 # it helps to detect inapplicable dependency modes. For instance 10693 # both Tru64's cc and ICC support -MD to output dependencies as a 10694 # side effect of compilation, but ICC will put the dependencies in 10695 # the current directory while Tru64 will put them in the object 10696 # directory. 10697 mkdir sub 10698 10699 am_cv_CC_dependencies_compiler_type=none 10700 if test "$am_compiler_list" = ""; then 10701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 10702 fi 10703 am__universal=false 10704 case " $depcc " in #( 10705 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10706 esac 10707 10708 for depmode in $am_compiler_list; do 10709 # Setup a source with many dependencies, because some compilers 10710 # like to wrap large dependency lists on column 80 (with \), and 10711 # we should not choose a depcomp mode which is confused by this. 10712 # 10713 # We need to recreate these files for each test, as the compiler may 10714 # overwrite some of them when testing with obscure command lines. 10715 # This happens at least with the AIX C compiler. 10716 : > sub/conftest.c 10717 for i in 1 2 3 4 5 6; do 10718 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10719 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 10720 # Solaris 10 /bin/sh. 10721 echo '/* dummy */' > sub/conftst$i.h 10722 done 10723 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10724 10725 # We check with '-c' and '-o' for the sake of the "dashmstdout" 10726 # mode. It turns out that the SunPro C++ compiler does not properly 10727 # handle '-M -o', and we need to detect this. Also, some Intel 10728 # versions had trouble with output in subdirs. 10729 am__obj=sub/conftest.${OBJEXT-o} 10730 am__minus_obj="-o $am__obj" 10731 case $depmode in 10732 gcc) 10733 # This depmode causes a compiler race in universal mode. 10734 test "$am__universal" = false || continue 10735 ;; 10736 nosideeffect) 10737 # After this tag, mechanisms are not by side-effect, so they'll 10738 # only be used when explicitly requested. 10739 if test "x$enable_dependency_tracking" = xyes; then 10740 continue 10741 else 10742 break 10743 fi 10744 ;; 10745 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 10746 # This compiler won't grok '-c -o', but also, the minuso test has 10747 # not run yet. These depmodes are late enough in the game, and 10748 # so weak that their functioning should not be impacted. 10749 am__obj=conftest.${OBJEXT-o} 10750 am__minus_obj= 10751 ;; 10752 none) break ;; 10753 esac 10754 if depmode=$depmode \ 10755 source=sub/conftest.c object=$am__obj \ 10756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10757 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10758 >/dev/null 2>conftest.err && 10759 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10761 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10763 # icc doesn't choke on unknown options, it will just issue warnings 10764 # or remarks (even with -Werror). So we grep stderr for any message 10765 # that says an option was ignored or not supported. 10766 # When given -MP, icc 7.0 and 7.1 complain thusly: 10767 # icc: Command line warning: ignoring option '-M'; no argument required 10768 # The diagnosis changed in icc 8.0: 10769 # icc: Command line remark: option '-MP' not supported 10770 if (grep 'ignoring option' conftest.err || 10771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10772 am_cv_CC_dependencies_compiler_type=$depmode 10773 break 10774 fi 10775 fi 10776 done 10777 10778 cd .. 10779 rm -rf conftest.dir 10780else 10781 am_cv_CC_dependencies_compiler_type=none 10782fi 10783 10784fi 10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 10786$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 10787CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 10788 10789 if 10790 test "x$enable_dependency_tracking" != xno \ 10791 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 10792 am__fastdepCC_TRUE= 10793 am__fastdepCC_FALSE='#' 10794else 10795 am__fastdepCC_TRUE='#' 10796 am__fastdepCC_FALSE= 10797fi 10798 10799 10800 10801# POSIX will say in a future version that running "rm -f" with no argument 10802# is OK; and we want to be able to make that assumption in our Makefile 10803# recipes. So use an aggressive probe to check that the usage we want is 10804# actually supported "in the wild" to an acceptable degree. 10805# See automake bug#10828. 10806# To make any issue more visible, cause the running configure to be aborted 10807# by default if the 'rm' program in use doesn't match our expectations; the 10808# user can still override this though. 10809if rm -f && rm -fr && rm -rf; then : OK; else 10810 cat >&2 <<'END' 10811Oops! 10812 10813Your 'rm' program seems unable to run without file operands specified 10814on the command line, even when the '-f' option is present. This is contrary 10815to the behaviour of most rm programs out there, and not conforming with 10816the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 10817 10818Please tell bug-automake@gnu.org about your system, including the value 10819of your $PATH and any error possibly output before this message. This 10820can help us improve future automake versions. 10821 10822END 10823 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 10824 echo 'Configuration will proceed anyway, since you have set the' >&2 10825 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 10826 echo >&2 10827 else 10828 cat >&2 <<'END' 10829Aborting the configuration process, to ensure you take notice of the issue. 10830 10831You can download and install GNU coreutils to get an 'rm' implementation 10832that behaves properly: <http://www.gnu.org/software/coreutils/>. 10833 10834If you want to complete the configuration process using your problematic 10835'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 10836to "yes", and re-run configure. 10837 10838END 10839 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 10840 fi 10841fi 10842 10843 10844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 10845$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 10846 # Check whether --enable-maintainer-mode was given. 10847if test "${enable_maintainer_mode+set}" = set; then : 10848 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 10849else 10850 USE_MAINTAINER_MODE=no 10851fi 10852 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 10854$as_echo "$USE_MAINTAINER_MODE" >&6; } 10855 if test $USE_MAINTAINER_MODE = yes; then 10856 MAINTAINER_MODE_TRUE= 10857 MAINTAINER_MODE_FALSE='#' 10858else 10859 MAINTAINER_MODE_TRUE='#' 10860 MAINTAINER_MODE_FALSE= 10861fi 10862 10863 MAINT=$MAINTAINER_MODE_TRUE 10864 10865 10866 10867# Initialize libtool 10868# Check whether --enable-static was given. 10869if test "${enable_static+set}" = set; then : 10870 enableval=$enable_static; p=${PACKAGE-default} 10871 case $enableval in 10872 yes) enable_static=yes ;; 10873 no) enable_static=no ;; 10874 *) 10875 enable_static=no 10876 # Look at the argument we got. We use all the common list separators. 10877 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10878 for pkg in $enableval; do 10879 IFS=$lt_save_ifs 10880 if test "X$pkg" = "X$p"; then 10881 enable_static=yes 10882 fi 10883 done 10884 IFS=$lt_save_ifs 10885 ;; 10886 esac 10887else 10888 enable_static=no 10889fi 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899case `pwd` in 10900 *\ * | *\ *) 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10902$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10903esac 10904 10905 10906 10907macro_version='2.4.6' 10908macro_revision='2.4.6' 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922ltmain=$ac_aux_dir/ltmain.sh 10923 10924# Backslashify metacharacters that are still active within 10925# double-quoted strings. 10926sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10927 10928# Same as above, but do not quote variable references. 10929double_quote_subst='s/\(["`\\]\)/\\\1/g' 10930 10931# Sed substitution to delay expansion of an escaped shell variable in a 10932# double_quote_subst'ed string. 10933delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10934 10935# Sed substitution to delay expansion of an escaped single quote. 10936delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10937 10938# Sed substitution to avoid accidental globbing in evaled expressions 10939no_glob_subst='s/\*/\\\*/g' 10940 10941ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10942ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10944 10945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10946$as_echo_n "checking how to print strings... " >&6; } 10947# Test print first, because it will be a builtin if present. 10948if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10949 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10950 ECHO='print -r --' 10951elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10952 ECHO='printf %s\n' 10953else 10954 # Use this function as a fallback that always works. 10955 func_fallback_echo () 10956 { 10957 eval 'cat <<_LTECHO_EOF 10958$1 10959_LTECHO_EOF' 10960 } 10961 ECHO='func_fallback_echo' 10962fi 10963 10964# func_echo_all arg... 10965# Invoke $ECHO with all args, space-separated. 10966func_echo_all () 10967{ 10968 $ECHO "" 10969} 10970 10971case $ECHO in 10972 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10973$as_echo "printf" >&6; } ;; 10974 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10975$as_echo "print -r" >&6; } ;; 10976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10977$as_echo "cat" >&6; } ;; 10978esac 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10994$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10995if ${ac_cv_path_SED+:} false; then : 10996 $as_echo_n "(cached) " >&6 10997else 10998 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10999 for ac_i in 1 2 3 4 5 6 7; do 11000 ac_script="$ac_script$as_nl$ac_script" 11001 done 11002 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11003 { ac_script=; unset ac_script;} 11004 if test -z "$SED"; then 11005 ac_path_SED_found=false 11006 # Loop through the user's path and test for each of PROGNAME-LIST 11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11008for as_dir in $PATH 11009do 11010 IFS=$as_save_IFS 11011 test -z "$as_dir" && as_dir=. 11012 for ac_prog in sed gsed; do 11013 for ac_exec_ext in '' $ac_executable_extensions; do 11014 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11015 as_fn_executable_p "$ac_path_SED" || continue 11016# Check for GNU ac_path_SED and select it if it is found. 11017 # Check for GNU $ac_path_SED 11018case `"$ac_path_SED" --version 2>&1` in 11019*GNU*) 11020 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11021*) 11022 ac_count=0 11023 $as_echo_n 0123456789 >"conftest.in" 11024 while : 11025 do 11026 cat "conftest.in" "conftest.in" >"conftest.tmp" 11027 mv "conftest.tmp" "conftest.in" 11028 cp "conftest.in" "conftest.nl" 11029 $as_echo '' >> "conftest.nl" 11030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11032 as_fn_arith $ac_count + 1 && ac_count=$as_val 11033 if test $ac_count -gt ${ac_path_SED_max-0}; then 11034 # Best one so far, save it but keep looking for a better one 11035 ac_cv_path_SED="$ac_path_SED" 11036 ac_path_SED_max=$ac_count 11037 fi 11038 # 10*(2^10) chars as input seems more than enough 11039 test $ac_count -gt 10 && break 11040 done 11041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11042esac 11043 11044 $ac_path_SED_found && break 3 11045 done 11046 done 11047 done 11048IFS=$as_save_IFS 11049 if test -z "$ac_cv_path_SED"; then 11050 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11051 fi 11052else 11053 ac_cv_path_SED=$SED 11054fi 11055 11056fi 11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11058$as_echo "$ac_cv_path_SED" >&6; } 11059 SED="$ac_cv_path_SED" 11060 rm -f conftest.sed 11061 11062test -z "$SED" && SED=sed 11063Xsed="$SED -e 1s/^X//" 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11076$as_echo_n "checking for fgrep... " >&6; } 11077if ${ac_cv_path_FGREP+:} false; then : 11078 $as_echo_n "(cached) " >&6 11079else 11080 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11081 then ac_cv_path_FGREP="$GREP -F" 11082 else 11083 if test -z "$FGREP"; then 11084 ac_path_FGREP_found=false 11085 # Loop through the user's path and test for each of PROGNAME-LIST 11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11088do 11089 IFS=$as_save_IFS 11090 test -z "$as_dir" && as_dir=. 11091 for ac_prog in fgrep; do 11092 for ac_exec_ext in '' $ac_executable_extensions; do 11093 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11094 as_fn_executable_p "$ac_path_FGREP" || continue 11095# Check for GNU ac_path_FGREP and select it if it is found. 11096 # Check for GNU $ac_path_FGREP 11097case `"$ac_path_FGREP" --version 2>&1` in 11098*GNU*) 11099 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11100*) 11101 ac_count=0 11102 $as_echo_n 0123456789 >"conftest.in" 11103 while : 11104 do 11105 cat "conftest.in" "conftest.in" >"conftest.tmp" 11106 mv "conftest.tmp" "conftest.in" 11107 cp "conftest.in" "conftest.nl" 11108 $as_echo 'FGREP' >> "conftest.nl" 11109 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11111 as_fn_arith $ac_count + 1 && ac_count=$as_val 11112 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11113 # Best one so far, save it but keep looking for a better one 11114 ac_cv_path_FGREP="$ac_path_FGREP" 11115 ac_path_FGREP_max=$ac_count 11116 fi 11117 # 10*(2^10) chars as input seems more than enough 11118 test $ac_count -gt 10 && break 11119 done 11120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11121esac 11122 11123 $ac_path_FGREP_found && break 3 11124 done 11125 done 11126 done 11127IFS=$as_save_IFS 11128 if test -z "$ac_cv_path_FGREP"; then 11129 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11130 fi 11131else 11132 ac_cv_path_FGREP=$FGREP 11133fi 11134 11135 fi 11136fi 11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11138$as_echo "$ac_cv_path_FGREP" >&6; } 11139 FGREP="$ac_cv_path_FGREP" 11140 11141 11142test -z "$GREP" && GREP=grep 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162# Check whether --with-gnu-ld was given. 11163if test "${with_gnu_ld+set}" = set; then : 11164 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11165else 11166 with_gnu_ld=no 11167fi 11168 11169ac_prog=ld 11170if test yes = "$GCC"; then 11171 # Check if gcc -print-prog-name=ld gives a path. 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11173$as_echo_n "checking for ld used by $CC... " >&6; } 11174 case $host in 11175 *-*-mingw*) 11176 # gcc leaves a trailing carriage return, which upsets mingw 11177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11178 *) 11179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11180 esac 11181 case $ac_prog in 11182 # Accept absolute paths. 11183 [\\/]* | ?:[\\/]*) 11184 re_direlt='/[^/][^/]*/\.\./' 11185 # Canonicalize the pathname of ld 11186 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11187 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11188 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11189 done 11190 test -z "$LD" && LD=$ac_prog 11191 ;; 11192 "") 11193 # If it fails, then pretend we aren't using GCC. 11194 ac_prog=ld 11195 ;; 11196 *) 11197 # If it is relative, then search for the first ld in PATH. 11198 with_gnu_ld=unknown 11199 ;; 11200 esac 11201elif test yes = "$with_gnu_ld"; then 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11203$as_echo_n "checking for GNU ld... " >&6; } 11204else 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11206$as_echo_n "checking for non-GNU ld... " >&6; } 11207fi 11208if ${lt_cv_path_LD+:} false; then : 11209 $as_echo_n "(cached) " >&6 11210else 11211 if test -z "$LD"; then 11212 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11213 for ac_dir in $PATH; do 11214 IFS=$lt_save_ifs 11215 test -z "$ac_dir" && ac_dir=. 11216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11217 lt_cv_path_LD=$ac_dir/$ac_prog 11218 # Check to see if the program is GNU ld. I'd rather use --version, 11219 # but apparently some variants of GNU ld only accept -v. 11220 # Break only if it was the GNU/non-GNU ld that we prefer. 11221 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11222 *GNU* | *'with BFD'*) 11223 test no != "$with_gnu_ld" && break 11224 ;; 11225 *) 11226 test yes != "$with_gnu_ld" && break 11227 ;; 11228 esac 11229 fi 11230 done 11231 IFS=$lt_save_ifs 11232else 11233 lt_cv_path_LD=$LD # Let the user override the test with a path. 11234fi 11235fi 11236 11237LD=$lt_cv_path_LD 11238if test -n "$LD"; then 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11240$as_echo "$LD" >&6; } 11241else 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11243$as_echo "no" >&6; } 11244fi 11245test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11247$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11248if ${lt_cv_prog_gnu_ld+:} false; then : 11249 $as_echo_n "(cached) " >&6 11250else 11251 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11252case `$LD -v 2>&1 </dev/null` in 11253*GNU* | *'with BFD'*) 11254 lt_cv_prog_gnu_ld=yes 11255 ;; 11256*) 11257 lt_cv_prog_gnu_ld=no 11258 ;; 11259esac 11260fi 11261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11262$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11263with_gnu_ld=$lt_cv_prog_gnu_ld 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11274$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11275if ${lt_cv_path_NM+:} false; then : 11276 $as_echo_n "(cached) " >&6 11277else 11278 if test -n "$NM"; then 11279 # Let the user override the test. 11280 lt_cv_path_NM=$NM 11281else 11282 lt_nm_to_check=${ac_tool_prefix}nm 11283 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11284 lt_nm_to_check="$lt_nm_to_check nm" 11285 fi 11286 for lt_tmp_nm in $lt_nm_to_check; do 11287 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11288 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11289 IFS=$lt_save_ifs 11290 test -z "$ac_dir" && ac_dir=. 11291 tmp_nm=$ac_dir/$lt_tmp_nm 11292 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11293 # Check to see if the nm accepts a BSD-compat flag. 11294 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11295 # nm: unknown option "B" ignored 11296 # Tru64's nm complains that /dev/null is an invalid object file 11297 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11298 case $build_os in 11299 mingw*) lt_bad_file=conftest.nm/nofile ;; 11300 *) lt_bad_file=/dev/null ;; 11301 esac 11302 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11303 *$lt_bad_file* | *'Invalid file or object type'*) 11304 lt_cv_path_NM="$tmp_nm -B" 11305 break 2 11306 ;; 11307 *) 11308 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11309 */dev/null*) 11310 lt_cv_path_NM="$tmp_nm -p" 11311 break 2 11312 ;; 11313 *) 11314 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11315 continue # so that we can try to find one that supports BSD flags 11316 ;; 11317 esac 11318 ;; 11319 esac 11320 fi 11321 done 11322 IFS=$lt_save_ifs 11323 done 11324 : ${lt_cv_path_NM=no} 11325fi 11326fi 11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11328$as_echo "$lt_cv_path_NM" >&6; } 11329if test no != "$lt_cv_path_NM"; then 11330 NM=$lt_cv_path_NM 11331else 11332 # Didn't find any BSD compatible name lister, look for dumpbin. 11333 if test -n "$DUMPBIN"; then : 11334 # Let the user override the test. 11335 else 11336 if test -n "$ac_tool_prefix"; then 11337 for ac_prog in dumpbin "link -dump" 11338 do 11339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11340set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11342$as_echo_n "checking for $ac_word... " >&6; } 11343if ${ac_cv_prog_DUMPBIN+:} false; then : 11344 $as_echo_n "(cached) " >&6 11345else 11346 if test -n "$DUMPBIN"; then 11347 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11348else 11349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11350for as_dir in $PATH 11351do 11352 IFS=$as_save_IFS 11353 test -z "$as_dir" && as_dir=. 11354 for ac_exec_ext in '' $ac_executable_extensions; do 11355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11356 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11358 break 2 11359 fi 11360done 11361 done 11362IFS=$as_save_IFS 11363 11364fi 11365fi 11366DUMPBIN=$ac_cv_prog_DUMPBIN 11367if test -n "$DUMPBIN"; then 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11369$as_echo "$DUMPBIN" >&6; } 11370else 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11372$as_echo "no" >&6; } 11373fi 11374 11375 11376 test -n "$DUMPBIN" && break 11377 done 11378fi 11379if test -z "$DUMPBIN"; then 11380 ac_ct_DUMPBIN=$DUMPBIN 11381 for ac_prog in dumpbin "link -dump" 11382do 11383 # Extract the first word of "$ac_prog", so it can be a program name with args. 11384set dummy $ac_prog; ac_word=$2 11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11386$as_echo_n "checking for $ac_word... " >&6; } 11387if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11388 $as_echo_n "(cached) " >&6 11389else 11390 if test -n "$ac_ct_DUMPBIN"; then 11391 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11392else 11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11394for as_dir in $PATH 11395do 11396 IFS=$as_save_IFS 11397 test -z "$as_dir" && as_dir=. 11398 for ac_exec_ext in '' $ac_executable_extensions; do 11399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11400 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11402 break 2 11403 fi 11404done 11405 done 11406IFS=$as_save_IFS 11407 11408fi 11409fi 11410ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11411if test -n "$ac_ct_DUMPBIN"; then 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11413$as_echo "$ac_ct_DUMPBIN" >&6; } 11414else 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11416$as_echo "no" >&6; } 11417fi 11418 11419 11420 test -n "$ac_ct_DUMPBIN" && break 11421done 11422 11423 if test "x$ac_ct_DUMPBIN" = x; then 11424 DUMPBIN=":" 11425 else 11426 case $cross_compiling:$ac_tool_warned in 11427yes:) 11428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11430ac_tool_warned=yes ;; 11431esac 11432 DUMPBIN=$ac_ct_DUMPBIN 11433 fi 11434fi 11435 11436 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11437 *COFF*) 11438 DUMPBIN="$DUMPBIN -symbols -headers" 11439 ;; 11440 *) 11441 DUMPBIN=: 11442 ;; 11443 esac 11444 fi 11445 11446 if test : != "$DUMPBIN"; then 11447 NM=$DUMPBIN 11448 fi 11449fi 11450test -z "$NM" && NM=nm 11451 11452 11453 11454 11455 11456 11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11458$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11459if ${lt_cv_nm_interface+:} false; then : 11460 $as_echo_n "(cached) " >&6 11461else 11462 lt_cv_nm_interface="BSD nm" 11463 echo "int some_variable = 0;" > conftest.$ac_ext 11464 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11465 (eval "$ac_compile" 2>conftest.err) 11466 cat conftest.err >&5 11467 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11468 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11469 cat conftest.err >&5 11470 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11471 cat conftest.out >&5 11472 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11473 lt_cv_nm_interface="MS dumpbin" 11474 fi 11475 rm -f conftest* 11476fi 11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11478$as_echo "$lt_cv_nm_interface" >&6; } 11479 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11481$as_echo_n "checking whether ln -s works... " >&6; } 11482LN_S=$as_ln_s 11483if test "$LN_S" = "ln -s"; then 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11485$as_echo "yes" >&6; } 11486else 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11488$as_echo "no, using $LN_S" >&6; } 11489fi 11490 11491# find the maximum length of command line arguments 11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11493$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11494if ${lt_cv_sys_max_cmd_len+:} false; then : 11495 $as_echo_n "(cached) " >&6 11496else 11497 i=0 11498 teststring=ABCD 11499 11500 case $build_os in 11501 msdosdjgpp*) 11502 # On DJGPP, this test can blow up pretty badly due to problems in libc 11503 # (any single argument exceeding 2000 bytes causes a buffer overrun 11504 # during glob expansion). Even if it were fixed, the result of this 11505 # check would be larger than it should be. 11506 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11507 ;; 11508 11509 gnu*) 11510 # Under GNU Hurd, this test is not required because there is 11511 # no limit to the length of command line arguments. 11512 # Libtool will interpret -1 as no limit whatsoever 11513 lt_cv_sys_max_cmd_len=-1; 11514 ;; 11515 11516 cygwin* | mingw* | cegcc*) 11517 # On Win9x/ME, this test blows up -- it succeeds, but takes 11518 # about 5 minutes as the teststring grows exponentially. 11519 # Worse, since 9x/ME are not pre-emptively multitasking, 11520 # you end up with a "frozen" computer, even though with patience 11521 # the test eventually succeeds (with a max line length of 256k). 11522 # Instead, let's just punt: use the minimum linelength reported by 11523 # all of the supported platforms: 8192 (on NT/2K/XP). 11524 lt_cv_sys_max_cmd_len=8192; 11525 ;; 11526 11527 mint*) 11528 # On MiNT this can take a long time and run out of memory. 11529 lt_cv_sys_max_cmd_len=8192; 11530 ;; 11531 11532 amigaos*) 11533 # On AmigaOS with pdksh, this test takes hours, literally. 11534 # So we just punt and use a minimum line length of 8192. 11535 lt_cv_sys_max_cmd_len=8192; 11536 ;; 11537 11538 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11539 # This has been around since 386BSD, at least. Likely further. 11540 if test -x /sbin/sysctl; then 11541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11542 elif test -x /usr/sbin/sysctl; then 11543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11544 else 11545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11546 fi 11547 # And add a safety zone 11548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11550 ;; 11551 11552 interix*) 11553 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11554 lt_cv_sys_max_cmd_len=196608 11555 ;; 11556 11557 os2*) 11558 # The test takes a long time on OS/2. 11559 lt_cv_sys_max_cmd_len=8192 11560 ;; 11561 11562 osf*) 11563 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11564 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11565 # nice to cause kernel panics so lets avoid the loop below. 11566 # First set a reasonable default. 11567 lt_cv_sys_max_cmd_len=16384 11568 # 11569 if test -x /sbin/sysconfig; then 11570 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11571 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11572 esac 11573 fi 11574 ;; 11575 sco3.2v5*) 11576 lt_cv_sys_max_cmd_len=102400 11577 ;; 11578 sysv5* | sco5v6* | sysv4.2uw2*) 11579 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11580 if test -n "$kargmax"; then 11581 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11582 else 11583 lt_cv_sys_max_cmd_len=32768 11584 fi 11585 ;; 11586 *) 11587 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11588 if test -n "$lt_cv_sys_max_cmd_len" && \ 11589 test undefined != "$lt_cv_sys_max_cmd_len"; then 11590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11592 else 11593 # Make teststring a little bigger before we do anything with it. 11594 # a 1K string should be a reasonable start. 11595 for i in 1 2 3 4 5 6 7 8; do 11596 teststring=$teststring$teststring 11597 done 11598 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11599 # If test is not a shell built-in, we'll probably end up computing a 11600 # maximum length that is only half of the actual maximum length, but 11601 # we can't tell. 11602 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11603 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11604 test 17 != "$i" # 1/2 MB should be enough 11605 do 11606 i=`expr $i + 1` 11607 teststring=$teststring$teststring 11608 done 11609 # Only check the string length outside the loop. 11610 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11611 teststring= 11612 # Add a significant safety factor because C++ compilers can tack on 11613 # massive amounts of additional arguments before passing them to the 11614 # linker. It appears as though 1/2 is a usable value. 11615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11616 fi 11617 ;; 11618 esac 11619 11620fi 11621 11622if test -n "$lt_cv_sys_max_cmd_len"; then 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11624$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11625else 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11627$as_echo "none" >&6; } 11628fi 11629max_cmd_len=$lt_cv_sys_max_cmd_len 11630 11631 11632 11633 11634 11635 11636: ${CP="cp -f"} 11637: ${MV="mv -f"} 11638: ${RM="rm -f"} 11639 11640if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11641 lt_unset=unset 11642else 11643 lt_unset=false 11644fi 11645 11646 11647 11648 11649 11650# test EBCDIC or ASCII 11651case `echo X|tr X '\101'` in 11652 A) # ASCII based system 11653 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11654 lt_SP2NL='tr \040 \012' 11655 lt_NL2SP='tr \015\012 \040\040' 11656 ;; 11657 *) # EBCDIC based system 11658 lt_SP2NL='tr \100 \n' 11659 lt_NL2SP='tr \r\n \100\100' 11660 ;; 11661esac 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11672$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11673if ${lt_cv_to_host_file_cmd+:} false; then : 11674 $as_echo_n "(cached) " >&6 11675else 11676 case $host in 11677 *-*-mingw* ) 11678 case $build in 11679 *-*-mingw* ) # actually msys 11680 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11681 ;; 11682 *-*-cygwin* ) 11683 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11684 ;; 11685 * ) # otherwise, assume *nix 11686 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11687 ;; 11688 esac 11689 ;; 11690 *-*-cygwin* ) 11691 case $build in 11692 *-*-mingw* ) # actually msys 11693 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11694 ;; 11695 *-*-cygwin* ) 11696 lt_cv_to_host_file_cmd=func_convert_file_noop 11697 ;; 11698 * ) # otherwise, assume *nix 11699 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11700 ;; 11701 esac 11702 ;; 11703 * ) # unhandled hosts (and "normal" native builds) 11704 lt_cv_to_host_file_cmd=func_convert_file_noop 11705 ;; 11706esac 11707 11708fi 11709 11710to_host_file_cmd=$lt_cv_to_host_file_cmd 11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11712$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11713 11714 11715 11716 11717 11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11719$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11720if ${lt_cv_to_tool_file_cmd+:} false; then : 11721 $as_echo_n "(cached) " >&6 11722else 11723 #assume ordinary cross tools, or native build. 11724lt_cv_to_tool_file_cmd=func_convert_file_noop 11725case $host in 11726 *-*-mingw* ) 11727 case $build in 11728 *-*-mingw* ) # actually msys 11729 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11730 ;; 11731 esac 11732 ;; 11733esac 11734 11735fi 11736 11737to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11739$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11740 11741 11742 11743 11744 11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11746$as_echo_n "checking for $LD option to reload object files... " >&6; } 11747if ${lt_cv_ld_reload_flag+:} false; then : 11748 $as_echo_n "(cached) " >&6 11749else 11750 lt_cv_ld_reload_flag='-r' 11751fi 11752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11753$as_echo "$lt_cv_ld_reload_flag" >&6; } 11754reload_flag=$lt_cv_ld_reload_flag 11755case $reload_flag in 11756"" | " "*) ;; 11757*) reload_flag=" $reload_flag" ;; 11758esac 11759reload_cmds='$LD$reload_flag -o $output$reload_objs' 11760case $host_os in 11761 cygwin* | mingw* | pw32* | cegcc*) 11762 if test yes != "$GCC"; then 11763 reload_cmds=false 11764 fi 11765 ;; 11766 darwin*) 11767 if test yes = "$GCC"; then 11768 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11769 else 11770 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11771 fi 11772 ;; 11773esac 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783if test -n "$ac_tool_prefix"; then 11784 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11785set dummy ${ac_tool_prefix}objdump; ac_word=$2 11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11787$as_echo_n "checking for $ac_word... " >&6; } 11788if ${ac_cv_prog_OBJDUMP+:} false; then : 11789 $as_echo_n "(cached) " >&6 11790else 11791 if test -n "$OBJDUMP"; then 11792 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11793else 11794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11795for as_dir in $PATH 11796do 11797 IFS=$as_save_IFS 11798 test -z "$as_dir" && as_dir=. 11799 for ac_exec_ext in '' $ac_executable_extensions; do 11800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11801 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11803 break 2 11804 fi 11805done 11806 done 11807IFS=$as_save_IFS 11808 11809fi 11810fi 11811OBJDUMP=$ac_cv_prog_OBJDUMP 11812if test -n "$OBJDUMP"; then 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11814$as_echo "$OBJDUMP" >&6; } 11815else 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11817$as_echo "no" >&6; } 11818fi 11819 11820 11821fi 11822if test -z "$ac_cv_prog_OBJDUMP"; then 11823 ac_ct_OBJDUMP=$OBJDUMP 11824 # Extract the first word of "objdump", so it can be a program name with args. 11825set dummy objdump; ac_word=$2 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11827$as_echo_n "checking for $ac_word... " >&6; } 11828if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11829 $as_echo_n "(cached) " >&6 11830else 11831 if test -n "$ac_ct_OBJDUMP"; then 11832 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11833else 11834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11835for as_dir in $PATH 11836do 11837 IFS=$as_save_IFS 11838 test -z "$as_dir" && as_dir=. 11839 for ac_exec_ext in '' $ac_executable_extensions; do 11840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11841 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11843 break 2 11844 fi 11845done 11846 done 11847IFS=$as_save_IFS 11848 11849fi 11850fi 11851ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11852if test -n "$ac_ct_OBJDUMP"; then 11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11854$as_echo "$ac_ct_OBJDUMP" >&6; } 11855else 11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11857$as_echo "no" >&6; } 11858fi 11859 11860 if test "x$ac_ct_OBJDUMP" = x; then 11861 OBJDUMP="false" 11862 else 11863 case $cross_compiling:$ac_tool_warned in 11864yes:) 11865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11867ac_tool_warned=yes ;; 11868esac 11869 OBJDUMP=$ac_ct_OBJDUMP 11870 fi 11871else 11872 OBJDUMP="$ac_cv_prog_OBJDUMP" 11873fi 11874 11875test -z "$OBJDUMP" && OBJDUMP=objdump 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11886$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11887if ${lt_cv_deplibs_check_method+:} false; then : 11888 $as_echo_n "(cached) " >&6 11889else 11890 lt_cv_file_magic_cmd='$MAGIC_CMD' 11891lt_cv_file_magic_test_file= 11892lt_cv_deplibs_check_method='unknown' 11893# Need to set the preceding variable on all platforms that support 11894# interlibrary dependencies. 11895# 'none' -- dependencies not supported. 11896# 'unknown' -- same as none, but documents that we really don't know. 11897# 'pass_all' -- all dependencies passed with no checks. 11898# 'test_compile' -- check by making test program. 11899# 'file_magic [[regex]]' -- check by looking for files in library path 11900# that responds to the $file_magic_cmd with a given extended regex. 11901# If you have 'file' or equivalent on your system and you're not sure 11902# whether 'pass_all' will *always* work, you probably want this one. 11903 11904case $host_os in 11905aix[4-9]*) 11906 lt_cv_deplibs_check_method=pass_all 11907 ;; 11908 11909beos*) 11910 lt_cv_deplibs_check_method=pass_all 11911 ;; 11912 11913bsdi[45]*) 11914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11915 lt_cv_file_magic_cmd='/usr/bin/file -L' 11916 lt_cv_file_magic_test_file=/shlib/libc.so 11917 ;; 11918 11919cygwin*) 11920 # func_win32_libid is a shell function defined in ltmain.sh 11921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11922 lt_cv_file_magic_cmd='func_win32_libid' 11923 ;; 11924 11925mingw* | pw32*) 11926 # Base MSYS/MinGW do not provide the 'file' command needed by 11927 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11928 # unless we find 'file', for example because we are cross-compiling. 11929 if ( file / ) >/dev/null 2>&1; then 11930 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11931 lt_cv_file_magic_cmd='func_win32_libid' 11932 else 11933 # Keep this pattern in sync with the one in func_win32_libid. 11934 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11935 lt_cv_file_magic_cmd='$OBJDUMP -f' 11936 fi 11937 ;; 11938 11939cegcc*) 11940 # use the weaker test based on 'objdump'. See mingw*. 11941 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11942 lt_cv_file_magic_cmd='$OBJDUMP -f' 11943 ;; 11944 11945darwin* | rhapsody*) 11946 lt_cv_deplibs_check_method=pass_all 11947 ;; 11948 11949freebsd* | dragonfly*) 11950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11951 case $host_cpu in 11952 i*86 ) 11953 # Not sure whether the presence of OpenBSD here was a mistake. 11954 # Let's accept both of them until this is cleared up. 11955 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11956 lt_cv_file_magic_cmd=/usr/bin/file 11957 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11958 ;; 11959 esac 11960 else 11961 lt_cv_deplibs_check_method=pass_all 11962 fi 11963 ;; 11964 11965haiku*) 11966 lt_cv_deplibs_check_method=pass_all 11967 ;; 11968 11969hpux10.20* | hpux11*) 11970 lt_cv_file_magic_cmd=/usr/bin/file 11971 case $host_cpu in 11972 ia64*) 11973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11974 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11975 ;; 11976 hppa*64*) 11977 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]' 11978 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11979 ;; 11980 *) 11981 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11982 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11983 ;; 11984 esac 11985 ;; 11986 11987interix[3-9]*) 11988 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11990 ;; 11991 11992irix5* | irix6* | nonstopux*) 11993 case $LD in 11994 *-32|*"-32 ") libmagic=32-bit;; 11995 *-n32|*"-n32 ") libmagic=N32;; 11996 *-64|*"-64 ") libmagic=64-bit;; 11997 *) libmagic=never-match;; 11998 esac 11999 lt_cv_deplibs_check_method=pass_all 12000 ;; 12001 12002# This must be glibc/ELF. 12003linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12004 lt_cv_deplibs_check_method=pass_all 12005 ;; 12006 12007netbsd*) 12008 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12010 else 12011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12012 fi 12013 ;; 12014 12015newos6*) 12016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12017 lt_cv_file_magic_cmd=/usr/bin/file 12018 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12019 ;; 12020 12021*nto* | *qnx*) 12022 lt_cv_deplibs_check_method=pass_all 12023 ;; 12024 12025openbsd* | bitrig*) 12026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12028 else 12029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12030 fi 12031 ;; 12032 12033osf3* | osf4* | osf5*) 12034 lt_cv_deplibs_check_method=pass_all 12035 ;; 12036 12037rdos*) 12038 lt_cv_deplibs_check_method=pass_all 12039 ;; 12040 12041solaris*) 12042 lt_cv_deplibs_check_method=pass_all 12043 ;; 12044 12045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12046 lt_cv_deplibs_check_method=pass_all 12047 ;; 12048 12049sysv4 | sysv4.3*) 12050 case $host_vendor in 12051 motorola) 12052 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]' 12053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12054 ;; 12055 ncr) 12056 lt_cv_deplibs_check_method=pass_all 12057 ;; 12058 sequent) 12059 lt_cv_file_magic_cmd='/bin/file' 12060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12061 ;; 12062 sni) 12063 lt_cv_file_magic_cmd='/bin/file' 12064 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12065 lt_cv_file_magic_test_file=/lib/libc.so 12066 ;; 12067 siemens) 12068 lt_cv_deplibs_check_method=pass_all 12069 ;; 12070 pc) 12071 lt_cv_deplibs_check_method=pass_all 12072 ;; 12073 esac 12074 ;; 12075 12076tpf*) 12077 lt_cv_deplibs_check_method=pass_all 12078 ;; 12079os2*) 12080 lt_cv_deplibs_check_method=pass_all 12081 ;; 12082esac 12083 12084fi 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12086$as_echo "$lt_cv_deplibs_check_method" >&6; } 12087 12088file_magic_glob= 12089want_nocaseglob=no 12090if test "$build" = "$host"; then 12091 case $host_os in 12092 mingw* | pw32*) 12093 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12094 want_nocaseglob=yes 12095 else 12096 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12097 fi 12098 ;; 12099 esac 12100fi 12101 12102file_magic_cmd=$lt_cv_file_magic_cmd 12103deplibs_check_method=$lt_cv_deplibs_check_method 12104test -z "$deplibs_check_method" && deplibs_check_method=unknown 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127if test -n "$ac_tool_prefix"; then 12128 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12129set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12131$as_echo_n "checking for $ac_word... " >&6; } 12132if ${ac_cv_prog_DLLTOOL+:} false; then : 12133 $as_echo_n "(cached) " >&6 12134else 12135 if test -n "$DLLTOOL"; then 12136 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12137else 12138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12139for as_dir in $PATH 12140do 12141 IFS=$as_save_IFS 12142 test -z "$as_dir" && as_dir=. 12143 for ac_exec_ext in '' $ac_executable_extensions; do 12144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12145 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12147 break 2 12148 fi 12149done 12150 done 12151IFS=$as_save_IFS 12152 12153fi 12154fi 12155DLLTOOL=$ac_cv_prog_DLLTOOL 12156if test -n "$DLLTOOL"; then 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12158$as_echo "$DLLTOOL" >&6; } 12159else 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12161$as_echo "no" >&6; } 12162fi 12163 12164 12165fi 12166if test -z "$ac_cv_prog_DLLTOOL"; then 12167 ac_ct_DLLTOOL=$DLLTOOL 12168 # Extract the first word of "dlltool", so it can be a program name with args. 12169set dummy dlltool; ac_word=$2 12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12171$as_echo_n "checking for $ac_word... " >&6; } 12172if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12173 $as_echo_n "(cached) " >&6 12174else 12175 if test -n "$ac_ct_DLLTOOL"; then 12176 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12177else 12178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12179for as_dir in $PATH 12180do 12181 IFS=$as_save_IFS 12182 test -z "$as_dir" && as_dir=. 12183 for ac_exec_ext in '' $ac_executable_extensions; do 12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12185 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12187 break 2 12188 fi 12189done 12190 done 12191IFS=$as_save_IFS 12192 12193fi 12194fi 12195ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12196if test -n "$ac_ct_DLLTOOL"; then 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12198$as_echo "$ac_ct_DLLTOOL" >&6; } 12199else 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12201$as_echo "no" >&6; } 12202fi 12203 12204 if test "x$ac_ct_DLLTOOL" = x; then 12205 DLLTOOL="false" 12206 else 12207 case $cross_compiling:$ac_tool_warned in 12208yes:) 12209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12211ac_tool_warned=yes ;; 12212esac 12213 DLLTOOL=$ac_ct_DLLTOOL 12214 fi 12215else 12216 DLLTOOL="$ac_cv_prog_DLLTOOL" 12217fi 12218 12219test -z "$DLLTOOL" && DLLTOOL=dlltool 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12231$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12232if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12233 $as_echo_n "(cached) " >&6 12234else 12235 lt_cv_sharedlib_from_linklib_cmd='unknown' 12236 12237case $host_os in 12238cygwin* | mingw* | pw32* | cegcc*) 12239 # two different shell functions defined in ltmain.sh; 12240 # decide which one to use based on capabilities of $DLLTOOL 12241 case `$DLLTOOL --help 2>&1` in 12242 *--identify-strict*) 12243 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12244 ;; 12245 *) 12246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12247 ;; 12248 esac 12249 ;; 12250*) 12251 # fallback: assume linklib IS sharedlib 12252 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12253 ;; 12254esac 12255 12256fi 12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12258$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12259sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12260test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12261 12262 12263 12264 12265 12266 12267 12268if test -n "$ac_tool_prefix"; then 12269 for ac_prog in ar 12270 do 12271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12272set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12274$as_echo_n "checking for $ac_word... " >&6; } 12275if ${ac_cv_prog_AR+:} false; then : 12276 $as_echo_n "(cached) " >&6 12277else 12278 if test -n "$AR"; then 12279 ac_cv_prog_AR="$AR" # Let the user override the test. 12280else 12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12282for as_dir in $PATH 12283do 12284 IFS=$as_save_IFS 12285 test -z "$as_dir" && as_dir=. 12286 for ac_exec_ext in '' $ac_executable_extensions; do 12287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12288 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12290 break 2 12291 fi 12292done 12293 done 12294IFS=$as_save_IFS 12295 12296fi 12297fi 12298AR=$ac_cv_prog_AR 12299if test -n "$AR"; then 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12301$as_echo "$AR" >&6; } 12302else 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12304$as_echo "no" >&6; } 12305fi 12306 12307 12308 test -n "$AR" && break 12309 done 12310fi 12311if test -z "$AR"; then 12312 ac_ct_AR=$AR 12313 for ac_prog in ar 12314do 12315 # Extract the first word of "$ac_prog", so it can be a program name with args. 12316set dummy $ac_prog; ac_word=$2 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12318$as_echo_n "checking for $ac_word... " >&6; } 12319if ${ac_cv_prog_ac_ct_AR+:} false; then : 12320 $as_echo_n "(cached) " >&6 12321else 12322 if test -n "$ac_ct_AR"; then 12323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12324else 12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12326for as_dir in $PATH 12327do 12328 IFS=$as_save_IFS 12329 test -z "$as_dir" && as_dir=. 12330 for ac_exec_ext in '' $ac_executable_extensions; do 12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12332 ac_cv_prog_ac_ct_AR="$ac_prog" 12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12334 break 2 12335 fi 12336done 12337 done 12338IFS=$as_save_IFS 12339 12340fi 12341fi 12342ac_ct_AR=$ac_cv_prog_ac_ct_AR 12343if test -n "$ac_ct_AR"; then 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12345$as_echo "$ac_ct_AR" >&6; } 12346else 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12348$as_echo "no" >&6; } 12349fi 12350 12351 12352 test -n "$ac_ct_AR" && break 12353done 12354 12355 if test "x$ac_ct_AR" = x; then 12356 AR="false" 12357 else 12358 case $cross_compiling:$ac_tool_warned in 12359yes:) 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12362ac_tool_warned=yes ;; 12363esac 12364 AR=$ac_ct_AR 12365 fi 12366fi 12367 12368: ${AR=ar} 12369: ${AR_FLAGS=cru} 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12382$as_echo_n "checking for archiver @FILE support... " >&6; } 12383if ${lt_cv_ar_at_file+:} false; then : 12384 $as_echo_n "(cached) " >&6 12385else 12386 lt_cv_ar_at_file=no 12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388/* end confdefs.h. */ 12389 12390int 12391main () 12392{ 12393 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398if ac_fn_c_try_compile "$LINENO"; then : 12399 echo conftest.$ac_objext > conftest.lst 12400 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12402 (eval $lt_ar_try) 2>&5 12403 ac_status=$? 12404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12405 test $ac_status = 0; } 12406 if test 0 -eq "$ac_status"; then 12407 # Ensure the archiver fails upon bogus file names. 12408 rm -f conftest.$ac_objext libconftest.a 12409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12410 (eval $lt_ar_try) 2>&5 12411 ac_status=$? 12412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12413 test $ac_status = 0; } 12414 if test 0 -ne "$ac_status"; then 12415 lt_cv_ar_at_file=@ 12416 fi 12417 fi 12418 rm -f conftest.* libconftest.a 12419 12420fi 12421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12422 12423fi 12424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12425$as_echo "$lt_cv_ar_at_file" >&6; } 12426 12427if test no = "$lt_cv_ar_at_file"; then 12428 archiver_list_spec= 12429else 12430 archiver_list_spec=$lt_cv_ar_at_file 12431fi 12432 12433 12434 12435 12436 12437 12438 12439if test -n "$ac_tool_prefix"; then 12440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12441set dummy ${ac_tool_prefix}strip; ac_word=$2 12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12443$as_echo_n "checking for $ac_word... " >&6; } 12444if ${ac_cv_prog_STRIP+:} false; then : 12445 $as_echo_n "(cached) " >&6 12446else 12447 if test -n "$STRIP"; then 12448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12449else 12450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12451for as_dir in $PATH 12452do 12453 IFS=$as_save_IFS 12454 test -z "$as_dir" && as_dir=. 12455 for ac_exec_ext in '' $ac_executable_extensions; do 12456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12457 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12459 break 2 12460 fi 12461done 12462 done 12463IFS=$as_save_IFS 12464 12465fi 12466fi 12467STRIP=$ac_cv_prog_STRIP 12468if test -n "$STRIP"; then 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12470$as_echo "$STRIP" >&6; } 12471else 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12473$as_echo "no" >&6; } 12474fi 12475 12476 12477fi 12478if test -z "$ac_cv_prog_STRIP"; then 12479 ac_ct_STRIP=$STRIP 12480 # Extract the first word of "strip", so it can be a program name with args. 12481set dummy strip; ac_word=$2 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12483$as_echo_n "checking for $ac_word... " >&6; } 12484if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12485 $as_echo_n "(cached) " >&6 12486else 12487 if test -n "$ac_ct_STRIP"; then 12488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12489else 12490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12491for as_dir in $PATH 12492do 12493 IFS=$as_save_IFS 12494 test -z "$as_dir" && as_dir=. 12495 for ac_exec_ext in '' $ac_executable_extensions; do 12496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12497 ac_cv_prog_ac_ct_STRIP="strip" 12498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12499 break 2 12500 fi 12501done 12502 done 12503IFS=$as_save_IFS 12504 12505fi 12506fi 12507ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12508if test -n "$ac_ct_STRIP"; then 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12510$as_echo "$ac_ct_STRIP" >&6; } 12511else 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12513$as_echo "no" >&6; } 12514fi 12515 12516 if test "x$ac_ct_STRIP" = x; then 12517 STRIP=":" 12518 else 12519 case $cross_compiling:$ac_tool_warned in 12520yes:) 12521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12523ac_tool_warned=yes ;; 12524esac 12525 STRIP=$ac_ct_STRIP 12526 fi 12527else 12528 STRIP="$ac_cv_prog_STRIP" 12529fi 12530 12531test -z "$STRIP" && STRIP=: 12532 12533 12534 12535 12536 12537 12538if test -n "$ac_tool_prefix"; then 12539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12540set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12542$as_echo_n "checking for $ac_word... " >&6; } 12543if ${ac_cv_prog_RANLIB+:} false; then : 12544 $as_echo_n "(cached) " >&6 12545else 12546 if test -n "$RANLIB"; then 12547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12548else 12549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12550for as_dir in $PATH 12551do 12552 IFS=$as_save_IFS 12553 test -z "$as_dir" && as_dir=. 12554 for ac_exec_ext in '' $ac_executable_extensions; do 12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12558 break 2 12559 fi 12560done 12561 done 12562IFS=$as_save_IFS 12563 12564fi 12565fi 12566RANLIB=$ac_cv_prog_RANLIB 12567if test -n "$RANLIB"; then 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12569$as_echo "$RANLIB" >&6; } 12570else 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12572$as_echo "no" >&6; } 12573fi 12574 12575 12576fi 12577if test -z "$ac_cv_prog_RANLIB"; then 12578 ac_ct_RANLIB=$RANLIB 12579 # Extract the first word of "ranlib", so it can be a program name with args. 12580set dummy ranlib; ac_word=$2 12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12582$as_echo_n "checking for $ac_word... " >&6; } 12583if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12584 $as_echo_n "(cached) " >&6 12585else 12586 if test -n "$ac_ct_RANLIB"; then 12587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12588else 12589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12590for as_dir in $PATH 12591do 12592 IFS=$as_save_IFS 12593 test -z "$as_dir" && as_dir=. 12594 for ac_exec_ext in '' $ac_executable_extensions; do 12595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12596 ac_cv_prog_ac_ct_RANLIB="ranlib" 12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12598 break 2 12599 fi 12600done 12601 done 12602IFS=$as_save_IFS 12603 12604fi 12605fi 12606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12607if test -n "$ac_ct_RANLIB"; then 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12609$as_echo "$ac_ct_RANLIB" >&6; } 12610else 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12612$as_echo "no" >&6; } 12613fi 12614 12615 if test "x$ac_ct_RANLIB" = x; then 12616 RANLIB=":" 12617 else 12618 case $cross_compiling:$ac_tool_warned in 12619yes:) 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12622ac_tool_warned=yes ;; 12623esac 12624 RANLIB=$ac_ct_RANLIB 12625 fi 12626else 12627 RANLIB="$ac_cv_prog_RANLIB" 12628fi 12629 12630test -z "$RANLIB" && RANLIB=: 12631 12632 12633 12634 12635 12636 12637# Determine commands to create old-style static archives. 12638old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12639old_postinstall_cmds='chmod 644 $oldlib' 12640old_postuninstall_cmds= 12641 12642if test -n "$RANLIB"; then 12643 case $host_os in 12644 bitrig* | openbsd*) 12645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12646 ;; 12647 *) 12648 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12649 ;; 12650 esac 12651 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12652fi 12653 12654case $host_os in 12655 darwin*) 12656 lock_old_archive_extraction=yes ;; 12657 *) 12658 lock_old_archive_extraction=no ;; 12659esac 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699# If no C compiler was specified, use CC. 12700LTCC=${LTCC-"$CC"} 12701 12702# If no C compiler flags were specified, use CFLAGS. 12703LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12704 12705# Allow CC to be a program name with arguments. 12706compiler=$CC 12707 12708 12709# Check for command to grab the raw symbol name followed by C symbol from nm. 12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12711$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12712if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12713 $as_echo_n "(cached) " >&6 12714else 12715 12716# These are sane defaults that work on at least a few old systems. 12717# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12718 12719# Character class describing NM global symbol codes. 12720symcode='[BCDEGRST]' 12721 12722# Regexp to match symbols that can be accessed directly from C. 12723sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12724 12725# Define system-specific variables. 12726case $host_os in 12727aix*) 12728 symcode='[BCDT]' 12729 ;; 12730cygwin* | mingw* | pw32* | cegcc*) 12731 symcode='[ABCDGISTW]' 12732 ;; 12733hpux*) 12734 if test ia64 = "$host_cpu"; then 12735 symcode='[ABCDEGRST]' 12736 fi 12737 ;; 12738irix* | nonstopux*) 12739 symcode='[BCDEGRST]' 12740 ;; 12741osf*) 12742 symcode='[BCDEGQRST]' 12743 ;; 12744solaris*) 12745 symcode='[BDRT]' 12746 ;; 12747sco3.2v5*) 12748 symcode='[DT]' 12749 ;; 12750sysv4.2uw2*) 12751 symcode='[DT]' 12752 ;; 12753sysv5* | sco5v6* | unixware* | OpenUNIX*) 12754 symcode='[ABDT]' 12755 ;; 12756sysv4) 12757 symcode='[DFNSTU]' 12758 ;; 12759esac 12760 12761# If we're using GNU nm, then use its standard symbol codes. 12762case `$NM -V 2>&1` in 12763*GNU* | *'with BFD'*) 12764 symcode='[ABCDGIRSTW]' ;; 12765esac 12766 12767if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12768 # Gets list of data symbols to import. 12769 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12770 # Adjust the below global symbol transforms to fixup imported variables. 12771 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12772 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12773 lt_c_name_lib_hook="\ 12774 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12775 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12776else 12777 # Disable hooks by default. 12778 lt_cv_sys_global_symbol_to_import= 12779 lt_cdecl_hook= 12780 lt_c_name_hook= 12781 lt_c_name_lib_hook= 12782fi 12783 12784# Transform an extracted symbol line into a proper C declaration. 12785# Some systems (esp. on ia64) link data and code symbols differently, 12786# so use this general approach. 12787lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12788$lt_cdecl_hook\ 12789" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12790" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12791 12792# Transform an extracted symbol line into symbol name and symbol address 12793lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12794$lt_c_name_hook\ 12795" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12796" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12797 12798# Transform an extracted symbol line into symbol name with lib prefix and 12799# symbol address. 12800lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12801$lt_c_name_lib_hook\ 12802" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12803" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12804" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12805 12806# Handle CRLF in mingw tool chain 12807opt_cr= 12808case $build_os in 12809mingw*) 12810 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12811 ;; 12812esac 12813 12814# Try without a prefix underscore, then with it. 12815for ac_symprfx in "" "_"; do 12816 12817 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12818 symxfrm="\\1 $ac_symprfx\\2 \\2" 12819 12820 # Write the raw and C identifiers. 12821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12822 # Fake it for dumpbin and say T for any non-static function, 12823 # D for any global variable and I for any imported variable. 12824 # Also find C++ and __fastcall symbols from MSVC++, 12825 # which start with @ or ?. 12826 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12827" {last_section=section; section=\$ 3};"\ 12828" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12829" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12830" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12831" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12832" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12833" \$ 0!~/External *\|/{next};"\ 12834" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12835" {if(hide[section]) next};"\ 12836" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12837" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12838" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12839" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12840" ' prfx=^$ac_symprfx" 12841 else 12842 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12843 fi 12844 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12845 12846 # Check to see that the pipe works correctly. 12847 pipe_works=no 12848 12849 rm -f conftest* 12850 cat > conftest.$ac_ext <<_LT_EOF 12851#ifdef __cplusplus 12852extern "C" { 12853#endif 12854char nm_test_var; 12855void nm_test_func(void); 12856void nm_test_func(void){} 12857#ifdef __cplusplus 12858} 12859#endif 12860int main(){nm_test_var='a';nm_test_func();return(0);} 12861_LT_EOF 12862 12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12864 (eval $ac_compile) 2>&5 12865 ac_status=$? 12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12867 test $ac_status = 0; }; then 12868 # Now try to grab the symbols. 12869 nlist=conftest.nm 12870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12871 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12872 ac_status=$? 12873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12874 test $ac_status = 0; } && test -s "$nlist"; then 12875 # Try sorting and uniquifying the output. 12876 if sort "$nlist" | uniq > "$nlist"T; then 12877 mv -f "$nlist"T "$nlist" 12878 else 12879 rm -f "$nlist"T 12880 fi 12881 12882 # Make sure that we snagged all the symbols we need. 12883 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12884 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12885 cat <<_LT_EOF > conftest.$ac_ext 12886/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12887#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12888/* DATA imports from DLLs on WIN32 can't be const, because runtime 12889 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12890# define LT_DLSYM_CONST 12891#elif defined __osf__ 12892/* This system does not cope well with relocations in const data. */ 12893# define LT_DLSYM_CONST 12894#else 12895# define LT_DLSYM_CONST const 12896#endif 12897 12898#ifdef __cplusplus 12899extern "C" { 12900#endif 12901 12902_LT_EOF 12903 # Now generate the symbol file. 12904 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12905 12906 cat <<_LT_EOF >> conftest.$ac_ext 12907 12908/* The mapping between symbol names and symbols. */ 12909LT_DLSYM_CONST struct { 12910 const char *name; 12911 void *address; 12912} 12913lt__PROGRAM__LTX_preloaded_symbols[] = 12914{ 12915 { "@PROGRAM@", (void *) 0 }, 12916_LT_EOF 12917 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12918 cat <<\_LT_EOF >> conftest.$ac_ext 12919 {0, (void *) 0} 12920}; 12921 12922/* This works around a problem in FreeBSD linker */ 12923#ifdef FREEBSD_WORKAROUND 12924static const void *lt_preloaded_setup() { 12925 return lt__PROGRAM__LTX_preloaded_symbols; 12926} 12927#endif 12928 12929#ifdef __cplusplus 12930} 12931#endif 12932_LT_EOF 12933 # Now try linking the two files. 12934 mv conftest.$ac_objext conftstm.$ac_objext 12935 lt_globsym_save_LIBS=$LIBS 12936 lt_globsym_save_CFLAGS=$CFLAGS 12937 LIBS=conftstm.$ac_objext 12938 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12940 (eval $ac_link) 2>&5 12941 ac_status=$? 12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12943 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12944 pipe_works=yes 12945 fi 12946 LIBS=$lt_globsym_save_LIBS 12947 CFLAGS=$lt_globsym_save_CFLAGS 12948 else 12949 echo "cannot find nm_test_func in $nlist" >&5 12950 fi 12951 else 12952 echo "cannot find nm_test_var in $nlist" >&5 12953 fi 12954 else 12955 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12956 fi 12957 else 12958 echo "$progname: failed program was:" >&5 12959 cat conftest.$ac_ext >&5 12960 fi 12961 rm -rf conftest* conftst* 12962 12963 # Do not use the global_symbol_pipe unless it works. 12964 if test yes = "$pipe_works"; then 12965 break 12966 else 12967 lt_cv_sys_global_symbol_pipe= 12968 fi 12969done 12970 12971fi 12972 12973if test -z "$lt_cv_sys_global_symbol_pipe"; then 12974 lt_cv_sys_global_symbol_to_cdecl= 12975fi 12976if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12978$as_echo "failed" >&6; } 12979else 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12981$as_echo "ok" >&6; } 12982fi 12983 12984# Response file support. 12985if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12986 nm_file_list_spec='@' 12987elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12988 nm_file_list_spec='@' 12989fi 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13028$as_echo_n "checking for sysroot... " >&6; } 13029 13030# Check whether --with-sysroot was given. 13031if test "${with_sysroot+set}" = set; then : 13032 withval=$with_sysroot; 13033else 13034 with_sysroot=no 13035fi 13036 13037 13038lt_sysroot= 13039case $with_sysroot in #( 13040 yes) 13041 if test yes = "$GCC"; then 13042 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13043 fi 13044 ;; #( 13045 /*) 13046 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13047 ;; #( 13048 no|'') 13049 ;; #( 13050 *) 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13052$as_echo "$with_sysroot" >&6; } 13053 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13054 ;; 13055esac 13056 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13058$as_echo "${lt_sysroot:-no}" >&6; } 13059 13060 13061 13062 13063 13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13065$as_echo_n "checking for a working dd... " >&6; } 13066if ${ac_cv_path_lt_DD+:} false; then : 13067 $as_echo_n "(cached) " >&6 13068else 13069 printf 0123456789abcdef0123456789abcdef >conftest.i 13070cat conftest.i conftest.i >conftest2.i 13071: ${lt_DD:=$DD} 13072if test -z "$lt_DD"; then 13073 ac_path_lt_DD_found=false 13074 # Loop through the user's path and test for each of PROGNAME-LIST 13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13076for as_dir in $PATH 13077do 13078 IFS=$as_save_IFS 13079 test -z "$as_dir" && as_dir=. 13080 for ac_prog in dd; do 13081 for ac_exec_ext in '' $ac_executable_extensions; do 13082 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13083 as_fn_executable_p "$ac_path_lt_DD" || continue 13084if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13085 cmp -s conftest.i conftest.out \ 13086 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13087fi 13088 $ac_path_lt_DD_found && break 3 13089 done 13090 done 13091 done 13092IFS=$as_save_IFS 13093 if test -z "$ac_cv_path_lt_DD"; then 13094 : 13095 fi 13096else 13097 ac_cv_path_lt_DD=$lt_DD 13098fi 13099 13100rm -f conftest.i conftest2.i conftest.out 13101fi 13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13103$as_echo "$ac_cv_path_lt_DD" >&6; } 13104 13105 13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13107$as_echo_n "checking how to truncate binary pipes... " >&6; } 13108if ${lt_cv_truncate_bin+:} false; then : 13109 $as_echo_n "(cached) " >&6 13110else 13111 printf 0123456789abcdef0123456789abcdef >conftest.i 13112cat conftest.i conftest.i >conftest2.i 13113lt_cv_truncate_bin= 13114if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13115 cmp -s conftest.i conftest.out \ 13116 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13117fi 13118rm -f conftest.i conftest2.i conftest.out 13119test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13120fi 13121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13122$as_echo "$lt_cv_truncate_bin" >&6; } 13123 13124 13125 13126 13127 13128 13129 13130# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13131func_cc_basename () 13132{ 13133 for cc_temp in $*""; do 13134 case $cc_temp in 13135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13137 \-*) ;; 13138 *) break;; 13139 esac 13140 done 13141 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13142} 13143 13144# Check whether --enable-libtool-lock was given. 13145if test "${enable_libtool_lock+set}" = set; then : 13146 enableval=$enable_libtool_lock; 13147fi 13148 13149test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13150 13151# Some flags need to be propagated to the compiler or linker for good 13152# libtool support. 13153case $host in 13154ia64-*-hpux*) 13155 # Find out what ABI is being produced by ac_compile, and set mode 13156 # options accordingly. 13157 echo 'int i;' > conftest.$ac_ext 13158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13159 (eval $ac_compile) 2>&5 13160 ac_status=$? 13161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13162 test $ac_status = 0; }; then 13163 case `/usr/bin/file conftest.$ac_objext` in 13164 *ELF-32*) 13165 HPUX_IA64_MODE=32 13166 ;; 13167 *ELF-64*) 13168 HPUX_IA64_MODE=64 13169 ;; 13170 esac 13171 fi 13172 rm -rf conftest* 13173 ;; 13174*-*-irix6*) 13175 # Find out what ABI is being produced by ac_compile, and set linker 13176 # options accordingly. 13177 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13179 (eval $ac_compile) 2>&5 13180 ac_status=$? 13181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13182 test $ac_status = 0; }; then 13183 if test yes = "$lt_cv_prog_gnu_ld"; then 13184 case `/usr/bin/file conftest.$ac_objext` in 13185 *32-bit*) 13186 LD="${LD-ld} -melf32bsmip" 13187 ;; 13188 *N32*) 13189 LD="${LD-ld} -melf32bmipn32" 13190 ;; 13191 *64-bit*) 13192 LD="${LD-ld} -melf64bmip" 13193 ;; 13194 esac 13195 else 13196 case `/usr/bin/file conftest.$ac_objext` in 13197 *32-bit*) 13198 LD="${LD-ld} -32" 13199 ;; 13200 *N32*) 13201 LD="${LD-ld} -n32" 13202 ;; 13203 *64-bit*) 13204 LD="${LD-ld} -64" 13205 ;; 13206 esac 13207 fi 13208 fi 13209 rm -rf conftest* 13210 ;; 13211 13212mips64*-*linux*) 13213 # Find out what ABI is being produced by ac_compile, and set linker 13214 # options accordingly. 13215 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13217 (eval $ac_compile) 2>&5 13218 ac_status=$? 13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13220 test $ac_status = 0; }; then 13221 emul=elf 13222 case `/usr/bin/file conftest.$ac_objext` in 13223 *32-bit*) 13224 emul="${emul}32" 13225 ;; 13226 *64-bit*) 13227 emul="${emul}64" 13228 ;; 13229 esac 13230 case `/usr/bin/file conftest.$ac_objext` in 13231 *MSB*) 13232 emul="${emul}btsmip" 13233 ;; 13234 *LSB*) 13235 emul="${emul}ltsmip" 13236 ;; 13237 esac 13238 case `/usr/bin/file conftest.$ac_objext` in 13239 *N32*) 13240 emul="${emul}n32" 13241 ;; 13242 esac 13243 LD="${LD-ld} -m $emul" 13244 fi 13245 rm -rf conftest* 13246 ;; 13247 13248x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13249s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13250 # Find out what ABI is being produced by ac_compile, and set linker 13251 # options accordingly. Note that the listed cases only cover the 13252 # situations where additional linker options are needed (such as when 13253 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13254 # vice versa); the common cases where no linker options are needed do 13255 # not appear in the list. 13256 echo 'int i;' > conftest.$ac_ext 13257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13258 (eval $ac_compile) 2>&5 13259 ac_status=$? 13260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13261 test $ac_status = 0; }; then 13262 case `/usr/bin/file conftest.o` in 13263 *32-bit*) 13264 case $host in 13265 x86_64-*kfreebsd*-gnu) 13266 LD="${LD-ld} -m elf_i386_fbsd" 13267 ;; 13268 x86_64-*linux*) 13269 case `/usr/bin/file conftest.o` in 13270 *x86-64*) 13271 LD="${LD-ld} -m elf32_x86_64" 13272 ;; 13273 *) 13274 LD="${LD-ld} -m elf_i386" 13275 ;; 13276 esac 13277 ;; 13278 powerpc64le-*linux*) 13279 LD="${LD-ld} -m elf32lppclinux" 13280 ;; 13281 powerpc64-*linux*) 13282 LD="${LD-ld} -m elf32ppclinux" 13283 ;; 13284 s390x-*linux*) 13285 LD="${LD-ld} -m elf_s390" 13286 ;; 13287 sparc64-*linux*) 13288 LD="${LD-ld} -m elf32_sparc" 13289 ;; 13290 esac 13291 ;; 13292 *64-bit*) 13293 case $host in 13294 x86_64-*kfreebsd*-gnu) 13295 LD="${LD-ld} -m elf_x86_64_fbsd" 13296 ;; 13297 x86_64-*linux*) 13298 LD="${LD-ld} -m elf_x86_64" 13299 ;; 13300 powerpcle-*linux*) 13301 LD="${LD-ld} -m elf64lppc" 13302 ;; 13303 powerpc-*linux*) 13304 LD="${LD-ld} -m elf64ppc" 13305 ;; 13306 s390*-*linux*|s390*-*tpf*) 13307 LD="${LD-ld} -m elf64_s390" 13308 ;; 13309 sparc*-*linux*) 13310 LD="${LD-ld} -m elf64_sparc" 13311 ;; 13312 esac 13313 ;; 13314 esac 13315 fi 13316 rm -rf conftest* 13317 ;; 13318 13319*-*-sco3.2v5*) 13320 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13321 SAVE_CFLAGS=$CFLAGS 13322 CFLAGS="$CFLAGS -belf" 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13324$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13325if ${lt_cv_cc_needs_belf+:} false; then : 13326 $as_echo_n "(cached) " >&6 13327else 13328 ac_ext=c 13329ac_cpp='$CPP $CPPFLAGS' 13330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13332ac_compiler_gnu=$ac_cv_c_compiler_gnu 13333 13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336 13337int 13338main () 13339{ 13340 13341 ; 13342 return 0; 13343} 13344_ACEOF 13345if ac_fn_c_try_link "$LINENO"; then : 13346 lt_cv_cc_needs_belf=yes 13347else 13348 lt_cv_cc_needs_belf=no 13349fi 13350rm -f core conftest.err conftest.$ac_objext \ 13351 conftest$ac_exeext conftest.$ac_ext 13352 ac_ext=c 13353ac_cpp='$CPP $CPPFLAGS' 13354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13356ac_compiler_gnu=$ac_cv_c_compiler_gnu 13357 13358fi 13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13360$as_echo "$lt_cv_cc_needs_belf" >&6; } 13361 if test yes != "$lt_cv_cc_needs_belf"; then 13362 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13363 CFLAGS=$SAVE_CFLAGS 13364 fi 13365 ;; 13366*-*solaris*) 13367 # Find out what ABI is being produced by ac_compile, and set linker 13368 # options accordingly. 13369 echo 'int i;' > conftest.$ac_ext 13370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13371 (eval $ac_compile) 2>&5 13372 ac_status=$? 13373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13374 test $ac_status = 0; }; then 13375 case `/usr/bin/file conftest.o` in 13376 *64-bit*) 13377 case $lt_cv_prog_gnu_ld in 13378 yes*) 13379 case $host in 13380 i?86-*-solaris*|x86_64-*-solaris*) 13381 LD="${LD-ld} -m elf_x86_64" 13382 ;; 13383 sparc*-*-solaris*) 13384 LD="${LD-ld} -m elf64_sparc" 13385 ;; 13386 esac 13387 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13388 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13389 LD=${LD-ld}_sol2 13390 fi 13391 ;; 13392 *) 13393 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13394 LD="${LD-ld} -64" 13395 fi 13396 ;; 13397 esac 13398 ;; 13399 esac 13400 fi 13401 rm -rf conftest* 13402 ;; 13403esac 13404 13405need_locks=$enable_libtool_lock 13406 13407if test -n "$ac_tool_prefix"; then 13408 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13409set dummy ${ac_tool_prefix}mt; ac_word=$2 13410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13411$as_echo_n "checking for $ac_word... " >&6; } 13412if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13413 $as_echo_n "(cached) " >&6 13414else 13415 if test -n "$MANIFEST_TOOL"; then 13416 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13417else 13418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13419for as_dir in $PATH 13420do 13421 IFS=$as_save_IFS 13422 test -z "$as_dir" && as_dir=. 13423 for ac_exec_ext in '' $ac_executable_extensions; do 13424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13425 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13427 break 2 13428 fi 13429done 13430 done 13431IFS=$as_save_IFS 13432 13433fi 13434fi 13435MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13436if test -n "$MANIFEST_TOOL"; then 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13438$as_echo "$MANIFEST_TOOL" >&6; } 13439else 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13441$as_echo "no" >&6; } 13442fi 13443 13444 13445fi 13446if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13447 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13448 # Extract the first word of "mt", so it can be a program name with args. 13449set dummy mt; ac_word=$2 13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13451$as_echo_n "checking for $ac_word... " >&6; } 13452if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13453 $as_echo_n "(cached) " >&6 13454else 13455 if test -n "$ac_ct_MANIFEST_TOOL"; then 13456 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13457else 13458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13459for as_dir in $PATH 13460do 13461 IFS=$as_save_IFS 13462 test -z "$as_dir" && as_dir=. 13463 for ac_exec_ext in '' $ac_executable_extensions; do 13464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13465 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13467 break 2 13468 fi 13469done 13470 done 13471IFS=$as_save_IFS 13472 13473fi 13474fi 13475ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13476if test -n "$ac_ct_MANIFEST_TOOL"; then 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13478$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13479else 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13481$as_echo "no" >&6; } 13482fi 13483 13484 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13485 MANIFEST_TOOL=":" 13486 else 13487 case $cross_compiling:$ac_tool_warned in 13488yes:) 13489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13491ac_tool_warned=yes ;; 13492esac 13493 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13494 fi 13495else 13496 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13497fi 13498 13499test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13501$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13502if ${lt_cv_path_mainfest_tool+:} false; then : 13503 $as_echo_n "(cached) " >&6 13504else 13505 lt_cv_path_mainfest_tool=no 13506 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13507 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13508 cat conftest.err >&5 13509 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13510 lt_cv_path_mainfest_tool=yes 13511 fi 13512 rm -f conftest* 13513fi 13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13515$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13516if test yes != "$lt_cv_path_mainfest_tool"; then 13517 MANIFEST_TOOL=: 13518fi 13519 13520 13521 13522 13523 13524 13525 case $host_os in 13526 rhapsody* | darwin*) 13527 if test -n "$ac_tool_prefix"; then 13528 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13529set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13531$as_echo_n "checking for $ac_word... " >&6; } 13532if ${ac_cv_prog_DSYMUTIL+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534else 13535 if test -n "$DSYMUTIL"; then 13536 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13537else 13538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13539for as_dir in $PATH 13540do 13541 IFS=$as_save_IFS 13542 test -z "$as_dir" && as_dir=. 13543 for ac_exec_ext in '' $ac_executable_extensions; do 13544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13545 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13547 break 2 13548 fi 13549done 13550 done 13551IFS=$as_save_IFS 13552 13553fi 13554fi 13555DSYMUTIL=$ac_cv_prog_DSYMUTIL 13556if test -n "$DSYMUTIL"; then 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13558$as_echo "$DSYMUTIL" >&6; } 13559else 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13561$as_echo "no" >&6; } 13562fi 13563 13564 13565fi 13566if test -z "$ac_cv_prog_DSYMUTIL"; then 13567 ac_ct_DSYMUTIL=$DSYMUTIL 13568 # Extract the first word of "dsymutil", so it can be a program name with args. 13569set dummy dsymutil; ac_word=$2 13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13571$as_echo_n "checking for $ac_word... " >&6; } 13572if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13573 $as_echo_n "(cached) " >&6 13574else 13575 if test -n "$ac_ct_DSYMUTIL"; then 13576 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13577else 13578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13579for as_dir in $PATH 13580do 13581 IFS=$as_save_IFS 13582 test -z "$as_dir" && as_dir=. 13583 for ac_exec_ext in '' $ac_executable_extensions; do 13584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13585 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13587 break 2 13588 fi 13589done 13590 done 13591IFS=$as_save_IFS 13592 13593fi 13594fi 13595ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13596if test -n "$ac_ct_DSYMUTIL"; then 13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13598$as_echo "$ac_ct_DSYMUTIL" >&6; } 13599else 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13601$as_echo "no" >&6; } 13602fi 13603 13604 if test "x$ac_ct_DSYMUTIL" = x; then 13605 DSYMUTIL=":" 13606 else 13607 case $cross_compiling:$ac_tool_warned in 13608yes:) 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13611ac_tool_warned=yes ;; 13612esac 13613 DSYMUTIL=$ac_ct_DSYMUTIL 13614 fi 13615else 13616 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13617fi 13618 13619 if test -n "$ac_tool_prefix"; then 13620 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13621set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13623$as_echo_n "checking for $ac_word... " >&6; } 13624if ${ac_cv_prog_NMEDIT+:} false; then : 13625 $as_echo_n "(cached) " >&6 13626else 13627 if test -n "$NMEDIT"; then 13628 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13629else 13630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13631for as_dir in $PATH 13632do 13633 IFS=$as_save_IFS 13634 test -z "$as_dir" && as_dir=. 13635 for ac_exec_ext in '' $ac_executable_extensions; do 13636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13637 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13639 break 2 13640 fi 13641done 13642 done 13643IFS=$as_save_IFS 13644 13645fi 13646fi 13647NMEDIT=$ac_cv_prog_NMEDIT 13648if test -n "$NMEDIT"; then 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13650$as_echo "$NMEDIT" >&6; } 13651else 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13653$as_echo "no" >&6; } 13654fi 13655 13656 13657fi 13658if test -z "$ac_cv_prog_NMEDIT"; then 13659 ac_ct_NMEDIT=$NMEDIT 13660 # Extract the first word of "nmedit", so it can be a program name with args. 13661set dummy nmedit; ac_word=$2 13662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13663$as_echo_n "checking for $ac_word... " >&6; } 13664if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13665 $as_echo_n "(cached) " >&6 13666else 13667 if test -n "$ac_ct_NMEDIT"; then 13668 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13669else 13670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13671for as_dir in $PATH 13672do 13673 IFS=$as_save_IFS 13674 test -z "$as_dir" && as_dir=. 13675 for ac_exec_ext in '' $ac_executable_extensions; do 13676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13677 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13679 break 2 13680 fi 13681done 13682 done 13683IFS=$as_save_IFS 13684 13685fi 13686fi 13687ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13688if test -n "$ac_ct_NMEDIT"; then 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13690$as_echo "$ac_ct_NMEDIT" >&6; } 13691else 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13693$as_echo "no" >&6; } 13694fi 13695 13696 if test "x$ac_ct_NMEDIT" = x; then 13697 NMEDIT=":" 13698 else 13699 case $cross_compiling:$ac_tool_warned in 13700yes:) 13701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13703ac_tool_warned=yes ;; 13704esac 13705 NMEDIT=$ac_ct_NMEDIT 13706 fi 13707else 13708 NMEDIT="$ac_cv_prog_NMEDIT" 13709fi 13710 13711 if test -n "$ac_tool_prefix"; then 13712 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13713set dummy ${ac_tool_prefix}lipo; ac_word=$2 13714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13715$as_echo_n "checking for $ac_word... " >&6; } 13716if ${ac_cv_prog_LIPO+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718else 13719 if test -n "$LIPO"; then 13720 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13721else 13722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13723for as_dir in $PATH 13724do 13725 IFS=$as_save_IFS 13726 test -z "$as_dir" && as_dir=. 13727 for ac_exec_ext in '' $ac_executable_extensions; do 13728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13729 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13731 break 2 13732 fi 13733done 13734 done 13735IFS=$as_save_IFS 13736 13737fi 13738fi 13739LIPO=$ac_cv_prog_LIPO 13740if test -n "$LIPO"; then 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13742$as_echo "$LIPO" >&6; } 13743else 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13745$as_echo "no" >&6; } 13746fi 13747 13748 13749fi 13750if test -z "$ac_cv_prog_LIPO"; then 13751 ac_ct_LIPO=$LIPO 13752 # Extract the first word of "lipo", so it can be a program name with args. 13753set dummy lipo; ac_word=$2 13754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13755$as_echo_n "checking for $ac_word... " >&6; } 13756if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13757 $as_echo_n "(cached) " >&6 13758else 13759 if test -n "$ac_ct_LIPO"; then 13760 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13761else 13762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13763for as_dir in $PATH 13764do 13765 IFS=$as_save_IFS 13766 test -z "$as_dir" && as_dir=. 13767 for ac_exec_ext in '' $ac_executable_extensions; do 13768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13769 ac_cv_prog_ac_ct_LIPO="lipo" 13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13771 break 2 13772 fi 13773done 13774 done 13775IFS=$as_save_IFS 13776 13777fi 13778fi 13779ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13780if test -n "$ac_ct_LIPO"; then 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13782$as_echo "$ac_ct_LIPO" >&6; } 13783else 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13785$as_echo "no" >&6; } 13786fi 13787 13788 if test "x$ac_ct_LIPO" = x; then 13789 LIPO=":" 13790 else 13791 case $cross_compiling:$ac_tool_warned in 13792yes:) 13793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13795ac_tool_warned=yes ;; 13796esac 13797 LIPO=$ac_ct_LIPO 13798 fi 13799else 13800 LIPO="$ac_cv_prog_LIPO" 13801fi 13802 13803 if test -n "$ac_tool_prefix"; then 13804 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13805set dummy ${ac_tool_prefix}otool; ac_word=$2 13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13807$as_echo_n "checking for $ac_word... " >&6; } 13808if ${ac_cv_prog_OTOOL+:} false; then : 13809 $as_echo_n "(cached) " >&6 13810else 13811 if test -n "$OTOOL"; then 13812 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13813else 13814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13815for as_dir in $PATH 13816do 13817 IFS=$as_save_IFS 13818 test -z "$as_dir" && as_dir=. 13819 for ac_exec_ext in '' $ac_executable_extensions; do 13820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13821 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13823 break 2 13824 fi 13825done 13826 done 13827IFS=$as_save_IFS 13828 13829fi 13830fi 13831OTOOL=$ac_cv_prog_OTOOL 13832if test -n "$OTOOL"; then 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13834$as_echo "$OTOOL" >&6; } 13835else 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13837$as_echo "no" >&6; } 13838fi 13839 13840 13841fi 13842if test -z "$ac_cv_prog_OTOOL"; then 13843 ac_ct_OTOOL=$OTOOL 13844 # Extract the first word of "otool", so it can be a program name with args. 13845set dummy otool; ac_word=$2 13846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13847$as_echo_n "checking for $ac_word... " >&6; } 13848if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13849 $as_echo_n "(cached) " >&6 13850else 13851 if test -n "$ac_ct_OTOOL"; then 13852 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13853else 13854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13855for as_dir in $PATH 13856do 13857 IFS=$as_save_IFS 13858 test -z "$as_dir" && as_dir=. 13859 for ac_exec_ext in '' $ac_executable_extensions; do 13860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13861 ac_cv_prog_ac_ct_OTOOL="otool" 13862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13863 break 2 13864 fi 13865done 13866 done 13867IFS=$as_save_IFS 13868 13869fi 13870fi 13871ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13872if test -n "$ac_ct_OTOOL"; then 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13874$as_echo "$ac_ct_OTOOL" >&6; } 13875else 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13877$as_echo "no" >&6; } 13878fi 13879 13880 if test "x$ac_ct_OTOOL" = x; then 13881 OTOOL=":" 13882 else 13883 case $cross_compiling:$ac_tool_warned in 13884yes:) 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13887ac_tool_warned=yes ;; 13888esac 13889 OTOOL=$ac_ct_OTOOL 13890 fi 13891else 13892 OTOOL="$ac_cv_prog_OTOOL" 13893fi 13894 13895 if test -n "$ac_tool_prefix"; then 13896 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13897set dummy ${ac_tool_prefix}otool64; ac_word=$2 13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13899$as_echo_n "checking for $ac_word... " >&6; } 13900if ${ac_cv_prog_OTOOL64+:} false; then : 13901 $as_echo_n "(cached) " >&6 13902else 13903 if test -n "$OTOOL64"; then 13904 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13905else 13906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13907for as_dir in $PATH 13908do 13909 IFS=$as_save_IFS 13910 test -z "$as_dir" && as_dir=. 13911 for ac_exec_ext in '' $ac_executable_extensions; do 13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13913 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13915 break 2 13916 fi 13917done 13918 done 13919IFS=$as_save_IFS 13920 13921fi 13922fi 13923OTOOL64=$ac_cv_prog_OTOOL64 13924if test -n "$OTOOL64"; then 13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13926$as_echo "$OTOOL64" >&6; } 13927else 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13929$as_echo "no" >&6; } 13930fi 13931 13932 13933fi 13934if test -z "$ac_cv_prog_OTOOL64"; then 13935 ac_ct_OTOOL64=$OTOOL64 13936 # Extract the first word of "otool64", so it can be a program name with args. 13937set dummy otool64; ac_word=$2 13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13939$as_echo_n "checking for $ac_word... " >&6; } 13940if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13941 $as_echo_n "(cached) " >&6 13942else 13943 if test -n "$ac_ct_OTOOL64"; then 13944 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13945else 13946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13947for as_dir in $PATH 13948do 13949 IFS=$as_save_IFS 13950 test -z "$as_dir" && as_dir=. 13951 for ac_exec_ext in '' $ac_executable_extensions; do 13952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13953 ac_cv_prog_ac_ct_OTOOL64="otool64" 13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13955 break 2 13956 fi 13957done 13958 done 13959IFS=$as_save_IFS 13960 13961fi 13962fi 13963ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13964if test -n "$ac_ct_OTOOL64"; then 13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13966$as_echo "$ac_ct_OTOOL64" >&6; } 13967else 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13969$as_echo "no" >&6; } 13970fi 13971 13972 if test "x$ac_ct_OTOOL64" = x; then 13973 OTOOL64=":" 13974 else 13975 case $cross_compiling:$ac_tool_warned in 13976yes:) 13977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13979ac_tool_warned=yes ;; 13980esac 13981 OTOOL64=$ac_ct_OTOOL64 13982 fi 13983else 13984 OTOOL64="$ac_cv_prog_OTOOL64" 13985fi 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14014$as_echo_n "checking for -single_module linker flag... " >&6; } 14015if ${lt_cv_apple_cc_single_mod+:} false; then : 14016 $as_echo_n "(cached) " >&6 14017else 14018 lt_cv_apple_cc_single_mod=no 14019 if test -z "$LT_MULTI_MODULE"; then 14020 # By default we will add the -single_module flag. You can override 14021 # by either setting the environment variable LT_MULTI_MODULE 14022 # non-empty at configure time, or by adding -multi_module to the 14023 # link flags. 14024 rm -rf libconftest.dylib* 14025 echo "int foo(void){return 1;}" > conftest.c 14026 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14027-dynamiclib -Wl,-single_module conftest.c" >&5 14028 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14029 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14030 _lt_result=$? 14031 # If there is a non-empty error log, and "single_module" 14032 # appears in it, assume the flag caused a linker warning 14033 if test -s conftest.err && $GREP single_module conftest.err; then 14034 cat conftest.err >&5 14035 # Otherwise, if the output was created with a 0 exit code from 14036 # the compiler, it worked. 14037 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14038 lt_cv_apple_cc_single_mod=yes 14039 else 14040 cat conftest.err >&5 14041 fi 14042 rm -rf libconftest.dylib* 14043 rm -f conftest.* 14044 fi 14045fi 14046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14047$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14048 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14050$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14051if ${lt_cv_ld_exported_symbols_list+:} false; then : 14052 $as_echo_n "(cached) " >&6 14053else 14054 lt_cv_ld_exported_symbols_list=no 14055 save_LDFLAGS=$LDFLAGS 14056 echo "_main" > conftest.sym 14057 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14059/* end confdefs.h. */ 14060 14061int 14062main () 14063{ 14064 14065 ; 14066 return 0; 14067} 14068_ACEOF 14069if ac_fn_c_try_link "$LINENO"; then : 14070 lt_cv_ld_exported_symbols_list=yes 14071else 14072 lt_cv_ld_exported_symbols_list=no 14073fi 14074rm -f core conftest.err conftest.$ac_objext \ 14075 conftest$ac_exeext conftest.$ac_ext 14076 LDFLAGS=$save_LDFLAGS 14077 14078fi 14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14080$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14081 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14083$as_echo_n "checking for -force_load linker flag... " >&6; } 14084if ${lt_cv_ld_force_load+:} false; then : 14085 $as_echo_n "(cached) " >&6 14086else 14087 lt_cv_ld_force_load=no 14088 cat > conftest.c << _LT_EOF 14089int forced_loaded() { return 2;} 14090_LT_EOF 14091 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14092 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14093 echo "$AR cru libconftest.a conftest.o" >&5 14094 $AR cru libconftest.a conftest.o 2>&5 14095 echo "$RANLIB libconftest.a" >&5 14096 $RANLIB libconftest.a 2>&5 14097 cat > conftest.c << _LT_EOF 14098int main() { return 0;} 14099_LT_EOF 14100 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14101 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14102 _lt_result=$? 14103 if test -s conftest.err && $GREP force_load conftest.err; then 14104 cat conftest.err >&5 14105 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14106 lt_cv_ld_force_load=yes 14107 else 14108 cat conftest.err >&5 14109 fi 14110 rm -f conftest.err libconftest.a conftest conftest.c 14111 rm -rf conftest.dSYM 14112 14113fi 14114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14115$as_echo "$lt_cv_ld_force_load" >&6; } 14116 case $host_os in 14117 rhapsody* | darwin1.[012]) 14118 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14119 darwin1.*) 14120 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14121 darwin*) # darwin 5.x on 14122 # if running on 10.5 or later, the deployment target defaults 14123 # to the OS version, if on x86, and 10.4, the deployment 14124 # target defaults to 10.4. Don't you love it? 14125 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14126 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14127 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14128 10.[012][,.]*) 14129 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14130 10.*) 14131 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14132 esac 14133 ;; 14134 esac 14135 if test yes = "$lt_cv_apple_cc_single_mod"; then 14136 _lt_dar_single_mod='$single_module' 14137 fi 14138 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14139 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14140 else 14141 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14142 fi 14143 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14144 _lt_dsymutil='~$DSYMUTIL $lib || :' 14145 else 14146 _lt_dsymutil= 14147 fi 14148 ;; 14149 esac 14150 14151# func_munge_path_list VARIABLE PATH 14152# ----------------------------------- 14153# VARIABLE is name of variable containing _space_ separated list of 14154# directories to be munged by the contents of PATH, which is string 14155# having a format: 14156# "DIR[:DIR]:" 14157# string "DIR[ DIR]" will be prepended to VARIABLE 14158# ":DIR[:DIR]" 14159# string "DIR[ DIR]" will be appended to VARIABLE 14160# "DIRP[:DIRP]::[DIRA:]DIRA" 14161# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14162# "DIRA[ DIRA]" will be appended to VARIABLE 14163# "DIR[:DIR]" 14164# VARIABLE will be replaced by "DIR[ DIR]" 14165func_munge_path_list () 14166{ 14167 case x$2 in 14168 x) 14169 ;; 14170 *:) 14171 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14172 ;; 14173 x:*) 14174 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14175 ;; 14176 *::*) 14177 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14178 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14179 ;; 14180 *) 14181 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14182 ;; 14183 esac 14184} 14185 14186for ac_header in dlfcn.h 14187do : 14188 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14189" 14190if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14191 cat >>confdefs.h <<_ACEOF 14192#define HAVE_DLFCN_H 1 14193_ACEOF 14194 14195fi 14196 14197done 14198 14199 14200 14201 14202 14203# Set options 14204 14205 14206 14207 enable_dlopen=no 14208 14209 14210 enable_win32_dll=no 14211 14212 14213 # Check whether --enable-shared was given. 14214if test "${enable_shared+set}" = set; then : 14215 enableval=$enable_shared; p=${PACKAGE-default} 14216 case $enableval in 14217 yes) enable_shared=yes ;; 14218 no) enable_shared=no ;; 14219 *) 14220 enable_shared=no 14221 # Look at the argument we got. We use all the common list separators. 14222 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14223 for pkg in $enableval; do 14224 IFS=$lt_save_ifs 14225 if test "X$pkg" = "X$p"; then 14226 enable_shared=yes 14227 fi 14228 done 14229 IFS=$lt_save_ifs 14230 ;; 14231 esac 14232else 14233 enable_shared=yes 14234fi 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246# Check whether --with-pic was given. 14247if test "${with_pic+set}" = set; then : 14248 withval=$with_pic; lt_p=${PACKAGE-default} 14249 case $withval in 14250 yes|no) pic_mode=$withval ;; 14251 *) 14252 pic_mode=default 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 lt_pkg in $withval; do 14256 IFS=$lt_save_ifs 14257 if test "X$lt_pkg" = "X$lt_p"; then 14258 pic_mode=yes 14259 fi 14260 done 14261 IFS=$lt_save_ifs 14262 ;; 14263 esac 14264else 14265 pic_mode=default 14266fi 14267 14268 14269 14270 14271 14272 14273 14274 14275 # Check whether --enable-fast-install was given. 14276if test "${enable_fast_install+set}" = set; then : 14277 enableval=$enable_fast_install; p=${PACKAGE-default} 14278 case $enableval in 14279 yes) enable_fast_install=yes ;; 14280 no) enable_fast_install=no ;; 14281 *) 14282 enable_fast_install=no 14283 # Look at the argument we got. We use all the common list separators. 14284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14285 for pkg in $enableval; do 14286 IFS=$lt_save_ifs 14287 if test "X$pkg" = "X$p"; then 14288 enable_fast_install=yes 14289 fi 14290 done 14291 IFS=$lt_save_ifs 14292 ;; 14293 esac 14294else 14295 enable_fast_install=yes 14296fi 14297 14298 14299 14300 14301 14302 14303 14304 14305 shared_archive_member_spec= 14306case $host,$enable_shared in 14307power*-*-aix[5-9]*,yes) 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14309$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14310 14311# Check whether --with-aix-soname was given. 14312if test "${with_aix_soname+set}" = set; then : 14313 withval=$with_aix_soname; case $withval in 14314 aix|svr4|both) 14315 ;; 14316 *) 14317 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14318 ;; 14319 esac 14320 lt_cv_with_aix_soname=$with_aix_soname 14321else 14322 if ${lt_cv_with_aix_soname+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324else 14325 lt_cv_with_aix_soname=aix 14326fi 14327 14328 with_aix_soname=$lt_cv_with_aix_soname 14329fi 14330 14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14332$as_echo "$with_aix_soname" >&6; } 14333 if test aix != "$with_aix_soname"; then 14334 # For the AIX way of multilib, we name the shared archive member 14335 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14336 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14337 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14338 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14339 if test 64 = "${OBJECT_MODE-32}"; then 14340 shared_archive_member_spec=shr_64 14341 else 14342 shared_archive_member_spec=shr 14343 fi 14344 fi 14345 ;; 14346*) 14347 with_aix_soname=aix 14348 ;; 14349esac 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360# This can be used to rebuild libtool when needed 14361LIBTOOL_DEPS=$ltmain 14362 14363# Always use our own libtool. 14364LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395test -z "$LN_S" && LN_S="ln -s" 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410if test -n "${ZSH_VERSION+set}"; then 14411 setopt NO_GLOB_SUBST 14412fi 14413 14414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14415$as_echo_n "checking for objdir... " >&6; } 14416if ${lt_cv_objdir+:} false; then : 14417 $as_echo_n "(cached) " >&6 14418else 14419 rm -f .libs 2>/dev/null 14420mkdir .libs 2>/dev/null 14421if test -d .libs; then 14422 lt_cv_objdir=.libs 14423else 14424 # MS-DOS does not allow filenames that begin with a dot. 14425 lt_cv_objdir=_libs 14426fi 14427rmdir .libs 2>/dev/null 14428fi 14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14430$as_echo "$lt_cv_objdir" >&6; } 14431objdir=$lt_cv_objdir 14432 14433 14434 14435 14436 14437cat >>confdefs.h <<_ACEOF 14438#define LT_OBJDIR "$lt_cv_objdir/" 14439_ACEOF 14440 14441 14442 14443 14444case $host_os in 14445aix3*) 14446 # AIX sometimes has problems with the GCC collect2 program. For some 14447 # reason, if we set the COLLECT_NAMES environment variable, the problems 14448 # vanish in a puff of smoke. 14449 if test set != "${COLLECT_NAMES+set}"; then 14450 COLLECT_NAMES= 14451 export COLLECT_NAMES 14452 fi 14453 ;; 14454esac 14455 14456# Global variables: 14457ofile=libtool 14458can_build_shared=yes 14459 14460# All known linkers require a '.a' archive for static linking (except MSVC, 14461# which needs '.lib'). 14462libext=a 14463 14464with_gnu_ld=$lt_cv_prog_gnu_ld 14465 14466old_CC=$CC 14467old_CFLAGS=$CFLAGS 14468 14469# Set sane defaults for various variables 14470test -z "$CC" && CC=cc 14471test -z "$LTCC" && LTCC=$CC 14472test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14473test -z "$LD" && LD=ld 14474test -z "$ac_objext" && ac_objext=o 14475 14476func_cc_basename $compiler 14477cc_basename=$func_cc_basename_result 14478 14479 14480# Only perform the check for file, if the check method requires it 14481test -z "$MAGIC_CMD" && MAGIC_CMD=file 14482case $deplibs_check_method in 14483file_magic*) 14484 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14486$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14487if ${lt_cv_path_MAGIC_CMD+:} false; then : 14488 $as_echo_n "(cached) " >&6 14489else 14490 case $MAGIC_CMD in 14491[\\/*] | ?:[\\/]*) 14492 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14493 ;; 14494*) 14495 lt_save_MAGIC_CMD=$MAGIC_CMD 14496 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14498 for ac_dir in $ac_dummy; do 14499 IFS=$lt_save_ifs 14500 test -z "$ac_dir" && ac_dir=. 14501 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14502 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14503 if test -n "$file_magic_test_file"; then 14504 case $deplibs_check_method in 14505 "file_magic "*) 14506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14507 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14509 $EGREP "$file_magic_regex" > /dev/null; then 14510 : 14511 else 14512 cat <<_LT_EOF 1>&2 14513 14514*** Warning: the command libtool uses to detect shared libraries, 14515*** $file_magic_cmd, produces output that libtool cannot recognize. 14516*** The result is that libtool may fail to recognize shared libraries 14517*** as such. This will affect the creation of libtool libraries that 14518*** depend on shared libraries, but programs linked with such libtool 14519*** libraries will work regardless of this problem. Nevertheless, you 14520*** may want to report the problem to your system manager and/or to 14521*** bug-libtool@gnu.org 14522 14523_LT_EOF 14524 fi ;; 14525 esac 14526 fi 14527 break 14528 fi 14529 done 14530 IFS=$lt_save_ifs 14531 MAGIC_CMD=$lt_save_MAGIC_CMD 14532 ;; 14533esac 14534fi 14535 14536MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14537if test -n "$MAGIC_CMD"; then 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14539$as_echo "$MAGIC_CMD" >&6; } 14540else 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14542$as_echo "no" >&6; } 14543fi 14544 14545 14546 14547 14548 14549if test -z "$lt_cv_path_MAGIC_CMD"; then 14550 if test -n "$ac_tool_prefix"; then 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14552$as_echo_n "checking for file... " >&6; } 14553if ${lt_cv_path_MAGIC_CMD+:} false; then : 14554 $as_echo_n "(cached) " >&6 14555else 14556 case $MAGIC_CMD in 14557[\\/*] | ?:[\\/]*) 14558 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14559 ;; 14560*) 14561 lt_save_MAGIC_CMD=$MAGIC_CMD 14562 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14564 for ac_dir in $ac_dummy; do 14565 IFS=$lt_save_ifs 14566 test -z "$ac_dir" && ac_dir=. 14567 if test -f "$ac_dir/file"; then 14568 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14569 if test -n "$file_magic_test_file"; then 14570 case $deplibs_check_method in 14571 "file_magic "*) 14572 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14573 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14575 $EGREP "$file_magic_regex" > /dev/null; then 14576 : 14577 else 14578 cat <<_LT_EOF 1>&2 14579 14580*** Warning: the command libtool uses to detect shared libraries, 14581*** $file_magic_cmd, produces output that libtool cannot recognize. 14582*** The result is that libtool may fail to recognize shared libraries 14583*** as such. This will affect the creation of libtool libraries that 14584*** depend on shared libraries, but programs linked with such libtool 14585*** libraries will work regardless of this problem. Nevertheless, you 14586*** may want to report the problem to your system manager and/or to 14587*** bug-libtool@gnu.org 14588 14589_LT_EOF 14590 fi ;; 14591 esac 14592 fi 14593 break 14594 fi 14595 done 14596 IFS=$lt_save_ifs 14597 MAGIC_CMD=$lt_save_MAGIC_CMD 14598 ;; 14599esac 14600fi 14601 14602MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14603if test -n "$MAGIC_CMD"; then 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14605$as_echo "$MAGIC_CMD" >&6; } 14606else 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14608$as_echo "no" >&6; } 14609fi 14610 14611 14612 else 14613 MAGIC_CMD=: 14614 fi 14615fi 14616 14617 fi 14618 ;; 14619esac 14620 14621# Use C for the default configuration in the libtool script 14622 14623lt_save_CC=$CC 14624ac_ext=c 14625ac_cpp='$CPP $CPPFLAGS' 14626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14628ac_compiler_gnu=$ac_cv_c_compiler_gnu 14629 14630 14631# Source file extension for C test sources. 14632ac_ext=c 14633 14634# Object file extension for compiled C test sources. 14635objext=o 14636objext=$objext 14637 14638# Code to be used in simple compile tests 14639lt_simple_compile_test_code="int some_variable = 0;" 14640 14641# Code to be used in simple link tests 14642lt_simple_link_test_code='int main(){return(0);}' 14643 14644 14645 14646 14647 14648 14649 14650# If no C compiler was specified, use CC. 14651LTCC=${LTCC-"$CC"} 14652 14653# If no C compiler flags were specified, use CFLAGS. 14654LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14655 14656# Allow CC to be a program name with arguments. 14657compiler=$CC 14658 14659# Save the default compiler, since it gets overwritten when the other 14660# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14661compiler_DEFAULT=$CC 14662 14663# save warnings/boilerplate of simple test code 14664ac_outfile=conftest.$ac_objext 14665echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14666eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14667_lt_compiler_boilerplate=`cat conftest.err` 14668$RM conftest* 14669 14670ac_outfile=conftest.$ac_objext 14671echo "$lt_simple_link_test_code" >conftest.$ac_ext 14672eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14673_lt_linker_boilerplate=`cat conftest.err` 14674$RM -r conftest* 14675 14676 14677if test -n "$compiler"; then 14678 14679lt_prog_compiler_no_builtin_flag= 14680 14681if test yes = "$GCC"; then 14682 case $cc_basename in 14683 nvcc*) 14684 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14685 *) 14686 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14687 esac 14688 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14690$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14691if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 lt_cv_prog_compiler_rtti_exceptions=no 14695 ac_outfile=conftest.$ac_objext 14696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14697 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14698 # Insert the option either (1) after the last *FLAGS variable, or 14699 # (2) before a word containing "conftest.", or (3) at the end. 14700 # Note that $ac_compile itself does not contain backslashes and begins 14701 # with a dollar sign (not a hyphen), so the echo should work correctly. 14702 # The option is referenced via a variable to avoid confusing sed. 14703 lt_compile=`echo "$ac_compile" | $SED \ 14704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14706 -e 's:$: $lt_compiler_flag:'` 14707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14708 (eval "$lt_compile" 2>conftest.err) 14709 ac_status=$? 14710 cat conftest.err >&5 14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14712 if (exit $ac_status) && test -s "$ac_outfile"; then 14713 # The compiler can only warn and ignore the option if not recognized 14714 # So say no if there are warnings other than the usual output. 14715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14718 lt_cv_prog_compiler_rtti_exceptions=yes 14719 fi 14720 fi 14721 $RM conftest* 14722 14723fi 14724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14725$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14726 14727if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14728 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14729else 14730 : 14731fi 14732 14733fi 14734 14735 14736 14737 14738 14739 14740 lt_prog_compiler_wl= 14741lt_prog_compiler_pic= 14742lt_prog_compiler_static= 14743 14744 14745 if test yes = "$GCC"; then 14746 lt_prog_compiler_wl='-Wl,' 14747 lt_prog_compiler_static='-static' 14748 14749 case $host_os in 14750 aix*) 14751 # All AIX code is PIC. 14752 if test ia64 = "$host_cpu"; then 14753 # AIX 5 now supports IA64 processor 14754 lt_prog_compiler_static='-Bstatic' 14755 fi 14756 lt_prog_compiler_pic='-fPIC' 14757 ;; 14758 14759 amigaos*) 14760 case $host_cpu in 14761 powerpc) 14762 # see comment about AmigaOS4 .so support 14763 lt_prog_compiler_pic='-fPIC' 14764 ;; 14765 m68k) 14766 # FIXME: we need at least 68020 code to build shared libraries, but 14767 # adding the '-m68020' flag to GCC prevents building anything better, 14768 # like '-m68040'. 14769 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14770 ;; 14771 esac 14772 ;; 14773 14774 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14775 # PIC is the default for these OSes. 14776 ;; 14777 14778 mingw* | cygwin* | pw32* | os2* | cegcc*) 14779 # This hack is so that the source file can tell whether it is being 14780 # built for inclusion in a dll (and should export symbols for example). 14781 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14782 # (--disable-auto-import) libraries 14783 lt_prog_compiler_pic='-DDLL_EXPORT' 14784 case $host_os in 14785 os2*) 14786 lt_prog_compiler_static='$wl-static' 14787 ;; 14788 esac 14789 ;; 14790 14791 darwin* | rhapsody*) 14792 # PIC is the default on this platform 14793 # Common symbols not allowed in MH_DYLIB files 14794 lt_prog_compiler_pic='-fno-common' 14795 ;; 14796 14797 haiku*) 14798 # PIC is the default for Haiku. 14799 # The "-static" flag exists, but is broken. 14800 lt_prog_compiler_static= 14801 ;; 14802 14803 hpux*) 14804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14806 # sets the default TLS model and affects inlining. 14807 case $host_cpu in 14808 hppa*64*) 14809 # +Z the default 14810 ;; 14811 *) 14812 lt_prog_compiler_pic='-fPIC' 14813 ;; 14814 esac 14815 ;; 14816 14817 interix[3-9]*) 14818 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14819 # Instead, we relocate shared libraries at runtime. 14820 ;; 14821 14822 msdosdjgpp*) 14823 # Just because we use GCC doesn't mean we suddenly get shared libraries 14824 # on systems that don't support them. 14825 lt_prog_compiler_can_build_shared=no 14826 enable_shared=no 14827 ;; 14828 14829 *nto* | *qnx*) 14830 # QNX uses GNU C++, but need to define -shared option too, otherwise 14831 # it will coredump. 14832 lt_prog_compiler_pic='-fPIC -shared' 14833 ;; 14834 14835 sysv4*MP*) 14836 if test -d /usr/nec; then 14837 lt_prog_compiler_pic=-Kconform_pic 14838 fi 14839 ;; 14840 14841 *) 14842 lt_prog_compiler_pic='-fPIC' 14843 ;; 14844 esac 14845 14846 case $cc_basename in 14847 nvcc*) # Cuda Compiler Driver 2.2 14848 lt_prog_compiler_wl='-Xlinker ' 14849 if test -n "$lt_prog_compiler_pic"; then 14850 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14851 fi 14852 ;; 14853 esac 14854 else 14855 # PORTME Check for flag to pass linker flags through the system compiler. 14856 case $host_os in 14857 aix*) 14858 lt_prog_compiler_wl='-Wl,' 14859 if test ia64 = "$host_cpu"; then 14860 # AIX 5 now supports IA64 processor 14861 lt_prog_compiler_static='-Bstatic' 14862 else 14863 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14864 fi 14865 ;; 14866 14867 darwin* | rhapsody*) 14868 # PIC is the default on this platform 14869 # Common symbols not allowed in MH_DYLIB files 14870 lt_prog_compiler_pic='-fno-common' 14871 case $cc_basename in 14872 nagfor*) 14873 # NAG Fortran compiler 14874 lt_prog_compiler_wl='-Wl,-Wl,,' 14875 lt_prog_compiler_pic='-PIC' 14876 lt_prog_compiler_static='-Bstatic' 14877 ;; 14878 esac 14879 ;; 14880 14881 mingw* | cygwin* | pw32* | os2* | cegcc*) 14882 # This hack is so that the source file can tell whether it is being 14883 # built for inclusion in a dll (and should export symbols for example). 14884 lt_prog_compiler_pic='-DDLL_EXPORT' 14885 case $host_os in 14886 os2*) 14887 lt_prog_compiler_static='$wl-static' 14888 ;; 14889 esac 14890 ;; 14891 14892 hpux9* | hpux10* | hpux11*) 14893 lt_prog_compiler_wl='-Wl,' 14894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14895 # not for PA HP-UX. 14896 case $host_cpu in 14897 hppa*64*|ia64*) 14898 # +Z the default 14899 ;; 14900 *) 14901 lt_prog_compiler_pic='+Z' 14902 ;; 14903 esac 14904 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14905 lt_prog_compiler_static='$wl-a ${wl}archive' 14906 ;; 14907 14908 irix5* | irix6* | nonstopux*) 14909 lt_prog_compiler_wl='-Wl,' 14910 # PIC (with -KPIC) is the default. 14911 lt_prog_compiler_static='-non_shared' 14912 ;; 14913 14914 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14915 case $cc_basename in 14916 # old Intel for x86_64, which still supported -KPIC. 14917 ecc*) 14918 lt_prog_compiler_wl='-Wl,' 14919 lt_prog_compiler_pic='-KPIC' 14920 lt_prog_compiler_static='-static' 14921 ;; 14922 # icc used to be incompatible with GCC. 14923 # ICC 10 doesn't accept -KPIC any more. 14924 icc* | ifort*) 14925 lt_prog_compiler_wl='-Wl,' 14926 lt_prog_compiler_pic='-fPIC' 14927 lt_prog_compiler_static='-static' 14928 ;; 14929 # Lahey Fortran 8.1. 14930 lf95*) 14931 lt_prog_compiler_wl='-Wl,' 14932 lt_prog_compiler_pic='--shared' 14933 lt_prog_compiler_static='--static' 14934 ;; 14935 nagfor*) 14936 # NAG Fortran compiler 14937 lt_prog_compiler_wl='-Wl,-Wl,,' 14938 lt_prog_compiler_pic='-PIC' 14939 lt_prog_compiler_static='-Bstatic' 14940 ;; 14941 tcc*) 14942 # Fabrice Bellard et al's Tiny C Compiler 14943 lt_prog_compiler_wl='-Wl,' 14944 lt_prog_compiler_pic='-fPIC' 14945 lt_prog_compiler_static='-static' 14946 ;; 14947 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14948 # Portland Group compilers (*not* the Pentium gcc compiler, 14949 # which looks to be a dead project) 14950 lt_prog_compiler_wl='-Wl,' 14951 lt_prog_compiler_pic='-fpic' 14952 lt_prog_compiler_static='-Bstatic' 14953 ;; 14954 ccc*) 14955 lt_prog_compiler_wl='-Wl,' 14956 # All Alpha code is PIC. 14957 lt_prog_compiler_static='-non_shared' 14958 ;; 14959 xl* | bgxl* | bgf* | mpixl*) 14960 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14961 lt_prog_compiler_wl='-Wl,' 14962 lt_prog_compiler_pic='-qpic' 14963 lt_prog_compiler_static='-qstaticlink' 14964 ;; 14965 *) 14966 case `$CC -V 2>&1 | sed 5q` in 14967 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14968 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14969 lt_prog_compiler_pic='-KPIC' 14970 lt_prog_compiler_static='-Bstatic' 14971 lt_prog_compiler_wl='' 14972 ;; 14973 *Sun\ F* | *Sun*Fortran*) 14974 lt_prog_compiler_pic='-KPIC' 14975 lt_prog_compiler_static='-Bstatic' 14976 lt_prog_compiler_wl='-Qoption ld ' 14977 ;; 14978 *Sun\ C*) 14979 # Sun C 5.9 14980 lt_prog_compiler_pic='-KPIC' 14981 lt_prog_compiler_static='-Bstatic' 14982 lt_prog_compiler_wl='-Wl,' 14983 ;; 14984 *Intel*\ [CF]*Compiler*) 14985 lt_prog_compiler_wl='-Wl,' 14986 lt_prog_compiler_pic='-fPIC' 14987 lt_prog_compiler_static='-static' 14988 ;; 14989 *Portland\ Group*) 14990 lt_prog_compiler_wl='-Wl,' 14991 lt_prog_compiler_pic='-fpic' 14992 lt_prog_compiler_static='-Bstatic' 14993 ;; 14994 esac 14995 ;; 14996 esac 14997 ;; 14998 14999 newsos6) 15000 lt_prog_compiler_pic='-KPIC' 15001 lt_prog_compiler_static='-Bstatic' 15002 ;; 15003 15004 *nto* | *qnx*) 15005 # QNX uses GNU C++, but need to define -shared option too, otherwise 15006 # it will coredump. 15007 lt_prog_compiler_pic='-fPIC -shared' 15008 ;; 15009 15010 osf3* | osf4* | osf5*) 15011 lt_prog_compiler_wl='-Wl,' 15012 # All OSF/1 code is PIC. 15013 lt_prog_compiler_static='-non_shared' 15014 ;; 15015 15016 rdos*) 15017 lt_prog_compiler_static='-non_shared' 15018 ;; 15019 15020 solaris*) 15021 lt_prog_compiler_pic='-KPIC' 15022 lt_prog_compiler_static='-Bstatic' 15023 case $cc_basename in 15024 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15025 lt_prog_compiler_wl='-Qoption ld ';; 15026 *) 15027 lt_prog_compiler_wl='-Wl,';; 15028 esac 15029 ;; 15030 15031 sunos4*) 15032 lt_prog_compiler_wl='-Qoption ld ' 15033 lt_prog_compiler_pic='-PIC' 15034 lt_prog_compiler_static='-Bstatic' 15035 ;; 15036 15037 sysv4 | sysv4.2uw2* | sysv4.3*) 15038 lt_prog_compiler_wl='-Wl,' 15039 lt_prog_compiler_pic='-KPIC' 15040 lt_prog_compiler_static='-Bstatic' 15041 ;; 15042 15043 sysv4*MP*) 15044 if test -d /usr/nec; then 15045 lt_prog_compiler_pic='-Kconform_pic' 15046 lt_prog_compiler_static='-Bstatic' 15047 fi 15048 ;; 15049 15050 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15051 lt_prog_compiler_wl='-Wl,' 15052 lt_prog_compiler_pic='-KPIC' 15053 lt_prog_compiler_static='-Bstatic' 15054 ;; 15055 15056 unicos*) 15057 lt_prog_compiler_wl='-Wl,' 15058 lt_prog_compiler_can_build_shared=no 15059 ;; 15060 15061 uts4*) 15062 lt_prog_compiler_pic='-pic' 15063 lt_prog_compiler_static='-Bstatic' 15064 ;; 15065 15066 *) 15067 lt_prog_compiler_can_build_shared=no 15068 ;; 15069 esac 15070 fi 15071 15072case $host_os in 15073 # For platforms that do not support PIC, -DPIC is meaningless: 15074 *djgpp*) 15075 lt_prog_compiler_pic= 15076 ;; 15077 *) 15078 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15079 ;; 15080esac 15081 15082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15083$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15084if ${lt_cv_prog_compiler_pic+:} false; then : 15085 $as_echo_n "(cached) " >&6 15086else 15087 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15088fi 15089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15090$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15091lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15092 15093# 15094# Check to make sure the PIC flag actually works. 15095# 15096if test -n "$lt_prog_compiler_pic"; then 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15098$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15099if ${lt_cv_prog_compiler_pic_works+:} false; then : 15100 $as_echo_n "(cached) " >&6 15101else 15102 lt_cv_prog_compiler_pic_works=no 15103 ac_outfile=conftest.$ac_objext 15104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15105 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15106 # Insert the option either (1) after the last *FLAGS variable, or 15107 # (2) before a word containing "conftest.", or (3) at the end. 15108 # Note that $ac_compile itself does not contain backslashes and begins 15109 # with a dollar sign (not a hyphen), so the echo should work correctly. 15110 # The option is referenced via a variable to avoid confusing sed. 15111 lt_compile=`echo "$ac_compile" | $SED \ 15112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15114 -e 's:$: $lt_compiler_flag:'` 15115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15116 (eval "$lt_compile" 2>conftest.err) 15117 ac_status=$? 15118 cat conftest.err >&5 15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15120 if (exit $ac_status) && test -s "$ac_outfile"; then 15121 # The compiler can only warn and ignore the option if not recognized 15122 # So say no if there are warnings other than the usual output. 15123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15126 lt_cv_prog_compiler_pic_works=yes 15127 fi 15128 fi 15129 $RM conftest* 15130 15131fi 15132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15133$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15134 15135if test yes = "$lt_cv_prog_compiler_pic_works"; then 15136 case $lt_prog_compiler_pic in 15137 "" | " "*) ;; 15138 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15139 esac 15140else 15141 lt_prog_compiler_pic= 15142 lt_prog_compiler_can_build_shared=no 15143fi 15144 15145fi 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157# 15158# Check to make sure the static flag actually works. 15159# 15160wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15162$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15163if ${lt_cv_prog_compiler_static_works+:} false; then : 15164 $as_echo_n "(cached) " >&6 15165else 15166 lt_cv_prog_compiler_static_works=no 15167 save_LDFLAGS=$LDFLAGS 15168 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15169 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15171 # The linker can only warn and ignore the option if not recognized 15172 # So say no if there are warnings 15173 if test -s conftest.err; then 15174 # Append any errors to the config.log. 15175 cat conftest.err 1>&5 15176 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15178 if diff conftest.exp conftest.er2 >/dev/null; then 15179 lt_cv_prog_compiler_static_works=yes 15180 fi 15181 else 15182 lt_cv_prog_compiler_static_works=yes 15183 fi 15184 fi 15185 $RM -r conftest* 15186 LDFLAGS=$save_LDFLAGS 15187 15188fi 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15190$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15191 15192if test yes = "$lt_cv_prog_compiler_static_works"; then 15193 : 15194else 15195 lt_prog_compiler_static= 15196fi 15197 15198 15199 15200 15201 15202 15203 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15205$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15206if ${lt_cv_prog_compiler_c_o+:} false; then : 15207 $as_echo_n "(cached) " >&6 15208else 15209 lt_cv_prog_compiler_c_o=no 15210 $RM -r conftest 2>/dev/null 15211 mkdir conftest 15212 cd conftest 15213 mkdir out 15214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15215 15216 lt_compiler_flag="-o out/conftest2.$ac_objext" 15217 # Insert the option either (1) after the last *FLAGS variable, or 15218 # (2) before a word containing "conftest.", or (3) at the end. 15219 # Note that $ac_compile itself does not contain backslashes and begins 15220 # with a dollar sign (not a hyphen), so the echo should work correctly. 15221 lt_compile=`echo "$ac_compile" | $SED \ 15222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15224 -e 's:$: $lt_compiler_flag:'` 15225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15226 (eval "$lt_compile" 2>out/conftest.err) 15227 ac_status=$? 15228 cat out/conftest.err >&5 15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15230 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15231 then 15232 # The compiler can only warn and ignore the option if not recognized 15233 # So say no if there are warnings 15234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15237 lt_cv_prog_compiler_c_o=yes 15238 fi 15239 fi 15240 chmod u+w . 2>&5 15241 $RM conftest* 15242 # SGI C++ compiler will create directory out/ii_files/ for 15243 # template instantiation 15244 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15245 $RM out/* && rmdir out 15246 cd .. 15247 $RM -r conftest 15248 $RM conftest* 15249 15250fi 15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15252$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15253 15254 15255 15256 15257 15258 15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15260$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15261if ${lt_cv_prog_compiler_c_o+:} false; then : 15262 $as_echo_n "(cached) " >&6 15263else 15264 lt_cv_prog_compiler_c_o=no 15265 $RM -r conftest 2>/dev/null 15266 mkdir conftest 15267 cd conftest 15268 mkdir out 15269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15270 15271 lt_compiler_flag="-o out/conftest2.$ac_objext" 15272 # Insert the option either (1) after the last *FLAGS variable, or 15273 # (2) before a word containing "conftest.", or (3) at the end. 15274 # Note that $ac_compile itself does not contain backslashes and begins 15275 # with a dollar sign (not a hyphen), so the echo should work correctly. 15276 lt_compile=`echo "$ac_compile" | $SED \ 15277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15279 -e 's:$: $lt_compiler_flag:'` 15280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15281 (eval "$lt_compile" 2>out/conftest.err) 15282 ac_status=$? 15283 cat out/conftest.err >&5 15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15285 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15286 then 15287 # The compiler can only warn and ignore the option if not recognized 15288 # So say no if there are warnings 15289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15292 lt_cv_prog_compiler_c_o=yes 15293 fi 15294 fi 15295 chmod u+w . 2>&5 15296 $RM conftest* 15297 # SGI C++ compiler will create directory out/ii_files/ for 15298 # template instantiation 15299 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15300 $RM out/* && rmdir out 15301 cd .. 15302 $RM -r conftest 15303 $RM conftest* 15304 15305fi 15306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15307$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15308 15309 15310 15311 15312hard_links=nottested 15313if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15314 # do not overwrite the value of need_locks provided by the user 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15316$as_echo_n "checking if we can lock with hard links... " >&6; } 15317 hard_links=yes 15318 $RM conftest* 15319 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15320 touch conftest.a 15321 ln conftest.a conftest.b 2>&5 || hard_links=no 15322 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15324$as_echo "$hard_links" >&6; } 15325 if test no = "$hard_links"; then 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15327$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15328 need_locks=warn 15329 fi 15330else 15331 need_locks=no 15332fi 15333 15334 15335 15336 15337 15338 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15340$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15341 15342 runpath_var= 15343 allow_undefined_flag= 15344 always_export_symbols=no 15345 archive_cmds= 15346 archive_expsym_cmds= 15347 compiler_needs_object=no 15348 enable_shared_with_static_runtimes=no 15349 export_dynamic_flag_spec= 15350 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15351 hardcode_automatic=no 15352 hardcode_direct=no 15353 hardcode_direct_absolute=no 15354 hardcode_libdir_flag_spec= 15355 hardcode_libdir_separator= 15356 hardcode_minus_L=no 15357 hardcode_shlibpath_var=unsupported 15358 inherit_rpath=no 15359 link_all_deplibs=unknown 15360 module_cmds= 15361 module_expsym_cmds= 15362 old_archive_from_new_cmds= 15363 old_archive_from_expsyms_cmds= 15364 thread_safe_flag_spec= 15365 whole_archive_flag_spec= 15366 # include_expsyms should be a list of space-separated symbols to be *always* 15367 # included in the symbol list 15368 include_expsyms= 15369 # exclude_expsyms can be an extended regexp of symbols to exclude 15370 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15371 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15372 # as well as any symbol that contains 'd'. 15373 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15375 # platforms (ab)use it in PIC code, but their linkers get confused if 15376 # the symbol is explicitly referenced. Since portable code cannot 15377 # rely on this symbol name, it's probably fine to never include it in 15378 # preloaded symbol tables. 15379 # Exclude shared library initialization/finalization symbols. 15380 extract_expsyms_cmds= 15381 15382 case $host_os in 15383 cygwin* | mingw* | pw32* | cegcc*) 15384 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15385 # When not using gcc, we currently assume that we are using 15386 # Microsoft Visual C++. 15387 if test yes != "$GCC"; then 15388 with_gnu_ld=no 15389 fi 15390 ;; 15391 interix*) 15392 # we just hope/assume this is gcc and not c89 (= MSVC++) 15393 with_gnu_ld=yes 15394 ;; 15395 openbsd* | bitrig*) 15396 with_gnu_ld=no 15397 ;; 15398 esac 15399 15400 ld_shlibs=yes 15401 15402 # On some targets, GNU ld is compatible enough with the native linker 15403 # that we're better off using the native interface for both. 15404 lt_use_gnu_ld_interface=no 15405 if test yes = "$with_gnu_ld"; then 15406 case $host_os in 15407 aix*) 15408 # The AIX port of GNU ld has always aspired to compatibility 15409 # with the native linker. However, as the warning in the GNU ld 15410 # block says, versions before 2.19.5* couldn't really create working 15411 # shared libraries, regardless of the interface used. 15412 case `$LD -v 2>&1` in 15413 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15414 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15415 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15416 *) 15417 lt_use_gnu_ld_interface=yes 15418 ;; 15419 esac 15420 ;; 15421 *) 15422 lt_use_gnu_ld_interface=yes 15423 ;; 15424 esac 15425 fi 15426 15427 if test yes = "$lt_use_gnu_ld_interface"; then 15428 # If archive_cmds runs LD, not CC, wlarc should be empty 15429 wlarc='$wl' 15430 15431 # Set some defaults for GNU ld with shared library support. These 15432 # are reset later if shared libraries are not supported. Putting them 15433 # here allows them to be overridden if necessary. 15434 runpath_var=LD_RUN_PATH 15435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15436 export_dynamic_flag_spec='$wl--export-dynamic' 15437 # ancient GNU ld didn't support --whole-archive et. al. 15438 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15439 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15440 else 15441 whole_archive_flag_spec= 15442 fi 15443 supports_anon_versioning=no 15444 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15445 *GNU\ gold*) supports_anon_versioning=yes ;; 15446 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15447 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15448 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15449 *\ 2.11.*) ;; # other 2.11 versions 15450 *) supports_anon_versioning=yes ;; 15451 esac 15452 15453 # See if GNU ld supports shared libraries. 15454 case $host_os in 15455 aix[3-9]*) 15456 # On AIX/PPC, the GNU linker is very broken 15457 if test ia64 != "$host_cpu"; then 15458 ld_shlibs=no 15459 cat <<_LT_EOF 1>&2 15460 15461*** Warning: the GNU linker, at least up to release 2.19, is reported 15462*** to be unable to reliably create shared libraries on AIX. 15463*** Therefore, libtool is disabling shared libraries support. If you 15464*** really care for shared libraries, you may want to install binutils 15465*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15466*** You will then need to restart the configuration process. 15467 15468_LT_EOF 15469 fi 15470 ;; 15471 15472 amigaos*) 15473 case $host_cpu in 15474 powerpc) 15475 # see comment about AmigaOS4 .so support 15476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15477 archive_expsym_cmds='' 15478 ;; 15479 m68k) 15480 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)' 15481 hardcode_libdir_flag_spec='-L$libdir' 15482 hardcode_minus_L=yes 15483 ;; 15484 esac 15485 ;; 15486 15487 beos*) 15488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15489 allow_undefined_flag=unsupported 15490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15491 # support --undefined. This deserves some investigation. FIXME 15492 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15493 else 15494 ld_shlibs=no 15495 fi 15496 ;; 15497 15498 cygwin* | mingw* | pw32* | cegcc*) 15499 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15500 # as there is no search path for DLLs. 15501 hardcode_libdir_flag_spec='-L$libdir' 15502 export_dynamic_flag_spec='$wl--export-all-symbols' 15503 allow_undefined_flag=unsupported 15504 always_export_symbols=no 15505 enable_shared_with_static_runtimes=yes 15506 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' 15507 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15508 15509 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15511 # If the export-symbols file already is a .def file, use it as 15512 # is; otherwise, prepend EXPORTS... 15513 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15514 cp $export_symbols $output_objdir/$soname.def; 15515 else 15516 echo EXPORTS > $output_objdir/$soname.def; 15517 cat $export_symbols >> $output_objdir/$soname.def; 15518 fi~ 15519 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15520 else 15521 ld_shlibs=no 15522 fi 15523 ;; 15524 15525 haiku*) 15526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15527 link_all_deplibs=yes 15528 ;; 15529 15530 os2*) 15531 hardcode_libdir_flag_spec='-L$libdir' 15532 hardcode_minus_L=yes 15533 allow_undefined_flag=unsupported 15534 shrext_cmds=.dll 15535 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15538 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15539 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15540 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15541 emximp -o $lib $output_objdir/$libname.def' 15542 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15545 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15546 prefix_cmds="$SED"~ 15547 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15548 prefix_cmds="$prefix_cmds -e 1d"; 15549 fi~ 15550 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15551 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15552 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15553 emximp -o $lib $output_objdir/$libname.def' 15554 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15555 enable_shared_with_static_runtimes=yes 15556 ;; 15557 15558 interix[3-9]*) 15559 hardcode_direct=no 15560 hardcode_shlibpath_var=no 15561 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15562 export_dynamic_flag_spec='$wl-E' 15563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15564 # Instead, shared libraries are loaded at an image base (0x10000000 by 15565 # default) and relocated if they conflict, which is a slow very memory 15566 # consuming and fragmenting process. To avoid this, we pick a random, 15567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15568 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15570 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' 15571 ;; 15572 15573 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15574 tmp_diet=no 15575 if test linux-dietlibc = "$host_os"; then 15576 case $cc_basename in 15577 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15578 esac 15579 fi 15580 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15581 && test no = "$tmp_diet" 15582 then 15583 tmp_addflag=' $pic_flag' 15584 tmp_sharedflag='-shared' 15585 case $cc_basename,$host_cpu in 15586 pgcc*) # Portland Group C compiler 15587 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15588 tmp_addflag=' $pic_flag' 15589 ;; 15590 pgf77* | pgf90* | pgf95* | pgfortran*) 15591 # Portland Group f77 and f90 compilers 15592 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' 15593 tmp_addflag=' $pic_flag -Mnomain' ;; 15594 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15595 tmp_addflag=' -i_dynamic' ;; 15596 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15597 tmp_addflag=' -i_dynamic -nofor_main' ;; 15598 ifc* | ifort*) # Intel Fortran compiler 15599 tmp_addflag=' -nofor_main' ;; 15600 lf95*) # Lahey Fortran 8.1 15601 whole_archive_flag_spec= 15602 tmp_sharedflag='--shared' ;; 15603 nagfor*) # NAGFOR 5.3 15604 tmp_sharedflag='-Wl,-shared' ;; 15605 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15606 tmp_sharedflag='-qmkshrobj' 15607 tmp_addflag= ;; 15608 nvcc*) # Cuda Compiler Driver 2.2 15609 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' 15610 compiler_needs_object=yes 15611 ;; 15612 esac 15613 case `$CC -V 2>&1 | sed 5q` in 15614 *Sun\ C*) # Sun C 5.9 15615 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' 15616 compiler_needs_object=yes 15617 tmp_sharedflag='-G' ;; 15618 *Sun\ F*) # Sun Fortran 8.3 15619 tmp_sharedflag='-G' ;; 15620 esac 15621 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15622 15623 if test yes = "$supports_anon_versioning"; then 15624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15626 echo "local: *; };" >> $output_objdir/$libname.ver~ 15627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15628 fi 15629 15630 case $cc_basename in 15631 tcc*) 15632 export_dynamic_flag_spec='-rdynamic' 15633 ;; 15634 xlf* | bgf* | bgxlf* | mpixlf*) 15635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15638 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15639 if test yes = "$supports_anon_versioning"; then 15640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15642 echo "local: *; };" >> $output_objdir/$libname.ver~ 15643 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15644 fi 15645 ;; 15646 esac 15647 else 15648 ld_shlibs=no 15649 fi 15650 ;; 15651 15652 netbsd*) 15653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15654 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15655 wlarc= 15656 else 15657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15659 fi 15660 ;; 15661 15662 solaris*) 15663 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15664 ld_shlibs=no 15665 cat <<_LT_EOF 1>&2 15666 15667*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15668*** create shared libraries on Solaris systems. Therefore, libtool 15669*** is disabling shared libraries support. We urge you to upgrade GNU 15670*** binutils to release 2.9.1 or newer. Another option is to modify 15671*** your PATH or compiler configuration so that the native linker is 15672*** used, and then restart. 15673 15674_LT_EOF 15675 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15677 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15678 else 15679 ld_shlibs=no 15680 fi 15681 ;; 15682 15683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15684 case `$LD -v 2>&1` in 15685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15686 ld_shlibs=no 15687 cat <<_LT_EOF 1>&2 15688 15689*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15690*** reliably create shared libraries on SCO systems. Therefore, libtool 15691*** is disabling shared libraries support. We urge you to upgrade GNU 15692*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15693*** your PATH or compiler configuration so that the native linker is 15694*** used, and then restart. 15695 15696_LT_EOF 15697 ;; 15698 *) 15699 # For security reasons, it is highly recommended that you always 15700 # use absolute paths for naming shared libraries, and exclude the 15701 # DT_RUNPATH tag from executables and libraries. But doing so 15702 # requires that you compile everything twice, which is a pain. 15703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15707 else 15708 ld_shlibs=no 15709 fi 15710 ;; 15711 esac 15712 ;; 15713 15714 sunos4*) 15715 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15716 wlarc= 15717 hardcode_direct=yes 15718 hardcode_shlibpath_var=no 15719 ;; 15720 15721 *) 15722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15724 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15725 else 15726 ld_shlibs=no 15727 fi 15728 ;; 15729 esac 15730 15731 if test no = "$ld_shlibs"; then 15732 runpath_var= 15733 hardcode_libdir_flag_spec= 15734 export_dynamic_flag_spec= 15735 whole_archive_flag_spec= 15736 fi 15737 else 15738 # PORTME fill in a description of your system's linker (not GNU ld) 15739 case $host_os in 15740 aix3*) 15741 allow_undefined_flag=unsupported 15742 always_export_symbols=yes 15743 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' 15744 # Note: this linker hardcodes the directories in LIBPATH if there 15745 # are no directories specified by -L. 15746 hardcode_minus_L=yes 15747 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15748 # Neither direct hardcoding nor static linking is supported with a 15749 # broken collect2. 15750 hardcode_direct=unsupported 15751 fi 15752 ;; 15753 15754 aix[4-9]*) 15755 if test ia64 = "$host_cpu"; then 15756 # On IA64, the linker does run time linking by default, so we don't 15757 # have to do anything special. 15758 aix_use_runtimelinking=no 15759 exp_sym_flag='-Bexport' 15760 no_entry_flag= 15761 else 15762 # If we're using GNU nm, then we don't want the "-C" option. 15763 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15764 # Without the "-l" option, or with the "-B" option, AIX nm treats 15765 # weak defined symbols like other global defined symbols, whereas 15766 # GNU nm marks them as "W". 15767 # While the 'weak' keyword is ignored in the Export File, we need 15768 # it in the Import File for the 'aix-soname' feature, so we have 15769 # to replace the "-B" option with "-P" for AIX nm. 15770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15771 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' 15772 else 15773 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' 15774 fi 15775 aix_use_runtimelinking=no 15776 15777 # Test if we are trying to use run time linking or normal 15778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15779 # have runtime linking enabled, and use it for executables. 15780 # For shared libraries, we enable/disable runtime linking 15781 # depending on the kind of the shared library created - 15782 # when "with_aix_soname,aix_use_runtimelinking" is: 15783 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15784 # "aix,yes" lib.so shared, rtl:yes, for executables 15785 # lib.a static archive 15786 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15787 # lib.a(lib.so.V) shared, rtl:no, for executables 15788 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15789 # lib.a(lib.so.V) shared, rtl:no 15790 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15791 # lib.a static archive 15792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15793 for ld_flag in $LDFLAGS; do 15794 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15795 aix_use_runtimelinking=yes 15796 break 15797 fi 15798 done 15799 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15800 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15801 # so we don't have lib.a shared libs to link our executables. 15802 # We have to force runtime linking in this case. 15803 aix_use_runtimelinking=yes 15804 LDFLAGS="$LDFLAGS -Wl,-brtl" 15805 fi 15806 ;; 15807 esac 15808 15809 exp_sym_flag='-bexport' 15810 no_entry_flag='-bnoentry' 15811 fi 15812 15813 # When large executables or shared objects are built, AIX ld can 15814 # have problems creating the table of contents. If linking a library 15815 # or program results in "error TOC overflow" add -mminimal-toc to 15816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15818 15819 archive_cmds='' 15820 hardcode_direct=yes 15821 hardcode_direct_absolute=yes 15822 hardcode_libdir_separator=':' 15823 link_all_deplibs=yes 15824 file_list_spec='$wl-f,' 15825 case $with_aix_soname,$aix_use_runtimelinking in 15826 aix,*) ;; # traditional, no import file 15827 svr4,* | *,yes) # use import file 15828 # The Import File defines what to hardcode. 15829 hardcode_direct=no 15830 hardcode_direct_absolute=no 15831 ;; 15832 esac 15833 15834 if test yes = "$GCC"; then 15835 case $host_os in aix4.[012]|aix4.[012].*) 15836 # We only want to do this on AIX 4.2 and lower, the check 15837 # below for broken collect2 doesn't work under 4.3+ 15838 collect2name=`$CC -print-prog-name=collect2` 15839 if test -f "$collect2name" && 15840 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15841 then 15842 # We have reworked collect2 15843 : 15844 else 15845 # We have old collect2 15846 hardcode_direct=unsupported 15847 # It fails to find uninstalled libraries when the uninstalled 15848 # path is not listed in the libpath. Setting hardcode_minus_L 15849 # to unsupported forces relinking 15850 hardcode_minus_L=yes 15851 hardcode_libdir_flag_spec='-L$libdir' 15852 hardcode_libdir_separator= 15853 fi 15854 ;; 15855 esac 15856 shared_flag='-shared' 15857 if test yes = "$aix_use_runtimelinking"; then 15858 shared_flag="$shared_flag "'$wl-G' 15859 fi 15860 # Need to ensure runtime linking is disabled for the traditional 15861 # shared library, or the linker may eventually find shared libraries 15862 # /with/ Import File - we do not want to mix them. 15863 shared_flag_aix='-shared' 15864 shared_flag_svr4='-shared $wl-G' 15865 else 15866 # not using gcc 15867 if test ia64 = "$host_cpu"; then 15868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15869 # chokes on -Wl,-G. The following line is correct: 15870 shared_flag='-G' 15871 else 15872 if test yes = "$aix_use_runtimelinking"; then 15873 shared_flag='$wl-G' 15874 else 15875 shared_flag='$wl-bM:SRE' 15876 fi 15877 shared_flag_aix='$wl-bM:SRE' 15878 shared_flag_svr4='$wl-G' 15879 fi 15880 fi 15881 15882 export_dynamic_flag_spec='$wl-bexpall' 15883 # It seems that -bexpall does not export symbols beginning with 15884 # underscore (_), so it is better to generate a list of symbols to export. 15885 always_export_symbols=yes 15886 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15887 # Warning - without using the other runtime loading flags (-brtl), 15888 # -berok will link without error, but may produce a broken library. 15889 allow_undefined_flag='-berok' 15890 # Determine the default libpath from the value encoded in an 15891 # empty executable. 15892 if test set = "${lt_cv_aix_libpath+set}"; then 15893 aix_libpath=$lt_cv_aix_libpath 15894else 15895 if ${lt_cv_aix_libpath_+:} false; then : 15896 $as_echo_n "(cached) " >&6 15897else 15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15899/* end confdefs.h. */ 15900 15901int 15902main () 15903{ 15904 15905 ; 15906 return 0; 15907} 15908_ACEOF 15909if ac_fn_c_try_link "$LINENO"; then : 15910 15911 lt_aix_libpath_sed=' 15912 /Import File Strings/,/^$/ { 15913 /^0/ { 15914 s/^0 *\([^ ]*\) *$/\1/ 15915 p 15916 } 15917 }' 15918 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15919 # Check for a 64-bit object if we didn't find anything. 15920 if test -z "$lt_cv_aix_libpath_"; then 15921 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15922 fi 15923fi 15924rm -f core conftest.err conftest.$ac_objext \ 15925 conftest$ac_exeext conftest.$ac_ext 15926 if test -z "$lt_cv_aix_libpath_"; then 15927 lt_cv_aix_libpath_=/usr/lib:/lib 15928 fi 15929 15930fi 15931 15932 aix_libpath=$lt_cv_aix_libpath_ 15933fi 15934 15935 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15936 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 15937 else 15938 if test ia64 = "$host_cpu"; then 15939 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15940 allow_undefined_flag="-z nodefs" 15941 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" 15942 else 15943 # Determine the default libpath from the value encoded in an 15944 # empty executable. 15945 if test set = "${lt_cv_aix_libpath+set}"; then 15946 aix_libpath=$lt_cv_aix_libpath 15947else 15948 if ${lt_cv_aix_libpath_+:} false; then : 15949 $as_echo_n "(cached) " >&6 15950else 15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15952/* end confdefs.h. */ 15953 15954int 15955main () 15956{ 15957 15958 ; 15959 return 0; 15960} 15961_ACEOF 15962if ac_fn_c_try_link "$LINENO"; then : 15963 15964 lt_aix_libpath_sed=' 15965 /Import File Strings/,/^$/ { 15966 /^0/ { 15967 s/^0 *\([^ ]*\) *$/\1/ 15968 p 15969 } 15970 }' 15971 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15972 # Check for a 64-bit object if we didn't find anything. 15973 if test -z "$lt_cv_aix_libpath_"; then 15974 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15975 fi 15976fi 15977rm -f core conftest.err conftest.$ac_objext \ 15978 conftest$ac_exeext conftest.$ac_ext 15979 if test -z "$lt_cv_aix_libpath_"; then 15980 lt_cv_aix_libpath_=/usr/lib:/lib 15981 fi 15982 15983fi 15984 15985 aix_libpath=$lt_cv_aix_libpath_ 15986fi 15987 15988 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15989 # Warning - without using the other run time loading flags, 15990 # -berok will link without error, but may produce a broken library. 15991 no_undefined_flag=' $wl-bernotok' 15992 allow_undefined_flag=' $wl-berok' 15993 if test yes = "$with_gnu_ld"; then 15994 # We only use this code for GNU lds that support --whole-archive. 15995 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15996 else 15997 # Exported symbols can be pulled into shared objects from archives 15998 whole_archive_flag_spec='$convenience' 15999 fi 16000 archive_cmds_need_lc=yes 16001 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16002 # -brtl affects multiple linker settings, -berok does not and is overridden later 16003 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16004 if test svr4 != "$with_aix_soname"; then 16005 # This is similar to how AIX traditionally builds its shared libraries. 16006 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' 16007 fi 16008 if test aix != "$with_aix_soname"; then 16009 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' 16010 else 16011 # used by -dlpreopen to get the symbols 16012 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16013 fi 16014 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16015 fi 16016 fi 16017 ;; 16018 16019 amigaos*) 16020 case $host_cpu in 16021 powerpc) 16022 # see comment about AmigaOS4 .so support 16023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16024 archive_expsym_cmds='' 16025 ;; 16026 m68k) 16027 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)' 16028 hardcode_libdir_flag_spec='-L$libdir' 16029 hardcode_minus_L=yes 16030 ;; 16031 esac 16032 ;; 16033 16034 bsdi[45]*) 16035 export_dynamic_flag_spec=-rdynamic 16036 ;; 16037 16038 cygwin* | mingw* | pw32* | cegcc*) 16039 # When not using gcc, we currently assume that we are using 16040 # Microsoft Visual C++. 16041 # hardcode_libdir_flag_spec is actually meaningless, as there is 16042 # no search path for DLLs. 16043 case $cc_basename in 16044 cl*) 16045 # Native MSVC 16046 hardcode_libdir_flag_spec=' ' 16047 allow_undefined_flag=unsupported 16048 always_export_symbols=yes 16049 file_list_spec='@' 16050 # Tell ltmain to make .lib files, not .a files. 16051 libext=lib 16052 # Tell ltmain to make .dll files, not .so files. 16053 shrext_cmds=.dll 16054 # FIXME: Setting linknames here is a bad hack. 16055 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16056 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16057 cp "$export_symbols" "$output_objdir/$soname.def"; 16058 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16059 else 16060 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16061 fi~ 16062 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16063 linknames=' 16064 # The linker will not automatically build a static lib if we build a DLL. 16065 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16066 enable_shared_with_static_runtimes=yes 16067 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16069 # Don't use ranlib 16070 old_postinstall_cmds='chmod 644 $oldlib' 16071 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16072 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16073 case $lt_outputfile in 16074 *.exe|*.EXE) ;; 16075 *) 16076 lt_outputfile=$lt_outputfile.exe 16077 lt_tool_outputfile=$lt_tool_outputfile.exe 16078 ;; 16079 esac~ 16080 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16081 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16082 $RM "$lt_outputfile.manifest"; 16083 fi' 16084 ;; 16085 *) 16086 # Assume MSVC wrapper 16087 hardcode_libdir_flag_spec=' ' 16088 allow_undefined_flag=unsupported 16089 # Tell ltmain to make .lib files, not .a files. 16090 libext=lib 16091 # Tell ltmain to make .dll files, not .so files. 16092 shrext_cmds=.dll 16093 # FIXME: Setting linknames here is a bad hack. 16094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16095 # The linker will automatically build a .lib file if we build a DLL. 16096 old_archive_from_new_cmds='true' 16097 # FIXME: Should let the user specify the lib program. 16098 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16099 enable_shared_with_static_runtimes=yes 16100 ;; 16101 esac 16102 ;; 16103 16104 darwin* | rhapsody*) 16105 16106 16107 archive_cmds_need_lc=no 16108 hardcode_direct=no 16109 hardcode_automatic=yes 16110 hardcode_shlibpath_var=unsupported 16111 if test yes = "$lt_cv_ld_force_load"; then 16112 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\"`' 16113 16114 else 16115 whole_archive_flag_spec='' 16116 fi 16117 link_all_deplibs=yes 16118 allow_undefined_flag=$_lt_dar_allow_undefined 16119 case $cc_basename in 16120 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16121 *) _lt_dar_can_shared=$GCC ;; 16122 esac 16123 if test yes = "$_lt_dar_can_shared"; then 16124 output_verbose_link_cmd=func_echo_all 16125 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16126 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16127 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" 16128 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" 16129 16130 else 16131 ld_shlibs=no 16132 fi 16133 16134 ;; 16135 16136 dgux*) 16137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16138 hardcode_libdir_flag_spec='-L$libdir' 16139 hardcode_shlibpath_var=no 16140 ;; 16141 16142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16143 # support. Future versions do this automatically, but an explicit c++rt0.o 16144 # does not break anything, and helps significantly (at the cost of a little 16145 # extra space). 16146 freebsd2.2*) 16147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16148 hardcode_libdir_flag_spec='-R$libdir' 16149 hardcode_direct=yes 16150 hardcode_shlibpath_var=no 16151 ;; 16152 16153 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16154 freebsd2.*) 16155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16156 hardcode_direct=yes 16157 hardcode_minus_L=yes 16158 hardcode_shlibpath_var=no 16159 ;; 16160 16161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16162 freebsd* | dragonfly*) 16163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16164 hardcode_libdir_flag_spec='-R$libdir' 16165 hardcode_direct=yes 16166 hardcode_shlibpath_var=no 16167 ;; 16168 16169 hpux9*) 16170 if test yes = "$GCC"; then 16171 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' 16172 else 16173 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' 16174 fi 16175 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16176 hardcode_libdir_separator=: 16177 hardcode_direct=yes 16178 16179 # hardcode_minus_L: Not really in the search PATH, 16180 # but as the default location of the library. 16181 hardcode_minus_L=yes 16182 export_dynamic_flag_spec='$wl-E' 16183 ;; 16184 16185 hpux10*) 16186 if test yes,no = "$GCC,$with_gnu_ld"; then 16187 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16188 else 16189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16190 fi 16191 if test no = "$with_gnu_ld"; then 16192 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16193 hardcode_libdir_separator=: 16194 hardcode_direct=yes 16195 hardcode_direct_absolute=yes 16196 export_dynamic_flag_spec='$wl-E' 16197 # hardcode_minus_L: Not really in the search PATH, 16198 # but as the default location of the library. 16199 hardcode_minus_L=yes 16200 fi 16201 ;; 16202 16203 hpux11*) 16204 if test yes,no = "$GCC,$with_gnu_ld"; then 16205 case $host_cpu in 16206 hppa*64*) 16207 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16208 ;; 16209 ia64*) 16210 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16211 ;; 16212 *) 16213 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16214 ;; 16215 esac 16216 else 16217 case $host_cpu in 16218 hppa*64*) 16219 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16220 ;; 16221 ia64*) 16222 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16223 ;; 16224 *) 16225 16226 # Older versions of the 11.00 compiler do not understand -b yet 16227 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16229$as_echo_n "checking if $CC understands -b... " >&6; } 16230if ${lt_cv_prog_compiler__b+:} false; then : 16231 $as_echo_n "(cached) " >&6 16232else 16233 lt_cv_prog_compiler__b=no 16234 save_LDFLAGS=$LDFLAGS 16235 LDFLAGS="$LDFLAGS -b" 16236 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16238 # The linker can only warn and ignore the option if not recognized 16239 # So say no if there are warnings 16240 if test -s conftest.err; then 16241 # Append any errors to the config.log. 16242 cat conftest.err 1>&5 16243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16245 if diff conftest.exp conftest.er2 >/dev/null; then 16246 lt_cv_prog_compiler__b=yes 16247 fi 16248 else 16249 lt_cv_prog_compiler__b=yes 16250 fi 16251 fi 16252 $RM -r conftest* 16253 LDFLAGS=$save_LDFLAGS 16254 16255fi 16256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16257$as_echo "$lt_cv_prog_compiler__b" >&6; } 16258 16259if test yes = "$lt_cv_prog_compiler__b"; then 16260 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16261else 16262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16263fi 16264 16265 ;; 16266 esac 16267 fi 16268 if test no = "$with_gnu_ld"; then 16269 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16270 hardcode_libdir_separator=: 16271 16272 case $host_cpu in 16273 hppa*64*|ia64*) 16274 hardcode_direct=no 16275 hardcode_shlibpath_var=no 16276 ;; 16277 *) 16278 hardcode_direct=yes 16279 hardcode_direct_absolute=yes 16280 export_dynamic_flag_spec='$wl-E' 16281 16282 # hardcode_minus_L: Not really in the search PATH, 16283 # but as the default location of the library. 16284 hardcode_minus_L=yes 16285 ;; 16286 esac 16287 fi 16288 ;; 16289 16290 irix5* | irix6* | nonstopux*) 16291 if test yes = "$GCC"; then 16292 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' 16293 # Try to use the -exported_symbol ld option, if it does not 16294 # work, assume that -exports_file does not work either and 16295 # implicitly export all symbols. 16296 # This should be the same for all languages, so no per-tag cache variable. 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16298$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16299if ${lt_cv_irix_exported_symbol+:} false; then : 16300 $as_echo_n "(cached) " >&6 16301else 16302 save_LDFLAGS=$LDFLAGS 16303 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16305/* end confdefs.h. */ 16306int foo (void) { return 0; } 16307_ACEOF 16308if ac_fn_c_try_link "$LINENO"; then : 16309 lt_cv_irix_exported_symbol=yes 16310else 16311 lt_cv_irix_exported_symbol=no 16312fi 16313rm -f core conftest.err conftest.$ac_objext \ 16314 conftest$ac_exeext conftest.$ac_ext 16315 LDFLAGS=$save_LDFLAGS 16316fi 16317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16318$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16319 if test yes = "$lt_cv_irix_exported_symbol"; then 16320 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' 16321 fi 16322 else 16323 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' 16324 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' 16325 fi 16326 archive_cmds_need_lc='no' 16327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16328 hardcode_libdir_separator=: 16329 inherit_rpath=yes 16330 link_all_deplibs=yes 16331 ;; 16332 16333 linux*) 16334 case $cc_basename in 16335 tcc*) 16336 # Fabrice Bellard et al's Tiny C Compiler 16337 ld_shlibs=yes 16338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16339 ;; 16340 esac 16341 ;; 16342 16343 netbsd*) 16344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16346 else 16347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16348 fi 16349 hardcode_libdir_flag_spec='-R$libdir' 16350 hardcode_direct=yes 16351 hardcode_shlibpath_var=no 16352 ;; 16353 16354 newsos6) 16355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16356 hardcode_direct=yes 16357 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16358 hardcode_libdir_separator=: 16359 hardcode_shlibpath_var=no 16360 ;; 16361 16362 *nto* | *qnx*) 16363 ;; 16364 16365 openbsd* | bitrig*) 16366 if test -f /usr/libexec/ld.so; then 16367 hardcode_direct=yes 16368 hardcode_shlibpath_var=no 16369 hardcode_direct_absolute=yes 16370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16373 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16374 export_dynamic_flag_spec='$wl-E' 16375 else 16376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16377 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16378 fi 16379 else 16380 ld_shlibs=no 16381 fi 16382 ;; 16383 16384 os2*) 16385 hardcode_libdir_flag_spec='-L$libdir' 16386 hardcode_minus_L=yes 16387 allow_undefined_flag=unsupported 16388 shrext_cmds=.dll 16389 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16390 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16391 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16392 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16393 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16394 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16395 emximp -o $lib $output_objdir/$libname.def' 16396 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16397 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16398 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16399 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16400 prefix_cmds="$SED"~ 16401 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16402 prefix_cmds="$prefix_cmds -e 1d"; 16403 fi~ 16404 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16405 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16406 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16407 emximp -o $lib $output_objdir/$libname.def' 16408 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16409 enable_shared_with_static_runtimes=yes 16410 ;; 16411 16412 osf3*) 16413 if test yes = "$GCC"; then 16414 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16415 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' 16416 else 16417 allow_undefined_flag=' -expect_unresolved \*' 16418 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' 16419 fi 16420 archive_cmds_need_lc='no' 16421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16422 hardcode_libdir_separator=: 16423 ;; 16424 16425 osf4* | osf5*) # as osf3* with the addition of -msym flag 16426 if test yes = "$GCC"; then 16427 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16428 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' 16429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16430 else 16431 allow_undefined_flag=' -expect_unresolved \*' 16432 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' 16433 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~ 16434 $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' 16435 16436 # Both c and cxx compiler support -rpath directly 16437 hardcode_libdir_flag_spec='-rpath $libdir' 16438 fi 16439 archive_cmds_need_lc='no' 16440 hardcode_libdir_separator=: 16441 ;; 16442 16443 solaris*) 16444 no_undefined_flag=' -z defs' 16445 if test yes = "$GCC"; then 16446 wlarc='$wl' 16447 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16449 $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' 16450 else 16451 case `$CC -V 2>&1` in 16452 *"Compilers 5.0"*) 16453 wlarc='' 16454 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16456 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16457 ;; 16458 *) 16459 wlarc='$wl' 16460 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16462 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16463 ;; 16464 esac 16465 fi 16466 hardcode_libdir_flag_spec='-R$libdir' 16467 hardcode_shlibpath_var=no 16468 case $host_os in 16469 solaris2.[0-5] | solaris2.[0-5].*) ;; 16470 *) 16471 # The compiler driver will combine and reorder linker options, 16472 # but understands '-z linker_flag'. GCC discards it without '$wl', 16473 # but is careful enough not to reorder. 16474 # Supported since Solaris 2.6 (maybe 2.5.1?) 16475 if test yes = "$GCC"; then 16476 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16477 else 16478 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16479 fi 16480 ;; 16481 esac 16482 link_all_deplibs=yes 16483 ;; 16484 16485 sunos4*) 16486 if test sequent = "$host_vendor"; then 16487 # Use $CC to link under sequent, because it throws in some extra .o 16488 # files that make .init and .fini sections work. 16489 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16490 else 16491 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16492 fi 16493 hardcode_libdir_flag_spec='-L$libdir' 16494 hardcode_direct=yes 16495 hardcode_minus_L=yes 16496 hardcode_shlibpath_var=no 16497 ;; 16498 16499 sysv4) 16500 case $host_vendor in 16501 sni) 16502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16503 hardcode_direct=yes # is this really true??? 16504 ;; 16505 siemens) 16506 ## LD is ld it makes a PLAMLIB 16507 ## CC just makes a GrossModule. 16508 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16509 reload_cmds='$CC -r -o $output$reload_objs' 16510 hardcode_direct=no 16511 ;; 16512 motorola) 16513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16514 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16515 ;; 16516 esac 16517 runpath_var='LD_RUN_PATH' 16518 hardcode_shlibpath_var=no 16519 ;; 16520 16521 sysv4.3*) 16522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16523 hardcode_shlibpath_var=no 16524 export_dynamic_flag_spec='-Bexport' 16525 ;; 16526 16527 sysv4*MP*) 16528 if test -d /usr/nec; then 16529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16530 hardcode_shlibpath_var=no 16531 runpath_var=LD_RUN_PATH 16532 hardcode_runpath_var=yes 16533 ld_shlibs=yes 16534 fi 16535 ;; 16536 16537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16538 no_undefined_flag='$wl-z,text' 16539 archive_cmds_need_lc=no 16540 hardcode_shlibpath_var=no 16541 runpath_var='LD_RUN_PATH' 16542 16543 if test yes = "$GCC"; then 16544 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16545 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16546 else 16547 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16548 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16549 fi 16550 ;; 16551 16552 sysv5* | sco3.2v5* | sco5v6*) 16553 # Note: We CANNOT use -z defs as we might desire, because we do not 16554 # link with -lc, and that would cause any symbols used from libc to 16555 # always be unresolved, which means just about no library would 16556 # ever link correctly. If we're not using GNU ld we use -z text 16557 # though, which does catch some bad symbols but isn't as heavy-handed 16558 # as -z defs. 16559 no_undefined_flag='$wl-z,text' 16560 allow_undefined_flag='$wl-z,nodefs' 16561 archive_cmds_need_lc=no 16562 hardcode_shlibpath_var=no 16563 hardcode_libdir_flag_spec='$wl-R,$libdir' 16564 hardcode_libdir_separator=':' 16565 link_all_deplibs=yes 16566 export_dynamic_flag_spec='$wl-Bexport' 16567 runpath_var='LD_RUN_PATH' 16568 16569 if test yes = "$GCC"; then 16570 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16571 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16572 else 16573 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16574 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16575 fi 16576 ;; 16577 16578 uts4*) 16579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16580 hardcode_libdir_flag_spec='-L$libdir' 16581 hardcode_shlibpath_var=no 16582 ;; 16583 16584 *) 16585 ld_shlibs=no 16586 ;; 16587 esac 16588 16589 if test sni = "$host_vendor"; then 16590 case $host in 16591 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16592 export_dynamic_flag_spec='$wl-Blargedynsym' 16593 ;; 16594 esac 16595 fi 16596 fi 16597 16598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16599$as_echo "$ld_shlibs" >&6; } 16600test no = "$ld_shlibs" && can_build_shared=no 16601 16602with_gnu_ld=$with_gnu_ld 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618# 16619# Do we need to explicitly link libc? 16620# 16621case "x$archive_cmds_need_lc" in 16622x|xyes) 16623 # Assume -lc should be added 16624 archive_cmds_need_lc=yes 16625 16626 if test yes,yes = "$GCC,$enable_shared"; then 16627 case $archive_cmds in 16628 *'~'*) 16629 # FIXME: we may have to deal with multi-command sequences. 16630 ;; 16631 '$CC '*) 16632 # Test whether the compiler implicitly links with -lc since on some 16633 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16634 # to ld, don't add -lc before -lgcc. 16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16636$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16637if ${lt_cv_archive_cmds_need_lc+:} false; then : 16638 $as_echo_n "(cached) " >&6 16639else 16640 $RM conftest* 16641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16642 16643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16644 (eval $ac_compile) 2>&5 16645 ac_status=$? 16646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16647 test $ac_status = 0; } 2>conftest.err; then 16648 soname=conftest 16649 lib=conftest 16650 libobjs=conftest.$ac_objext 16651 deplibs= 16652 wl=$lt_prog_compiler_wl 16653 pic_flag=$lt_prog_compiler_pic 16654 compiler_flags=-v 16655 linker_flags=-v 16656 verstring= 16657 output_objdir=. 16658 libname=conftest 16659 lt_save_allow_undefined_flag=$allow_undefined_flag 16660 allow_undefined_flag= 16661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16662 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16663 ac_status=$? 16664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16665 test $ac_status = 0; } 16666 then 16667 lt_cv_archive_cmds_need_lc=no 16668 else 16669 lt_cv_archive_cmds_need_lc=yes 16670 fi 16671 allow_undefined_flag=$lt_save_allow_undefined_flag 16672 else 16673 cat conftest.err 1>&5 16674 fi 16675 $RM conftest* 16676 16677fi 16678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16679$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16680 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16681 ;; 16682 esac 16683 fi 16684 ;; 16685esac 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16839$as_echo_n "checking dynamic linker characteristics... " >&6; } 16840 16841if test yes = "$GCC"; then 16842 case $host_os in 16843 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16844 *) lt_awk_arg='/^libraries:/' ;; 16845 esac 16846 case $host_os in 16847 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16848 *) lt_sed_strip_eq='s|=/|/|g' ;; 16849 esac 16850 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16851 case $lt_search_path_spec in 16852 *\;*) 16853 # if the path contains ";" then we assume it to be the separator 16854 # otherwise default to the standard path separator (i.e. ":") - it is 16855 # assumed that no part of a normal pathname contains ";" but that should 16856 # okay in the real world where ";" in dirpaths is itself problematic. 16857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16858 ;; 16859 *) 16860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16861 ;; 16862 esac 16863 # Ok, now we have the path, separated by spaces, we can step through it 16864 # and add multilib dir if necessary... 16865 lt_tmp_lt_search_path_spec= 16866 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16867 # ...but if some path component already ends with the multilib dir we assume 16868 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16869 case "$lt_multi_os_dir; $lt_search_path_spec " in 16870 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16871 lt_multi_os_dir= 16872 ;; 16873 esac 16874 for lt_sys_path in $lt_search_path_spec; do 16875 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16876 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16877 elif test -n "$lt_multi_os_dir"; then 16878 test -d "$lt_sys_path" && \ 16879 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16880 fi 16881 done 16882 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16883BEGIN {RS = " "; FS = "/|\n";} { 16884 lt_foo = ""; 16885 lt_count = 0; 16886 for (lt_i = NF; lt_i > 0; lt_i--) { 16887 if ($lt_i != "" && $lt_i != ".") { 16888 if ($lt_i == "..") { 16889 lt_count++; 16890 } else { 16891 if (lt_count == 0) { 16892 lt_foo = "/" $lt_i lt_foo; 16893 } else { 16894 lt_count--; 16895 } 16896 } 16897 } 16898 } 16899 if (lt_foo != "") { lt_freq[lt_foo]++; } 16900 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16901}'` 16902 # AWK program above erroneously prepends '/' to C:/dos/paths 16903 # for these hosts. 16904 case $host_os in 16905 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16906 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16907 esac 16908 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16909else 16910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16911fi 16912library_names_spec= 16913libname_spec='lib$name' 16914soname_spec= 16915shrext_cmds=.so 16916postinstall_cmds= 16917postuninstall_cmds= 16918finish_cmds= 16919finish_eval= 16920shlibpath_var= 16921shlibpath_overrides_runpath=unknown 16922version_type=none 16923dynamic_linker="$host_os ld.so" 16924sys_lib_dlsearch_path_spec="/lib /usr/lib" 16925need_lib_prefix=unknown 16926hardcode_into_libs=no 16927 16928# when you set need_version to no, make sure it does not cause -set_version 16929# flags to be left without arguments 16930need_version=unknown 16931 16932 16933 16934case $host_os in 16935aix3*) 16936 version_type=linux # correct to gnu/linux during the next big refactor 16937 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16938 shlibpath_var=LIBPATH 16939 16940 # AIX 3 has no versioning support, so we append a major version to the name. 16941 soname_spec='$libname$release$shared_ext$major' 16942 ;; 16943 16944aix[4-9]*) 16945 version_type=linux # correct to gnu/linux during the next big refactor 16946 need_lib_prefix=no 16947 need_version=no 16948 hardcode_into_libs=yes 16949 if test ia64 = "$host_cpu"; then 16950 # AIX 5 supports IA64 16951 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16952 shlibpath_var=LD_LIBRARY_PATH 16953 else 16954 # With GCC up to 2.95.x, collect2 would create an import file 16955 # for dependence libraries. The import file would start with 16956 # the line '#! .'. This would cause the generated library to 16957 # depend on '.', always an invalid library. This was fixed in 16958 # development snapshots of GCC prior to 3.0. 16959 case $host_os in 16960 aix4 | aix4.[01] | aix4.[01].*) 16961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16962 echo ' yes ' 16963 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16964 : 16965 else 16966 can_build_shared=no 16967 fi 16968 ;; 16969 esac 16970 # Using Import Files as archive members, it is possible to support 16971 # filename-based versioning of shared library archives on AIX. While 16972 # this would work for both with and without runtime linking, it will 16973 # prevent static linking of such archives. So we do filename-based 16974 # shared library versioning with .so extension only, which is used 16975 # when both runtime linking and shared linking is enabled. 16976 # Unfortunately, runtime linking may impact performance, so we do 16977 # not want this to be the default eventually. Also, we use the 16978 # versioned .so libs for executables only if there is the -brtl 16979 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16980 # To allow for filename-based versioning support, we need to create 16981 # libNAME.so.V as an archive file, containing: 16982 # *) an Import File, referring to the versioned filename of the 16983 # archive as well as the shared archive member, telling the 16984 # bitwidth (32 or 64) of that shared object, and providing the 16985 # list of exported symbols of that shared object, eventually 16986 # decorated with the 'weak' keyword 16987 # *) the shared object with the F_LOADONLY flag set, to really avoid 16988 # it being seen by the linker. 16989 # At run time we better use the real file rather than another symlink, 16990 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16991 16992 case $with_aix_soname,$aix_use_runtimelinking in 16993 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16994 # soname into executable. Probably we can add versioning support to 16995 # collect2, so additional links can be useful in future. 16996 aix,yes) # traditional libtool 16997 dynamic_linker='AIX unversionable lib.so' 16998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16999 # instead of lib<name>.a to let people know that these are not 17000 # typical AIX shared libraries. 17001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17002 ;; 17003 aix,no) # traditional AIX only 17004 dynamic_linker='AIX lib.a(lib.so.V)' 17005 # We preserve .a as extension for shared libraries through AIX4.2 17006 # and later when we are not doing run time linking. 17007 library_names_spec='$libname$release.a $libname.a' 17008 soname_spec='$libname$release$shared_ext$major' 17009 ;; 17010 svr4,*) # full svr4 only 17011 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17012 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17013 # We do not specify a path in Import Files, so LIBPATH fires. 17014 shlibpath_overrides_runpath=yes 17015 ;; 17016 *,yes) # both, prefer svr4 17017 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17018 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17019 # unpreferred sharedlib libNAME.a needs extra handling 17020 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"' 17021 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"' 17022 # We do not specify a path in Import Files, so LIBPATH fires. 17023 shlibpath_overrides_runpath=yes 17024 ;; 17025 *,no) # both, prefer aix 17026 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17027 library_names_spec='$libname$release.a $libname.a' 17028 soname_spec='$libname$release$shared_ext$major' 17029 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17030 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)' 17031 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"' 17032 ;; 17033 esac 17034 shlibpath_var=LIBPATH 17035 fi 17036 ;; 17037 17038amigaos*) 17039 case $host_cpu in 17040 powerpc) 17041 # Since July 2007 AmigaOS4 officially supports .so libraries. 17042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17044 ;; 17045 m68k) 17046 library_names_spec='$libname.ixlibrary $libname.a' 17047 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17048 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' 17049 ;; 17050 esac 17051 ;; 17052 17053beos*) 17054 library_names_spec='$libname$shared_ext' 17055 dynamic_linker="$host_os ld.so" 17056 shlibpath_var=LIBRARY_PATH 17057 ;; 17058 17059bsdi[45]*) 17060 version_type=linux # correct to gnu/linux during the next big refactor 17061 need_version=no 17062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17063 soname_spec='$libname$release$shared_ext$major' 17064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17065 shlibpath_var=LD_LIBRARY_PATH 17066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17068 # the default ld.so.conf also contains /usr/contrib/lib and 17069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17070 # libtool to hard-code these into programs 17071 ;; 17072 17073cygwin* | mingw* | pw32* | cegcc*) 17074 version_type=windows 17075 shrext_cmds=.dll 17076 need_version=no 17077 need_lib_prefix=no 17078 17079 case $GCC,$cc_basename in 17080 yes,*) 17081 # gcc 17082 library_names_spec='$libname.dll.a' 17083 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17084 postinstall_cmds='base_file=`basename \$file`~ 17085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17086 dldir=$destdir/`dirname \$dlpath`~ 17087 test -d \$dldir || mkdir -p \$dldir~ 17088 $install_prog $dir/$dlname \$dldir/$dlname~ 17089 chmod a+x \$dldir/$dlname~ 17090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17092 fi' 17093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17094 dlpath=$dir/\$dldll~ 17095 $RM \$dlpath' 17096 shlibpath_overrides_runpath=yes 17097 17098 case $host_os in 17099 cygwin*) 17100 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17101 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17102 17103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17104 ;; 17105 mingw* | cegcc*) 17106 # MinGW DLLs use traditional 'lib' prefix 17107 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17108 ;; 17109 pw32*) 17110 # pw32 DLLs use 'pw' prefix rather than 'lib' 17111 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17112 ;; 17113 esac 17114 dynamic_linker='Win32 ld.exe' 17115 ;; 17116 17117 *,cl*) 17118 # Native MSVC 17119 libname_spec='$name' 17120 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17121 library_names_spec='$libname.dll.lib' 17122 17123 case $build_os in 17124 mingw*) 17125 sys_lib_search_path_spec= 17126 lt_save_ifs=$IFS 17127 IFS=';' 17128 for lt_path in $LIB 17129 do 17130 IFS=$lt_save_ifs 17131 # Let DOS variable expansion print the short 8.3 style file name. 17132 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17133 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17134 done 17135 IFS=$lt_save_ifs 17136 # Convert to MSYS style. 17137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17138 ;; 17139 cygwin*) 17140 # Convert to unix form, then to dos form, then back to unix form 17141 # but this time dos style (no spaces!) so that the unix form looks 17142 # like /cygdrive/c/PROGRA~1:/cygdr... 17143 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17144 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17145 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17146 ;; 17147 *) 17148 sys_lib_search_path_spec=$LIB 17149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17150 # It is most probably a Windows format PATH. 17151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17152 else 17153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17154 fi 17155 # FIXME: find the short name or the path components, as spaces are 17156 # common. (e.g. "Program Files" -> "PROGRA~1") 17157 ;; 17158 esac 17159 17160 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17161 postinstall_cmds='base_file=`basename \$file`~ 17162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17163 dldir=$destdir/`dirname \$dlpath`~ 17164 test -d \$dldir || mkdir -p \$dldir~ 17165 $install_prog $dir/$dlname \$dldir/$dlname' 17166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17167 dlpath=$dir/\$dldll~ 17168 $RM \$dlpath' 17169 shlibpath_overrides_runpath=yes 17170 dynamic_linker='Win32 link.exe' 17171 ;; 17172 17173 *) 17174 # Assume MSVC wrapper 17175 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17176 dynamic_linker='Win32 ld.exe' 17177 ;; 17178 esac 17179 # FIXME: first we should search . and the directory the executable is in 17180 shlibpath_var=PATH 17181 ;; 17182 17183darwin* | rhapsody*) 17184 dynamic_linker="$host_os dyld" 17185 version_type=darwin 17186 need_lib_prefix=no 17187 need_version=no 17188 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17189 soname_spec='$libname$release$major$shared_ext' 17190 shlibpath_overrides_runpath=yes 17191 shlibpath_var=DYLD_LIBRARY_PATH 17192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17193 17194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17196 ;; 17197 17198dgux*) 17199 version_type=linux # correct to gnu/linux during the next big refactor 17200 need_lib_prefix=no 17201 need_version=no 17202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17203 soname_spec='$libname$release$shared_ext$major' 17204 shlibpath_var=LD_LIBRARY_PATH 17205 ;; 17206 17207freebsd* | dragonfly*) 17208 # DragonFly does not have aout. When/if they implement a new 17209 # versioning mechanism, adjust this. 17210 if test -x /usr/bin/objformat; then 17211 objformat=`/usr/bin/objformat` 17212 else 17213 case $host_os in 17214 freebsd[23].*) objformat=aout ;; 17215 *) objformat=elf ;; 17216 esac 17217 fi 17218 # Handle Gentoo/FreeBSD as it was Linux 17219 case $host_vendor in 17220 gentoo) 17221 version_type=linux ;; 17222 *) 17223 version_type=freebsd-$objformat ;; 17224 esac 17225 17226 case $version_type in 17227 freebsd-elf*) 17228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17229 soname_spec='$libname$release$shared_ext$major' 17230 need_version=no 17231 need_lib_prefix=no 17232 ;; 17233 freebsd-*) 17234 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17235 need_version=yes 17236 ;; 17237 linux) 17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17239 soname_spec='${libname}${release}${shared_ext}$major' 17240 need_lib_prefix=no 17241 need_version=no 17242 ;; 17243 esac 17244 shlibpath_var=LD_LIBRARY_PATH 17245 case $host_os in 17246 freebsd2.*) 17247 shlibpath_overrides_runpath=yes 17248 ;; 17249 freebsd3.[01]* | freebsdelf3.[01]*) 17250 shlibpath_overrides_runpath=yes 17251 hardcode_into_libs=yes 17252 ;; 17253 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17254 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17255 shlibpath_overrides_runpath=no 17256 hardcode_into_libs=yes 17257 ;; 17258 *) # from 4.6 on, and DragonFly 17259 shlibpath_overrides_runpath=yes 17260 hardcode_into_libs=yes 17261 ;; 17262 esac 17263 ;; 17264 17265haiku*) 17266 version_type=linux # correct to gnu/linux during the next big refactor 17267 need_lib_prefix=no 17268 need_version=no 17269 dynamic_linker="$host_os runtime_loader" 17270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17271 soname_spec='$libname$release$shared_ext$major' 17272 shlibpath_var=LIBRARY_PATH 17273 shlibpath_overrides_runpath=no 17274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17275 hardcode_into_libs=yes 17276 ;; 17277 17278hpux9* | hpux10* | hpux11*) 17279 # Give a soname corresponding to the major version so that dld.sl refuses to 17280 # link against other versions. 17281 version_type=sunos 17282 need_lib_prefix=no 17283 need_version=no 17284 case $host_cpu in 17285 ia64*) 17286 shrext_cmds='.so' 17287 hardcode_into_libs=yes 17288 dynamic_linker="$host_os dld.so" 17289 shlibpath_var=LD_LIBRARY_PATH 17290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17292 soname_spec='$libname$release$shared_ext$major' 17293 if test 32 = "$HPUX_IA64_MODE"; then 17294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17295 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17296 else 17297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17298 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17299 fi 17300 ;; 17301 hppa*64*) 17302 shrext_cmds='.sl' 17303 hardcode_into_libs=yes 17304 dynamic_linker="$host_os dld.sl" 17305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17308 soname_spec='$libname$release$shared_ext$major' 17309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17311 ;; 17312 *) 17313 shrext_cmds='.sl' 17314 dynamic_linker="$host_os dld.sl" 17315 shlibpath_var=SHLIB_PATH 17316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17318 soname_spec='$libname$release$shared_ext$major' 17319 ;; 17320 esac 17321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17322 postinstall_cmds='chmod 555 $lib' 17323 # or fails outright, so override atomically: 17324 install_override_mode=555 17325 ;; 17326 17327interix[3-9]*) 17328 version_type=linux # correct to gnu/linux during the next big refactor 17329 need_lib_prefix=no 17330 need_version=no 17331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17332 soname_spec='$libname$release$shared_ext$major' 17333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17334 shlibpath_var=LD_LIBRARY_PATH 17335 shlibpath_overrides_runpath=no 17336 hardcode_into_libs=yes 17337 ;; 17338 17339irix5* | irix6* | nonstopux*) 17340 case $host_os in 17341 nonstopux*) version_type=nonstopux ;; 17342 *) 17343 if test yes = "$lt_cv_prog_gnu_ld"; then 17344 version_type=linux # correct to gnu/linux during the next big refactor 17345 else 17346 version_type=irix 17347 fi ;; 17348 esac 17349 need_lib_prefix=no 17350 need_version=no 17351 soname_spec='$libname$release$shared_ext$major' 17352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17353 case $host_os in 17354 irix5* | nonstopux*) 17355 libsuff= shlibsuff= 17356 ;; 17357 *) 17358 case $LD in # libtool.m4 will add one of these switches to LD 17359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17360 libsuff= shlibsuff= libmagic=32-bit;; 17361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17362 libsuff=32 shlibsuff=N32 libmagic=N32;; 17363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17364 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17365 *) libsuff= shlibsuff= libmagic=never-match;; 17366 esac 17367 ;; 17368 esac 17369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17370 shlibpath_overrides_runpath=no 17371 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17372 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17373 hardcode_into_libs=yes 17374 ;; 17375 17376# No shared lib support for Linux oldld, aout, or coff. 17377linux*oldld* | linux*aout* | linux*coff*) 17378 dynamic_linker=no 17379 ;; 17380 17381linux*android*) 17382 version_type=none # Android doesn't support versioned libraries. 17383 need_lib_prefix=no 17384 need_version=no 17385 library_names_spec='$libname$release$shared_ext' 17386 soname_spec='$libname$release$shared_ext' 17387 finish_cmds= 17388 shlibpath_var=LD_LIBRARY_PATH 17389 shlibpath_overrides_runpath=yes 17390 17391 # This implies no fast_install, which is unacceptable. 17392 # Some rework will be needed to allow for fast_install 17393 # before this can be enabled. 17394 hardcode_into_libs=yes 17395 17396 dynamic_linker='Android linker' 17397 # Don't embed -rpath directories since the linker doesn't support them. 17398 hardcode_libdir_flag_spec='-L$libdir' 17399 ;; 17400 17401# This must be glibc/ELF. 17402linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17403 version_type=linux # correct to gnu/linux during the next big refactor 17404 need_lib_prefix=no 17405 need_version=no 17406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17407 soname_spec='$libname$release$shared_ext$major' 17408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17409 shlibpath_var=LD_LIBRARY_PATH 17410 shlibpath_overrides_runpath=no 17411 17412 # Some binutils ld are patched to set DT_RUNPATH 17413 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17414 $as_echo_n "(cached) " >&6 17415else 17416 lt_cv_shlibpath_overrides_runpath=no 17417 save_LDFLAGS=$LDFLAGS 17418 save_libdir=$libdir 17419 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17420 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17422/* end confdefs.h. */ 17423 17424int 17425main () 17426{ 17427 17428 ; 17429 return 0; 17430} 17431_ACEOF 17432if ac_fn_c_try_link "$LINENO"; then : 17433 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17434 lt_cv_shlibpath_overrides_runpath=yes 17435fi 17436fi 17437rm -f core conftest.err conftest.$ac_objext \ 17438 conftest$ac_exeext conftest.$ac_ext 17439 LDFLAGS=$save_LDFLAGS 17440 libdir=$save_libdir 17441 17442fi 17443 17444 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17445 17446 # This implies no fast_install, which is unacceptable. 17447 # Some rework will be needed to allow for fast_install 17448 # before this can be enabled. 17449 hardcode_into_libs=yes 17450 17451 # Ideally, we could use ldconfig to report *all* directores which are 17452 # searched for libraries, however this is still not possible. Aside from not 17453 # being certain /sbin/ldconfig is available, command 17454 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17455 # even though it is searched at run-time. Try to do the best guess by 17456 # appending ld.so.conf contents (and includes) to the search path. 17457 if test -f /etc/ld.so.conf; then 17458 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' ' '` 17459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17460 fi 17461 17462 # We used to test for /lib/ld.so.1 and disable shared libraries on 17463 # powerpc, because MkLinux only supported shared libraries with the 17464 # GNU dynamic linker. Since this was broken with cross compilers, 17465 # most powerpc-linux boxes support dynamic linking these days and 17466 # people can always --disable-shared, the test was removed, and we 17467 # assume the GNU/Linux dynamic linker is in use. 17468 dynamic_linker='GNU/Linux ld.so' 17469 ;; 17470 17471netbsd*) 17472 version_type=sunos 17473 need_lib_prefix=no 17474 need_version=no 17475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17476 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17478 dynamic_linker='NetBSD (a.out) ld.so' 17479 else 17480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17481 soname_spec='$libname$release$shared_ext$major' 17482 dynamic_linker='NetBSD ld.elf_so' 17483 fi 17484 shlibpath_var=LD_LIBRARY_PATH 17485 shlibpath_overrides_runpath=yes 17486 hardcode_into_libs=yes 17487 ;; 17488 17489newsos6) 17490 version_type=linux # correct to gnu/linux during the next big refactor 17491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17492 shlibpath_var=LD_LIBRARY_PATH 17493 shlibpath_overrides_runpath=yes 17494 ;; 17495 17496*nto* | *qnx*) 17497 version_type=qnx 17498 need_lib_prefix=no 17499 need_version=no 17500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17501 soname_spec='$libname$release$shared_ext$major' 17502 shlibpath_var=LD_LIBRARY_PATH 17503 shlibpath_overrides_runpath=no 17504 hardcode_into_libs=yes 17505 dynamic_linker='ldqnx.so' 17506 ;; 17507 17508openbsd* | bitrig*) 17509 version_type=sunos 17510 sys_lib_dlsearch_path_spec=/usr/lib 17511 need_lib_prefix=no 17512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17513 need_version=no 17514 else 17515 need_version=yes 17516 fi 17517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17519 shlibpath_var=LD_LIBRARY_PATH 17520 shlibpath_overrides_runpath=yes 17521 ;; 17522 17523os2*) 17524 libname_spec='$name' 17525 version_type=windows 17526 shrext_cmds=.dll 17527 need_version=no 17528 need_lib_prefix=no 17529 # OS/2 can only load a DLL with a base name of 8 characters or less. 17530 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17531 v=$($ECHO $release$versuffix | tr -d .-); 17532 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17533 $ECHO $n$v`$shared_ext' 17534 library_names_spec='${libname}_dll.$libext' 17535 dynamic_linker='OS/2 ld.exe' 17536 shlibpath_var=BEGINLIBPATH 17537 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17539 postinstall_cmds='base_file=`basename \$file`~ 17540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17541 dldir=$destdir/`dirname \$dlpath`~ 17542 test -d \$dldir || mkdir -p \$dldir~ 17543 $install_prog $dir/$dlname \$dldir/$dlname~ 17544 chmod a+x \$dldir/$dlname~ 17545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17547 fi' 17548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17549 dlpath=$dir/\$dldll~ 17550 $RM \$dlpath' 17551 ;; 17552 17553osf3* | osf4* | osf5*) 17554 version_type=osf 17555 need_lib_prefix=no 17556 need_version=no 17557 soname_spec='$libname$release$shared_ext$major' 17558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17559 shlibpath_var=LD_LIBRARY_PATH 17560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17562 ;; 17563 17564rdos*) 17565 dynamic_linker=no 17566 ;; 17567 17568solaris*) 17569 version_type=linux # correct to gnu/linux during the next big refactor 17570 need_lib_prefix=no 17571 need_version=no 17572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17573 soname_spec='$libname$release$shared_ext$major' 17574 shlibpath_var=LD_LIBRARY_PATH 17575 shlibpath_overrides_runpath=yes 17576 hardcode_into_libs=yes 17577 # ldd complains unless libraries are executable 17578 postinstall_cmds='chmod +x $lib' 17579 ;; 17580 17581sunos4*) 17582 version_type=sunos 17583 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17585 shlibpath_var=LD_LIBRARY_PATH 17586 shlibpath_overrides_runpath=yes 17587 if test yes = "$with_gnu_ld"; then 17588 need_lib_prefix=no 17589 fi 17590 need_version=yes 17591 ;; 17592 17593sysv4 | sysv4.3*) 17594 version_type=linux # correct to gnu/linux during the next big refactor 17595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17596 soname_spec='$libname$release$shared_ext$major' 17597 shlibpath_var=LD_LIBRARY_PATH 17598 case $host_vendor in 17599 sni) 17600 shlibpath_overrides_runpath=no 17601 need_lib_prefix=no 17602 runpath_var=LD_RUN_PATH 17603 ;; 17604 siemens) 17605 need_lib_prefix=no 17606 ;; 17607 motorola) 17608 need_lib_prefix=no 17609 need_version=no 17610 shlibpath_overrides_runpath=no 17611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17612 ;; 17613 esac 17614 ;; 17615 17616sysv4*MP*) 17617 if test -d /usr/nec; then 17618 version_type=linux # correct to gnu/linux during the next big refactor 17619 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17620 soname_spec='$libname$shared_ext.$major' 17621 shlibpath_var=LD_LIBRARY_PATH 17622 fi 17623 ;; 17624 17625sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17626 version_type=sco 17627 need_lib_prefix=no 17628 need_version=no 17629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17630 soname_spec='$libname$release$shared_ext$major' 17631 shlibpath_var=LD_LIBRARY_PATH 17632 shlibpath_overrides_runpath=yes 17633 hardcode_into_libs=yes 17634 if test yes = "$with_gnu_ld"; then 17635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17636 else 17637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17638 case $host_os in 17639 sco3.2v5*) 17640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17641 ;; 17642 esac 17643 fi 17644 sys_lib_dlsearch_path_spec='/usr/lib' 17645 ;; 17646 17647tpf*) 17648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17649 version_type=linux # correct to gnu/linux during the next big refactor 17650 need_lib_prefix=no 17651 need_version=no 17652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17653 shlibpath_var=LD_LIBRARY_PATH 17654 shlibpath_overrides_runpath=no 17655 hardcode_into_libs=yes 17656 ;; 17657 17658uts4*) 17659 version_type=linux # correct to gnu/linux during the next big refactor 17660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17661 soname_spec='$libname$release$shared_ext$major' 17662 shlibpath_var=LD_LIBRARY_PATH 17663 ;; 17664 17665*) 17666 dynamic_linker=no 17667 ;; 17668esac 17669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17670$as_echo "$dynamic_linker" >&6; } 17671test no = "$dynamic_linker" && can_build_shared=no 17672 17673variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17674if test yes = "$GCC"; then 17675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17676fi 17677 17678if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17679 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17680fi 17681 17682if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17683 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17684fi 17685 17686# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17687configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17688 17689# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17690func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17691 17692# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17693configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17792$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17793hardcode_action= 17794if test -n "$hardcode_libdir_flag_spec" || 17795 test -n "$runpath_var" || 17796 test yes = "$hardcode_automatic"; then 17797 17798 # We can hardcode non-existent directories. 17799 if test no != "$hardcode_direct" && 17800 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17801 # have to relink, otherwise we might link with an installed library 17802 # when we should be linking with a yet-to-be-installed one 17803 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17804 test no != "$hardcode_minus_L"; then 17805 # Linking always hardcodes the temporary library directory. 17806 hardcode_action=relink 17807 else 17808 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17809 hardcode_action=immediate 17810 fi 17811else 17812 # We cannot hardcode anything, or else we can only hardcode existing 17813 # directories. 17814 hardcode_action=unsupported 17815fi 17816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17817$as_echo "$hardcode_action" >&6; } 17818 17819if test relink = "$hardcode_action" || 17820 test yes = "$inherit_rpath"; then 17821 # Fast installation is not supported 17822 enable_fast_install=no 17823elif test yes = "$shlibpath_overrides_runpath" || 17824 test no = "$enable_shared"; then 17825 # Fast installation is not necessary 17826 enable_fast_install=needless 17827fi 17828 17829 17830 17831 17832 17833 17834 if test yes != "$enable_dlopen"; then 17835 enable_dlopen=unknown 17836 enable_dlopen_self=unknown 17837 enable_dlopen_self_static=unknown 17838else 17839 lt_cv_dlopen=no 17840 lt_cv_dlopen_libs= 17841 17842 case $host_os in 17843 beos*) 17844 lt_cv_dlopen=load_add_on 17845 lt_cv_dlopen_libs= 17846 lt_cv_dlopen_self=yes 17847 ;; 17848 17849 mingw* | pw32* | cegcc*) 17850 lt_cv_dlopen=LoadLibrary 17851 lt_cv_dlopen_libs= 17852 ;; 17853 17854 cygwin*) 17855 lt_cv_dlopen=dlopen 17856 lt_cv_dlopen_libs= 17857 ;; 17858 17859 darwin*) 17860 # if libdl is installed we need to link against it 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17862$as_echo_n "checking for dlopen in -ldl... " >&6; } 17863if ${ac_cv_lib_dl_dlopen+:} false; then : 17864 $as_echo_n "(cached) " >&6 17865else 17866 ac_check_lib_save_LIBS=$LIBS 17867LIBS="-ldl $LIBS" 17868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17869/* end confdefs.h. */ 17870 17871/* Override any GCC internal prototype to avoid an error. 17872 Use char because int might match the return type of a GCC 17873 builtin and then its argument prototype would still apply. */ 17874#ifdef __cplusplus 17875extern "C" 17876#endif 17877char dlopen (); 17878int 17879main () 17880{ 17881return dlopen (); 17882 ; 17883 return 0; 17884} 17885_ACEOF 17886if ac_fn_c_try_link "$LINENO"; then : 17887 ac_cv_lib_dl_dlopen=yes 17888else 17889 ac_cv_lib_dl_dlopen=no 17890fi 17891rm -f core conftest.err conftest.$ac_objext \ 17892 conftest$ac_exeext conftest.$ac_ext 17893LIBS=$ac_check_lib_save_LIBS 17894fi 17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17896$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17897if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17898 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17899else 17900 17901 lt_cv_dlopen=dyld 17902 lt_cv_dlopen_libs= 17903 lt_cv_dlopen_self=yes 17904 17905fi 17906 17907 ;; 17908 17909 tpf*) 17910 # Don't try to run any link tests for TPF. We know it's impossible 17911 # because TPF is a cross-compiler, and we know how we open DSOs. 17912 lt_cv_dlopen=dlopen 17913 lt_cv_dlopen_libs= 17914 lt_cv_dlopen_self=no 17915 ;; 17916 17917 *) 17918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17919if test "x$ac_cv_func_shl_load" = xyes; then : 17920 lt_cv_dlopen=shl_load 17921else 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17923$as_echo_n "checking for shl_load in -ldld... " >&6; } 17924if ${ac_cv_lib_dld_shl_load+:} false; then : 17925 $as_echo_n "(cached) " >&6 17926else 17927 ac_check_lib_save_LIBS=$LIBS 17928LIBS="-ldld $LIBS" 17929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17930/* end confdefs.h. */ 17931 17932/* Override any GCC internal prototype to avoid an error. 17933 Use char because int might match the return type of a GCC 17934 builtin and then its argument prototype would still apply. */ 17935#ifdef __cplusplus 17936extern "C" 17937#endif 17938char shl_load (); 17939int 17940main () 17941{ 17942return shl_load (); 17943 ; 17944 return 0; 17945} 17946_ACEOF 17947if ac_fn_c_try_link "$LINENO"; then : 17948 ac_cv_lib_dld_shl_load=yes 17949else 17950 ac_cv_lib_dld_shl_load=no 17951fi 17952rm -f core conftest.err conftest.$ac_objext \ 17953 conftest$ac_exeext conftest.$ac_ext 17954LIBS=$ac_check_lib_save_LIBS 17955fi 17956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17957$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17958if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17959 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17960else 17961 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17962if test "x$ac_cv_func_dlopen" = xyes; then : 17963 lt_cv_dlopen=dlopen 17964else 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17966$as_echo_n "checking for dlopen in -ldl... " >&6; } 17967if ${ac_cv_lib_dl_dlopen+:} false; then : 17968 $as_echo_n "(cached) " >&6 17969else 17970 ac_check_lib_save_LIBS=$LIBS 17971LIBS="-ldl $LIBS" 17972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17973/* end confdefs.h. */ 17974 17975/* Override any GCC internal prototype to avoid an error. 17976 Use char because int might match the return type of a GCC 17977 builtin and then its argument prototype would still apply. */ 17978#ifdef __cplusplus 17979extern "C" 17980#endif 17981char dlopen (); 17982int 17983main () 17984{ 17985return dlopen (); 17986 ; 17987 return 0; 17988} 17989_ACEOF 17990if ac_fn_c_try_link "$LINENO"; then : 17991 ac_cv_lib_dl_dlopen=yes 17992else 17993 ac_cv_lib_dl_dlopen=no 17994fi 17995rm -f core conftest.err conftest.$ac_objext \ 17996 conftest$ac_exeext conftest.$ac_ext 17997LIBS=$ac_check_lib_save_LIBS 17998fi 17999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18000$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18001if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18002 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18003else 18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18005$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18006if ${ac_cv_lib_svld_dlopen+:} false; then : 18007 $as_echo_n "(cached) " >&6 18008else 18009 ac_check_lib_save_LIBS=$LIBS 18010LIBS="-lsvld $LIBS" 18011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18012/* end confdefs.h. */ 18013 18014/* Override any GCC internal prototype to avoid an error. 18015 Use char because int might match the return type of a GCC 18016 builtin and then its argument prototype would still apply. */ 18017#ifdef __cplusplus 18018extern "C" 18019#endif 18020char dlopen (); 18021int 18022main () 18023{ 18024return dlopen (); 18025 ; 18026 return 0; 18027} 18028_ACEOF 18029if ac_fn_c_try_link "$LINENO"; then : 18030 ac_cv_lib_svld_dlopen=yes 18031else 18032 ac_cv_lib_svld_dlopen=no 18033fi 18034rm -f core conftest.err conftest.$ac_objext \ 18035 conftest$ac_exeext conftest.$ac_ext 18036LIBS=$ac_check_lib_save_LIBS 18037fi 18038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18039$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18040if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18041 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18042else 18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18044$as_echo_n "checking for dld_link in -ldld... " >&6; } 18045if ${ac_cv_lib_dld_dld_link+:} false; then : 18046 $as_echo_n "(cached) " >&6 18047else 18048 ac_check_lib_save_LIBS=$LIBS 18049LIBS="-ldld $LIBS" 18050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18051/* end confdefs.h. */ 18052 18053/* Override any GCC internal prototype to avoid an error. 18054 Use char because int might match the return type of a GCC 18055 builtin and then its argument prototype would still apply. */ 18056#ifdef __cplusplus 18057extern "C" 18058#endif 18059char dld_link (); 18060int 18061main () 18062{ 18063return dld_link (); 18064 ; 18065 return 0; 18066} 18067_ACEOF 18068if ac_fn_c_try_link "$LINENO"; then : 18069 ac_cv_lib_dld_dld_link=yes 18070else 18071 ac_cv_lib_dld_dld_link=no 18072fi 18073rm -f core conftest.err conftest.$ac_objext \ 18074 conftest$ac_exeext conftest.$ac_ext 18075LIBS=$ac_check_lib_save_LIBS 18076fi 18077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18078$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18079if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18080 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18081fi 18082 18083 18084fi 18085 18086 18087fi 18088 18089 18090fi 18091 18092 18093fi 18094 18095 18096fi 18097 18098 ;; 18099 esac 18100 18101 if test no = "$lt_cv_dlopen"; then 18102 enable_dlopen=no 18103 else 18104 enable_dlopen=yes 18105 fi 18106 18107 case $lt_cv_dlopen in 18108 dlopen) 18109 save_CPPFLAGS=$CPPFLAGS 18110 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18111 18112 save_LDFLAGS=$LDFLAGS 18113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18114 18115 save_LIBS=$LIBS 18116 LIBS="$lt_cv_dlopen_libs $LIBS" 18117 18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18119$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18120if ${lt_cv_dlopen_self+:} false; then : 18121 $as_echo_n "(cached) " >&6 18122else 18123 if test yes = "$cross_compiling"; then : 18124 lt_cv_dlopen_self=cross 18125else 18126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18127 lt_status=$lt_dlunknown 18128 cat > conftest.$ac_ext <<_LT_EOF 18129#line $LINENO "configure" 18130#include "confdefs.h" 18131 18132#if HAVE_DLFCN_H 18133#include <dlfcn.h> 18134#endif 18135 18136#include <stdio.h> 18137 18138#ifdef RTLD_GLOBAL 18139# define LT_DLGLOBAL RTLD_GLOBAL 18140#else 18141# ifdef DL_GLOBAL 18142# define LT_DLGLOBAL DL_GLOBAL 18143# else 18144# define LT_DLGLOBAL 0 18145# endif 18146#endif 18147 18148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18149 find out it does not work in some platform. */ 18150#ifndef LT_DLLAZY_OR_NOW 18151# ifdef RTLD_LAZY 18152# define LT_DLLAZY_OR_NOW RTLD_LAZY 18153# else 18154# ifdef DL_LAZY 18155# define LT_DLLAZY_OR_NOW DL_LAZY 18156# else 18157# ifdef RTLD_NOW 18158# define LT_DLLAZY_OR_NOW RTLD_NOW 18159# else 18160# ifdef DL_NOW 18161# define LT_DLLAZY_OR_NOW DL_NOW 18162# else 18163# define LT_DLLAZY_OR_NOW 0 18164# endif 18165# endif 18166# endif 18167# endif 18168#endif 18169 18170/* When -fvisibility=hidden is used, assume the code has been annotated 18171 correspondingly for the symbols needed. */ 18172#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18173int fnord () __attribute__((visibility("default"))); 18174#endif 18175 18176int fnord () { return 42; } 18177int main () 18178{ 18179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18180 int status = $lt_dlunknown; 18181 18182 if (self) 18183 { 18184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18185 else 18186 { 18187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18188 else puts (dlerror ()); 18189 } 18190 /* dlclose (self); */ 18191 } 18192 else 18193 puts (dlerror ()); 18194 18195 return status; 18196} 18197_LT_EOF 18198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18199 (eval $ac_link) 2>&5 18200 ac_status=$? 18201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18202 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18203 (./conftest; exit; ) >&5 2>/dev/null 18204 lt_status=$? 18205 case x$lt_status in 18206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18209 esac 18210 else : 18211 # compilation failed 18212 lt_cv_dlopen_self=no 18213 fi 18214fi 18215rm -fr conftest* 18216 18217 18218fi 18219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18220$as_echo "$lt_cv_dlopen_self" >&6; } 18221 18222 if test yes = "$lt_cv_dlopen_self"; then 18223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18225$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18226if ${lt_cv_dlopen_self_static+:} false; then : 18227 $as_echo_n "(cached) " >&6 18228else 18229 if test yes = "$cross_compiling"; then : 18230 lt_cv_dlopen_self_static=cross 18231else 18232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18233 lt_status=$lt_dlunknown 18234 cat > conftest.$ac_ext <<_LT_EOF 18235#line $LINENO "configure" 18236#include "confdefs.h" 18237 18238#if HAVE_DLFCN_H 18239#include <dlfcn.h> 18240#endif 18241 18242#include <stdio.h> 18243 18244#ifdef RTLD_GLOBAL 18245# define LT_DLGLOBAL RTLD_GLOBAL 18246#else 18247# ifdef DL_GLOBAL 18248# define LT_DLGLOBAL DL_GLOBAL 18249# else 18250# define LT_DLGLOBAL 0 18251# endif 18252#endif 18253 18254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18255 find out it does not work in some platform. */ 18256#ifndef LT_DLLAZY_OR_NOW 18257# ifdef RTLD_LAZY 18258# define LT_DLLAZY_OR_NOW RTLD_LAZY 18259# else 18260# ifdef DL_LAZY 18261# define LT_DLLAZY_OR_NOW DL_LAZY 18262# else 18263# ifdef RTLD_NOW 18264# define LT_DLLAZY_OR_NOW RTLD_NOW 18265# else 18266# ifdef DL_NOW 18267# define LT_DLLAZY_OR_NOW DL_NOW 18268# else 18269# define LT_DLLAZY_OR_NOW 0 18270# endif 18271# endif 18272# endif 18273# endif 18274#endif 18275 18276/* When -fvisibility=hidden is used, assume the code has been annotated 18277 correspondingly for the symbols needed. */ 18278#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18279int fnord () __attribute__((visibility("default"))); 18280#endif 18281 18282int fnord () { return 42; } 18283int main () 18284{ 18285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18286 int status = $lt_dlunknown; 18287 18288 if (self) 18289 { 18290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18291 else 18292 { 18293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18294 else puts (dlerror ()); 18295 } 18296 /* dlclose (self); */ 18297 } 18298 else 18299 puts (dlerror ()); 18300 18301 return status; 18302} 18303_LT_EOF 18304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18305 (eval $ac_link) 2>&5 18306 ac_status=$? 18307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18308 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18309 (./conftest; exit; ) >&5 2>/dev/null 18310 lt_status=$? 18311 case x$lt_status in 18312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18314 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18315 esac 18316 else : 18317 # compilation failed 18318 lt_cv_dlopen_self_static=no 18319 fi 18320fi 18321rm -fr conftest* 18322 18323 18324fi 18325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18326$as_echo "$lt_cv_dlopen_self_static" >&6; } 18327 fi 18328 18329 CPPFLAGS=$save_CPPFLAGS 18330 LDFLAGS=$save_LDFLAGS 18331 LIBS=$save_LIBS 18332 ;; 18333 esac 18334 18335 case $lt_cv_dlopen_self in 18336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18337 *) enable_dlopen_self=unknown ;; 18338 esac 18339 18340 case $lt_cv_dlopen_self_static in 18341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18342 *) enable_dlopen_self_static=unknown ;; 18343 esac 18344fi 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362striplib= 18363old_striplib= 18364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18365$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18366if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18368 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18370$as_echo "yes" >&6; } 18371else 18372# FIXME - insert some real tests, host_os isn't really good enough 18373 case $host_os in 18374 darwin*) 18375 if test -n "$STRIP"; then 18376 striplib="$STRIP -x" 18377 old_striplib="$STRIP -S" 18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18379$as_echo "yes" >&6; } 18380 else 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18382$as_echo "no" >&6; } 18383 fi 18384 ;; 18385 *) 18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18387$as_echo "no" >&6; } 18388 ;; 18389 esac 18390fi 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 # Report what library types will actually be built 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18405$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18407$as_echo "$can_build_shared" >&6; } 18408 18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18410$as_echo_n "checking whether to build shared libraries... " >&6; } 18411 test no = "$can_build_shared" && enable_shared=no 18412 18413 # On AIX, shared libraries and static libraries use the same namespace, and 18414 # are all built from PIC. 18415 case $host_os in 18416 aix3*) 18417 test yes = "$enable_shared" && enable_static=no 18418 if test -n "$RANLIB"; then 18419 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18420 postinstall_cmds='$RANLIB $lib' 18421 fi 18422 ;; 18423 18424 aix[4-9]*) 18425 if test ia64 != "$host_cpu"; then 18426 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18427 yes,aix,yes) ;; # shared object as lib.so file only 18428 yes,svr4,*) ;; # shared object as lib.so archive member only 18429 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18430 esac 18431 fi 18432 ;; 18433 esac 18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18435$as_echo "$enable_shared" >&6; } 18436 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18438$as_echo_n "checking whether to build static libraries... " >&6; } 18439 # Make sure either enable_shared or enable_static is yes. 18440 test yes = "$enable_shared" || enable_static=yes 18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18442$as_echo "$enable_static" >&6; } 18443 18444 18445 18446 18447fi 18448ac_ext=c 18449ac_cpp='$CPP $CPPFLAGS' 18450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18452ac_compiler_gnu=$ac_cv_c_compiler_gnu 18453 18454CC=$lt_save_CC 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 ac_config_commands="$ac_config_commands libtool" 18471 18472 18473 18474 18475# Only expand once: 18476 18477 18478 18479 18480 18481# Define a configure option for an alternate module directory 18482 18483# Check whether --with-xorg-module-dir was given. 18484if test "${with_xorg_module_dir+set}" = set; then : 18485 withval=$with_xorg_module_dir; moduledir="$withval" 18486else 18487 moduledir="$libdir/xorg/modules" 18488fi 18489 18490 18491# Store the list of server defined optional extensions in REQUIRED_MODULES 18492 18493 18494 SAVE_CFLAGS="$CFLAGS" 18495 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497/* end confdefs.h. */ 18498 18499#include "xorg-server.h" 18500#if !defined XV 18501#error XV not defined 18502#endif 18503 18504int 18505main () 18506{ 18507 18508 ; 18509 return 0; 18510} 18511_ACEOF 18512if ac_fn_c_try_compile "$LINENO"; then : 18513 _EXT_CHECK=yes 18514else 18515 _EXT_CHECK=no 18516fi 18517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18518 CFLAGS="$SAVE_CFLAGS" 18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18520$as_echo_n "checking if XV is defined... " >&6; } 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18522$as_echo "$_EXT_CHECK" >&6; } 18523 if test "$_EXT_CHECK" != no; then 18524 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18525 fi 18526 18527 18528 18529 SAVE_CFLAGS="$CFLAGS" 18530 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18532/* end confdefs.h. */ 18533 18534#include "xorg-server.h" 18535#if !defined DPMSExtension 18536#error DPMSExtension not defined 18537#endif 18538 18539int 18540main () 18541{ 18542 18543 ; 18544 return 0; 18545} 18546_ACEOF 18547if ac_fn_c_try_compile "$LINENO"; then : 18548 _EXT_CHECK=yes 18549else 18550 _EXT_CHECK=no 18551fi 18552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18553 CFLAGS="$SAVE_CFLAGS" 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18555$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18557$as_echo "$_EXT_CHECK" >&6; } 18558 if test "$_EXT_CHECK" != no; then 18559 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18560 fi 18561 18562 18563# Obtain compiler/linker options for the driver dependencies 18564 18565pkg_failed=no 18566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18567$as_echo_n "checking for XORG... " >&6; } 18568 18569if test -n "$XORG_CFLAGS"; then 18570 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18571 elif test -n "$PKG_CONFIG"; then 18572 if test -n "$PKG_CONFIG" && \ 18573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18574 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18575 ac_status=$? 18576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18577 test $ac_status = 0; }; then 18578 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18579 test "x$?" != "x0" && pkg_failed=yes 18580else 18581 pkg_failed=yes 18582fi 18583 else 18584 pkg_failed=untried 18585fi 18586if test -n "$XORG_LIBS"; then 18587 pkg_cv_XORG_LIBS="$XORG_LIBS" 18588 elif test -n "$PKG_CONFIG"; then 18589 if test -n "$PKG_CONFIG" && \ 18590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18591 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18592 ac_status=$? 18593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18594 test $ac_status = 0; }; then 18595 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18596 test "x$?" != "x0" && pkg_failed=yes 18597else 18598 pkg_failed=yes 18599fi 18600 else 18601 pkg_failed=untried 18602fi 18603 18604 18605 18606if test $pkg_failed = yes; then 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18608$as_echo "no" >&6; } 18609 18610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18611 _pkg_short_errors_supported=yes 18612else 18613 _pkg_short_errors_supported=no 18614fi 18615 if test $_pkg_short_errors_supported = yes; then 18616 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18617 else 18618 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18619 fi 18620 # Put the nasty error message in config.log where it belongs 18621 echo "$XORG_PKG_ERRORS" >&5 18622 18623 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 18624 18625$XORG_PKG_ERRORS 18626 18627Consider adjusting the PKG_CONFIG_PATH environment variable if you 18628installed software in a non-standard prefix. 18629 18630Alternatively, you may set the environment variables XORG_CFLAGS 18631and XORG_LIBS to avoid the need to call pkg-config. 18632See the pkg-config man page for more details." "$LINENO" 5 18633elif test $pkg_failed = untried; then 18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18635$as_echo "no" >&6; } 18636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18638as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18639is in your PATH or set the PKG_CONFIG environment variable to the full 18640path to pkg-config. 18641 18642Alternatively, you may set the environment variables XORG_CFLAGS 18643and XORG_LIBS to avoid the need to call pkg-config. 18644See the pkg-config man page for more details. 18645 18646To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18647See \`config.log' for more details" "$LINENO" 5; } 18648else 18649 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18650 XORG_LIBS=$pkg_cv_XORG_LIBS 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18652$as_echo "yes" >&6; } 18653 18654fi 18655 18656pkg_failed=no 18657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18658$as_echo_n "checking for XEXT... " >&6; } 18659 18660if test -n "$XEXT_CFLAGS"; then 18661 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18662 elif test -n "$PKG_CONFIG"; then 18663 if test -n "$PKG_CONFIG" && \ 18664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18665 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18666 ac_status=$? 18667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18668 test $ac_status = 0; }; then 18669 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 18670 test "x$?" != "x0" && pkg_failed=yes 18671else 18672 pkg_failed=yes 18673fi 18674 else 18675 pkg_failed=untried 18676fi 18677if test -n "$XEXT_LIBS"; then 18678 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18679 elif test -n "$PKG_CONFIG"; then 18680 if test -n "$PKG_CONFIG" && \ 18681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18682 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18683 ac_status=$? 18684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18685 test $ac_status = 0; }; then 18686 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 18687 test "x$?" != "x0" && pkg_failed=yes 18688else 18689 pkg_failed=yes 18690fi 18691 else 18692 pkg_failed=untried 18693fi 18694 18695 18696 18697if test $pkg_failed = yes; then 18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18699$as_echo "no" >&6; } 18700 18701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18702 _pkg_short_errors_supported=yes 18703else 18704 _pkg_short_errors_supported=no 18705fi 18706 if test $_pkg_short_errors_supported = yes; then 18707 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18708 else 18709 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18710 fi 18711 # Put the nasty error message in config.log where it belongs 18712 echo "$XEXT_PKG_ERRORS" >&5 18713 18714 HAVE_XEXTPROTO_71="no" 18715elif test $pkg_failed = untried; then 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18717$as_echo "no" >&6; } 18718 HAVE_XEXTPROTO_71="no" 18719else 18720 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18721 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18723$as_echo "yes" >&6; } 18724 HAVE_XEXTPROTO_71="yes"; 18725$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18726 18727fi 18728 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18729 HAVE_XEXTPROTO_71_TRUE= 18730 HAVE_XEXTPROTO_71_FALSE='#' 18731else 18732 HAVE_XEXTPROTO_71_TRUE='#' 18733 HAVE_XEXTPROTO_71_FALSE= 18734fi 18735 18736 18737# Checks for libraries. 18738SAVE_CPPFLAGS="$CPPFLAGS" 18739CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18740ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18741" 18742if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18743 XSERVER_LIBPCIACCESS=yes 18744else 18745 XSERVER_LIBPCIACCESS=no 18746fi 18747 18748ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\" 18749" 18750if test "x$ac_cv_header_xf86Modes_h" = xyes; then : 18751 XMODES=yes 18752else 18753 XMODES=no 18754fi 18755 18756 18757CPPFLAGS="$SAVE_CPPFLAGS" 18758 18759if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18760 18761pkg_failed=no 18762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18763$as_echo_n "checking for PCIACCESS... " >&6; } 18764 18765if test -n "$PCIACCESS_CFLAGS"; then 18766 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18767 elif test -n "$PKG_CONFIG"; then 18768 if test -n "$PKG_CONFIG" && \ 18769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18770 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18771 ac_status=$? 18772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18773 test $ac_status = 0; }; then 18774 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18775 test "x$?" != "x0" && pkg_failed=yes 18776else 18777 pkg_failed=yes 18778fi 18779 else 18780 pkg_failed=untried 18781fi 18782if test -n "$PCIACCESS_LIBS"; then 18783 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18784 elif test -n "$PKG_CONFIG"; then 18785 if test -n "$PKG_CONFIG" && \ 18786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18787 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18788 ac_status=$? 18789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18790 test $ac_status = 0; }; then 18791 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18792 test "x$?" != "x0" && pkg_failed=yes 18793else 18794 pkg_failed=yes 18795fi 18796 else 18797 pkg_failed=untried 18798fi 18799 18800 18801 18802if test $pkg_failed = yes; then 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18804$as_echo "no" >&6; } 18805 18806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18807 _pkg_short_errors_supported=yes 18808else 18809 _pkg_short_errors_supported=no 18810fi 18811 if test $_pkg_short_errors_supported = yes; then 18812 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18813 else 18814 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18815 fi 18816 # Put the nasty error message in config.log where it belongs 18817 echo "$PCIACCESS_PKG_ERRORS" >&5 18818 18819 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18820 18821$PCIACCESS_PKG_ERRORS 18822 18823Consider adjusting the PKG_CONFIG_PATH environment variable if you 18824installed software in a non-standard prefix. 18825 18826Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18827and PCIACCESS_LIBS to avoid the need to call pkg-config. 18828See the pkg-config man page for more details." "$LINENO" 5 18829elif test $pkg_failed = untried; then 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18831$as_echo "no" >&6; } 18832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18834as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18835is in your PATH or set the PKG_CONFIG environment variable to the full 18836path to pkg-config. 18837 18838Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18839and PCIACCESS_LIBS to avoid the need to call pkg-config. 18840See the pkg-config man page for more details. 18841 18842To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18843See \`config.log' for more details" "$LINENO" 5; } 18844else 18845 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18846 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18848$as_echo "yes" >&6; } 18849 18850fi 18851fi 18852 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18853 XSERVER_LIBPCIACCESS_TRUE= 18854 XSERVER_LIBPCIACCESS_FALSE='#' 18855else 18856 XSERVER_LIBPCIACCESS_TRUE='#' 18857 XSERVER_LIBPCIACCESS_FALSE= 18858fi 18859 18860 if test "x$XMODES" = xyes; then 18861 XMODES_TRUE= 18862 XMODES_FALSE='#' 18863else 18864 XMODES_TRUE='#' 18865 XMODES_FALSE= 18866fi 18867 18868 18869if test "x$XMODES" = xyes; then 18870 18871$as_echo "#define HAVE_XMODES 1" >>confdefs.h 18872 18873fi 18874# Check whether --enable-xaa was given. 18875if test "${enable_xaa+set}" = set; then : 18876 enableval=$enable_xaa; XAA="$enableval" 18877else 18878 XAA=auto 18879fi 18880 18881if test "x$XAA" != xno; then 18882 save_CFLAGS=$CFLAGS 18883 save_CPPFLAGS=$CPPFLAGS 18884 CFLAGS=$XORG_CFLAGS 18885 CPPFLAGS="$XORG_CFLAGS" 18886 for ac_header in xaa.h 18887do : 18888 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18889if test "x$ac_cv_header_xaa_h" = xyes; then : 18890 cat >>confdefs.h <<_ACEOF 18891#define HAVE_XAA_H 1 18892_ACEOF 18893 XAA=yes 18894else 18895 XAA=no 18896fi 18897 18898done 18899 18900 CFLAGS=$save_CFLAGS 18901 CPPFLAGS=$save_CPPFLAGS 18902fi 18903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18904$as_echo_n "checking whether to include XAA support... " >&6; } 18905 if test "x$XAA" = xyes; then 18906 XAA_TRUE= 18907 XAA_FALSE='#' 18908else 18909 XAA_TRUE='#' 18910 XAA_FALSE= 18911fi 18912 18913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18914$as_echo "$XAA" >&6; } 18915 18916 18917 18918DRIVER_NAME=siliconmotion 18919 18920 18921ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18922 18923cat >confcache <<\_ACEOF 18924# This file is a shell script that caches the results of configure 18925# tests run on this system so they can be shared between configure 18926# scripts and configure runs, see configure's option --config-cache. 18927# It is not useful on other systems. If it contains results you don't 18928# want to keep, you may remove or edit it. 18929# 18930# config.status only pays attention to the cache file if you give it 18931# the --recheck option to rerun configure. 18932# 18933# `ac_cv_env_foo' variables (set or unset) will be overridden when 18934# loading this file, other *unset* `ac_cv_foo' will be assigned the 18935# following values. 18936 18937_ACEOF 18938 18939# The following way of writing the cache mishandles newlines in values, 18940# but we know of no workaround that is simple, portable, and efficient. 18941# So, we kill variables containing newlines. 18942# Ultrix sh set writes to stderr and can't be redirected directly, 18943# and sets the high bit in the cache file unless we assign to the vars. 18944( 18945 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18946 eval ac_val=\$$ac_var 18947 case $ac_val in #( 18948 *${as_nl}*) 18949 case $ac_var in #( 18950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18951$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18952 esac 18953 case $ac_var in #( 18954 _ | IFS | as_nl) ;; #( 18955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18956 *) { eval $ac_var=; unset $ac_var;} ;; 18957 esac ;; 18958 esac 18959 done 18960 18961 (set) 2>&1 | 18962 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18963 *${as_nl}ac_space=\ *) 18964 # `set' does not quote correctly, so add quotes: double-quote 18965 # substitution turns \\\\ into \\, and sed turns \\ into \. 18966 sed -n \ 18967 "s/'/'\\\\''/g; 18968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18969 ;; #( 18970 *) 18971 # `set' quotes correctly as required by POSIX, so do not add quotes. 18972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18973 ;; 18974 esac | 18975 sort 18976) | 18977 sed ' 18978 /^ac_cv_env_/b end 18979 t clear 18980 :clear 18981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18982 t end 18983 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18984 :end' >>confcache 18985if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18986 if test -w "$cache_file"; then 18987 if test "x$cache_file" != "x/dev/null"; then 18988 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18989$as_echo "$as_me: updating cache $cache_file" >&6;} 18990 if test ! -f "$cache_file" || test -h "$cache_file"; then 18991 cat confcache >"$cache_file" 18992 else 18993 case $cache_file in #( 18994 */* | ?:*) 18995 mv -f confcache "$cache_file"$$ && 18996 mv -f "$cache_file"$$ "$cache_file" ;; #( 18997 *) 18998 mv -f confcache "$cache_file" ;; 18999 esac 19000 fi 19001 fi 19002 else 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19004$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19005 fi 19006fi 19007rm -f confcache 19008 19009test "x$prefix" = xNONE && prefix=$ac_default_prefix 19010# Let make expand exec_prefix. 19011test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19012 19013DEFS=-DHAVE_CONFIG_H 19014 19015ac_libobjs= 19016ac_ltlibobjs= 19017U= 19018for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19019 # 1. Remove the extension, and $U if already installed. 19020 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19021 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19023 # will be set to the directory where LIBOBJS objects are built. 19024 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19025 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19026done 19027LIBOBJS=$ac_libobjs 19028 19029LTLIBOBJS=$ac_ltlibobjs 19030 19031 19032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19033$as_echo_n "checking that generated files are newer than configure... " >&6; } 19034 if test -n "$am_sleep_pid"; then 19035 # Hide warnings about reused PIDs. 19036 wait $am_sleep_pid 2>/dev/null 19037 fi 19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19039$as_echo "done" >&6; } 19040if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19041 as_fn_error $? "conditional \"AMDEP\" was never defined. 19042Usually this means the macro was only invoked conditionally." "$LINENO" 5 19043fi 19044if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19045 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19046Usually this means the macro was only invoked conditionally." "$LINENO" 5 19047fi 19048 if test -n "$EXEEXT"; then 19049 am__EXEEXT_TRUE= 19050 am__EXEEXT_FALSE='#' 19051else 19052 am__EXEEXT_TRUE='#' 19053 am__EXEEXT_FALSE= 19054fi 19055 19056if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19057 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19058Usually this means the macro was only invoked conditionally." "$LINENO" 5 19059fi 19060if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19061 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19062Usually this means the macro was only invoked conditionally." "$LINENO" 5 19063fi 19064if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19065 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19066Usually this means the macro was only invoked conditionally." "$LINENO" 5 19067fi 19068if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then 19069 as_fn_error $? "conditional \"XMODES\" was never defined. 19070Usually this means the macro was only invoked conditionally." "$LINENO" 5 19071fi 19072if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19073 as_fn_error $? "conditional \"XAA\" was never defined. 19074Usually this means the macro was only invoked conditionally." "$LINENO" 5 19075fi 19076 19077: "${CONFIG_STATUS=./config.status}" 19078ac_write_fail=0 19079ac_clean_files_save=$ac_clean_files 19080ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19081{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19082$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19083as_write_fail=0 19084cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19085#! $SHELL 19086# Generated by $as_me. 19087# Run this file to recreate the current configuration. 19088# Compiler output produced by configure, useful for debugging 19089# configure, is in config.log if it exists. 19090 19091debug=false 19092ac_cs_recheck=false 19093ac_cs_silent=false 19094 19095SHELL=\${CONFIG_SHELL-$SHELL} 19096export SHELL 19097_ASEOF 19098cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19099## -------------------- ## 19100## M4sh Initialization. ## 19101## -------------------- ## 19102 19103# Be more Bourne compatible 19104DUALCASE=1; export DUALCASE # for MKS sh 19105if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19106 emulate sh 19107 NULLCMD=: 19108 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19109 # is contrary to our usage. Disable this feature. 19110 alias -g '${1+"$@"}'='"$@"' 19111 setopt NO_GLOB_SUBST 19112else 19113 case `(set -o) 2>/dev/null` in #( 19114 *posix*) : 19115 set -o posix ;; #( 19116 *) : 19117 ;; 19118esac 19119fi 19120 19121 19122as_nl=' 19123' 19124export as_nl 19125# Printing a long string crashes Solaris 7 /usr/bin/printf. 19126as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19127as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19128as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19129# Prefer a ksh shell builtin over an external printf program on Solaris, 19130# but without wasting forks for bash or zsh. 19131if test -z "$BASH_VERSION$ZSH_VERSION" \ 19132 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19133 as_echo='print -r --' 19134 as_echo_n='print -rn --' 19135elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19136 as_echo='printf %s\n' 19137 as_echo_n='printf %s' 19138else 19139 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19140 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19141 as_echo_n='/usr/ucb/echo -n' 19142 else 19143 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19144 as_echo_n_body='eval 19145 arg=$1; 19146 case $arg in #( 19147 *"$as_nl"*) 19148 expr "X$arg" : "X\\(.*\\)$as_nl"; 19149 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19150 esac; 19151 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19152 ' 19153 export as_echo_n_body 19154 as_echo_n='sh -c $as_echo_n_body as_echo' 19155 fi 19156 export as_echo_body 19157 as_echo='sh -c $as_echo_body as_echo' 19158fi 19159 19160# The user is always right. 19161if test "${PATH_SEPARATOR+set}" != set; then 19162 PATH_SEPARATOR=: 19163 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19164 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19165 PATH_SEPARATOR=';' 19166 } 19167fi 19168 19169 19170# IFS 19171# We need space, tab and new line, in precisely that order. Quoting is 19172# there to prevent editors from complaining about space-tab. 19173# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19174# splitting by setting IFS to empty value.) 19175IFS=" "" $as_nl" 19176 19177# Find who we are. Look in the path if we contain no directory separator. 19178as_myself= 19179case $0 in #(( 19180 *[\\/]* ) as_myself=$0 ;; 19181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19182for as_dir in $PATH 19183do 19184 IFS=$as_save_IFS 19185 test -z "$as_dir" && as_dir=. 19186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19187 done 19188IFS=$as_save_IFS 19189 19190 ;; 19191esac 19192# We did not find ourselves, most probably we were run as `sh COMMAND' 19193# in which case we are not to be found in the path. 19194if test "x$as_myself" = x; then 19195 as_myself=$0 19196fi 19197if test ! -f "$as_myself"; then 19198 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19199 exit 1 19200fi 19201 19202# Unset variables that we do not need and which cause bugs (e.g. in 19203# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19204# suppresses any "Segmentation fault" message there. '((' could 19205# trigger a bug in pdksh 5.2.14. 19206for as_var in BASH_ENV ENV MAIL MAILPATH 19207do eval test x\${$as_var+set} = xset \ 19208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19209done 19210PS1='$ ' 19211PS2='> ' 19212PS4='+ ' 19213 19214# NLS nuisances. 19215LC_ALL=C 19216export LC_ALL 19217LANGUAGE=C 19218export LANGUAGE 19219 19220# CDPATH. 19221(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19222 19223 19224# as_fn_error STATUS ERROR [LINENO LOG_FD] 19225# ---------------------------------------- 19226# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19227# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19228# script with STATUS, using 1 if that was 0. 19229as_fn_error () 19230{ 19231 as_status=$1; test $as_status -eq 0 && as_status=1 19232 if test "$4"; then 19233 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19234 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19235 fi 19236 $as_echo "$as_me: error: $2" >&2 19237 as_fn_exit $as_status 19238} # as_fn_error 19239 19240 19241# as_fn_set_status STATUS 19242# ----------------------- 19243# Set $? to STATUS, without forking. 19244as_fn_set_status () 19245{ 19246 return $1 19247} # as_fn_set_status 19248 19249# as_fn_exit STATUS 19250# ----------------- 19251# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19252as_fn_exit () 19253{ 19254 set +e 19255 as_fn_set_status $1 19256 exit $1 19257} # as_fn_exit 19258 19259# as_fn_unset VAR 19260# --------------- 19261# Portably unset VAR. 19262as_fn_unset () 19263{ 19264 { eval $1=; unset $1;} 19265} 19266as_unset=as_fn_unset 19267# as_fn_append VAR VALUE 19268# ---------------------- 19269# Append the text in VALUE to the end of the definition contained in VAR. Take 19270# advantage of any shell optimizations that allow amortized linear growth over 19271# repeated appends, instead of the typical quadratic growth present in naive 19272# implementations. 19273if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19274 eval 'as_fn_append () 19275 { 19276 eval $1+=\$2 19277 }' 19278else 19279 as_fn_append () 19280 { 19281 eval $1=\$$1\$2 19282 } 19283fi # as_fn_append 19284 19285# as_fn_arith ARG... 19286# ------------------ 19287# Perform arithmetic evaluation on the ARGs, and store the result in the 19288# global $as_val. Take advantage of shells that can avoid forks. The arguments 19289# must be portable across $(()) and expr. 19290if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19291 eval 'as_fn_arith () 19292 { 19293 as_val=$(( $* )) 19294 }' 19295else 19296 as_fn_arith () 19297 { 19298 as_val=`expr "$@" || test $? -eq 1` 19299 } 19300fi # as_fn_arith 19301 19302 19303if expr a : '\(a\)' >/dev/null 2>&1 && 19304 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19305 as_expr=expr 19306else 19307 as_expr=false 19308fi 19309 19310if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19311 as_basename=basename 19312else 19313 as_basename=false 19314fi 19315 19316if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19317 as_dirname=dirname 19318else 19319 as_dirname=false 19320fi 19321 19322as_me=`$as_basename -- "$0" || 19323$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19324 X"$0" : 'X\(//\)$' \| \ 19325 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19326$as_echo X/"$0" | 19327 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19328 s//\1/ 19329 q 19330 } 19331 /^X\/\(\/\/\)$/{ 19332 s//\1/ 19333 q 19334 } 19335 /^X\/\(\/\).*/{ 19336 s//\1/ 19337 q 19338 } 19339 s/.*/./; q'` 19340 19341# Avoid depending upon Character Ranges. 19342as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19343as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19344as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19345as_cr_digits='0123456789' 19346as_cr_alnum=$as_cr_Letters$as_cr_digits 19347 19348ECHO_C= ECHO_N= ECHO_T= 19349case `echo -n x` in #((((( 19350-n*) 19351 case `echo 'xy\c'` in 19352 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19353 xy) ECHO_C='\c';; 19354 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19355 ECHO_T=' ';; 19356 esac;; 19357*) 19358 ECHO_N='-n';; 19359esac 19360 19361rm -f conf$$ conf$$.exe conf$$.file 19362if test -d conf$$.dir; then 19363 rm -f conf$$.dir/conf$$.file 19364else 19365 rm -f conf$$.dir 19366 mkdir conf$$.dir 2>/dev/null 19367fi 19368if (echo >conf$$.file) 2>/dev/null; then 19369 if ln -s conf$$.file conf$$ 2>/dev/null; then 19370 as_ln_s='ln -s' 19371 # ... but there are two gotchas: 19372 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19373 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19374 # In both cases, we have to default to `cp -pR'. 19375 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19376 as_ln_s='cp -pR' 19377 elif ln conf$$.file conf$$ 2>/dev/null; then 19378 as_ln_s=ln 19379 else 19380 as_ln_s='cp -pR' 19381 fi 19382else 19383 as_ln_s='cp -pR' 19384fi 19385rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19386rmdir conf$$.dir 2>/dev/null 19387 19388 19389# as_fn_mkdir_p 19390# ------------- 19391# Create "$as_dir" as a directory, including parents if necessary. 19392as_fn_mkdir_p () 19393{ 19394 19395 case $as_dir in #( 19396 -*) as_dir=./$as_dir;; 19397 esac 19398 test -d "$as_dir" || eval $as_mkdir_p || { 19399 as_dirs= 19400 while :; do 19401 case $as_dir in #( 19402 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19403 *) as_qdir=$as_dir;; 19404 esac 19405 as_dirs="'$as_qdir' $as_dirs" 19406 as_dir=`$as_dirname -- "$as_dir" || 19407$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19408 X"$as_dir" : 'X\(//\)[^/]' \| \ 19409 X"$as_dir" : 'X\(//\)$' \| \ 19410 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19411$as_echo X"$as_dir" | 19412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19413 s//\1/ 19414 q 19415 } 19416 /^X\(\/\/\)[^/].*/{ 19417 s//\1/ 19418 q 19419 } 19420 /^X\(\/\/\)$/{ 19421 s//\1/ 19422 q 19423 } 19424 /^X\(\/\).*/{ 19425 s//\1/ 19426 q 19427 } 19428 s/.*/./; q'` 19429 test -d "$as_dir" && break 19430 done 19431 test -z "$as_dirs" || eval "mkdir $as_dirs" 19432 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19433 19434 19435} # as_fn_mkdir_p 19436if mkdir -p . 2>/dev/null; then 19437 as_mkdir_p='mkdir -p "$as_dir"' 19438else 19439 test -d ./-p && rmdir ./-p 19440 as_mkdir_p=false 19441fi 19442 19443 19444# as_fn_executable_p FILE 19445# ----------------------- 19446# Test if FILE is an executable regular file. 19447as_fn_executable_p () 19448{ 19449 test -f "$1" && test -x "$1" 19450} # as_fn_executable_p 19451as_test_x='test -x' 19452as_executable_p=as_fn_executable_p 19453 19454# Sed expression to map a string onto a valid CPP name. 19455as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19456 19457# Sed expression to map a string onto a valid variable name. 19458as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19459 19460 19461exec 6>&1 19462## ----------------------------------- ## 19463## Main body of $CONFIG_STATUS script. ## 19464## ----------------------------------- ## 19465_ASEOF 19466test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19467 19468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19469# Save the log message, to keep $0 and so on meaningful, and to 19470# report actual input values of CONFIG_FILES etc. instead of their 19471# values after options handling. 19472ac_log=" 19473This file was extended by xf86-video-siliconmotion $as_me 1.7.9, which was 19474generated by GNU Autoconf 2.69. Invocation command line was 19475 19476 CONFIG_FILES = $CONFIG_FILES 19477 CONFIG_HEADERS = $CONFIG_HEADERS 19478 CONFIG_LINKS = $CONFIG_LINKS 19479 CONFIG_COMMANDS = $CONFIG_COMMANDS 19480 $ $0 $@ 19481 19482on `(hostname || uname -n) 2>/dev/null | sed 1q` 19483" 19484 19485_ACEOF 19486 19487case $ac_config_files in *" 19488"*) set x $ac_config_files; shift; ac_config_files=$*;; 19489esac 19490 19491case $ac_config_headers in *" 19492"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19493esac 19494 19495 19496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19497# Files that config.status was made for. 19498config_files="$ac_config_files" 19499config_headers="$ac_config_headers" 19500config_commands="$ac_config_commands" 19501 19502_ACEOF 19503 19504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19505ac_cs_usage="\ 19506\`$as_me' instantiates files and other configuration actions 19507from templates according to the current configuration. Unless the files 19508and actions are specified as TAGs, all are instantiated by default. 19509 19510Usage: $0 [OPTION]... [TAG]... 19511 19512 -h, --help print this help, then exit 19513 -V, --version print version number and configuration settings, then exit 19514 --config print configuration, then exit 19515 -q, --quiet, --silent 19516 do not print progress messages 19517 -d, --debug don't remove temporary files 19518 --recheck update $as_me by reconfiguring in the same conditions 19519 --file=FILE[:TEMPLATE] 19520 instantiate the configuration file FILE 19521 --header=FILE[:TEMPLATE] 19522 instantiate the configuration header FILE 19523 19524Configuration files: 19525$config_files 19526 19527Configuration headers: 19528$config_headers 19529 19530Configuration commands: 19531$config_commands 19532 19533Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>." 19534 19535_ACEOF 19536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19537ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19538ac_cs_version="\\ 19539xf86-video-siliconmotion config.status 1.7.9 19540configured by $0, generated by GNU Autoconf 2.69, 19541 with options \\"\$ac_cs_config\\" 19542 19543Copyright (C) 2012 Free Software Foundation, Inc. 19544This config.status script is free software; the Free Software Foundation 19545gives unlimited permission to copy, distribute and modify it." 19546 19547ac_pwd='$ac_pwd' 19548srcdir='$srcdir' 19549INSTALL='$INSTALL' 19550MKDIR_P='$MKDIR_P' 19551AWK='$AWK' 19552test -n "\$AWK" || AWK=awk 19553_ACEOF 19554 19555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19556# The default lists apply if the user does not specify any file. 19557ac_need_defaults=: 19558while test $# != 0 19559do 19560 case $1 in 19561 --*=?*) 19562 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19564 ac_shift=: 19565 ;; 19566 --*=) 19567 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19568 ac_optarg= 19569 ac_shift=: 19570 ;; 19571 *) 19572 ac_option=$1 19573 ac_optarg=$2 19574 ac_shift=shift 19575 ;; 19576 esac 19577 19578 case $ac_option in 19579 # Handling of the options. 19580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19581 ac_cs_recheck=: ;; 19582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19583 $as_echo "$ac_cs_version"; exit ;; 19584 --config | --confi | --conf | --con | --co | --c ) 19585 $as_echo "$ac_cs_config"; exit ;; 19586 --debug | --debu | --deb | --de | --d | -d ) 19587 debug=: ;; 19588 --file | --fil | --fi | --f ) 19589 $ac_shift 19590 case $ac_optarg in 19591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19592 '') as_fn_error $? "missing file argument" ;; 19593 esac 19594 as_fn_append CONFIG_FILES " '$ac_optarg'" 19595 ac_need_defaults=false;; 19596 --header | --heade | --head | --hea ) 19597 $ac_shift 19598 case $ac_optarg in 19599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19600 esac 19601 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19602 ac_need_defaults=false;; 19603 --he | --h) 19604 # Conflict between --help and --header 19605 as_fn_error $? "ambiguous option: \`$1' 19606Try \`$0 --help' for more information.";; 19607 --help | --hel | -h ) 19608 $as_echo "$ac_cs_usage"; exit ;; 19609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19610 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19611 ac_cs_silent=: ;; 19612 19613 # This is an error. 19614 -*) as_fn_error $? "unrecognized option: \`$1' 19615Try \`$0 --help' for more information." ;; 19616 19617 *) as_fn_append ac_config_targets " $1" 19618 ac_need_defaults=false ;; 19619 19620 esac 19621 shift 19622done 19623 19624ac_configure_extra_args= 19625 19626if $ac_cs_silent; then 19627 exec 6>/dev/null 19628 ac_configure_extra_args="$ac_configure_extra_args --silent" 19629fi 19630 19631_ACEOF 19632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19633if \$ac_cs_recheck; then 19634 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19635 shift 19636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19637 CONFIG_SHELL='$SHELL' 19638 export CONFIG_SHELL 19639 exec "\$@" 19640fi 19641 19642_ACEOF 19643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19644exec 5>>config.log 19645{ 19646 echo 19647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19648## Running $as_me. ## 19649_ASBOX 19650 $as_echo "$ac_log" 19651} >&5 19652 19653_ACEOF 19654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19655# 19656# INIT-COMMANDS 19657# 19658AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19659 19660 19661# The HP-UX ksh and POSIX shell print the target directory to stdout 19662# if CDPATH is set. 19663(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19664 19665sed_quote_subst='$sed_quote_subst' 19666double_quote_subst='$double_quote_subst' 19667delay_variable_subst='$delay_variable_subst' 19668enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19669macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19670macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19671enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19672pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19673enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19674shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19675SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19676ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19677PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19678host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19679host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19680host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19681build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19682build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19683build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19684SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19685Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19686GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19687EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19688FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19689LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19690NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19691LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19692max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19693ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19694exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19695lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19696lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19697lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19698lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19699lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19700reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19701reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19702OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19703deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19704file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19705file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19706want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19707DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19708sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19709AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19710AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19711archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19712STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19713RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19714old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19715old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19716old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19717lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19718CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19719CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19720compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19721GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19722lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19723lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19724lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19725lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19726lt_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"`' 19727lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19728nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19729lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19730lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19731objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19732MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19733lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19734lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19735lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19736lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19737lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19738need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19739MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19740DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19741NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19742LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19743OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19744OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19745libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19746shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19747extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19748archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19749enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19750export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19751whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19752compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19753old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19754old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19755archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19756archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19757module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19758module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19759with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19760allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19761no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19762hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19763hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19764hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19765hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19766hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19767hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19768hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19769inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19770link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19771always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19772export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19773exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19774include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19775prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19776postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19777file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19778variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19779need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19780need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19781version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19782runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19783shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19784shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19785libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19786library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19787soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19788install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19789postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19790postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19791finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19792finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19793hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19794sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19795configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19796configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19797hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19798enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19799enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19800enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19801old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19802striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19803 19804LTCC='$LTCC' 19805LTCFLAGS='$LTCFLAGS' 19806compiler='$compiler_DEFAULT' 19807 19808# A function that is used when there is no print builtin or printf. 19809func_fallback_echo () 19810{ 19811 eval 'cat <<_LTECHO_EOF 19812\$1 19813_LTECHO_EOF' 19814} 19815 19816# Quote evaled strings. 19817for var in SHELL \ 19818ECHO \ 19819PATH_SEPARATOR \ 19820SED \ 19821GREP \ 19822EGREP \ 19823FGREP \ 19824LD \ 19825NM \ 19826LN_S \ 19827lt_SP2NL \ 19828lt_NL2SP \ 19829reload_flag \ 19830OBJDUMP \ 19831deplibs_check_method \ 19832file_magic_cmd \ 19833file_magic_glob \ 19834want_nocaseglob \ 19835DLLTOOL \ 19836sharedlib_from_linklib_cmd \ 19837AR \ 19838AR_FLAGS \ 19839archiver_list_spec \ 19840STRIP \ 19841RANLIB \ 19842CC \ 19843CFLAGS \ 19844compiler \ 19845lt_cv_sys_global_symbol_pipe \ 19846lt_cv_sys_global_symbol_to_cdecl \ 19847lt_cv_sys_global_symbol_to_import \ 19848lt_cv_sys_global_symbol_to_c_name_address \ 19849lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19850lt_cv_nm_interface \ 19851nm_file_list_spec \ 19852lt_cv_truncate_bin \ 19853lt_prog_compiler_no_builtin_flag \ 19854lt_prog_compiler_pic \ 19855lt_prog_compiler_wl \ 19856lt_prog_compiler_static \ 19857lt_cv_prog_compiler_c_o \ 19858need_locks \ 19859MANIFEST_TOOL \ 19860DSYMUTIL \ 19861NMEDIT \ 19862LIPO \ 19863OTOOL \ 19864OTOOL64 \ 19865shrext_cmds \ 19866export_dynamic_flag_spec \ 19867whole_archive_flag_spec \ 19868compiler_needs_object \ 19869with_gnu_ld \ 19870allow_undefined_flag \ 19871no_undefined_flag \ 19872hardcode_libdir_flag_spec \ 19873hardcode_libdir_separator \ 19874exclude_expsyms \ 19875include_expsyms \ 19876file_list_spec \ 19877variables_saved_for_relink \ 19878libname_spec \ 19879library_names_spec \ 19880soname_spec \ 19881install_override_mode \ 19882finish_eval \ 19883old_striplib \ 19884striplib; do 19885 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19886 *[\\\\\\\`\\"\\\$]*) 19887 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19888 ;; 19889 *) 19890 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19891 ;; 19892 esac 19893done 19894 19895# Double-quote double-evaled strings. 19896for var in reload_cmds \ 19897old_postinstall_cmds \ 19898old_postuninstall_cmds \ 19899old_archive_cmds \ 19900extract_expsyms_cmds \ 19901old_archive_from_new_cmds \ 19902old_archive_from_expsyms_cmds \ 19903archive_cmds \ 19904archive_expsym_cmds \ 19905module_cmds \ 19906module_expsym_cmds \ 19907export_symbols_cmds \ 19908prelink_cmds \ 19909postlink_cmds \ 19910postinstall_cmds \ 19911postuninstall_cmds \ 19912finish_cmds \ 19913sys_lib_search_path_spec \ 19914configure_time_dlsearch_path \ 19915configure_time_lt_sys_library_path; do 19916 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19917 *[\\\\\\\`\\"\\\$]*) 19918 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19919 ;; 19920 *) 19921 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19922 ;; 19923 esac 19924done 19925 19926ac_aux_dir='$ac_aux_dir' 19927 19928# See if we are running on zsh, and set the options that allow our 19929# commands through without removal of \ escapes INIT. 19930if test -n "\${ZSH_VERSION+set}"; then 19931 setopt NO_GLOB_SUBST 19932fi 19933 19934 19935 PACKAGE='$PACKAGE' 19936 VERSION='$VERSION' 19937 RM='$RM' 19938 ofile='$ofile' 19939 19940 19941 19942 19943_ACEOF 19944 19945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19946 19947# Handling of arguments. 19948for ac_config_target in $ac_config_targets 19949do 19950 case $ac_config_target in 19951 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19952 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19953 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19954 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19955 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19956 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19957 19958 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19959 esac 19960done 19961 19962 19963# If the user did not use the arguments to specify the items to instantiate, 19964# then the envvar interface is used. Set only those that are not. 19965# We use the long form for the default assignment because of an extremely 19966# bizarre bug on SunOS 4.1.3. 19967if $ac_need_defaults; then 19968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19971fi 19972 19973# Have a temporary directory for convenience. Make it in the build tree 19974# simply because there is no reason against having it here, and in addition, 19975# creating and moving files from /tmp can sometimes cause problems. 19976# Hook for its removal unless debugging. 19977# Note that there is a small window in which the directory will not be cleaned: 19978# after its creation but before its name has been assigned to `$tmp'. 19979$debug || 19980{ 19981 tmp= ac_tmp= 19982 trap 'exit_status=$? 19983 : "${ac_tmp:=$tmp}" 19984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19985' 0 19986 trap 'as_fn_exit 1' 1 2 13 15 19987} 19988# Create a (secure) tmp directory for tmp files. 19989 19990{ 19991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19992 test -d "$tmp" 19993} || 19994{ 19995 tmp=./conf$$-$RANDOM 19996 (umask 077 && mkdir "$tmp") 19997} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19998ac_tmp=$tmp 19999 20000# Set up the scripts for CONFIG_FILES section. 20001# No need to generate them if there are no CONFIG_FILES. 20002# This happens for instance with `./config.status config.h'. 20003if test -n "$CONFIG_FILES"; then 20004 20005 20006ac_cr=`echo X | tr X '\015'` 20007# On cygwin, bash can eat \r inside `` if the user requested igncr. 20008# But we know of no other shell where ac_cr would be empty at this 20009# point, so we can use a bashism as a fallback. 20010if test "x$ac_cr" = x; then 20011 eval ac_cr=\$\'\\r\' 20012fi 20013ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20014if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20015 ac_cs_awk_cr='\\r' 20016else 20017 ac_cs_awk_cr=$ac_cr 20018fi 20019 20020echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20021_ACEOF 20022 20023 20024{ 20025 echo "cat >conf$$subs.awk <<_ACEOF" && 20026 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20027 echo "_ACEOF" 20028} >conf$$subs.sh || 20029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20030ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20031ac_delim='%!_!# ' 20032for ac_last_try in false false false false false :; do 20033 . ./conf$$subs.sh || 20034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20035 20036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20037 if test $ac_delim_n = $ac_delim_num; then 20038 break 20039 elif $ac_last_try; then 20040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20041 else 20042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20043 fi 20044done 20045rm -f conf$$subs.sh 20046 20047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20048cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20049_ACEOF 20050sed -n ' 20051h 20052s/^/S["/; s/!.*/"]=/ 20053p 20054g 20055s/^[^!]*!// 20056:repl 20057t repl 20058s/'"$ac_delim"'$// 20059t delim 20060:nl 20061h 20062s/\(.\{148\}\)..*/\1/ 20063t more1 20064s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20065p 20066n 20067b repl 20068:more1 20069s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20070p 20071g 20072s/.\{148\}// 20073t nl 20074:delim 20075h 20076s/\(.\{148\}\)..*/\1/ 20077t more2 20078s/["\\]/\\&/g; s/^/"/; s/$/"/ 20079p 20080b 20081:more2 20082s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20083p 20084g 20085s/.\{148\}// 20086t delim 20087' <conf$$subs.awk | sed ' 20088/^[^""]/{ 20089 N 20090 s/\n// 20091} 20092' >>$CONFIG_STATUS || ac_write_fail=1 20093rm -f conf$$subs.awk 20094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20095_ACAWK 20096cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20097 for (key in S) S_is_set[key] = 1 20098 FS = "" 20099 20100} 20101{ 20102 line = $ 0 20103 nfields = split(line, field, "@") 20104 substed = 0 20105 len = length(field[1]) 20106 for (i = 2; i < nfields; i++) { 20107 key = field[i] 20108 keylen = length(key) 20109 if (S_is_set[key]) { 20110 value = S[key] 20111 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20112 len += length(value) + length(field[++i]) 20113 substed = 1 20114 } else 20115 len += 1 + keylen 20116 } 20117 20118 print line 20119} 20120 20121_ACAWK 20122_ACEOF 20123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20124if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20125 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20126else 20127 cat 20128fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20129 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20130_ACEOF 20131 20132# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20133# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20134# trailing colons and then remove the whole line if VPATH becomes empty 20135# (actually we leave an empty line to preserve line numbers). 20136if test "x$srcdir" = x.; then 20137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20138h 20139s/// 20140s/^/:/ 20141s/[ ]*$/:/ 20142s/:\$(srcdir):/:/g 20143s/:\${srcdir}:/:/g 20144s/:@srcdir@:/:/g 20145s/^:*// 20146s/:*$// 20147x 20148s/\(=[ ]*\).*/\1/ 20149G 20150s/\n// 20151s/^[^=]*=[ ]*$// 20152}' 20153fi 20154 20155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20156fi # test -n "$CONFIG_FILES" 20157 20158# Set up the scripts for CONFIG_HEADERS section. 20159# No need to generate them if there are no CONFIG_HEADERS. 20160# This happens for instance with `./config.status Makefile'. 20161if test -n "$CONFIG_HEADERS"; then 20162cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20163BEGIN { 20164_ACEOF 20165 20166# Transform confdefs.h into an awk script `defines.awk', embedded as 20167# here-document in config.status, that substitutes the proper values into 20168# config.h.in to produce config.h. 20169 20170# Create a delimiter string that does not exist in confdefs.h, to ease 20171# handling of long lines. 20172ac_delim='%!_!# ' 20173for ac_last_try in false false :; do 20174 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20175 if test -z "$ac_tt"; then 20176 break 20177 elif $ac_last_try; then 20178 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20179 else 20180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20181 fi 20182done 20183 20184# For the awk script, D is an array of macro values keyed by name, 20185# likewise P contains macro parameters if any. Preserve backslash 20186# newline sequences. 20187 20188ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20189sed -n ' 20190s/.\{148\}/&'"$ac_delim"'/g 20191t rset 20192:rset 20193s/^[ ]*#[ ]*define[ ][ ]*/ / 20194t def 20195d 20196:def 20197s/\\$// 20198t bsnl 20199s/["\\]/\\&/g 20200s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20201D["\1"]=" \3"/p 20202s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20203d 20204:bsnl 20205s/["\\]/\\&/g 20206s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20207D["\1"]=" \3\\\\\\n"\\/p 20208t cont 20209s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20210t cont 20211d 20212:cont 20213n 20214s/.\{148\}/&'"$ac_delim"'/g 20215t clear 20216:clear 20217s/\\$// 20218t bsnlc 20219s/["\\]/\\&/g; s/^/"/; s/$/"/p 20220d 20221:bsnlc 20222s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20223b cont 20224' <confdefs.h | sed ' 20225s/'"$ac_delim"'/"\\\ 20226"/g' >>$CONFIG_STATUS || ac_write_fail=1 20227 20228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20229 for (key in D) D_is_set[key] = 1 20230 FS = "" 20231} 20232/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20233 line = \$ 0 20234 split(line, arg, " ") 20235 if (arg[1] == "#") { 20236 defundef = arg[2] 20237 mac1 = arg[3] 20238 } else { 20239 defundef = substr(arg[1], 2) 20240 mac1 = arg[2] 20241 } 20242 split(mac1, mac2, "(") #) 20243 macro = mac2[1] 20244 prefix = substr(line, 1, index(line, defundef) - 1) 20245 if (D_is_set[macro]) { 20246 # Preserve the white space surrounding the "#". 20247 print prefix "define", macro P[macro] D[macro] 20248 next 20249 } else { 20250 # Replace #undef with comments. This is necessary, for example, 20251 # in the case of _POSIX_SOURCE, which is predefined and required 20252 # on some systems where configure will not decide to define it. 20253 if (defundef == "undef") { 20254 print "/*", prefix defundef, macro, "*/" 20255 next 20256 } 20257 } 20258} 20259{ print } 20260_ACAWK 20261_ACEOF 20262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20263 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20264fi # test -n "$CONFIG_HEADERS" 20265 20266 20267eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20268shift 20269for ac_tag 20270do 20271 case $ac_tag in 20272 :[FHLC]) ac_mode=$ac_tag; continue;; 20273 esac 20274 case $ac_mode$ac_tag in 20275 :[FHL]*:*);; 20276 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20277 :[FH]-) ac_tag=-:-;; 20278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20279 esac 20280 ac_save_IFS=$IFS 20281 IFS=: 20282 set x $ac_tag 20283 IFS=$ac_save_IFS 20284 shift 20285 ac_file=$1 20286 shift 20287 20288 case $ac_mode in 20289 :L) ac_source=$1;; 20290 :[FH]) 20291 ac_file_inputs= 20292 for ac_f 20293 do 20294 case $ac_f in 20295 -) ac_f="$ac_tmp/stdin";; 20296 *) # Look for the file first in the build tree, then in the source tree 20297 # (if the path is not absolute). The absolute path cannot be DOS-style, 20298 # because $ac_f cannot contain `:'. 20299 test -f "$ac_f" || 20300 case $ac_f in 20301 [\\/$]*) false;; 20302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20303 esac || 20304 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20305 esac 20306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20307 as_fn_append ac_file_inputs " '$ac_f'" 20308 done 20309 20310 # Let's still pretend it is `configure' which instantiates (i.e., don't 20311 # use $as_me), people would be surprised to read: 20312 # /* config.h. Generated by config.status. */ 20313 configure_input='Generated from '` 20314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20315 `' by configure.' 20316 if test x"$ac_file" != x-; then 20317 configure_input="$ac_file. $configure_input" 20318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20319$as_echo "$as_me: creating $ac_file" >&6;} 20320 fi 20321 # Neutralize special characters interpreted by sed in replacement strings. 20322 case $configure_input in #( 20323 *\&* | *\|* | *\\* ) 20324 ac_sed_conf_input=`$as_echo "$configure_input" | 20325 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20326 *) ac_sed_conf_input=$configure_input;; 20327 esac 20328 20329 case $ac_tag in 20330 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20332 esac 20333 ;; 20334 esac 20335 20336 ac_dir=`$as_dirname -- "$ac_file" || 20337$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20338 X"$ac_file" : 'X\(//\)[^/]' \| \ 20339 X"$ac_file" : 'X\(//\)$' \| \ 20340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20341$as_echo X"$ac_file" | 20342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20343 s//\1/ 20344 q 20345 } 20346 /^X\(\/\/\)[^/].*/{ 20347 s//\1/ 20348 q 20349 } 20350 /^X\(\/\/\)$/{ 20351 s//\1/ 20352 q 20353 } 20354 /^X\(\/\).*/{ 20355 s//\1/ 20356 q 20357 } 20358 s/.*/./; q'` 20359 as_dir="$ac_dir"; as_fn_mkdir_p 20360 ac_builddir=. 20361 20362case "$ac_dir" in 20363.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20364*) 20365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20366 # A ".." for each directory in $ac_dir_suffix. 20367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20368 case $ac_top_builddir_sub in 20369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20371 esac ;; 20372esac 20373ac_abs_top_builddir=$ac_pwd 20374ac_abs_builddir=$ac_pwd$ac_dir_suffix 20375# for backward compatibility: 20376ac_top_builddir=$ac_top_build_prefix 20377 20378case $srcdir in 20379 .) # We are building in place. 20380 ac_srcdir=. 20381 ac_top_srcdir=$ac_top_builddir_sub 20382 ac_abs_top_srcdir=$ac_pwd ;; 20383 [\\/]* | ?:[\\/]* ) # Absolute name. 20384 ac_srcdir=$srcdir$ac_dir_suffix; 20385 ac_top_srcdir=$srcdir 20386 ac_abs_top_srcdir=$srcdir ;; 20387 *) # Relative name. 20388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20389 ac_top_srcdir=$ac_top_build_prefix$srcdir 20390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20391esac 20392ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20393 20394 20395 case $ac_mode in 20396 :F) 20397 # 20398 # CONFIG_FILE 20399 # 20400 20401 case $INSTALL in 20402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20404 esac 20405 ac_MKDIR_P=$MKDIR_P 20406 case $MKDIR_P in 20407 [\\/$]* | ?:[\\/]* ) ;; 20408 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20409 esac 20410_ACEOF 20411 20412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20413# If the template does not know about datarootdir, expand it. 20414# FIXME: This hack should be removed a few years after 2.60. 20415ac_datarootdir_hack=; ac_datarootdir_seen= 20416ac_sed_dataroot=' 20417/datarootdir/ { 20418 p 20419 q 20420} 20421/@datadir@/p 20422/@docdir@/p 20423/@infodir@/p 20424/@localedir@/p 20425/@mandir@/p' 20426case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20427*datarootdir*) ac_datarootdir_seen=yes;; 20428*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20430$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20431_ACEOF 20432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20433 ac_datarootdir_hack=' 20434 s&@datadir@&$datadir&g 20435 s&@docdir@&$docdir&g 20436 s&@infodir@&$infodir&g 20437 s&@localedir@&$localedir&g 20438 s&@mandir@&$mandir&g 20439 s&\\\${datarootdir}&$datarootdir&g' ;; 20440esac 20441_ACEOF 20442 20443# Neutralize VPATH when `$srcdir' = `.'. 20444# Shell code in configure.ac might set extrasub. 20445# FIXME: do we really want to maintain this feature? 20446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20447ac_sed_extra="$ac_vpsub 20448$extrasub 20449_ACEOF 20450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20451:t 20452/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20453s|@configure_input@|$ac_sed_conf_input|;t t 20454s&@top_builddir@&$ac_top_builddir_sub&;t t 20455s&@top_build_prefix@&$ac_top_build_prefix&;t t 20456s&@srcdir@&$ac_srcdir&;t t 20457s&@abs_srcdir@&$ac_abs_srcdir&;t t 20458s&@top_srcdir@&$ac_top_srcdir&;t t 20459s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20460s&@builddir@&$ac_builddir&;t t 20461s&@abs_builddir@&$ac_abs_builddir&;t t 20462s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20463s&@INSTALL@&$ac_INSTALL&;t t 20464s&@MKDIR_P@&$ac_MKDIR_P&;t t 20465$ac_datarootdir_hack 20466" 20467eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20468 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20469 20470test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20471 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20473 "$ac_tmp/out"`; test -z "$ac_out"; } && 20474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20475which seems to be undefined. Please make sure it is defined" >&5 20476$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20477which seems to be undefined. Please make sure it is defined" >&2;} 20478 20479 rm -f "$ac_tmp/stdin" 20480 case $ac_file in 20481 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20482 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20483 esac \ 20484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20485 ;; 20486 :H) 20487 # 20488 # CONFIG_HEADER 20489 # 20490 if test x"$ac_file" != x-; then 20491 { 20492 $as_echo "/* $configure_input */" \ 20493 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20494 } >"$ac_tmp/config.h" \ 20495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20496 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20498$as_echo "$as_me: $ac_file is unchanged" >&6;} 20499 else 20500 rm -f "$ac_file" 20501 mv "$ac_tmp/config.h" "$ac_file" \ 20502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20503 fi 20504 else 20505 $as_echo "/* $configure_input */" \ 20506 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20507 || as_fn_error $? "could not create -" "$LINENO" 5 20508 fi 20509# Compute "$ac_file"'s index in $config_headers. 20510_am_arg="$ac_file" 20511_am_stamp_count=1 20512for _am_header in $config_headers :; do 20513 case $_am_header in 20514 $_am_arg | $_am_arg:* ) 20515 break ;; 20516 * ) 20517 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20518 esac 20519done 20520echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20521$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20522 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20523 X"$_am_arg" : 'X\(//\)$' \| \ 20524 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20525$as_echo X"$_am_arg" | 20526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20527 s//\1/ 20528 q 20529 } 20530 /^X\(\/\/\)[^/].*/{ 20531 s//\1/ 20532 q 20533 } 20534 /^X\(\/\/\)$/{ 20535 s//\1/ 20536 q 20537 } 20538 /^X\(\/\).*/{ 20539 s//\1/ 20540 q 20541 } 20542 s/.*/./; q'`/stamp-h$_am_stamp_count 20543 ;; 20544 20545 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20546$as_echo "$as_me: executing $ac_file commands" >&6;} 20547 ;; 20548 esac 20549 20550 20551 case $ac_file$ac_mode in 20552 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20553 # Older Autoconf quotes --file arguments for eval, but not when files 20554 # are listed without --file. Let's play safe and only enable the eval 20555 # if we detect the quoting. 20556 case $CONFIG_FILES in 20557 *\'*) eval set x "$CONFIG_FILES" ;; 20558 *) set x $CONFIG_FILES ;; 20559 esac 20560 shift 20561 for mf 20562 do 20563 # Strip MF so we end up with the name of the file. 20564 mf=`echo "$mf" | sed -e 's/:.*$//'` 20565 # Check whether this is an Automake generated Makefile or not. 20566 # We used to match only the files named 'Makefile.in', but 20567 # some people rename them; so instead we look at the file content. 20568 # Grep'ing the first line is not enough: some people post-process 20569 # each Makefile.in and add a new line on top of each file to say so. 20570 # Grep'ing the whole file is not good either: AIX grep has a line 20571 # limit of 2048, but all sed's we know have understand at least 4000. 20572 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20573 dirpart=`$as_dirname -- "$mf" || 20574$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20575 X"$mf" : 'X\(//\)[^/]' \| \ 20576 X"$mf" : 'X\(//\)$' \| \ 20577 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20578$as_echo X"$mf" | 20579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20580 s//\1/ 20581 q 20582 } 20583 /^X\(\/\/\)[^/].*/{ 20584 s//\1/ 20585 q 20586 } 20587 /^X\(\/\/\)$/{ 20588 s//\1/ 20589 q 20590 } 20591 /^X\(\/\).*/{ 20592 s//\1/ 20593 q 20594 } 20595 s/.*/./; q'` 20596 else 20597 continue 20598 fi 20599 # Extract the definition of DEPDIR, am__include, and am__quote 20600 # from the Makefile without running 'make'. 20601 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20602 test -z "$DEPDIR" && continue 20603 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20604 test -z "$am__include" && continue 20605 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20606 # Find all dependency output files, they are included files with 20607 # $(DEPDIR) in their names. We invoke sed twice because it is the 20608 # simplest approach to changing $(DEPDIR) to its actual value in the 20609 # expansion. 20610 for file in `sed -n " 20611 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20612 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20613 # Make sure the directory exists. 20614 test -f "$dirpart/$file" && continue 20615 fdir=`$as_dirname -- "$file" || 20616$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20617 X"$file" : 'X\(//\)[^/]' \| \ 20618 X"$file" : 'X\(//\)$' \| \ 20619 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20620$as_echo X"$file" | 20621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20622 s//\1/ 20623 q 20624 } 20625 /^X\(\/\/\)[^/].*/{ 20626 s//\1/ 20627 q 20628 } 20629 /^X\(\/\/\)$/{ 20630 s//\1/ 20631 q 20632 } 20633 /^X\(\/\).*/{ 20634 s//\1/ 20635 q 20636 } 20637 s/.*/./; q'` 20638 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20639 # echo "creating $dirpart/$file" 20640 echo '# dummy' > "$dirpart/$file" 20641 done 20642 done 20643} 20644 ;; 20645 "libtool":C) 20646 20647 # See if we are running on zsh, and set the options that allow our 20648 # commands through without removal of \ escapes. 20649 if test -n "${ZSH_VERSION+set}"; then 20650 setopt NO_GLOB_SUBST 20651 fi 20652 20653 cfgfile=${ofile}T 20654 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20655 $RM "$cfgfile" 20656 20657 cat <<_LT_EOF >> "$cfgfile" 20658#! $SHELL 20659# Generated automatically by $as_me ($PACKAGE) $VERSION 20660# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20661# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20662 20663# Provide generalized library-building support services. 20664# Written by Gordon Matzigkeit, 1996 20665 20666# Copyright (C) 2014 Free Software Foundation, Inc. 20667# This is free software; see the source for copying conditions. There is NO 20668# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20669 20670# GNU Libtool is free software; you can redistribute it and/or modify 20671# it under the terms of the GNU General Public License as published by 20672# the Free Software Foundation; either version 2 of of the License, or 20673# (at your option) any later version. 20674# 20675# As a special exception to the GNU General Public License, if you 20676# distribute this file as part of a program or library that is built 20677# using GNU Libtool, you may include this file under the same 20678# distribution terms that you use for the rest of that program. 20679# 20680# GNU Libtool is distributed in the hope that it will be useful, but 20681# WITHOUT ANY WARRANTY; without even the implied warranty of 20682# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20683# GNU General Public License for more details. 20684# 20685# You should have received a copy of the GNU General Public License 20686# along with this program. If not, see <http://www.gnu.org/licenses/>. 20687 20688 20689# The names of the tagged configurations supported by this script. 20690available_tags='' 20691 20692# Configured defaults for sys_lib_dlsearch_path munging. 20693: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20694 20695# ### BEGIN LIBTOOL CONFIG 20696 20697# Whether or not to build static libraries. 20698build_old_libs=$enable_static 20699 20700# Which release of libtool.m4 was used? 20701macro_version=$macro_version 20702macro_revision=$macro_revision 20703 20704# Whether or not to build shared libraries. 20705build_libtool_libs=$enable_shared 20706 20707# What type of objects to build. 20708pic_mode=$pic_mode 20709 20710# Whether or not to optimize for fast installation. 20711fast_install=$enable_fast_install 20712 20713# Shared archive member basename,for filename based shared library versioning on AIX. 20714shared_archive_member_spec=$shared_archive_member_spec 20715 20716# Shell to use when invoking shell scripts. 20717SHELL=$lt_SHELL 20718 20719# An echo program that protects backslashes. 20720ECHO=$lt_ECHO 20721 20722# The PATH separator for the build system. 20723PATH_SEPARATOR=$lt_PATH_SEPARATOR 20724 20725# The host system. 20726host_alias=$host_alias 20727host=$host 20728host_os=$host_os 20729 20730# The build system. 20731build_alias=$build_alias 20732build=$build 20733build_os=$build_os 20734 20735# A sed program that does not truncate output. 20736SED=$lt_SED 20737 20738# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20739Xsed="\$SED -e 1s/^X//" 20740 20741# A grep program that handles long lines. 20742GREP=$lt_GREP 20743 20744# An ERE matcher. 20745EGREP=$lt_EGREP 20746 20747# A literal string matcher. 20748FGREP=$lt_FGREP 20749 20750# A BSD- or MS-compatible name lister. 20751NM=$lt_NM 20752 20753# Whether we need soft or hard links. 20754LN_S=$lt_LN_S 20755 20756# What is the maximum length of a command? 20757max_cmd_len=$max_cmd_len 20758 20759# Object file suffix (normally "o"). 20760objext=$ac_objext 20761 20762# Executable file suffix (normally ""). 20763exeext=$exeext 20764 20765# whether the shell understands "unset". 20766lt_unset=$lt_unset 20767 20768# turn spaces into newlines. 20769SP2NL=$lt_lt_SP2NL 20770 20771# turn newlines into spaces. 20772NL2SP=$lt_lt_NL2SP 20773 20774# convert \$build file names to \$host format. 20775to_host_file_cmd=$lt_cv_to_host_file_cmd 20776 20777# convert \$build files to toolchain format. 20778to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20779 20780# An object symbol dumper. 20781OBJDUMP=$lt_OBJDUMP 20782 20783# Method to check whether dependent libraries are shared objects. 20784deplibs_check_method=$lt_deplibs_check_method 20785 20786# Command to use when deplibs_check_method = "file_magic". 20787file_magic_cmd=$lt_file_magic_cmd 20788 20789# How to find potential files when deplibs_check_method = "file_magic". 20790file_magic_glob=$lt_file_magic_glob 20791 20792# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20793want_nocaseglob=$lt_want_nocaseglob 20794 20795# DLL creation program. 20796DLLTOOL=$lt_DLLTOOL 20797 20798# Command to associate shared and link libraries. 20799sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20800 20801# The archiver. 20802AR=$lt_AR 20803 20804# Flags to create an archive. 20805AR_FLAGS=$lt_AR_FLAGS 20806 20807# How to feed a file listing to the archiver. 20808archiver_list_spec=$lt_archiver_list_spec 20809 20810# A symbol stripping program. 20811STRIP=$lt_STRIP 20812 20813# Commands used to install an old-style archive. 20814RANLIB=$lt_RANLIB 20815old_postinstall_cmds=$lt_old_postinstall_cmds 20816old_postuninstall_cmds=$lt_old_postuninstall_cmds 20817 20818# Whether to use a lock for old archive extraction. 20819lock_old_archive_extraction=$lock_old_archive_extraction 20820 20821# A C compiler. 20822LTCC=$lt_CC 20823 20824# LTCC compiler flags. 20825LTCFLAGS=$lt_CFLAGS 20826 20827# Take the output of nm and produce a listing of raw symbols and C names. 20828global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20829 20830# Transform the output of nm in a proper C declaration. 20831global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20832 20833# Transform the output of nm into a list of symbols to manually relocate. 20834global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20835 20836# Transform the output of nm in a C name address pair. 20837global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20838 20839# Transform the output of nm in a C name address pair when lib prefix is needed. 20840global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20841 20842# The name lister interface. 20843nm_interface=$lt_lt_cv_nm_interface 20844 20845# Specify filename containing input files for \$NM. 20846nm_file_list_spec=$lt_nm_file_list_spec 20847 20848# The root where to search for dependent libraries,and where our libraries should be installed. 20849lt_sysroot=$lt_sysroot 20850 20851# Command to truncate a binary pipe. 20852lt_truncate_bin=$lt_lt_cv_truncate_bin 20853 20854# The name of the directory that contains temporary libtool files. 20855objdir=$objdir 20856 20857# Used to examine libraries when file_magic_cmd begins with "file". 20858MAGIC_CMD=$MAGIC_CMD 20859 20860# Must we lock files when doing compilation? 20861need_locks=$lt_need_locks 20862 20863# Manifest tool. 20864MANIFEST_TOOL=$lt_MANIFEST_TOOL 20865 20866# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20867DSYMUTIL=$lt_DSYMUTIL 20868 20869# Tool to change global to local symbols on Mac OS X. 20870NMEDIT=$lt_NMEDIT 20871 20872# Tool to manipulate fat objects and archives on Mac OS X. 20873LIPO=$lt_LIPO 20874 20875# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20876OTOOL=$lt_OTOOL 20877 20878# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20879OTOOL64=$lt_OTOOL64 20880 20881# Old archive suffix (normally "a"). 20882libext=$libext 20883 20884# Shared library suffix (normally ".so"). 20885shrext_cmds=$lt_shrext_cmds 20886 20887# The commands to extract the exported symbol list from a shared archive. 20888extract_expsyms_cmds=$lt_extract_expsyms_cmds 20889 20890# Variables whose values should be saved in libtool wrapper scripts and 20891# restored at link time. 20892variables_saved_for_relink=$lt_variables_saved_for_relink 20893 20894# Do we need the "lib" prefix for modules? 20895need_lib_prefix=$need_lib_prefix 20896 20897# Do we need a version for libraries? 20898need_version=$need_version 20899 20900# Library versioning type. 20901version_type=$version_type 20902 20903# Shared library runtime path variable. 20904runpath_var=$runpath_var 20905 20906# Shared library path variable. 20907shlibpath_var=$shlibpath_var 20908 20909# Is shlibpath searched before the hard-coded library search path? 20910shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20911 20912# Format of library name prefix. 20913libname_spec=$lt_libname_spec 20914 20915# List of archive names. First name is the real one, the rest are links. 20916# The last name is the one that the linker finds with -lNAME 20917library_names_spec=$lt_library_names_spec 20918 20919# The coded name of the library, if different from the real name. 20920soname_spec=$lt_soname_spec 20921 20922# Permission mode override for installation of shared libraries. 20923install_override_mode=$lt_install_override_mode 20924 20925# Command to use after installation of a shared archive. 20926postinstall_cmds=$lt_postinstall_cmds 20927 20928# Command to use after uninstallation of a shared archive. 20929postuninstall_cmds=$lt_postuninstall_cmds 20930 20931# Commands used to finish a libtool library installation in a directory. 20932finish_cmds=$lt_finish_cmds 20933 20934# As "finish_cmds", except a single script fragment to be evaled but 20935# not shown. 20936finish_eval=$lt_finish_eval 20937 20938# Whether we should hardcode library paths into libraries. 20939hardcode_into_libs=$hardcode_into_libs 20940 20941# Compile-time system search path for libraries. 20942sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20943 20944# Detected run-time system search path for libraries. 20945sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20946 20947# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20948configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20949 20950# Whether dlopen is supported. 20951dlopen_support=$enable_dlopen 20952 20953# Whether dlopen of programs is supported. 20954dlopen_self=$enable_dlopen_self 20955 20956# Whether dlopen of statically linked programs is supported. 20957dlopen_self_static=$enable_dlopen_self_static 20958 20959# Commands to strip libraries. 20960old_striplib=$lt_old_striplib 20961striplib=$lt_striplib 20962 20963 20964# The linker used to build libraries. 20965LD=$lt_LD 20966 20967# How to create reloadable object files. 20968reload_flag=$lt_reload_flag 20969reload_cmds=$lt_reload_cmds 20970 20971# Commands used to build an old-style archive. 20972old_archive_cmds=$lt_old_archive_cmds 20973 20974# A language specific compiler. 20975CC=$lt_compiler 20976 20977# Is the compiler the GNU compiler? 20978with_gcc=$GCC 20979 20980# Compiler flag to turn off builtin functions. 20981no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20982 20983# Additional compiler flags for building library objects. 20984pic_flag=$lt_lt_prog_compiler_pic 20985 20986# How to pass a linker flag through the compiler. 20987wl=$lt_lt_prog_compiler_wl 20988 20989# Compiler flag to prevent dynamic linking. 20990link_static_flag=$lt_lt_prog_compiler_static 20991 20992# Does compiler simultaneously support -c and -o options? 20993compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20994 20995# Whether or not to add -lc for building shared libraries. 20996build_libtool_need_lc=$archive_cmds_need_lc 20997 20998# Whether or not to disallow shared libs when runtime libs are static. 20999allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21000 21001# Compiler flag to allow reflexive dlopens. 21002export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21003 21004# Compiler flag to generate shared objects directly from archives. 21005whole_archive_flag_spec=$lt_whole_archive_flag_spec 21006 21007# Whether the compiler copes with passing no objects directly. 21008compiler_needs_object=$lt_compiler_needs_object 21009 21010# Create an old-style archive from a shared archive. 21011old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21012 21013# Create a temporary old-style archive to link instead of a shared archive. 21014old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21015 21016# Commands used to build a shared archive. 21017archive_cmds=$lt_archive_cmds 21018archive_expsym_cmds=$lt_archive_expsym_cmds 21019 21020# Commands used to build a loadable module if different from building 21021# a shared archive. 21022module_cmds=$lt_module_cmds 21023module_expsym_cmds=$lt_module_expsym_cmds 21024 21025# Whether we are building with GNU ld or not. 21026with_gnu_ld=$lt_with_gnu_ld 21027 21028# Flag that allows shared libraries with undefined symbols to be built. 21029allow_undefined_flag=$lt_allow_undefined_flag 21030 21031# Flag that enforces no undefined symbols. 21032no_undefined_flag=$lt_no_undefined_flag 21033 21034# Flag to hardcode \$libdir into a binary during linking. 21035# This must work even if \$libdir does not exist 21036hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21037 21038# Whether we need a single "-rpath" flag with a separated argument. 21039hardcode_libdir_separator=$lt_hardcode_libdir_separator 21040 21041# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21042# DIR into the resulting binary. 21043hardcode_direct=$hardcode_direct 21044 21045# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21046# DIR into the resulting binary and the resulting library dependency is 21047# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21048# library is relocated. 21049hardcode_direct_absolute=$hardcode_direct_absolute 21050 21051# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21052# into the resulting binary. 21053hardcode_minus_L=$hardcode_minus_L 21054 21055# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21056# into the resulting binary. 21057hardcode_shlibpath_var=$hardcode_shlibpath_var 21058 21059# Set to "yes" if building a shared library automatically hardcodes DIR 21060# into the library and all subsequent libraries and executables linked 21061# against it. 21062hardcode_automatic=$hardcode_automatic 21063 21064# Set to yes if linker adds runtime paths of dependent libraries 21065# to runtime path list. 21066inherit_rpath=$inherit_rpath 21067 21068# Whether libtool must link a program against all its dependency libraries. 21069link_all_deplibs=$link_all_deplibs 21070 21071# Set to "yes" if exported symbols are required. 21072always_export_symbols=$always_export_symbols 21073 21074# The commands to list exported symbols. 21075export_symbols_cmds=$lt_export_symbols_cmds 21076 21077# Symbols that should not be listed in the preloaded symbols. 21078exclude_expsyms=$lt_exclude_expsyms 21079 21080# Symbols that must always be exported. 21081include_expsyms=$lt_include_expsyms 21082 21083# Commands necessary for linking programs (against libraries) with templates. 21084prelink_cmds=$lt_prelink_cmds 21085 21086# Commands necessary for finishing linking programs. 21087postlink_cmds=$lt_postlink_cmds 21088 21089# Specify filename containing input files. 21090file_list_spec=$lt_file_list_spec 21091 21092# How to hardcode a shared library path into an executable. 21093hardcode_action=$hardcode_action 21094 21095# ### END LIBTOOL CONFIG 21096 21097_LT_EOF 21098 21099 cat <<'_LT_EOF' >> "$cfgfile" 21100 21101# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21102 21103# func_munge_path_list VARIABLE PATH 21104# ----------------------------------- 21105# VARIABLE is name of variable containing _space_ separated list of 21106# directories to be munged by the contents of PATH, which is string 21107# having a format: 21108# "DIR[:DIR]:" 21109# string "DIR[ DIR]" will be prepended to VARIABLE 21110# ":DIR[:DIR]" 21111# string "DIR[ DIR]" will be appended to VARIABLE 21112# "DIRP[:DIRP]::[DIRA:]DIRA" 21113# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21114# "DIRA[ DIRA]" will be appended to VARIABLE 21115# "DIR[:DIR]" 21116# VARIABLE will be replaced by "DIR[ DIR]" 21117func_munge_path_list () 21118{ 21119 case x$2 in 21120 x) 21121 ;; 21122 *:) 21123 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21124 ;; 21125 x:*) 21126 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21127 ;; 21128 *::*) 21129 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21130 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21131 ;; 21132 *) 21133 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21134 ;; 21135 esac 21136} 21137 21138 21139# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21140func_cc_basename () 21141{ 21142 for cc_temp in $*""; do 21143 case $cc_temp in 21144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21146 \-*) ;; 21147 *) break;; 21148 esac 21149 done 21150 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21151} 21152 21153 21154# ### END FUNCTIONS SHARED WITH CONFIGURE 21155 21156_LT_EOF 21157 21158 case $host_os in 21159 aix3*) 21160 cat <<\_LT_EOF >> "$cfgfile" 21161# AIX sometimes has problems with the GCC collect2 program. For some 21162# reason, if we set the COLLECT_NAMES environment variable, the problems 21163# vanish in a puff of smoke. 21164if test set != "${COLLECT_NAMES+set}"; then 21165 COLLECT_NAMES= 21166 export COLLECT_NAMES 21167fi 21168_LT_EOF 21169 ;; 21170 esac 21171 21172 21173ltmain=$ac_aux_dir/ltmain.sh 21174 21175 21176 # We use sed instead of cat because bash on DJGPP gets confused if 21177 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21178 # text mode, it properly converts lines to CR/LF. This bash problem 21179 # is reportedly fixed, but why not run on old versions too? 21180 sed '$q' "$ltmain" >> "$cfgfile" \ 21181 || (rm -f "$cfgfile"; exit 1) 21182 21183 mv -f "$cfgfile" "$ofile" || 21184 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21185 chmod +x "$ofile" 21186 21187 ;; 21188 21189 esac 21190done # for ac_tag 21191 21192 21193as_fn_exit 0 21194_ACEOF 21195ac_clean_files=$ac_clean_files_save 21196 21197test $ac_write_fail = 0 || 21198 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21199 21200 21201# configure is writing to config.log, and then calls config.status. 21202# config.status does its own redirection, appending to config.log. 21203# Unfortunately, on DOS this fails, as config.log is still kept open 21204# by configure, so config.status won't be able to write to it; its 21205# output is simply discarded. So we exec the FD to /dev/null, 21206# effectively closing config.log, so it can be properly (re)opened and 21207# appended to by config.status. When coming back to configure, we 21208# need to make the FD available again. 21209if test "$no_create" != yes; then 21210 ac_cs_success=: 21211 ac_config_status_args= 21212 test "$silent" = yes && 21213 ac_config_status_args="$ac_config_status_args --quiet" 21214 exec 5>/dev/null 21215 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21216 exec 5>>config.log 21217 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21218 # would make configure fail if this is the last instruction. 21219 $ac_cs_success || as_fn_exit 1 21220fi 21221if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21223$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21224fi 21225 21226