configure revision eaa3dbe0
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-neomagic 1.2.8. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic>. 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/Neomagic 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-neomagic' 593PACKAGE_TARNAME='xf86-video-neomagic' 594PACKAGE_VERSION='1.2.8' 595PACKAGE_STRING='xf86-video-neomagic 1.2.8' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642XSERVER_LIBPCIACCESS_FALSE 643XSERVER_LIBPCIACCESS_TRUE 644PCIACCESS_LIBS 645PCIACCESS_CFLAGS 646XAA_FALSE 647XAA_TRUE 648XORG_LIBS 649XORG_CFLAGS 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656RANLIB 657ac_ct_AR 658AR 659DLLTOOL 660OBJDUMP 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667LIBTOOL 668MAN_SUBSTS 669XORG_MAN_PAGE 670ADMIN_MAN_DIR 671DRIVER_MAN_DIR 672MISC_MAN_DIR 673FILE_MAN_DIR 674LIB_MAN_DIR 675APP_MAN_DIR 676ADMIN_MAN_SUFFIX 677DRIVER_MAN_SUFFIX 678MISC_MAN_SUFFIX 679FILE_MAN_SUFFIX 680LIB_MAN_SUFFIX 681APP_MAN_SUFFIX 682SED 683host_os 684host_vendor 685host_cpu 686host 687build_os 688build_vendor 689build_cpu 690build 691INSTALL_CMD 692PKG_CONFIG_LIBDIR 693PKG_CONFIG_PATH 694PKG_CONFIG 695CHANGELOG_CMD 696STRICT_CFLAGS 697CWARNFLAGS 698BASE_CFLAGS 699EGREP 700GREP 701CPP 702am__fastdepCC_FALSE 703am__fastdepCC_TRUE 704CCDEPMODE 705am__nodep 706AMDEPBACKSLASH 707AMDEP_FALSE 708AMDEP_TRUE 709am__quote 710am__include 711DEPDIR 712OBJEXT 713EXEEXT 714ac_ct_CC 715CPPFLAGS 716LDFLAGS 717CFLAGS 718CC 719MAINT 720MAINTAINER_MODE_FALSE 721MAINTAINER_MODE_TRUE 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_alias 750host_alias 751build_alias 752LIBS 753ECHO_T 754ECHO_N 755ECHO_C 756DEFS 757mandir 758localedir 759libdir 760psdir 761pdfdir 762dvidir 763htmldir 764infodir 765docdir 766oldincludedir 767includedir 768localstatedir 769sharedstatedir 770sysconfdir 771datadir 772datarootdir 773libexecdir 774sbindir 775bindir 776program_transform_name 777prefix 778exec_prefix 779PACKAGE_URL 780PACKAGE_BUGREPORT 781PACKAGE_STRING 782PACKAGE_VERSION 783PACKAGE_TARNAME 784PACKAGE_NAME 785PATH_SEPARATOR 786SHELL' 787ac_subst_files='' 788ac_user_opts=' 789enable_option_checking 790enable_silent_rules 791enable_maintainer_mode 792enable_dependency_tracking 793enable_selective_werror 794enable_strict_compilation 795enable_static 796enable_shared 797with_pic 798enable_fast_install 799with_gnu_ld 800with_sysroot 801enable_libtool_lock 802with_xorg_module_dir 803enable_xaa 804' 805 ac_precious_vars='build_alias 806host_alias 807target_alias 808CC 809CFLAGS 810LDFLAGS 811LIBS 812CPPFLAGS 813CPP 814PKG_CONFIG 815PKG_CONFIG_PATH 816PKG_CONFIG_LIBDIR 817XORG_CFLAGS 818XORG_LIBS 819PCIACCESS_CFLAGS 820PCIACCESS_LIBS' 821 822 823# Initialize some variables set by options. 824ac_init_help= 825ac_init_version=false 826ac_unrecognized_opts= 827ac_unrecognized_sep= 828# The variables have the same names as the options, with 829# dashes changed to underlines. 830cache_file=/dev/null 831exec_prefix=NONE 832no_create= 833no_recursion= 834prefix=NONE 835program_prefix=NONE 836program_suffix=NONE 837program_transform_name=s,x,x, 838silent= 839site= 840srcdir= 841verbose= 842x_includes=NONE 843x_libraries=NONE 844 845# Installation directory options. 846# These are left unexpanded so users can "make install exec_prefix=/foo" 847# and all the variables that are supposed to be based on exec_prefix 848# by default will actually change. 849# Use braces instead of parens because sh, perl, etc. also accept them. 850# (The list follows the same order as the GNU Coding Standards.) 851bindir='${exec_prefix}/bin' 852sbindir='${exec_prefix}/sbin' 853libexecdir='${exec_prefix}/libexec' 854datarootdir='${prefix}/share' 855datadir='${datarootdir}' 856sysconfdir='${prefix}/etc' 857sharedstatedir='${prefix}/com' 858localstatedir='${prefix}/var' 859includedir='${prefix}/include' 860oldincludedir='/usr/include' 861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 862infodir='${datarootdir}/info' 863htmldir='${docdir}' 864dvidir='${docdir}' 865pdfdir='${docdir}' 866psdir='${docdir}' 867libdir='${exec_prefix}/lib' 868localedir='${datarootdir}/locale' 869mandir='${datarootdir}/man' 870 871ac_prev= 872ac_dashdash= 873for ac_option 874do 875 # If the previous option needs an argument, assign it. 876 if test -n "$ac_prev"; then 877 eval $ac_prev=\$ac_option 878 ac_prev= 879 continue 880 fi 881 882 case $ac_option in 883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 884 *=) ac_optarg= ;; 885 *) ac_optarg=yes ;; 886 esac 887 888 # Accept the important Cygnus configure options, so we can diagnose typos. 889 890 case $ac_dashdash$ac_option in 891 --) 892 ac_dashdash=yes ;; 893 894 -bindir | --bindir | --bindi | --bind | --bin | --bi) 895 ac_prev=bindir ;; 896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 897 bindir=$ac_optarg ;; 898 899 -build | --build | --buil | --bui | --bu) 900 ac_prev=build_alias ;; 901 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 902 build_alias=$ac_optarg ;; 903 904 -cache-file | --cache-file | --cache-fil | --cache-fi \ 905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 906 ac_prev=cache_file ;; 907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 909 cache_file=$ac_optarg ;; 910 911 --config-cache | -C) 912 cache_file=config.cache ;; 913 914 -datadir | --datadir | --datadi | --datad) 915 ac_prev=datadir ;; 916 -datadir=* | --datadir=* | --datadi=* | --datad=*) 917 datadir=$ac_optarg ;; 918 919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 920 | --dataroo | --dataro | --datar) 921 ac_prev=datarootdir ;; 922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 924 datarootdir=$ac_optarg ;; 925 926 -disable-* | --disable-*) 927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 928 # Reject names that are not valid shell variable names. 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 as_fn_error $? "invalid feature name: $ac_useropt" 931 ac_useropt_orig=$ac_useropt 932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 933 case $ac_user_opts in 934 *" 935"enable_$ac_useropt" 936"*) ;; 937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 938 ac_unrecognized_sep=', ';; 939 esac 940 eval enable_$ac_useropt=no ;; 941 942 -docdir | --docdir | --docdi | --doc | --do) 943 ac_prev=docdir ;; 944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 945 docdir=$ac_optarg ;; 946 947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 948 ac_prev=dvidir ;; 949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 950 dvidir=$ac_optarg ;; 951 952 -enable-* | --enable-*) 953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 954 # Reject names that are not valid shell variable names. 955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 956 as_fn_error $? "invalid feature name: $ac_useropt" 957 ac_useropt_orig=$ac_useropt 958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 959 case $ac_user_opts in 960 *" 961"enable_$ac_useropt" 962"*) ;; 963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 964 ac_unrecognized_sep=', ';; 965 esac 966 eval enable_$ac_useropt=\$ac_optarg ;; 967 968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 970 | --exec | --exe | --ex) 971 ac_prev=exec_prefix ;; 972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 974 | --exec=* | --exe=* | --ex=*) 975 exec_prefix=$ac_optarg ;; 976 977 -gas | --gas | --ga | --g) 978 # Obsolete; use --with-gas. 979 with_gas=yes ;; 980 981 -help | --help | --hel | --he | -h) 982 ac_init_help=long ;; 983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 984 ac_init_help=recursive ;; 985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 986 ac_init_help=short ;; 987 988 -host | --host | --hos | --ho) 989 ac_prev=host_alias ;; 990 -host=* | --host=* | --hos=* | --ho=*) 991 host_alias=$ac_optarg ;; 992 993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 994 ac_prev=htmldir ;; 995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 996 | --ht=*) 997 htmldir=$ac_optarg ;; 998 999 -includedir | --includedir | --includedi | --included | --include \ 1000 | --includ | --inclu | --incl | --inc) 1001 ac_prev=includedir ;; 1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1003 | --includ=* | --inclu=* | --incl=* | --inc=*) 1004 includedir=$ac_optarg ;; 1005 1006 -infodir | --infodir | --infodi | --infod | --info | --inf) 1007 ac_prev=infodir ;; 1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1009 infodir=$ac_optarg ;; 1010 1011 -libdir | --libdir | --libdi | --libd) 1012 ac_prev=libdir ;; 1013 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1014 libdir=$ac_optarg ;; 1015 1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1017 | --libexe | --libex | --libe) 1018 ac_prev=libexecdir ;; 1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1020 | --libexe=* | --libex=* | --libe=*) 1021 libexecdir=$ac_optarg ;; 1022 1023 -localedir | --localedir | --localedi | --localed | --locale) 1024 ac_prev=localedir ;; 1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1026 localedir=$ac_optarg ;; 1027 1028 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1029 | --localstate | --localstat | --localsta | --localst | --locals) 1030 ac_prev=localstatedir ;; 1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1033 localstatedir=$ac_optarg ;; 1034 1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1036 ac_prev=mandir ;; 1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1038 mandir=$ac_optarg ;; 1039 1040 -nfp | --nfp | --nf) 1041 # Obsolete; use --without-fp. 1042 with_fp=no ;; 1043 1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1045 | --no-cr | --no-c | -n) 1046 no_create=yes ;; 1047 1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1050 no_recursion=yes ;; 1051 1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1054 | --oldin | --oldi | --old | --ol | --o) 1055 ac_prev=oldincludedir ;; 1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1059 oldincludedir=$ac_optarg ;; 1060 1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1062 ac_prev=prefix ;; 1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1064 prefix=$ac_optarg ;; 1065 1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1067 | --program-pre | --program-pr | --program-p) 1068 ac_prev=program_prefix ;; 1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1071 program_prefix=$ac_optarg ;; 1072 1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1074 | --program-suf | --program-su | --program-s) 1075 ac_prev=program_suffix ;; 1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1078 program_suffix=$ac_optarg ;; 1079 1080 -program-transform-name | --program-transform-name \ 1081 | --program-transform-nam | --program-transform-na \ 1082 | --program-transform-n | --program-transform- \ 1083 | --program-transform | --program-transfor \ 1084 | --program-transfo | --program-transf \ 1085 | --program-trans | --program-tran \ 1086 | --progr-tra | --program-tr | --program-t) 1087 ac_prev=program_transform_name ;; 1088 -program-transform-name=* | --program-transform-name=* \ 1089 | --program-transform-nam=* | --program-transform-na=* \ 1090 | --program-transform-n=* | --program-transform-=* \ 1091 | --program-transform=* | --program-transfor=* \ 1092 | --program-transfo=* | --program-transf=* \ 1093 | --program-trans=* | --program-tran=* \ 1094 | --progr-tra=* | --program-tr=* | --program-t=*) 1095 program_transform_name=$ac_optarg ;; 1096 1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1098 ac_prev=pdfdir ;; 1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1100 pdfdir=$ac_optarg ;; 1101 1102 -psdir | --psdir | --psdi | --psd | --ps) 1103 ac_prev=psdir ;; 1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1105 psdir=$ac_optarg ;; 1106 1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1108 | -silent | --silent | --silen | --sile | --sil) 1109 silent=yes ;; 1110 1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1112 ac_prev=sbindir ;; 1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1114 | --sbi=* | --sb=*) 1115 sbindir=$ac_optarg ;; 1116 1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1119 | --sharedst | --shareds | --shared | --share | --shar \ 1120 | --sha | --sh) 1121 ac_prev=sharedstatedir ;; 1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1125 | --sha=* | --sh=*) 1126 sharedstatedir=$ac_optarg ;; 1127 1128 -site | --site | --sit) 1129 ac_prev=site ;; 1130 -site=* | --site=* | --sit=*) 1131 site=$ac_optarg ;; 1132 1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1134 ac_prev=srcdir ;; 1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1136 srcdir=$ac_optarg ;; 1137 1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1139 | --syscon | --sysco | --sysc | --sys | --sy) 1140 ac_prev=sysconfdir ;; 1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1143 sysconfdir=$ac_optarg ;; 1144 1145 -target | --target | --targe | --targ | --tar | --ta | --t) 1146 ac_prev=target_alias ;; 1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1148 target_alias=$ac_optarg ;; 1149 1150 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1151 verbose=yes ;; 1152 1153 -version | --version | --versio | --versi | --vers | -V) 1154 ac_init_version=: ;; 1155 1156 -with-* | --with-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=\$ac_optarg ;; 1171 1172 -without-* | --without-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=no ;; 1187 1188 --x) 1189 # Obsolete; use --with-x. 1190 with_x=yes ;; 1191 1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1193 | --x-incl | --x-inc | --x-in | --x-i) 1194 ac_prev=x_includes ;; 1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1197 x_includes=$ac_optarg ;; 1198 1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1201 ac_prev=x_libraries ;; 1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1204 x_libraries=$ac_optarg ;; 1205 1206 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1207Try \`$0 --help' for more information" 1208 ;; 1209 1210 *=*) 1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1212 # Reject names that are not valid shell variable names. 1213 case $ac_envvar in #( 1214 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1216 esac 1217 eval $ac_envvar=\$ac_optarg 1218 export $ac_envvar ;; 1219 1220 *) 1221 # FIXME: should be removed in autoconf 3.0. 1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1226 ;; 1227 1228 esac 1229done 1230 1231if test -n "$ac_prev"; then 1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1233 as_fn_error $? "missing argument to $ac_option" 1234fi 1235 1236if test -n "$ac_unrecognized_opts"; then 1237 case $enable_option_checking in 1238 no) ;; 1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1241 esac 1242fi 1243 1244# Check all directory arguments for consistency. 1245for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1246 datadir sysconfdir sharedstatedir localstatedir includedir \ 1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1248 libdir localedir mandir 1249do 1250 eval ac_val=\$$ac_var 1251 # Remove trailing slashes. 1252 case $ac_val in 1253 */ ) 1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1255 eval $ac_var=\$ac_val;; 1256 esac 1257 # Be sure to have absolute directory names. 1258 case $ac_val in 1259 [\\/$]* | ?:[\\/]* ) continue;; 1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1261 esac 1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1263done 1264 1265# There might be people who depend on the old broken behavior: `$host' 1266# used to hold the argument of --host etc. 1267# FIXME: To remove some day. 1268build=$build_alias 1269host=$host_alias 1270target=$target_alias 1271 1272# FIXME: To remove some day. 1273if test "x$host_alias" != x; then 1274 if test "x$build_alias" = x; then 1275 cross_compiling=maybe 1276 elif test "x$build_alias" != "x$host_alias"; then 1277 cross_compiling=yes 1278 fi 1279fi 1280 1281ac_tool_prefix= 1282test -n "$host_alias" && ac_tool_prefix=$host_alias- 1283 1284test "$silent" = yes && exec 6>/dev/null 1285 1286 1287ac_pwd=`pwd` && test -n "$ac_pwd" && 1288ac_ls_di=`ls -di .` && 1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1290 as_fn_error $? "working directory cannot be determined" 1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1292 as_fn_error $? "pwd does not report name of working directory" 1293 1294 1295# Find the source files, if location was not specified. 1296if test -z "$srcdir"; then 1297 ac_srcdir_defaulted=yes 1298 # Try the directory containing this script, then the parent directory. 1299 ac_confdir=`$as_dirname -- "$as_myself" || 1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1301 X"$as_myself" : 'X\(//\)[^/]' \| \ 1302 X"$as_myself" : 'X\(//\)$' \| \ 1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1304$as_echo X"$as_myself" | 1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)[^/].*/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\).*/{ 1318 s//\1/ 1319 q 1320 } 1321 s/.*/./; q'` 1322 srcdir=$ac_confdir 1323 if test ! -r "$srcdir/$ac_unique_file"; then 1324 srcdir=.. 1325 fi 1326else 1327 ac_srcdir_defaulted=no 1328fi 1329if test ! -r "$srcdir/$ac_unique_file"; then 1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1332fi 1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1334ac_abs_confdir=`( 1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1336 pwd)` 1337# When building in place, set srcdir=. 1338if test "$ac_abs_confdir" = "$ac_pwd"; then 1339 srcdir=. 1340fi 1341# Remove unnecessary trailing slashes from srcdir. 1342# Double slashes in file names in object file debugging info 1343# mess up M-x gdb in Emacs. 1344case $srcdir in 1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1346esac 1347for ac_var in $ac_precious_vars; do 1348 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_env_${ac_var}_value=\$${ac_var} 1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1352done 1353 1354# 1355# Report the --help message. 1356# 1357if test "$ac_init_help" = "long"; then 1358 # Omit some internal or obsolete options to make the list less imposing. 1359 # This message is too long to be a string in the A/UX 3.1 sh. 1360 cat <<_ACEOF 1361\`configure' configures xf86-video-neomagic 1.2.8 to adapt to many kinds of systems. 1362 1363Usage: $0 [OPTION]... [VAR=VALUE]... 1364 1365To assign environment variables (e.g., CC, CFLAGS...), specify them as 1366VAR=VALUE. See below for descriptions of some of the useful variables. 1367 1368Defaults for the options are specified in brackets. 1369 1370Configuration: 1371 -h, --help display this help and exit 1372 --help=short display options specific to this package 1373 --help=recursive display the short help of all the included packages 1374 -V, --version display version information and exit 1375 -q, --quiet, --silent do not print \`checking ...' messages 1376 --cache-file=FILE cache test results in FILE [disabled] 1377 -C, --config-cache alias for \`--cache-file=config.cache' 1378 -n, --no-create do not create output files 1379 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1380 1381Installation directories: 1382 --prefix=PREFIX install architecture-independent files in PREFIX 1383 [$ac_default_prefix] 1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1385 [PREFIX] 1386 1387By default, \`make install' will install all the files in 1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1389an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1390for instance \`--prefix=\$HOME'. 1391 1392For better control, use the options below. 1393 1394Fine tuning of the installation directories: 1395 --bindir=DIR user executables [EPREFIX/bin] 1396 --sbindir=DIR system admin executables [EPREFIX/sbin] 1397 --libexecdir=DIR program executables [EPREFIX/libexec] 1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1401 --libdir=DIR object code libraries [EPREFIX/lib] 1402 --includedir=DIR C header files [PREFIX/include] 1403 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1406 --infodir=DIR info documentation [DATAROOTDIR/info] 1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1408 --mandir=DIR man documentation [DATAROOTDIR/man] 1409 --docdir=DIR documentation root 1410 [DATAROOTDIR/doc/xf86-video-neomagic] 1411 --htmldir=DIR html documentation [DOCDIR] 1412 --dvidir=DIR dvi documentation [DOCDIR] 1413 --pdfdir=DIR pdf documentation [DOCDIR] 1414 --psdir=DIR ps documentation [DOCDIR] 1415_ACEOF 1416 1417 cat <<\_ACEOF 1418 1419Program names: 1420 --program-prefix=PREFIX prepend PREFIX to installed program names 1421 --program-suffix=SUFFIX append SUFFIX to installed program names 1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1423 1424System types: 1425 --build=BUILD configure for building on BUILD [guessed] 1426 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1427_ACEOF 1428fi 1429 1430if test -n "$ac_init_help"; then 1431 case $ac_init_help in 1432 short | recursive ) echo "Configuration of xf86-video-neomagic 1.2.8:";; 1433 esac 1434 cat <<\_ACEOF 1435 1436Optional Features: 1437 --disable-option-checking ignore unrecognized --enable/--with options 1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1440 --enable-silent-rules less verbose build output (undo: "make V=1") 1441 --disable-silent-rules verbose build output (undo: "make V=0") 1442 --enable-maintainer-mode 1443 enable make rules and dependencies not useful (and 1444 sometimes confusing) to the casual installer 1445 --enable-dependency-tracking 1446 do not reject slow dependency extractors 1447 --disable-dependency-tracking 1448 speeds up one-time build 1449 --disable-selective-werror 1450 Turn off selective compiler errors. (default: 1451 enabled) 1452 --enable-strict-compilation 1453 Enable all warnings from compiler and make them 1454 errors (default: disabled) 1455 --enable-static[=PKGS] build static libraries [default=no] 1456 --enable-shared[=PKGS] build shared libraries [default=yes] 1457 --enable-fast-install[=PKGS] 1458 optimize for fast installation [default=yes] 1459 --disable-libtool-lock avoid locking (might break parallel builds) 1460 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1461 [default=auto] 1462 1463Optional Packages: 1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1466 --with-pic try to use only PIC/non-PIC objects [default=use 1467 both] 1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1469 --with-sysroot=DIR Search for dependent libraries within DIR 1470 (or the compiler's sysroot if not specified). 1471 --with-xorg-module-dir=DIR 1472 Default xorg module directory 1473 [[default=$libdir/xorg/modules]] 1474 1475Some influential environment variables: 1476 CC C compiler command 1477 CFLAGS C compiler flags 1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1479 nonstandard directory <lib dir> 1480 LIBS libraries to pass to the linker, e.g. -l<library> 1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1482 you have headers in a nonstandard directory <include dir> 1483 CPP C preprocessor 1484 PKG_CONFIG path to pkg-config utility 1485 PKG_CONFIG_PATH 1486 directories to add to pkg-config's search path 1487 PKG_CONFIG_LIBDIR 1488 path overriding pkg-config's built-in search path 1489 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1490 XORG_LIBS linker flags for XORG, overriding pkg-config 1491 PCIACCESS_CFLAGS 1492 C compiler flags for PCIACCESS, overriding pkg-config 1493 PCIACCESS_LIBS 1494 linker flags for PCIACCESS, overriding pkg-config 1495 1496Use these variables to override the choices made by `configure' or to help 1497it to find libraries and programs with nonstandard names/locations. 1498 1499Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic>. 1500_ACEOF 1501ac_status=$? 1502fi 1503 1504if test "$ac_init_help" = "recursive"; then 1505 # If there are subdirs, report their specific --help. 1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1507 test -d "$ac_dir" || 1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1509 continue 1510 ac_builddir=. 1511 1512case "$ac_dir" in 1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514*) 1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1516 # A ".." for each directory in $ac_dir_suffix. 1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1518 case $ac_top_builddir_sub in 1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1521 esac ;; 1522esac 1523ac_abs_top_builddir=$ac_pwd 1524ac_abs_builddir=$ac_pwd$ac_dir_suffix 1525# for backward compatibility: 1526ac_top_builddir=$ac_top_build_prefix 1527 1528case $srcdir in 1529 .) # We are building in place. 1530 ac_srcdir=. 1531 ac_top_srcdir=$ac_top_builddir_sub 1532 ac_abs_top_srcdir=$ac_pwd ;; 1533 [\\/]* | ?:[\\/]* ) # Absolute name. 1534 ac_srcdir=$srcdir$ac_dir_suffix; 1535 ac_top_srcdir=$srcdir 1536 ac_abs_top_srcdir=$srcdir ;; 1537 *) # Relative name. 1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1539 ac_top_srcdir=$ac_top_build_prefix$srcdir 1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1541esac 1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1543 1544 cd "$ac_dir" || { ac_status=$?; continue; } 1545 # Check for guested configure. 1546 if test -f "$ac_srcdir/configure.gnu"; then 1547 echo && 1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1549 elif test -f "$ac_srcdir/configure"; then 1550 echo && 1551 $SHELL "$ac_srcdir/configure" --help=recursive 1552 else 1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1554 fi || ac_status=$? 1555 cd "$ac_pwd" || { ac_status=$?; break; } 1556 done 1557fi 1558 1559test -n "$ac_init_help" && exit $ac_status 1560if $ac_init_version; then 1561 cat <<\_ACEOF 1562xf86-video-neomagic configure 1.2.8 1563generated by GNU Autoconf 2.69 1564 1565Copyright (C) 2012 Free Software Foundation, Inc. 1566This configure script is free software; the Free Software Foundation 1567gives unlimited permission to copy, distribute and modify it. 1568_ACEOF 1569 exit 1570fi 1571 1572## ------------------------ ## 1573## Autoconf initialization. ## 1574## ------------------------ ## 1575 1576# ac_fn_c_try_compile LINENO 1577# -------------------------- 1578# Try to compile conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_compile () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 rm -f conftest.$ac_objext 1583 if { { ac_try="$ac_compile" 1584case "(($ac_try" in 1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586 *) ac_try_echo=$ac_try;; 1587esac 1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589$as_echo "$ac_try_echo"; } >&5 1590 (eval "$ac_compile") 2>conftest.err 1591 ac_status=$? 1592 if test -s conftest.err; then 1593 grep -v '^ *+' conftest.err >conftest.er1 1594 cat conftest.er1 >&5 1595 mv -f conftest.er1 conftest.err 1596 fi 1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598 test $ac_status = 0; } && { 1599 test -z "$ac_c_werror_flag" || 1600 test ! -s conftest.err 1601 } && test -s conftest.$ac_objext; then : 1602 ac_retval=0 1603else 1604 $as_echo "$as_me: failed program was:" >&5 1605sed 's/^/| /' conftest.$ac_ext >&5 1606 1607 ac_retval=1 1608fi 1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1610 as_fn_set_status $ac_retval 1611 1612} # ac_fn_c_try_compile 1613 1614# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1615# --------------------------------------------- 1616# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1617# accordingly. 1618ac_fn_c_check_decl () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 as_decl_name=`echo $2|sed 's/ *(.*//'` 1622 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1624$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1625if eval \${$3+:} false; then : 1626 $as_echo_n "(cached) " >&6 1627else 1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1629/* end confdefs.h. */ 1630$4 1631int 1632main () 1633{ 1634#ifndef $as_decl_name 1635#ifdef __cplusplus 1636 (void) $as_decl_use; 1637#else 1638 (void) $as_decl_name; 1639#endif 1640#endif 1641 1642 ; 1643 return 0; 1644} 1645_ACEOF 1646if ac_fn_c_try_compile "$LINENO"; then : 1647 eval "$3=yes" 1648else 1649 eval "$3=no" 1650fi 1651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1652fi 1653eval ac_res=\$$3 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655$as_echo "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658} # ac_fn_c_check_decl 1659 1660# ac_fn_c_try_cpp LINENO 1661# ---------------------- 1662# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_cpp () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 if { { ac_try="$ac_cpp conftest.$ac_ext" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } > conftest.i && { 1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 }; then : 1685 ac_retval=0 1686else 1687 $as_echo "$as_me: failed program was:" >&5 1688sed 's/^/| /' conftest.$ac_ext >&5 1689 1690 ac_retval=1 1691fi 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_cpp 1696 1697# ac_fn_c_try_run LINENO 1698# ---------------------- 1699# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1700# that executables *can* be run. 1701ac_fn_c_try_run () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 if { { ac_try="$ac_link" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_link") 2>&5 1712 ac_status=$? 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1715 { { case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_try") 2>&5 1722 ac_status=$? 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; }; }; then : 1725 ac_retval=0 1726else 1727 $as_echo "$as_me: program exited with status $ac_status" >&5 1728 $as_echo "$as_me: failed program was:" >&5 1729sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=$ac_status 1732fi 1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_run 1738 1739# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1740# ------------------------------------------------------- 1741# Tests whether HEADER exists and can be compiled using the include files in 1742# INCLUDES, setting the cache variable VAR accordingly. 1743ac_fn_c_check_header_compile () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1747$as_echo_n "checking for $2... " >&6; } 1748if eval \${$3+:} false; then : 1749 $as_echo_n "(cached) " >&6 1750else 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_compile "$LINENO"; then : 1757 eval "$3=yes" 1758else 1759 eval "$3=no" 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1762fi 1763eval ac_res=\$$3 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1765$as_echo "$ac_res" >&6; } 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 1768} # ac_fn_c_check_header_compile 1769 1770# ac_fn_c_try_link LINENO 1771# ----------------------- 1772# Try to link conftest.$ac_ext, and return whether this succeeded. 1773ac_fn_c_try_link () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 rm -f conftest.$ac_objext conftest$ac_exeext 1777 if { { ac_try="$ac_link" 1778case "(($ac_try" in 1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1780 *) ac_try_echo=$ac_try;; 1781esac 1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1783$as_echo "$ac_try_echo"; } >&5 1784 (eval "$ac_link") 2>conftest.err 1785 ac_status=$? 1786 if test -s conftest.err; then 1787 grep -v '^ *+' conftest.err >conftest.er1 1788 cat conftest.er1 >&5 1789 mv -f conftest.er1 conftest.err 1790 fi 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1792 test $ac_status = 0; } && { 1793 test -z "$ac_c_werror_flag" || 1794 test ! -s conftest.err 1795 } && test -s conftest$ac_exeext && { 1796 test "$cross_compiling" = yes || 1797 test -x conftest$ac_exeext 1798 }; then : 1799 ac_retval=0 1800else 1801 $as_echo "$as_me: failed program was:" >&5 1802sed 's/^/| /' conftest.$ac_ext >&5 1803 1804 ac_retval=1 1805fi 1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1808 # interfere with the next link command; also delete a directory that is 1809 # left behind by Apple's compiler. We do this before executing the actions. 1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 as_fn_set_status $ac_retval 1813 1814} # ac_fn_c_try_link 1815 1816# ac_fn_c_check_func LINENO FUNC VAR 1817# ---------------------------------- 1818# Tests whether FUNC exists, setting the cache variable VAR accordingly 1819ac_fn_c_check_func () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1823$as_echo_n "checking for $2... " >&6; } 1824if eval \${$3+:} false; then : 1825 $as_echo_n "(cached) " >&6 1826else 1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1831#define $2 innocuous_$2 1832 1833/* System header to define __stub macros and hopefully few prototypes, 1834 which can conflict with char $2 (); below. 1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1836 <limits.h> exists even on freestanding compilers. */ 1837 1838#ifdef __STDC__ 1839# include <limits.h> 1840#else 1841# include <assert.h> 1842#endif 1843 1844#undef $2 1845 1846/* Override any GCC internal prototype to avoid an error. 1847 Use char because int might match the return type of a GCC 1848 builtin and then its argument prototype would still apply. */ 1849#ifdef __cplusplus 1850extern "C" 1851#endif 1852char $2 (); 1853/* The GNU C library defines this for functions which it implements 1854 to always fail with ENOSYS. Some functions are actually named 1855 something starting with __ and the normal name is an alias. */ 1856#if defined __stub_$2 || defined __stub___$2 1857choke me 1858#endif 1859 1860int 1861main () 1862{ 1863return $2 (); 1864 ; 1865 return 0; 1866} 1867_ACEOF 1868if ac_fn_c_try_link "$LINENO"; then : 1869 eval "$3=yes" 1870else 1871 eval "$3=no" 1872fi 1873rm -f core conftest.err conftest.$ac_objext \ 1874 conftest$ac_exeext conftest.$ac_ext 1875fi 1876eval ac_res=\$$3 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878$as_echo "$ac_res" >&6; } 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 1881} # ac_fn_c_check_func 1882 1883# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1884# ------------------------------------------------------- 1885# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1886# the include files in INCLUDES and setting the cache variable VAR 1887# accordingly. 1888ac_fn_c_check_header_mongrel () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 if eval \${$3+:} false; then : 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if eval \${$3+:} false; then : 1895 $as_echo_n "(cached) " >&6 1896fi 1897eval ac_res=\$$3 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1899$as_echo "$ac_res" >&6; } 1900else 1901 # Is the header compilable? 1902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1903$as_echo_n "checking $2 usability... " >&6; } 1904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906$4 1907#include <$2> 1908_ACEOF 1909if ac_fn_c_try_compile "$LINENO"; then : 1910 ac_header_compiler=yes 1911else 1912 ac_header_compiler=no 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1916$as_echo "$ac_header_compiler" >&6; } 1917 1918# Is the header present? 1919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1920$as_echo_n "checking $2 presence... " >&6; } 1921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1922/* end confdefs.h. */ 1923#include <$2> 1924_ACEOF 1925if ac_fn_c_try_cpp "$LINENO"; then : 1926 ac_header_preproc=yes 1927else 1928 ac_header_preproc=no 1929fi 1930rm -f conftest.err conftest.i conftest.$ac_ext 1931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1932$as_echo "$ac_header_preproc" >&6; } 1933 1934# So? What about this header? 1935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1936 yes:no: ) 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1938$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1941 ;; 1942 no:yes:* ) 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1944$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1946$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1948$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1950$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1952$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1953( $as_echo "## ------------------------------------------------------------------------------------------------ ## 1954## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic ## 1955## ------------------------------------------------------------------------------------------------ ##" 1956 ) | sed "s/^/$as_me: WARNING: /" >&2 1957 ;; 1958esac 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1960$as_echo_n "checking for $2... " >&6; } 1961if eval \${$3+:} false; then : 1962 $as_echo_n "(cached) " >&6 1963else 1964 eval "$3=\$ac_header_compiler" 1965fi 1966eval ac_res=\$$3 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1968$as_echo "$ac_res" >&6; } 1969fi 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 1972} # ac_fn_c_check_header_mongrel 1973cat >config.log <<_ACEOF 1974This file contains any messages produced by compilers while 1975running configure, to aid debugging if configure makes a mistake. 1976 1977It was created by xf86-video-neomagic $as_me 1.2.8, which was 1978generated by GNU Autoconf 2.69. Invocation command line was 1979 1980 $ $0 $@ 1981 1982_ACEOF 1983exec 5>>config.log 1984{ 1985cat <<_ASUNAME 1986## --------- ## 1987## Platform. ## 1988## --------- ## 1989 1990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1991uname -m = `(uname -m) 2>/dev/null || echo unknown` 1992uname -r = `(uname -r) 2>/dev/null || echo unknown` 1993uname -s = `(uname -s) 2>/dev/null || echo unknown` 1994uname -v = `(uname -v) 2>/dev/null || echo unknown` 1995 1996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1997/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1998 1999/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2000/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2002/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2003/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2004/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2005/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2006 2007_ASUNAME 2008 2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2010for as_dir in $PATH 2011do 2012 IFS=$as_save_IFS 2013 test -z "$as_dir" && as_dir=. 2014 $as_echo "PATH: $as_dir" 2015 done 2016IFS=$as_save_IFS 2017 2018} >&5 2019 2020cat >&5 <<_ACEOF 2021 2022 2023## ----------- ## 2024## Core tests. ## 2025## ----------- ## 2026 2027_ACEOF 2028 2029 2030# Keep a trace of the command line. 2031# Strip out --no-create and --no-recursion so they do not pile up. 2032# Strip out --silent because we don't want to record it for future runs. 2033# Also quote any args containing shell meta-characters. 2034# Make two passes to allow for proper duplicate-argument suppression. 2035ac_configure_args= 2036ac_configure_args0= 2037ac_configure_args1= 2038ac_must_keep_next=false 2039for ac_pass in 1 2 2040do 2041 for ac_arg 2042 do 2043 case $ac_arg in 2044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2046 | -silent | --silent | --silen | --sile | --sil) 2047 continue ;; 2048 *\'*) 2049 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2050 esac 2051 case $ac_pass in 2052 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2053 2) 2054 as_fn_append ac_configure_args1 " '$ac_arg'" 2055 if test $ac_must_keep_next = true; then 2056 ac_must_keep_next=false # Got value, back to normal. 2057 else 2058 case $ac_arg in 2059 *=* | --config-cache | -C | -disable-* | --disable-* \ 2060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2062 | -with-* | --with-* | -without-* | --without-* | --x) 2063 case "$ac_configure_args0 " in 2064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2065 esac 2066 ;; 2067 -* ) ac_must_keep_next=true ;; 2068 esac 2069 fi 2070 as_fn_append ac_configure_args " '$ac_arg'" 2071 ;; 2072 esac 2073 done 2074done 2075{ ac_configure_args0=; unset ac_configure_args0;} 2076{ ac_configure_args1=; unset ac_configure_args1;} 2077 2078# When interrupted or exit'd, cleanup temporary files, and complete 2079# config.log. We remove comments because anyway the quotes in there 2080# would cause problems or look ugly. 2081# WARNING: Use '\'' to represent an apostrophe within the trap. 2082# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2083trap 'exit_status=$? 2084 # Save into config.log some information that might help in debugging. 2085 { 2086 echo 2087 2088 $as_echo "## ---------------- ## 2089## Cache variables. ## 2090## ---------------- ##" 2091 echo 2092 # The following way of writing the cache mishandles newlines in values, 2093( 2094 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2095 eval ac_val=\$$ac_var 2096 case $ac_val in #( 2097 *${as_nl}*) 2098 case $ac_var in #( 2099 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2100$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2101 esac 2102 case $ac_var in #( 2103 _ | IFS | as_nl) ;; #( 2104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2105 *) { eval $ac_var=; unset $ac_var;} ;; 2106 esac ;; 2107 esac 2108 done 2109 (set) 2>&1 | 2110 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2111 *${as_nl}ac_space=\ *) 2112 sed -n \ 2113 "s/'\''/'\''\\\\'\'''\''/g; 2114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2115 ;; #( 2116 *) 2117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2118 ;; 2119 esac | 2120 sort 2121) 2122 echo 2123 2124 $as_echo "## ----------------- ## 2125## Output variables. ## 2126## ----------------- ##" 2127 echo 2128 for ac_var in $ac_subst_vars 2129 do 2130 eval ac_val=\$$ac_var 2131 case $ac_val in 2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2133 esac 2134 $as_echo "$ac_var='\''$ac_val'\''" 2135 done | sort 2136 echo 2137 2138 if test -n "$ac_subst_files"; then 2139 $as_echo "## ------------------- ## 2140## File substitutions. ## 2141## ------------------- ##" 2142 echo 2143 for ac_var in $ac_subst_files 2144 do 2145 eval ac_val=\$$ac_var 2146 case $ac_val in 2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2148 esac 2149 $as_echo "$ac_var='\''$ac_val'\''" 2150 done | sort 2151 echo 2152 fi 2153 2154 if test -s confdefs.h; then 2155 $as_echo "## ----------- ## 2156## confdefs.h. ## 2157## ----------- ##" 2158 echo 2159 cat confdefs.h 2160 echo 2161 fi 2162 test "$ac_signal" != 0 && 2163 $as_echo "$as_me: caught signal $ac_signal" 2164 $as_echo "$as_me: exit $exit_status" 2165 } >&5 2166 rm -f core *.core core.conftest.* && 2167 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2168 exit $exit_status 2169' 0 2170for ac_signal in 1 2 13 15; do 2171 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2172done 2173ac_signal=0 2174 2175# confdefs.h avoids OS command line length limits that DEFS can exceed. 2176rm -f -r conftest* confdefs.h 2177 2178$as_echo "/* confdefs.h */" > confdefs.h 2179 2180# Predefined preprocessor variables. 2181 2182cat >>confdefs.h <<_ACEOF 2183#define PACKAGE_NAME "$PACKAGE_NAME" 2184_ACEOF 2185 2186cat >>confdefs.h <<_ACEOF 2187#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2188_ACEOF 2189 2190cat >>confdefs.h <<_ACEOF 2191#define PACKAGE_VERSION "$PACKAGE_VERSION" 2192_ACEOF 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_STRING "$PACKAGE_STRING" 2196_ACEOF 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2200_ACEOF 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_URL "$PACKAGE_URL" 2204_ACEOF 2205 2206 2207# Let the site file select an alternate cache file if it wants to. 2208# Prefer an explicitly selected file to automatically selected ones. 2209ac_site_file1=NONE 2210ac_site_file2=NONE 2211if test -n "$CONFIG_SITE"; then 2212 # We do not want a PATH search for config.site. 2213 case $CONFIG_SITE in #(( 2214 -*) ac_site_file1=./$CONFIG_SITE;; 2215 */*) ac_site_file1=$CONFIG_SITE;; 2216 *) ac_site_file1=./$CONFIG_SITE;; 2217 esac 2218elif test "x$prefix" != xNONE; then 2219 ac_site_file1=$prefix/share/config.site 2220 ac_site_file2=$prefix/etc/config.site 2221else 2222 ac_site_file1=$ac_default_prefix/share/config.site 2223 ac_site_file2=$ac_default_prefix/etc/config.site 2224fi 2225for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2226do 2227 test "x$ac_site_file" = xNONE && continue 2228 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2230$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2231 sed 's/^/| /' "$ac_site_file" >&5 2232 . "$ac_site_file" \ 2233 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2235as_fn_error $? "failed to load site script $ac_site_file 2236See \`config.log' for more details" "$LINENO" 5; } 2237 fi 2238done 2239 2240if test -r "$cache_file"; then 2241 # Some versions of bash will fail to source /dev/null (special files 2242 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2243 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2245$as_echo "$as_me: loading cache $cache_file" >&6;} 2246 case $cache_file in 2247 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2248 *) . "./$cache_file";; 2249 esac 2250 fi 2251else 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2253$as_echo "$as_me: creating cache $cache_file" >&6;} 2254 >$cache_file 2255fi 2256 2257# Check that the precious variables saved in the cache have kept the same 2258# value. 2259ac_cache_corrupted=false 2260for ac_var in $ac_precious_vars; do 2261 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2262 eval ac_new_set=\$ac_env_${ac_var}_set 2263 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2264 eval ac_new_val=\$ac_env_${ac_var}_value 2265 case $ac_old_set,$ac_new_set in 2266 set,) 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2268$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2269 ac_cache_corrupted=: ;; 2270 ,set) 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2272$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2273 ac_cache_corrupted=: ;; 2274 ,);; 2275 *) 2276 if test "x$ac_old_val" != "x$ac_new_val"; then 2277 # differences in whitespace do not lead to failure. 2278 ac_old_val_w=`echo x $ac_old_val` 2279 ac_new_val_w=`echo x $ac_new_val` 2280 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2282$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2283 ac_cache_corrupted=: 2284 else 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2286$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2287 eval $ac_var=\$ac_old_val 2288 fi 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2290$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2292$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2293 fi;; 2294 esac 2295 # Pass precious variables to config.status. 2296 if test "$ac_new_set" = set; then 2297 case $ac_new_val in 2298 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2299 *) ac_arg=$ac_var=$ac_new_val ;; 2300 esac 2301 case " $ac_configure_args " in 2302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2303 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2304 esac 2305 fi 2306done 2307if $ac_cache_corrupted; then 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2311$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2312 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2313fi 2314## -------------------- ## 2315## Main body of script. ## 2316## -------------------- ## 2317 2318ac_ext=c 2319ac_cpp='$CPP $CPPFLAGS' 2320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2322ac_compiler_gnu=$ac_cv_c_compiler_gnu 2323 2324 2325 2326ac_config_headers="$ac_config_headers config.h" 2327 2328ac_aux_dir= 2329for ac_dir in . "$srcdir"/.; do 2330 if test -f "$ac_dir/install-sh"; then 2331 ac_aux_dir=$ac_dir 2332 ac_install_sh="$ac_aux_dir/install-sh -c" 2333 break 2334 elif test -f "$ac_dir/install.sh"; then 2335 ac_aux_dir=$ac_dir 2336 ac_install_sh="$ac_aux_dir/install.sh -c" 2337 break 2338 elif test -f "$ac_dir/shtool"; then 2339 ac_aux_dir=$ac_dir 2340 ac_install_sh="$ac_aux_dir/shtool install -c" 2341 break 2342 fi 2343done 2344if test -z "$ac_aux_dir"; then 2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2346fi 2347 2348# These three variables are undocumented and unsupported, 2349# and are intended to be withdrawn in a future Autoconf release. 2350# They can cause serious problems if a builder's source tree is in a directory 2351# whose full name contains unusual characters. 2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2355 2356 2357 2358# Initialize Automake 2359am__api_version='1.13' 2360 2361# Find a good install program. We prefer a C program (faster), 2362# so one script is as good as another. But avoid the broken or 2363# incompatible versions: 2364# SysV /etc/install, /usr/sbin/install 2365# SunOS /usr/etc/install 2366# IRIX /sbin/install 2367# AIX /bin/install 2368# AmigaOS /C/install, which installs bootblocks on floppy discs 2369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2370# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2372# OS/2's system install, which has a completely different semantic 2373# ./install, which can be erroneously created by make from ./install.sh. 2374# Reject install programs that cannot install multiple files. 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2376$as_echo_n "checking for a BSD-compatible install... " >&6; } 2377if test -z "$INSTALL"; then 2378if ${ac_cv_path_install+:} false; then : 2379 $as_echo_n "(cached) " >&6 2380else 2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382for as_dir in $PATH 2383do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 # Account for people who put trailing slashes in PATH elements. 2387case $as_dir/ in #(( 2388 ./ | .// | /[cC]/* | \ 2389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2390 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2391 /usr/ucb/* ) ;; 2392 *) 2393 # OSF1 and SCO ODT 3.0 have their own names for install. 2394 # Don't use installbsd from OSF since it installs stuff as root 2395 # by default. 2396 for ac_prog in ginstall scoinst install; do 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2399 if test $ac_prog = install && 2400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2401 # AIX install. It has an incompatible calling convention. 2402 : 2403 elif test $ac_prog = install && 2404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2405 # program-specific install script used by HP pwplus--don't use. 2406 : 2407 else 2408 rm -rf conftest.one conftest.two conftest.dir 2409 echo one > conftest.one 2410 echo two > conftest.two 2411 mkdir conftest.dir 2412 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2413 test -s conftest.one && test -s conftest.two && 2414 test -s conftest.dir/conftest.one && 2415 test -s conftest.dir/conftest.two 2416 then 2417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2418 break 3 2419 fi 2420 fi 2421 fi 2422 done 2423 done 2424 ;; 2425esac 2426 2427 done 2428IFS=$as_save_IFS 2429 2430rm -rf conftest.one conftest.two conftest.dir 2431 2432fi 2433 if test "${ac_cv_path_install+set}" = set; then 2434 INSTALL=$ac_cv_path_install 2435 else 2436 # As a last resort, use the slow shell script. Don't cache a 2437 # value for INSTALL within a source directory, because that will 2438 # break other packages using the cache if that directory is 2439 # removed, or if the value is a relative name. 2440 INSTALL=$ac_install_sh 2441 fi 2442fi 2443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2444$as_echo "$INSTALL" >&6; } 2445 2446# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2447# It thinks the first close brace ends the variable substitution. 2448test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2449 2450test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2451 2452test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2453 2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2455$as_echo_n "checking whether build environment is sane... " >&6; } 2456# Reject unsafe characters in $srcdir or the absolute working directory 2457# name. Accept space and tab only in the latter. 2458am_lf=' 2459' 2460case `pwd` in 2461 *[\\\"\#\$\&\'\`$am_lf]*) 2462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2463esac 2464case $srcdir in 2465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2466 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2467esac 2468 2469# Do 'set' in a subshell so we don't clobber the current shell's 2470# arguments. Must try -L first in case configure is actually a 2471# symlink; some systems play weird games with the mod time of symlinks 2472# (eg FreeBSD returns the mod time of the symlink's containing 2473# directory). 2474if ( 2475 am_has_slept=no 2476 for am_try in 1 2; do 2477 echo "timestamp, slept: $am_has_slept" > conftest.file 2478 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2479 if test "$*" = "X"; then 2480 # -L didn't work. 2481 set X `ls -t "$srcdir/configure" conftest.file` 2482 fi 2483 if test "$*" != "X $srcdir/configure conftest.file" \ 2484 && test "$*" != "X conftest.file $srcdir/configure"; then 2485 2486 # If neither matched, then we have a broken ls. This can happen 2487 # if, for instance, CONFIG_SHELL is bash and it inherits a 2488 # broken ls alias from the environment. This has actually 2489 # happened. Such a system could not be considered "sane". 2490 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2491 alias in your environment" "$LINENO" 5 2492 fi 2493 if test "$2" = conftest.file || test $am_try -eq 2; then 2494 break 2495 fi 2496 # Just in case. 2497 sleep 1 2498 am_has_slept=yes 2499 done 2500 test "$2" = conftest.file 2501 ) 2502then 2503 # Ok. 2504 : 2505else 2506 as_fn_error $? "newly created file is older than distributed files! 2507Check your system clock" "$LINENO" 5 2508fi 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2510$as_echo "yes" >&6; } 2511# If we didn't sleep, we still need to ensure time stamps of config.status and 2512# generated files are strictly newer. 2513am_sleep_pid= 2514if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2515 ( sleep 1 ) & 2516 am_sleep_pid=$! 2517fi 2518 2519rm -f conftest.file 2520 2521test "$program_prefix" != NONE && 2522 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2523# Use a double $ so make ignores it. 2524test "$program_suffix" != NONE && 2525 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2526# Double any \ or $. 2527# By default was `s,x,x', remove it if useless. 2528ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2529program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2530 2531# expand $ac_aux_dir to an absolute path 2532am_aux_dir=`cd $ac_aux_dir && pwd` 2533 2534if test x"${MISSING+set}" != xset; then 2535 case $am_aux_dir in 2536 *\ * | *\ *) 2537 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2538 *) 2539 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2540 esac 2541fi 2542# Use eval to expand $SHELL 2543if eval "$MISSING --is-lightweight"; then 2544 am_missing_run="$MISSING " 2545else 2546 am_missing_run= 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2548$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2549fi 2550 2551if test x"${install_sh}" != xset; then 2552 case $am_aux_dir in 2553 *\ * | *\ *) 2554 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2555 *) 2556 install_sh="\${SHELL} $am_aux_dir/install-sh" 2557 esac 2558fi 2559 2560# Installed binaries are usually stripped using 'strip' when the user 2561# run "make install-strip". However 'strip' might not be the right 2562# tool to use in cross-compilation environments, therefore Automake 2563# will honor the 'STRIP' environment variable to overrule this program. 2564if test "$cross_compiling" != no; then 2565 if test -n "$ac_tool_prefix"; then 2566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2567set dummy ${ac_tool_prefix}strip; ac_word=$2 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2569$as_echo_n "checking for $ac_word... " >&6; } 2570if ${ac_cv_prog_STRIP+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 if test -n "$STRIP"; then 2574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2575else 2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2577for as_dir in $PATH 2578do 2579 IFS=$as_save_IFS 2580 test -z "$as_dir" && as_dir=. 2581 for ac_exec_ext in '' $ac_executable_extensions; do 2582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2583 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2585 break 2 2586 fi 2587done 2588 done 2589IFS=$as_save_IFS 2590 2591fi 2592fi 2593STRIP=$ac_cv_prog_STRIP 2594if test -n "$STRIP"; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2596$as_echo "$STRIP" >&6; } 2597else 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2599$as_echo "no" >&6; } 2600fi 2601 2602 2603fi 2604if test -z "$ac_cv_prog_STRIP"; then 2605 ac_ct_STRIP=$STRIP 2606 # Extract the first word of "strip", so it can be a program name with args. 2607set dummy strip; ac_word=$2 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2609$as_echo_n "checking for $ac_word... " >&6; } 2610if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612else 2613 if test -n "$ac_ct_STRIP"; then 2614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2615else 2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2617for as_dir in $PATH 2618do 2619 IFS=$as_save_IFS 2620 test -z "$as_dir" && as_dir=. 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2623 ac_cv_prog_ac_ct_STRIP="strip" 2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2625 break 2 2626 fi 2627done 2628 done 2629IFS=$as_save_IFS 2630 2631fi 2632fi 2633ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2634if test -n "$ac_ct_STRIP"; then 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2636$as_echo "$ac_ct_STRIP" >&6; } 2637else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2639$as_echo "no" >&6; } 2640fi 2641 2642 if test "x$ac_ct_STRIP" = x; then 2643 STRIP=":" 2644 else 2645 case $cross_compiling:$ac_tool_warned in 2646yes:) 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2649ac_tool_warned=yes ;; 2650esac 2651 STRIP=$ac_ct_STRIP 2652 fi 2653else 2654 STRIP="$ac_cv_prog_STRIP" 2655fi 2656 2657fi 2658INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2659 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2661$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2662if test -z "$MKDIR_P"; then 2663 if ${ac_cv_path_mkdir+:} false; then : 2664 $as_echo_n "(cached) " >&6 2665else 2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 for ac_prog in mkdir gmkdir; do 2672 for ac_exec_ext in '' $ac_executable_extensions; do 2673 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2675 'mkdir (GNU coreutils) '* | \ 2676 'mkdir (coreutils) '* | \ 2677 'mkdir (fileutils) '4.1*) 2678 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2679 break 3;; 2680 esac 2681 done 2682 done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687 2688 test -d ./--version && rmdir ./--version 2689 if test "${ac_cv_path_mkdir+set}" = set; then 2690 MKDIR_P="$ac_cv_path_mkdir -p" 2691 else 2692 # As a last resort, use the slow shell script. Don't cache a 2693 # value for MKDIR_P within a source directory, because that will 2694 # break other packages using the cache if that directory is 2695 # removed, or if the value is a relative name. 2696 MKDIR_P="$ac_install_sh -d" 2697 fi 2698fi 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2700$as_echo "$MKDIR_P" >&6; } 2701 2702for ac_prog in gawk mawk nawk awk 2703do 2704 # Extract the first word of "$ac_prog", so it can be a program name with args. 2705set dummy $ac_prog; ac_word=$2 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2707$as_echo_n "checking for $ac_word... " >&6; } 2708if ${ac_cv_prog_AWK+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 if test -n "$AWK"; then 2712 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2721 ac_cv_prog_AWK="$ac_prog" 2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725done 2726 done 2727IFS=$as_save_IFS 2728 2729fi 2730fi 2731AWK=$ac_cv_prog_AWK 2732if test -n "$AWK"; then 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2734$as_echo "$AWK" >&6; } 2735else 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737$as_echo "no" >&6; } 2738fi 2739 2740 2741 test -n "$AWK" && break 2742done 2743 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2745$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2746set x ${MAKE-make} 2747ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2748if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2749 $as_echo_n "(cached) " >&6 2750else 2751 cat >conftest.make <<\_ACEOF 2752SHELL = /bin/sh 2753all: 2754 @echo '@@@%%%=$(MAKE)=@@@%%%' 2755_ACEOF 2756# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2757case `${MAKE-make} -f conftest.make 2>/dev/null` in 2758 *@@@%%%=?*=@@@%%%*) 2759 eval ac_cv_prog_make_${ac_make}_set=yes;; 2760 *) 2761 eval ac_cv_prog_make_${ac_make}_set=no;; 2762esac 2763rm -f conftest.make 2764fi 2765if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2767$as_echo "yes" >&6; } 2768 SET_MAKE= 2769else 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2771$as_echo "no" >&6; } 2772 SET_MAKE="MAKE=${MAKE-make}" 2773fi 2774 2775rm -rf .tst 2>/dev/null 2776mkdir .tst 2>/dev/null 2777if test -d .tst; then 2778 am__leading_dot=. 2779else 2780 am__leading_dot=_ 2781fi 2782rmdir .tst 2>/dev/null 2783 2784# Check whether --enable-silent-rules was given. 2785if test "${enable_silent_rules+set}" = set; then : 2786 enableval=$enable_silent_rules; 2787fi 2788 2789case $enable_silent_rules in # ((( 2790 yes) AM_DEFAULT_VERBOSITY=0;; 2791 no) AM_DEFAULT_VERBOSITY=1;; 2792 *) AM_DEFAULT_VERBOSITY=1;; 2793esac 2794am_make=${MAKE-make} 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2796$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2797if ${am_cv_make_support_nested_variables+:} false; then : 2798 $as_echo_n "(cached) " >&6 2799else 2800 if $as_echo 'TRUE=$(BAR$(V)) 2801BAR0=false 2802BAR1=true 2803V=1 2804am__doit: 2805 @$(TRUE) 2806.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2807 am_cv_make_support_nested_variables=yes 2808else 2809 am_cv_make_support_nested_variables=no 2810fi 2811fi 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2813$as_echo "$am_cv_make_support_nested_variables" >&6; } 2814if test $am_cv_make_support_nested_variables = yes; then 2815 AM_V='$(V)' 2816 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2817else 2818 AM_V=$AM_DEFAULT_VERBOSITY 2819 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2820fi 2821AM_BACKSLASH='\' 2822 2823if test "`cd $srcdir && pwd`" != "`pwd`"; then 2824 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2825 # is not polluted with repeated "-I." 2826 am__isrc=' -I$(srcdir)' 2827 # test to see if srcdir already configured 2828 if test -f $srcdir/config.status; then 2829 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2830 fi 2831fi 2832 2833# test whether we have cygpath 2834if test -z "$CYGPATH_W"; then 2835 if (cygpath --version) >/dev/null 2>/dev/null; then 2836 CYGPATH_W='cygpath -w' 2837 else 2838 CYGPATH_W=echo 2839 fi 2840fi 2841 2842 2843# Define the identity of the package. 2844 PACKAGE='xf86-video-neomagic' 2845 VERSION='1.2.8' 2846 2847 2848cat >>confdefs.h <<_ACEOF 2849#define PACKAGE "$PACKAGE" 2850_ACEOF 2851 2852 2853cat >>confdefs.h <<_ACEOF 2854#define VERSION "$VERSION" 2855_ACEOF 2856 2857# Some tools Automake needs. 2858 2859ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2860 2861 2862AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2863 2864 2865AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2866 2867 2868AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2869 2870 2871MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2872 2873# For better backward compatibility. To be removed once Automake 1.9.x 2874# dies out for good. For more background, see: 2875# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2876# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2877mkdir_p='$(MKDIR_P)' 2878 2879# We need awk for the "check" target. The system "awk" is bad on 2880# some platforms. 2881# Always define AMTAR for backward compatibility. Yes, it's still used 2882# in the wild :-( We should find a proper way to deprecate it ... 2883AMTAR='$${TAR-tar}' 2884 2885 2886# We'll loop over all known methods to create a tar archive until one works. 2887_am_tools='gnutar pax cpio none' 2888 2889am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2890 2891 2892 2893 2894 2895 2896 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2898$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2899 # Check whether --enable-maintainer-mode was given. 2900if test "${enable_maintainer_mode+set}" = set; then : 2901 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2902else 2903 USE_MAINTAINER_MODE=no 2904fi 2905 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2907$as_echo "$USE_MAINTAINER_MODE" >&6; } 2908 if test $USE_MAINTAINER_MODE = yes; then 2909 MAINTAINER_MODE_TRUE= 2910 MAINTAINER_MODE_FALSE='#' 2911else 2912 MAINTAINER_MODE_TRUE='#' 2913 MAINTAINER_MODE_FALSE= 2914fi 2915 2916 MAINT=$MAINTAINER_MODE_TRUE 2917 2918 2919 2920# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932DEPDIR="${am__leading_dot}deps" 2933 2934ac_config_commands="$ac_config_commands depfiles" 2935 2936 2937am_make=${MAKE-make} 2938cat > confinc << 'END' 2939am__doit: 2940 @echo this is the am__doit target 2941.PHONY: am__doit 2942END 2943# If we don't find an include directive, just comment out the code. 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2945$as_echo_n "checking for style of include used by $am_make... " >&6; } 2946am__include="#" 2947am__quote= 2948_am_result=none 2949# First try GNU make style include. 2950echo "include confinc" > confmf 2951# Ignore all kinds of additional output from 'make'. 2952case `$am_make -s -f confmf 2> /dev/null` in #( 2953*the\ am__doit\ target*) 2954 am__include=include 2955 am__quote= 2956 _am_result=GNU 2957 ;; 2958esac 2959# Now try BSD make style include. 2960if test "$am__include" = "#"; then 2961 echo '.include "confinc"' > confmf 2962 case `$am_make -s -f confmf 2> /dev/null` in #( 2963 *the\ am__doit\ target*) 2964 am__include=.include 2965 am__quote="\"" 2966 _am_result=BSD 2967 ;; 2968 esac 2969fi 2970 2971 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2973$as_echo "$_am_result" >&6; } 2974rm -f confinc confmf 2975 2976# Check whether --enable-dependency-tracking was given. 2977if test "${enable_dependency_tracking+set}" = set; then : 2978 enableval=$enable_dependency_tracking; 2979fi 2980 2981if test "x$enable_dependency_tracking" != xno; then 2982 am_depcomp="$ac_aux_dir/depcomp" 2983 AMDEPBACKSLASH='\' 2984 am__nodep='_no' 2985fi 2986 if test "x$enable_dependency_tracking" != xno; then 2987 AMDEP_TRUE= 2988 AMDEP_FALSE='#' 2989else 2990 AMDEP_TRUE='#' 2991 AMDEP_FALSE= 2992fi 2993 2994 2995ac_ext=c 2996ac_cpp='$CPP $CPPFLAGS' 2997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2999ac_compiler_gnu=$ac_cv_c_compiler_gnu 3000if test -n "$ac_tool_prefix"; then 3001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3002set dummy ${ac_tool_prefix}gcc; ac_word=$2 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004$as_echo_n "checking for $ac_word... " >&6; } 3005if ${ac_cv_prog_CC+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 if test -n "$CC"; then 3009 ac_cv_prog_CC="$CC" # Let the user override the test. 3010else 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 break 2 3021 fi 3022done 3023 done 3024IFS=$as_save_IFS 3025 3026fi 3027fi 3028CC=$ac_cv_prog_CC 3029if test -n "$CC"; then 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3031$as_echo "$CC" >&6; } 3032else 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034$as_echo "no" >&6; } 3035fi 3036 3037 3038fi 3039if test -z "$ac_cv_prog_CC"; then 3040 ac_ct_CC=$CC 3041 # Extract the first word of "gcc", so it can be a program name with args. 3042set dummy gcc; ac_word=$2 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3044$as_echo_n "checking for $ac_word... " >&6; } 3045if ${ac_cv_prog_ac_ct_CC+:} false; then : 3046 $as_echo_n "(cached) " >&6 3047else 3048 if test -n "$ac_ct_CC"; then 3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3050else 3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3052for as_dir in $PATH 3053do 3054 IFS=$as_save_IFS 3055 test -z "$as_dir" && as_dir=. 3056 for ac_exec_ext in '' $ac_executable_extensions; do 3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3058 ac_cv_prog_ac_ct_CC="gcc" 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3060 break 2 3061 fi 3062done 3063 done 3064IFS=$as_save_IFS 3065 3066fi 3067fi 3068ac_ct_CC=$ac_cv_prog_ac_ct_CC 3069if test -n "$ac_ct_CC"; then 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3071$as_echo "$ac_ct_CC" >&6; } 3072else 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3074$as_echo "no" >&6; } 3075fi 3076 3077 if test "x$ac_ct_CC" = x; then 3078 CC="" 3079 else 3080 case $cross_compiling:$ac_tool_warned in 3081yes:) 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3084ac_tool_warned=yes ;; 3085esac 3086 CC=$ac_ct_CC 3087 fi 3088else 3089 CC="$ac_cv_prog_CC" 3090fi 3091 3092if test -z "$CC"; then 3093 if test -n "$ac_tool_prefix"; then 3094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3095set dummy ${ac_tool_prefix}cc; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$CC"; then 3102 ac_cv_prog_CC="$CC" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_CC="${ac_tool_prefix}cc" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121CC=$ac_cv_prog_CC 3122if test -n "$CC"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3124$as_echo "$CC" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 3131 fi 3132fi 3133if test -z "$CC"; then 3134 # Extract the first word of "cc", so it can be a program name with args. 3135set dummy cc; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if ${ac_cv_prog_CC+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$CC"; then 3142 ac_cv_prog_CC="$CC" # Let the user override the test. 3143else 3144 ac_prog_rejected=no 3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3146for as_dir in $PATH 3147do 3148 IFS=$as_save_IFS 3149 test -z "$as_dir" && as_dir=. 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3152 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3153 ac_prog_rejected=yes 3154 continue 3155 fi 3156 ac_cv_prog_CC="cc" 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160done 3161 done 3162IFS=$as_save_IFS 3163 3164if test $ac_prog_rejected = yes; then 3165 # We found a bogon in the path, so make sure we never use it. 3166 set dummy $ac_cv_prog_CC 3167 shift 3168 if test $# != 0; then 3169 # We chose a different compiler from the bogus one. 3170 # However, it has the same basename, so the bogon will be chosen 3171 # first if we set CC to just the basename; use the full file name. 3172 shift 3173 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3174 fi 3175fi 3176fi 3177fi 3178CC=$ac_cv_prog_CC 3179if test -n "$CC"; then 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3181$as_echo "$CC" >&6; } 3182else 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3184$as_echo "no" >&6; } 3185fi 3186 3187 3188fi 3189if test -z "$CC"; then 3190 if test -n "$ac_tool_prefix"; then 3191 for ac_prog in cl.exe 3192 do 3193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3194set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3196$as_echo_n "checking for $ac_word... " >&6; } 3197if ${ac_cv_prog_CC+:} false; then : 3198 $as_echo_n "(cached) " >&6 3199else 3200 if test -n "$CC"; then 3201 ac_cv_prog_CC="$CC" # Let the user override the test. 3202else 3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3204for as_dir in $PATH 3205do 3206 IFS=$as_save_IFS 3207 test -z "$as_dir" && as_dir=. 3208 for ac_exec_ext in '' $ac_executable_extensions; do 3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3212 break 2 3213 fi 3214done 3215 done 3216IFS=$as_save_IFS 3217 3218fi 3219fi 3220CC=$ac_cv_prog_CC 3221if test -n "$CC"; then 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3223$as_echo "$CC" >&6; } 3224else 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3226$as_echo "no" >&6; } 3227fi 3228 3229 3230 test -n "$CC" && break 3231 done 3232fi 3233if test -z "$CC"; then 3234 ac_ct_CC=$CC 3235 for ac_prog in cl.exe 3236do 3237 # Extract the first word of "$ac_prog", so it can be a program name with args. 3238set dummy $ac_prog; ac_word=$2 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3240$as_echo_n "checking for $ac_word... " >&6; } 3241if ${ac_cv_prog_ac_ct_CC+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 if test -n "$ac_ct_CC"; then 3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3246else 3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3248for as_dir in $PATH 3249do 3250 IFS=$as_save_IFS 3251 test -z "$as_dir" && as_dir=. 3252 for ac_exec_ext in '' $ac_executable_extensions; do 3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3254 ac_cv_prog_ac_ct_CC="$ac_prog" 3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3256 break 2 3257 fi 3258done 3259 done 3260IFS=$as_save_IFS 3261 3262fi 3263fi 3264ac_ct_CC=$ac_cv_prog_ac_ct_CC 3265if test -n "$ac_ct_CC"; then 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3267$as_echo "$ac_ct_CC" >&6; } 3268else 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3270$as_echo "no" >&6; } 3271fi 3272 3273 3274 test -n "$ac_ct_CC" && break 3275done 3276 3277 if test "x$ac_ct_CC" = x; then 3278 CC="" 3279 else 3280 case $cross_compiling:$ac_tool_warned in 3281yes:) 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3284ac_tool_warned=yes ;; 3285esac 3286 CC=$ac_ct_CC 3287 fi 3288fi 3289 3290fi 3291 3292 3293test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3295as_fn_error $? "no acceptable C compiler found in \$PATH 3296See \`config.log' for more details" "$LINENO" 5; } 3297 3298# Provide some information about the compiler. 3299$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3300set X $ac_compile 3301ac_compiler=$2 3302for ac_option in --version -v -V -qversion; do 3303 { { ac_try="$ac_compiler $ac_option >&5" 3304case "(($ac_try" in 3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3306 *) ac_try_echo=$ac_try;; 3307esac 3308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3309$as_echo "$ac_try_echo"; } >&5 3310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3311 ac_status=$? 3312 if test -s conftest.err; then 3313 sed '10a\ 3314... rest of stderr output deleted ... 3315 10q' conftest.err >conftest.er1 3316 cat conftest.er1 >&5 3317 fi 3318 rm -f conftest.er1 conftest.err 3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3320 test $ac_status = 0; } 3321done 3322 3323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3324/* end confdefs.h. */ 3325 3326int 3327main () 3328{ 3329 3330 ; 3331 return 0; 3332} 3333_ACEOF 3334ac_clean_files_save=$ac_clean_files 3335ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3336# Try to create an executable without -o first, disregard a.out. 3337# It will help us diagnose broken compilers, and finding out an intuition 3338# of exeext. 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3340$as_echo_n "checking whether the C compiler works... " >&6; } 3341ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3342 3343# The possible output files: 3344ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3345 3346ac_rmfiles= 3347for ac_file in $ac_files 3348do 3349 case $ac_file in 3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3351 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3352 esac 3353done 3354rm -f $ac_rmfiles 3355 3356if { { ac_try="$ac_link_default" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3362$as_echo "$ac_try_echo"; } >&5 3363 (eval "$ac_link_default") 2>&5 3364 ac_status=$? 3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3366 test $ac_status = 0; }; then : 3367 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3368# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3369# in a Makefile. We should not override ac_cv_exeext if it was cached, 3370# so that the user can short-circuit this test for compilers unknown to 3371# Autoconf. 3372for ac_file in $ac_files '' 3373do 3374 test -f "$ac_file" || continue 3375 case $ac_file in 3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3377 ;; 3378 [ab].out ) 3379 # We found the default executable, but exeext='' is most 3380 # certainly right. 3381 break;; 3382 *.* ) 3383 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3384 then :; else 3385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3386 fi 3387 # We set ac_cv_exeext here because the later test for it is not 3388 # safe: cross compilers may not add the suffix if given an `-o' 3389 # argument, so we may need to know it at that point already. 3390 # Even if this section looks crufty: it has the advantage of 3391 # actually working. 3392 break;; 3393 * ) 3394 break;; 3395 esac 3396done 3397test "$ac_cv_exeext" = no && ac_cv_exeext= 3398 3399else 3400 ac_file='' 3401fi 3402if test -z "$ac_file"; then : 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404$as_echo "no" >&6; } 3405$as_echo "$as_me: failed program was:" >&5 3406sed 's/^/| /' conftest.$ac_ext >&5 3407 3408{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3410as_fn_error 77 "C compiler cannot create executables 3411See \`config.log' for more details" "$LINENO" 5; } 3412else 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3414$as_echo "yes" >&6; } 3415fi 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3417$as_echo_n "checking for C compiler default output file name... " >&6; } 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3419$as_echo "$ac_file" >&6; } 3420ac_exeext=$ac_cv_exeext 3421 3422rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3423ac_clean_files=$ac_clean_files_save 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3425$as_echo_n "checking for suffix of executables... " >&6; } 3426if { { ac_try="$ac_link" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3432$as_echo "$ac_try_echo"; } >&5 3433 (eval "$ac_link") 2>&5 3434 ac_status=$? 3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3436 test $ac_status = 0; }; then : 3437 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3438# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3439# work properly (i.e., refer to `conftest.exe'), while it won't with 3440# `rm'. 3441for ac_file in conftest.exe conftest conftest.*; do 3442 test -f "$ac_file" || continue 3443 case $ac_file in 3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3446 break;; 3447 * ) break;; 3448 esac 3449done 3450else 3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3453as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3454See \`config.log' for more details" "$LINENO" 5; } 3455fi 3456rm -f conftest conftest$ac_cv_exeext 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3458$as_echo "$ac_cv_exeext" >&6; } 3459 3460rm -f conftest.$ac_ext 3461EXEEXT=$ac_cv_exeext 3462ac_exeext=$EXEEXT 3463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464/* end confdefs.h. */ 3465#include <stdio.h> 3466int 3467main () 3468{ 3469FILE *f = fopen ("conftest.out", "w"); 3470 return ferror (f) || fclose (f) != 0; 3471 3472 ; 3473 return 0; 3474} 3475_ACEOF 3476ac_clean_files="$ac_clean_files conftest.out" 3477# Check that the compiler produces executables we can run. If not, either 3478# the compiler is broken, or we cross compile. 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3480$as_echo_n "checking whether we are cross compiling... " >&6; } 3481if test "$cross_compiling" != yes; then 3482 { { ac_try="$ac_link" 3483case "(($ac_try" in 3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3485 *) ac_try_echo=$ac_try;; 3486esac 3487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3488$as_echo "$ac_try_echo"; } >&5 3489 (eval "$ac_link") 2>&5 3490 ac_status=$? 3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3492 test $ac_status = 0; } 3493 if { ac_try='./conftest$ac_cv_exeext' 3494 { { case "(($ac_try" in 3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3496 *) ac_try_echo=$ac_try;; 3497esac 3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3499$as_echo "$ac_try_echo"; } >&5 3500 (eval "$ac_try") 2>&5 3501 ac_status=$? 3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3503 test $ac_status = 0; }; }; then 3504 cross_compiling=no 3505 else 3506 if test "$cross_compiling" = maybe; then 3507 cross_compiling=yes 3508 else 3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3511as_fn_error $? "cannot run C compiled programs. 3512If you meant to cross compile, use \`--host'. 3513See \`config.log' for more details" "$LINENO" 5; } 3514 fi 3515 fi 3516fi 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3518$as_echo "$cross_compiling" >&6; } 3519 3520rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3521ac_clean_files=$ac_clean_files_save 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3523$as_echo_n "checking for suffix of object files... " >&6; } 3524if ${ac_cv_objext+:} false; then : 3525 $as_echo_n "(cached) " >&6 3526else 3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528/* end confdefs.h. */ 3529 3530int 3531main () 3532{ 3533 3534 ; 3535 return 0; 3536} 3537_ACEOF 3538rm -f conftest.o conftest.obj 3539if { { ac_try="$ac_compile" 3540case "(($ac_try" in 3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3542 *) ac_try_echo=$ac_try;; 3543esac 3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3545$as_echo "$ac_try_echo"; } >&5 3546 (eval "$ac_compile") 2>&5 3547 ac_status=$? 3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3549 test $ac_status = 0; }; then : 3550 for ac_file in conftest.o conftest.obj conftest.*; do 3551 test -f "$ac_file" || continue; 3552 case $ac_file in 3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3555 break;; 3556 esac 3557done 3558else 3559 $as_echo "$as_me: failed program was:" >&5 3560sed 's/^/| /' conftest.$ac_ext >&5 3561 3562{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3564as_fn_error $? "cannot compute suffix of object files: cannot compile 3565See \`config.log' for more details" "$LINENO" 5; } 3566fi 3567rm -f conftest.$ac_cv_objext conftest.$ac_ext 3568fi 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3570$as_echo "$ac_cv_objext" >&6; } 3571OBJEXT=$ac_cv_objext 3572ac_objext=$OBJEXT 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3574$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3575if ${ac_cv_c_compiler_gnu+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main () 3583{ 3584#ifndef __GNUC__ 3585 choke me 3586#endif 3587 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592if ac_fn_c_try_compile "$LINENO"; then : 3593 ac_compiler_gnu=yes 3594else 3595 ac_compiler_gnu=no 3596fi 3597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3598ac_cv_c_compiler_gnu=$ac_compiler_gnu 3599 3600fi 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3602$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3603if test $ac_compiler_gnu = yes; then 3604 GCC=yes 3605else 3606 GCC= 3607fi 3608ac_test_CFLAGS=${CFLAGS+set} 3609ac_save_CFLAGS=$CFLAGS 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3611$as_echo_n "checking whether $CC accepts -g... " >&6; } 3612if ${ac_cv_prog_cc_g+:} false; then : 3613 $as_echo_n "(cached) " >&6 3614else 3615 ac_save_c_werror_flag=$ac_c_werror_flag 3616 ac_c_werror_flag=yes 3617 ac_cv_prog_cc_g=no 3618 CFLAGS="-g" 3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3620/* end confdefs.h. */ 3621 3622int 3623main () 3624{ 3625 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630if ac_fn_c_try_compile "$LINENO"; then : 3631 ac_cv_prog_cc_g=yes 3632else 3633 CFLAGS="" 3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3635/* end confdefs.h. */ 3636 3637int 3638main () 3639{ 3640 3641 ; 3642 return 0; 3643} 3644_ACEOF 3645if ac_fn_c_try_compile "$LINENO"; then : 3646 3647else 3648 ac_c_werror_flag=$ac_save_c_werror_flag 3649 CFLAGS="-g" 3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652 3653int 3654main () 3655{ 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661if ac_fn_c_try_compile "$LINENO"; then : 3662 ac_cv_prog_cc_g=yes 3663fi 3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3665fi 3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3667fi 3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3669 ac_c_werror_flag=$ac_save_c_werror_flag 3670fi 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3672$as_echo "$ac_cv_prog_cc_g" >&6; } 3673if test "$ac_test_CFLAGS" = set; then 3674 CFLAGS=$ac_save_CFLAGS 3675elif test $ac_cv_prog_cc_g = yes; then 3676 if test "$GCC" = yes; then 3677 CFLAGS="-g -O2" 3678 else 3679 CFLAGS="-g" 3680 fi 3681else 3682 if test "$GCC" = yes; then 3683 CFLAGS="-O2" 3684 else 3685 CFLAGS= 3686 fi 3687fi 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3689$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3690if ${ac_cv_prog_cc_c89+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 ac_cv_prog_cc_c89=no 3694ac_save_CC=$CC 3695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696/* end confdefs.h. */ 3697#include <stdarg.h> 3698#include <stdio.h> 3699struct stat; 3700/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3701struct buf { int x; }; 3702FILE * (*rcsopen) (struct buf *, struct stat *, int); 3703static char *e (p, i) 3704 char **p; 3705 int i; 3706{ 3707 return p[i]; 3708} 3709static char *f (char * (*g) (char **, int), char **p, ...) 3710{ 3711 char *s; 3712 va_list v; 3713 va_start (v,p); 3714 s = g (p, va_arg (v,int)); 3715 va_end (v); 3716 return s; 3717} 3718 3719/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3720 function prototypes and stuff, but not '\xHH' hex character constants. 3721 These don't provoke an error unfortunately, instead are silently treated 3722 as 'x'. The following induces an error, until -std is added to get 3723 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3724 array size at least. It's necessary to write '\x00'==0 to get something 3725 that's true only with -std. */ 3726int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3727 3728/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3729 inside strings and character constants. */ 3730#define FOO(x) 'x' 3731int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3732 3733int test (int i, double x); 3734struct s1 {int (*f) (int a);}; 3735struct s2 {int (*f) (double a);}; 3736int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3737int argc; 3738char **argv; 3739int 3740main () 3741{ 3742return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3743 ; 3744 return 0; 3745} 3746_ACEOF 3747for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3748 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3749do 3750 CC="$ac_save_CC $ac_arg" 3751 if ac_fn_c_try_compile "$LINENO"; then : 3752 ac_cv_prog_cc_c89=$ac_arg 3753fi 3754rm -f core conftest.err conftest.$ac_objext 3755 test "x$ac_cv_prog_cc_c89" != "xno" && break 3756done 3757rm -f conftest.$ac_ext 3758CC=$ac_save_CC 3759 3760fi 3761# AC_CACHE_VAL 3762case "x$ac_cv_prog_cc_c89" in 3763 x) 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3765$as_echo "none needed" >&6; } ;; 3766 xno) 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3768$as_echo "unsupported" >&6; } ;; 3769 *) 3770 CC="$CC $ac_cv_prog_cc_c89" 3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3772$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3773esac 3774if test "x$ac_cv_prog_cc_c89" != xno; then : 3775 3776fi 3777 3778ac_ext=c 3779ac_cpp='$CPP $CPPFLAGS' 3780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3782ac_compiler_gnu=$ac_cv_c_compiler_gnu 3783 3784depcc="$CC" am_compiler_list= 3785 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3787$as_echo_n "checking dependency style of $depcc... " >&6; } 3788if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3789 $as_echo_n "(cached) " >&6 3790else 3791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3792 # We make a subdir and do the tests there. Otherwise we can end up 3793 # making bogus files that we don't know about and never remove. For 3794 # instance it was reported that on HP-UX the gcc test will end up 3795 # making a dummy file named 'D' -- because '-MD' means "put the output 3796 # in D". 3797 rm -rf conftest.dir 3798 mkdir conftest.dir 3799 # Copy depcomp to subdir because otherwise we won't find it if we're 3800 # using a relative directory. 3801 cp "$am_depcomp" conftest.dir 3802 cd conftest.dir 3803 # We will build objects and dependencies in a subdirectory because 3804 # it helps to detect inapplicable dependency modes. For instance 3805 # both Tru64's cc and ICC support -MD to output dependencies as a 3806 # side effect of compilation, but ICC will put the dependencies in 3807 # the current directory while Tru64 will put them in the object 3808 # directory. 3809 mkdir sub 3810 3811 am_cv_CC_dependencies_compiler_type=none 3812 if test "$am_compiler_list" = ""; then 3813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3814 fi 3815 am__universal=false 3816 case " $depcc " in #( 3817 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3818 esac 3819 3820 for depmode in $am_compiler_list; do 3821 # Setup a source with many dependencies, because some compilers 3822 # like to wrap large dependency lists on column 80 (with \), and 3823 # we should not choose a depcomp mode which is confused by this. 3824 # 3825 # We need to recreate these files for each test, as the compiler may 3826 # overwrite some of them when testing with obscure command lines. 3827 # This happens at least with the AIX C compiler. 3828 : > sub/conftest.c 3829 for i in 1 2 3 4 5 6; do 3830 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3831 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3832 # Solaris 10 /bin/sh. 3833 echo '/* dummy */' > sub/conftst$i.h 3834 done 3835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3836 3837 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3838 # mode. It turns out that the SunPro C++ compiler does not properly 3839 # handle '-M -o', and we need to detect this. Also, some Intel 3840 # versions had trouble with output in subdirs. 3841 am__obj=sub/conftest.${OBJEXT-o} 3842 am__minus_obj="-o $am__obj" 3843 case $depmode in 3844 gcc) 3845 # This depmode causes a compiler race in universal mode. 3846 test "$am__universal" = false || continue 3847 ;; 3848 nosideeffect) 3849 # After this tag, mechanisms are not by side-effect, so they'll 3850 # only be used when explicitly requested. 3851 if test "x$enable_dependency_tracking" = xyes; then 3852 continue 3853 else 3854 break 3855 fi 3856 ;; 3857 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3858 # This compiler won't grok '-c -o', but also, the minuso test has 3859 # not run yet. These depmodes are late enough in the game, and 3860 # so weak that their functioning should not be impacted. 3861 am__obj=conftest.${OBJEXT-o} 3862 am__minus_obj= 3863 ;; 3864 none) break ;; 3865 esac 3866 if depmode=$depmode \ 3867 source=sub/conftest.c object=$am__obj \ 3868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3869 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3870 >/dev/null 2>conftest.err && 3871 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3873 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3875 # icc doesn't choke on unknown options, it will just issue warnings 3876 # or remarks (even with -Werror). So we grep stderr for any message 3877 # that says an option was ignored or not supported. 3878 # When given -MP, icc 7.0 and 7.1 complain thusly: 3879 # icc: Command line warning: ignoring option '-M'; no argument required 3880 # The diagnosis changed in icc 8.0: 3881 # icc: Command line remark: option '-MP' not supported 3882 if (grep 'ignoring option' conftest.err || 3883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3884 am_cv_CC_dependencies_compiler_type=$depmode 3885 break 3886 fi 3887 fi 3888 done 3889 3890 cd .. 3891 rm -rf conftest.dir 3892else 3893 am_cv_CC_dependencies_compiler_type=none 3894fi 3895 3896fi 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3898$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3899CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3900 3901 if 3902 test "x$enable_dependency_tracking" != xno \ 3903 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3904 am__fastdepCC_TRUE= 3905 am__fastdepCC_FALSE='#' 3906else 3907 am__fastdepCC_TRUE='#' 3908 am__fastdepCC_FALSE= 3909fi 3910 3911 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3913$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3914if ${ac_cv_prog_cc_c99+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 ac_cv_prog_cc_c99=no 3918ac_save_CC=$CC 3919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921#include <stdarg.h> 3922#include <stdbool.h> 3923#include <stdlib.h> 3924#include <wchar.h> 3925#include <stdio.h> 3926 3927// Check varargs macros. These examples are taken from C99 6.10.3.5. 3928#define debug(...) fprintf (stderr, __VA_ARGS__) 3929#define showlist(...) puts (#__VA_ARGS__) 3930#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3931static void 3932test_varargs_macros (void) 3933{ 3934 int x = 1234; 3935 int y = 5678; 3936 debug ("Flag"); 3937 debug ("X = %d\n", x); 3938 showlist (The first, second, and third items.); 3939 report (x>y, "x is %d but y is %d", x, y); 3940} 3941 3942// Check long long types. 3943#define BIG64 18446744073709551615ull 3944#define BIG32 4294967295ul 3945#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3946#if !BIG_OK 3947 your preprocessor is broken; 3948#endif 3949#if BIG_OK 3950#else 3951 your preprocessor is broken; 3952#endif 3953static long long int bignum = -9223372036854775807LL; 3954static unsigned long long int ubignum = BIG64; 3955 3956struct incomplete_array 3957{ 3958 int datasize; 3959 double data[]; 3960}; 3961 3962struct named_init { 3963 int number; 3964 const wchar_t *name; 3965 double average; 3966}; 3967 3968typedef const char *ccp; 3969 3970static inline int 3971test_restrict (ccp restrict text) 3972{ 3973 // See if C++-style comments work. 3974 // Iterate through items via the restricted pointer. 3975 // Also check for declarations in for loops. 3976 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3977 continue; 3978 return 0; 3979} 3980 3981// Check varargs and va_copy. 3982static void 3983test_varargs (const char *format, ...) 3984{ 3985 va_list args; 3986 va_start (args, format); 3987 va_list args_copy; 3988 va_copy (args_copy, args); 3989 3990 const char *str; 3991 int number; 3992 float fnumber; 3993 3994 while (*format) 3995 { 3996 switch (*format++) 3997 { 3998 case 's': // string 3999 str = va_arg (args_copy, const char *); 4000 break; 4001 case 'd': // int 4002 number = va_arg (args_copy, int); 4003 break; 4004 case 'f': // float 4005 fnumber = va_arg (args_copy, double); 4006 break; 4007 default: 4008 break; 4009 } 4010 } 4011 va_end (args_copy); 4012 va_end (args); 4013} 4014 4015int 4016main () 4017{ 4018 4019 // Check bool. 4020 _Bool success = false; 4021 4022 // Check restrict. 4023 if (test_restrict ("String literal") == 0) 4024 success = true; 4025 char *restrict newvar = "Another string"; 4026 4027 // Check varargs. 4028 test_varargs ("s, d' f .", "string", 65, 34.234); 4029 test_varargs_macros (); 4030 4031 // Check flexible array members. 4032 struct incomplete_array *ia = 4033 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4034 ia->datasize = 10; 4035 for (int i = 0; i < ia->datasize; ++i) 4036 ia->data[i] = i * 1.234; 4037 4038 // Check named initializers. 4039 struct named_init ni = { 4040 .number = 34, 4041 .name = L"Test wide string", 4042 .average = 543.34343, 4043 }; 4044 4045 ni.number = 58; 4046 4047 int dynamic_array[ni.number]; 4048 dynamic_array[ni.number - 1] = 543; 4049 4050 // work around unused variable warnings 4051 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4052 || dynamic_array[ni.number - 1] != 543); 4053 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4059do 4060 CC="$ac_save_CC $ac_arg" 4061 if ac_fn_c_try_compile "$LINENO"; then : 4062 ac_cv_prog_cc_c99=$ac_arg 4063fi 4064rm -f core conftest.err conftest.$ac_objext 4065 test "x$ac_cv_prog_cc_c99" != "xno" && break 4066done 4067rm -f conftest.$ac_ext 4068CC=$ac_save_CC 4069 4070fi 4071# AC_CACHE_VAL 4072case "x$ac_cv_prog_cc_c99" in 4073 x) 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4075$as_echo "none needed" >&6; } ;; 4076 xno) 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4078$as_echo "unsupported" >&6; } ;; 4079 *) 4080 CC="$CC $ac_cv_prog_cc_c99" 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4082$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4083esac 4084if test "x$ac_cv_prog_cc_c99" != xno; then : 4085 4086fi 4087 4088 4089 4090ac_ext=c 4091ac_cpp='$CPP $CPPFLAGS' 4092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4094ac_compiler_gnu=$ac_cv_c_compiler_gnu 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4096$as_echo_n "checking how to run the C preprocessor... " >&6; } 4097# On Suns, sometimes $CPP names a directory. 4098if test -n "$CPP" && test -d "$CPP"; then 4099 CPP= 4100fi 4101if test -z "$CPP"; then 4102 if ${ac_cv_prog_CPP+:} false; then : 4103 $as_echo_n "(cached) " >&6 4104else 4105 # Double quotes because CPP needs to be expanded 4106 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4107 do 4108 ac_preproc_ok=false 4109for ac_c_preproc_warn_flag in '' yes 4110do 4111 # Use a header file that comes with gcc, so configuring glibc 4112 # with a fresh cross-compiler works. 4113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4114 # <limits.h> exists even on freestanding compilers. 4115 # On the NeXT, cc -E runs the code through the compiler's parser, 4116 # not just through cpp. "Syntax error" is here to catch this case. 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118/* end confdefs.h. */ 4119#ifdef __STDC__ 4120# include <limits.h> 4121#else 4122# include <assert.h> 4123#endif 4124 Syntax error 4125_ACEOF 4126if ac_fn_c_try_cpp "$LINENO"; then : 4127 4128else 4129 # Broken: fails on valid input. 4130continue 4131fi 4132rm -f conftest.err conftest.i conftest.$ac_ext 4133 4134 # OK, works on sane cases. Now check whether nonexistent headers 4135 # can be detected and how. 4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4137/* end confdefs.h. */ 4138#include <ac_nonexistent.h> 4139_ACEOF 4140if ac_fn_c_try_cpp "$LINENO"; then : 4141 # Broken: success on invalid input. 4142continue 4143else 4144 # Passes both tests. 4145ac_preproc_ok=: 4146break 4147fi 4148rm -f conftest.err conftest.i conftest.$ac_ext 4149 4150done 4151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4152rm -f conftest.i conftest.err conftest.$ac_ext 4153if $ac_preproc_ok; then : 4154 break 4155fi 4156 4157 done 4158 ac_cv_prog_CPP=$CPP 4159 4160fi 4161 CPP=$ac_cv_prog_CPP 4162else 4163 ac_cv_prog_CPP=$CPP 4164fi 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4166$as_echo "$CPP" >&6; } 4167ac_preproc_ok=false 4168for ac_c_preproc_warn_flag in '' yes 4169do 4170 # Use a header file that comes with gcc, so configuring glibc 4171 # with a fresh cross-compiler works. 4172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4173 # <limits.h> exists even on freestanding compilers. 4174 # On the NeXT, cc -E runs the code through the compiler's parser, 4175 # not just through cpp. "Syntax error" is here to catch this case. 4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4177/* end confdefs.h. */ 4178#ifdef __STDC__ 4179# include <limits.h> 4180#else 4181# include <assert.h> 4182#endif 4183 Syntax error 4184_ACEOF 4185if ac_fn_c_try_cpp "$LINENO"; then : 4186 4187else 4188 # Broken: fails on valid input. 4189continue 4190fi 4191rm -f conftest.err conftest.i conftest.$ac_ext 4192 4193 # OK, works on sane cases. Now check whether nonexistent headers 4194 # can be detected and how. 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197#include <ac_nonexistent.h> 4198_ACEOF 4199if ac_fn_c_try_cpp "$LINENO"; then : 4200 # Broken: success on invalid input. 4201continue 4202else 4203 # Passes both tests. 4204ac_preproc_ok=: 4205break 4206fi 4207rm -f conftest.err conftest.i conftest.$ac_ext 4208 4209done 4210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4211rm -f conftest.i conftest.err conftest.$ac_ext 4212if $ac_preproc_ok; then : 4213 4214else 4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4217as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4218See \`config.log' for more details" "$LINENO" 5; } 4219fi 4220 4221ac_ext=c 4222ac_cpp='$CPP $CPPFLAGS' 4223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4225ac_compiler_gnu=$ac_cv_c_compiler_gnu 4226 4227 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4229$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4230if ${ac_cv_path_GREP+:} false; then : 4231 $as_echo_n "(cached) " >&6 4232else 4233 if test -z "$GREP"; then 4234 ac_path_GREP_found=false 4235 # Loop through the user's path and test for each of PROGNAME-LIST 4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4237for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4238do 4239 IFS=$as_save_IFS 4240 test -z "$as_dir" && as_dir=. 4241 for ac_prog in grep ggrep; do 4242 for ac_exec_ext in '' $ac_executable_extensions; do 4243 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4244 as_fn_executable_p "$ac_path_GREP" || continue 4245# Check for GNU ac_path_GREP and select it if it is found. 4246 # Check for GNU $ac_path_GREP 4247case `"$ac_path_GREP" --version 2>&1` in 4248*GNU*) 4249 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4250*) 4251 ac_count=0 4252 $as_echo_n 0123456789 >"conftest.in" 4253 while : 4254 do 4255 cat "conftest.in" "conftest.in" >"conftest.tmp" 4256 mv "conftest.tmp" "conftest.in" 4257 cp "conftest.in" "conftest.nl" 4258 $as_echo 'GREP' >> "conftest.nl" 4259 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4261 as_fn_arith $ac_count + 1 && ac_count=$as_val 4262 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4263 # Best one so far, save it but keep looking for a better one 4264 ac_cv_path_GREP="$ac_path_GREP" 4265 ac_path_GREP_max=$ac_count 4266 fi 4267 # 10*(2^10) chars as input seems more than enough 4268 test $ac_count -gt 10 && break 4269 done 4270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4271esac 4272 4273 $ac_path_GREP_found && break 3 4274 done 4275 done 4276 done 4277IFS=$as_save_IFS 4278 if test -z "$ac_cv_path_GREP"; then 4279 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4280 fi 4281else 4282 ac_cv_path_GREP=$GREP 4283fi 4284 4285fi 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4287$as_echo "$ac_cv_path_GREP" >&6; } 4288 GREP="$ac_cv_path_GREP" 4289 4290 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4292$as_echo_n "checking for egrep... " >&6; } 4293if ${ac_cv_path_EGREP+:} false; then : 4294 $as_echo_n "(cached) " >&6 4295else 4296 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4297 then ac_cv_path_EGREP="$GREP -E" 4298 else 4299 if test -z "$EGREP"; then 4300 ac_path_EGREP_found=false 4301 # Loop through the user's path and test for each of PROGNAME-LIST 4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4303for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4304do 4305 IFS=$as_save_IFS 4306 test -z "$as_dir" && as_dir=. 4307 for ac_prog in egrep; do 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4310 as_fn_executable_p "$ac_path_EGREP" || continue 4311# Check for GNU ac_path_EGREP and select it if it is found. 4312 # Check for GNU $ac_path_EGREP 4313case `"$ac_path_EGREP" --version 2>&1` in 4314*GNU*) 4315 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4316*) 4317 ac_count=0 4318 $as_echo_n 0123456789 >"conftest.in" 4319 while : 4320 do 4321 cat "conftest.in" "conftest.in" >"conftest.tmp" 4322 mv "conftest.tmp" "conftest.in" 4323 cp "conftest.in" "conftest.nl" 4324 $as_echo 'EGREP' >> "conftest.nl" 4325 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4327 as_fn_arith $ac_count + 1 && ac_count=$as_val 4328 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4329 # Best one so far, save it but keep looking for a better one 4330 ac_cv_path_EGREP="$ac_path_EGREP" 4331 ac_path_EGREP_max=$ac_count 4332 fi 4333 # 10*(2^10) chars as input seems more than enough 4334 test $ac_count -gt 10 && break 4335 done 4336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4337esac 4338 4339 $ac_path_EGREP_found && break 3 4340 done 4341 done 4342 done 4343IFS=$as_save_IFS 4344 if test -z "$ac_cv_path_EGREP"; then 4345 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4346 fi 4347else 4348 ac_cv_path_EGREP=$EGREP 4349fi 4350 4351 fi 4352fi 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4354$as_echo "$ac_cv_path_EGREP" >&6; } 4355 EGREP="$ac_cv_path_EGREP" 4356 4357 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4359$as_echo_n "checking for ANSI C header files... " >&6; } 4360if ${ac_cv_header_stdc+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364/* end confdefs.h. */ 4365#include <stdlib.h> 4366#include <stdarg.h> 4367#include <string.h> 4368#include <float.h> 4369 4370int 4371main () 4372{ 4373 4374 ; 4375 return 0; 4376} 4377_ACEOF 4378if ac_fn_c_try_compile "$LINENO"; then : 4379 ac_cv_header_stdc=yes 4380else 4381 ac_cv_header_stdc=no 4382fi 4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4384 4385if test $ac_cv_header_stdc = yes; then 4386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389#include <string.h> 4390 4391_ACEOF 4392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4393 $EGREP "memchr" >/dev/null 2>&1; then : 4394 4395else 4396 ac_cv_header_stdc=no 4397fi 4398rm -f conftest* 4399 4400fi 4401 4402if test $ac_cv_header_stdc = yes; then 4403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4405/* end confdefs.h. */ 4406#include <stdlib.h> 4407 4408_ACEOF 4409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4410 $EGREP "free" >/dev/null 2>&1; then : 4411 4412else 4413 ac_cv_header_stdc=no 4414fi 4415rm -f conftest* 4416 4417fi 4418 4419if test $ac_cv_header_stdc = yes; then 4420 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4421 if test "$cross_compiling" = yes; then : 4422 : 4423else 4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4425/* end confdefs.h. */ 4426#include <ctype.h> 4427#include <stdlib.h> 4428#if ((' ' & 0x0FF) == 0x020) 4429# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4430# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4431#else 4432# define ISLOWER(c) \ 4433 (('a' <= (c) && (c) <= 'i') \ 4434 || ('j' <= (c) && (c) <= 'r') \ 4435 || ('s' <= (c) && (c) <= 'z')) 4436# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4437#endif 4438 4439#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4440int 4441main () 4442{ 4443 int i; 4444 for (i = 0; i < 256; i++) 4445 if (XOR (islower (i), ISLOWER (i)) 4446 || toupper (i) != TOUPPER (i)) 4447 return 2; 4448 return 0; 4449} 4450_ACEOF 4451if ac_fn_c_try_run "$LINENO"; then : 4452 4453else 4454 ac_cv_header_stdc=no 4455fi 4456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4457 conftest.$ac_objext conftest.beam conftest.$ac_ext 4458fi 4459 4460fi 4461fi 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4463$as_echo "$ac_cv_header_stdc" >&6; } 4464if test $ac_cv_header_stdc = yes; then 4465 4466$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4467 4468fi 4469 4470# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4471for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4472 inttypes.h stdint.h unistd.h 4473do : 4474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4475ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4476" 4477if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4478 cat >>confdefs.h <<_ACEOF 4479#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4480_ACEOF 4481 4482fi 4483 4484done 4485 4486 4487 4488 4489 4490 4491ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4492if test "x$ac_cv_have_decl___clang__" = xyes; then : 4493 CLANGCC="yes" 4494else 4495 CLANGCC="no" 4496fi 4497 4498ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4499if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4500 INTELCC="yes" 4501else 4502 INTELCC="no" 4503fi 4504 4505ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4506if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4507 SUNCC="yes" 4508else 4509 SUNCC="no" 4510fi 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4521 if test -n "$ac_tool_prefix"; then 4522 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4523set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4525$as_echo_n "checking for $ac_word... " >&6; } 4526if ${ac_cv_path_PKG_CONFIG+:} false; then : 4527 $as_echo_n "(cached) " >&6 4528else 4529 case $PKG_CONFIG in 4530 [\\/]* | ?:[\\/]*) 4531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4532 ;; 4533 *) 4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4535for as_dir in $PATH 4536do 4537 IFS=$as_save_IFS 4538 test -z "$as_dir" && as_dir=. 4539 for ac_exec_ext in '' $ac_executable_extensions; do 4540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4543 break 2 4544 fi 4545done 4546 done 4547IFS=$as_save_IFS 4548 4549 ;; 4550esac 4551fi 4552PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4553if test -n "$PKG_CONFIG"; then 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4555$as_echo "$PKG_CONFIG" >&6; } 4556else 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4558$as_echo "no" >&6; } 4559fi 4560 4561 4562fi 4563if test -z "$ac_cv_path_PKG_CONFIG"; then 4564 ac_pt_PKG_CONFIG=$PKG_CONFIG 4565 # Extract the first word of "pkg-config", so it can be a program name with args. 4566set dummy pkg-config; ac_word=$2 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4568$as_echo_n "checking for $ac_word... " >&6; } 4569if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4570 $as_echo_n "(cached) " >&6 4571else 4572 case $ac_pt_PKG_CONFIG in 4573 [\\/]* | ?:[\\/]*) 4574 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4575 ;; 4576 *) 4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4578for as_dir in $PATH 4579do 4580 IFS=$as_save_IFS 4581 test -z "$as_dir" && as_dir=. 4582 for ac_exec_ext in '' $ac_executable_extensions; do 4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4584 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4586 break 2 4587 fi 4588done 4589 done 4590IFS=$as_save_IFS 4591 4592 ;; 4593esac 4594fi 4595ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4596if test -n "$ac_pt_PKG_CONFIG"; then 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4598$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4599else 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4601$as_echo "no" >&6; } 4602fi 4603 4604 if test "x$ac_pt_PKG_CONFIG" = x; then 4605 PKG_CONFIG="" 4606 else 4607 case $cross_compiling:$ac_tool_warned in 4608yes:) 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4611ac_tool_warned=yes ;; 4612esac 4613 PKG_CONFIG=$ac_pt_PKG_CONFIG 4614 fi 4615else 4616 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4617fi 4618 4619fi 4620if test -n "$PKG_CONFIG"; then 4621 _pkg_min_version=0.9.0 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4623$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4624 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4626$as_echo "yes" >&6; } 4627 else 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4629$as_echo "no" >&6; } 4630 PKG_CONFIG="" 4631 fi 4632fi 4633# Make sure we can run config.sub. 4634$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4635 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4636 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4638$as_echo_n "checking build system type... " >&6; } 4639if ${ac_cv_build+:} false; then : 4640 $as_echo_n "(cached) " >&6 4641else 4642 ac_build_alias=$build_alias 4643test "x$ac_build_alias" = x && 4644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4645test "x$ac_build_alias" = x && 4646 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4647ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4648 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4649 4650fi 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4652$as_echo "$ac_cv_build" >&6; } 4653case $ac_cv_build in 4654*-*-*) ;; 4655*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4656esac 4657build=$ac_cv_build 4658ac_save_IFS=$IFS; IFS='-' 4659set x $ac_cv_build 4660shift 4661build_cpu=$1 4662build_vendor=$2 4663shift; shift 4664# Remember, the first character of IFS is used to create $*, 4665# except with old shells: 4666build_os=$* 4667IFS=$ac_save_IFS 4668case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4669 4670 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4672$as_echo_n "checking host system type... " >&6; } 4673if ${ac_cv_host+:} false; then : 4674 $as_echo_n "(cached) " >&6 4675else 4676 if test "x$host_alias" = x; then 4677 ac_cv_host=$ac_cv_build 4678else 4679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4681fi 4682 4683fi 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4685$as_echo "$ac_cv_host" >&6; } 4686case $ac_cv_host in 4687*-*-*) ;; 4688*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4689esac 4690host=$ac_cv_host 4691ac_save_IFS=$IFS; IFS='-' 4692set x $ac_cv_host 4693shift 4694host_cpu=$1 4695host_vendor=$2 4696shift; shift 4697# Remember, the first character of IFS is used to create $*, 4698# except with old shells: 4699host_os=$* 4700IFS=$ac_save_IFS 4701case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4702 4703 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4705$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4706if ${ac_cv_path_SED+:} false; then : 4707 $as_echo_n "(cached) " >&6 4708else 4709 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4710 for ac_i in 1 2 3 4 5 6 7; do 4711 ac_script="$ac_script$as_nl$ac_script" 4712 done 4713 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4714 { ac_script=; unset ac_script;} 4715 if test -z "$SED"; then 4716 ac_path_SED_found=false 4717 # Loop through the user's path and test for each of PROGNAME-LIST 4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719for as_dir in $PATH 4720do 4721 IFS=$as_save_IFS 4722 test -z "$as_dir" && as_dir=. 4723 for ac_prog in sed gsed; do 4724 for ac_exec_ext in '' $ac_executable_extensions; do 4725 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4726 as_fn_executable_p "$ac_path_SED" || continue 4727# Check for GNU ac_path_SED and select it if it is found. 4728 # Check for GNU $ac_path_SED 4729case `"$ac_path_SED" --version 2>&1` in 4730*GNU*) 4731 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4732*) 4733 ac_count=0 4734 $as_echo_n 0123456789 >"conftest.in" 4735 while : 4736 do 4737 cat "conftest.in" "conftest.in" >"conftest.tmp" 4738 mv "conftest.tmp" "conftest.in" 4739 cp "conftest.in" "conftest.nl" 4740 $as_echo '' >> "conftest.nl" 4741 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4743 as_fn_arith $ac_count + 1 && ac_count=$as_val 4744 if test $ac_count -gt ${ac_path_SED_max-0}; then 4745 # Best one so far, save it but keep looking for a better one 4746 ac_cv_path_SED="$ac_path_SED" 4747 ac_path_SED_max=$ac_count 4748 fi 4749 # 10*(2^10) chars as input seems more than enough 4750 test $ac_count -gt 10 && break 4751 done 4752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4753esac 4754 4755 $ac_path_SED_found && break 3 4756 done 4757 done 4758 done 4759IFS=$as_save_IFS 4760 if test -z "$ac_cv_path_SED"; then 4761 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4762 fi 4763else 4764 ac_cv_path_SED=$SED 4765fi 4766 4767fi 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4769$as_echo "$ac_cv_path_SED" >&6; } 4770 SED="$ac_cv_path_SED" 4771 rm -f conftest.sed 4772 4773 4774 4775 4776 4777 4778# Check whether --enable-selective-werror was given. 4779if test "${enable_selective_werror+set}" = set; then : 4780 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4781else 4782 SELECTIVE_WERROR=yes 4783fi 4784 4785 4786 4787 4788 4789# -v is too short to test reliably with XORG_TESTSET_CFLAG 4790if test "x$SUNCC" = "xyes"; then 4791 BASE_CFLAGS="-v" 4792else 4793 BASE_CFLAGS="" 4794fi 4795 4796# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810xorg_testset_save_CFLAGS="$CFLAGS" 4811 4812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4817 $as_echo_n "(cached) " >&6 4818else 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820/* end confdefs.h. */ 4821int i; 4822_ACEOF 4823if ac_fn_c_try_compile "$LINENO"; then : 4824 xorg_cv_cc_flag_unknown_warning_option=yes 4825else 4826 xorg_cv_cc_flag_unknown_warning_option=no 4827fi 4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4829fi 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4833 CFLAGS="$xorg_testset_save_CFLAGS" 4834fi 4835 4836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4839 fi 4840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4844 $as_echo_n "(cached) " >&6 4845else 4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4847/* end confdefs.h. */ 4848int i; 4849_ACEOF 4850if ac_fn_c_try_compile "$LINENO"; then : 4851 xorg_cv_cc_flag_unused_command_line_argument=yes 4852else 4853 xorg_cv_cc_flag_unused_command_line_argument=no 4854fi 4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4856fi 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4860 CFLAGS="$xorg_testset_save_CFLAGS" 4861fi 4862 4863found="no" 4864 4865 if test $found = "no" ; then 4866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4868 fi 4869 4870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4872 fi 4873 4874 CFLAGS="$CFLAGS -Wall" 4875 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4877$as_echo_n "checking if $CC supports -Wall... " >&6; } 4878 cacheid=xorg_cv_cc_flag__Wall 4879 if eval \${$cacheid+:} false; then : 4880 $as_echo_n "(cached) " >&6 4881else 4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4883/* end confdefs.h. */ 4884int i; 4885int 4886main () 4887{ 4888 4889 ; 4890 return 0; 4891} 4892_ACEOF 4893if ac_fn_c_try_link "$LINENO"; then : 4894 eval $cacheid=yes 4895else 4896 eval $cacheid=no 4897fi 4898rm -f core conftest.err conftest.$ac_objext \ 4899 conftest$ac_exeext conftest.$ac_ext 4900fi 4901 4902 4903 CFLAGS="$xorg_testset_save_CFLAGS" 4904 4905 eval supported=\$$cacheid 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4907$as_echo "$supported" >&6; } 4908 if test "$supported" = "yes" ; then 4909 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4910 found="yes" 4911 fi 4912 fi 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928xorg_testset_save_CFLAGS="$CFLAGS" 4929 4930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938/* end confdefs.h. */ 4939int i; 4940_ACEOF 4941if ac_fn_c_try_compile "$LINENO"; then : 4942 xorg_cv_cc_flag_unknown_warning_option=yes 4943else 4944 xorg_cv_cc_flag_unknown_warning_option=no 4945fi 4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4947fi 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4951 CFLAGS="$xorg_testset_save_CFLAGS" 4952fi 4953 4954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4957 fi 4958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4965/* end confdefs.h. */ 4966int i; 4967_ACEOF 4968if ac_fn_c_try_compile "$LINENO"; then : 4969 xorg_cv_cc_flag_unused_command_line_argument=yes 4970else 4971 xorg_cv_cc_flag_unused_command_line_argument=no 4972fi 4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4974fi 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4978 CFLAGS="$xorg_testset_save_CFLAGS" 4979fi 4980 4981found="no" 4982 4983 if test $found = "no" ; then 4984 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4986 fi 4987 4988 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4990 fi 4991 4992 CFLAGS="$CFLAGS -Wpointer-arith" 4993 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4995$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4996 cacheid=xorg_cv_cc_flag__Wpointer_arith 4997 if eval \${$cacheid+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001/* end confdefs.h. */ 5002int i; 5003int 5004main () 5005{ 5006 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011if ac_fn_c_try_link "$LINENO"; then : 5012 eval $cacheid=yes 5013else 5014 eval $cacheid=no 5015fi 5016rm -f core conftest.err conftest.$ac_objext \ 5017 conftest$ac_exeext conftest.$ac_ext 5018fi 5019 5020 5021 CFLAGS="$xorg_testset_save_CFLAGS" 5022 5023 eval supported=\$$cacheid 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5025$as_echo "$supported" >&6; } 5026 if test "$supported" = "yes" ; then 5027 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5028 found="yes" 5029 fi 5030 fi 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046xorg_testset_save_CFLAGS="$CFLAGS" 5047 5048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056/* end confdefs.h. */ 5057int i; 5058_ACEOF 5059if ac_fn_c_try_compile "$LINENO"; then : 5060 xorg_cv_cc_flag_unknown_warning_option=yes 5061else 5062 xorg_cv_cc_flag_unknown_warning_option=no 5063fi 5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5065fi 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5069 CFLAGS="$xorg_testset_save_CFLAGS" 5070fi 5071 5072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5075 fi 5076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5083/* end confdefs.h. */ 5084int i; 5085_ACEOF 5086if ac_fn_c_try_compile "$LINENO"; then : 5087 xorg_cv_cc_flag_unused_command_line_argument=yes 5088else 5089 xorg_cv_cc_flag_unused_command_line_argument=no 5090fi 5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5092fi 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5096 CFLAGS="$xorg_testset_save_CFLAGS" 5097fi 5098 5099found="no" 5100 5101 if test $found = "no" ; then 5102 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5104 fi 5105 5106 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5108 fi 5109 5110 CFLAGS="$CFLAGS -Wmissing-declarations" 5111 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5113$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5114 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5115 if eval \${$cacheid+:} false; then : 5116 $as_echo_n "(cached) " >&6 5117else 5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5119/* end confdefs.h. */ 5120int i; 5121int 5122main () 5123{ 5124 5125 ; 5126 return 0; 5127} 5128_ACEOF 5129if ac_fn_c_try_link "$LINENO"; then : 5130 eval $cacheid=yes 5131else 5132 eval $cacheid=no 5133fi 5134rm -f core conftest.err conftest.$ac_objext \ 5135 conftest$ac_exeext conftest.$ac_ext 5136fi 5137 5138 5139 CFLAGS="$xorg_testset_save_CFLAGS" 5140 5141 eval supported=\$$cacheid 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5143$as_echo "$supported" >&6; } 5144 if test "$supported" = "yes" ; then 5145 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5146 found="yes" 5147 fi 5148 fi 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164xorg_testset_save_CFLAGS="$CFLAGS" 5165 5166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175int i; 5176_ACEOF 5177if ac_fn_c_try_compile "$LINENO"; then : 5178 xorg_cv_cc_flag_unknown_warning_option=yes 5179else 5180 xorg_cv_cc_flag_unknown_warning_option=no 5181fi 5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5183fi 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5187 CFLAGS="$xorg_testset_save_CFLAGS" 5188fi 5189 5190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5193 fi 5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5198 $as_echo_n "(cached) " >&6 5199else 5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201/* end confdefs.h. */ 5202int i; 5203_ACEOF 5204if ac_fn_c_try_compile "$LINENO"; then : 5205 xorg_cv_cc_flag_unused_command_line_argument=yes 5206else 5207 xorg_cv_cc_flag_unused_command_line_argument=no 5208fi 5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5210fi 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5214 CFLAGS="$xorg_testset_save_CFLAGS" 5215fi 5216 5217found="no" 5218 5219 if test $found = "no" ; then 5220 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5222 fi 5223 5224 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5226 fi 5227 5228 CFLAGS="$CFLAGS -Wformat=2" 5229 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5231$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5232 cacheid=xorg_cv_cc_flag__Wformat_2 5233 if eval \${$cacheid+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235else 5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5237/* end confdefs.h. */ 5238int i; 5239int 5240main () 5241{ 5242 5243 ; 5244 return 0; 5245} 5246_ACEOF 5247if ac_fn_c_try_link "$LINENO"; then : 5248 eval $cacheid=yes 5249else 5250 eval $cacheid=no 5251fi 5252rm -f core conftest.err conftest.$ac_objext \ 5253 conftest$ac_exeext conftest.$ac_ext 5254fi 5255 5256 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258 5259 eval supported=\$$cacheid 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5261$as_echo "$supported" >&6; } 5262 if test "$supported" = "yes" ; then 5263 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5264 found="yes" 5265 fi 5266 fi 5267 5268 if test $found = "no" ; then 5269 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5271 fi 5272 5273 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5275 fi 5276 5277 CFLAGS="$CFLAGS -Wformat" 5278 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5280$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5281 cacheid=xorg_cv_cc_flag__Wformat 5282 if eval \${$cacheid+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286/* end confdefs.h. */ 5287int i; 5288int 5289main () 5290{ 5291 5292 ; 5293 return 0; 5294} 5295_ACEOF 5296if ac_fn_c_try_link "$LINENO"; then : 5297 eval $cacheid=yes 5298else 5299 eval $cacheid=no 5300fi 5301rm -f core conftest.err conftest.$ac_objext \ 5302 conftest$ac_exeext conftest.$ac_ext 5303fi 5304 5305 5306 CFLAGS="$xorg_testset_save_CFLAGS" 5307 5308 eval supported=\$$cacheid 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5310$as_echo "$supported" >&6; } 5311 if test "$supported" = "yes" ; then 5312 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5313 found="yes" 5314 fi 5315 fi 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333xorg_testset_save_CFLAGS="$CFLAGS" 5334 5335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5343/* end confdefs.h. */ 5344int i; 5345_ACEOF 5346if ac_fn_c_try_compile "$LINENO"; then : 5347 xorg_cv_cc_flag_unknown_warning_option=yes 5348else 5349 xorg_cv_cc_flag_unknown_warning_option=no 5350fi 5351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5352fi 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5356 CFLAGS="$xorg_testset_save_CFLAGS" 5357fi 5358 5359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5362 fi 5363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5370/* end confdefs.h. */ 5371int i; 5372_ACEOF 5373if ac_fn_c_try_compile "$LINENO"; then : 5374 xorg_cv_cc_flag_unused_command_line_argument=yes 5375else 5376 xorg_cv_cc_flag_unused_command_line_argument=no 5377fi 5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5379fi 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5383 CFLAGS="$xorg_testset_save_CFLAGS" 5384fi 5385 5386found="no" 5387 5388 if test $found = "no" ; then 5389 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5391 fi 5392 5393 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5395 fi 5396 5397 CFLAGS="$CFLAGS -Wstrict-prototypes" 5398 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5400$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5401 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5402 if eval \${$cacheid+:} false; then : 5403 $as_echo_n "(cached) " >&6 5404else 5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5406/* end confdefs.h. */ 5407int i; 5408int 5409main () 5410{ 5411 5412 ; 5413 return 0; 5414} 5415_ACEOF 5416if ac_fn_c_try_link "$LINENO"; then : 5417 eval $cacheid=yes 5418else 5419 eval $cacheid=no 5420fi 5421rm -f core conftest.err conftest.$ac_objext \ 5422 conftest$ac_exeext conftest.$ac_ext 5423fi 5424 5425 5426 CFLAGS="$xorg_testset_save_CFLAGS" 5427 5428 eval supported=\$$cacheid 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5430$as_echo "$supported" >&6; } 5431 if test "$supported" = "yes" ; then 5432 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5433 found="yes" 5434 fi 5435 fi 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451xorg_testset_save_CFLAGS="$CFLAGS" 5452 5453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5461/* end confdefs.h. */ 5462int i; 5463_ACEOF 5464if ac_fn_c_try_compile "$LINENO"; then : 5465 xorg_cv_cc_flag_unknown_warning_option=yes 5466else 5467 xorg_cv_cc_flag_unknown_warning_option=no 5468fi 5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5470fi 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5474 CFLAGS="$xorg_testset_save_CFLAGS" 5475fi 5476 5477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5480 fi 5481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486else 5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5488/* end confdefs.h. */ 5489int i; 5490_ACEOF 5491if ac_fn_c_try_compile "$LINENO"; then : 5492 xorg_cv_cc_flag_unused_command_line_argument=yes 5493else 5494 xorg_cv_cc_flag_unused_command_line_argument=no 5495fi 5496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5497fi 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5501 CFLAGS="$xorg_testset_save_CFLAGS" 5502fi 5503 5504found="no" 5505 5506 if test $found = "no" ; then 5507 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5509 fi 5510 5511 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5513 fi 5514 5515 CFLAGS="$CFLAGS -Wmissing-prototypes" 5516 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5518$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5519 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5520 if eval \${$cacheid+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524/* end confdefs.h. */ 5525int i; 5526int 5527main () 5528{ 5529 5530 ; 5531 return 0; 5532} 5533_ACEOF 5534if ac_fn_c_try_link "$LINENO"; then : 5535 eval $cacheid=yes 5536else 5537 eval $cacheid=no 5538fi 5539rm -f core conftest.err conftest.$ac_objext \ 5540 conftest$ac_exeext conftest.$ac_ext 5541fi 5542 5543 5544 CFLAGS="$xorg_testset_save_CFLAGS" 5545 5546 eval supported=\$$cacheid 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5548$as_echo "$supported" >&6; } 5549 if test "$supported" = "yes" ; then 5550 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5551 found="yes" 5552 fi 5553 fi 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569xorg_testset_save_CFLAGS="$CFLAGS" 5570 5571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5576 $as_echo_n "(cached) " >&6 5577else 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580int i; 5581_ACEOF 5582if ac_fn_c_try_compile "$LINENO"; then : 5583 xorg_cv_cc_flag_unknown_warning_option=yes 5584else 5585 xorg_cv_cc_flag_unknown_warning_option=no 5586fi 5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5588fi 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5592 CFLAGS="$xorg_testset_save_CFLAGS" 5593fi 5594 5595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5598 fi 5599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607int i; 5608_ACEOF 5609if ac_fn_c_try_compile "$LINENO"; then : 5610 xorg_cv_cc_flag_unused_command_line_argument=yes 5611else 5612 xorg_cv_cc_flag_unused_command_line_argument=no 5613fi 5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5615fi 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5619 CFLAGS="$xorg_testset_save_CFLAGS" 5620fi 5621 5622found="no" 5623 5624 if test $found = "no" ; then 5625 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5627 fi 5628 5629 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5631 fi 5632 5633 CFLAGS="$CFLAGS -Wnested-externs" 5634 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5636$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5637 cacheid=xorg_cv_cc_flag__Wnested_externs 5638 if eval \${$cacheid+:} false; then : 5639 $as_echo_n "(cached) " >&6 5640else 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643int i; 5644int 5645main () 5646{ 5647 5648 ; 5649 return 0; 5650} 5651_ACEOF 5652if ac_fn_c_try_link "$LINENO"; then : 5653 eval $cacheid=yes 5654else 5655 eval $cacheid=no 5656fi 5657rm -f core conftest.err conftest.$ac_objext \ 5658 conftest$ac_exeext conftest.$ac_ext 5659fi 5660 5661 5662 CFLAGS="$xorg_testset_save_CFLAGS" 5663 5664 eval supported=\$$cacheid 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5666$as_echo "$supported" >&6; } 5667 if test "$supported" = "yes" ; then 5668 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5669 found="yes" 5670 fi 5671 fi 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687xorg_testset_save_CFLAGS="$CFLAGS" 5688 5689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5692$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5693if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5697/* end confdefs.h. */ 5698int i; 5699_ACEOF 5700if ac_fn_c_try_compile "$LINENO"; then : 5701 xorg_cv_cc_flag_unknown_warning_option=yes 5702else 5703 xorg_cv_cc_flag_unknown_warning_option=no 5704fi 5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5706fi 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5708$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5710 CFLAGS="$xorg_testset_save_CFLAGS" 5711fi 5712 5713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5716 fi 5717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5719$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5720if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5721 $as_echo_n "(cached) " >&6 5722else 5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5724/* end confdefs.h. */ 5725int i; 5726_ACEOF 5727if ac_fn_c_try_compile "$LINENO"; then : 5728 xorg_cv_cc_flag_unused_command_line_argument=yes 5729else 5730 xorg_cv_cc_flag_unused_command_line_argument=no 5731fi 5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5733fi 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5735$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5737 CFLAGS="$xorg_testset_save_CFLAGS" 5738fi 5739 5740found="no" 5741 5742 if test $found = "no" ; then 5743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5745 fi 5746 5747 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5749 fi 5750 5751 CFLAGS="$CFLAGS -Wbad-function-cast" 5752 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5754$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5755 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5756 if eval \${$cacheid+:} false; then : 5757 $as_echo_n "(cached) " >&6 5758else 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761int i; 5762int 5763main () 5764{ 5765 5766 ; 5767 return 0; 5768} 5769_ACEOF 5770if ac_fn_c_try_link "$LINENO"; then : 5771 eval $cacheid=yes 5772else 5773 eval $cacheid=no 5774fi 5775rm -f core conftest.err conftest.$ac_objext \ 5776 conftest$ac_exeext conftest.$ac_ext 5777fi 5778 5779 5780 CFLAGS="$xorg_testset_save_CFLAGS" 5781 5782 eval supported=\$$cacheid 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5784$as_echo "$supported" >&6; } 5785 if test "$supported" = "yes" ; then 5786 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5787 found="yes" 5788 fi 5789 fi 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805xorg_testset_save_CFLAGS="$CFLAGS" 5806 5807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5812 $as_echo_n "(cached) " >&6 5813else 5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5815/* end confdefs.h. */ 5816int i; 5817_ACEOF 5818if ac_fn_c_try_compile "$LINENO"; then : 5819 xorg_cv_cc_flag_unknown_warning_option=yes 5820else 5821 xorg_cv_cc_flag_unknown_warning_option=no 5822fi 5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5824fi 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5828 CFLAGS="$xorg_testset_save_CFLAGS" 5829fi 5830 5831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5834 fi 5835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5839 $as_echo_n "(cached) " >&6 5840else 5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843int i; 5844_ACEOF 5845if ac_fn_c_try_compile "$LINENO"; then : 5846 xorg_cv_cc_flag_unused_command_line_argument=yes 5847else 5848 xorg_cv_cc_flag_unused_command_line_argument=no 5849fi 5850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5851fi 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5855 CFLAGS="$xorg_testset_save_CFLAGS" 5856fi 5857 5858found="no" 5859 5860 if test $found = "no" ; then 5861 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5863 fi 5864 5865 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5867 fi 5868 5869 CFLAGS="$CFLAGS -Wold-style-definition" 5870 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5872$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5873 cacheid=xorg_cv_cc_flag__Wold_style_definition 5874 if eval \${$cacheid+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5878/* end confdefs.h. */ 5879int i; 5880int 5881main () 5882{ 5883 5884 ; 5885 return 0; 5886} 5887_ACEOF 5888if ac_fn_c_try_link "$LINENO"; then : 5889 eval $cacheid=yes 5890else 5891 eval $cacheid=no 5892fi 5893rm -f core conftest.err conftest.$ac_objext \ 5894 conftest$ac_exeext conftest.$ac_ext 5895fi 5896 5897 5898 CFLAGS="$xorg_testset_save_CFLAGS" 5899 5900 eval supported=\$$cacheid 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5902$as_echo "$supported" >&6; } 5903 if test "$supported" = "yes" ; then 5904 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5905 found="yes" 5906 fi 5907 fi 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923xorg_testset_save_CFLAGS="$CFLAGS" 5924 5925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934int i; 5935_ACEOF 5936if ac_fn_c_try_compile "$LINENO"; then : 5937 xorg_cv_cc_flag_unknown_warning_option=yes 5938else 5939 xorg_cv_cc_flag_unknown_warning_option=no 5940fi 5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5942fi 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5946 CFLAGS="$xorg_testset_save_CFLAGS" 5947fi 5948 5949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5952 fi 5953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5960/* end confdefs.h. */ 5961int i; 5962_ACEOF 5963if ac_fn_c_try_compile "$LINENO"; then : 5964 xorg_cv_cc_flag_unused_command_line_argument=yes 5965else 5966 xorg_cv_cc_flag_unused_command_line_argument=no 5967fi 5968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5969fi 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5973 CFLAGS="$xorg_testset_save_CFLAGS" 5974fi 5975 5976found="no" 5977 5978 if test $found = "no" ; then 5979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5981 fi 5982 5983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5985 fi 5986 5987 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5988 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5990$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5991 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5992 if eval \${$cacheid+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997int i; 5998int 5999main () 6000{ 6001 6002 ; 6003 return 0; 6004} 6005_ACEOF 6006if ac_fn_c_try_link "$LINENO"; then : 6007 eval $cacheid=yes 6008else 6009 eval $cacheid=no 6010fi 6011rm -f core conftest.err conftest.$ac_objext \ 6012 conftest$ac_exeext conftest.$ac_ext 6013fi 6014 6015 6016 CFLAGS="$xorg_testset_save_CFLAGS" 6017 6018 eval supported=\$$cacheid 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6020$as_echo "$supported" >&6; } 6021 if test "$supported" = "yes" ; then 6022 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6023 found="yes" 6024 fi 6025 fi 6026 6027 6028 6029 6030 6031# This chunk adds additional warnings that could catch undesired effects. 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045xorg_testset_save_CFLAGS="$CFLAGS" 6046 6047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056int i; 6057_ACEOF 6058if ac_fn_c_try_compile "$LINENO"; then : 6059 xorg_cv_cc_flag_unknown_warning_option=yes 6060else 6061 xorg_cv_cc_flag_unknown_warning_option=no 6062fi 6063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6064fi 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6068 CFLAGS="$xorg_testset_save_CFLAGS" 6069fi 6070 6071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6074 fi 6075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082/* end confdefs.h. */ 6083int i; 6084_ACEOF 6085if ac_fn_c_try_compile "$LINENO"; then : 6086 xorg_cv_cc_flag_unused_command_line_argument=yes 6087else 6088 xorg_cv_cc_flag_unused_command_line_argument=no 6089fi 6090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6091fi 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6095 CFLAGS="$xorg_testset_save_CFLAGS" 6096fi 6097 6098found="no" 6099 6100 if test $found = "no" ; then 6101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6103 fi 6104 6105 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6107 fi 6108 6109 CFLAGS="$CFLAGS -Wunused" 6110 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6112$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6113 cacheid=xorg_cv_cc_flag__Wunused 6114 if eval \${$cacheid+:} false; then : 6115 $as_echo_n "(cached) " >&6 6116else 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6118/* end confdefs.h. */ 6119int i; 6120int 6121main () 6122{ 6123 6124 ; 6125 return 0; 6126} 6127_ACEOF 6128if ac_fn_c_try_link "$LINENO"; then : 6129 eval $cacheid=yes 6130else 6131 eval $cacheid=no 6132fi 6133rm -f core conftest.err conftest.$ac_objext \ 6134 conftest$ac_exeext conftest.$ac_ext 6135fi 6136 6137 6138 CFLAGS="$xorg_testset_save_CFLAGS" 6139 6140 eval supported=\$$cacheid 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6142$as_echo "$supported" >&6; } 6143 if test "$supported" = "yes" ; then 6144 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6145 found="yes" 6146 fi 6147 fi 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163xorg_testset_save_CFLAGS="$CFLAGS" 6164 6165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6170 $as_echo_n "(cached) " >&6 6171else 6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6173/* end confdefs.h. */ 6174int i; 6175_ACEOF 6176if ac_fn_c_try_compile "$LINENO"; then : 6177 xorg_cv_cc_flag_unknown_warning_option=yes 6178else 6179 xorg_cv_cc_flag_unknown_warning_option=no 6180fi 6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6182fi 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6186 CFLAGS="$xorg_testset_save_CFLAGS" 6187fi 6188 6189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6192 fi 6193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6200/* end confdefs.h. */ 6201int i; 6202_ACEOF 6203if ac_fn_c_try_compile "$LINENO"; then : 6204 xorg_cv_cc_flag_unused_command_line_argument=yes 6205else 6206 xorg_cv_cc_flag_unused_command_line_argument=no 6207fi 6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6209fi 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6213 CFLAGS="$xorg_testset_save_CFLAGS" 6214fi 6215 6216found="no" 6217 6218 if test $found = "no" ; then 6219 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6221 fi 6222 6223 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6225 fi 6226 6227 CFLAGS="$CFLAGS -Wuninitialized" 6228 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6230$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6231 cacheid=xorg_cv_cc_flag__Wuninitialized 6232 if eval \${$cacheid+:} false; then : 6233 $as_echo_n "(cached) " >&6 6234else 6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236/* end confdefs.h. */ 6237int i; 6238int 6239main () 6240{ 6241 6242 ; 6243 return 0; 6244} 6245_ACEOF 6246if ac_fn_c_try_link "$LINENO"; then : 6247 eval $cacheid=yes 6248else 6249 eval $cacheid=no 6250fi 6251rm -f core conftest.err conftest.$ac_objext \ 6252 conftest$ac_exeext conftest.$ac_ext 6253fi 6254 6255 6256 CFLAGS="$xorg_testset_save_CFLAGS" 6257 6258 eval supported=\$$cacheid 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6260$as_echo "$supported" >&6; } 6261 if test "$supported" = "yes" ; then 6262 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6263 found="yes" 6264 fi 6265 fi 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281xorg_testset_save_CFLAGS="$CFLAGS" 6282 6283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6288 $as_echo_n "(cached) " >&6 6289else 6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291/* end confdefs.h. */ 6292int i; 6293_ACEOF 6294if ac_fn_c_try_compile "$LINENO"; then : 6295 xorg_cv_cc_flag_unknown_warning_option=yes 6296else 6297 xorg_cv_cc_flag_unknown_warning_option=no 6298fi 6299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6300fi 6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6304 CFLAGS="$xorg_testset_save_CFLAGS" 6305fi 6306 6307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6310 fi 6311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316else 6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6318/* end confdefs.h. */ 6319int i; 6320_ACEOF 6321if ac_fn_c_try_compile "$LINENO"; then : 6322 xorg_cv_cc_flag_unused_command_line_argument=yes 6323else 6324 xorg_cv_cc_flag_unused_command_line_argument=no 6325fi 6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6327fi 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6331 CFLAGS="$xorg_testset_save_CFLAGS" 6332fi 6333 6334found="no" 6335 6336 if test $found = "no" ; then 6337 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6339 fi 6340 6341 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6343 fi 6344 6345 CFLAGS="$CFLAGS -Wshadow" 6346 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6348$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6349 cacheid=xorg_cv_cc_flag__Wshadow 6350 if eval \${$cacheid+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355int i; 6356int 6357main () 6358{ 6359 6360 ; 6361 return 0; 6362} 6363_ACEOF 6364if ac_fn_c_try_link "$LINENO"; then : 6365 eval $cacheid=yes 6366else 6367 eval $cacheid=no 6368fi 6369rm -f core conftest.err conftest.$ac_objext \ 6370 conftest$ac_exeext conftest.$ac_ext 6371fi 6372 6373 6374 CFLAGS="$xorg_testset_save_CFLAGS" 6375 6376 eval supported=\$$cacheid 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6378$as_echo "$supported" >&6; } 6379 if test "$supported" = "yes" ; then 6380 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6381 found="yes" 6382 fi 6383 fi 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399xorg_testset_save_CFLAGS="$CFLAGS" 6400 6401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6406 $as_echo_n "(cached) " >&6 6407else 6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409/* end confdefs.h. */ 6410int i; 6411_ACEOF 6412if ac_fn_c_try_compile "$LINENO"; then : 6413 xorg_cv_cc_flag_unknown_warning_option=yes 6414else 6415 xorg_cv_cc_flag_unknown_warning_option=no 6416fi 6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6418fi 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6422 CFLAGS="$xorg_testset_save_CFLAGS" 6423fi 6424 6425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6428 fi 6429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437int i; 6438_ACEOF 6439if ac_fn_c_try_compile "$LINENO"; then : 6440 xorg_cv_cc_flag_unused_command_line_argument=yes 6441else 6442 xorg_cv_cc_flag_unused_command_line_argument=no 6443fi 6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6445fi 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6449 CFLAGS="$xorg_testset_save_CFLAGS" 6450fi 6451 6452found="no" 6453 6454 if test $found = "no" ; then 6455 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6457 fi 6458 6459 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6461 fi 6462 6463 CFLAGS="$CFLAGS -Wcast-qual" 6464 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6466$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6467 cacheid=xorg_cv_cc_flag__Wcast_qual 6468 if eval \${$cacheid+:} false; then : 6469 $as_echo_n "(cached) " >&6 6470else 6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473int i; 6474int 6475main () 6476{ 6477 6478 ; 6479 return 0; 6480} 6481_ACEOF 6482if ac_fn_c_try_link "$LINENO"; then : 6483 eval $cacheid=yes 6484else 6485 eval $cacheid=no 6486fi 6487rm -f core conftest.err conftest.$ac_objext \ 6488 conftest$ac_exeext conftest.$ac_ext 6489fi 6490 6491 6492 CFLAGS="$xorg_testset_save_CFLAGS" 6493 6494 eval supported=\$$cacheid 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6496$as_echo "$supported" >&6; } 6497 if test "$supported" = "yes" ; then 6498 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6499 found="yes" 6500 fi 6501 fi 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517xorg_testset_save_CFLAGS="$CFLAGS" 6518 6519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6524 $as_echo_n "(cached) " >&6 6525else 6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6527/* end confdefs.h. */ 6528int i; 6529_ACEOF 6530if ac_fn_c_try_compile "$LINENO"; then : 6531 xorg_cv_cc_flag_unknown_warning_option=yes 6532else 6533 xorg_cv_cc_flag_unknown_warning_option=no 6534fi 6535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6536fi 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6540 CFLAGS="$xorg_testset_save_CFLAGS" 6541fi 6542 6543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6546 fi 6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554/* end confdefs.h. */ 6555int i; 6556_ACEOF 6557if ac_fn_c_try_compile "$LINENO"; then : 6558 xorg_cv_cc_flag_unused_command_line_argument=yes 6559else 6560 xorg_cv_cc_flag_unused_command_line_argument=no 6561fi 6562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6563fi 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6567 CFLAGS="$xorg_testset_save_CFLAGS" 6568fi 6569 6570found="no" 6571 6572 if test $found = "no" ; then 6573 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6575 fi 6576 6577 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6579 fi 6580 6581 CFLAGS="$CFLAGS -Wmissing-noreturn" 6582 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6584$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6585 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6586 if eval \${$cacheid+:} false; then : 6587 $as_echo_n "(cached) " >&6 6588else 6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6590/* end confdefs.h. */ 6591int i; 6592int 6593main () 6594{ 6595 6596 ; 6597 return 0; 6598} 6599_ACEOF 6600if ac_fn_c_try_link "$LINENO"; then : 6601 eval $cacheid=yes 6602else 6603 eval $cacheid=no 6604fi 6605rm -f core conftest.err conftest.$ac_objext \ 6606 conftest$ac_exeext conftest.$ac_ext 6607fi 6608 6609 6610 CFLAGS="$xorg_testset_save_CFLAGS" 6611 6612 eval supported=\$$cacheid 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6614$as_echo "$supported" >&6; } 6615 if test "$supported" = "yes" ; then 6616 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6617 found="yes" 6618 fi 6619 fi 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635xorg_testset_save_CFLAGS="$CFLAGS" 6636 6637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6645/* end confdefs.h. */ 6646int i; 6647_ACEOF 6648if ac_fn_c_try_compile "$LINENO"; then : 6649 xorg_cv_cc_flag_unknown_warning_option=yes 6650else 6651 xorg_cv_cc_flag_unknown_warning_option=no 6652fi 6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6654fi 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6658 CFLAGS="$xorg_testset_save_CFLAGS" 6659fi 6660 6661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6664 fi 6665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673int i; 6674_ACEOF 6675if ac_fn_c_try_compile "$LINENO"; then : 6676 xorg_cv_cc_flag_unused_command_line_argument=yes 6677else 6678 xorg_cv_cc_flag_unused_command_line_argument=no 6679fi 6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6681fi 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6685 CFLAGS="$xorg_testset_save_CFLAGS" 6686fi 6687 6688found="no" 6689 6690 if test $found = "no" ; then 6691 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6693 fi 6694 6695 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697 fi 6698 6699 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6700 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6702$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6703 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6704 if eval \${$cacheid+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708/* end confdefs.h. */ 6709int i; 6710int 6711main () 6712{ 6713 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_link "$LINENO"; then : 6719 eval $cacheid=yes 6720else 6721 eval $cacheid=no 6722fi 6723rm -f core conftest.err conftest.$ac_objext \ 6724 conftest$ac_exeext conftest.$ac_ext 6725fi 6726 6727 6728 CFLAGS="$xorg_testset_save_CFLAGS" 6729 6730 eval supported=\$$cacheid 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6732$as_echo "$supported" >&6; } 6733 if test "$supported" = "yes" ; then 6734 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6735 found="yes" 6736 fi 6737 fi 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753xorg_testset_save_CFLAGS="$CFLAGS" 6754 6755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763/* end confdefs.h. */ 6764int i; 6765_ACEOF 6766if ac_fn_c_try_compile "$LINENO"; then : 6767 xorg_cv_cc_flag_unknown_warning_option=yes 6768else 6769 xorg_cv_cc_flag_unknown_warning_option=no 6770fi 6771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6772fi 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6776 CFLAGS="$xorg_testset_save_CFLAGS" 6777fi 6778 6779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782 fi 6783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790/* end confdefs.h. */ 6791int i; 6792_ACEOF 6793if ac_fn_c_try_compile "$LINENO"; then : 6794 xorg_cv_cc_flag_unused_command_line_argument=yes 6795else 6796 xorg_cv_cc_flag_unused_command_line_argument=no 6797fi 6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6799fi 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6803 CFLAGS="$xorg_testset_save_CFLAGS" 6804fi 6805 6806found="no" 6807 6808 if test $found = "no" ; then 6809 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 fi 6812 6813 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6815 fi 6816 6817 CFLAGS="$CFLAGS -Wredundant-decls" 6818 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6820$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6821 cacheid=xorg_cv_cc_flag__Wredundant_decls 6822 if eval \${$cacheid+:} false; then : 6823 $as_echo_n "(cached) " >&6 6824else 6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6826/* end confdefs.h. */ 6827int i; 6828int 6829main () 6830{ 6831 6832 ; 6833 return 0; 6834} 6835_ACEOF 6836if ac_fn_c_try_link "$LINENO"; then : 6837 eval $cacheid=yes 6838else 6839 eval $cacheid=no 6840fi 6841rm -f core conftest.err conftest.$ac_objext \ 6842 conftest$ac_exeext conftest.$ac_ext 6843fi 6844 6845 6846 CFLAGS="$xorg_testset_save_CFLAGS" 6847 6848 eval supported=\$$cacheid 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6850$as_echo "$supported" >&6; } 6851 if test "$supported" = "yes" ; then 6852 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6853 found="yes" 6854 fi 6855 fi 6856 6857 6858 6859# These are currently disabled because they are noisy. They will be enabled 6860# in the future once the codebase is sufficiently modernized to silence 6861# them. For now, I don't want them to drown out the other warnings. 6862# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6863# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6864# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6865 6866# Turn some warnings into errors, so we don't accidently get successful builds 6867# when there are problems that should be fixed. 6868 6869if test "x$SELECTIVE_WERROR" = "xyes" ; then 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883xorg_testset_save_CFLAGS="$CFLAGS" 6884 6885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6890 $as_echo_n "(cached) " >&6 6891else 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894int i; 6895_ACEOF 6896if ac_fn_c_try_compile "$LINENO"; then : 6897 xorg_cv_cc_flag_unknown_warning_option=yes 6898else 6899 xorg_cv_cc_flag_unknown_warning_option=no 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6902fi 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907fi 6908 6909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6912 fi 6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921int i; 6922_ACEOF 6923if ac_fn_c_try_compile "$LINENO"; then : 6924 xorg_cv_cc_flag_unused_command_line_argument=yes 6925else 6926 xorg_cv_cc_flag_unused_command_line_argument=no 6927fi 6928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6929fi 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6933 CFLAGS="$xorg_testset_save_CFLAGS" 6934fi 6935 6936found="no" 6937 6938 if test $found = "no" ; then 6939 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 fi 6942 6943 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6945 fi 6946 6947 CFLAGS="$CFLAGS -Werror=implicit" 6948 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6950$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6951 cacheid=xorg_cv_cc_flag__Werror_implicit 6952 if eval \${$cacheid+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954else 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958int 6959main () 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966if ac_fn_c_try_link "$LINENO"; then : 6967 eval $cacheid=yes 6968else 6969 eval $cacheid=no 6970fi 6971rm -f core conftest.err conftest.$ac_objext \ 6972 conftest$ac_exeext conftest.$ac_ext 6973fi 6974 6975 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977 6978 eval supported=\$$cacheid 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6980$as_echo "$supported" >&6; } 6981 if test "$supported" = "yes" ; then 6982 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6983 found="yes" 6984 fi 6985 fi 6986 6987 if test $found = "no" ; then 6988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6990 fi 6991 6992 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6994 fi 6995 6996 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6997 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6999$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7000 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7001 if eval \${$cacheid+:} false; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005/* end confdefs.h. */ 7006int i; 7007int 7008main () 7009{ 7010 7011 ; 7012 return 0; 7013} 7014_ACEOF 7015if ac_fn_c_try_link "$LINENO"; then : 7016 eval $cacheid=yes 7017else 7018 eval $cacheid=no 7019fi 7020rm -f core conftest.err conftest.$ac_objext \ 7021 conftest$ac_exeext conftest.$ac_ext 7022fi 7023 7024 7025 CFLAGS="$xorg_testset_save_CFLAGS" 7026 7027 eval supported=\$$cacheid 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7029$as_echo "$supported" >&6; } 7030 if test "$supported" = "yes" ; then 7031 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7032 found="yes" 7033 fi 7034 fi 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050xorg_testset_save_CFLAGS="$CFLAGS" 7051 7052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7060/* end confdefs.h. */ 7061int i; 7062_ACEOF 7063if ac_fn_c_try_compile "$LINENO"; then : 7064 xorg_cv_cc_flag_unknown_warning_option=yes 7065else 7066 xorg_cv_cc_flag_unknown_warning_option=no 7067fi 7068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7069fi 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7073 CFLAGS="$xorg_testset_save_CFLAGS" 7074fi 7075 7076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7079 fi 7080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7084 $as_echo_n "(cached) " >&6 7085else 7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7087/* end confdefs.h. */ 7088int i; 7089_ACEOF 7090if ac_fn_c_try_compile "$LINENO"; then : 7091 xorg_cv_cc_flag_unused_command_line_argument=yes 7092else 7093 xorg_cv_cc_flag_unused_command_line_argument=no 7094fi 7095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7100 CFLAGS="$xorg_testset_save_CFLAGS" 7101fi 7102 7103found="no" 7104 7105 if test $found = "no" ; then 7106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7108 fi 7109 7110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7112 fi 7113 7114 CFLAGS="$CFLAGS -Werror=nonnull" 7115 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7117$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7118 cacheid=xorg_cv_cc_flag__Werror_nonnull 7119 if eval \${$cacheid+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121else 7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123/* end confdefs.h. */ 7124int i; 7125int 7126main () 7127{ 7128 7129 ; 7130 return 0; 7131} 7132_ACEOF 7133if ac_fn_c_try_link "$LINENO"; then : 7134 eval $cacheid=yes 7135else 7136 eval $cacheid=no 7137fi 7138rm -f core conftest.err conftest.$ac_objext \ 7139 conftest$ac_exeext conftest.$ac_ext 7140fi 7141 7142 7143 CFLAGS="$xorg_testset_save_CFLAGS" 7144 7145 eval supported=\$$cacheid 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7147$as_echo "$supported" >&6; } 7148 if test "$supported" = "yes" ; then 7149 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7150 found="yes" 7151 fi 7152 fi 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168xorg_testset_save_CFLAGS="$CFLAGS" 7169 7170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178/* end confdefs.h. */ 7179int i; 7180_ACEOF 7181if ac_fn_c_try_compile "$LINENO"; then : 7182 xorg_cv_cc_flag_unknown_warning_option=yes 7183else 7184 xorg_cv_cc_flag_unknown_warning_option=no 7185fi 7186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7187fi 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7191 CFLAGS="$xorg_testset_save_CFLAGS" 7192fi 7193 7194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7197 fi 7198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206int i; 7207_ACEOF 7208if ac_fn_c_try_compile "$LINENO"; then : 7209 xorg_cv_cc_flag_unused_command_line_argument=yes 7210else 7211 xorg_cv_cc_flag_unused_command_line_argument=no 7212fi 7213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7214fi 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7218 CFLAGS="$xorg_testset_save_CFLAGS" 7219fi 7220 7221found="no" 7222 7223 if test $found = "no" ; then 7224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7226 fi 7227 7228 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230 fi 7231 7232 CFLAGS="$CFLAGS -Werror=init-self" 7233 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7235$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7236 cacheid=xorg_cv_cc_flag__Werror_init_self 7237 if eval \${$cacheid+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241/* end confdefs.h. */ 7242int i; 7243int 7244main () 7245{ 7246 7247 ; 7248 return 0; 7249} 7250_ACEOF 7251if ac_fn_c_try_link "$LINENO"; then : 7252 eval $cacheid=yes 7253else 7254 eval $cacheid=no 7255fi 7256rm -f core conftest.err conftest.$ac_objext \ 7257 conftest$ac_exeext conftest.$ac_ext 7258fi 7259 7260 7261 CFLAGS="$xorg_testset_save_CFLAGS" 7262 7263 eval supported=\$$cacheid 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7265$as_echo "$supported" >&6; } 7266 if test "$supported" = "yes" ; then 7267 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7268 found="yes" 7269 fi 7270 fi 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286xorg_testset_save_CFLAGS="$CFLAGS" 7287 7288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7296/* end confdefs.h. */ 7297int i; 7298_ACEOF 7299if ac_fn_c_try_compile "$LINENO"; then : 7300 xorg_cv_cc_flag_unknown_warning_option=yes 7301else 7302 xorg_cv_cc_flag_unknown_warning_option=no 7303fi 7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7305fi 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7309 CFLAGS="$xorg_testset_save_CFLAGS" 7310fi 7311 7312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315 fi 7316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7320 $as_echo_n "(cached) " >&6 7321else 7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7323/* end confdefs.h. */ 7324int i; 7325_ACEOF 7326if ac_fn_c_try_compile "$LINENO"; then : 7327 xorg_cv_cc_flag_unused_command_line_argument=yes 7328else 7329 xorg_cv_cc_flag_unused_command_line_argument=no 7330fi 7331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7332fi 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7336 CFLAGS="$xorg_testset_save_CFLAGS" 7337fi 7338 7339found="no" 7340 7341 if test $found = "no" ; then 7342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7344 fi 7345 7346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7348 fi 7349 7350 CFLAGS="$CFLAGS -Werror=main" 7351 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7353$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7354 cacheid=xorg_cv_cc_flag__Werror_main 7355 if eval \${$cacheid+:} false; then : 7356 $as_echo_n "(cached) " >&6 7357else 7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7359/* end confdefs.h. */ 7360int i; 7361int 7362main () 7363{ 7364 7365 ; 7366 return 0; 7367} 7368_ACEOF 7369if ac_fn_c_try_link "$LINENO"; then : 7370 eval $cacheid=yes 7371else 7372 eval $cacheid=no 7373fi 7374rm -f core conftest.err conftest.$ac_objext \ 7375 conftest$ac_exeext conftest.$ac_ext 7376fi 7377 7378 7379 CFLAGS="$xorg_testset_save_CFLAGS" 7380 7381 eval supported=\$$cacheid 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7383$as_echo "$supported" >&6; } 7384 if test "$supported" = "yes" ; then 7385 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7386 found="yes" 7387 fi 7388 fi 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404xorg_testset_save_CFLAGS="$CFLAGS" 7405 7406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7411 $as_echo_n "(cached) " >&6 7412else 7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414/* end confdefs.h. */ 7415int i; 7416_ACEOF 7417if ac_fn_c_try_compile "$LINENO"; then : 7418 xorg_cv_cc_flag_unknown_warning_option=yes 7419else 7420 xorg_cv_cc_flag_unknown_warning_option=no 7421fi 7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7423fi 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7427 CFLAGS="$xorg_testset_save_CFLAGS" 7428fi 7429 7430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7433 fi 7434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441/* end confdefs.h. */ 7442int i; 7443_ACEOF 7444if ac_fn_c_try_compile "$LINENO"; then : 7445 xorg_cv_cc_flag_unused_command_line_argument=yes 7446else 7447 xorg_cv_cc_flag_unused_command_line_argument=no 7448fi 7449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7450fi 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7454 CFLAGS="$xorg_testset_save_CFLAGS" 7455fi 7456 7457found="no" 7458 7459 if test $found = "no" ; then 7460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7462 fi 7463 7464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7466 fi 7467 7468 CFLAGS="$CFLAGS -Werror=missing-braces" 7469 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7471$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7472 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7473 if eval \${$cacheid+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479int 7480main () 7481{ 7482 7483 ; 7484 return 0; 7485} 7486_ACEOF 7487if ac_fn_c_try_link "$LINENO"; then : 7488 eval $cacheid=yes 7489else 7490 eval $cacheid=no 7491fi 7492rm -f core conftest.err conftest.$ac_objext \ 7493 conftest$ac_exeext conftest.$ac_ext 7494fi 7495 7496 7497 CFLAGS="$xorg_testset_save_CFLAGS" 7498 7499 eval supported=\$$cacheid 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7501$as_echo "$supported" >&6; } 7502 if test "$supported" = "yes" ; then 7503 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7504 found="yes" 7505 fi 7506 fi 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522xorg_testset_save_CFLAGS="$CFLAGS" 7523 7524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7529 $as_echo_n "(cached) " >&6 7530else 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532/* end confdefs.h. */ 7533int i; 7534_ACEOF 7535if ac_fn_c_try_compile "$LINENO"; then : 7536 xorg_cv_cc_flag_unknown_warning_option=yes 7537else 7538 xorg_cv_cc_flag_unknown_warning_option=no 7539fi 7540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7541fi 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7545 CFLAGS="$xorg_testset_save_CFLAGS" 7546fi 7547 7548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7551 fi 7552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559/* end confdefs.h. */ 7560int i; 7561_ACEOF 7562if ac_fn_c_try_compile "$LINENO"; then : 7563 xorg_cv_cc_flag_unused_command_line_argument=yes 7564else 7565 xorg_cv_cc_flag_unused_command_line_argument=no 7566fi 7567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7568fi 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7572 CFLAGS="$xorg_testset_save_CFLAGS" 7573fi 7574 7575found="no" 7576 7577 if test $found = "no" ; then 7578 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7580 fi 7581 7582 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7584 fi 7585 7586 CFLAGS="$CFLAGS -Werror=sequence-point" 7587 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7589$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7590 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7591 if eval \${$cacheid+:} false; then : 7592 $as_echo_n "(cached) " >&6 7593else 7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595/* end confdefs.h. */ 7596int i; 7597int 7598main () 7599{ 7600 7601 ; 7602 return 0; 7603} 7604_ACEOF 7605if ac_fn_c_try_link "$LINENO"; then : 7606 eval $cacheid=yes 7607else 7608 eval $cacheid=no 7609fi 7610rm -f core conftest.err conftest.$ac_objext \ 7611 conftest$ac_exeext conftest.$ac_ext 7612fi 7613 7614 7615 CFLAGS="$xorg_testset_save_CFLAGS" 7616 7617 eval supported=\$$cacheid 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7619$as_echo "$supported" >&6; } 7620 if test "$supported" = "yes" ; then 7621 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7622 found="yes" 7623 fi 7624 fi 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640xorg_testset_save_CFLAGS="$CFLAGS" 7641 7642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648else 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650/* end confdefs.h. */ 7651int i; 7652_ACEOF 7653if ac_fn_c_try_compile "$LINENO"; then : 7654 xorg_cv_cc_flag_unknown_warning_option=yes 7655else 7656 xorg_cv_cc_flag_unknown_warning_option=no 7657fi 7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7659fi 7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7663 CFLAGS="$xorg_testset_save_CFLAGS" 7664fi 7665 7666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7669 fi 7670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7674 $as_echo_n "(cached) " >&6 7675else 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678int i; 7679_ACEOF 7680if ac_fn_c_try_compile "$LINENO"; then : 7681 xorg_cv_cc_flag_unused_command_line_argument=yes 7682else 7683 xorg_cv_cc_flag_unused_command_line_argument=no 7684fi 7685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7686fi 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7690 CFLAGS="$xorg_testset_save_CFLAGS" 7691fi 7692 7693found="no" 7694 7695 if test $found = "no" ; then 7696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7698 fi 7699 7700 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7702 fi 7703 7704 CFLAGS="$CFLAGS -Werror=return-type" 7705 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7707$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7708 cacheid=xorg_cv_cc_flag__Werror_return_type 7709 if eval \${$cacheid+:} false; then : 7710 $as_echo_n "(cached) " >&6 7711else 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714int i; 7715int 7716main () 7717{ 7718 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723if ac_fn_c_try_link "$LINENO"; then : 7724 eval $cacheid=yes 7725else 7726 eval $cacheid=no 7727fi 7728rm -f core conftest.err conftest.$ac_objext \ 7729 conftest$ac_exeext conftest.$ac_ext 7730fi 7731 7732 7733 CFLAGS="$xorg_testset_save_CFLAGS" 7734 7735 eval supported=\$$cacheid 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7737$as_echo "$supported" >&6; } 7738 if test "$supported" = "yes" ; then 7739 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7740 found="yes" 7741 fi 7742 fi 7743 7744 if test $found = "no" ; then 7745 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7747 fi 7748 7749 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7751 fi 7752 7753 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7754 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7756$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7757 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7758 if eval \${$cacheid+:} false; then : 7759 $as_echo_n "(cached) " >&6 7760else 7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762/* end confdefs.h. */ 7763int i; 7764int 7765main () 7766{ 7767 7768 ; 7769 return 0; 7770} 7771_ACEOF 7772if ac_fn_c_try_link "$LINENO"; then : 7773 eval $cacheid=yes 7774else 7775 eval $cacheid=no 7776fi 7777rm -f core conftest.err conftest.$ac_objext \ 7778 conftest$ac_exeext conftest.$ac_ext 7779fi 7780 7781 7782 CFLAGS="$xorg_testset_save_CFLAGS" 7783 7784 eval supported=\$$cacheid 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7786$as_echo "$supported" >&6; } 7787 if test "$supported" = "yes" ; then 7788 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7789 found="yes" 7790 fi 7791 fi 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807xorg_testset_save_CFLAGS="$CFLAGS" 7808 7809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7817/* end confdefs.h. */ 7818int i; 7819_ACEOF 7820if ac_fn_c_try_compile "$LINENO"; then : 7821 xorg_cv_cc_flag_unknown_warning_option=yes 7822else 7823 xorg_cv_cc_flag_unknown_warning_option=no 7824fi 7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7826fi 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7830 CFLAGS="$xorg_testset_save_CFLAGS" 7831fi 7832 7833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7836 fi 7837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842else 7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844/* end confdefs.h. */ 7845int i; 7846_ACEOF 7847if ac_fn_c_try_compile "$LINENO"; then : 7848 xorg_cv_cc_flag_unused_command_line_argument=yes 7849else 7850 xorg_cv_cc_flag_unused_command_line_argument=no 7851fi 7852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7853fi 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858fi 7859 7860found="no" 7861 7862 if test $found = "no" ; then 7863 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7865 fi 7866 7867 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869 fi 7870 7871 CFLAGS="$CFLAGS -Werror=trigraphs" 7872 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7874$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7875 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7876 if eval \${$cacheid+:} false; then : 7877 $as_echo_n "(cached) " >&6 7878else 7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7880/* end confdefs.h. */ 7881int i; 7882int 7883main () 7884{ 7885 7886 ; 7887 return 0; 7888} 7889_ACEOF 7890if ac_fn_c_try_link "$LINENO"; then : 7891 eval $cacheid=yes 7892else 7893 eval $cacheid=no 7894fi 7895rm -f core conftest.err conftest.$ac_objext \ 7896 conftest$ac_exeext conftest.$ac_ext 7897fi 7898 7899 7900 CFLAGS="$xorg_testset_save_CFLAGS" 7901 7902 eval supported=\$$cacheid 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7904$as_echo "$supported" >&6; } 7905 if test "$supported" = "yes" ; then 7906 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7907 found="yes" 7908 fi 7909 fi 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925xorg_testset_save_CFLAGS="$CFLAGS" 7926 7927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7932 $as_echo_n "(cached) " >&6 7933else 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936int i; 7937_ACEOF 7938if ac_fn_c_try_compile "$LINENO"; then : 7939 xorg_cv_cc_flag_unknown_warning_option=yes 7940else 7941 xorg_cv_cc_flag_unknown_warning_option=no 7942fi 7943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7944fi 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7948 CFLAGS="$xorg_testset_save_CFLAGS" 7949fi 7950 7951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7954 fi 7955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963int i; 7964_ACEOF 7965if ac_fn_c_try_compile "$LINENO"; then : 7966 xorg_cv_cc_flag_unused_command_line_argument=yes 7967else 7968 xorg_cv_cc_flag_unused_command_line_argument=no 7969fi 7970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7971fi 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7975 CFLAGS="$xorg_testset_save_CFLAGS" 7976fi 7977 7978found="no" 7979 7980 if test $found = "no" ; then 7981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7983 fi 7984 7985 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7987 fi 7988 7989 CFLAGS="$CFLAGS -Werror=array-bounds" 7990 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7992$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7993 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7994 if eval \${$cacheid+:} false; then : 7995 $as_echo_n "(cached) " >&6 7996else 7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998/* end confdefs.h. */ 7999int i; 8000int 8001main () 8002{ 8003 8004 ; 8005 return 0; 8006} 8007_ACEOF 8008if ac_fn_c_try_link "$LINENO"; then : 8009 eval $cacheid=yes 8010else 8011 eval $cacheid=no 8012fi 8013rm -f core conftest.err conftest.$ac_objext \ 8014 conftest$ac_exeext conftest.$ac_ext 8015fi 8016 8017 8018 CFLAGS="$xorg_testset_save_CFLAGS" 8019 8020 eval supported=\$$cacheid 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8022$as_echo "$supported" >&6; } 8023 if test "$supported" = "yes" ; then 8024 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8025 found="yes" 8026 fi 8027 fi 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043xorg_testset_save_CFLAGS="$CFLAGS" 8044 8045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8050 $as_echo_n "(cached) " >&6 8051else 8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053/* end confdefs.h. */ 8054int i; 8055_ACEOF 8056if ac_fn_c_try_compile "$LINENO"; then : 8057 xorg_cv_cc_flag_unknown_warning_option=yes 8058else 8059 xorg_cv_cc_flag_unknown_warning_option=no 8060fi 8061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8062fi 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8066 CFLAGS="$xorg_testset_save_CFLAGS" 8067fi 8068 8069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8072 fi 8073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8077 $as_echo_n "(cached) " >&6 8078else 8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080/* end confdefs.h. */ 8081int i; 8082_ACEOF 8083if ac_fn_c_try_compile "$LINENO"; then : 8084 xorg_cv_cc_flag_unused_command_line_argument=yes 8085else 8086 xorg_cv_cc_flag_unused_command_line_argument=no 8087fi 8088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8089fi 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8093 CFLAGS="$xorg_testset_save_CFLAGS" 8094fi 8095 8096found="no" 8097 8098 if test $found = "no" ; then 8099 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8101 fi 8102 8103 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8105 fi 8106 8107 CFLAGS="$CFLAGS -Werror=write-strings" 8108 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8110$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8111 cacheid=xorg_cv_cc_flag__Werror_write_strings 8112 if eval \${$cacheid+:} false; then : 8113 $as_echo_n "(cached) " >&6 8114else 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117int i; 8118int 8119main () 8120{ 8121 8122 ; 8123 return 0; 8124} 8125_ACEOF 8126if ac_fn_c_try_link "$LINENO"; then : 8127 eval $cacheid=yes 8128else 8129 eval $cacheid=no 8130fi 8131rm -f core conftest.err conftest.$ac_objext \ 8132 conftest$ac_exeext conftest.$ac_ext 8133fi 8134 8135 8136 CFLAGS="$xorg_testset_save_CFLAGS" 8137 8138 eval supported=\$$cacheid 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8140$as_echo "$supported" >&6; } 8141 if test "$supported" = "yes" ; then 8142 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8143 found="yes" 8144 fi 8145 fi 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161xorg_testset_save_CFLAGS="$CFLAGS" 8162 8163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8168 $as_echo_n "(cached) " >&6 8169else 8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8171/* end confdefs.h. */ 8172int i; 8173_ACEOF 8174if ac_fn_c_try_compile "$LINENO"; then : 8175 xorg_cv_cc_flag_unknown_warning_option=yes 8176else 8177 xorg_cv_cc_flag_unknown_warning_option=no 8178fi 8179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8180fi 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8184 CFLAGS="$xorg_testset_save_CFLAGS" 8185fi 8186 8187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8190 fi 8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8195 $as_echo_n "(cached) " >&6 8196else 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199int i; 8200_ACEOF 8201if ac_fn_c_try_compile "$LINENO"; then : 8202 xorg_cv_cc_flag_unused_command_line_argument=yes 8203else 8204 xorg_cv_cc_flag_unused_command_line_argument=no 8205fi 8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8207fi 8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8211 CFLAGS="$xorg_testset_save_CFLAGS" 8212fi 8213 8214found="no" 8215 8216 if test $found = "no" ; then 8217 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8219 fi 8220 8221 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8223 fi 8224 8225 CFLAGS="$CFLAGS -Werror=address" 8226 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8228$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8229 cacheid=xorg_cv_cc_flag__Werror_address 8230 if eval \${$cacheid+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232else 8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234/* end confdefs.h. */ 8235int i; 8236int 8237main () 8238{ 8239 8240 ; 8241 return 0; 8242} 8243_ACEOF 8244if ac_fn_c_try_link "$LINENO"; then : 8245 eval $cacheid=yes 8246else 8247 eval $cacheid=no 8248fi 8249rm -f core conftest.err conftest.$ac_objext \ 8250 conftest$ac_exeext conftest.$ac_ext 8251fi 8252 8253 8254 CFLAGS="$xorg_testset_save_CFLAGS" 8255 8256 eval supported=\$$cacheid 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8258$as_echo "$supported" >&6; } 8259 if test "$supported" = "yes" ; then 8260 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8261 found="yes" 8262 fi 8263 fi 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279xorg_testset_save_CFLAGS="$CFLAGS" 8280 8281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8289/* end confdefs.h. */ 8290int i; 8291_ACEOF 8292if ac_fn_c_try_compile "$LINENO"; then : 8293 xorg_cv_cc_flag_unknown_warning_option=yes 8294else 8295 xorg_cv_cc_flag_unknown_warning_option=no 8296fi 8297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8298fi 8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8302 CFLAGS="$xorg_testset_save_CFLAGS" 8303fi 8304 8305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8308 fi 8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316/* end confdefs.h. */ 8317int i; 8318_ACEOF 8319if ac_fn_c_try_compile "$LINENO"; then : 8320 xorg_cv_cc_flag_unused_command_line_argument=yes 8321else 8322 xorg_cv_cc_flag_unused_command_line_argument=no 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8325fi 8326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8329 CFLAGS="$xorg_testset_save_CFLAGS" 8330fi 8331 8332found="no" 8333 8334 if test $found = "no" ; then 8335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8337 fi 8338 8339 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341 fi 8342 8343 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8344 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8346$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8347 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8348 if eval \${$cacheid+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352/* end confdefs.h. */ 8353int i; 8354int 8355main () 8356{ 8357 8358 ; 8359 return 0; 8360} 8361_ACEOF 8362if ac_fn_c_try_link "$LINENO"; then : 8363 eval $cacheid=yes 8364else 8365 eval $cacheid=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext \ 8368 conftest$ac_exeext conftest.$ac_ext 8369fi 8370 8371 8372 CFLAGS="$xorg_testset_save_CFLAGS" 8373 8374 eval supported=\$$cacheid 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8376$as_echo "$supported" >&6; } 8377 if test "$supported" = "yes" ; then 8378 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8379 found="yes" 8380 fi 8381 fi 8382 8383 if test $found = "no" ; then 8384 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8386 fi 8387 8388 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8390 fi 8391 8392 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8393 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8395$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8396 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8397 if eval \${$cacheid+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399else 8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8401/* end confdefs.h. */ 8402int i; 8403int 8404main () 8405{ 8406 8407 ; 8408 return 0; 8409} 8410_ACEOF 8411if ac_fn_c_try_link "$LINENO"; then : 8412 eval $cacheid=yes 8413else 8414 eval $cacheid=no 8415fi 8416rm -f core conftest.err conftest.$ac_objext \ 8417 conftest$ac_exeext conftest.$ac_ext 8418fi 8419 8420 8421 CFLAGS="$xorg_testset_save_CFLAGS" 8422 8423 eval supported=\$$cacheid 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8425$as_echo "$supported" >&6; } 8426 if test "$supported" = "yes" ; then 8427 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8428 found="yes" 8429 fi 8430 fi 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446xorg_testset_save_CFLAGS="$CFLAGS" 8447 8448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8453 $as_echo_n "(cached) " >&6 8454else 8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8456/* end confdefs.h. */ 8457int i; 8458_ACEOF 8459if ac_fn_c_try_compile "$LINENO"; then : 8460 xorg_cv_cc_flag_unknown_warning_option=yes 8461else 8462 xorg_cv_cc_flag_unknown_warning_option=no 8463fi 8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8465fi 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8469 CFLAGS="$xorg_testset_save_CFLAGS" 8470fi 8471 8472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8475 fi 8476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8480 $as_echo_n "(cached) " >&6 8481else 8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8483/* end confdefs.h. */ 8484int i; 8485_ACEOF 8486if ac_fn_c_try_compile "$LINENO"; then : 8487 xorg_cv_cc_flag_unused_command_line_argument=yes 8488else 8489 xorg_cv_cc_flag_unused_command_line_argument=no 8490fi 8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8492fi 8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8496 CFLAGS="$xorg_testset_save_CFLAGS" 8497fi 8498 8499found="no" 8500 8501 if test $found = "no" ; then 8502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8504 fi 8505 8506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 fi 8509 8510 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8511 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8513$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8514 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8515 if eval \${$cacheid+:} false; then : 8516 $as_echo_n "(cached) " >&6 8517else 8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8519/* end confdefs.h. */ 8520int i; 8521int 8522main () 8523{ 8524 8525 ; 8526 return 0; 8527} 8528_ACEOF 8529if ac_fn_c_try_link "$LINENO"; then : 8530 eval $cacheid=yes 8531else 8532 eval $cacheid=no 8533fi 8534rm -f core conftest.err conftest.$ac_objext \ 8535 conftest$ac_exeext conftest.$ac_ext 8536fi 8537 8538 8539 CFLAGS="$xorg_testset_save_CFLAGS" 8540 8541 eval supported=\$$cacheid 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8543$as_echo "$supported" >&6; } 8544 if test "$supported" = "yes" ; then 8545 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8546 found="yes" 8547 fi 8548 fi 8549 8550 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8551else 8552{ $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 8553$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;} 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567xorg_testset_save_CFLAGS="$CFLAGS" 8568 8569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577/* end confdefs.h. */ 8578int i; 8579_ACEOF 8580if ac_fn_c_try_compile "$LINENO"; then : 8581 xorg_cv_cc_flag_unknown_warning_option=yes 8582else 8583 xorg_cv_cc_flag_unknown_warning_option=no 8584fi 8585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8586fi 8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8590 CFLAGS="$xorg_testset_save_CFLAGS" 8591fi 8592 8593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8596 fi 8597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8604/* end confdefs.h. */ 8605int i; 8606_ACEOF 8607if ac_fn_c_try_compile "$LINENO"; then : 8608 xorg_cv_cc_flag_unused_command_line_argument=yes 8609else 8610 xorg_cv_cc_flag_unused_command_line_argument=no 8611fi 8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8613fi 8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8617 CFLAGS="$xorg_testset_save_CFLAGS" 8618fi 8619 8620found="no" 8621 8622 if test $found = "no" ; then 8623 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8625 fi 8626 8627 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8629 fi 8630 8631 CFLAGS="$CFLAGS -Wimplicit" 8632 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8634$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8635 cacheid=xorg_cv_cc_flag__Wimplicit 8636 if eval \${$cacheid+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638else 8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640/* end confdefs.h. */ 8641int i; 8642int 8643main () 8644{ 8645 8646 ; 8647 return 0; 8648} 8649_ACEOF 8650if ac_fn_c_try_link "$LINENO"; then : 8651 eval $cacheid=yes 8652else 8653 eval $cacheid=no 8654fi 8655rm -f core conftest.err conftest.$ac_objext \ 8656 conftest$ac_exeext conftest.$ac_ext 8657fi 8658 8659 8660 CFLAGS="$xorg_testset_save_CFLAGS" 8661 8662 eval supported=\$$cacheid 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8664$as_echo "$supported" >&6; } 8665 if test "$supported" = "yes" ; then 8666 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8667 found="yes" 8668 fi 8669 fi 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685xorg_testset_save_CFLAGS="$CFLAGS" 8686 8687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8692 $as_echo_n "(cached) " >&6 8693else 8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8695/* end confdefs.h. */ 8696int i; 8697_ACEOF 8698if ac_fn_c_try_compile "$LINENO"; then : 8699 xorg_cv_cc_flag_unknown_warning_option=yes 8700else 8701 xorg_cv_cc_flag_unknown_warning_option=no 8702fi 8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8704fi 8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8708 CFLAGS="$xorg_testset_save_CFLAGS" 8709fi 8710 8711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8714 fi 8715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8719 $as_echo_n "(cached) " >&6 8720else 8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722/* end confdefs.h. */ 8723int i; 8724_ACEOF 8725if ac_fn_c_try_compile "$LINENO"; then : 8726 xorg_cv_cc_flag_unused_command_line_argument=yes 8727else 8728 xorg_cv_cc_flag_unused_command_line_argument=no 8729fi 8730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8731fi 8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8735 CFLAGS="$xorg_testset_save_CFLAGS" 8736fi 8737 8738found="no" 8739 8740 if test $found = "no" ; then 8741 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8743 fi 8744 8745 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8747 fi 8748 8749 CFLAGS="$CFLAGS -Wnonnull" 8750 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8752$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8753 cacheid=xorg_cv_cc_flag__Wnonnull 8754 if eval \${$cacheid+:} false; then : 8755 $as_echo_n "(cached) " >&6 8756else 8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758/* end confdefs.h. */ 8759int i; 8760int 8761main () 8762{ 8763 8764 ; 8765 return 0; 8766} 8767_ACEOF 8768if ac_fn_c_try_link "$LINENO"; then : 8769 eval $cacheid=yes 8770else 8771 eval $cacheid=no 8772fi 8773rm -f core conftest.err conftest.$ac_objext \ 8774 conftest$ac_exeext conftest.$ac_ext 8775fi 8776 8777 8778 CFLAGS="$xorg_testset_save_CFLAGS" 8779 8780 eval supported=\$$cacheid 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8782$as_echo "$supported" >&6; } 8783 if test "$supported" = "yes" ; then 8784 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8785 found="yes" 8786 fi 8787 fi 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803xorg_testset_save_CFLAGS="$CFLAGS" 8804 8805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811else 8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813/* end confdefs.h. */ 8814int i; 8815_ACEOF 8816if ac_fn_c_try_compile "$LINENO"; then : 8817 xorg_cv_cc_flag_unknown_warning_option=yes 8818else 8819 xorg_cv_cc_flag_unknown_warning_option=no 8820fi 8821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8822fi 8823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8826 CFLAGS="$xorg_testset_save_CFLAGS" 8827fi 8828 8829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8832 fi 8833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8837 $as_echo_n "(cached) " >&6 8838else 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840/* end confdefs.h. */ 8841int i; 8842_ACEOF 8843if ac_fn_c_try_compile "$LINENO"; then : 8844 xorg_cv_cc_flag_unused_command_line_argument=yes 8845else 8846 xorg_cv_cc_flag_unused_command_line_argument=no 8847fi 8848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8849fi 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8853 CFLAGS="$xorg_testset_save_CFLAGS" 8854fi 8855 8856found="no" 8857 8858 if test $found = "no" ; then 8859 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8861 fi 8862 8863 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8865 fi 8866 8867 CFLAGS="$CFLAGS -Winit-self" 8868 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8870$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8871 cacheid=xorg_cv_cc_flag__Winit_self 8872 if eval \${$cacheid+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874else 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876/* end confdefs.h. */ 8877int i; 8878int 8879main () 8880{ 8881 8882 ; 8883 return 0; 8884} 8885_ACEOF 8886if ac_fn_c_try_link "$LINENO"; then : 8887 eval $cacheid=yes 8888else 8889 eval $cacheid=no 8890fi 8891rm -f core conftest.err conftest.$ac_objext \ 8892 conftest$ac_exeext conftest.$ac_ext 8893fi 8894 8895 8896 CFLAGS="$xorg_testset_save_CFLAGS" 8897 8898 eval supported=\$$cacheid 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8900$as_echo "$supported" >&6; } 8901 if test "$supported" = "yes" ; then 8902 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8903 found="yes" 8904 fi 8905 fi 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921xorg_testset_save_CFLAGS="$CFLAGS" 8922 8923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8928 $as_echo_n "(cached) " >&6 8929else 8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8931/* end confdefs.h. */ 8932int i; 8933_ACEOF 8934if ac_fn_c_try_compile "$LINENO"; then : 8935 xorg_cv_cc_flag_unknown_warning_option=yes 8936else 8937 xorg_cv_cc_flag_unknown_warning_option=no 8938fi 8939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8940fi 8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8944 CFLAGS="$xorg_testset_save_CFLAGS" 8945fi 8946 8947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8950 fi 8951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8955 $as_echo_n "(cached) " >&6 8956else 8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958/* end confdefs.h. */ 8959int i; 8960_ACEOF 8961if ac_fn_c_try_compile "$LINENO"; then : 8962 xorg_cv_cc_flag_unused_command_line_argument=yes 8963else 8964 xorg_cv_cc_flag_unused_command_line_argument=no 8965fi 8966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8967fi 8968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8971 CFLAGS="$xorg_testset_save_CFLAGS" 8972fi 8973 8974found="no" 8975 8976 if test $found = "no" ; then 8977 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979 fi 8980 8981 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983 fi 8984 8985 CFLAGS="$CFLAGS -Wmain" 8986 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8988$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8989 cacheid=xorg_cv_cc_flag__Wmain 8990 if eval \${$cacheid+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992else 8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8994/* end confdefs.h. */ 8995int i; 8996int 8997main () 8998{ 8999 9000 ; 9001 return 0; 9002} 9003_ACEOF 9004if ac_fn_c_try_link "$LINENO"; then : 9005 eval $cacheid=yes 9006else 9007 eval $cacheid=no 9008fi 9009rm -f core conftest.err conftest.$ac_objext \ 9010 conftest$ac_exeext conftest.$ac_ext 9011fi 9012 9013 9014 CFLAGS="$xorg_testset_save_CFLAGS" 9015 9016 eval supported=\$$cacheid 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9018$as_echo "$supported" >&6; } 9019 if test "$supported" = "yes" ; then 9020 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9021 found="yes" 9022 fi 9023 fi 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039xorg_testset_save_CFLAGS="$CFLAGS" 9040 9041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9046 $as_echo_n "(cached) " >&6 9047else 9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9049/* end confdefs.h. */ 9050int i; 9051_ACEOF 9052if ac_fn_c_try_compile "$LINENO"; then : 9053 xorg_cv_cc_flag_unknown_warning_option=yes 9054else 9055 xorg_cv_cc_flag_unknown_warning_option=no 9056fi 9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9058fi 9059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9062 CFLAGS="$xorg_testset_save_CFLAGS" 9063fi 9064 9065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9068 fi 9069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9073 $as_echo_n "(cached) " >&6 9074else 9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9076/* end confdefs.h. */ 9077int i; 9078_ACEOF 9079if ac_fn_c_try_compile "$LINENO"; then : 9080 xorg_cv_cc_flag_unused_command_line_argument=yes 9081else 9082 xorg_cv_cc_flag_unused_command_line_argument=no 9083fi 9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9085fi 9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9089 CFLAGS="$xorg_testset_save_CFLAGS" 9090fi 9091 9092found="no" 9093 9094 if test $found = "no" ; then 9095 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9097 fi 9098 9099 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9101 fi 9102 9103 CFLAGS="$CFLAGS -Wmissing-braces" 9104 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9106$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9107 cacheid=xorg_cv_cc_flag__Wmissing_braces 9108 if eval \${$cacheid+:} false; then : 9109 $as_echo_n "(cached) " >&6 9110else 9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9112/* end confdefs.h. */ 9113int i; 9114int 9115main () 9116{ 9117 9118 ; 9119 return 0; 9120} 9121_ACEOF 9122if ac_fn_c_try_link "$LINENO"; then : 9123 eval $cacheid=yes 9124else 9125 eval $cacheid=no 9126fi 9127rm -f core conftest.err conftest.$ac_objext \ 9128 conftest$ac_exeext conftest.$ac_ext 9129fi 9130 9131 9132 CFLAGS="$xorg_testset_save_CFLAGS" 9133 9134 eval supported=\$$cacheid 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9136$as_echo "$supported" >&6; } 9137 if test "$supported" = "yes" ; then 9138 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9139 found="yes" 9140 fi 9141 fi 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157xorg_testset_save_CFLAGS="$CFLAGS" 9158 9159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9164 $as_echo_n "(cached) " >&6 9165else 9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9167/* end confdefs.h. */ 9168int i; 9169_ACEOF 9170if ac_fn_c_try_compile "$LINENO"; then : 9171 xorg_cv_cc_flag_unknown_warning_option=yes 9172else 9173 xorg_cv_cc_flag_unknown_warning_option=no 9174fi 9175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9176fi 9177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9180 CFLAGS="$xorg_testset_save_CFLAGS" 9181fi 9182 9183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9186 fi 9187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195int i; 9196_ACEOF 9197if ac_fn_c_try_compile "$LINENO"; then : 9198 xorg_cv_cc_flag_unused_command_line_argument=yes 9199else 9200 xorg_cv_cc_flag_unused_command_line_argument=no 9201fi 9202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9203fi 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9207 CFLAGS="$xorg_testset_save_CFLAGS" 9208fi 9209 9210found="no" 9211 9212 if test $found = "no" ; then 9213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9215 fi 9216 9217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9219 fi 9220 9221 CFLAGS="$CFLAGS -Wsequence-point" 9222 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9224$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9225 cacheid=xorg_cv_cc_flag__Wsequence_point 9226 if eval \${$cacheid+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9230/* end confdefs.h. */ 9231int i; 9232int 9233main () 9234{ 9235 9236 ; 9237 return 0; 9238} 9239_ACEOF 9240if ac_fn_c_try_link "$LINENO"; then : 9241 eval $cacheid=yes 9242else 9243 eval $cacheid=no 9244fi 9245rm -f core conftest.err conftest.$ac_objext \ 9246 conftest$ac_exeext conftest.$ac_ext 9247fi 9248 9249 9250 CFLAGS="$xorg_testset_save_CFLAGS" 9251 9252 eval supported=\$$cacheid 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9254$as_echo "$supported" >&6; } 9255 if test "$supported" = "yes" ; then 9256 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9257 found="yes" 9258 fi 9259 fi 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275xorg_testset_save_CFLAGS="$CFLAGS" 9276 9277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9282 $as_echo_n "(cached) " >&6 9283else 9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285/* end confdefs.h. */ 9286int i; 9287_ACEOF 9288if ac_fn_c_try_compile "$LINENO"; then : 9289 xorg_cv_cc_flag_unknown_warning_option=yes 9290else 9291 xorg_cv_cc_flag_unknown_warning_option=no 9292fi 9293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9294fi 9295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9298 CFLAGS="$xorg_testset_save_CFLAGS" 9299fi 9300 9301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9304 fi 9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9309 $as_echo_n "(cached) " >&6 9310else 9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9312/* end confdefs.h. */ 9313int i; 9314_ACEOF 9315if ac_fn_c_try_compile "$LINENO"; then : 9316 xorg_cv_cc_flag_unused_command_line_argument=yes 9317else 9318 xorg_cv_cc_flag_unused_command_line_argument=no 9319fi 9320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9321fi 9322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9325 CFLAGS="$xorg_testset_save_CFLAGS" 9326fi 9327 9328found="no" 9329 9330 if test $found = "no" ; then 9331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9333 fi 9334 9335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9337 fi 9338 9339 CFLAGS="$CFLAGS -Wreturn-type" 9340 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9342$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9343 cacheid=xorg_cv_cc_flag__Wreturn_type 9344 if eval \${$cacheid+:} false; then : 9345 $as_echo_n "(cached) " >&6 9346else 9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348/* end confdefs.h. */ 9349int i; 9350int 9351main () 9352{ 9353 9354 ; 9355 return 0; 9356} 9357_ACEOF 9358if ac_fn_c_try_link "$LINENO"; then : 9359 eval $cacheid=yes 9360else 9361 eval $cacheid=no 9362fi 9363rm -f core conftest.err conftest.$ac_objext \ 9364 conftest$ac_exeext conftest.$ac_ext 9365fi 9366 9367 9368 CFLAGS="$xorg_testset_save_CFLAGS" 9369 9370 eval supported=\$$cacheid 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9372$as_echo "$supported" >&6; } 9373 if test "$supported" = "yes" ; then 9374 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9375 found="yes" 9376 fi 9377 fi 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393xorg_testset_save_CFLAGS="$CFLAGS" 9394 9395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9400 $as_echo_n "(cached) " >&6 9401else 9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403/* end confdefs.h. */ 9404int i; 9405_ACEOF 9406if ac_fn_c_try_compile "$LINENO"; then : 9407 xorg_cv_cc_flag_unknown_warning_option=yes 9408else 9409 xorg_cv_cc_flag_unknown_warning_option=no 9410fi 9411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9412fi 9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9416 CFLAGS="$xorg_testset_save_CFLAGS" 9417fi 9418 9419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9422 fi 9423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9430/* end confdefs.h. */ 9431int i; 9432_ACEOF 9433if ac_fn_c_try_compile "$LINENO"; then : 9434 xorg_cv_cc_flag_unused_command_line_argument=yes 9435else 9436 xorg_cv_cc_flag_unused_command_line_argument=no 9437fi 9438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9439fi 9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9443 CFLAGS="$xorg_testset_save_CFLAGS" 9444fi 9445 9446found="no" 9447 9448 if test $found = "no" ; then 9449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9451 fi 9452 9453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9455 fi 9456 9457 CFLAGS="$CFLAGS -Wtrigraphs" 9458 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9460$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9461 cacheid=xorg_cv_cc_flag__Wtrigraphs 9462 if eval \${$cacheid+:} false; then : 9463 $as_echo_n "(cached) " >&6 9464else 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466/* end confdefs.h. */ 9467int i; 9468int 9469main () 9470{ 9471 9472 ; 9473 return 0; 9474} 9475_ACEOF 9476if ac_fn_c_try_link "$LINENO"; then : 9477 eval $cacheid=yes 9478else 9479 eval $cacheid=no 9480fi 9481rm -f core conftest.err conftest.$ac_objext \ 9482 conftest$ac_exeext conftest.$ac_ext 9483fi 9484 9485 9486 CFLAGS="$xorg_testset_save_CFLAGS" 9487 9488 eval supported=\$$cacheid 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9490$as_echo "$supported" >&6; } 9491 if test "$supported" = "yes" ; then 9492 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9493 found="yes" 9494 fi 9495 fi 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511xorg_testset_save_CFLAGS="$CFLAGS" 9512 9513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9518 $as_echo_n "(cached) " >&6 9519else 9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9521/* end confdefs.h. */ 9522int i; 9523_ACEOF 9524if ac_fn_c_try_compile "$LINENO"; then : 9525 xorg_cv_cc_flag_unknown_warning_option=yes 9526else 9527 xorg_cv_cc_flag_unknown_warning_option=no 9528fi 9529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9530fi 9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9534 CFLAGS="$xorg_testset_save_CFLAGS" 9535fi 9536 9537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9540 fi 9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548/* end confdefs.h. */ 9549int i; 9550_ACEOF 9551if ac_fn_c_try_compile "$LINENO"; then : 9552 xorg_cv_cc_flag_unused_command_line_argument=yes 9553else 9554 xorg_cv_cc_flag_unused_command_line_argument=no 9555fi 9556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9557fi 9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9561 CFLAGS="$xorg_testset_save_CFLAGS" 9562fi 9563 9564found="no" 9565 9566 if test $found = "no" ; then 9567 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9569 fi 9570 9571 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9573 fi 9574 9575 CFLAGS="$CFLAGS -Warray-bounds" 9576 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9578$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9579 cacheid=xorg_cv_cc_flag__Warray_bounds 9580 if eval \${$cacheid+:} false; then : 9581 $as_echo_n "(cached) " >&6 9582else 9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9584/* end confdefs.h. */ 9585int i; 9586int 9587main () 9588{ 9589 9590 ; 9591 return 0; 9592} 9593_ACEOF 9594if ac_fn_c_try_link "$LINENO"; then : 9595 eval $cacheid=yes 9596else 9597 eval $cacheid=no 9598fi 9599rm -f core conftest.err conftest.$ac_objext \ 9600 conftest$ac_exeext conftest.$ac_ext 9601fi 9602 9603 9604 CFLAGS="$xorg_testset_save_CFLAGS" 9605 9606 eval supported=\$$cacheid 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9608$as_echo "$supported" >&6; } 9609 if test "$supported" = "yes" ; then 9610 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9611 found="yes" 9612 fi 9613 fi 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629xorg_testset_save_CFLAGS="$CFLAGS" 9630 9631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9636 $as_echo_n "(cached) " >&6 9637else 9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9639/* end confdefs.h. */ 9640int i; 9641_ACEOF 9642if ac_fn_c_try_compile "$LINENO"; then : 9643 xorg_cv_cc_flag_unknown_warning_option=yes 9644else 9645 xorg_cv_cc_flag_unknown_warning_option=no 9646fi 9647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9648fi 9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9652 CFLAGS="$xorg_testset_save_CFLAGS" 9653fi 9654 9655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9658 fi 9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9663 $as_echo_n "(cached) " >&6 9664else 9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666/* end confdefs.h. */ 9667int i; 9668_ACEOF 9669if ac_fn_c_try_compile "$LINENO"; then : 9670 xorg_cv_cc_flag_unused_command_line_argument=yes 9671else 9672 xorg_cv_cc_flag_unused_command_line_argument=no 9673fi 9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9675fi 9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9679 CFLAGS="$xorg_testset_save_CFLAGS" 9680fi 9681 9682found="no" 9683 9684 if test $found = "no" ; then 9685 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9687 fi 9688 9689 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9691 fi 9692 9693 CFLAGS="$CFLAGS -Wwrite-strings" 9694 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9696$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9697 cacheid=xorg_cv_cc_flag__Wwrite_strings 9698 if eval \${$cacheid+:} false; then : 9699 $as_echo_n "(cached) " >&6 9700else 9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702/* end confdefs.h. */ 9703int i; 9704int 9705main () 9706{ 9707 9708 ; 9709 return 0; 9710} 9711_ACEOF 9712if ac_fn_c_try_link "$LINENO"; then : 9713 eval $cacheid=yes 9714else 9715 eval $cacheid=no 9716fi 9717rm -f core conftest.err conftest.$ac_objext \ 9718 conftest$ac_exeext conftest.$ac_ext 9719fi 9720 9721 9722 CFLAGS="$xorg_testset_save_CFLAGS" 9723 9724 eval supported=\$$cacheid 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9726$as_echo "$supported" >&6; } 9727 if test "$supported" = "yes" ; then 9728 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9729 found="yes" 9730 fi 9731 fi 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747xorg_testset_save_CFLAGS="$CFLAGS" 9748 9749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9754 $as_echo_n "(cached) " >&6 9755else 9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9757/* end confdefs.h. */ 9758int i; 9759_ACEOF 9760if ac_fn_c_try_compile "$LINENO"; then : 9761 xorg_cv_cc_flag_unknown_warning_option=yes 9762else 9763 xorg_cv_cc_flag_unknown_warning_option=no 9764fi 9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9766fi 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9770 CFLAGS="$xorg_testset_save_CFLAGS" 9771fi 9772 9773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9776 fi 9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782else 9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9784/* end confdefs.h. */ 9785int i; 9786_ACEOF 9787if ac_fn_c_try_compile "$LINENO"; then : 9788 xorg_cv_cc_flag_unused_command_line_argument=yes 9789else 9790 xorg_cv_cc_flag_unused_command_line_argument=no 9791fi 9792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9793fi 9794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9797 CFLAGS="$xorg_testset_save_CFLAGS" 9798fi 9799 9800found="no" 9801 9802 if test $found = "no" ; then 9803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9805 fi 9806 9807 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9809 fi 9810 9811 CFLAGS="$CFLAGS -Waddress" 9812 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9814$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9815 cacheid=xorg_cv_cc_flag__Waddress 9816 if eval \${$cacheid+:} false; then : 9817 $as_echo_n "(cached) " >&6 9818else 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821int i; 9822int 9823main () 9824{ 9825 9826 ; 9827 return 0; 9828} 9829_ACEOF 9830if ac_fn_c_try_link "$LINENO"; then : 9831 eval $cacheid=yes 9832else 9833 eval $cacheid=no 9834fi 9835rm -f core conftest.err conftest.$ac_objext \ 9836 conftest$ac_exeext conftest.$ac_ext 9837fi 9838 9839 9840 CFLAGS="$xorg_testset_save_CFLAGS" 9841 9842 eval supported=\$$cacheid 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9844$as_echo "$supported" >&6; } 9845 if test "$supported" = "yes" ; then 9846 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9847 found="yes" 9848 fi 9849 fi 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865xorg_testset_save_CFLAGS="$CFLAGS" 9866 9867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9872 $as_echo_n "(cached) " >&6 9873else 9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875/* end confdefs.h. */ 9876int i; 9877_ACEOF 9878if ac_fn_c_try_compile "$LINENO"; then : 9879 xorg_cv_cc_flag_unknown_warning_option=yes 9880else 9881 xorg_cv_cc_flag_unknown_warning_option=no 9882fi 9883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9884fi 9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9888 CFLAGS="$xorg_testset_save_CFLAGS" 9889fi 9890 9891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9894 fi 9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903int i; 9904_ACEOF 9905if ac_fn_c_try_compile "$LINENO"; then : 9906 xorg_cv_cc_flag_unused_command_line_argument=yes 9907else 9908 xorg_cv_cc_flag_unused_command_line_argument=no 9909fi 9910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9911fi 9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9915 CFLAGS="$xorg_testset_save_CFLAGS" 9916fi 9917 9918found="no" 9919 9920 if test $found = "no" ; then 9921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9923 fi 9924 9925 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9927 fi 9928 9929 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9930 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9932$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9933 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9934 if eval \${$cacheid+:} false; then : 9935 $as_echo_n "(cached) " >&6 9936else 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939int i; 9940int 9941main () 9942{ 9943 9944 ; 9945 return 0; 9946} 9947_ACEOF 9948if ac_fn_c_try_link "$LINENO"; then : 9949 eval $cacheid=yes 9950else 9951 eval $cacheid=no 9952fi 9953rm -f core conftest.err conftest.$ac_objext \ 9954 conftest$ac_exeext conftest.$ac_ext 9955fi 9956 9957 9958 CFLAGS="$xorg_testset_save_CFLAGS" 9959 9960 eval supported=\$$cacheid 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9962$as_echo "$supported" >&6; } 9963 if test "$supported" = "yes" ; then 9964 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9965 found="yes" 9966 fi 9967 fi 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983xorg_testset_save_CFLAGS="$CFLAGS" 9984 9985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9993/* end confdefs.h. */ 9994int i; 9995_ACEOF 9996if ac_fn_c_try_compile "$LINENO"; then : 9997 xorg_cv_cc_flag_unknown_warning_option=yes 9998else 9999 xorg_cv_cc_flag_unknown_warning_option=no 10000fi 10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10002fi 10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10006 CFLAGS="$xorg_testset_save_CFLAGS" 10007fi 10008 10009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10012 fi 10013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10017 $as_echo_n "(cached) " >&6 10018else 10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021int i; 10022_ACEOF 10023if ac_fn_c_try_compile "$LINENO"; then : 10024 xorg_cv_cc_flag_unused_command_line_argument=yes 10025else 10026 xorg_cv_cc_flag_unused_command_line_argument=no 10027fi 10028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10029fi 10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10033 CFLAGS="$xorg_testset_save_CFLAGS" 10034fi 10035 10036found="no" 10037 10038 if test $found = "no" ; then 10039 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10041 fi 10042 10043 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10045 fi 10046 10047 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10048 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10050$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10051 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10052 if eval \${$cacheid+:} false; then : 10053 $as_echo_n "(cached) " >&6 10054else 10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056/* end confdefs.h. */ 10057int i; 10058int 10059main () 10060{ 10061 10062 ; 10063 return 0; 10064} 10065_ACEOF 10066if ac_fn_c_try_link "$LINENO"; then : 10067 eval $cacheid=yes 10068else 10069 eval $cacheid=no 10070fi 10071rm -f core conftest.err conftest.$ac_objext \ 10072 conftest$ac_exeext conftest.$ac_ext 10073fi 10074 10075 10076 CFLAGS="$xorg_testset_save_CFLAGS" 10077 10078 eval supported=\$$cacheid 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10080$as_echo "$supported" >&6; } 10081 if test "$supported" = "yes" ; then 10082 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10083 found="yes" 10084 fi 10085 fi 10086 10087 10088fi 10089 10090 10091 10092 10093 10094 10095 10096 CWARNFLAGS="$BASE_CFLAGS" 10097 if test "x$GCC" = xyes ; then 10098 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10099 fi 10100 10101 10102 10103 10104 10105 10106 10107 10108# Check whether --enable-strict-compilation was given. 10109if test "${enable_strict_compilation+set}" = set; then : 10110 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10111else 10112 STRICT_COMPILE=no 10113fi 10114 10115 10116 10117 10118 10119 10120STRICT_CFLAGS="" 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134xorg_testset_save_CFLAGS="$CFLAGS" 10135 10136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10141 $as_echo_n "(cached) " >&6 10142else 10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10144/* end confdefs.h. */ 10145int i; 10146_ACEOF 10147if ac_fn_c_try_compile "$LINENO"; then : 10148 xorg_cv_cc_flag_unknown_warning_option=yes 10149else 10150 xorg_cv_cc_flag_unknown_warning_option=no 10151fi 10152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10153fi 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10157 CFLAGS="$xorg_testset_save_CFLAGS" 10158fi 10159 10160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10163 fi 10164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10168 $as_echo_n "(cached) " >&6 10169else 10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10171/* end confdefs.h. */ 10172int i; 10173_ACEOF 10174if ac_fn_c_try_compile "$LINENO"; then : 10175 xorg_cv_cc_flag_unused_command_line_argument=yes 10176else 10177 xorg_cv_cc_flag_unused_command_line_argument=no 10178fi 10179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10180fi 10181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10184 CFLAGS="$xorg_testset_save_CFLAGS" 10185fi 10186 10187found="no" 10188 10189 if test $found = "no" ; then 10190 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10192 fi 10193 10194 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10196 fi 10197 10198 CFLAGS="$CFLAGS -pedantic" 10199 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10201$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10202 cacheid=xorg_cv_cc_flag__pedantic 10203 if eval \${$cacheid+:} false; then : 10204 $as_echo_n "(cached) " >&6 10205else 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207/* end confdefs.h. */ 10208int i; 10209int 10210main () 10211{ 10212 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217if ac_fn_c_try_link "$LINENO"; then : 10218 eval $cacheid=yes 10219else 10220 eval $cacheid=no 10221fi 10222rm -f core conftest.err conftest.$ac_objext \ 10223 conftest$ac_exeext conftest.$ac_ext 10224fi 10225 10226 10227 CFLAGS="$xorg_testset_save_CFLAGS" 10228 10229 eval supported=\$$cacheid 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10231$as_echo "$supported" >&6; } 10232 if test "$supported" = "yes" ; then 10233 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10234 found="yes" 10235 fi 10236 fi 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252xorg_testset_save_CFLAGS="$CFLAGS" 10253 10254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10259 $as_echo_n "(cached) " >&6 10260else 10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10262/* end confdefs.h. */ 10263int i; 10264_ACEOF 10265if ac_fn_c_try_compile "$LINENO"; then : 10266 xorg_cv_cc_flag_unknown_warning_option=yes 10267else 10268 xorg_cv_cc_flag_unknown_warning_option=no 10269fi 10270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10271fi 10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10275 CFLAGS="$xorg_testset_save_CFLAGS" 10276fi 10277 10278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281 fi 10282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287else 10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289/* end confdefs.h. */ 10290int i; 10291_ACEOF 10292if ac_fn_c_try_compile "$LINENO"; then : 10293 xorg_cv_cc_flag_unused_command_line_argument=yes 10294else 10295 xorg_cv_cc_flag_unused_command_line_argument=no 10296fi 10297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10298fi 10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10302 CFLAGS="$xorg_testset_save_CFLAGS" 10303fi 10304 10305found="no" 10306 10307 if test $found = "no" ; then 10308 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10310 fi 10311 10312 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10314 fi 10315 10316 CFLAGS="$CFLAGS -Werror" 10317 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10319$as_echo_n "checking if $CC supports -Werror... " >&6; } 10320 cacheid=xorg_cv_cc_flag__Werror 10321 if eval \${$cacheid+:} false; then : 10322 $as_echo_n "(cached) " >&6 10323else 10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10325/* end confdefs.h. */ 10326int i; 10327int 10328main () 10329{ 10330 10331 ; 10332 return 0; 10333} 10334_ACEOF 10335if ac_fn_c_try_link "$LINENO"; then : 10336 eval $cacheid=yes 10337else 10338 eval $cacheid=no 10339fi 10340rm -f core conftest.err conftest.$ac_objext \ 10341 conftest$ac_exeext conftest.$ac_ext 10342fi 10343 10344 10345 CFLAGS="$xorg_testset_save_CFLAGS" 10346 10347 eval supported=\$$cacheid 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10349$as_echo "$supported" >&6; } 10350 if test "$supported" = "yes" ; then 10351 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10352 found="yes" 10353 fi 10354 fi 10355 10356 if test $found = "no" ; then 10357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10359 fi 10360 10361 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10363 fi 10364 10365 CFLAGS="$CFLAGS -errwarn" 10366 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10368$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10369 cacheid=xorg_cv_cc_flag__errwarn 10370 if eval \${$cacheid+:} false; then : 10371 $as_echo_n "(cached) " >&6 10372else 10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10374/* end confdefs.h. */ 10375int i; 10376int 10377main () 10378{ 10379 10380 ; 10381 return 0; 10382} 10383_ACEOF 10384if ac_fn_c_try_link "$LINENO"; then : 10385 eval $cacheid=yes 10386else 10387 eval $cacheid=no 10388fi 10389rm -f core conftest.err conftest.$ac_objext \ 10390 conftest$ac_exeext conftest.$ac_ext 10391fi 10392 10393 10394 CFLAGS="$xorg_testset_save_CFLAGS" 10395 10396 eval supported=\$$cacheid 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10398$as_echo "$supported" >&6; } 10399 if test "$supported" = "yes" ; then 10400 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10401 found="yes" 10402 fi 10403 fi 10404 10405 10406 10407# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10408# activate it with -Werror, so we add it here explicitly. 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422xorg_testset_save_CFLAGS="$CFLAGS" 10423 10424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10429 $as_echo_n "(cached) " >&6 10430else 10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10432/* end confdefs.h. */ 10433int i; 10434_ACEOF 10435if ac_fn_c_try_compile "$LINENO"; then : 10436 xorg_cv_cc_flag_unknown_warning_option=yes 10437else 10438 xorg_cv_cc_flag_unknown_warning_option=no 10439fi 10440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10441fi 10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10445 CFLAGS="$xorg_testset_save_CFLAGS" 10446fi 10447 10448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10451 fi 10452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10456 $as_echo_n "(cached) " >&6 10457else 10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10459/* end confdefs.h. */ 10460int i; 10461_ACEOF 10462if ac_fn_c_try_compile "$LINENO"; then : 10463 xorg_cv_cc_flag_unused_command_line_argument=yes 10464else 10465 xorg_cv_cc_flag_unused_command_line_argument=no 10466fi 10467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10468fi 10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10472 CFLAGS="$xorg_testset_save_CFLAGS" 10473fi 10474 10475found="no" 10476 10477 if test $found = "no" ; then 10478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10480 fi 10481 10482 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10484 fi 10485 10486 CFLAGS="$CFLAGS -Werror=attributes" 10487 10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10489$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10490 cacheid=xorg_cv_cc_flag__Werror_attributes 10491 if eval \${$cacheid+:} false; then : 10492 $as_echo_n "(cached) " >&6 10493else 10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10495/* end confdefs.h. */ 10496int i; 10497int 10498main () 10499{ 10500 10501 ; 10502 return 0; 10503} 10504_ACEOF 10505if ac_fn_c_try_link "$LINENO"; then : 10506 eval $cacheid=yes 10507else 10508 eval $cacheid=no 10509fi 10510rm -f core conftest.err conftest.$ac_objext \ 10511 conftest$ac_exeext conftest.$ac_ext 10512fi 10513 10514 10515 CFLAGS="$xorg_testset_save_CFLAGS" 10516 10517 eval supported=\$$cacheid 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10519$as_echo "$supported" >&6; } 10520 if test "$supported" = "yes" ; then 10521 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10522 found="yes" 10523 fi 10524 fi 10525 10526 10527 10528if test "x$STRICT_COMPILE" = "xyes"; then 10529 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10530 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10531fi 10532 10533 10534 10535 10536 10537 10538cat >>confdefs.h <<_ACEOF 10539#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10540_ACEOF 10541 10542 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10543 if test "x$PVM" = "x"; then 10544 PVM="0" 10545 fi 10546 10547cat >>confdefs.h <<_ACEOF 10548#define PACKAGE_VERSION_MINOR $PVM 10549_ACEOF 10550 10551 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10552 if test "x$PVP" = "x"; then 10553 PVP="0" 10554 fi 10555 10556cat >>confdefs.h <<_ACEOF 10557#define PACKAGE_VERSION_PATCHLEVEL $PVP 10558_ACEOF 10559 10560 10561 10562CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10563mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10564|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10565echo 'git directory not found: installing possibly empty changelog.' >&2)" 10566 10567 10568 10569 10570macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10571INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10572mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10573|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10574echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10575 10576 10577 10578 10579 10580 10581if test x$APP_MAN_SUFFIX = x ; then 10582 APP_MAN_SUFFIX=1 10583fi 10584if test x$APP_MAN_DIR = x ; then 10585 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10586fi 10587 10588if test x$LIB_MAN_SUFFIX = x ; then 10589 LIB_MAN_SUFFIX=3 10590fi 10591if test x$LIB_MAN_DIR = x ; then 10592 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10593fi 10594 10595if test x$FILE_MAN_SUFFIX = x ; then 10596 case $host_os in 10597 solaris*) FILE_MAN_SUFFIX=4 ;; 10598 *) FILE_MAN_SUFFIX=5 ;; 10599 esac 10600fi 10601if test x$FILE_MAN_DIR = x ; then 10602 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10603fi 10604 10605if test x$MISC_MAN_SUFFIX = x ; then 10606 case $host_os in 10607 solaris*) MISC_MAN_SUFFIX=5 ;; 10608 *) MISC_MAN_SUFFIX=7 ;; 10609 esac 10610fi 10611if test x$MISC_MAN_DIR = x ; then 10612 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10613fi 10614 10615if test x$DRIVER_MAN_SUFFIX = x ; then 10616 case $host_os in 10617 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10618 *) DRIVER_MAN_SUFFIX=4 ;; 10619 esac 10620fi 10621if test x$DRIVER_MAN_DIR = x ; then 10622 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10623fi 10624 10625if test x$ADMIN_MAN_SUFFIX = x ; then 10626 case $host_os in 10627 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10628 *) ADMIN_MAN_SUFFIX=8 ;; 10629 esac 10630fi 10631if test x$ADMIN_MAN_DIR = x ; then 10632 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10633fi 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649XORG_MAN_PAGE="X Version 11" 10650 10651MAN_SUBSTS="\ 10652 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10653 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10654 -e 's|__xservername__|Xorg|g' \ 10655 -e 's|__xconfigfile__|xorg.conf|g' \ 10656 -e 's|__projectroot__|\$(prefix)|g' \ 10657 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10658 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10659 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10660 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10661 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10662 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10663 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10664 10665 10666 10667# Check whether --enable-silent-rules was given. 10668if test "${enable_silent_rules+set}" = set; then : 10669 enableval=$enable_silent_rules; 10670fi 10671 10672case $enable_silent_rules in # ((( 10673 yes) AM_DEFAULT_VERBOSITY=0;; 10674 no) AM_DEFAULT_VERBOSITY=1;; 10675 *) AM_DEFAULT_VERBOSITY=0;; 10676esac 10677am_make=${MAKE-make} 10678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10679$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10680if ${am_cv_make_support_nested_variables+:} false; then : 10681 $as_echo_n "(cached) " >&6 10682else 10683 if $as_echo 'TRUE=$(BAR$(V)) 10684BAR0=false 10685BAR1=true 10686V=1 10687am__doit: 10688 @$(TRUE) 10689.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10690 am_cv_make_support_nested_variables=yes 10691else 10692 am_cv_make_support_nested_variables=no 10693fi 10694fi 10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10696$as_echo "$am_cv_make_support_nested_variables" >&6; } 10697if test $am_cv_make_support_nested_variables = yes; then 10698 AM_V='$(V)' 10699 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10700else 10701 AM_V=$AM_DEFAULT_VERBOSITY 10702 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10703fi 10704AM_BACKSLASH='\' 10705 10706 10707 10708# Initialize libtool 10709# Check whether --enable-static was given. 10710if test "${enable_static+set}" = set; then : 10711 enableval=$enable_static; p=${PACKAGE-default} 10712 case $enableval in 10713 yes) enable_static=yes ;; 10714 no) enable_static=no ;; 10715 *) 10716 enable_static=no 10717 # Look at the argument we got. We use all the common list separators. 10718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10719 for pkg in $enableval; do 10720 IFS="$lt_save_ifs" 10721 if test "X$pkg" = "X$p"; then 10722 enable_static=yes 10723 fi 10724 done 10725 IFS="$lt_save_ifs" 10726 ;; 10727 esac 10728else 10729 enable_static=no 10730fi 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740case `pwd` in 10741 *\ * | *\ *) 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10743$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10744esac 10745 10746 10747 10748macro_version='2.4' 10749macro_revision='1.3293' 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763ltmain="$ac_aux_dir/ltmain.sh" 10764 10765# Backslashify metacharacters that are still active within 10766# double-quoted strings. 10767sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10768 10769# Same as above, but do not quote variable references. 10770double_quote_subst='s/\(["`\\]\)/\\\1/g' 10771 10772# Sed substitution to delay expansion of an escaped shell variable in a 10773# double_quote_subst'ed string. 10774delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10775 10776# Sed substitution to delay expansion of an escaped single quote. 10777delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10778 10779# Sed substitution to avoid accidental globbing in evaled expressions 10780no_glob_subst='s/\*/\\\*/g' 10781 10782ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10783ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10784ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10785 10786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10787$as_echo_n "checking how to print strings... " >&6; } 10788# Test print first, because it will be a builtin if present. 10789if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10790 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10791 ECHO='print -r --' 10792elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10793 ECHO='printf %s\n' 10794else 10795 # Use this function as a fallback that always works. 10796 func_fallback_echo () 10797 { 10798 eval 'cat <<_LTECHO_EOF 10799$1 10800_LTECHO_EOF' 10801 } 10802 ECHO='func_fallback_echo' 10803fi 10804 10805# func_echo_all arg... 10806# Invoke $ECHO with all args, space-separated. 10807func_echo_all () 10808{ 10809 $ECHO "" 10810} 10811 10812case "$ECHO" in 10813 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10814$as_echo "printf" >&6; } ;; 10815 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10816$as_echo "print -r" >&6; } ;; 10817 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10818$as_echo "cat" >&6; } ;; 10819esac 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10835$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10836if ${ac_cv_path_SED+:} false; then : 10837 $as_echo_n "(cached) " >&6 10838else 10839 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10840 for ac_i in 1 2 3 4 5 6 7; do 10841 ac_script="$ac_script$as_nl$ac_script" 10842 done 10843 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10844 { ac_script=; unset ac_script;} 10845 if test -z "$SED"; then 10846 ac_path_SED_found=false 10847 # Loop through the user's path and test for each of PROGNAME-LIST 10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10849for as_dir in $PATH 10850do 10851 IFS=$as_save_IFS 10852 test -z "$as_dir" && as_dir=. 10853 for ac_prog in sed gsed; do 10854 for ac_exec_ext in '' $ac_executable_extensions; do 10855 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10856 as_fn_executable_p "$ac_path_SED" || continue 10857# Check for GNU ac_path_SED and select it if it is found. 10858 # Check for GNU $ac_path_SED 10859case `"$ac_path_SED" --version 2>&1` in 10860*GNU*) 10861 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10862*) 10863 ac_count=0 10864 $as_echo_n 0123456789 >"conftest.in" 10865 while : 10866 do 10867 cat "conftest.in" "conftest.in" >"conftest.tmp" 10868 mv "conftest.tmp" "conftest.in" 10869 cp "conftest.in" "conftest.nl" 10870 $as_echo '' >> "conftest.nl" 10871 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10873 as_fn_arith $ac_count + 1 && ac_count=$as_val 10874 if test $ac_count -gt ${ac_path_SED_max-0}; then 10875 # Best one so far, save it but keep looking for a better one 10876 ac_cv_path_SED="$ac_path_SED" 10877 ac_path_SED_max=$ac_count 10878 fi 10879 # 10*(2^10) chars as input seems more than enough 10880 test $ac_count -gt 10 && break 10881 done 10882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10883esac 10884 10885 $ac_path_SED_found && break 3 10886 done 10887 done 10888 done 10889IFS=$as_save_IFS 10890 if test -z "$ac_cv_path_SED"; then 10891 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10892 fi 10893else 10894 ac_cv_path_SED=$SED 10895fi 10896 10897fi 10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10899$as_echo "$ac_cv_path_SED" >&6; } 10900 SED="$ac_cv_path_SED" 10901 rm -f conftest.sed 10902 10903test -z "$SED" && SED=sed 10904Xsed="$SED -e 1s/^X//" 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10917$as_echo_n "checking for fgrep... " >&6; } 10918if ${ac_cv_path_FGREP+:} false; then : 10919 $as_echo_n "(cached) " >&6 10920else 10921 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10922 then ac_cv_path_FGREP="$GREP -F" 10923 else 10924 if test -z "$FGREP"; then 10925 ac_path_FGREP_found=false 10926 # Loop through the user's path and test for each of PROGNAME-LIST 10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10929do 10930 IFS=$as_save_IFS 10931 test -z "$as_dir" && as_dir=. 10932 for ac_prog in fgrep; do 10933 for ac_exec_ext in '' $ac_executable_extensions; do 10934 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10935 as_fn_executable_p "$ac_path_FGREP" || continue 10936# Check for GNU ac_path_FGREP and select it if it is found. 10937 # Check for GNU $ac_path_FGREP 10938case `"$ac_path_FGREP" --version 2>&1` in 10939*GNU*) 10940 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10941*) 10942 ac_count=0 10943 $as_echo_n 0123456789 >"conftest.in" 10944 while : 10945 do 10946 cat "conftest.in" "conftest.in" >"conftest.tmp" 10947 mv "conftest.tmp" "conftest.in" 10948 cp "conftest.in" "conftest.nl" 10949 $as_echo 'FGREP' >> "conftest.nl" 10950 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10952 as_fn_arith $ac_count + 1 && ac_count=$as_val 10953 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10954 # Best one so far, save it but keep looking for a better one 10955 ac_cv_path_FGREP="$ac_path_FGREP" 10956 ac_path_FGREP_max=$ac_count 10957 fi 10958 # 10*(2^10) chars as input seems more than enough 10959 test $ac_count -gt 10 && break 10960 done 10961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10962esac 10963 10964 $ac_path_FGREP_found && break 3 10965 done 10966 done 10967 done 10968IFS=$as_save_IFS 10969 if test -z "$ac_cv_path_FGREP"; then 10970 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10971 fi 10972else 10973 ac_cv_path_FGREP=$FGREP 10974fi 10975 10976 fi 10977fi 10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10979$as_echo "$ac_cv_path_FGREP" >&6; } 10980 FGREP="$ac_cv_path_FGREP" 10981 10982 10983test -z "$GREP" && GREP=grep 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003# Check whether --with-gnu-ld was given. 11004if test "${with_gnu_ld+set}" = set; then : 11005 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11006else 11007 with_gnu_ld=no 11008fi 11009 11010ac_prog=ld 11011if test "$GCC" = yes; then 11012 # Check if gcc -print-prog-name=ld gives a path. 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11014$as_echo_n "checking for ld used by $CC... " >&6; } 11015 case $host in 11016 *-*-mingw*) 11017 # gcc leaves a trailing carriage return which upsets mingw 11018 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11019 *) 11020 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11021 esac 11022 case $ac_prog in 11023 # Accept absolute paths. 11024 [\\/]* | ?:[\\/]*) 11025 re_direlt='/[^/][^/]*/\.\./' 11026 # Canonicalize the pathname of ld 11027 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11028 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11029 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11030 done 11031 test -z "$LD" && LD="$ac_prog" 11032 ;; 11033 "") 11034 # If it fails, then pretend we aren't using GCC. 11035 ac_prog=ld 11036 ;; 11037 *) 11038 # If it is relative, then search for the first ld in PATH. 11039 with_gnu_ld=unknown 11040 ;; 11041 esac 11042elif test "$with_gnu_ld" = yes; then 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11044$as_echo_n "checking for GNU ld... " >&6; } 11045else 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11047$as_echo_n "checking for non-GNU ld... " >&6; } 11048fi 11049if ${lt_cv_path_LD+:} false; then : 11050 $as_echo_n "(cached) " >&6 11051else 11052 if test -z "$LD"; then 11053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11054 for ac_dir in $PATH; do 11055 IFS="$lt_save_ifs" 11056 test -z "$ac_dir" && ac_dir=. 11057 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11058 lt_cv_path_LD="$ac_dir/$ac_prog" 11059 # Check to see if the program is GNU ld. I'd rather use --version, 11060 # but apparently some variants of GNU ld only accept -v. 11061 # Break only if it was the GNU/non-GNU ld that we prefer. 11062 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11063 *GNU* | *'with BFD'*) 11064 test "$with_gnu_ld" != no && break 11065 ;; 11066 *) 11067 test "$with_gnu_ld" != yes && break 11068 ;; 11069 esac 11070 fi 11071 done 11072 IFS="$lt_save_ifs" 11073else 11074 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11075fi 11076fi 11077 11078LD="$lt_cv_path_LD" 11079if test -n "$LD"; then 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11081$as_echo "$LD" >&6; } 11082else 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11084$as_echo "no" >&6; } 11085fi 11086test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11088$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11089if ${lt_cv_prog_gnu_ld+:} false; then : 11090 $as_echo_n "(cached) " >&6 11091else 11092 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11093case `$LD -v 2>&1 </dev/null` in 11094*GNU* | *'with BFD'*) 11095 lt_cv_prog_gnu_ld=yes 11096 ;; 11097*) 11098 lt_cv_prog_gnu_ld=no 11099 ;; 11100esac 11101fi 11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11103$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11104with_gnu_ld=$lt_cv_prog_gnu_ld 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11115$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11116if ${lt_cv_path_NM+:} false; then : 11117 $as_echo_n "(cached) " >&6 11118else 11119 if test -n "$NM"; then 11120 # Let the user override the test. 11121 lt_cv_path_NM="$NM" 11122else 11123 lt_nm_to_check="${ac_tool_prefix}nm" 11124 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11125 lt_nm_to_check="$lt_nm_to_check nm" 11126 fi 11127 for lt_tmp_nm in $lt_nm_to_check; do 11128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11129 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11130 IFS="$lt_save_ifs" 11131 test -z "$ac_dir" && ac_dir=. 11132 tmp_nm="$ac_dir/$lt_tmp_nm" 11133 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11134 # Check to see if the nm accepts a BSD-compat flag. 11135 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11136 # nm: unknown option "B" ignored 11137 # Tru64's nm complains that /dev/null is an invalid object file 11138 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11139 */dev/null* | *'Invalid file or object type'*) 11140 lt_cv_path_NM="$tmp_nm -B" 11141 break 11142 ;; 11143 *) 11144 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11145 */dev/null*) 11146 lt_cv_path_NM="$tmp_nm -p" 11147 break 11148 ;; 11149 *) 11150 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11151 continue # so that we can try to find one that supports BSD flags 11152 ;; 11153 esac 11154 ;; 11155 esac 11156 fi 11157 done 11158 IFS="$lt_save_ifs" 11159 done 11160 : ${lt_cv_path_NM=no} 11161fi 11162fi 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11164$as_echo "$lt_cv_path_NM" >&6; } 11165if test "$lt_cv_path_NM" != "no"; then 11166 NM="$lt_cv_path_NM" 11167else 11168 # Didn't find any BSD compatible name lister, look for dumpbin. 11169 if test -n "$DUMPBIN"; then : 11170 # Let the user override the test. 11171 else 11172 if test -n "$ac_tool_prefix"; then 11173 for ac_prog in dumpbin "link -dump" 11174 do 11175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11176set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11178$as_echo_n "checking for $ac_word... " >&6; } 11179if ${ac_cv_prog_DUMPBIN+:} false; then : 11180 $as_echo_n "(cached) " >&6 11181else 11182 if test -n "$DUMPBIN"; then 11183 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11184else 11185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11186for as_dir in $PATH 11187do 11188 IFS=$as_save_IFS 11189 test -z "$as_dir" && as_dir=. 11190 for ac_exec_ext in '' $ac_executable_extensions; do 11191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11192 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11194 break 2 11195 fi 11196done 11197 done 11198IFS=$as_save_IFS 11199 11200fi 11201fi 11202DUMPBIN=$ac_cv_prog_DUMPBIN 11203if test -n "$DUMPBIN"; then 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11205$as_echo "$DUMPBIN" >&6; } 11206else 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11208$as_echo "no" >&6; } 11209fi 11210 11211 11212 test -n "$DUMPBIN" && break 11213 done 11214fi 11215if test -z "$DUMPBIN"; then 11216 ac_ct_DUMPBIN=$DUMPBIN 11217 for ac_prog in dumpbin "link -dump" 11218do 11219 # Extract the first word of "$ac_prog", so it can be a program name with args. 11220set dummy $ac_prog; ac_word=$2 11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11222$as_echo_n "checking for $ac_word... " >&6; } 11223if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11224 $as_echo_n "(cached) " >&6 11225else 11226 if test -n "$ac_ct_DUMPBIN"; then 11227 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11228else 11229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11230for as_dir in $PATH 11231do 11232 IFS=$as_save_IFS 11233 test -z "$as_dir" && as_dir=. 11234 for ac_exec_ext in '' $ac_executable_extensions; do 11235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11236 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11238 break 2 11239 fi 11240done 11241 done 11242IFS=$as_save_IFS 11243 11244fi 11245fi 11246ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11247if test -n "$ac_ct_DUMPBIN"; then 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11249$as_echo "$ac_ct_DUMPBIN" >&6; } 11250else 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11252$as_echo "no" >&6; } 11253fi 11254 11255 11256 test -n "$ac_ct_DUMPBIN" && break 11257done 11258 11259 if test "x$ac_ct_DUMPBIN" = x; then 11260 DUMPBIN=":" 11261 else 11262 case $cross_compiling:$ac_tool_warned in 11263yes:) 11264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11266ac_tool_warned=yes ;; 11267esac 11268 DUMPBIN=$ac_ct_DUMPBIN 11269 fi 11270fi 11271 11272 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11273 *COFF*) 11274 DUMPBIN="$DUMPBIN -symbols" 11275 ;; 11276 *) 11277 DUMPBIN=: 11278 ;; 11279 esac 11280 fi 11281 11282 if test "$DUMPBIN" != ":"; then 11283 NM="$DUMPBIN" 11284 fi 11285fi 11286test -z "$NM" && NM=nm 11287 11288 11289 11290 11291 11292 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11294$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11295if ${lt_cv_nm_interface+:} false; then : 11296 $as_echo_n "(cached) " >&6 11297else 11298 lt_cv_nm_interface="BSD nm" 11299 echo "int some_variable = 0;" > conftest.$ac_ext 11300 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11301 (eval "$ac_compile" 2>conftest.err) 11302 cat conftest.err >&5 11303 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11304 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11305 cat conftest.err >&5 11306 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11307 cat conftest.out >&5 11308 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11309 lt_cv_nm_interface="MS dumpbin" 11310 fi 11311 rm -f conftest* 11312fi 11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11314$as_echo "$lt_cv_nm_interface" >&6; } 11315 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11317$as_echo_n "checking whether ln -s works... " >&6; } 11318LN_S=$as_ln_s 11319if test "$LN_S" = "ln -s"; then 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11321$as_echo "yes" >&6; } 11322else 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11324$as_echo "no, using $LN_S" >&6; } 11325fi 11326 11327# find the maximum length of command line arguments 11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11329$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11330if ${lt_cv_sys_max_cmd_len+:} false; then : 11331 $as_echo_n "(cached) " >&6 11332else 11333 i=0 11334 teststring="ABCD" 11335 11336 case $build_os in 11337 msdosdjgpp*) 11338 # On DJGPP, this test can blow up pretty badly due to problems in libc 11339 # (any single argument exceeding 2000 bytes causes a buffer overrun 11340 # during glob expansion). Even if it were fixed, the result of this 11341 # check would be larger than it should be. 11342 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11343 ;; 11344 11345 gnu*) 11346 # Under GNU Hurd, this test is not required because there is 11347 # no limit to the length of command line arguments. 11348 # Libtool will interpret -1 as no limit whatsoever 11349 lt_cv_sys_max_cmd_len=-1; 11350 ;; 11351 11352 cygwin* | mingw* | cegcc*) 11353 # On Win9x/ME, this test blows up -- it succeeds, but takes 11354 # about 5 minutes as the teststring grows exponentially. 11355 # Worse, since 9x/ME are not pre-emptively multitasking, 11356 # you end up with a "frozen" computer, even though with patience 11357 # the test eventually succeeds (with a max line length of 256k). 11358 # Instead, let's just punt: use the minimum linelength reported by 11359 # all of the supported platforms: 8192 (on NT/2K/XP). 11360 lt_cv_sys_max_cmd_len=8192; 11361 ;; 11362 11363 mint*) 11364 # On MiNT this can take a long time and run out of memory. 11365 lt_cv_sys_max_cmd_len=8192; 11366 ;; 11367 11368 amigaos*) 11369 # On AmigaOS with pdksh, this test takes hours, literally. 11370 # So we just punt and use a minimum line length of 8192. 11371 lt_cv_sys_max_cmd_len=8192; 11372 ;; 11373 11374 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11375 # This has been around since 386BSD, at least. Likely further. 11376 if test -x /sbin/sysctl; then 11377 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11378 elif test -x /usr/sbin/sysctl; then 11379 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11380 else 11381 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11382 fi 11383 # And add a safety zone 11384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11386 ;; 11387 11388 interix*) 11389 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11390 lt_cv_sys_max_cmd_len=196608 11391 ;; 11392 11393 osf*) 11394 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11395 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11396 # nice to cause kernel panics so lets avoid the loop below. 11397 # First set a reasonable default. 11398 lt_cv_sys_max_cmd_len=16384 11399 # 11400 if test -x /sbin/sysconfig; then 11401 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11402 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11403 esac 11404 fi 11405 ;; 11406 sco3.2v5*) 11407 lt_cv_sys_max_cmd_len=102400 11408 ;; 11409 sysv5* | sco5v6* | sysv4.2uw2*) 11410 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11411 if test -n "$kargmax"; then 11412 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11413 else 11414 lt_cv_sys_max_cmd_len=32768 11415 fi 11416 ;; 11417 *) 11418 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11419 if test -n "$lt_cv_sys_max_cmd_len"; then 11420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11422 else 11423 # Make teststring a little bigger before we do anything with it. 11424 # a 1K string should be a reasonable start. 11425 for i in 1 2 3 4 5 6 7 8 ; do 11426 teststring=$teststring$teststring 11427 done 11428 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11429 # If test is not a shell built-in, we'll probably end up computing a 11430 # maximum length that is only half of the actual maximum length, but 11431 # we can't tell. 11432 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 11433 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11434 test $i != 17 # 1/2 MB should be enough 11435 do 11436 i=`expr $i + 1` 11437 teststring=$teststring$teststring 11438 done 11439 # Only check the string length outside the loop. 11440 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11441 teststring= 11442 # Add a significant safety factor because C++ compilers can tack on 11443 # massive amounts of additional arguments before passing them to the 11444 # linker. It appears as though 1/2 is a usable value. 11445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11446 fi 11447 ;; 11448 esac 11449 11450fi 11451 11452if test -n $lt_cv_sys_max_cmd_len ; then 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11454$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11455else 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11457$as_echo "none" >&6; } 11458fi 11459max_cmd_len=$lt_cv_sys_max_cmd_len 11460 11461 11462 11463 11464 11465 11466: ${CP="cp -f"} 11467: ${MV="mv -f"} 11468: ${RM="rm -f"} 11469 11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11471$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11472# Try some XSI features 11473xsi_shell=no 11474( _lt_dummy="a/b/c" 11475 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11476 = c,a/b,b/c, \ 11477 && eval 'test $(( 1 + 1 )) -eq 2 \ 11478 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11479 && xsi_shell=yes 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11481$as_echo "$xsi_shell" >&6; } 11482 11483 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11485$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11486lt_shell_append=no 11487( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11488 >/dev/null 2>&1 \ 11489 && lt_shell_append=yes 11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11491$as_echo "$lt_shell_append" >&6; } 11492 11493 11494if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11495 lt_unset=unset 11496else 11497 lt_unset=false 11498fi 11499 11500 11501 11502 11503 11504# test EBCDIC or ASCII 11505case `echo X|tr X '\101'` in 11506 A) # ASCII based system 11507 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11508 lt_SP2NL='tr \040 \012' 11509 lt_NL2SP='tr \015\012 \040\040' 11510 ;; 11511 *) # EBCDIC based system 11512 lt_SP2NL='tr \100 \n' 11513 lt_NL2SP='tr \r\n \100\100' 11514 ;; 11515esac 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11526$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11527if ${lt_cv_to_host_file_cmd+:} false; then : 11528 $as_echo_n "(cached) " >&6 11529else 11530 case $host in 11531 *-*-mingw* ) 11532 case $build in 11533 *-*-mingw* ) # actually msys 11534 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11535 ;; 11536 *-*-cygwin* ) 11537 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11538 ;; 11539 * ) # otherwise, assume *nix 11540 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11541 ;; 11542 esac 11543 ;; 11544 *-*-cygwin* ) 11545 case $build in 11546 *-*-mingw* ) # actually msys 11547 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11548 ;; 11549 *-*-cygwin* ) 11550 lt_cv_to_host_file_cmd=func_convert_file_noop 11551 ;; 11552 * ) # otherwise, assume *nix 11553 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11554 ;; 11555 esac 11556 ;; 11557 * ) # unhandled hosts (and "normal" native builds) 11558 lt_cv_to_host_file_cmd=func_convert_file_noop 11559 ;; 11560esac 11561 11562fi 11563 11564to_host_file_cmd=$lt_cv_to_host_file_cmd 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11566$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11567 11568 11569 11570 11571 11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11573$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11574if ${lt_cv_to_tool_file_cmd+:} false; then : 11575 $as_echo_n "(cached) " >&6 11576else 11577 #assume ordinary cross tools, or native build. 11578lt_cv_to_tool_file_cmd=func_convert_file_noop 11579case $host in 11580 *-*-mingw* ) 11581 case $build in 11582 *-*-mingw* ) # actually msys 11583 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11584 ;; 11585 esac 11586 ;; 11587esac 11588 11589fi 11590 11591to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11593$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11594 11595 11596 11597 11598 11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11600$as_echo_n "checking for $LD option to reload object files... " >&6; } 11601if ${lt_cv_ld_reload_flag+:} false; then : 11602 $as_echo_n "(cached) " >&6 11603else 11604 lt_cv_ld_reload_flag='-r' 11605fi 11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11607$as_echo "$lt_cv_ld_reload_flag" >&6; } 11608reload_flag=$lt_cv_ld_reload_flag 11609case $reload_flag in 11610"" | " "*) ;; 11611*) reload_flag=" $reload_flag" ;; 11612esac 11613reload_cmds='$LD$reload_flag -o $output$reload_objs' 11614case $host_os in 11615 cygwin* | mingw* | pw32* | cegcc*) 11616 if test "$GCC" != yes; then 11617 reload_cmds=false 11618 fi 11619 ;; 11620 darwin*) 11621 if test "$GCC" = yes; then 11622 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11623 else 11624 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11625 fi 11626 ;; 11627esac 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637if test -n "$ac_tool_prefix"; then 11638 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11639set dummy ${ac_tool_prefix}objdump; ac_word=$2 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11641$as_echo_n "checking for $ac_word... " >&6; } 11642if ${ac_cv_prog_OBJDUMP+:} false; then : 11643 $as_echo_n "(cached) " >&6 11644else 11645 if test -n "$OBJDUMP"; then 11646 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11647else 11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11649for as_dir in $PATH 11650do 11651 IFS=$as_save_IFS 11652 test -z "$as_dir" && as_dir=. 11653 for ac_exec_ext in '' $ac_executable_extensions; do 11654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11655 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11657 break 2 11658 fi 11659done 11660 done 11661IFS=$as_save_IFS 11662 11663fi 11664fi 11665OBJDUMP=$ac_cv_prog_OBJDUMP 11666if test -n "$OBJDUMP"; then 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11668$as_echo "$OBJDUMP" >&6; } 11669else 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11671$as_echo "no" >&6; } 11672fi 11673 11674 11675fi 11676if test -z "$ac_cv_prog_OBJDUMP"; then 11677 ac_ct_OBJDUMP=$OBJDUMP 11678 # Extract the first word of "objdump", so it can be a program name with args. 11679set dummy objdump; ac_word=$2 11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11681$as_echo_n "checking for $ac_word... " >&6; } 11682if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11683 $as_echo_n "(cached) " >&6 11684else 11685 if test -n "$ac_ct_OBJDUMP"; then 11686 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11687else 11688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11689for as_dir in $PATH 11690do 11691 IFS=$as_save_IFS 11692 test -z "$as_dir" && as_dir=. 11693 for ac_exec_ext in '' $ac_executable_extensions; do 11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11695 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11697 break 2 11698 fi 11699done 11700 done 11701IFS=$as_save_IFS 11702 11703fi 11704fi 11705ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11706if test -n "$ac_ct_OBJDUMP"; then 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11708$as_echo "$ac_ct_OBJDUMP" >&6; } 11709else 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711$as_echo "no" >&6; } 11712fi 11713 11714 if test "x$ac_ct_OBJDUMP" = x; then 11715 OBJDUMP="false" 11716 else 11717 case $cross_compiling:$ac_tool_warned in 11718yes:) 11719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11721ac_tool_warned=yes ;; 11722esac 11723 OBJDUMP=$ac_ct_OBJDUMP 11724 fi 11725else 11726 OBJDUMP="$ac_cv_prog_OBJDUMP" 11727fi 11728 11729test -z "$OBJDUMP" && OBJDUMP=objdump 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11740$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11741if ${lt_cv_deplibs_check_method+:} false; then : 11742 $as_echo_n "(cached) " >&6 11743else 11744 lt_cv_file_magic_cmd='$MAGIC_CMD' 11745lt_cv_file_magic_test_file= 11746lt_cv_deplibs_check_method='unknown' 11747# Need to set the preceding variable on all platforms that support 11748# interlibrary dependencies. 11749# 'none' -- dependencies not supported. 11750# `unknown' -- same as none, but documents that we really don't know. 11751# 'pass_all' -- all dependencies passed with no checks. 11752# 'test_compile' -- check by making test program. 11753# 'file_magic [[regex]]' -- check by looking for files in library path 11754# which responds to the $file_magic_cmd with a given extended regex. 11755# If you have `file' or equivalent on your system and you're not sure 11756# whether `pass_all' will *always* work, you probably want this one. 11757 11758case $host_os in 11759aix[4-9]*) 11760 lt_cv_deplibs_check_method=pass_all 11761 ;; 11762 11763beos*) 11764 lt_cv_deplibs_check_method=pass_all 11765 ;; 11766 11767bsdi[45]*) 11768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11769 lt_cv_file_magic_cmd='/usr/bin/file -L' 11770 lt_cv_file_magic_test_file=/shlib/libc.so 11771 ;; 11772 11773cygwin*) 11774 # func_win32_libid is a shell function defined in ltmain.sh 11775 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11776 lt_cv_file_magic_cmd='func_win32_libid' 11777 ;; 11778 11779mingw* | pw32*) 11780 # Base MSYS/MinGW do not provide the 'file' command needed by 11781 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11782 # unless we find 'file', for example because we are cross-compiling. 11783 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11784 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11786 lt_cv_file_magic_cmd='func_win32_libid' 11787 else 11788 # Keep this pattern in sync with the one in func_win32_libid. 11789 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11790 lt_cv_file_magic_cmd='$OBJDUMP -f' 11791 fi 11792 ;; 11793 11794cegcc*) 11795 # use the weaker test based on 'objdump'. See mingw*. 11796 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11797 lt_cv_file_magic_cmd='$OBJDUMP -f' 11798 ;; 11799 11800darwin* | rhapsody*) 11801 lt_cv_deplibs_check_method=pass_all 11802 ;; 11803 11804freebsd* | dragonfly*) 11805 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11806 case $host_cpu in 11807 i*86 ) 11808 # Not sure whether the presence of OpenBSD here was a mistake. 11809 # Let's accept both of them until this is cleared up. 11810 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11811 lt_cv_file_magic_cmd=/usr/bin/file 11812 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11813 ;; 11814 esac 11815 else 11816 lt_cv_deplibs_check_method=pass_all 11817 fi 11818 ;; 11819 11820gnu*) 11821 lt_cv_deplibs_check_method=pass_all 11822 ;; 11823 11824haiku*) 11825 lt_cv_deplibs_check_method=pass_all 11826 ;; 11827 11828hpux10.20* | hpux11*) 11829 lt_cv_file_magic_cmd=/usr/bin/file 11830 case $host_cpu in 11831 ia64*) 11832 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11833 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11834 ;; 11835 hppa*64*) 11836 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]' 11837 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11838 ;; 11839 *) 11840 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11841 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11842 ;; 11843 esac 11844 ;; 11845 11846interix[3-9]*) 11847 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11849 ;; 11850 11851irix5* | irix6* | nonstopux*) 11852 case $LD in 11853 *-32|*"-32 ") libmagic=32-bit;; 11854 *-n32|*"-n32 ") libmagic=N32;; 11855 *-64|*"-64 ") libmagic=64-bit;; 11856 *) libmagic=never-match;; 11857 esac 11858 lt_cv_deplibs_check_method=pass_all 11859 ;; 11860 11861# This must be Linux ELF. 11862linux* | k*bsd*-gnu | kopensolaris*-gnu) 11863 lt_cv_deplibs_check_method=pass_all 11864 ;; 11865 11866netbsd*) 11867 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11869 else 11870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11871 fi 11872 ;; 11873 11874newos6*) 11875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11876 lt_cv_file_magic_cmd=/usr/bin/file 11877 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11878 ;; 11879 11880*nto* | *qnx*) 11881 lt_cv_deplibs_check_method=pass_all 11882 ;; 11883 11884openbsd*) 11885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11887 else 11888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11889 fi 11890 ;; 11891 11892osf3* | osf4* | osf5*) 11893 lt_cv_deplibs_check_method=pass_all 11894 ;; 11895 11896rdos*) 11897 lt_cv_deplibs_check_method=pass_all 11898 ;; 11899 11900solaris*) 11901 lt_cv_deplibs_check_method=pass_all 11902 ;; 11903 11904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11905 lt_cv_deplibs_check_method=pass_all 11906 ;; 11907 11908sysv4 | sysv4.3*) 11909 case $host_vendor in 11910 motorola) 11911 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]' 11912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11913 ;; 11914 ncr) 11915 lt_cv_deplibs_check_method=pass_all 11916 ;; 11917 sequent) 11918 lt_cv_file_magic_cmd='/bin/file' 11919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11920 ;; 11921 sni) 11922 lt_cv_file_magic_cmd='/bin/file' 11923 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11924 lt_cv_file_magic_test_file=/lib/libc.so 11925 ;; 11926 siemens) 11927 lt_cv_deplibs_check_method=pass_all 11928 ;; 11929 pc) 11930 lt_cv_deplibs_check_method=pass_all 11931 ;; 11932 esac 11933 ;; 11934 11935tpf*) 11936 lt_cv_deplibs_check_method=pass_all 11937 ;; 11938esac 11939 11940fi 11941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11942$as_echo "$lt_cv_deplibs_check_method" >&6; } 11943 11944file_magic_glob= 11945want_nocaseglob=no 11946if test "$build" = "$host"; then 11947 case $host_os in 11948 mingw* | pw32*) 11949 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11950 want_nocaseglob=yes 11951 else 11952 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11953 fi 11954 ;; 11955 esac 11956fi 11957 11958file_magic_cmd=$lt_cv_file_magic_cmd 11959deplibs_check_method=$lt_cv_deplibs_check_method 11960test -z "$deplibs_check_method" && deplibs_check_method=unknown 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983if test -n "$ac_tool_prefix"; then 11984 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11985set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11987$as_echo_n "checking for $ac_word... " >&6; } 11988if ${ac_cv_prog_DLLTOOL+:} false; then : 11989 $as_echo_n "(cached) " >&6 11990else 11991 if test -n "$DLLTOOL"; then 11992 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11993else 11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11995for as_dir in $PATH 11996do 11997 IFS=$as_save_IFS 11998 test -z "$as_dir" && as_dir=. 11999 for ac_exec_ext in '' $ac_executable_extensions; do 12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12001 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12003 break 2 12004 fi 12005done 12006 done 12007IFS=$as_save_IFS 12008 12009fi 12010fi 12011DLLTOOL=$ac_cv_prog_DLLTOOL 12012if test -n "$DLLTOOL"; then 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12014$as_echo "$DLLTOOL" >&6; } 12015else 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12017$as_echo "no" >&6; } 12018fi 12019 12020 12021fi 12022if test -z "$ac_cv_prog_DLLTOOL"; then 12023 ac_ct_DLLTOOL=$DLLTOOL 12024 # Extract the first word of "dlltool", so it can be a program name with args. 12025set dummy dlltool; ac_word=$2 12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12027$as_echo_n "checking for $ac_word... " >&6; } 12028if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12029 $as_echo_n "(cached) " >&6 12030else 12031 if test -n "$ac_ct_DLLTOOL"; then 12032 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12033else 12034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12035for as_dir in $PATH 12036do 12037 IFS=$as_save_IFS 12038 test -z "$as_dir" && as_dir=. 12039 for ac_exec_ext in '' $ac_executable_extensions; do 12040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12041 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12043 break 2 12044 fi 12045done 12046 done 12047IFS=$as_save_IFS 12048 12049fi 12050fi 12051ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12052if test -n "$ac_ct_DLLTOOL"; then 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12054$as_echo "$ac_ct_DLLTOOL" >&6; } 12055else 12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12057$as_echo "no" >&6; } 12058fi 12059 12060 if test "x$ac_ct_DLLTOOL" = x; then 12061 DLLTOOL="false" 12062 else 12063 case $cross_compiling:$ac_tool_warned in 12064yes:) 12065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12067ac_tool_warned=yes ;; 12068esac 12069 DLLTOOL=$ac_ct_DLLTOOL 12070 fi 12071else 12072 DLLTOOL="$ac_cv_prog_DLLTOOL" 12073fi 12074 12075test -z "$DLLTOOL" && DLLTOOL=dlltool 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12087$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12088if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12089 $as_echo_n "(cached) " >&6 12090else 12091 lt_cv_sharedlib_from_linklib_cmd='unknown' 12092 12093case $host_os in 12094cygwin* | mingw* | pw32* | cegcc*) 12095 # two different shell functions defined in ltmain.sh 12096 # decide which to use based on capabilities of $DLLTOOL 12097 case `$DLLTOOL --help 2>&1` in 12098 *--identify-strict*) 12099 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12100 ;; 12101 *) 12102 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12103 ;; 12104 esac 12105 ;; 12106*) 12107 # fallback: assume linklib IS sharedlib 12108 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12109 ;; 12110esac 12111 12112fi 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12114$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12115sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12116test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12117 12118 12119 12120 12121 12122 12123 12124if test -n "$ac_tool_prefix"; then 12125 for ac_prog in ar 12126 do 12127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12128set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12130$as_echo_n "checking for $ac_word... " >&6; } 12131if ${ac_cv_prog_AR+:} false; then : 12132 $as_echo_n "(cached) " >&6 12133else 12134 if test -n "$AR"; then 12135 ac_cv_prog_AR="$AR" # Let the user override the test. 12136else 12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12138for as_dir in $PATH 12139do 12140 IFS=$as_save_IFS 12141 test -z "$as_dir" && as_dir=. 12142 for ac_exec_ext in '' $ac_executable_extensions; do 12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12144 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12146 break 2 12147 fi 12148done 12149 done 12150IFS=$as_save_IFS 12151 12152fi 12153fi 12154AR=$ac_cv_prog_AR 12155if test -n "$AR"; then 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12157$as_echo "$AR" >&6; } 12158else 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160$as_echo "no" >&6; } 12161fi 12162 12163 12164 test -n "$AR" && break 12165 done 12166fi 12167if test -z "$AR"; then 12168 ac_ct_AR=$AR 12169 for ac_prog in ar 12170do 12171 # Extract the first word of "$ac_prog", so it can be a program name with args. 12172set dummy $ac_prog; ac_word=$2 12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12174$as_echo_n "checking for $ac_word... " >&6; } 12175if ${ac_cv_prog_ac_ct_AR+:} false; then : 12176 $as_echo_n "(cached) " >&6 12177else 12178 if test -n "$ac_ct_AR"; then 12179 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12180else 12181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12182for as_dir in $PATH 12183do 12184 IFS=$as_save_IFS 12185 test -z "$as_dir" && as_dir=. 12186 for ac_exec_ext in '' $ac_executable_extensions; do 12187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12188 ac_cv_prog_ac_ct_AR="$ac_prog" 12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12190 break 2 12191 fi 12192done 12193 done 12194IFS=$as_save_IFS 12195 12196fi 12197fi 12198ac_ct_AR=$ac_cv_prog_ac_ct_AR 12199if test -n "$ac_ct_AR"; then 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12201$as_echo "$ac_ct_AR" >&6; } 12202else 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12204$as_echo "no" >&6; } 12205fi 12206 12207 12208 test -n "$ac_ct_AR" && break 12209done 12210 12211 if test "x$ac_ct_AR" = x; then 12212 AR="false" 12213 else 12214 case $cross_compiling:$ac_tool_warned in 12215yes:) 12216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12218ac_tool_warned=yes ;; 12219esac 12220 AR=$ac_ct_AR 12221 fi 12222fi 12223 12224: ${AR=ar} 12225: ${AR_FLAGS=cru} 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12238$as_echo_n "checking for archiver @FILE support... " >&6; } 12239if ${lt_cv_ar_at_file+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 lt_cv_ar_at_file=no 12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12244/* end confdefs.h. */ 12245 12246int 12247main () 12248{ 12249 12250 ; 12251 return 0; 12252} 12253_ACEOF 12254if ac_fn_c_try_compile "$LINENO"; then : 12255 echo conftest.$ac_objext > conftest.lst 12256 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12258 (eval $lt_ar_try) 2>&5 12259 ac_status=$? 12260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12261 test $ac_status = 0; } 12262 if test "$ac_status" -eq 0; then 12263 # Ensure the archiver fails upon bogus file names. 12264 rm -f conftest.$ac_objext libconftest.a 12265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12266 (eval $lt_ar_try) 2>&5 12267 ac_status=$? 12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12269 test $ac_status = 0; } 12270 if test "$ac_status" -ne 0; then 12271 lt_cv_ar_at_file=@ 12272 fi 12273 fi 12274 rm -f conftest.* libconftest.a 12275 12276fi 12277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12278 12279fi 12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12281$as_echo "$lt_cv_ar_at_file" >&6; } 12282 12283if test "x$lt_cv_ar_at_file" = xno; then 12284 archiver_list_spec= 12285else 12286 archiver_list_spec=$lt_cv_ar_at_file 12287fi 12288 12289 12290 12291 12292 12293 12294 12295if test -n "$ac_tool_prefix"; then 12296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12297set dummy ${ac_tool_prefix}strip; ac_word=$2 12298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12299$as_echo_n "checking for $ac_word... " >&6; } 12300if ${ac_cv_prog_STRIP+:} false; then : 12301 $as_echo_n "(cached) " >&6 12302else 12303 if test -n "$STRIP"; then 12304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12305else 12306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12307for as_dir in $PATH 12308do 12309 IFS=$as_save_IFS 12310 test -z "$as_dir" && as_dir=. 12311 for ac_exec_ext in '' $ac_executable_extensions; do 12312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12313 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12315 break 2 12316 fi 12317done 12318 done 12319IFS=$as_save_IFS 12320 12321fi 12322fi 12323STRIP=$ac_cv_prog_STRIP 12324if test -n "$STRIP"; then 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12326$as_echo "$STRIP" >&6; } 12327else 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12329$as_echo "no" >&6; } 12330fi 12331 12332 12333fi 12334if test -z "$ac_cv_prog_STRIP"; then 12335 ac_ct_STRIP=$STRIP 12336 # Extract the first word of "strip", so it can be a program name with args. 12337set dummy strip; ac_word=$2 12338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12339$as_echo_n "checking for $ac_word... " >&6; } 12340if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12341 $as_echo_n "(cached) " >&6 12342else 12343 if test -n "$ac_ct_STRIP"; then 12344 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12345else 12346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12347for as_dir in $PATH 12348do 12349 IFS=$as_save_IFS 12350 test -z "$as_dir" && as_dir=. 12351 for ac_exec_ext in '' $ac_executable_extensions; do 12352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12353 ac_cv_prog_ac_ct_STRIP="strip" 12354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12355 break 2 12356 fi 12357done 12358 done 12359IFS=$as_save_IFS 12360 12361fi 12362fi 12363ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12364if test -n "$ac_ct_STRIP"; then 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12366$as_echo "$ac_ct_STRIP" >&6; } 12367else 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12369$as_echo "no" >&6; } 12370fi 12371 12372 if test "x$ac_ct_STRIP" = x; then 12373 STRIP=":" 12374 else 12375 case $cross_compiling:$ac_tool_warned in 12376yes:) 12377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12379ac_tool_warned=yes ;; 12380esac 12381 STRIP=$ac_ct_STRIP 12382 fi 12383else 12384 STRIP="$ac_cv_prog_STRIP" 12385fi 12386 12387test -z "$STRIP" && STRIP=: 12388 12389 12390 12391 12392 12393 12394if test -n "$ac_tool_prefix"; then 12395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12396set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12398$as_echo_n "checking for $ac_word... " >&6; } 12399if ${ac_cv_prog_RANLIB+:} false; then : 12400 $as_echo_n "(cached) " >&6 12401else 12402 if test -n "$RANLIB"; then 12403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12404else 12405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12406for as_dir in $PATH 12407do 12408 IFS=$as_save_IFS 12409 test -z "$as_dir" && as_dir=. 12410 for ac_exec_ext in '' $ac_executable_extensions; do 12411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12412 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12414 break 2 12415 fi 12416done 12417 done 12418IFS=$as_save_IFS 12419 12420fi 12421fi 12422RANLIB=$ac_cv_prog_RANLIB 12423if test -n "$RANLIB"; then 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12425$as_echo "$RANLIB" >&6; } 12426else 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12428$as_echo "no" >&6; } 12429fi 12430 12431 12432fi 12433if test -z "$ac_cv_prog_RANLIB"; then 12434 ac_ct_RANLIB=$RANLIB 12435 # Extract the first word of "ranlib", so it can be a program name with args. 12436set dummy ranlib; ac_word=$2 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12438$as_echo_n "checking for $ac_word... " >&6; } 12439if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 if test -n "$ac_ct_RANLIB"; then 12443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12444else 12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12446for as_dir in $PATH 12447do 12448 IFS=$as_save_IFS 12449 test -z "$as_dir" && as_dir=. 12450 for ac_exec_ext in '' $ac_executable_extensions; do 12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12452 ac_cv_prog_ac_ct_RANLIB="ranlib" 12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12454 break 2 12455 fi 12456done 12457 done 12458IFS=$as_save_IFS 12459 12460fi 12461fi 12462ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12463if test -n "$ac_ct_RANLIB"; then 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12465$as_echo "$ac_ct_RANLIB" >&6; } 12466else 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12468$as_echo "no" >&6; } 12469fi 12470 12471 if test "x$ac_ct_RANLIB" = x; then 12472 RANLIB=":" 12473 else 12474 case $cross_compiling:$ac_tool_warned in 12475yes:) 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12478ac_tool_warned=yes ;; 12479esac 12480 RANLIB=$ac_ct_RANLIB 12481 fi 12482else 12483 RANLIB="$ac_cv_prog_RANLIB" 12484fi 12485 12486test -z "$RANLIB" && RANLIB=: 12487 12488 12489 12490 12491 12492 12493# Determine commands to create old-style static archives. 12494old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12495old_postinstall_cmds='chmod 644 $oldlib' 12496old_postuninstall_cmds= 12497 12498if test -n "$RANLIB"; then 12499 case $host_os in 12500 openbsd*) 12501 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 12502 ;; 12503 *) 12504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 12505 ;; 12506 esac 12507 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 12508fi 12509 12510case $host_os in 12511 darwin*) 12512 lock_old_archive_extraction=yes ;; 12513 *) 12514 lock_old_archive_extraction=no ;; 12515esac 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555# If no C compiler was specified, use CC. 12556LTCC=${LTCC-"$CC"} 12557 12558# If no C compiler flags were specified, use CFLAGS. 12559LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12560 12561# Allow CC to be a program name with arguments. 12562compiler=$CC 12563 12564 12565# Check for command to grab the raw symbol name followed by C symbol from nm. 12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12567$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12568if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12569 $as_echo_n "(cached) " >&6 12570else 12571 12572# These are sane defaults that work on at least a few old systems. 12573# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12574 12575# Character class describing NM global symbol codes. 12576symcode='[BCDEGRST]' 12577 12578# Regexp to match symbols that can be accessed directly from C. 12579sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12580 12581# Define system-specific variables. 12582case $host_os in 12583aix*) 12584 symcode='[BCDT]' 12585 ;; 12586cygwin* | mingw* | pw32* | cegcc*) 12587 symcode='[ABCDGISTW]' 12588 ;; 12589hpux*) 12590 if test "$host_cpu" = ia64; then 12591 symcode='[ABCDEGRST]' 12592 fi 12593 ;; 12594irix* | nonstopux*) 12595 symcode='[BCDEGRST]' 12596 ;; 12597osf*) 12598 symcode='[BCDEGQRST]' 12599 ;; 12600solaris*) 12601 symcode='[BDRT]' 12602 ;; 12603sco3.2v5*) 12604 symcode='[DT]' 12605 ;; 12606sysv4.2uw2*) 12607 symcode='[DT]' 12608 ;; 12609sysv5* | sco5v6* | unixware* | OpenUNIX*) 12610 symcode='[ABDT]' 12611 ;; 12612sysv4) 12613 symcode='[DFNSTU]' 12614 ;; 12615esac 12616 12617# If we're using GNU nm, then use its standard symbol codes. 12618case `$NM -V 2>&1` in 12619*GNU* | *'with BFD'*) 12620 symcode='[ABCDGIRSTW]' ;; 12621esac 12622 12623# Transform an extracted symbol line into a proper C declaration. 12624# Some systems (esp. on ia64) link data and code symbols differently, 12625# so use this general approach. 12626lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12627 12628# Transform an extracted symbol line into symbol name and symbol address 12629lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12630lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 12631 12632# Handle CRLF in mingw tool chain 12633opt_cr= 12634case $build_os in 12635mingw*) 12636 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12637 ;; 12638esac 12639 12640# Try without a prefix underscore, then with it. 12641for ac_symprfx in "" "_"; do 12642 12643 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12644 symxfrm="\\1 $ac_symprfx\\2 \\2" 12645 12646 # Write the raw and C identifiers. 12647 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12648 # Fake it for dumpbin and say T for any non-static function 12649 # and D for any global variable. 12650 # Also find C++ and __fastcall symbols from MSVC++, 12651 # which start with @ or ?. 12652 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12653" {last_section=section; section=\$ 3};"\ 12654" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12655" \$ 0!~/External *\|/{next};"\ 12656" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12657" {if(hide[section]) next};"\ 12658" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12659" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12660" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12661" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12662" ' prfx=^$ac_symprfx" 12663 else 12664 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12665 fi 12666 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12667 12668 # Check to see that the pipe works correctly. 12669 pipe_works=no 12670 12671 rm -f conftest* 12672 cat > conftest.$ac_ext <<_LT_EOF 12673#ifdef __cplusplus 12674extern "C" { 12675#endif 12676char nm_test_var; 12677void nm_test_func(void); 12678void nm_test_func(void){} 12679#ifdef __cplusplus 12680} 12681#endif 12682int main(){nm_test_var='a';nm_test_func();return(0);} 12683_LT_EOF 12684 12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12686 (eval $ac_compile) 2>&5 12687 ac_status=$? 12688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12689 test $ac_status = 0; }; then 12690 # Now try to grab the symbols. 12691 nlist=conftest.nm 12692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12693 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12694 ac_status=$? 12695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12696 test $ac_status = 0; } && test -s "$nlist"; then 12697 # Try sorting and uniquifying the output. 12698 if sort "$nlist" | uniq > "$nlist"T; then 12699 mv -f "$nlist"T "$nlist" 12700 else 12701 rm -f "$nlist"T 12702 fi 12703 12704 # Make sure that we snagged all the symbols we need. 12705 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12706 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12707 cat <<_LT_EOF > conftest.$ac_ext 12708/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12709#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12710/* DATA imports from DLLs on WIN32 con't be const, because runtime 12711 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12712# define LT_DLSYM_CONST 12713#elif defined(__osf__) 12714/* This system does not cope well with relocations in const data. */ 12715# define LT_DLSYM_CONST 12716#else 12717# define LT_DLSYM_CONST const 12718#endif 12719 12720#ifdef __cplusplus 12721extern "C" { 12722#endif 12723 12724_LT_EOF 12725 # Now generate the symbol file. 12726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12727 12728 cat <<_LT_EOF >> conftest.$ac_ext 12729 12730/* The mapping between symbol names and symbols. */ 12731LT_DLSYM_CONST struct { 12732 const char *name; 12733 void *address; 12734} 12735lt__PROGRAM__LTX_preloaded_symbols[] = 12736{ 12737 { "@PROGRAM@", (void *) 0 }, 12738_LT_EOF 12739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12740 cat <<\_LT_EOF >> conftest.$ac_ext 12741 {0, (void *) 0} 12742}; 12743 12744/* This works around a problem in FreeBSD linker */ 12745#ifdef FREEBSD_WORKAROUND 12746static const void *lt_preloaded_setup() { 12747 return lt__PROGRAM__LTX_preloaded_symbols; 12748} 12749#endif 12750 12751#ifdef __cplusplus 12752} 12753#endif 12754_LT_EOF 12755 # Now try linking the two files. 12756 mv conftest.$ac_objext conftstm.$ac_objext 12757 lt_globsym_save_LIBS=$LIBS 12758 lt_globsym_save_CFLAGS=$CFLAGS 12759 LIBS="conftstm.$ac_objext" 12760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12762 (eval $ac_link) 2>&5 12763 ac_status=$? 12764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12765 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12766 pipe_works=yes 12767 fi 12768 LIBS=$lt_globsym_save_LIBS 12769 CFLAGS=$lt_globsym_save_CFLAGS 12770 else 12771 echo "cannot find nm_test_func in $nlist" >&5 12772 fi 12773 else 12774 echo "cannot find nm_test_var in $nlist" >&5 12775 fi 12776 else 12777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12778 fi 12779 else 12780 echo "$progname: failed program was:" >&5 12781 cat conftest.$ac_ext >&5 12782 fi 12783 rm -rf conftest* conftst* 12784 12785 # Do not use the global_symbol_pipe unless it works. 12786 if test "$pipe_works" = yes; then 12787 break 12788 else 12789 lt_cv_sys_global_symbol_pipe= 12790 fi 12791done 12792 12793fi 12794 12795if test -z "$lt_cv_sys_global_symbol_pipe"; then 12796 lt_cv_sys_global_symbol_to_cdecl= 12797fi 12798if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12800$as_echo "failed" >&6; } 12801else 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12803$as_echo "ok" >&6; } 12804fi 12805 12806# Response file support. 12807if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12808 nm_file_list_spec='@' 12809elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12810 nm_file_list_spec='@' 12811fi 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12840$as_echo_n "checking for sysroot... " >&6; } 12841 12842# Check whether --with-sysroot was given. 12843if test "${with_sysroot+set}" = set; then : 12844 withval=$with_sysroot; 12845else 12846 with_sysroot=no 12847fi 12848 12849 12850lt_sysroot= 12851case ${with_sysroot} in #( 12852 yes) 12853 if test "$GCC" = yes; then 12854 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12855 fi 12856 ;; #( 12857 /*) 12858 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12859 ;; #( 12860 no|'') 12861 ;; #( 12862 *) 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12864$as_echo "${with_sysroot}" >&6; } 12865 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12866 ;; 12867esac 12868 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12870$as_echo "${lt_sysroot:-no}" >&6; } 12871 12872 12873 12874 12875 12876# Check whether --enable-libtool-lock was given. 12877if test "${enable_libtool_lock+set}" = set; then : 12878 enableval=$enable_libtool_lock; 12879fi 12880 12881test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12882 12883# Some flags need to be propagated to the compiler or linker for good 12884# libtool support. 12885case $host in 12886ia64-*-hpux*) 12887 # Find out which ABI we are using. 12888 echo 'int i;' > conftest.$ac_ext 12889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12890 (eval $ac_compile) 2>&5 12891 ac_status=$? 12892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12893 test $ac_status = 0; }; then 12894 case `/usr/bin/file conftest.$ac_objext` in 12895 *ELF-32*) 12896 HPUX_IA64_MODE="32" 12897 ;; 12898 *ELF-64*) 12899 HPUX_IA64_MODE="64" 12900 ;; 12901 esac 12902 fi 12903 rm -rf conftest* 12904 ;; 12905*-*-irix6*) 12906 # Find out which ABI we are using. 12907 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12909 (eval $ac_compile) 2>&5 12910 ac_status=$? 12911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12912 test $ac_status = 0; }; then 12913 if test "$lt_cv_prog_gnu_ld" = yes; then 12914 case `/usr/bin/file conftest.$ac_objext` in 12915 *32-bit*) 12916 LD="${LD-ld} -melf32bsmip" 12917 ;; 12918 *N32*) 12919 LD="${LD-ld} -melf32bmipn32" 12920 ;; 12921 *64-bit*) 12922 LD="${LD-ld} -melf64bmip" 12923 ;; 12924 esac 12925 else 12926 case `/usr/bin/file conftest.$ac_objext` in 12927 *32-bit*) 12928 LD="${LD-ld} -32" 12929 ;; 12930 *N32*) 12931 LD="${LD-ld} -n32" 12932 ;; 12933 *64-bit*) 12934 LD="${LD-ld} -64" 12935 ;; 12936 esac 12937 fi 12938 fi 12939 rm -rf conftest* 12940 ;; 12941 12942x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12943s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12944 # Find out which ABI we are using. 12945 echo 'int i;' > conftest.$ac_ext 12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12947 (eval $ac_compile) 2>&5 12948 ac_status=$? 12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12950 test $ac_status = 0; }; then 12951 case `/usr/bin/file conftest.o` in 12952 *32-bit*) 12953 case $host in 12954 x86_64-*kfreebsd*-gnu) 12955 LD="${LD-ld} -m elf_i386_fbsd" 12956 ;; 12957 x86_64-*linux*) 12958 LD="${LD-ld} -m elf_i386" 12959 ;; 12960 ppc64-*linux*|powerpc64-*linux*) 12961 LD="${LD-ld} -m elf32ppclinux" 12962 ;; 12963 s390x-*linux*) 12964 LD="${LD-ld} -m elf_s390" 12965 ;; 12966 sparc64-*linux*) 12967 LD="${LD-ld} -m elf32_sparc" 12968 ;; 12969 esac 12970 ;; 12971 *64-bit*) 12972 case $host in 12973 x86_64-*kfreebsd*-gnu) 12974 LD="${LD-ld} -m elf_x86_64_fbsd" 12975 ;; 12976 x86_64-*linux*) 12977 LD="${LD-ld} -m elf_x86_64" 12978 ;; 12979 ppc*-*linux*|powerpc*-*linux*) 12980 LD="${LD-ld} -m elf64ppc" 12981 ;; 12982 s390*-*linux*|s390*-*tpf*) 12983 LD="${LD-ld} -m elf64_s390" 12984 ;; 12985 sparc*-*linux*) 12986 LD="${LD-ld} -m elf64_sparc" 12987 ;; 12988 esac 12989 ;; 12990 esac 12991 fi 12992 rm -rf conftest* 12993 ;; 12994 12995*-*-sco3.2v5*) 12996 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12997 SAVE_CFLAGS="$CFLAGS" 12998 CFLAGS="$CFLAGS -belf" 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13000$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13001if ${lt_cv_cc_needs_belf+:} false; then : 13002 $as_echo_n "(cached) " >&6 13003else 13004 ac_ext=c 13005ac_cpp='$CPP $CPPFLAGS' 13006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13008ac_compiler_gnu=$ac_cv_c_compiler_gnu 13009 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012 13013int 13014main () 13015{ 13016 13017 ; 13018 return 0; 13019} 13020_ACEOF 13021if ac_fn_c_try_link "$LINENO"; then : 13022 lt_cv_cc_needs_belf=yes 13023else 13024 lt_cv_cc_needs_belf=no 13025fi 13026rm -f core conftest.err conftest.$ac_objext \ 13027 conftest$ac_exeext conftest.$ac_ext 13028 ac_ext=c 13029ac_cpp='$CPP $CPPFLAGS' 13030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13032ac_compiler_gnu=$ac_cv_c_compiler_gnu 13033 13034fi 13035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13036$as_echo "$lt_cv_cc_needs_belf" >&6; } 13037 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13038 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13039 CFLAGS="$SAVE_CFLAGS" 13040 fi 13041 ;; 13042sparc*-*solaris*) 13043 # Find out which ABI we are using. 13044 echo 'int i;' > conftest.$ac_ext 13045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13046 (eval $ac_compile) 2>&5 13047 ac_status=$? 13048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13049 test $ac_status = 0; }; then 13050 case `/usr/bin/file conftest.o` in 13051 *64-bit*) 13052 case $lt_cv_prog_gnu_ld in 13053 yes*) LD="${LD-ld} -m elf64_sparc" ;; 13054 *) 13055 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13056 LD="${LD-ld} -64" 13057 fi 13058 ;; 13059 esac 13060 ;; 13061 esac 13062 fi 13063 rm -rf conftest* 13064 ;; 13065esac 13066 13067need_locks="$enable_libtool_lock" 13068 13069if test -n "$ac_tool_prefix"; then 13070 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13071set dummy ${ac_tool_prefix}mt; ac_word=$2 13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13073$as_echo_n "checking for $ac_word... " >&6; } 13074if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13075 $as_echo_n "(cached) " >&6 13076else 13077 if test -n "$MANIFEST_TOOL"; then 13078 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13079else 13080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13081for as_dir in $PATH 13082do 13083 IFS=$as_save_IFS 13084 test -z "$as_dir" && as_dir=. 13085 for ac_exec_ext in '' $ac_executable_extensions; do 13086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13087 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13089 break 2 13090 fi 13091done 13092 done 13093IFS=$as_save_IFS 13094 13095fi 13096fi 13097MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13098if test -n "$MANIFEST_TOOL"; then 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13100$as_echo "$MANIFEST_TOOL" >&6; } 13101else 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13103$as_echo "no" >&6; } 13104fi 13105 13106 13107fi 13108if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13109 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13110 # Extract the first word of "mt", so it can be a program name with args. 13111set dummy mt; ac_word=$2 13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13113$as_echo_n "checking for $ac_word... " >&6; } 13114if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13115 $as_echo_n "(cached) " >&6 13116else 13117 if test -n "$ac_ct_MANIFEST_TOOL"; then 13118 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13119else 13120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13121for as_dir in $PATH 13122do 13123 IFS=$as_save_IFS 13124 test -z "$as_dir" && as_dir=. 13125 for ac_exec_ext in '' $ac_executable_extensions; do 13126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13127 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13129 break 2 13130 fi 13131done 13132 done 13133IFS=$as_save_IFS 13134 13135fi 13136fi 13137ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13138if test -n "$ac_ct_MANIFEST_TOOL"; then 13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13140$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13141else 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13143$as_echo "no" >&6; } 13144fi 13145 13146 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13147 MANIFEST_TOOL=":" 13148 else 13149 case $cross_compiling:$ac_tool_warned in 13150yes:) 13151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13153ac_tool_warned=yes ;; 13154esac 13155 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13156 fi 13157else 13158 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13159fi 13160 13161test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13163$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13164if ${lt_cv_path_mainfest_tool+:} false; then : 13165 $as_echo_n "(cached) " >&6 13166else 13167 lt_cv_path_mainfest_tool=no 13168 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13169 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13170 cat conftest.err >&5 13171 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13172 lt_cv_path_mainfest_tool=yes 13173 fi 13174 rm -f conftest* 13175fi 13176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13177$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13178if test "x$lt_cv_path_mainfest_tool" != xyes; then 13179 MANIFEST_TOOL=: 13180fi 13181 13182 13183 13184 13185 13186 13187 case $host_os in 13188 rhapsody* | darwin*) 13189 if test -n "$ac_tool_prefix"; then 13190 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13191set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13193$as_echo_n "checking for $ac_word... " >&6; } 13194if ${ac_cv_prog_DSYMUTIL+:} false; then : 13195 $as_echo_n "(cached) " >&6 13196else 13197 if test -n "$DSYMUTIL"; then 13198 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13199else 13200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13201for as_dir in $PATH 13202do 13203 IFS=$as_save_IFS 13204 test -z "$as_dir" && as_dir=. 13205 for ac_exec_ext in '' $ac_executable_extensions; do 13206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13207 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13209 break 2 13210 fi 13211done 13212 done 13213IFS=$as_save_IFS 13214 13215fi 13216fi 13217DSYMUTIL=$ac_cv_prog_DSYMUTIL 13218if test -n "$DSYMUTIL"; then 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13220$as_echo "$DSYMUTIL" >&6; } 13221else 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13223$as_echo "no" >&6; } 13224fi 13225 13226 13227fi 13228if test -z "$ac_cv_prog_DSYMUTIL"; then 13229 ac_ct_DSYMUTIL=$DSYMUTIL 13230 # Extract the first word of "dsymutil", so it can be a program name with args. 13231set dummy dsymutil; ac_word=$2 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13233$as_echo_n "checking for $ac_word... " >&6; } 13234if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13235 $as_echo_n "(cached) " >&6 13236else 13237 if test -n "$ac_ct_DSYMUTIL"; then 13238 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13239else 13240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13241for as_dir in $PATH 13242do 13243 IFS=$as_save_IFS 13244 test -z "$as_dir" && as_dir=. 13245 for ac_exec_ext in '' $ac_executable_extensions; do 13246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13247 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13249 break 2 13250 fi 13251done 13252 done 13253IFS=$as_save_IFS 13254 13255fi 13256fi 13257ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13258if test -n "$ac_ct_DSYMUTIL"; then 13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13260$as_echo "$ac_ct_DSYMUTIL" >&6; } 13261else 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13263$as_echo "no" >&6; } 13264fi 13265 13266 if test "x$ac_ct_DSYMUTIL" = x; then 13267 DSYMUTIL=":" 13268 else 13269 case $cross_compiling:$ac_tool_warned in 13270yes:) 13271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13273ac_tool_warned=yes ;; 13274esac 13275 DSYMUTIL=$ac_ct_DSYMUTIL 13276 fi 13277else 13278 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13279fi 13280 13281 if test -n "$ac_tool_prefix"; then 13282 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13283set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13285$as_echo_n "checking for $ac_word... " >&6; } 13286if ${ac_cv_prog_NMEDIT+:} false; then : 13287 $as_echo_n "(cached) " >&6 13288else 13289 if test -n "$NMEDIT"; then 13290 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13291else 13292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13293for as_dir in $PATH 13294do 13295 IFS=$as_save_IFS 13296 test -z "$as_dir" && as_dir=. 13297 for ac_exec_ext in '' $ac_executable_extensions; do 13298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13299 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13301 break 2 13302 fi 13303done 13304 done 13305IFS=$as_save_IFS 13306 13307fi 13308fi 13309NMEDIT=$ac_cv_prog_NMEDIT 13310if test -n "$NMEDIT"; then 13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13312$as_echo "$NMEDIT" >&6; } 13313else 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13315$as_echo "no" >&6; } 13316fi 13317 13318 13319fi 13320if test -z "$ac_cv_prog_NMEDIT"; then 13321 ac_ct_NMEDIT=$NMEDIT 13322 # Extract the first word of "nmedit", so it can be a program name with args. 13323set dummy nmedit; ac_word=$2 13324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13325$as_echo_n "checking for $ac_word... " >&6; } 13326if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13327 $as_echo_n "(cached) " >&6 13328else 13329 if test -n "$ac_ct_NMEDIT"; then 13330 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13331else 13332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13333for as_dir in $PATH 13334do 13335 IFS=$as_save_IFS 13336 test -z "$as_dir" && as_dir=. 13337 for ac_exec_ext in '' $ac_executable_extensions; do 13338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13339 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13341 break 2 13342 fi 13343done 13344 done 13345IFS=$as_save_IFS 13346 13347fi 13348fi 13349ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13350if test -n "$ac_ct_NMEDIT"; then 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13352$as_echo "$ac_ct_NMEDIT" >&6; } 13353else 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13355$as_echo "no" >&6; } 13356fi 13357 13358 if test "x$ac_ct_NMEDIT" = x; then 13359 NMEDIT=":" 13360 else 13361 case $cross_compiling:$ac_tool_warned in 13362yes:) 13363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13365ac_tool_warned=yes ;; 13366esac 13367 NMEDIT=$ac_ct_NMEDIT 13368 fi 13369else 13370 NMEDIT="$ac_cv_prog_NMEDIT" 13371fi 13372 13373 if test -n "$ac_tool_prefix"; then 13374 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13375set dummy ${ac_tool_prefix}lipo; ac_word=$2 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13377$as_echo_n "checking for $ac_word... " >&6; } 13378if ${ac_cv_prog_LIPO+:} false; then : 13379 $as_echo_n "(cached) " >&6 13380else 13381 if test -n "$LIPO"; then 13382 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13383else 13384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13385for as_dir in $PATH 13386do 13387 IFS=$as_save_IFS 13388 test -z "$as_dir" && as_dir=. 13389 for ac_exec_ext in '' $ac_executable_extensions; do 13390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13391 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13393 break 2 13394 fi 13395done 13396 done 13397IFS=$as_save_IFS 13398 13399fi 13400fi 13401LIPO=$ac_cv_prog_LIPO 13402if test -n "$LIPO"; then 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13404$as_echo "$LIPO" >&6; } 13405else 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13407$as_echo "no" >&6; } 13408fi 13409 13410 13411fi 13412if test -z "$ac_cv_prog_LIPO"; then 13413 ac_ct_LIPO=$LIPO 13414 # Extract the first word of "lipo", so it can be a program name with args. 13415set dummy lipo; ac_word=$2 13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13417$as_echo_n "checking for $ac_word... " >&6; } 13418if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13419 $as_echo_n "(cached) " >&6 13420else 13421 if test -n "$ac_ct_LIPO"; then 13422 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13423else 13424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13425for as_dir in $PATH 13426do 13427 IFS=$as_save_IFS 13428 test -z "$as_dir" && as_dir=. 13429 for ac_exec_ext in '' $ac_executable_extensions; do 13430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13431 ac_cv_prog_ac_ct_LIPO="lipo" 13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13433 break 2 13434 fi 13435done 13436 done 13437IFS=$as_save_IFS 13438 13439fi 13440fi 13441ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13442if test -n "$ac_ct_LIPO"; then 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13444$as_echo "$ac_ct_LIPO" >&6; } 13445else 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13447$as_echo "no" >&6; } 13448fi 13449 13450 if test "x$ac_ct_LIPO" = x; then 13451 LIPO=":" 13452 else 13453 case $cross_compiling:$ac_tool_warned in 13454yes:) 13455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13457ac_tool_warned=yes ;; 13458esac 13459 LIPO=$ac_ct_LIPO 13460 fi 13461else 13462 LIPO="$ac_cv_prog_LIPO" 13463fi 13464 13465 if test -n "$ac_tool_prefix"; then 13466 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13467set dummy ${ac_tool_prefix}otool; ac_word=$2 13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13469$as_echo_n "checking for $ac_word... " >&6; } 13470if ${ac_cv_prog_OTOOL+:} false; then : 13471 $as_echo_n "(cached) " >&6 13472else 13473 if test -n "$OTOOL"; then 13474 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13475else 13476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13477for as_dir in $PATH 13478do 13479 IFS=$as_save_IFS 13480 test -z "$as_dir" && as_dir=. 13481 for ac_exec_ext in '' $ac_executable_extensions; do 13482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13483 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13485 break 2 13486 fi 13487done 13488 done 13489IFS=$as_save_IFS 13490 13491fi 13492fi 13493OTOOL=$ac_cv_prog_OTOOL 13494if test -n "$OTOOL"; then 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13496$as_echo "$OTOOL" >&6; } 13497else 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13499$as_echo "no" >&6; } 13500fi 13501 13502 13503fi 13504if test -z "$ac_cv_prog_OTOOL"; then 13505 ac_ct_OTOOL=$OTOOL 13506 # Extract the first word of "otool", so it can be a program name with args. 13507set dummy otool; ac_word=$2 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13509$as_echo_n "checking for $ac_word... " >&6; } 13510if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 if test -n "$ac_ct_OTOOL"; then 13514 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13515else 13516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13517for as_dir in $PATH 13518do 13519 IFS=$as_save_IFS 13520 test -z "$as_dir" && as_dir=. 13521 for ac_exec_ext in '' $ac_executable_extensions; do 13522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13523 ac_cv_prog_ac_ct_OTOOL="otool" 13524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13525 break 2 13526 fi 13527done 13528 done 13529IFS=$as_save_IFS 13530 13531fi 13532fi 13533ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13534if test -n "$ac_ct_OTOOL"; then 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13536$as_echo "$ac_ct_OTOOL" >&6; } 13537else 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13539$as_echo "no" >&6; } 13540fi 13541 13542 if test "x$ac_ct_OTOOL" = x; then 13543 OTOOL=":" 13544 else 13545 case $cross_compiling:$ac_tool_warned in 13546yes:) 13547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13549ac_tool_warned=yes ;; 13550esac 13551 OTOOL=$ac_ct_OTOOL 13552 fi 13553else 13554 OTOOL="$ac_cv_prog_OTOOL" 13555fi 13556 13557 if test -n "$ac_tool_prefix"; then 13558 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13559set dummy ${ac_tool_prefix}otool64; ac_word=$2 13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13561$as_echo_n "checking for $ac_word... " >&6; } 13562if ${ac_cv_prog_OTOOL64+:} false; then : 13563 $as_echo_n "(cached) " >&6 13564else 13565 if test -n "$OTOOL64"; then 13566 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13567else 13568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13569for as_dir in $PATH 13570do 13571 IFS=$as_save_IFS 13572 test -z "$as_dir" && as_dir=. 13573 for ac_exec_ext in '' $ac_executable_extensions; do 13574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13575 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13577 break 2 13578 fi 13579done 13580 done 13581IFS=$as_save_IFS 13582 13583fi 13584fi 13585OTOOL64=$ac_cv_prog_OTOOL64 13586if test -n "$OTOOL64"; then 13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13588$as_echo "$OTOOL64" >&6; } 13589else 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13591$as_echo "no" >&6; } 13592fi 13593 13594 13595fi 13596if test -z "$ac_cv_prog_OTOOL64"; then 13597 ac_ct_OTOOL64=$OTOOL64 13598 # Extract the first word of "otool64", so it can be a program name with args. 13599set dummy otool64; ac_word=$2 13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13601$as_echo_n "checking for $ac_word... " >&6; } 13602if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13603 $as_echo_n "(cached) " >&6 13604else 13605 if test -n "$ac_ct_OTOOL64"; then 13606 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13607else 13608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13609for as_dir in $PATH 13610do 13611 IFS=$as_save_IFS 13612 test -z "$as_dir" && as_dir=. 13613 for ac_exec_ext in '' $ac_executable_extensions; do 13614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13615 ac_cv_prog_ac_ct_OTOOL64="otool64" 13616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13617 break 2 13618 fi 13619done 13620 done 13621IFS=$as_save_IFS 13622 13623fi 13624fi 13625ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13626if test -n "$ac_ct_OTOOL64"; then 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13628$as_echo "$ac_ct_OTOOL64" >&6; } 13629else 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13631$as_echo "no" >&6; } 13632fi 13633 13634 if test "x$ac_ct_OTOOL64" = x; then 13635 OTOOL64=":" 13636 else 13637 case $cross_compiling:$ac_tool_warned in 13638yes:) 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13641ac_tool_warned=yes ;; 13642esac 13643 OTOOL64=$ac_ct_OTOOL64 13644 fi 13645else 13646 OTOOL64="$ac_cv_prog_OTOOL64" 13647fi 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13676$as_echo_n "checking for -single_module linker flag... " >&6; } 13677if ${lt_cv_apple_cc_single_mod+:} false; then : 13678 $as_echo_n "(cached) " >&6 13679else 13680 lt_cv_apple_cc_single_mod=no 13681 if test -z "${LT_MULTI_MODULE}"; then 13682 # By default we will add the -single_module flag. You can override 13683 # by either setting the environment variable LT_MULTI_MODULE 13684 # non-empty at configure time, or by adding -multi_module to the 13685 # link flags. 13686 rm -rf libconftest.dylib* 13687 echo "int foo(void){return 1;}" > conftest.c 13688 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13689-dynamiclib -Wl,-single_module conftest.c" >&5 13690 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13691 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13692 _lt_result=$? 13693 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 13694 lt_cv_apple_cc_single_mod=yes 13695 else 13696 cat conftest.err >&5 13697 fi 13698 rm -rf libconftest.dylib* 13699 rm -f conftest.* 13700 fi 13701fi 13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13703$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13705$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13706if ${lt_cv_ld_exported_symbols_list+:} false; then : 13707 $as_echo_n "(cached) " >&6 13708else 13709 lt_cv_ld_exported_symbols_list=no 13710 save_LDFLAGS=$LDFLAGS 13711 echo "_main" > conftest.sym 13712 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13714/* end confdefs.h. */ 13715 13716int 13717main () 13718{ 13719 13720 ; 13721 return 0; 13722} 13723_ACEOF 13724if ac_fn_c_try_link "$LINENO"; then : 13725 lt_cv_ld_exported_symbols_list=yes 13726else 13727 lt_cv_ld_exported_symbols_list=no 13728fi 13729rm -f core conftest.err conftest.$ac_objext \ 13730 conftest$ac_exeext conftest.$ac_ext 13731 LDFLAGS="$save_LDFLAGS" 13732 13733fi 13734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13735$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13737$as_echo_n "checking for -force_load linker flag... " >&6; } 13738if ${lt_cv_ld_force_load+:} false; then : 13739 $as_echo_n "(cached) " >&6 13740else 13741 lt_cv_ld_force_load=no 13742 cat > conftest.c << _LT_EOF 13743int forced_loaded() { return 2;} 13744_LT_EOF 13745 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13746 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13747 echo "$AR cru libconftest.a conftest.o" >&5 13748 $AR cru libconftest.a conftest.o 2>&5 13749 echo "$RANLIB libconftest.a" >&5 13750 $RANLIB libconftest.a 2>&5 13751 cat > conftest.c << _LT_EOF 13752int main() { return 0;} 13753_LT_EOF 13754 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13755 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13756 _lt_result=$? 13757 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 13758 lt_cv_ld_force_load=yes 13759 else 13760 cat conftest.err >&5 13761 fi 13762 rm -f conftest.err libconftest.a conftest conftest.c 13763 rm -rf conftest.dSYM 13764 13765fi 13766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13767$as_echo "$lt_cv_ld_force_load" >&6; } 13768 case $host_os in 13769 rhapsody* | darwin1.[012]) 13770 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13771 darwin1.*) 13772 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13773 darwin*) # darwin 5.x on 13774 # if running on 10.5 or later, the deployment target defaults 13775 # to the OS version, if on x86, and 10.4, the deployment 13776 # target defaults to 10.4. Don't you love it? 13777 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13778 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13779 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13780 10.[012]*) 13781 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13782 10.*) 13783 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13784 esac 13785 ;; 13786 esac 13787 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13788 _lt_dar_single_mod='$single_module' 13789 fi 13790 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13791 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13792 else 13793 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13794 fi 13795 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13796 _lt_dsymutil='~$DSYMUTIL $lib || :' 13797 else 13798 _lt_dsymutil= 13799 fi 13800 ;; 13801 esac 13802 13803for ac_header in dlfcn.h 13804do : 13805 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13806" 13807if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13808 cat >>confdefs.h <<_ACEOF 13809#define HAVE_DLFCN_H 1 13810_ACEOF 13811 13812fi 13813 13814done 13815 13816 13817 13818 13819 13820# Set options 13821 13822 13823 13824 enable_dlopen=no 13825 13826 13827 enable_win32_dll=no 13828 13829 13830 # Check whether --enable-shared was given. 13831if test "${enable_shared+set}" = set; then : 13832 enableval=$enable_shared; p=${PACKAGE-default} 13833 case $enableval in 13834 yes) enable_shared=yes ;; 13835 no) enable_shared=no ;; 13836 *) 13837 enable_shared=no 13838 # Look at the argument we got. We use all the common list separators. 13839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13840 for pkg in $enableval; do 13841 IFS="$lt_save_ifs" 13842 if test "X$pkg" = "X$p"; then 13843 enable_shared=yes 13844 fi 13845 done 13846 IFS="$lt_save_ifs" 13847 ;; 13848 esac 13849else 13850 enable_shared=yes 13851fi 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863# Check whether --with-pic was given. 13864if test "${with_pic+set}" = set; then : 13865 withval=$with_pic; pic_mode="$withval" 13866else 13867 pic_mode=default 13868fi 13869 13870 13871test -z "$pic_mode" && pic_mode=default 13872 13873 13874 13875 13876 13877 13878 13879 # Check whether --enable-fast-install was given. 13880if test "${enable_fast_install+set}" = set; then : 13881 enableval=$enable_fast_install; p=${PACKAGE-default} 13882 case $enableval in 13883 yes) enable_fast_install=yes ;; 13884 no) enable_fast_install=no ;; 13885 *) 13886 enable_fast_install=no 13887 # Look at the argument we got. We use all the common list separators. 13888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13889 for pkg in $enableval; do 13890 IFS="$lt_save_ifs" 13891 if test "X$pkg" = "X$p"; then 13892 enable_fast_install=yes 13893 fi 13894 done 13895 IFS="$lt_save_ifs" 13896 ;; 13897 esac 13898else 13899 enable_fast_install=yes 13900fi 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912# This can be used to rebuild libtool when needed 13913LIBTOOL_DEPS="$ltmain" 13914 13915# Always use our own libtool. 13916LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943test -z "$LN_S" && LN_S="ln -s" 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958if test -n "${ZSH_VERSION+set}" ; then 13959 setopt NO_GLOB_SUBST 13960fi 13961 13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13963$as_echo_n "checking for objdir... " >&6; } 13964if ${lt_cv_objdir+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 rm -f .libs 2>/dev/null 13968mkdir .libs 2>/dev/null 13969if test -d .libs; then 13970 lt_cv_objdir=.libs 13971else 13972 # MS-DOS does not allow filenames that begin with a dot. 13973 lt_cv_objdir=_libs 13974fi 13975rmdir .libs 2>/dev/null 13976fi 13977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13978$as_echo "$lt_cv_objdir" >&6; } 13979objdir=$lt_cv_objdir 13980 13981 13982 13983 13984 13985cat >>confdefs.h <<_ACEOF 13986#define LT_OBJDIR "$lt_cv_objdir/" 13987_ACEOF 13988 13989 13990 13991 13992case $host_os in 13993aix3*) 13994 # AIX sometimes has problems with the GCC collect2 program. For some 13995 # reason, if we set the COLLECT_NAMES environment variable, the problems 13996 # vanish in a puff of smoke. 13997 if test "X${COLLECT_NAMES+set}" != Xset; then 13998 COLLECT_NAMES= 13999 export COLLECT_NAMES 14000 fi 14001 ;; 14002esac 14003 14004# Global variables: 14005ofile=libtool 14006can_build_shared=yes 14007 14008# All known linkers require a `.a' archive for static linking (except MSVC, 14009# which needs '.lib'). 14010libext=a 14011 14012with_gnu_ld="$lt_cv_prog_gnu_ld" 14013 14014old_CC="$CC" 14015old_CFLAGS="$CFLAGS" 14016 14017# Set sane defaults for various variables 14018test -z "$CC" && CC=cc 14019test -z "$LTCC" && LTCC=$CC 14020test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14021test -z "$LD" && LD=ld 14022test -z "$ac_objext" && ac_objext=o 14023 14024for cc_temp in $compiler""; do 14025 case $cc_temp in 14026 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14027 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14028 \-*) ;; 14029 *) break;; 14030 esac 14031done 14032cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14033 14034 14035# Only perform the check for file, if the check method requires it 14036test -z "$MAGIC_CMD" && MAGIC_CMD=file 14037case $deplibs_check_method in 14038file_magic*) 14039 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14041$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14042if ${lt_cv_path_MAGIC_CMD+:} false; then : 14043 $as_echo_n "(cached) " >&6 14044else 14045 case $MAGIC_CMD in 14046[\\/*] | ?:[\\/]*) 14047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14048 ;; 14049*) 14050 lt_save_MAGIC_CMD="$MAGIC_CMD" 14051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14053 for ac_dir in $ac_dummy; do 14054 IFS="$lt_save_ifs" 14055 test -z "$ac_dir" && ac_dir=. 14056 if test -f $ac_dir/${ac_tool_prefix}file; then 14057 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14058 if test -n "$file_magic_test_file"; then 14059 case $deplibs_check_method in 14060 "file_magic "*) 14061 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14063 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14064 $EGREP "$file_magic_regex" > /dev/null; then 14065 : 14066 else 14067 cat <<_LT_EOF 1>&2 14068 14069*** Warning: the command libtool uses to detect shared libraries, 14070*** $file_magic_cmd, produces output that libtool cannot recognize. 14071*** The result is that libtool may fail to recognize shared libraries 14072*** as such. This will affect the creation of libtool libraries that 14073*** depend on shared libraries, but programs linked with such libtool 14074*** libraries will work regardless of this problem. Nevertheless, you 14075*** may want to report the problem to your system manager and/or to 14076*** bug-libtool@gnu.org 14077 14078_LT_EOF 14079 fi ;; 14080 esac 14081 fi 14082 break 14083 fi 14084 done 14085 IFS="$lt_save_ifs" 14086 MAGIC_CMD="$lt_save_MAGIC_CMD" 14087 ;; 14088esac 14089fi 14090 14091MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14092if test -n "$MAGIC_CMD"; then 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14094$as_echo "$MAGIC_CMD" >&6; } 14095else 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14097$as_echo "no" >&6; } 14098fi 14099 14100 14101 14102 14103 14104if test -z "$lt_cv_path_MAGIC_CMD"; then 14105 if test -n "$ac_tool_prefix"; then 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14107$as_echo_n "checking for file... " >&6; } 14108if ${lt_cv_path_MAGIC_CMD+:} false; then : 14109 $as_echo_n "(cached) " >&6 14110else 14111 case $MAGIC_CMD in 14112[\\/*] | ?:[\\/]*) 14113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14114 ;; 14115*) 14116 lt_save_MAGIC_CMD="$MAGIC_CMD" 14117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14119 for ac_dir in $ac_dummy; do 14120 IFS="$lt_save_ifs" 14121 test -z "$ac_dir" && ac_dir=. 14122 if test -f $ac_dir/file; then 14123 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14124 if test -n "$file_magic_test_file"; then 14125 case $deplibs_check_method in 14126 "file_magic "*) 14127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14130 $EGREP "$file_magic_regex" > /dev/null; then 14131 : 14132 else 14133 cat <<_LT_EOF 1>&2 14134 14135*** Warning: the command libtool uses to detect shared libraries, 14136*** $file_magic_cmd, produces output that libtool cannot recognize. 14137*** The result is that libtool may fail to recognize shared libraries 14138*** as such. This will affect the creation of libtool libraries that 14139*** depend on shared libraries, but programs linked with such libtool 14140*** libraries will work regardless of this problem. Nevertheless, you 14141*** may want to report the problem to your system manager and/or to 14142*** bug-libtool@gnu.org 14143 14144_LT_EOF 14145 fi ;; 14146 esac 14147 fi 14148 break 14149 fi 14150 done 14151 IFS="$lt_save_ifs" 14152 MAGIC_CMD="$lt_save_MAGIC_CMD" 14153 ;; 14154esac 14155fi 14156 14157MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14158if test -n "$MAGIC_CMD"; then 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14160$as_echo "$MAGIC_CMD" >&6; } 14161else 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14163$as_echo "no" >&6; } 14164fi 14165 14166 14167 else 14168 MAGIC_CMD=: 14169 fi 14170fi 14171 14172 fi 14173 ;; 14174esac 14175 14176# Use C for the default configuration in the libtool script 14177 14178lt_save_CC="$CC" 14179ac_ext=c 14180ac_cpp='$CPP $CPPFLAGS' 14181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14183ac_compiler_gnu=$ac_cv_c_compiler_gnu 14184 14185 14186# Source file extension for C test sources. 14187ac_ext=c 14188 14189# Object file extension for compiled C test sources. 14190objext=o 14191objext=$objext 14192 14193# Code to be used in simple compile tests 14194lt_simple_compile_test_code="int some_variable = 0;" 14195 14196# Code to be used in simple link tests 14197lt_simple_link_test_code='int main(){return(0);}' 14198 14199 14200 14201 14202 14203 14204 14205# If no C compiler was specified, use CC. 14206LTCC=${LTCC-"$CC"} 14207 14208# If no C compiler flags were specified, use CFLAGS. 14209LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14210 14211# Allow CC to be a program name with arguments. 14212compiler=$CC 14213 14214# Save the default compiler, since it gets overwritten when the other 14215# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14216compiler_DEFAULT=$CC 14217 14218# save warnings/boilerplate of simple test code 14219ac_outfile=conftest.$ac_objext 14220echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14221eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14222_lt_compiler_boilerplate=`cat conftest.err` 14223$RM conftest* 14224 14225ac_outfile=conftest.$ac_objext 14226echo "$lt_simple_link_test_code" >conftest.$ac_ext 14227eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14228_lt_linker_boilerplate=`cat conftest.err` 14229$RM -r conftest* 14230 14231 14232if test -n "$compiler"; then 14233 14234lt_prog_compiler_no_builtin_flag= 14235 14236if test "$GCC" = yes; then 14237 case $cc_basename in 14238 nvcc*) 14239 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14240 *) 14241 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14242 esac 14243 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14245$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14246if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14247 $as_echo_n "(cached) " >&6 14248else 14249 lt_cv_prog_compiler_rtti_exceptions=no 14250 ac_outfile=conftest.$ac_objext 14251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14252 lt_compiler_flag="-fno-rtti -fno-exceptions" 14253 # Insert the option either (1) after the last *FLAGS variable, or 14254 # (2) before a word containing "conftest.", or (3) at the end. 14255 # Note that $ac_compile itself does not contain backslashes and begins 14256 # with a dollar sign (not a hyphen), so the echo should work correctly. 14257 # The option is referenced via a variable to avoid confusing sed. 14258 lt_compile=`echo "$ac_compile" | $SED \ 14259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14261 -e 's:$: $lt_compiler_flag:'` 14262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14263 (eval "$lt_compile" 2>conftest.err) 14264 ac_status=$? 14265 cat conftest.err >&5 14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14267 if (exit $ac_status) && test -s "$ac_outfile"; then 14268 # The compiler can only warn and ignore the option if not recognized 14269 # So say no if there are warnings other than the usual output. 14270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14273 lt_cv_prog_compiler_rtti_exceptions=yes 14274 fi 14275 fi 14276 $RM conftest* 14277 14278fi 14279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14280$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14281 14282if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14283 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14284else 14285 : 14286fi 14287 14288fi 14289 14290 14291 14292 14293 14294 14295 lt_prog_compiler_wl= 14296lt_prog_compiler_pic= 14297lt_prog_compiler_static= 14298 14299 14300 if test "$GCC" = yes; then 14301 lt_prog_compiler_wl='-Wl,' 14302 lt_prog_compiler_static='-static' 14303 14304 case $host_os in 14305 aix*) 14306 # All AIX code is PIC. 14307 if test "$host_cpu" = ia64; then 14308 # AIX 5 now supports IA64 processor 14309 lt_prog_compiler_static='-Bstatic' 14310 fi 14311 ;; 14312 14313 amigaos*) 14314 case $host_cpu in 14315 powerpc) 14316 # see comment about AmigaOS4 .so support 14317 lt_prog_compiler_pic='-fPIC' 14318 ;; 14319 m68k) 14320 # FIXME: we need at least 68020 code to build shared libraries, but 14321 # adding the `-m68020' flag to GCC prevents building anything better, 14322 # like `-m68040'. 14323 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14324 ;; 14325 esac 14326 ;; 14327 14328 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14329 # PIC is the default for these OSes. 14330 ;; 14331 14332 mingw* | cygwin* | pw32* | os2* | cegcc*) 14333 # This hack is so that the source file can tell whether it is being 14334 # built for inclusion in a dll (and should export symbols for example). 14335 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14336 # (--disable-auto-import) libraries 14337 lt_prog_compiler_pic='-DDLL_EXPORT' 14338 ;; 14339 14340 darwin* | rhapsody*) 14341 # PIC is the default on this platform 14342 # Common symbols not allowed in MH_DYLIB files 14343 lt_prog_compiler_pic='-fno-common' 14344 ;; 14345 14346 haiku*) 14347 # PIC is the default for Haiku. 14348 # The "-static" flag exists, but is broken. 14349 lt_prog_compiler_static= 14350 ;; 14351 14352 hpux*) 14353 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14354 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14355 # sets the default TLS model and affects inlining. 14356 case $host_cpu in 14357 hppa*64*) 14358 # +Z the default 14359 ;; 14360 *) 14361 lt_prog_compiler_pic='-fPIC' 14362 ;; 14363 esac 14364 ;; 14365 14366 interix[3-9]*) 14367 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14368 # Instead, we relocate shared libraries at runtime. 14369 ;; 14370 14371 msdosdjgpp*) 14372 # Just because we use GCC doesn't mean we suddenly get shared libraries 14373 # on systems that don't support them. 14374 lt_prog_compiler_can_build_shared=no 14375 enable_shared=no 14376 ;; 14377 14378 *nto* | *qnx*) 14379 # QNX uses GNU C++, but need to define -shared option too, otherwise 14380 # it will coredump. 14381 lt_prog_compiler_pic='-fPIC -shared' 14382 ;; 14383 14384 sysv4*MP*) 14385 if test -d /usr/nec; then 14386 lt_prog_compiler_pic=-Kconform_pic 14387 fi 14388 ;; 14389 14390 *) 14391 lt_prog_compiler_pic='-fPIC' 14392 ;; 14393 esac 14394 14395 case $cc_basename in 14396 nvcc*) # Cuda Compiler Driver 2.2 14397 lt_prog_compiler_wl='-Xlinker ' 14398 lt_prog_compiler_pic='-Xcompiler -fPIC' 14399 ;; 14400 esac 14401 else 14402 # PORTME Check for flag to pass linker flags through the system compiler. 14403 case $host_os in 14404 aix*) 14405 lt_prog_compiler_wl='-Wl,' 14406 if test "$host_cpu" = ia64; then 14407 # AIX 5 now supports IA64 processor 14408 lt_prog_compiler_static='-Bstatic' 14409 else 14410 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14411 fi 14412 ;; 14413 14414 mingw* | cygwin* | pw32* | os2* | cegcc*) 14415 # This hack is so that the source file can tell whether it is being 14416 # built for inclusion in a dll (and should export symbols for example). 14417 lt_prog_compiler_pic='-DDLL_EXPORT' 14418 ;; 14419 14420 hpux9* | hpux10* | hpux11*) 14421 lt_prog_compiler_wl='-Wl,' 14422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14423 # not for PA HP-UX. 14424 case $host_cpu in 14425 hppa*64*|ia64*) 14426 # +Z the default 14427 ;; 14428 *) 14429 lt_prog_compiler_pic='+Z' 14430 ;; 14431 esac 14432 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14433 lt_prog_compiler_static='${wl}-a ${wl}archive' 14434 ;; 14435 14436 irix5* | irix6* | nonstopux*) 14437 lt_prog_compiler_wl='-Wl,' 14438 # PIC (with -KPIC) is the default. 14439 lt_prog_compiler_static='-non_shared' 14440 ;; 14441 14442 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14443 case $cc_basename in 14444 # old Intel for x86_64 which still supported -KPIC. 14445 ecc*) 14446 lt_prog_compiler_wl='-Wl,' 14447 lt_prog_compiler_pic='-KPIC' 14448 lt_prog_compiler_static='-static' 14449 ;; 14450 # icc used to be incompatible with GCC. 14451 # ICC 10 doesn't accept -KPIC any more. 14452 icc* | ifort*) 14453 lt_prog_compiler_wl='-Wl,' 14454 lt_prog_compiler_pic='-fPIC' 14455 lt_prog_compiler_static='-static' 14456 ;; 14457 # Lahey Fortran 8.1. 14458 lf95*) 14459 lt_prog_compiler_wl='-Wl,' 14460 lt_prog_compiler_pic='--shared' 14461 lt_prog_compiler_static='--static' 14462 ;; 14463 nagfor*) 14464 # NAG Fortran compiler 14465 lt_prog_compiler_wl='-Wl,-Wl,,' 14466 lt_prog_compiler_pic='-PIC' 14467 lt_prog_compiler_static='-Bstatic' 14468 ;; 14469 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14470 # Portland Group compilers (*not* the Pentium gcc compiler, 14471 # which looks to be a dead project) 14472 lt_prog_compiler_wl='-Wl,' 14473 lt_prog_compiler_pic='-fpic' 14474 lt_prog_compiler_static='-Bstatic' 14475 ;; 14476 ccc*) 14477 lt_prog_compiler_wl='-Wl,' 14478 # All Alpha code is PIC. 14479 lt_prog_compiler_static='-non_shared' 14480 ;; 14481 xl* | bgxl* | bgf* | mpixl*) 14482 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14483 lt_prog_compiler_wl='-Wl,' 14484 lt_prog_compiler_pic='-qpic' 14485 lt_prog_compiler_static='-qstaticlink' 14486 ;; 14487 *) 14488 case `$CC -V 2>&1 | sed 5q` in 14489 *Sun\ F* | *Sun*Fortran*) 14490 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14491 lt_prog_compiler_pic='-KPIC' 14492 lt_prog_compiler_static='-Bstatic' 14493 lt_prog_compiler_wl='' 14494 ;; 14495 *Sun\ C*) 14496 # Sun C 5.9 14497 lt_prog_compiler_pic='-KPIC' 14498 lt_prog_compiler_static='-Bstatic' 14499 lt_prog_compiler_wl='-Wl,' 14500 ;; 14501 esac 14502 ;; 14503 esac 14504 ;; 14505 14506 newsos6) 14507 lt_prog_compiler_pic='-KPIC' 14508 lt_prog_compiler_static='-Bstatic' 14509 ;; 14510 14511 *nto* | *qnx*) 14512 # QNX uses GNU C++, but need to define -shared option too, otherwise 14513 # it will coredump. 14514 lt_prog_compiler_pic='-fPIC -shared' 14515 ;; 14516 14517 osf3* | osf4* | osf5*) 14518 lt_prog_compiler_wl='-Wl,' 14519 # All OSF/1 code is PIC. 14520 lt_prog_compiler_static='-non_shared' 14521 ;; 14522 14523 rdos*) 14524 lt_prog_compiler_static='-non_shared' 14525 ;; 14526 14527 solaris*) 14528 lt_prog_compiler_pic='-KPIC' 14529 lt_prog_compiler_static='-Bstatic' 14530 case $cc_basename in 14531 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14532 lt_prog_compiler_wl='-Qoption ld ';; 14533 *) 14534 lt_prog_compiler_wl='-Wl,';; 14535 esac 14536 ;; 14537 14538 sunos4*) 14539 lt_prog_compiler_wl='-Qoption ld ' 14540 lt_prog_compiler_pic='-PIC' 14541 lt_prog_compiler_static='-Bstatic' 14542 ;; 14543 14544 sysv4 | sysv4.2uw2* | sysv4.3*) 14545 lt_prog_compiler_wl='-Wl,' 14546 lt_prog_compiler_pic='-KPIC' 14547 lt_prog_compiler_static='-Bstatic' 14548 ;; 14549 14550 sysv4*MP*) 14551 if test -d /usr/nec ;then 14552 lt_prog_compiler_pic='-Kconform_pic' 14553 lt_prog_compiler_static='-Bstatic' 14554 fi 14555 ;; 14556 14557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14558 lt_prog_compiler_wl='-Wl,' 14559 lt_prog_compiler_pic='-KPIC' 14560 lt_prog_compiler_static='-Bstatic' 14561 ;; 14562 14563 unicos*) 14564 lt_prog_compiler_wl='-Wl,' 14565 lt_prog_compiler_can_build_shared=no 14566 ;; 14567 14568 uts4*) 14569 lt_prog_compiler_pic='-pic' 14570 lt_prog_compiler_static='-Bstatic' 14571 ;; 14572 14573 *) 14574 lt_prog_compiler_can_build_shared=no 14575 ;; 14576 esac 14577 fi 14578 14579case $host_os in 14580 # For platforms which do not support PIC, -DPIC is meaningless: 14581 *djgpp*) 14582 lt_prog_compiler_pic= 14583 ;; 14584 *) 14585 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14586 ;; 14587esac 14588 14589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14590$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14591if ${lt_cv_prog_compiler_pic+:} false; then : 14592 $as_echo_n "(cached) " >&6 14593else 14594 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14595fi 14596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14597$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14598lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14599 14600# 14601# Check to make sure the PIC flag actually works. 14602# 14603if test -n "$lt_prog_compiler_pic"; then 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14605$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14606if ${lt_cv_prog_compiler_pic_works+:} false; then : 14607 $as_echo_n "(cached) " >&6 14608else 14609 lt_cv_prog_compiler_pic_works=no 14610 ac_outfile=conftest.$ac_objext 14611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14612 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14613 # Insert the option either (1) after the last *FLAGS variable, or 14614 # (2) before a word containing "conftest.", or (3) at the end. 14615 # Note that $ac_compile itself does not contain backslashes and begins 14616 # with a dollar sign (not a hyphen), so the echo should work correctly. 14617 # The option is referenced via a variable to avoid confusing sed. 14618 lt_compile=`echo "$ac_compile" | $SED \ 14619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14621 -e 's:$: $lt_compiler_flag:'` 14622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14623 (eval "$lt_compile" 2>conftest.err) 14624 ac_status=$? 14625 cat conftest.err >&5 14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14627 if (exit $ac_status) && test -s "$ac_outfile"; then 14628 # The compiler can only warn and ignore the option if not recognized 14629 # So say no if there are warnings other than the usual output. 14630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14632 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14633 lt_cv_prog_compiler_pic_works=yes 14634 fi 14635 fi 14636 $RM conftest* 14637 14638fi 14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14640$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14641 14642if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14643 case $lt_prog_compiler_pic in 14644 "" | " "*) ;; 14645 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14646 esac 14647else 14648 lt_prog_compiler_pic= 14649 lt_prog_compiler_can_build_shared=no 14650fi 14651 14652fi 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664# 14665# Check to make sure the static flag actually works. 14666# 14667wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14669$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14670if ${lt_cv_prog_compiler_static_works+:} false; then : 14671 $as_echo_n "(cached) " >&6 14672else 14673 lt_cv_prog_compiler_static_works=no 14674 save_LDFLAGS="$LDFLAGS" 14675 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14676 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14678 # The linker can only warn and ignore the option if not recognized 14679 # So say no if there are warnings 14680 if test -s conftest.err; then 14681 # Append any errors to the config.log. 14682 cat conftest.err 1>&5 14683 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14685 if diff conftest.exp conftest.er2 >/dev/null; then 14686 lt_cv_prog_compiler_static_works=yes 14687 fi 14688 else 14689 lt_cv_prog_compiler_static_works=yes 14690 fi 14691 fi 14692 $RM -r conftest* 14693 LDFLAGS="$save_LDFLAGS" 14694 14695fi 14696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14697$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14698 14699if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14700 : 14701else 14702 lt_prog_compiler_static= 14703fi 14704 14705 14706 14707 14708 14709 14710 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14712$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14713if ${lt_cv_prog_compiler_c_o+:} false; then : 14714 $as_echo_n "(cached) " >&6 14715else 14716 lt_cv_prog_compiler_c_o=no 14717 $RM -r conftest 2>/dev/null 14718 mkdir conftest 14719 cd conftest 14720 mkdir out 14721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14722 14723 lt_compiler_flag="-o out/conftest2.$ac_objext" 14724 # Insert the option either (1) after the last *FLAGS variable, or 14725 # (2) before a word containing "conftest.", or (3) at the end. 14726 # Note that $ac_compile itself does not contain backslashes and begins 14727 # with a dollar sign (not a hyphen), so the echo should work correctly. 14728 lt_compile=`echo "$ac_compile" | $SED \ 14729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14731 -e 's:$: $lt_compiler_flag:'` 14732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14733 (eval "$lt_compile" 2>out/conftest.err) 14734 ac_status=$? 14735 cat out/conftest.err >&5 14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14737 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14738 then 14739 # The compiler can only warn and ignore the option if not recognized 14740 # So say no if there are warnings 14741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14742 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14743 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14744 lt_cv_prog_compiler_c_o=yes 14745 fi 14746 fi 14747 chmod u+w . 2>&5 14748 $RM conftest* 14749 # SGI C++ compiler will create directory out/ii_files/ for 14750 # template instantiation 14751 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14752 $RM out/* && rmdir out 14753 cd .. 14754 $RM -r conftest 14755 $RM conftest* 14756 14757fi 14758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14759$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14760 14761 14762 14763 14764 14765 14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14767$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14768if ${lt_cv_prog_compiler_c_o+:} false; then : 14769 $as_echo_n "(cached) " >&6 14770else 14771 lt_cv_prog_compiler_c_o=no 14772 $RM -r conftest 2>/dev/null 14773 mkdir conftest 14774 cd conftest 14775 mkdir out 14776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14777 14778 lt_compiler_flag="-o out/conftest2.$ac_objext" 14779 # Insert the option either (1) after the last *FLAGS variable, or 14780 # (2) before a word containing "conftest.", or (3) at the end. 14781 # Note that $ac_compile itself does not contain backslashes and begins 14782 # with a dollar sign (not a hyphen), so the echo should work correctly. 14783 lt_compile=`echo "$ac_compile" | $SED \ 14784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14786 -e 's:$: $lt_compiler_flag:'` 14787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14788 (eval "$lt_compile" 2>out/conftest.err) 14789 ac_status=$? 14790 cat out/conftest.err >&5 14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14792 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14793 then 14794 # The compiler can only warn and ignore the option if not recognized 14795 # So say no if there are warnings 14796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14799 lt_cv_prog_compiler_c_o=yes 14800 fi 14801 fi 14802 chmod u+w . 2>&5 14803 $RM conftest* 14804 # SGI C++ compiler will create directory out/ii_files/ for 14805 # template instantiation 14806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14807 $RM out/* && rmdir out 14808 cd .. 14809 $RM -r conftest 14810 $RM conftest* 14811 14812fi 14813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14814$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14815 14816 14817 14818 14819hard_links="nottested" 14820if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14821 # do not overwrite the value of need_locks provided by the user 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14823$as_echo_n "checking if we can lock with hard links... " >&6; } 14824 hard_links=yes 14825 $RM conftest* 14826 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14827 touch conftest.a 14828 ln conftest.a conftest.b 2>&5 || hard_links=no 14829 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14831$as_echo "$hard_links" >&6; } 14832 if test "$hard_links" = no; then 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14834$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14835 need_locks=warn 14836 fi 14837else 14838 need_locks=no 14839fi 14840 14841 14842 14843 14844 14845 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14847$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14848 14849 runpath_var= 14850 allow_undefined_flag= 14851 always_export_symbols=no 14852 archive_cmds= 14853 archive_expsym_cmds= 14854 compiler_needs_object=no 14855 enable_shared_with_static_runtimes=no 14856 export_dynamic_flag_spec= 14857 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14858 hardcode_automatic=no 14859 hardcode_direct=no 14860 hardcode_direct_absolute=no 14861 hardcode_libdir_flag_spec= 14862 hardcode_libdir_flag_spec_ld= 14863 hardcode_libdir_separator= 14864 hardcode_minus_L=no 14865 hardcode_shlibpath_var=unsupported 14866 inherit_rpath=no 14867 link_all_deplibs=unknown 14868 module_cmds= 14869 module_expsym_cmds= 14870 old_archive_from_new_cmds= 14871 old_archive_from_expsyms_cmds= 14872 thread_safe_flag_spec= 14873 whole_archive_flag_spec= 14874 # include_expsyms should be a list of space-separated symbols to be *always* 14875 # included in the symbol list 14876 include_expsyms= 14877 # exclude_expsyms can be an extended regexp of symbols to exclude 14878 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14880 # as well as any symbol that contains `d'. 14881 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14883 # platforms (ab)use it in PIC code, but their linkers get confused if 14884 # the symbol is explicitly referenced. Since portable code cannot 14885 # rely on this symbol name, it's probably fine to never include it in 14886 # preloaded symbol tables. 14887 # Exclude shared library initialization/finalization symbols. 14888 extract_expsyms_cmds= 14889 14890 case $host_os in 14891 cygwin* | mingw* | pw32* | cegcc*) 14892 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14893 # When not using gcc, we currently assume that we are using 14894 # Microsoft Visual C++. 14895 if test "$GCC" != yes; then 14896 with_gnu_ld=no 14897 fi 14898 ;; 14899 interix*) 14900 # we just hope/assume this is gcc and not c89 (= MSVC++) 14901 with_gnu_ld=yes 14902 ;; 14903 openbsd*) 14904 with_gnu_ld=no 14905 ;; 14906 esac 14907 14908 ld_shlibs=yes 14909 14910 # On some targets, GNU ld is compatible enough with the native linker 14911 # that we're better off using the native interface for both. 14912 lt_use_gnu_ld_interface=no 14913 if test "$with_gnu_ld" = yes; then 14914 case $host_os in 14915 aix*) 14916 # The AIX port of GNU ld has always aspired to compatibility 14917 # with the native linker. However, as the warning in the GNU ld 14918 # block says, versions before 2.19.5* couldn't really create working 14919 # shared libraries, regardless of the interface used. 14920 case `$LD -v 2>&1` in 14921 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14922 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14923 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14924 *) 14925 lt_use_gnu_ld_interface=yes 14926 ;; 14927 esac 14928 ;; 14929 *) 14930 lt_use_gnu_ld_interface=yes 14931 ;; 14932 esac 14933 fi 14934 14935 if test "$lt_use_gnu_ld_interface" = yes; then 14936 # If archive_cmds runs LD, not CC, wlarc should be empty 14937 wlarc='${wl}' 14938 14939 # Set some defaults for GNU ld with shared library support. These 14940 # are reset later if shared libraries are not supported. Putting them 14941 # here allows them to be overridden if necessary. 14942 runpath_var=LD_RUN_PATH 14943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14944 export_dynamic_flag_spec='${wl}--export-dynamic' 14945 # ancient GNU ld didn't support --whole-archive et. al. 14946 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14947 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14948 else 14949 whole_archive_flag_spec= 14950 fi 14951 supports_anon_versioning=no 14952 case `$LD -v 2>&1` in 14953 *GNU\ gold*) supports_anon_versioning=yes ;; 14954 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14955 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14956 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14957 *\ 2.11.*) ;; # other 2.11 versions 14958 *) supports_anon_versioning=yes ;; 14959 esac 14960 14961 # See if GNU ld supports shared libraries. 14962 case $host_os in 14963 aix[3-9]*) 14964 # On AIX/PPC, the GNU linker is very broken 14965 if test "$host_cpu" != ia64; then 14966 ld_shlibs=no 14967 cat <<_LT_EOF 1>&2 14968 14969*** Warning: the GNU linker, at least up to release 2.19, is reported 14970*** to be unable to reliably create shared libraries on AIX. 14971*** Therefore, libtool is disabling shared libraries support. If you 14972*** really care for shared libraries, you may want to install binutils 14973*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14974*** You will then need to restart the configuration process. 14975 14976_LT_EOF 14977 fi 14978 ;; 14979 14980 amigaos*) 14981 case $host_cpu in 14982 powerpc) 14983 # see comment about AmigaOS4 .so support 14984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14985 archive_expsym_cmds='' 14986 ;; 14987 m68k) 14988 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)' 14989 hardcode_libdir_flag_spec='-L$libdir' 14990 hardcode_minus_L=yes 14991 ;; 14992 esac 14993 ;; 14994 14995 beos*) 14996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14997 allow_undefined_flag=unsupported 14998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14999 # support --undefined. This deserves some investigation. FIXME 15000 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15001 else 15002 ld_shlibs=no 15003 fi 15004 ;; 15005 15006 cygwin* | mingw* | pw32* | cegcc*) 15007 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15008 # as there is no search path for DLLs. 15009 hardcode_libdir_flag_spec='-L$libdir' 15010 export_dynamic_flag_spec='${wl}--export-all-symbols' 15011 allow_undefined_flag=unsupported 15012 always_export_symbols=no 15013 enable_shared_with_static_runtimes=yes 15014 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' 15015 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15016 15017 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15019 # If the export-symbols file already is a .def file (1st line 15020 # is EXPORTS), use it as is; otherwise, prepend... 15021 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15022 cp $export_symbols $output_objdir/$soname.def; 15023 else 15024 echo EXPORTS > $output_objdir/$soname.def; 15025 cat $export_symbols >> $output_objdir/$soname.def; 15026 fi~ 15027 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15028 else 15029 ld_shlibs=no 15030 fi 15031 ;; 15032 15033 haiku*) 15034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15035 link_all_deplibs=yes 15036 ;; 15037 15038 interix[3-9]*) 15039 hardcode_direct=no 15040 hardcode_shlibpath_var=no 15041 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15042 export_dynamic_flag_spec='${wl}-E' 15043 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15044 # Instead, shared libraries are loaded at an image base (0x10000000 by 15045 # default) and relocated if they conflict, which is a slow very memory 15046 # consuming and fragmenting process. To avoid this, we pick a random, 15047 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15048 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15049 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15050 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' 15051 ;; 15052 15053 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15054 tmp_diet=no 15055 if test "$host_os" = linux-dietlibc; then 15056 case $cc_basename in 15057 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15058 esac 15059 fi 15060 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15061 && test "$tmp_diet" = no 15062 then 15063 tmp_addflag=' $pic_flag' 15064 tmp_sharedflag='-shared' 15065 case $cc_basename,$host_cpu in 15066 pgcc*) # Portland Group C compiler 15067 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' 15068 tmp_addflag=' $pic_flag' 15069 ;; 15070 pgf77* | pgf90* | pgf95* | pgfortran*) 15071 # Portland Group f77 and f90 compilers 15072 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' 15073 tmp_addflag=' $pic_flag -Mnomain' ;; 15074 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15075 tmp_addflag=' -i_dynamic' ;; 15076 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15077 tmp_addflag=' -i_dynamic -nofor_main' ;; 15078 ifc* | ifort*) # Intel Fortran compiler 15079 tmp_addflag=' -nofor_main' ;; 15080 lf95*) # Lahey Fortran 8.1 15081 whole_archive_flag_spec= 15082 tmp_sharedflag='--shared' ;; 15083 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15084 tmp_sharedflag='-qmkshrobj' 15085 tmp_addflag= ;; 15086 nvcc*) # Cuda Compiler Driver 2.2 15087 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' 15088 compiler_needs_object=yes 15089 ;; 15090 esac 15091 case `$CC -V 2>&1 | sed 5q` in 15092 *Sun\ C*) # Sun C 5.9 15093 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' 15094 compiler_needs_object=yes 15095 tmp_sharedflag='-G' ;; 15096 *Sun\ F*) # Sun Fortran 8.3 15097 tmp_sharedflag='-G' ;; 15098 esac 15099 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15100 15101 if test "x$supports_anon_versioning" = xyes; then 15102 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15104 echo "local: *; };" >> $output_objdir/$libname.ver~ 15105 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15106 fi 15107 15108 case $cc_basename in 15109 xlf* | bgf* | bgxlf* | mpixlf*) 15110 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15111 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15112 hardcode_libdir_flag_spec= 15113 hardcode_libdir_flag_spec_ld='-rpath $libdir' 15114 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15115 if test "x$supports_anon_versioning" = xyes; then 15116 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15118 echo "local: *; };" >> $output_objdir/$libname.ver~ 15119 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15120 fi 15121 ;; 15122 esac 15123 else 15124 ld_shlibs=no 15125 fi 15126 ;; 15127 15128 netbsd*) 15129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15130 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15131 wlarc= 15132 else 15133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15134 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15135 fi 15136 ;; 15137 15138 solaris*) 15139 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15140 ld_shlibs=no 15141 cat <<_LT_EOF 1>&2 15142 15143*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15144*** create shared libraries on Solaris systems. Therefore, libtool 15145*** is disabling shared libraries support. We urge you to upgrade GNU 15146*** binutils to release 2.9.1 or newer. Another option is to modify 15147*** your PATH or compiler configuration so that the native linker is 15148*** used, and then restart. 15149 15150_LT_EOF 15151 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15152 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15153 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15154 else 15155 ld_shlibs=no 15156 fi 15157 ;; 15158 15159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15160 case `$LD -v 2>&1` in 15161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15162 ld_shlibs=no 15163 cat <<_LT_EOF 1>&2 15164 15165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15166*** reliably create shared libraries on SCO systems. Therefore, libtool 15167*** is disabling shared libraries support. We urge you to upgrade GNU 15168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15169*** your PATH or compiler configuration so that the native linker is 15170*** used, and then restart. 15171 15172_LT_EOF 15173 ;; 15174 *) 15175 # For security reasons, it is highly recommended that you always 15176 # use absolute paths for naming shared libraries, and exclude the 15177 # DT_RUNPATH tag from executables and libraries. But doing so 15178 # requires that you compile everything twice, which is a pain. 15179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15183 else 15184 ld_shlibs=no 15185 fi 15186 ;; 15187 esac 15188 ;; 15189 15190 sunos4*) 15191 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15192 wlarc= 15193 hardcode_direct=yes 15194 hardcode_shlibpath_var=no 15195 ;; 15196 15197 *) 15198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15199 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15200 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15201 else 15202 ld_shlibs=no 15203 fi 15204 ;; 15205 esac 15206 15207 if test "$ld_shlibs" = no; then 15208 runpath_var= 15209 hardcode_libdir_flag_spec= 15210 export_dynamic_flag_spec= 15211 whole_archive_flag_spec= 15212 fi 15213 else 15214 # PORTME fill in a description of your system's linker (not GNU ld) 15215 case $host_os in 15216 aix3*) 15217 allow_undefined_flag=unsupported 15218 always_export_symbols=yes 15219 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' 15220 # Note: this linker hardcodes the directories in LIBPATH if there 15221 # are no directories specified by -L. 15222 hardcode_minus_L=yes 15223 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15224 # Neither direct hardcoding nor static linking is supported with a 15225 # broken collect2. 15226 hardcode_direct=unsupported 15227 fi 15228 ;; 15229 15230 aix[4-9]*) 15231 if test "$host_cpu" = ia64; then 15232 # On IA64, the linker does run time linking by default, so we don't 15233 # have to do anything special. 15234 aix_use_runtimelinking=no 15235 exp_sym_flag='-Bexport' 15236 no_entry_flag="" 15237 else 15238 # If we're using GNU nm, then we don't want the "-C" option. 15239 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15240 # Also, AIX nm treats weak defined symbols like other global 15241 # defined symbols, whereas GNU nm marks them as "W". 15242 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15243 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15244 else 15245 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15246 fi 15247 aix_use_runtimelinking=no 15248 15249 # Test if we are trying to use run time linking or normal 15250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15251 # need to do runtime linking. 15252 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15253 for ld_flag in $LDFLAGS; do 15254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15255 aix_use_runtimelinking=yes 15256 break 15257 fi 15258 done 15259 ;; 15260 esac 15261 15262 exp_sym_flag='-bexport' 15263 no_entry_flag='-bnoentry' 15264 fi 15265 15266 # When large executables or shared objects are built, AIX ld can 15267 # have problems creating the table of contents. If linking a library 15268 # or program results in "error TOC overflow" add -mminimal-toc to 15269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15271 15272 archive_cmds='' 15273 hardcode_direct=yes 15274 hardcode_direct_absolute=yes 15275 hardcode_libdir_separator=':' 15276 link_all_deplibs=yes 15277 file_list_spec='${wl}-f,' 15278 15279 if test "$GCC" = yes; then 15280 case $host_os in aix4.[012]|aix4.[012].*) 15281 # We only want to do this on AIX 4.2 and lower, the check 15282 # below for broken collect2 doesn't work under 4.3+ 15283 collect2name=`${CC} -print-prog-name=collect2` 15284 if test -f "$collect2name" && 15285 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15286 then 15287 # We have reworked collect2 15288 : 15289 else 15290 # We have old collect2 15291 hardcode_direct=unsupported 15292 # It fails to find uninstalled libraries when the uninstalled 15293 # path is not listed in the libpath. Setting hardcode_minus_L 15294 # to unsupported forces relinking 15295 hardcode_minus_L=yes 15296 hardcode_libdir_flag_spec='-L$libdir' 15297 hardcode_libdir_separator= 15298 fi 15299 ;; 15300 esac 15301 shared_flag='-shared' 15302 if test "$aix_use_runtimelinking" = yes; then 15303 shared_flag="$shared_flag "'${wl}-G' 15304 fi 15305 else 15306 # not using gcc 15307 if test "$host_cpu" = ia64; then 15308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15309 # chokes on -Wl,-G. The following line is correct: 15310 shared_flag='-G' 15311 else 15312 if test "$aix_use_runtimelinking" = yes; then 15313 shared_flag='${wl}-G' 15314 else 15315 shared_flag='${wl}-bM:SRE' 15316 fi 15317 fi 15318 fi 15319 15320 export_dynamic_flag_spec='${wl}-bexpall' 15321 # It seems that -bexpall does not export symbols beginning with 15322 # underscore (_), so it is better to generate a list of symbols to export. 15323 always_export_symbols=yes 15324 if test "$aix_use_runtimelinking" = yes; then 15325 # Warning - without using the other runtime loading flags (-brtl), 15326 # -berok will link without error, but may produce a broken library. 15327 allow_undefined_flag='-berok' 15328 # Determine the default libpath from the value encoded in an 15329 # empty executable. 15330 if test "${lt_cv_aix_libpath+set}" = set; then 15331 aix_libpath=$lt_cv_aix_libpath 15332else 15333 if ${lt_cv_aix_libpath_+:} false; then : 15334 $as_echo_n "(cached) " >&6 15335else 15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337/* end confdefs.h. */ 15338 15339int 15340main () 15341{ 15342 15343 ; 15344 return 0; 15345} 15346_ACEOF 15347if ac_fn_c_try_link "$LINENO"; then : 15348 15349 lt_aix_libpath_sed=' 15350 /Import File Strings/,/^$/ { 15351 /^0/ { 15352 s/^0 *\([^ ]*\) *$/\1/ 15353 p 15354 } 15355 }' 15356 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15357 # Check for a 64-bit object if we didn't find anything. 15358 if test -z "$lt_cv_aix_libpath_"; then 15359 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15360 fi 15361fi 15362rm -f core conftest.err conftest.$ac_objext \ 15363 conftest$ac_exeext conftest.$ac_ext 15364 if test -z "$lt_cv_aix_libpath_"; then 15365 lt_cv_aix_libpath_="/usr/lib:/lib" 15366 fi 15367 15368fi 15369 15370 aix_libpath=$lt_cv_aix_libpath_ 15371fi 15372 15373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15374 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15375 else 15376 if test "$host_cpu" = ia64; then 15377 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15378 allow_undefined_flag="-z nodefs" 15379 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" 15380 else 15381 # Determine the default libpath from the value encoded in an 15382 # empty executable. 15383 if test "${lt_cv_aix_libpath+set}" = set; then 15384 aix_libpath=$lt_cv_aix_libpath 15385else 15386 if ${lt_cv_aix_libpath_+:} false; then : 15387 $as_echo_n "(cached) " >&6 15388else 15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15390/* end confdefs.h. */ 15391 15392int 15393main () 15394{ 15395 15396 ; 15397 return 0; 15398} 15399_ACEOF 15400if ac_fn_c_try_link "$LINENO"; then : 15401 15402 lt_aix_libpath_sed=' 15403 /Import File Strings/,/^$/ { 15404 /^0/ { 15405 s/^0 *\([^ ]*\) *$/\1/ 15406 p 15407 } 15408 }' 15409 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15410 # Check for a 64-bit object if we didn't find anything. 15411 if test -z "$lt_cv_aix_libpath_"; then 15412 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15413 fi 15414fi 15415rm -f core conftest.err conftest.$ac_objext \ 15416 conftest$ac_exeext conftest.$ac_ext 15417 if test -z "$lt_cv_aix_libpath_"; then 15418 lt_cv_aix_libpath_="/usr/lib:/lib" 15419 fi 15420 15421fi 15422 15423 aix_libpath=$lt_cv_aix_libpath_ 15424fi 15425 15426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15427 # Warning - without using the other run time loading flags, 15428 # -berok will link without error, but may produce a broken library. 15429 no_undefined_flag=' ${wl}-bernotok' 15430 allow_undefined_flag=' ${wl}-berok' 15431 if test "$with_gnu_ld" = yes; then 15432 # We only use this code for GNU lds that support --whole-archive. 15433 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15434 else 15435 # Exported symbols can be pulled into shared objects from archives 15436 whole_archive_flag_spec='$convenience' 15437 fi 15438 archive_cmds_need_lc=yes 15439 # This is similar to how AIX traditionally builds its shared libraries. 15440 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15441 fi 15442 fi 15443 ;; 15444 15445 amigaos*) 15446 case $host_cpu in 15447 powerpc) 15448 # see comment about AmigaOS4 .so support 15449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15450 archive_expsym_cmds='' 15451 ;; 15452 m68k) 15453 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)' 15454 hardcode_libdir_flag_spec='-L$libdir' 15455 hardcode_minus_L=yes 15456 ;; 15457 esac 15458 ;; 15459 15460 bsdi[45]*) 15461 export_dynamic_flag_spec=-rdynamic 15462 ;; 15463 15464 cygwin* | mingw* | pw32* | cegcc*) 15465 # When not using gcc, we currently assume that we are using 15466 # Microsoft Visual C++. 15467 # hardcode_libdir_flag_spec is actually meaningless, as there is 15468 # no search path for DLLs. 15469 case $cc_basename in 15470 cl*) 15471 # Native MSVC 15472 hardcode_libdir_flag_spec=' ' 15473 allow_undefined_flag=unsupported 15474 always_export_symbols=yes 15475 file_list_spec='@' 15476 # Tell ltmain to make .lib files, not .a files. 15477 libext=lib 15478 # Tell ltmain to make .dll files, not .so files. 15479 shrext_cmds=".dll" 15480 # FIXME: Setting linknames here is a bad hack. 15481 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15482 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15483 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15484 else 15485 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15486 fi~ 15487 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15488 linknames=' 15489 # The linker will not automatically build a static lib if we build a DLL. 15490 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15491 enable_shared_with_static_runtimes=yes 15492 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15493 # Don't use ranlib 15494 old_postinstall_cmds='chmod 644 $oldlib' 15495 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15496 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15497 case $lt_outputfile in 15498 *.exe|*.EXE) ;; 15499 *) 15500 lt_outputfile="$lt_outputfile.exe" 15501 lt_tool_outputfile="$lt_tool_outputfile.exe" 15502 ;; 15503 esac~ 15504 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15505 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15506 $RM "$lt_outputfile.manifest"; 15507 fi' 15508 ;; 15509 *) 15510 # Assume MSVC wrapper 15511 hardcode_libdir_flag_spec=' ' 15512 allow_undefined_flag=unsupported 15513 # Tell ltmain to make .lib files, not .a files. 15514 libext=lib 15515 # Tell ltmain to make .dll files, not .so files. 15516 shrext_cmds=".dll" 15517 # FIXME: Setting linknames here is a bad hack. 15518 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15519 # The linker will automatically build a .lib file if we build a DLL. 15520 old_archive_from_new_cmds='true' 15521 # FIXME: Should let the user specify the lib program. 15522 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15523 enable_shared_with_static_runtimes=yes 15524 ;; 15525 esac 15526 ;; 15527 15528 darwin* | rhapsody*) 15529 15530 15531 archive_cmds_need_lc=no 15532 hardcode_direct=no 15533 hardcode_automatic=yes 15534 hardcode_shlibpath_var=unsupported 15535 if test "$lt_cv_ld_force_load" = "yes"; then 15536 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\"`' 15537 else 15538 whole_archive_flag_spec='' 15539 fi 15540 link_all_deplibs=yes 15541 allow_undefined_flag="$_lt_dar_allow_undefined" 15542 case $cc_basename in 15543 ifort*) _lt_dar_can_shared=yes ;; 15544 *) _lt_dar_can_shared=$GCC ;; 15545 esac 15546 if test "$_lt_dar_can_shared" = "yes"; then 15547 output_verbose_link_cmd=func_echo_all 15548 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15549 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15550 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}" 15551 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}" 15552 15553 else 15554 ld_shlibs=no 15555 fi 15556 15557 ;; 15558 15559 dgux*) 15560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15561 hardcode_libdir_flag_spec='-L$libdir' 15562 hardcode_shlibpath_var=no 15563 ;; 15564 15565 freebsd1*) 15566 ld_shlibs=no 15567 ;; 15568 15569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15570 # support. Future versions do this automatically, but an explicit c++rt0.o 15571 # does not break anything, and helps significantly (at the cost of a little 15572 # extra space). 15573 freebsd2.2*) 15574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15575 hardcode_libdir_flag_spec='-R$libdir' 15576 hardcode_direct=yes 15577 hardcode_shlibpath_var=no 15578 ;; 15579 15580 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15581 freebsd2*) 15582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15583 hardcode_direct=yes 15584 hardcode_minus_L=yes 15585 hardcode_shlibpath_var=no 15586 ;; 15587 15588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15589 freebsd* | dragonfly*) 15590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15591 hardcode_libdir_flag_spec='-R$libdir' 15592 hardcode_direct=yes 15593 hardcode_shlibpath_var=no 15594 ;; 15595 15596 hpux9*) 15597 if test "$GCC" = yes; then 15598 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15599 else 15600 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15601 fi 15602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15603 hardcode_libdir_separator=: 15604 hardcode_direct=yes 15605 15606 # hardcode_minus_L: Not really in the search PATH, 15607 # but as the default location of the library. 15608 hardcode_minus_L=yes 15609 export_dynamic_flag_spec='${wl}-E' 15610 ;; 15611 15612 hpux10*) 15613 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15614 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15615 else 15616 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15617 fi 15618 if test "$with_gnu_ld" = no; then 15619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15620 hardcode_libdir_flag_spec_ld='+b $libdir' 15621 hardcode_libdir_separator=: 15622 hardcode_direct=yes 15623 hardcode_direct_absolute=yes 15624 export_dynamic_flag_spec='${wl}-E' 15625 # hardcode_minus_L: Not really in the search PATH, 15626 # but as the default location of the library. 15627 hardcode_minus_L=yes 15628 fi 15629 ;; 15630 15631 hpux11*) 15632 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15633 case $host_cpu in 15634 hppa*64*) 15635 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15636 ;; 15637 ia64*) 15638 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15639 ;; 15640 *) 15641 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15642 ;; 15643 esac 15644 else 15645 case $host_cpu in 15646 hppa*64*) 15647 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15648 ;; 15649 ia64*) 15650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15651 ;; 15652 *) 15653 15654 # Older versions of the 11.00 compiler do not understand -b yet 15655 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15657$as_echo_n "checking if $CC understands -b... " >&6; } 15658if ${lt_cv_prog_compiler__b+:} false; then : 15659 $as_echo_n "(cached) " >&6 15660else 15661 lt_cv_prog_compiler__b=no 15662 save_LDFLAGS="$LDFLAGS" 15663 LDFLAGS="$LDFLAGS -b" 15664 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15666 # The linker can only warn and ignore the option if not recognized 15667 # So say no if there are warnings 15668 if test -s conftest.err; then 15669 # Append any errors to the config.log. 15670 cat conftest.err 1>&5 15671 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15673 if diff conftest.exp conftest.er2 >/dev/null; then 15674 lt_cv_prog_compiler__b=yes 15675 fi 15676 else 15677 lt_cv_prog_compiler__b=yes 15678 fi 15679 fi 15680 $RM -r conftest* 15681 LDFLAGS="$save_LDFLAGS" 15682 15683fi 15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15685$as_echo "$lt_cv_prog_compiler__b" >&6; } 15686 15687if test x"$lt_cv_prog_compiler__b" = xyes; then 15688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15689else 15690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15691fi 15692 15693 ;; 15694 esac 15695 fi 15696 if test "$with_gnu_ld" = no; then 15697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15698 hardcode_libdir_separator=: 15699 15700 case $host_cpu in 15701 hppa*64*|ia64*) 15702 hardcode_direct=no 15703 hardcode_shlibpath_var=no 15704 ;; 15705 *) 15706 hardcode_direct=yes 15707 hardcode_direct_absolute=yes 15708 export_dynamic_flag_spec='${wl}-E' 15709 15710 # hardcode_minus_L: Not really in the search PATH, 15711 # but as the default location of the library. 15712 hardcode_minus_L=yes 15713 ;; 15714 esac 15715 fi 15716 ;; 15717 15718 irix5* | irix6* | nonstopux*) 15719 if test "$GCC" = yes; then 15720 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' 15721 # Try to use the -exported_symbol ld option, if it does not 15722 # work, assume that -exports_file does not work either and 15723 # implicitly export all symbols. 15724 # This should be the same for all languages, so no per-tag cache variable. 15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15726$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15727if ${lt_cv_irix_exported_symbol+:} false; then : 15728 $as_echo_n "(cached) " >&6 15729else 15730 save_LDFLAGS="$LDFLAGS" 15731 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15733/* end confdefs.h. */ 15734int foo (void) { return 0; } 15735_ACEOF 15736if ac_fn_c_try_link "$LINENO"; then : 15737 lt_cv_irix_exported_symbol=yes 15738else 15739 lt_cv_irix_exported_symbol=no 15740fi 15741rm -f core conftest.err conftest.$ac_objext \ 15742 conftest$ac_exeext conftest.$ac_ext 15743 LDFLAGS="$save_LDFLAGS" 15744fi 15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15746$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15747 if test "$lt_cv_irix_exported_symbol" = yes; then 15748 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' 15749 fi 15750 else 15751 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' 15752 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' 15753 fi 15754 archive_cmds_need_lc='no' 15755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15756 hardcode_libdir_separator=: 15757 inherit_rpath=yes 15758 link_all_deplibs=yes 15759 ;; 15760 15761 netbsd*) 15762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15764 else 15765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15766 fi 15767 hardcode_libdir_flag_spec='-R$libdir' 15768 hardcode_direct=yes 15769 hardcode_shlibpath_var=no 15770 ;; 15771 15772 newsos6) 15773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15774 hardcode_direct=yes 15775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15776 hardcode_libdir_separator=: 15777 hardcode_shlibpath_var=no 15778 ;; 15779 15780 *nto* | *qnx*) 15781 ;; 15782 15783 openbsd*) 15784 if test -f /usr/libexec/ld.so; then 15785 hardcode_direct=yes 15786 hardcode_shlibpath_var=no 15787 hardcode_direct_absolute=yes 15788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15792 export_dynamic_flag_spec='${wl}-E' 15793 else 15794 case $host_os in 15795 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15797 hardcode_libdir_flag_spec='-R$libdir' 15798 ;; 15799 *) 15800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15802 ;; 15803 esac 15804 fi 15805 else 15806 ld_shlibs=no 15807 fi 15808 ;; 15809 15810 os2*) 15811 hardcode_libdir_flag_spec='-L$libdir' 15812 hardcode_minus_L=yes 15813 allow_undefined_flag=unsupported 15814 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15815 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15816 ;; 15817 15818 osf3*) 15819 if test "$GCC" = yes; then 15820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15821 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' 15822 else 15823 allow_undefined_flag=' -expect_unresolved \*' 15824 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' 15825 fi 15826 archive_cmds_need_lc='no' 15827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15828 hardcode_libdir_separator=: 15829 ;; 15830 15831 osf4* | osf5*) # as osf3* with the addition of -msym flag 15832 if test "$GCC" = yes; then 15833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15834 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' 15835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15836 else 15837 allow_undefined_flag=' -expect_unresolved \*' 15838 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' 15839 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~ 15840 $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' 15841 15842 # Both c and cxx compiler support -rpath directly 15843 hardcode_libdir_flag_spec='-rpath $libdir' 15844 fi 15845 archive_cmds_need_lc='no' 15846 hardcode_libdir_separator=: 15847 ;; 15848 15849 solaris*) 15850 no_undefined_flag=' -z defs' 15851 if test "$GCC" = yes; then 15852 wlarc='${wl}' 15853 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15855 $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' 15856 else 15857 case `$CC -V 2>&1` in 15858 *"Compilers 5.0"*) 15859 wlarc='' 15860 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15863 ;; 15864 *) 15865 wlarc='${wl}' 15866 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15868 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15869 ;; 15870 esac 15871 fi 15872 hardcode_libdir_flag_spec='-R$libdir' 15873 hardcode_shlibpath_var=no 15874 case $host_os in 15875 solaris2.[0-5] | solaris2.[0-5].*) ;; 15876 *) 15877 # The compiler driver will combine and reorder linker options, 15878 # but understands `-z linker_flag'. GCC discards it without `$wl', 15879 # but is careful enough not to reorder. 15880 # Supported since Solaris 2.6 (maybe 2.5.1?) 15881 if test "$GCC" = yes; then 15882 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15883 else 15884 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15885 fi 15886 ;; 15887 esac 15888 link_all_deplibs=yes 15889 ;; 15890 15891 sunos4*) 15892 if test "x$host_vendor" = xsequent; then 15893 # Use $CC to link under sequent, because it throws in some extra .o 15894 # files that make .init and .fini sections work. 15895 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15896 else 15897 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15898 fi 15899 hardcode_libdir_flag_spec='-L$libdir' 15900 hardcode_direct=yes 15901 hardcode_minus_L=yes 15902 hardcode_shlibpath_var=no 15903 ;; 15904 15905 sysv4) 15906 case $host_vendor in 15907 sni) 15908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15909 hardcode_direct=yes # is this really true??? 15910 ;; 15911 siemens) 15912 ## LD is ld it makes a PLAMLIB 15913 ## CC just makes a GrossModule. 15914 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15915 reload_cmds='$CC -r -o $output$reload_objs' 15916 hardcode_direct=no 15917 ;; 15918 motorola) 15919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15920 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15921 ;; 15922 esac 15923 runpath_var='LD_RUN_PATH' 15924 hardcode_shlibpath_var=no 15925 ;; 15926 15927 sysv4.3*) 15928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15929 hardcode_shlibpath_var=no 15930 export_dynamic_flag_spec='-Bexport' 15931 ;; 15932 15933 sysv4*MP*) 15934 if test -d /usr/nec; then 15935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15936 hardcode_shlibpath_var=no 15937 runpath_var=LD_RUN_PATH 15938 hardcode_runpath_var=yes 15939 ld_shlibs=yes 15940 fi 15941 ;; 15942 15943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15944 no_undefined_flag='${wl}-z,text' 15945 archive_cmds_need_lc=no 15946 hardcode_shlibpath_var=no 15947 runpath_var='LD_RUN_PATH' 15948 15949 if test "$GCC" = yes; then 15950 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15951 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15952 else 15953 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15954 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15955 fi 15956 ;; 15957 15958 sysv5* | sco3.2v5* | sco5v6*) 15959 # Note: We can NOT use -z defs as we might desire, because we do not 15960 # link with -lc, and that would cause any symbols used from libc to 15961 # always be unresolved, which means just about no library would 15962 # ever link correctly. If we're not using GNU ld we use -z text 15963 # though, which does catch some bad symbols but isn't as heavy-handed 15964 # as -z defs. 15965 no_undefined_flag='${wl}-z,text' 15966 allow_undefined_flag='${wl}-z,nodefs' 15967 archive_cmds_need_lc=no 15968 hardcode_shlibpath_var=no 15969 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15970 hardcode_libdir_separator=':' 15971 link_all_deplibs=yes 15972 export_dynamic_flag_spec='${wl}-Bexport' 15973 runpath_var='LD_RUN_PATH' 15974 15975 if test "$GCC" = yes; then 15976 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15977 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15978 else 15979 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15980 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15981 fi 15982 ;; 15983 15984 uts4*) 15985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15986 hardcode_libdir_flag_spec='-L$libdir' 15987 hardcode_shlibpath_var=no 15988 ;; 15989 15990 *) 15991 ld_shlibs=no 15992 ;; 15993 esac 15994 15995 if test x$host_vendor = xsni; then 15996 case $host in 15997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15998 export_dynamic_flag_spec='${wl}-Blargedynsym' 15999 ;; 16000 esac 16001 fi 16002 fi 16003 16004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16005$as_echo "$ld_shlibs" >&6; } 16006test "$ld_shlibs" = no && can_build_shared=no 16007 16008with_gnu_ld=$with_gnu_ld 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024# 16025# Do we need to explicitly link libc? 16026# 16027case "x$archive_cmds_need_lc" in 16028x|xyes) 16029 # Assume -lc should be added 16030 archive_cmds_need_lc=yes 16031 16032 if test "$enable_shared" = yes && test "$GCC" = yes; then 16033 case $archive_cmds in 16034 *'~'*) 16035 # FIXME: we may have to deal with multi-command sequences. 16036 ;; 16037 '$CC '*) 16038 # Test whether the compiler implicitly links with -lc since on some 16039 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16040 # to ld, don't add -lc before -lgcc. 16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16042$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16043if ${lt_cv_archive_cmds_need_lc+:} false; then : 16044 $as_echo_n "(cached) " >&6 16045else 16046 $RM conftest* 16047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16048 16049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16050 (eval $ac_compile) 2>&5 16051 ac_status=$? 16052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16053 test $ac_status = 0; } 2>conftest.err; then 16054 soname=conftest 16055 lib=conftest 16056 libobjs=conftest.$ac_objext 16057 deplibs= 16058 wl=$lt_prog_compiler_wl 16059 pic_flag=$lt_prog_compiler_pic 16060 compiler_flags=-v 16061 linker_flags=-v 16062 verstring= 16063 output_objdir=. 16064 libname=conftest 16065 lt_save_allow_undefined_flag=$allow_undefined_flag 16066 allow_undefined_flag= 16067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16068 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16069 ac_status=$? 16070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16071 test $ac_status = 0; } 16072 then 16073 lt_cv_archive_cmds_need_lc=no 16074 else 16075 lt_cv_archive_cmds_need_lc=yes 16076 fi 16077 allow_undefined_flag=$lt_save_allow_undefined_flag 16078 else 16079 cat conftest.err 1>&5 16080 fi 16081 $RM conftest* 16082 16083fi 16084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16085$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16086 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16087 ;; 16088 esac 16089 fi 16090 ;; 16091esac 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16250$as_echo_n "checking dynamic linker characteristics... " >&6; } 16251 16252if test "$GCC" = yes; then 16253 case $host_os in 16254 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16255 *) lt_awk_arg="/^libraries:/" ;; 16256 esac 16257 case $host_os in 16258 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16259 *) lt_sed_strip_eq="s,=/,/,g" ;; 16260 esac 16261 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16262 case $lt_search_path_spec in 16263 *\;*) 16264 # if the path contains ";" then we assume it to be the separator 16265 # otherwise default to the standard path separator (i.e. ":") - it is 16266 # assumed that no part of a normal pathname contains ";" but that should 16267 # okay in the real world where ";" in dirpaths is itself problematic. 16268 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16269 ;; 16270 *) 16271 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16272 ;; 16273 esac 16274 # Ok, now we have the path, separated by spaces, we can step through it 16275 # and add multilib dir if necessary. 16276 lt_tmp_lt_search_path_spec= 16277 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16278 for lt_sys_path in $lt_search_path_spec; do 16279 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16280 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16281 else 16282 test -d "$lt_sys_path" && \ 16283 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16284 fi 16285 done 16286 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16287BEGIN {RS=" "; FS="/|\n";} { 16288 lt_foo=""; 16289 lt_count=0; 16290 for (lt_i = NF; lt_i > 0; lt_i--) { 16291 if ($lt_i != "" && $lt_i != ".") { 16292 if ($lt_i == "..") { 16293 lt_count++; 16294 } else { 16295 if (lt_count == 0) { 16296 lt_foo="/" $lt_i lt_foo; 16297 } else { 16298 lt_count--; 16299 } 16300 } 16301 } 16302 } 16303 if (lt_foo != "") { lt_freq[lt_foo]++; } 16304 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16305}'` 16306 # AWK program above erroneously prepends '/' to C:/dos/paths 16307 # for these hosts. 16308 case $host_os in 16309 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16310 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16311 esac 16312 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16313else 16314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16315fi 16316library_names_spec= 16317libname_spec='lib$name' 16318soname_spec= 16319shrext_cmds=".so" 16320postinstall_cmds= 16321postuninstall_cmds= 16322finish_cmds= 16323finish_eval= 16324shlibpath_var= 16325shlibpath_overrides_runpath=unknown 16326version_type=none 16327dynamic_linker="$host_os ld.so" 16328sys_lib_dlsearch_path_spec="/lib /usr/lib" 16329need_lib_prefix=unknown 16330hardcode_into_libs=no 16331 16332# when you set need_version to no, make sure it does not cause -set_version 16333# flags to be left without arguments 16334need_version=unknown 16335 16336case $host_os in 16337aix3*) 16338 version_type=linux 16339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16340 shlibpath_var=LIBPATH 16341 16342 # AIX 3 has no versioning support, so we append a major version to the name. 16343 soname_spec='${libname}${release}${shared_ext}$major' 16344 ;; 16345 16346aix[4-9]*) 16347 version_type=linux 16348 need_lib_prefix=no 16349 need_version=no 16350 hardcode_into_libs=yes 16351 if test "$host_cpu" = ia64; then 16352 # AIX 5 supports IA64 16353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16354 shlibpath_var=LD_LIBRARY_PATH 16355 else 16356 # With GCC up to 2.95.x, collect2 would create an import file 16357 # for dependence libraries. The import file would start with 16358 # the line `#! .'. This would cause the generated library to 16359 # depend on `.', always an invalid library. This was fixed in 16360 # development snapshots of GCC prior to 3.0. 16361 case $host_os in 16362 aix4 | aix4.[01] | aix4.[01].*) 16363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16364 echo ' yes ' 16365 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16366 : 16367 else 16368 can_build_shared=no 16369 fi 16370 ;; 16371 esac 16372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16373 # soname into executable. Probably we can add versioning support to 16374 # collect2, so additional links can be useful in future. 16375 if test "$aix_use_runtimelinking" = yes; then 16376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16377 # instead of lib<name>.a to let people know that these are not 16378 # typical AIX shared libraries. 16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16380 else 16381 # We preserve .a as extension for shared libraries through AIX4.2 16382 # and later when we are not doing run time linking. 16383 library_names_spec='${libname}${release}.a $libname.a' 16384 soname_spec='${libname}${release}${shared_ext}$major' 16385 fi 16386 shlibpath_var=LIBPATH 16387 fi 16388 ;; 16389 16390amigaos*) 16391 case $host_cpu in 16392 powerpc) 16393 # Since July 2007 AmigaOS4 officially supports .so libraries. 16394 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16396 ;; 16397 m68k) 16398 library_names_spec='$libname.ixlibrary $libname.a' 16399 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16400 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 16401 ;; 16402 esac 16403 ;; 16404 16405beos*) 16406 library_names_spec='${libname}${shared_ext}' 16407 dynamic_linker="$host_os ld.so" 16408 shlibpath_var=LIBRARY_PATH 16409 ;; 16410 16411bsdi[45]*) 16412 version_type=linux 16413 need_version=no 16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16415 soname_spec='${libname}${release}${shared_ext}$major' 16416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16417 shlibpath_var=LD_LIBRARY_PATH 16418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16420 # the default ld.so.conf also contains /usr/contrib/lib and 16421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16422 # libtool to hard-code these into programs 16423 ;; 16424 16425cygwin* | mingw* | pw32* | cegcc*) 16426 version_type=windows 16427 shrext_cmds=".dll" 16428 need_version=no 16429 need_lib_prefix=no 16430 16431 case $GCC,$cc_basename in 16432 yes,*) 16433 # gcc 16434 library_names_spec='$libname.dll.a' 16435 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16436 postinstall_cmds='base_file=`basename \${file}`~ 16437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16438 dldir=$destdir/`dirname \$dlpath`~ 16439 test -d \$dldir || mkdir -p \$dldir~ 16440 $install_prog $dir/$dlname \$dldir/$dlname~ 16441 chmod a+x \$dldir/$dlname~ 16442 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16443 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16444 fi' 16445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16446 dlpath=$dir/\$dldll~ 16447 $RM \$dlpath' 16448 shlibpath_overrides_runpath=yes 16449 16450 case $host_os in 16451 cygwin*) 16452 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16453 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16454 16455 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16456 ;; 16457 mingw* | cegcc*) 16458 # MinGW DLLs use traditional 'lib' prefix 16459 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16460 ;; 16461 pw32*) 16462 # pw32 DLLs use 'pw' prefix rather than 'lib' 16463 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16464 ;; 16465 esac 16466 dynamic_linker='Win32 ld.exe' 16467 ;; 16468 16469 *,cl*) 16470 # Native MSVC 16471 libname_spec='$name' 16472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16473 library_names_spec='${libname}.dll.lib' 16474 16475 case $build_os in 16476 mingw*) 16477 sys_lib_search_path_spec= 16478 lt_save_ifs=$IFS 16479 IFS=';' 16480 for lt_path in $LIB 16481 do 16482 IFS=$lt_save_ifs 16483 # Let DOS variable expansion print the short 8.3 style file name. 16484 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16485 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16486 done 16487 IFS=$lt_save_ifs 16488 # Convert to MSYS style. 16489 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16490 ;; 16491 cygwin*) 16492 # Convert to unix form, then to dos form, then back to unix form 16493 # but this time dos style (no spaces!) so that the unix form looks 16494 # like /cygdrive/c/PROGRA~1:/cygdr... 16495 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16496 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16497 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16498 ;; 16499 *) 16500 sys_lib_search_path_spec="$LIB" 16501 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16502 # It is most probably a Windows format PATH. 16503 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16504 else 16505 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16506 fi 16507 # FIXME: find the short name or the path components, as spaces are 16508 # common. (e.g. "Program Files" -> "PROGRA~1") 16509 ;; 16510 esac 16511 16512 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16513 postinstall_cmds='base_file=`basename \${file}`~ 16514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16515 dldir=$destdir/`dirname \$dlpath`~ 16516 test -d \$dldir || mkdir -p \$dldir~ 16517 $install_prog $dir/$dlname \$dldir/$dlname' 16518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16519 dlpath=$dir/\$dldll~ 16520 $RM \$dlpath' 16521 shlibpath_overrides_runpath=yes 16522 dynamic_linker='Win32 link.exe' 16523 ;; 16524 16525 *) 16526 # Assume MSVC wrapper 16527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16528 dynamic_linker='Win32 ld.exe' 16529 ;; 16530 esac 16531 # FIXME: first we should search . and the directory the executable is in 16532 shlibpath_var=PATH 16533 ;; 16534 16535darwin* | rhapsody*) 16536 dynamic_linker="$host_os dyld" 16537 version_type=darwin 16538 need_lib_prefix=no 16539 need_version=no 16540 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16541 soname_spec='${libname}${release}${major}$shared_ext' 16542 shlibpath_overrides_runpath=yes 16543 shlibpath_var=DYLD_LIBRARY_PATH 16544 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16545 16546 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16547 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16548 ;; 16549 16550dgux*) 16551 version_type=linux 16552 need_lib_prefix=no 16553 need_version=no 16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16555 soname_spec='${libname}${release}${shared_ext}$major' 16556 shlibpath_var=LD_LIBRARY_PATH 16557 ;; 16558 16559freebsd1*) 16560 dynamic_linker=no 16561 ;; 16562 16563freebsd* | dragonfly*) 16564 # DragonFly does not have aout. When/if they implement a new 16565 # versioning mechanism, adjust this. 16566 if test -x /usr/bin/objformat; then 16567 objformat=`/usr/bin/objformat` 16568 else 16569 case $host_os in 16570 freebsd[123]*) objformat=aout ;; 16571 *) objformat=elf ;; 16572 esac 16573 fi 16574 # Handle Gentoo/FreeBSD as it was Linux 16575 case $host_vendor in 16576 gentoo) 16577 version_type=linux ;; 16578 *) 16579 version_type=freebsd-$objformat ;; 16580 esac 16581 16582 case $version_type in 16583 freebsd-elf*) 16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16585 need_version=no 16586 need_lib_prefix=no 16587 ;; 16588 freebsd-*) 16589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16590 need_version=yes 16591 ;; 16592 linux) 16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16594 soname_spec='${libname}${release}${shared_ext}$major' 16595 need_lib_prefix=no 16596 need_version=no 16597 ;; 16598 esac 16599 shlibpath_var=LD_LIBRARY_PATH 16600 case $host_os in 16601 freebsd2*) 16602 shlibpath_overrides_runpath=yes 16603 ;; 16604 freebsd3.[01]* | freebsdelf3.[01]*) 16605 shlibpath_overrides_runpath=yes 16606 hardcode_into_libs=yes 16607 ;; 16608 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16609 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16610 shlibpath_overrides_runpath=no 16611 hardcode_into_libs=yes 16612 ;; 16613 *) # from 4.6 on, and DragonFly 16614 shlibpath_overrides_runpath=yes 16615 hardcode_into_libs=yes 16616 ;; 16617 esac 16618 ;; 16619 16620gnu*) 16621 version_type=linux 16622 need_lib_prefix=no 16623 need_version=no 16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16625 soname_spec='${libname}${release}${shared_ext}$major' 16626 shlibpath_var=LD_LIBRARY_PATH 16627 hardcode_into_libs=yes 16628 ;; 16629 16630haiku*) 16631 version_type=linux 16632 need_lib_prefix=no 16633 need_version=no 16634 dynamic_linker="$host_os runtime_loader" 16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16636 soname_spec='${libname}${release}${shared_ext}$major' 16637 shlibpath_var=LIBRARY_PATH 16638 shlibpath_overrides_runpath=yes 16639 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16640 hardcode_into_libs=yes 16641 ;; 16642 16643hpux9* | hpux10* | hpux11*) 16644 # Give a soname corresponding to the major version so that dld.sl refuses to 16645 # link against other versions. 16646 version_type=sunos 16647 need_lib_prefix=no 16648 need_version=no 16649 case $host_cpu in 16650 ia64*) 16651 shrext_cmds='.so' 16652 hardcode_into_libs=yes 16653 dynamic_linker="$host_os dld.so" 16654 shlibpath_var=LD_LIBRARY_PATH 16655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16657 soname_spec='${libname}${release}${shared_ext}$major' 16658 if test "X$HPUX_IA64_MODE" = X32; then 16659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16660 else 16661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16662 fi 16663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16664 ;; 16665 hppa*64*) 16666 shrext_cmds='.sl' 16667 hardcode_into_libs=yes 16668 dynamic_linker="$host_os dld.sl" 16669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16672 soname_spec='${libname}${release}${shared_ext}$major' 16673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16675 ;; 16676 *) 16677 shrext_cmds='.sl' 16678 dynamic_linker="$host_os dld.sl" 16679 shlibpath_var=SHLIB_PATH 16680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16682 soname_spec='${libname}${release}${shared_ext}$major' 16683 ;; 16684 esac 16685 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16686 postinstall_cmds='chmod 555 $lib' 16687 # or fails outright, so override atomically: 16688 install_override_mode=555 16689 ;; 16690 16691interix[3-9]*) 16692 version_type=linux 16693 need_lib_prefix=no 16694 need_version=no 16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16696 soname_spec='${libname}${release}${shared_ext}$major' 16697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16698 shlibpath_var=LD_LIBRARY_PATH 16699 shlibpath_overrides_runpath=no 16700 hardcode_into_libs=yes 16701 ;; 16702 16703irix5* | irix6* | nonstopux*) 16704 case $host_os in 16705 nonstopux*) version_type=nonstopux ;; 16706 *) 16707 if test "$lt_cv_prog_gnu_ld" = yes; then 16708 version_type=linux 16709 else 16710 version_type=irix 16711 fi ;; 16712 esac 16713 need_lib_prefix=no 16714 need_version=no 16715 soname_spec='${libname}${release}${shared_ext}$major' 16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16717 case $host_os in 16718 irix5* | nonstopux*) 16719 libsuff= shlibsuff= 16720 ;; 16721 *) 16722 case $LD in # libtool.m4 will add one of these switches to LD 16723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16724 libsuff= shlibsuff= libmagic=32-bit;; 16725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16726 libsuff=32 shlibsuff=N32 libmagic=N32;; 16727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16728 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16729 *) libsuff= shlibsuff= libmagic=never-match;; 16730 esac 16731 ;; 16732 esac 16733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16734 shlibpath_overrides_runpath=no 16735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16737 hardcode_into_libs=yes 16738 ;; 16739 16740# No shared lib support for Linux oldld, aout, or coff. 16741linux*oldld* | linux*aout* | linux*coff*) 16742 dynamic_linker=no 16743 ;; 16744 16745# This must be Linux ELF. 16746linux* | k*bsd*-gnu | kopensolaris*-gnu) 16747 version_type=linux 16748 need_lib_prefix=no 16749 need_version=no 16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16751 soname_spec='${libname}${release}${shared_ext}$major' 16752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16753 shlibpath_var=LD_LIBRARY_PATH 16754 shlibpath_overrides_runpath=no 16755 16756 # Some binutils ld are patched to set DT_RUNPATH 16757 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16758 $as_echo_n "(cached) " >&6 16759else 16760 lt_cv_shlibpath_overrides_runpath=no 16761 save_LDFLAGS=$LDFLAGS 16762 save_libdir=$libdir 16763 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16764 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767 16768int 16769main () 16770{ 16771 16772 ; 16773 return 0; 16774} 16775_ACEOF 16776if ac_fn_c_try_link "$LINENO"; then : 16777 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16778 lt_cv_shlibpath_overrides_runpath=yes 16779fi 16780fi 16781rm -f core conftest.err conftest.$ac_objext \ 16782 conftest$ac_exeext conftest.$ac_ext 16783 LDFLAGS=$save_LDFLAGS 16784 libdir=$save_libdir 16785 16786fi 16787 16788 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16789 16790 # This implies no fast_install, which is unacceptable. 16791 # Some rework will be needed to allow for fast_install 16792 # before this can be enabled. 16793 hardcode_into_libs=yes 16794 16795 # Append ld.so.conf contents to the search path 16796 if test -f /etc/ld.so.conf; then 16797 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' ' '` 16798 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16799 fi 16800 16801 # We used to test for /lib/ld.so.1 and disable shared libraries on 16802 # powerpc, because MkLinux only supported shared libraries with the 16803 # GNU dynamic linker. Since this was broken with cross compilers, 16804 # most powerpc-linux boxes support dynamic linking these days and 16805 # people can always --disable-shared, the test was removed, and we 16806 # assume the GNU/Linux dynamic linker is in use. 16807 dynamic_linker='GNU/Linux ld.so' 16808 ;; 16809 16810netbsd*) 16811 version_type=sunos 16812 need_lib_prefix=no 16813 need_version=no 16814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16817 dynamic_linker='NetBSD (a.out) ld.so' 16818 else 16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16820 soname_spec='${libname}${release}${shared_ext}$major' 16821 dynamic_linker='NetBSD ld.elf_so' 16822 fi 16823 shlibpath_var=LD_LIBRARY_PATH 16824 shlibpath_overrides_runpath=yes 16825 hardcode_into_libs=yes 16826 ;; 16827 16828newsos6) 16829 version_type=linux 16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16831 shlibpath_var=LD_LIBRARY_PATH 16832 shlibpath_overrides_runpath=yes 16833 ;; 16834 16835*nto* | *qnx*) 16836 version_type=qnx 16837 need_lib_prefix=no 16838 need_version=no 16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16840 soname_spec='${libname}${release}${shared_ext}$major' 16841 shlibpath_var=LD_LIBRARY_PATH 16842 shlibpath_overrides_runpath=no 16843 hardcode_into_libs=yes 16844 dynamic_linker='ldqnx.so' 16845 ;; 16846 16847openbsd*) 16848 version_type=sunos 16849 sys_lib_dlsearch_path_spec="/usr/lib" 16850 need_lib_prefix=no 16851 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16852 case $host_os in 16853 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16854 *) need_version=no ;; 16855 esac 16856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16858 shlibpath_var=LD_LIBRARY_PATH 16859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16860 case $host_os in 16861 openbsd2.[89] | openbsd2.[89].*) 16862 shlibpath_overrides_runpath=no 16863 ;; 16864 *) 16865 shlibpath_overrides_runpath=yes 16866 ;; 16867 esac 16868 else 16869 shlibpath_overrides_runpath=yes 16870 fi 16871 ;; 16872 16873os2*) 16874 libname_spec='$name' 16875 shrext_cmds=".dll" 16876 need_lib_prefix=no 16877 library_names_spec='$libname${shared_ext} $libname.a' 16878 dynamic_linker='OS/2 ld.exe' 16879 shlibpath_var=LIBPATH 16880 ;; 16881 16882osf3* | osf4* | osf5*) 16883 version_type=osf 16884 need_lib_prefix=no 16885 need_version=no 16886 soname_spec='${libname}${release}${shared_ext}$major' 16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16888 shlibpath_var=LD_LIBRARY_PATH 16889 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16890 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16891 ;; 16892 16893rdos*) 16894 dynamic_linker=no 16895 ;; 16896 16897solaris*) 16898 version_type=linux 16899 need_lib_prefix=no 16900 need_version=no 16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16902 soname_spec='${libname}${release}${shared_ext}$major' 16903 shlibpath_var=LD_LIBRARY_PATH 16904 shlibpath_overrides_runpath=yes 16905 hardcode_into_libs=yes 16906 # ldd complains unless libraries are executable 16907 postinstall_cmds='chmod +x $lib' 16908 ;; 16909 16910sunos4*) 16911 version_type=sunos 16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16913 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16914 shlibpath_var=LD_LIBRARY_PATH 16915 shlibpath_overrides_runpath=yes 16916 if test "$with_gnu_ld" = yes; then 16917 need_lib_prefix=no 16918 fi 16919 need_version=yes 16920 ;; 16921 16922sysv4 | sysv4.3*) 16923 version_type=linux 16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16925 soname_spec='${libname}${release}${shared_ext}$major' 16926 shlibpath_var=LD_LIBRARY_PATH 16927 case $host_vendor in 16928 sni) 16929 shlibpath_overrides_runpath=no 16930 need_lib_prefix=no 16931 runpath_var=LD_RUN_PATH 16932 ;; 16933 siemens) 16934 need_lib_prefix=no 16935 ;; 16936 motorola) 16937 need_lib_prefix=no 16938 need_version=no 16939 shlibpath_overrides_runpath=no 16940 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16941 ;; 16942 esac 16943 ;; 16944 16945sysv4*MP*) 16946 if test -d /usr/nec ;then 16947 version_type=linux 16948 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16949 soname_spec='$libname${shared_ext}.$major' 16950 shlibpath_var=LD_LIBRARY_PATH 16951 fi 16952 ;; 16953 16954sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16955 version_type=freebsd-elf 16956 need_lib_prefix=no 16957 need_version=no 16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16959 soname_spec='${libname}${release}${shared_ext}$major' 16960 shlibpath_var=LD_LIBRARY_PATH 16961 shlibpath_overrides_runpath=yes 16962 hardcode_into_libs=yes 16963 if test "$with_gnu_ld" = yes; then 16964 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16965 else 16966 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16967 case $host_os in 16968 sco3.2v5*) 16969 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16970 ;; 16971 esac 16972 fi 16973 sys_lib_dlsearch_path_spec='/usr/lib' 16974 ;; 16975 16976tpf*) 16977 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16978 version_type=linux 16979 need_lib_prefix=no 16980 need_version=no 16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16982 shlibpath_var=LD_LIBRARY_PATH 16983 shlibpath_overrides_runpath=no 16984 hardcode_into_libs=yes 16985 ;; 16986 16987uts4*) 16988 version_type=linux 16989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16990 soname_spec='${libname}${release}${shared_ext}$major' 16991 shlibpath_var=LD_LIBRARY_PATH 16992 ;; 16993 16994*) 16995 dynamic_linker=no 16996 ;; 16997esac 16998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16999$as_echo "$dynamic_linker" >&6; } 17000test "$dynamic_linker" = no && can_build_shared=no 17001 17002variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17003if test "$GCC" = yes; then 17004 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17005fi 17006 17007if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17008 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17009fi 17010if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17011 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17012fi 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17106$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17107hardcode_action= 17108if test -n "$hardcode_libdir_flag_spec" || 17109 test -n "$runpath_var" || 17110 test "X$hardcode_automatic" = "Xyes" ; then 17111 17112 # We can hardcode non-existent directories. 17113 if test "$hardcode_direct" != no && 17114 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17115 # have to relink, otherwise we might link with an installed library 17116 # when we should be linking with a yet-to-be-installed one 17117 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17118 test "$hardcode_minus_L" != no; then 17119 # Linking always hardcodes the temporary library directory. 17120 hardcode_action=relink 17121 else 17122 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17123 hardcode_action=immediate 17124 fi 17125else 17126 # We cannot hardcode anything, or else we can only hardcode existing 17127 # directories. 17128 hardcode_action=unsupported 17129fi 17130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17131$as_echo "$hardcode_action" >&6; } 17132 17133if test "$hardcode_action" = relink || 17134 test "$inherit_rpath" = yes; then 17135 # Fast installation is not supported 17136 enable_fast_install=no 17137elif test "$shlibpath_overrides_runpath" = yes || 17138 test "$enable_shared" = no; then 17139 # Fast installation is not necessary 17140 enable_fast_install=needless 17141fi 17142 17143 17144 17145 17146 17147 17148 if test "x$enable_dlopen" != xyes; then 17149 enable_dlopen=unknown 17150 enable_dlopen_self=unknown 17151 enable_dlopen_self_static=unknown 17152else 17153 lt_cv_dlopen=no 17154 lt_cv_dlopen_libs= 17155 17156 case $host_os in 17157 beos*) 17158 lt_cv_dlopen="load_add_on" 17159 lt_cv_dlopen_libs= 17160 lt_cv_dlopen_self=yes 17161 ;; 17162 17163 mingw* | pw32* | cegcc*) 17164 lt_cv_dlopen="LoadLibrary" 17165 lt_cv_dlopen_libs= 17166 ;; 17167 17168 cygwin*) 17169 lt_cv_dlopen="dlopen" 17170 lt_cv_dlopen_libs= 17171 ;; 17172 17173 darwin*) 17174 # if libdl is installed we need to link against it 17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17176$as_echo_n "checking for dlopen in -ldl... " >&6; } 17177if ${ac_cv_lib_dl_dlopen+:} false; then : 17178 $as_echo_n "(cached) " >&6 17179else 17180 ac_check_lib_save_LIBS=$LIBS 17181LIBS="-ldl $LIBS" 17182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17183/* end confdefs.h. */ 17184 17185/* Override any GCC internal prototype to avoid an error. 17186 Use char because int might match the return type of a GCC 17187 builtin and then its argument prototype would still apply. */ 17188#ifdef __cplusplus 17189extern "C" 17190#endif 17191char dlopen (); 17192int 17193main () 17194{ 17195return dlopen (); 17196 ; 17197 return 0; 17198} 17199_ACEOF 17200if ac_fn_c_try_link "$LINENO"; then : 17201 ac_cv_lib_dl_dlopen=yes 17202else 17203 ac_cv_lib_dl_dlopen=no 17204fi 17205rm -f core conftest.err conftest.$ac_objext \ 17206 conftest$ac_exeext conftest.$ac_ext 17207LIBS=$ac_check_lib_save_LIBS 17208fi 17209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17210$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17211if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17213else 17214 17215 lt_cv_dlopen="dyld" 17216 lt_cv_dlopen_libs= 17217 lt_cv_dlopen_self=yes 17218 17219fi 17220 17221 ;; 17222 17223 *) 17224 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17225if test "x$ac_cv_func_shl_load" = xyes; then : 17226 lt_cv_dlopen="shl_load" 17227else 17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17229$as_echo_n "checking for shl_load in -ldld... " >&6; } 17230if ${ac_cv_lib_dld_shl_load+:} false; then : 17231 $as_echo_n "(cached) " >&6 17232else 17233 ac_check_lib_save_LIBS=$LIBS 17234LIBS="-ldld $LIBS" 17235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17236/* end confdefs.h. */ 17237 17238/* Override any GCC internal prototype to avoid an error. 17239 Use char because int might match the return type of a GCC 17240 builtin and then its argument prototype would still apply. */ 17241#ifdef __cplusplus 17242extern "C" 17243#endif 17244char shl_load (); 17245int 17246main () 17247{ 17248return shl_load (); 17249 ; 17250 return 0; 17251} 17252_ACEOF 17253if ac_fn_c_try_link "$LINENO"; then : 17254 ac_cv_lib_dld_shl_load=yes 17255else 17256 ac_cv_lib_dld_shl_load=no 17257fi 17258rm -f core conftest.err conftest.$ac_objext \ 17259 conftest$ac_exeext conftest.$ac_ext 17260LIBS=$ac_check_lib_save_LIBS 17261fi 17262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17263$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17264if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17266else 17267 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17268if test "x$ac_cv_func_dlopen" = xyes; then : 17269 lt_cv_dlopen="dlopen" 17270else 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17272$as_echo_n "checking for dlopen in -ldl... " >&6; } 17273if ${ac_cv_lib_dl_dlopen+:} false; then : 17274 $as_echo_n "(cached) " >&6 17275else 17276 ac_check_lib_save_LIBS=$LIBS 17277LIBS="-ldl $LIBS" 17278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17279/* end confdefs.h. */ 17280 17281/* Override any GCC internal prototype to avoid an error. 17282 Use char because int might match the return type of a GCC 17283 builtin and then its argument prototype would still apply. */ 17284#ifdef __cplusplus 17285extern "C" 17286#endif 17287char dlopen (); 17288int 17289main () 17290{ 17291return dlopen (); 17292 ; 17293 return 0; 17294} 17295_ACEOF 17296if ac_fn_c_try_link "$LINENO"; then : 17297 ac_cv_lib_dl_dlopen=yes 17298else 17299 ac_cv_lib_dl_dlopen=no 17300fi 17301rm -f core conftest.err conftest.$ac_objext \ 17302 conftest$ac_exeext conftest.$ac_ext 17303LIBS=$ac_check_lib_save_LIBS 17304fi 17305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17306$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17307if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17309else 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17311$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17312if ${ac_cv_lib_svld_dlopen+:} false; then : 17313 $as_echo_n "(cached) " >&6 17314else 17315 ac_check_lib_save_LIBS=$LIBS 17316LIBS="-lsvld $LIBS" 17317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17318/* end confdefs.h. */ 17319 17320/* Override any GCC internal prototype to avoid an error. 17321 Use char because int might match the return type of a GCC 17322 builtin and then its argument prototype would still apply. */ 17323#ifdef __cplusplus 17324extern "C" 17325#endif 17326char dlopen (); 17327int 17328main () 17329{ 17330return dlopen (); 17331 ; 17332 return 0; 17333} 17334_ACEOF 17335if ac_fn_c_try_link "$LINENO"; then : 17336 ac_cv_lib_svld_dlopen=yes 17337else 17338 ac_cv_lib_svld_dlopen=no 17339fi 17340rm -f core conftest.err conftest.$ac_objext \ 17341 conftest$ac_exeext conftest.$ac_ext 17342LIBS=$ac_check_lib_save_LIBS 17343fi 17344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17345$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17346if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17348else 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17350$as_echo_n "checking for dld_link in -ldld... " >&6; } 17351if ${ac_cv_lib_dld_dld_link+:} false; then : 17352 $as_echo_n "(cached) " >&6 17353else 17354 ac_check_lib_save_LIBS=$LIBS 17355LIBS="-ldld $LIBS" 17356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17357/* end confdefs.h. */ 17358 17359/* Override any GCC internal prototype to avoid an error. 17360 Use char because int might match the return type of a GCC 17361 builtin and then its argument prototype would still apply. */ 17362#ifdef __cplusplus 17363extern "C" 17364#endif 17365char dld_link (); 17366int 17367main () 17368{ 17369return dld_link (); 17370 ; 17371 return 0; 17372} 17373_ACEOF 17374if ac_fn_c_try_link "$LINENO"; then : 17375 ac_cv_lib_dld_dld_link=yes 17376else 17377 ac_cv_lib_dld_dld_link=no 17378fi 17379rm -f core conftest.err conftest.$ac_objext \ 17380 conftest$ac_exeext conftest.$ac_ext 17381LIBS=$ac_check_lib_save_LIBS 17382fi 17383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17384$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17385if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17386 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17387fi 17388 17389 17390fi 17391 17392 17393fi 17394 17395 17396fi 17397 17398 17399fi 17400 17401 17402fi 17403 17404 ;; 17405 esac 17406 17407 if test "x$lt_cv_dlopen" != xno; then 17408 enable_dlopen=yes 17409 else 17410 enable_dlopen=no 17411 fi 17412 17413 case $lt_cv_dlopen in 17414 dlopen) 17415 save_CPPFLAGS="$CPPFLAGS" 17416 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17417 17418 save_LDFLAGS="$LDFLAGS" 17419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17420 17421 save_LIBS="$LIBS" 17422 LIBS="$lt_cv_dlopen_libs $LIBS" 17423 17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17425$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17426if ${lt_cv_dlopen_self+:} false; then : 17427 $as_echo_n "(cached) " >&6 17428else 17429 if test "$cross_compiling" = yes; then : 17430 lt_cv_dlopen_self=cross 17431else 17432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17433 lt_status=$lt_dlunknown 17434 cat > conftest.$ac_ext <<_LT_EOF 17435#line $LINENO "configure" 17436#include "confdefs.h" 17437 17438#if HAVE_DLFCN_H 17439#include <dlfcn.h> 17440#endif 17441 17442#include <stdio.h> 17443 17444#ifdef RTLD_GLOBAL 17445# define LT_DLGLOBAL RTLD_GLOBAL 17446#else 17447# ifdef DL_GLOBAL 17448# define LT_DLGLOBAL DL_GLOBAL 17449# else 17450# define LT_DLGLOBAL 0 17451# endif 17452#endif 17453 17454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17455 find out it does not work in some platform. */ 17456#ifndef LT_DLLAZY_OR_NOW 17457# ifdef RTLD_LAZY 17458# define LT_DLLAZY_OR_NOW RTLD_LAZY 17459# else 17460# ifdef DL_LAZY 17461# define LT_DLLAZY_OR_NOW DL_LAZY 17462# else 17463# ifdef RTLD_NOW 17464# define LT_DLLAZY_OR_NOW RTLD_NOW 17465# else 17466# ifdef DL_NOW 17467# define LT_DLLAZY_OR_NOW DL_NOW 17468# else 17469# define LT_DLLAZY_OR_NOW 0 17470# endif 17471# endif 17472# endif 17473# endif 17474#endif 17475 17476/* When -fvisbility=hidden is used, assume the code has been annotated 17477 correspondingly for the symbols needed. */ 17478#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17479int fnord () __attribute__((visibility("default"))); 17480#endif 17481 17482int fnord () { return 42; } 17483int main () 17484{ 17485 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17486 int status = $lt_dlunknown; 17487 17488 if (self) 17489 { 17490 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17491 else 17492 { 17493 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17494 else puts (dlerror ()); 17495 } 17496 /* dlclose (self); */ 17497 } 17498 else 17499 puts (dlerror ()); 17500 17501 return status; 17502} 17503_LT_EOF 17504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17505 (eval $ac_link) 2>&5 17506 ac_status=$? 17507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17508 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17509 (./conftest; exit; ) >&5 2>/dev/null 17510 lt_status=$? 17511 case x$lt_status in 17512 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17513 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17514 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17515 esac 17516 else : 17517 # compilation failed 17518 lt_cv_dlopen_self=no 17519 fi 17520fi 17521rm -fr conftest* 17522 17523 17524fi 17525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17526$as_echo "$lt_cv_dlopen_self" >&6; } 17527 17528 if test "x$lt_cv_dlopen_self" = xyes; then 17529 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17531$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17532if ${lt_cv_dlopen_self_static+:} false; then : 17533 $as_echo_n "(cached) " >&6 17534else 17535 if test "$cross_compiling" = yes; then : 17536 lt_cv_dlopen_self_static=cross 17537else 17538 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17539 lt_status=$lt_dlunknown 17540 cat > conftest.$ac_ext <<_LT_EOF 17541#line $LINENO "configure" 17542#include "confdefs.h" 17543 17544#if HAVE_DLFCN_H 17545#include <dlfcn.h> 17546#endif 17547 17548#include <stdio.h> 17549 17550#ifdef RTLD_GLOBAL 17551# define LT_DLGLOBAL RTLD_GLOBAL 17552#else 17553# ifdef DL_GLOBAL 17554# define LT_DLGLOBAL DL_GLOBAL 17555# else 17556# define LT_DLGLOBAL 0 17557# endif 17558#endif 17559 17560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17561 find out it does not work in some platform. */ 17562#ifndef LT_DLLAZY_OR_NOW 17563# ifdef RTLD_LAZY 17564# define LT_DLLAZY_OR_NOW RTLD_LAZY 17565# else 17566# ifdef DL_LAZY 17567# define LT_DLLAZY_OR_NOW DL_LAZY 17568# else 17569# ifdef RTLD_NOW 17570# define LT_DLLAZY_OR_NOW RTLD_NOW 17571# else 17572# ifdef DL_NOW 17573# define LT_DLLAZY_OR_NOW DL_NOW 17574# else 17575# define LT_DLLAZY_OR_NOW 0 17576# endif 17577# endif 17578# endif 17579# endif 17580#endif 17581 17582/* When -fvisbility=hidden is used, assume the code has been annotated 17583 correspondingly for the symbols needed. */ 17584#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17585int fnord () __attribute__((visibility("default"))); 17586#endif 17587 17588int fnord () { return 42; } 17589int main () 17590{ 17591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17592 int status = $lt_dlunknown; 17593 17594 if (self) 17595 { 17596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17597 else 17598 { 17599 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17600 else puts (dlerror ()); 17601 } 17602 /* dlclose (self); */ 17603 } 17604 else 17605 puts (dlerror ()); 17606 17607 return status; 17608} 17609_LT_EOF 17610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17611 (eval $ac_link) 2>&5 17612 ac_status=$? 17613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17614 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17615 (./conftest; exit; ) >&5 2>/dev/null 17616 lt_status=$? 17617 case x$lt_status in 17618 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17619 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17620 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17621 esac 17622 else : 17623 # compilation failed 17624 lt_cv_dlopen_self_static=no 17625 fi 17626fi 17627rm -fr conftest* 17628 17629 17630fi 17631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17632$as_echo "$lt_cv_dlopen_self_static" >&6; } 17633 fi 17634 17635 CPPFLAGS="$save_CPPFLAGS" 17636 LDFLAGS="$save_LDFLAGS" 17637 LIBS="$save_LIBS" 17638 ;; 17639 esac 17640 17641 case $lt_cv_dlopen_self in 17642 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17643 *) enable_dlopen_self=unknown ;; 17644 esac 17645 17646 case $lt_cv_dlopen_self_static in 17647 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17648 *) enable_dlopen_self_static=unknown ;; 17649 esac 17650fi 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668striplib= 17669old_striplib= 17670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17671$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17672if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17673 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17674 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17676$as_echo "yes" >&6; } 17677else 17678# FIXME - insert some real tests, host_os isn't really good enough 17679 case $host_os in 17680 darwin*) 17681 if test -n "$STRIP" ; then 17682 striplib="$STRIP -x" 17683 old_striplib="$STRIP -S" 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17685$as_echo "yes" >&6; } 17686 else 17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17688$as_echo "no" >&6; } 17689 fi 17690 ;; 17691 *) 17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17693$as_echo "no" >&6; } 17694 ;; 17695 esac 17696fi 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 # Report which library types will actually be built 17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17711$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17713$as_echo "$can_build_shared" >&6; } 17714 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17716$as_echo_n "checking whether to build shared libraries... " >&6; } 17717 test "$can_build_shared" = "no" && enable_shared=no 17718 17719 # On AIX, shared libraries and static libraries use the same namespace, and 17720 # are all built from PIC. 17721 case $host_os in 17722 aix3*) 17723 test "$enable_shared" = yes && enable_static=no 17724 if test -n "$RANLIB"; then 17725 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17726 postinstall_cmds='$RANLIB $lib' 17727 fi 17728 ;; 17729 17730 aix[4-9]*) 17731 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17732 test "$enable_shared" = yes && enable_static=no 17733 fi 17734 ;; 17735 esac 17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17737$as_echo "$enable_shared" >&6; } 17738 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17740$as_echo_n "checking whether to build static libraries... " >&6; } 17741 # Make sure either enable_shared or enable_static is yes. 17742 test "$enable_shared" = yes || enable_static=yes 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17744$as_echo "$enable_static" >&6; } 17745 17746 17747 17748 17749fi 17750ac_ext=c 17751ac_cpp='$CPP $CPPFLAGS' 17752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17754ac_compiler_gnu=$ac_cv_c_compiler_gnu 17755 17756CC="$lt_save_CC" 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 ac_config_commands="$ac_config_commands libtool" 17771 17772 17773 17774 17775# Only expand once: 17776 17777 17778 17779 17780 17781# Define a configure option for an alternate module directory 17782 17783# Check whether --with-xorg-module-dir was given. 17784if test "${with_xorg_module_dir+set}" = set; then : 17785 withval=$with_xorg_module_dir; moduledir="$withval" 17786else 17787 moduledir="$libdir/xorg/modules" 17788fi 17789 17790 17791# Obtain compiler/linker options for the driver dependencies 17792 17793pkg_failed=no 17794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 17795$as_echo_n "checking for XORG... " >&6; } 17796 17797if test -n "$XORG_CFLAGS"; then 17798 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 17799 elif test -n "$PKG_CONFIG"; then 17800 if test -n "$PKG_CONFIG" && \ 17801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17802 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17803 ac_status=$? 17804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17805 test $ac_status = 0; }; then 17806 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17807 test "x$?" != "x0" && pkg_failed=yes 17808else 17809 pkg_failed=yes 17810fi 17811 else 17812 pkg_failed=untried 17813fi 17814if test -n "$XORG_LIBS"; then 17815 pkg_cv_XORG_LIBS="$XORG_LIBS" 17816 elif test -n "$PKG_CONFIG"; then 17817 if test -n "$PKG_CONFIG" && \ 17818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17819 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17820 ac_status=$? 17821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17822 test $ac_status = 0; }; then 17823 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17824 test "x$?" != "x0" && pkg_failed=yes 17825else 17826 pkg_failed=yes 17827fi 17828 else 17829 pkg_failed=untried 17830fi 17831 17832 17833 17834if test $pkg_failed = yes; then 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17836$as_echo "no" >&6; } 17837 17838if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17839 _pkg_short_errors_supported=yes 17840else 17841 _pkg_short_errors_supported=no 17842fi 17843 if test $_pkg_short_errors_supported = yes; then 17844 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17845 else 17846 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17847 fi 17848 # Put the nasty error message in config.log where it belongs 17849 echo "$XORG_PKG_ERRORS" >&5 17850 17851 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 17852 17853$XORG_PKG_ERRORS 17854 17855Consider adjusting the PKG_CONFIG_PATH environment variable if you 17856installed software in a non-standard prefix. 17857 17858Alternatively, you may set the environment variables XORG_CFLAGS 17859and XORG_LIBS to avoid the need to call pkg-config. 17860See the pkg-config man page for more details." "$LINENO" 5 17861elif test $pkg_failed = untried; then 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17863$as_echo "no" >&6; } 17864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17866as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17867is in your PATH or set the PKG_CONFIG environment variable to the full 17868path to pkg-config. 17869 17870Alternatively, you may set the environment variables XORG_CFLAGS 17871and XORG_LIBS to avoid the need to call pkg-config. 17872See the pkg-config man page for more details. 17873 17874To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17875See \`config.log' for more details" "$LINENO" 5; } 17876else 17877 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 17878 XORG_LIBS=$pkg_cv_XORG_LIBS 17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17880$as_echo "yes" >&6; } 17881 17882fi 17883 17884save_CFLAGS="$CFLAGS" 17885CFLAGS="$XORG_CFLAGS" 17886ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\" 17887" 17888if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then : 17889 17890$as_echo "#define HAVE_ISA 1" >>confdefs.h 17891 17892fi 17893 17894CFLAGS="$save_CFLAGS" 17895 17896# Checks for libraries. 17897SAVE_CPPFLAGS="$CPPFLAGS" 17898CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 17899ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 17900" 17901if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 17902 XSERVER_LIBPCIACCESS=yes 17903else 17904 XSERVER_LIBPCIACCESS=no 17905fi 17906 17907CPPFLAGS="$SAVE_CPPFLAGS" 17908 17909# Check whether --enable-xaa was given. 17910if test "${enable_xaa+set}" = set; then : 17911 enableval=$enable_xaa; XAA="$enableval" 17912else 17913 XAA=auto 17914fi 17915 17916if test "x$XAA" != xno; then 17917 save_CFLAGS=$CFLAGS 17918 save_CPPFLAGS=$CPPFLAGS 17919 CFLAGS=$XORG_CFLAGS 17920 CPPFLAGS="$XORG_CFLAGS" 17921 for ac_header in xaa.h 17922do : 17923 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 17924if test "x$ac_cv_header_xaa_h" = xyes; then : 17925 cat >>confdefs.h <<_ACEOF 17926#define HAVE_XAA_H 1 17927_ACEOF 17928 XAA=yes 17929else 17930 XAA=no 17931fi 17932 17933done 17934 17935 CFLAGS=$save_CFLAGS 17936 CPPFLAGS=$save_CPPFLAGS 17937fi 17938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 17939$as_echo_n "checking whether to include XAA support... " >&6; } 17940 if test "x$XAA" = xyes; then 17941 XAA_TRUE= 17942 XAA_FALSE='#' 17943else 17944 XAA_TRUE='#' 17945 XAA_FALSE= 17946fi 17947 17948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 17949$as_echo "$XAA" >&6; } 17950 17951if test "x$XSERVER_LIBPCIACCESS" = xyes; then 17952 17953pkg_failed=no 17954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 17955$as_echo_n "checking for PCIACCESS... " >&6; } 17956 17957if test -n "$PCIACCESS_CFLAGS"; then 17958 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 17959 elif test -n "$PKG_CONFIG"; then 17960 if test -n "$PKG_CONFIG" && \ 17961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 17962 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 17963 ac_status=$? 17964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17965 test $ac_status = 0; }; then 17966 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 17967 test "x$?" != "x0" && pkg_failed=yes 17968else 17969 pkg_failed=yes 17970fi 17971 else 17972 pkg_failed=untried 17973fi 17974if test -n "$PCIACCESS_LIBS"; then 17975 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 17976 elif test -n "$PKG_CONFIG"; then 17977 if test -n "$PKG_CONFIG" && \ 17978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 17979 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 17980 ac_status=$? 17981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17982 test $ac_status = 0; }; then 17983 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 17984 test "x$?" != "x0" && pkg_failed=yes 17985else 17986 pkg_failed=yes 17987fi 17988 else 17989 pkg_failed=untried 17990fi 17991 17992 17993 17994if test $pkg_failed = yes; then 17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17996$as_echo "no" >&6; } 17997 17998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17999 _pkg_short_errors_supported=yes 18000else 18001 _pkg_short_errors_supported=no 18002fi 18003 if test $_pkg_short_errors_supported = yes; then 18004 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18005 else 18006 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18007 fi 18008 # Put the nasty error message in config.log where it belongs 18009 echo "$PCIACCESS_PKG_ERRORS" >&5 18010 18011 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18012 18013$PCIACCESS_PKG_ERRORS 18014 18015Consider adjusting the PKG_CONFIG_PATH environment variable if you 18016installed software in a non-standard prefix. 18017 18018Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18019and PCIACCESS_LIBS to avoid the need to call pkg-config. 18020See the pkg-config man page for more details." "$LINENO" 5 18021elif test $pkg_failed = untried; then 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18023$as_echo "no" >&6; } 18024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18026as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18027is in your PATH or set the PKG_CONFIG environment variable to the full 18028path to pkg-config. 18029 18030Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18031and PCIACCESS_LIBS to avoid the need to call pkg-config. 18032See the pkg-config man page for more details. 18033 18034To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18035See \`config.log' for more details" "$LINENO" 5; } 18036else 18037 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18038 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18040$as_echo "yes" >&6; } 18041 18042fi 18043 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18044fi 18045 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18046 XSERVER_LIBPCIACCESS_TRUE= 18047 XSERVER_LIBPCIACCESS_FALSE='#' 18048else 18049 XSERVER_LIBPCIACCESS_TRUE='#' 18050 XSERVER_LIBPCIACCESS_FALSE= 18051fi 18052 18053 18054 18055 18056DRIVER_NAME=neomagic 18057 18058 18059ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18060 18061cat >confcache <<\_ACEOF 18062# This file is a shell script that caches the results of configure 18063# tests run on this system so they can be shared between configure 18064# scripts and configure runs, see configure's option --config-cache. 18065# It is not useful on other systems. If it contains results you don't 18066# want to keep, you may remove or edit it. 18067# 18068# config.status only pays attention to the cache file if you give it 18069# the --recheck option to rerun configure. 18070# 18071# `ac_cv_env_foo' variables (set or unset) will be overridden when 18072# loading this file, other *unset* `ac_cv_foo' will be assigned the 18073# following values. 18074 18075_ACEOF 18076 18077# The following way of writing the cache mishandles newlines in values, 18078# but we know of no workaround that is simple, portable, and efficient. 18079# So, we kill variables containing newlines. 18080# Ultrix sh set writes to stderr and can't be redirected directly, 18081# and sets the high bit in the cache file unless we assign to the vars. 18082( 18083 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18084 eval ac_val=\$$ac_var 18085 case $ac_val in #( 18086 *${as_nl}*) 18087 case $ac_var in #( 18088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18090 esac 18091 case $ac_var in #( 18092 _ | IFS | as_nl) ;; #( 18093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18094 *) { eval $ac_var=; unset $ac_var;} ;; 18095 esac ;; 18096 esac 18097 done 18098 18099 (set) 2>&1 | 18100 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18101 *${as_nl}ac_space=\ *) 18102 # `set' does not quote correctly, so add quotes: double-quote 18103 # substitution turns \\\\ into \\, and sed turns \\ into \. 18104 sed -n \ 18105 "s/'/'\\\\''/g; 18106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18107 ;; #( 18108 *) 18109 # `set' quotes correctly as required by POSIX, so do not add quotes. 18110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18111 ;; 18112 esac | 18113 sort 18114) | 18115 sed ' 18116 /^ac_cv_env_/b end 18117 t clear 18118 :clear 18119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18120 t end 18121 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18122 :end' >>confcache 18123if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18124 if test -w "$cache_file"; then 18125 if test "x$cache_file" != "x/dev/null"; then 18126 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18127$as_echo "$as_me: updating cache $cache_file" >&6;} 18128 if test ! -f "$cache_file" || test -h "$cache_file"; then 18129 cat confcache >"$cache_file" 18130 else 18131 case $cache_file in #( 18132 */* | ?:*) 18133 mv -f confcache "$cache_file"$$ && 18134 mv -f "$cache_file"$$ "$cache_file" ;; #( 18135 *) 18136 mv -f confcache "$cache_file" ;; 18137 esac 18138 fi 18139 fi 18140 else 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18142$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18143 fi 18144fi 18145rm -f confcache 18146 18147test "x$prefix" = xNONE && prefix=$ac_default_prefix 18148# Let make expand exec_prefix. 18149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18150 18151DEFS=-DHAVE_CONFIG_H 18152 18153ac_libobjs= 18154ac_ltlibobjs= 18155U= 18156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18157 # 1. Remove the extension, and $U if already installed. 18158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18161 # will be set to the directory where LIBOBJS objects are built. 18162 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18163 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18164done 18165LIBOBJS=$ac_libobjs 18166 18167LTLIBOBJS=$ac_ltlibobjs 18168 18169 18170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18171$as_echo_n "checking that generated files are newer than configure... " >&6; } 18172 if test -n "$am_sleep_pid"; then 18173 # Hide warnings about reused PIDs. 18174 wait $am_sleep_pid 2>/dev/null 18175 fi 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18177$as_echo "done" >&6; } 18178 if test -n "$EXEEXT"; then 18179 am__EXEEXT_TRUE= 18180 am__EXEEXT_FALSE='#' 18181else 18182 am__EXEEXT_TRUE='#' 18183 am__EXEEXT_FALSE= 18184fi 18185 18186if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18187 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18188Usually this means the macro was only invoked conditionally." "$LINENO" 5 18189fi 18190if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18191 as_fn_error $? "conditional \"AMDEP\" was never defined. 18192Usually this means the macro was only invoked conditionally." "$LINENO" 5 18193fi 18194if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18195 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18196Usually this means the macro was only invoked conditionally." "$LINENO" 5 18197fi 18198if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 18199 as_fn_error $? "conditional \"XAA\" was never defined. 18200Usually this means the macro was only invoked conditionally." "$LINENO" 5 18201fi 18202if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 18203 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 18204Usually this means the macro was only invoked conditionally." "$LINENO" 5 18205fi 18206 18207: "${CONFIG_STATUS=./config.status}" 18208ac_write_fail=0 18209ac_clean_files_save=$ac_clean_files 18210ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18211{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18212$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18213as_write_fail=0 18214cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18215#! $SHELL 18216# Generated by $as_me. 18217# Run this file to recreate the current configuration. 18218# Compiler output produced by configure, useful for debugging 18219# configure, is in config.log if it exists. 18220 18221debug=false 18222ac_cs_recheck=false 18223ac_cs_silent=false 18224 18225SHELL=\${CONFIG_SHELL-$SHELL} 18226export SHELL 18227_ASEOF 18228cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18229## -------------------- ## 18230## M4sh Initialization. ## 18231## -------------------- ## 18232 18233# Be more Bourne compatible 18234DUALCASE=1; export DUALCASE # for MKS sh 18235if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18236 emulate sh 18237 NULLCMD=: 18238 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18239 # is contrary to our usage. Disable this feature. 18240 alias -g '${1+"$@"}'='"$@"' 18241 setopt NO_GLOB_SUBST 18242else 18243 case `(set -o) 2>/dev/null` in #( 18244 *posix*) : 18245 set -o posix ;; #( 18246 *) : 18247 ;; 18248esac 18249fi 18250 18251 18252as_nl=' 18253' 18254export as_nl 18255# Printing a long string crashes Solaris 7 /usr/bin/printf. 18256as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18257as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18258as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18259# Prefer a ksh shell builtin over an external printf program on Solaris, 18260# but without wasting forks for bash or zsh. 18261if test -z "$BASH_VERSION$ZSH_VERSION" \ 18262 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18263 as_echo='print -r --' 18264 as_echo_n='print -rn --' 18265elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18266 as_echo='printf %s\n' 18267 as_echo_n='printf %s' 18268else 18269 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18270 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18271 as_echo_n='/usr/ucb/echo -n' 18272 else 18273 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18274 as_echo_n_body='eval 18275 arg=$1; 18276 case $arg in #( 18277 *"$as_nl"*) 18278 expr "X$arg" : "X\\(.*\\)$as_nl"; 18279 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18280 esac; 18281 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18282 ' 18283 export as_echo_n_body 18284 as_echo_n='sh -c $as_echo_n_body as_echo' 18285 fi 18286 export as_echo_body 18287 as_echo='sh -c $as_echo_body as_echo' 18288fi 18289 18290# The user is always right. 18291if test "${PATH_SEPARATOR+set}" != set; then 18292 PATH_SEPARATOR=: 18293 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18294 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18295 PATH_SEPARATOR=';' 18296 } 18297fi 18298 18299 18300# IFS 18301# We need space, tab and new line, in precisely that order. Quoting is 18302# there to prevent editors from complaining about space-tab. 18303# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18304# splitting by setting IFS to empty value.) 18305IFS=" "" $as_nl" 18306 18307# Find who we are. Look in the path if we contain no directory separator. 18308as_myself= 18309case $0 in #(( 18310 *[\\/]* ) as_myself=$0 ;; 18311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18312for as_dir in $PATH 18313do 18314 IFS=$as_save_IFS 18315 test -z "$as_dir" && as_dir=. 18316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18317 done 18318IFS=$as_save_IFS 18319 18320 ;; 18321esac 18322# We did not find ourselves, most probably we were run as `sh COMMAND' 18323# in which case we are not to be found in the path. 18324if test "x$as_myself" = x; then 18325 as_myself=$0 18326fi 18327if test ! -f "$as_myself"; then 18328 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18329 exit 1 18330fi 18331 18332# Unset variables that we do not need and which cause bugs (e.g. in 18333# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18334# suppresses any "Segmentation fault" message there. '((' could 18335# trigger a bug in pdksh 5.2.14. 18336for as_var in BASH_ENV ENV MAIL MAILPATH 18337do eval test x\${$as_var+set} = xset \ 18338 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18339done 18340PS1='$ ' 18341PS2='> ' 18342PS4='+ ' 18343 18344# NLS nuisances. 18345LC_ALL=C 18346export LC_ALL 18347LANGUAGE=C 18348export LANGUAGE 18349 18350# CDPATH. 18351(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18352 18353 18354# as_fn_error STATUS ERROR [LINENO LOG_FD] 18355# ---------------------------------------- 18356# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18357# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18358# script with STATUS, using 1 if that was 0. 18359as_fn_error () 18360{ 18361 as_status=$1; test $as_status -eq 0 && as_status=1 18362 if test "$4"; then 18363 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18364 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18365 fi 18366 $as_echo "$as_me: error: $2" >&2 18367 as_fn_exit $as_status 18368} # as_fn_error 18369 18370 18371# as_fn_set_status STATUS 18372# ----------------------- 18373# Set $? to STATUS, without forking. 18374as_fn_set_status () 18375{ 18376 return $1 18377} # as_fn_set_status 18378 18379# as_fn_exit STATUS 18380# ----------------- 18381# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18382as_fn_exit () 18383{ 18384 set +e 18385 as_fn_set_status $1 18386 exit $1 18387} # as_fn_exit 18388 18389# as_fn_unset VAR 18390# --------------- 18391# Portably unset VAR. 18392as_fn_unset () 18393{ 18394 { eval $1=; unset $1;} 18395} 18396as_unset=as_fn_unset 18397# as_fn_append VAR VALUE 18398# ---------------------- 18399# Append the text in VALUE to the end of the definition contained in VAR. Take 18400# advantage of any shell optimizations that allow amortized linear growth over 18401# repeated appends, instead of the typical quadratic growth present in naive 18402# implementations. 18403if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18404 eval 'as_fn_append () 18405 { 18406 eval $1+=\$2 18407 }' 18408else 18409 as_fn_append () 18410 { 18411 eval $1=\$$1\$2 18412 } 18413fi # as_fn_append 18414 18415# as_fn_arith ARG... 18416# ------------------ 18417# Perform arithmetic evaluation on the ARGs, and store the result in the 18418# global $as_val. Take advantage of shells that can avoid forks. The arguments 18419# must be portable across $(()) and expr. 18420if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18421 eval 'as_fn_arith () 18422 { 18423 as_val=$(( $* )) 18424 }' 18425else 18426 as_fn_arith () 18427 { 18428 as_val=`expr "$@" || test $? -eq 1` 18429 } 18430fi # as_fn_arith 18431 18432 18433if expr a : '\(a\)' >/dev/null 2>&1 && 18434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18435 as_expr=expr 18436else 18437 as_expr=false 18438fi 18439 18440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18441 as_basename=basename 18442else 18443 as_basename=false 18444fi 18445 18446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18447 as_dirname=dirname 18448else 18449 as_dirname=false 18450fi 18451 18452as_me=`$as_basename -- "$0" || 18453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18454 X"$0" : 'X\(//\)$' \| \ 18455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18456$as_echo X/"$0" | 18457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18458 s//\1/ 18459 q 18460 } 18461 /^X\/\(\/\/\)$/{ 18462 s//\1/ 18463 q 18464 } 18465 /^X\/\(\/\).*/{ 18466 s//\1/ 18467 q 18468 } 18469 s/.*/./; q'` 18470 18471# Avoid depending upon Character Ranges. 18472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18475as_cr_digits='0123456789' 18476as_cr_alnum=$as_cr_Letters$as_cr_digits 18477 18478ECHO_C= ECHO_N= ECHO_T= 18479case `echo -n x` in #((((( 18480-n*) 18481 case `echo 'xy\c'` in 18482 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18483 xy) ECHO_C='\c';; 18484 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18485 ECHO_T=' ';; 18486 esac;; 18487*) 18488 ECHO_N='-n';; 18489esac 18490 18491rm -f conf$$ conf$$.exe conf$$.file 18492if test -d conf$$.dir; then 18493 rm -f conf$$.dir/conf$$.file 18494else 18495 rm -f conf$$.dir 18496 mkdir conf$$.dir 2>/dev/null 18497fi 18498if (echo >conf$$.file) 2>/dev/null; then 18499 if ln -s conf$$.file conf$$ 2>/dev/null; then 18500 as_ln_s='ln -s' 18501 # ... but there are two gotchas: 18502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18504 # In both cases, we have to default to `cp -pR'. 18505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18506 as_ln_s='cp -pR' 18507 elif ln conf$$.file conf$$ 2>/dev/null; then 18508 as_ln_s=ln 18509 else 18510 as_ln_s='cp -pR' 18511 fi 18512else 18513 as_ln_s='cp -pR' 18514fi 18515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18516rmdir conf$$.dir 2>/dev/null 18517 18518 18519# as_fn_mkdir_p 18520# ------------- 18521# Create "$as_dir" as a directory, including parents if necessary. 18522as_fn_mkdir_p () 18523{ 18524 18525 case $as_dir in #( 18526 -*) as_dir=./$as_dir;; 18527 esac 18528 test -d "$as_dir" || eval $as_mkdir_p || { 18529 as_dirs= 18530 while :; do 18531 case $as_dir in #( 18532 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18533 *) as_qdir=$as_dir;; 18534 esac 18535 as_dirs="'$as_qdir' $as_dirs" 18536 as_dir=`$as_dirname -- "$as_dir" || 18537$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18538 X"$as_dir" : 'X\(//\)[^/]' \| \ 18539 X"$as_dir" : 'X\(//\)$' \| \ 18540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18541$as_echo X"$as_dir" | 18542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18543 s//\1/ 18544 q 18545 } 18546 /^X\(\/\/\)[^/].*/{ 18547 s//\1/ 18548 q 18549 } 18550 /^X\(\/\/\)$/{ 18551 s//\1/ 18552 q 18553 } 18554 /^X\(\/\).*/{ 18555 s//\1/ 18556 q 18557 } 18558 s/.*/./; q'` 18559 test -d "$as_dir" && break 18560 done 18561 test -z "$as_dirs" || eval "mkdir $as_dirs" 18562 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18563 18564 18565} # as_fn_mkdir_p 18566if mkdir -p . 2>/dev/null; then 18567 as_mkdir_p='mkdir -p "$as_dir"' 18568else 18569 test -d ./-p && rmdir ./-p 18570 as_mkdir_p=false 18571fi 18572 18573 18574# as_fn_executable_p FILE 18575# ----------------------- 18576# Test if FILE is an executable regular file. 18577as_fn_executable_p () 18578{ 18579 test -f "$1" && test -x "$1" 18580} # as_fn_executable_p 18581as_test_x='test -x' 18582as_executable_p=as_fn_executable_p 18583 18584# Sed expression to map a string onto a valid CPP name. 18585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18586 18587# Sed expression to map a string onto a valid variable name. 18588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18589 18590 18591exec 6>&1 18592## ----------------------------------- ## 18593## Main body of $CONFIG_STATUS script. ## 18594## ----------------------------------- ## 18595_ASEOF 18596test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18597 18598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18599# Save the log message, to keep $0 and so on meaningful, and to 18600# report actual input values of CONFIG_FILES etc. instead of their 18601# values after options handling. 18602ac_log=" 18603This file was extended by xf86-video-neomagic $as_me 1.2.8, which was 18604generated by GNU Autoconf 2.69. Invocation command line was 18605 18606 CONFIG_FILES = $CONFIG_FILES 18607 CONFIG_HEADERS = $CONFIG_HEADERS 18608 CONFIG_LINKS = $CONFIG_LINKS 18609 CONFIG_COMMANDS = $CONFIG_COMMANDS 18610 $ $0 $@ 18611 18612on `(hostname || uname -n) 2>/dev/null | sed 1q` 18613" 18614 18615_ACEOF 18616 18617case $ac_config_files in *" 18618"*) set x $ac_config_files; shift; ac_config_files=$*;; 18619esac 18620 18621case $ac_config_headers in *" 18622"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18623esac 18624 18625 18626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18627# Files that config.status was made for. 18628config_files="$ac_config_files" 18629config_headers="$ac_config_headers" 18630config_commands="$ac_config_commands" 18631 18632_ACEOF 18633 18634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18635ac_cs_usage="\ 18636\`$as_me' instantiates files and other configuration actions 18637from templates according to the current configuration. Unless the files 18638and actions are specified as TAGs, all are instantiated by default. 18639 18640Usage: $0 [OPTION]... [TAG]... 18641 18642 -h, --help print this help, then exit 18643 -V, --version print version number and configuration settings, then exit 18644 --config print configuration, then exit 18645 -q, --quiet, --silent 18646 do not print progress messages 18647 -d, --debug don't remove temporary files 18648 --recheck update $as_me by reconfiguring in the same conditions 18649 --file=FILE[:TEMPLATE] 18650 instantiate the configuration file FILE 18651 --header=FILE[:TEMPLATE] 18652 instantiate the configuration header FILE 18653 18654Configuration files: 18655$config_files 18656 18657Configuration headers: 18658$config_headers 18659 18660Configuration commands: 18661$config_commands 18662 18663Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic>." 18664 18665_ACEOF 18666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18667ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18668ac_cs_version="\\ 18669xf86-video-neomagic config.status 1.2.8 18670configured by $0, generated by GNU Autoconf 2.69, 18671 with options \\"\$ac_cs_config\\" 18672 18673Copyright (C) 2012 Free Software Foundation, Inc. 18674This config.status script is free software; the Free Software Foundation 18675gives unlimited permission to copy, distribute and modify it." 18676 18677ac_pwd='$ac_pwd' 18678srcdir='$srcdir' 18679INSTALL='$INSTALL' 18680MKDIR_P='$MKDIR_P' 18681AWK='$AWK' 18682test -n "\$AWK" || AWK=awk 18683_ACEOF 18684 18685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18686# The default lists apply if the user does not specify any file. 18687ac_need_defaults=: 18688while test $# != 0 18689do 18690 case $1 in 18691 --*=?*) 18692 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18694 ac_shift=: 18695 ;; 18696 --*=) 18697 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18698 ac_optarg= 18699 ac_shift=: 18700 ;; 18701 *) 18702 ac_option=$1 18703 ac_optarg=$2 18704 ac_shift=shift 18705 ;; 18706 esac 18707 18708 case $ac_option in 18709 # Handling of the options. 18710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18711 ac_cs_recheck=: ;; 18712 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18713 $as_echo "$ac_cs_version"; exit ;; 18714 --config | --confi | --conf | --con | --co | --c ) 18715 $as_echo "$ac_cs_config"; exit ;; 18716 --debug | --debu | --deb | --de | --d | -d ) 18717 debug=: ;; 18718 --file | --fil | --fi | --f ) 18719 $ac_shift 18720 case $ac_optarg in 18721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18722 '') as_fn_error $? "missing file argument" ;; 18723 esac 18724 as_fn_append CONFIG_FILES " '$ac_optarg'" 18725 ac_need_defaults=false;; 18726 --header | --heade | --head | --hea ) 18727 $ac_shift 18728 case $ac_optarg in 18729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18730 esac 18731 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18732 ac_need_defaults=false;; 18733 --he | --h) 18734 # Conflict between --help and --header 18735 as_fn_error $? "ambiguous option: \`$1' 18736Try \`$0 --help' for more information.";; 18737 --help | --hel | -h ) 18738 $as_echo "$ac_cs_usage"; exit ;; 18739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18740 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18741 ac_cs_silent=: ;; 18742 18743 # This is an error. 18744 -*) as_fn_error $? "unrecognized option: \`$1' 18745Try \`$0 --help' for more information." ;; 18746 18747 *) as_fn_append ac_config_targets " $1" 18748 ac_need_defaults=false ;; 18749 18750 esac 18751 shift 18752done 18753 18754ac_configure_extra_args= 18755 18756if $ac_cs_silent; then 18757 exec 6>/dev/null 18758 ac_configure_extra_args="$ac_configure_extra_args --silent" 18759fi 18760 18761_ACEOF 18762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18763if \$ac_cs_recheck; then 18764 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18765 shift 18766 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18767 CONFIG_SHELL='$SHELL' 18768 export CONFIG_SHELL 18769 exec "\$@" 18770fi 18771 18772_ACEOF 18773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18774exec 5>>config.log 18775{ 18776 echo 18777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18778## Running $as_me. ## 18779_ASBOX 18780 $as_echo "$ac_log" 18781} >&5 18782 18783_ACEOF 18784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18785# 18786# INIT-COMMANDS 18787# 18788AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18789 18790 18791# The HP-UX ksh and POSIX shell print the target directory to stdout 18792# if CDPATH is set. 18793(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18794 18795sed_quote_subst='$sed_quote_subst' 18796double_quote_subst='$double_quote_subst' 18797delay_variable_subst='$delay_variable_subst' 18798enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18799macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18800macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18801enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18802pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18803enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18804SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18805ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18806host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18807host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18808host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18809build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18810build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18811build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18812SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18813Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18814GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18815EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18816FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18817LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18818NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18819LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18820max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18821ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18822exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18823lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18824lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18825lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18826lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18827lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18828reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18829reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18830OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18831deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18832file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18833file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18834want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18835DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18836sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18837AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18838AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18839archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18840STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18841RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18842old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18843old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18844old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18845lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18846CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18847CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18848compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18849GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18850lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18851lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18852lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18853lt_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"`' 18854nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18855lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18856objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18857MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18858lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18859lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18860lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18861lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18862lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18863need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18864MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18865DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18866NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18867LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18868OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18869OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18870libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18871shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18872extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18873archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18874enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18875export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18876whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18877compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18878old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18879old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18880archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18881archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18882module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18883module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18884with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18885allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18886no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18887hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18888hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18889hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18890hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18891hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18892hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18893hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18894hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18895inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18896link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18897always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18898export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18899exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18900include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18901prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18902postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18903file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18904variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18905need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18906need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18907version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18908runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18909shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18910shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18911libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18912library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18913soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18914install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18915postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18916postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18917finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18918finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18919hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18920sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18921sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18922hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18923enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18924enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18925enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18926old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18927striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18928 18929LTCC='$LTCC' 18930LTCFLAGS='$LTCFLAGS' 18931compiler='$compiler_DEFAULT' 18932 18933# A function that is used when there is no print builtin or printf. 18934func_fallback_echo () 18935{ 18936 eval 'cat <<_LTECHO_EOF 18937\$1 18938_LTECHO_EOF' 18939} 18940 18941# Quote evaled strings. 18942for var in SHELL \ 18943ECHO \ 18944SED \ 18945GREP \ 18946EGREP \ 18947FGREP \ 18948LD \ 18949NM \ 18950LN_S \ 18951lt_SP2NL \ 18952lt_NL2SP \ 18953reload_flag \ 18954OBJDUMP \ 18955deplibs_check_method \ 18956file_magic_cmd \ 18957file_magic_glob \ 18958want_nocaseglob \ 18959DLLTOOL \ 18960sharedlib_from_linklib_cmd \ 18961AR \ 18962AR_FLAGS \ 18963archiver_list_spec \ 18964STRIP \ 18965RANLIB \ 18966CC \ 18967CFLAGS \ 18968compiler \ 18969lt_cv_sys_global_symbol_pipe \ 18970lt_cv_sys_global_symbol_to_cdecl \ 18971lt_cv_sys_global_symbol_to_c_name_address \ 18972lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18973nm_file_list_spec \ 18974lt_prog_compiler_no_builtin_flag \ 18975lt_prog_compiler_pic \ 18976lt_prog_compiler_wl \ 18977lt_prog_compiler_static \ 18978lt_cv_prog_compiler_c_o \ 18979need_locks \ 18980MANIFEST_TOOL \ 18981DSYMUTIL \ 18982NMEDIT \ 18983LIPO \ 18984OTOOL \ 18985OTOOL64 \ 18986shrext_cmds \ 18987export_dynamic_flag_spec \ 18988whole_archive_flag_spec \ 18989compiler_needs_object \ 18990with_gnu_ld \ 18991allow_undefined_flag \ 18992no_undefined_flag \ 18993hardcode_libdir_flag_spec \ 18994hardcode_libdir_flag_spec_ld \ 18995hardcode_libdir_separator \ 18996exclude_expsyms \ 18997include_expsyms \ 18998file_list_spec \ 18999variables_saved_for_relink \ 19000libname_spec \ 19001library_names_spec \ 19002soname_spec \ 19003install_override_mode \ 19004finish_eval \ 19005old_striplib \ 19006striplib; do 19007 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19008 *[\\\\\\\`\\"\\\$]*) 19009 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19010 ;; 19011 *) 19012 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19013 ;; 19014 esac 19015done 19016 19017# Double-quote double-evaled strings. 19018for var in reload_cmds \ 19019old_postinstall_cmds \ 19020old_postuninstall_cmds \ 19021old_archive_cmds \ 19022extract_expsyms_cmds \ 19023old_archive_from_new_cmds \ 19024old_archive_from_expsyms_cmds \ 19025archive_cmds \ 19026archive_expsym_cmds \ 19027module_cmds \ 19028module_expsym_cmds \ 19029export_symbols_cmds \ 19030prelink_cmds \ 19031postlink_cmds \ 19032postinstall_cmds \ 19033postuninstall_cmds \ 19034finish_cmds \ 19035sys_lib_search_path_spec \ 19036sys_lib_dlsearch_path_spec; do 19037 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19038 *[\\\\\\\`\\"\\\$]*) 19039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19040 ;; 19041 *) 19042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19043 ;; 19044 esac 19045done 19046 19047ac_aux_dir='$ac_aux_dir' 19048xsi_shell='$xsi_shell' 19049lt_shell_append='$lt_shell_append' 19050 19051# See if we are running on zsh, and set the options which allow our 19052# commands through without removal of \ escapes INIT. 19053if test -n "\${ZSH_VERSION+set}" ; then 19054 setopt NO_GLOB_SUBST 19055fi 19056 19057 19058 PACKAGE='$PACKAGE' 19059 VERSION='$VERSION' 19060 TIMESTAMP='$TIMESTAMP' 19061 RM='$RM' 19062 ofile='$ofile' 19063 19064 19065 19066 19067_ACEOF 19068 19069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19070 19071# Handling of arguments. 19072for ac_config_target in $ac_config_targets 19073do 19074 case $ac_config_target in 19075 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19076 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19077 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19078 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19079 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19080 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19081 19082 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19083 esac 19084done 19085 19086 19087# If the user did not use the arguments to specify the items to instantiate, 19088# then the envvar interface is used. Set only those that are not. 19089# We use the long form for the default assignment because of an extremely 19090# bizarre bug on SunOS 4.1.3. 19091if $ac_need_defaults; then 19092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19094 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19095fi 19096 19097# Have a temporary directory for convenience. Make it in the build tree 19098# simply because there is no reason against having it here, and in addition, 19099# creating and moving files from /tmp can sometimes cause problems. 19100# Hook for its removal unless debugging. 19101# Note that there is a small window in which the directory will not be cleaned: 19102# after its creation but before its name has been assigned to `$tmp'. 19103$debug || 19104{ 19105 tmp= ac_tmp= 19106 trap 'exit_status=$? 19107 : "${ac_tmp:=$tmp}" 19108 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19109' 0 19110 trap 'as_fn_exit 1' 1 2 13 15 19111} 19112# Create a (secure) tmp directory for tmp files. 19113 19114{ 19115 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19116 test -d "$tmp" 19117} || 19118{ 19119 tmp=./conf$$-$RANDOM 19120 (umask 077 && mkdir "$tmp") 19121} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19122ac_tmp=$tmp 19123 19124# Set up the scripts for CONFIG_FILES section. 19125# No need to generate them if there are no CONFIG_FILES. 19126# This happens for instance with `./config.status config.h'. 19127if test -n "$CONFIG_FILES"; then 19128 19129 19130ac_cr=`echo X | tr X '\015'` 19131# On cygwin, bash can eat \r inside `` if the user requested igncr. 19132# But we know of no other shell where ac_cr would be empty at this 19133# point, so we can use a bashism as a fallback. 19134if test "x$ac_cr" = x; then 19135 eval ac_cr=\$\'\\r\' 19136fi 19137ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19138if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19139 ac_cs_awk_cr='\\r' 19140else 19141 ac_cs_awk_cr=$ac_cr 19142fi 19143 19144echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19145_ACEOF 19146 19147 19148{ 19149 echo "cat >conf$$subs.awk <<_ACEOF" && 19150 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19151 echo "_ACEOF" 19152} >conf$$subs.sh || 19153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19154ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19155ac_delim='%!_!# ' 19156for ac_last_try in false false false false false :; do 19157 . ./conf$$subs.sh || 19158 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19159 19160 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19161 if test $ac_delim_n = $ac_delim_num; then 19162 break 19163 elif $ac_last_try; then 19164 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19165 else 19166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19167 fi 19168done 19169rm -f conf$$subs.sh 19170 19171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19172cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19173_ACEOF 19174sed -n ' 19175h 19176s/^/S["/; s/!.*/"]=/ 19177p 19178g 19179s/^[^!]*!// 19180:repl 19181t repl 19182s/'"$ac_delim"'$// 19183t delim 19184:nl 19185h 19186s/\(.\{148\}\)..*/\1/ 19187t more1 19188s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19189p 19190n 19191b repl 19192:more1 19193s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19194p 19195g 19196s/.\{148\}// 19197t nl 19198:delim 19199h 19200s/\(.\{148\}\)..*/\1/ 19201t more2 19202s/["\\]/\\&/g; s/^/"/; s/$/"/ 19203p 19204b 19205:more2 19206s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19207p 19208g 19209s/.\{148\}// 19210t delim 19211' <conf$$subs.awk | sed ' 19212/^[^""]/{ 19213 N 19214 s/\n// 19215} 19216' >>$CONFIG_STATUS || ac_write_fail=1 19217rm -f conf$$subs.awk 19218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19219_ACAWK 19220cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19221 for (key in S) S_is_set[key] = 1 19222 FS = "" 19223 19224} 19225{ 19226 line = $ 0 19227 nfields = split(line, field, "@") 19228 substed = 0 19229 len = length(field[1]) 19230 for (i = 2; i < nfields; i++) { 19231 key = field[i] 19232 keylen = length(key) 19233 if (S_is_set[key]) { 19234 value = S[key] 19235 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19236 len += length(value) + length(field[++i]) 19237 substed = 1 19238 } else 19239 len += 1 + keylen 19240 } 19241 19242 print line 19243} 19244 19245_ACAWK 19246_ACEOF 19247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19248if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19249 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19250else 19251 cat 19252fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19253 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19254_ACEOF 19255 19256# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19257# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19258# trailing colons and then remove the whole line if VPATH becomes empty 19259# (actually we leave an empty line to preserve line numbers). 19260if test "x$srcdir" = x.; then 19261 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19262h 19263s/// 19264s/^/:/ 19265s/[ ]*$/:/ 19266s/:\$(srcdir):/:/g 19267s/:\${srcdir}:/:/g 19268s/:@srcdir@:/:/g 19269s/^:*// 19270s/:*$// 19271x 19272s/\(=[ ]*\).*/\1/ 19273G 19274s/\n// 19275s/^[^=]*=[ ]*$// 19276}' 19277fi 19278 19279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19280fi # test -n "$CONFIG_FILES" 19281 19282# Set up the scripts for CONFIG_HEADERS section. 19283# No need to generate them if there are no CONFIG_HEADERS. 19284# This happens for instance with `./config.status Makefile'. 19285if test -n "$CONFIG_HEADERS"; then 19286cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19287BEGIN { 19288_ACEOF 19289 19290# Transform confdefs.h into an awk script `defines.awk', embedded as 19291# here-document in config.status, that substitutes the proper values into 19292# config.h.in to produce config.h. 19293 19294# Create a delimiter string that does not exist in confdefs.h, to ease 19295# handling of long lines. 19296ac_delim='%!_!# ' 19297for ac_last_try in false false :; do 19298 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19299 if test -z "$ac_tt"; then 19300 break 19301 elif $ac_last_try; then 19302 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19303 else 19304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19305 fi 19306done 19307 19308# For the awk script, D is an array of macro values keyed by name, 19309# likewise P contains macro parameters if any. Preserve backslash 19310# newline sequences. 19311 19312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19313sed -n ' 19314s/.\{148\}/&'"$ac_delim"'/g 19315t rset 19316:rset 19317s/^[ ]*#[ ]*define[ ][ ]*/ / 19318t def 19319d 19320:def 19321s/\\$// 19322t bsnl 19323s/["\\]/\\&/g 19324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19325D["\1"]=" \3"/p 19326s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19327d 19328:bsnl 19329s/["\\]/\\&/g 19330s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19331D["\1"]=" \3\\\\\\n"\\/p 19332t cont 19333s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19334t cont 19335d 19336:cont 19337n 19338s/.\{148\}/&'"$ac_delim"'/g 19339t clear 19340:clear 19341s/\\$// 19342t bsnlc 19343s/["\\]/\\&/g; s/^/"/; s/$/"/p 19344d 19345:bsnlc 19346s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19347b cont 19348' <confdefs.h | sed ' 19349s/'"$ac_delim"'/"\\\ 19350"/g' >>$CONFIG_STATUS || ac_write_fail=1 19351 19352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19353 for (key in D) D_is_set[key] = 1 19354 FS = "" 19355} 19356/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19357 line = \$ 0 19358 split(line, arg, " ") 19359 if (arg[1] == "#") { 19360 defundef = arg[2] 19361 mac1 = arg[3] 19362 } else { 19363 defundef = substr(arg[1], 2) 19364 mac1 = arg[2] 19365 } 19366 split(mac1, mac2, "(") #) 19367 macro = mac2[1] 19368 prefix = substr(line, 1, index(line, defundef) - 1) 19369 if (D_is_set[macro]) { 19370 # Preserve the white space surrounding the "#". 19371 print prefix "define", macro P[macro] D[macro] 19372 next 19373 } else { 19374 # Replace #undef with comments. This is necessary, for example, 19375 # in the case of _POSIX_SOURCE, which is predefined and required 19376 # on some systems where configure will not decide to define it. 19377 if (defundef == "undef") { 19378 print "/*", prefix defundef, macro, "*/" 19379 next 19380 } 19381 } 19382} 19383{ print } 19384_ACAWK 19385_ACEOF 19386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19387 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19388fi # test -n "$CONFIG_HEADERS" 19389 19390 19391eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19392shift 19393for ac_tag 19394do 19395 case $ac_tag in 19396 :[FHLC]) ac_mode=$ac_tag; continue;; 19397 esac 19398 case $ac_mode$ac_tag in 19399 :[FHL]*:*);; 19400 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19401 :[FH]-) ac_tag=-:-;; 19402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19403 esac 19404 ac_save_IFS=$IFS 19405 IFS=: 19406 set x $ac_tag 19407 IFS=$ac_save_IFS 19408 shift 19409 ac_file=$1 19410 shift 19411 19412 case $ac_mode in 19413 :L) ac_source=$1;; 19414 :[FH]) 19415 ac_file_inputs= 19416 for ac_f 19417 do 19418 case $ac_f in 19419 -) ac_f="$ac_tmp/stdin";; 19420 *) # Look for the file first in the build tree, then in the source tree 19421 # (if the path is not absolute). The absolute path cannot be DOS-style, 19422 # because $ac_f cannot contain `:'. 19423 test -f "$ac_f" || 19424 case $ac_f in 19425 [\\/$]*) false;; 19426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19427 esac || 19428 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19429 esac 19430 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19431 as_fn_append ac_file_inputs " '$ac_f'" 19432 done 19433 19434 # Let's still pretend it is `configure' which instantiates (i.e., don't 19435 # use $as_me), people would be surprised to read: 19436 # /* config.h. Generated by config.status. */ 19437 configure_input='Generated from '` 19438 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19439 `' by configure.' 19440 if test x"$ac_file" != x-; then 19441 configure_input="$ac_file. $configure_input" 19442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19443$as_echo "$as_me: creating $ac_file" >&6;} 19444 fi 19445 # Neutralize special characters interpreted by sed in replacement strings. 19446 case $configure_input in #( 19447 *\&* | *\|* | *\\* ) 19448 ac_sed_conf_input=`$as_echo "$configure_input" | 19449 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19450 *) ac_sed_conf_input=$configure_input;; 19451 esac 19452 19453 case $ac_tag in 19454 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19456 esac 19457 ;; 19458 esac 19459 19460 ac_dir=`$as_dirname -- "$ac_file" || 19461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19462 X"$ac_file" : 'X\(//\)[^/]' \| \ 19463 X"$ac_file" : 'X\(//\)$' \| \ 19464 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19465$as_echo X"$ac_file" | 19466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19467 s//\1/ 19468 q 19469 } 19470 /^X\(\/\/\)[^/].*/{ 19471 s//\1/ 19472 q 19473 } 19474 /^X\(\/\/\)$/{ 19475 s//\1/ 19476 q 19477 } 19478 /^X\(\/\).*/{ 19479 s//\1/ 19480 q 19481 } 19482 s/.*/./; q'` 19483 as_dir="$ac_dir"; as_fn_mkdir_p 19484 ac_builddir=. 19485 19486case "$ac_dir" in 19487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19488*) 19489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19490 # A ".." for each directory in $ac_dir_suffix. 19491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19492 case $ac_top_builddir_sub in 19493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19495 esac ;; 19496esac 19497ac_abs_top_builddir=$ac_pwd 19498ac_abs_builddir=$ac_pwd$ac_dir_suffix 19499# for backward compatibility: 19500ac_top_builddir=$ac_top_build_prefix 19501 19502case $srcdir in 19503 .) # We are building in place. 19504 ac_srcdir=. 19505 ac_top_srcdir=$ac_top_builddir_sub 19506 ac_abs_top_srcdir=$ac_pwd ;; 19507 [\\/]* | ?:[\\/]* ) # Absolute name. 19508 ac_srcdir=$srcdir$ac_dir_suffix; 19509 ac_top_srcdir=$srcdir 19510 ac_abs_top_srcdir=$srcdir ;; 19511 *) # Relative name. 19512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19513 ac_top_srcdir=$ac_top_build_prefix$srcdir 19514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19515esac 19516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19517 19518 19519 case $ac_mode in 19520 :F) 19521 # 19522 # CONFIG_FILE 19523 # 19524 19525 case $INSTALL in 19526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19528 esac 19529 ac_MKDIR_P=$MKDIR_P 19530 case $MKDIR_P in 19531 [\\/$]* | ?:[\\/]* ) ;; 19532 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19533 esac 19534_ACEOF 19535 19536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19537# If the template does not know about datarootdir, expand it. 19538# FIXME: This hack should be removed a few years after 2.60. 19539ac_datarootdir_hack=; ac_datarootdir_seen= 19540ac_sed_dataroot=' 19541/datarootdir/ { 19542 p 19543 q 19544} 19545/@datadir@/p 19546/@docdir@/p 19547/@infodir@/p 19548/@localedir@/p 19549/@mandir@/p' 19550case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19551*datarootdir*) ac_datarootdir_seen=yes;; 19552*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19554$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19555_ACEOF 19556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19557 ac_datarootdir_hack=' 19558 s&@datadir@&$datadir&g 19559 s&@docdir@&$docdir&g 19560 s&@infodir@&$infodir&g 19561 s&@localedir@&$localedir&g 19562 s&@mandir@&$mandir&g 19563 s&\\\${datarootdir}&$datarootdir&g' ;; 19564esac 19565_ACEOF 19566 19567# Neutralize VPATH when `$srcdir' = `.'. 19568# Shell code in configure.ac might set extrasub. 19569# FIXME: do we really want to maintain this feature? 19570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19571ac_sed_extra="$ac_vpsub 19572$extrasub 19573_ACEOF 19574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19575:t 19576/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19577s|@configure_input@|$ac_sed_conf_input|;t t 19578s&@top_builddir@&$ac_top_builddir_sub&;t t 19579s&@top_build_prefix@&$ac_top_build_prefix&;t t 19580s&@srcdir@&$ac_srcdir&;t t 19581s&@abs_srcdir@&$ac_abs_srcdir&;t t 19582s&@top_srcdir@&$ac_top_srcdir&;t t 19583s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19584s&@builddir@&$ac_builddir&;t t 19585s&@abs_builddir@&$ac_abs_builddir&;t t 19586s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19587s&@INSTALL@&$ac_INSTALL&;t t 19588s&@MKDIR_P@&$ac_MKDIR_P&;t t 19589$ac_datarootdir_hack 19590" 19591eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19592 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19593 19594test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19595 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19597 "$ac_tmp/out"`; test -z "$ac_out"; } && 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19599which seems to be undefined. Please make sure it is defined" >&5 19600$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19601which seems to be undefined. Please make sure it is defined" >&2;} 19602 19603 rm -f "$ac_tmp/stdin" 19604 case $ac_file in 19605 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19606 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19607 esac \ 19608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19609 ;; 19610 :H) 19611 # 19612 # CONFIG_HEADER 19613 # 19614 if test x"$ac_file" != x-; then 19615 { 19616 $as_echo "/* $configure_input */" \ 19617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19618 } >"$ac_tmp/config.h" \ 19619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19620 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19622$as_echo "$as_me: $ac_file is unchanged" >&6;} 19623 else 19624 rm -f "$ac_file" 19625 mv "$ac_tmp/config.h" "$ac_file" \ 19626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19627 fi 19628 else 19629 $as_echo "/* $configure_input */" \ 19630 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19631 || as_fn_error $? "could not create -" "$LINENO" 5 19632 fi 19633# Compute "$ac_file"'s index in $config_headers. 19634_am_arg="$ac_file" 19635_am_stamp_count=1 19636for _am_header in $config_headers :; do 19637 case $_am_header in 19638 $_am_arg | $_am_arg:* ) 19639 break ;; 19640 * ) 19641 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19642 esac 19643done 19644echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19645$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19646 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19647 X"$_am_arg" : 'X\(//\)$' \| \ 19648 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19649$as_echo X"$_am_arg" | 19650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19651 s//\1/ 19652 q 19653 } 19654 /^X\(\/\/\)[^/].*/{ 19655 s//\1/ 19656 q 19657 } 19658 /^X\(\/\/\)$/{ 19659 s//\1/ 19660 q 19661 } 19662 /^X\(\/\).*/{ 19663 s//\1/ 19664 q 19665 } 19666 s/.*/./; q'`/stamp-h$_am_stamp_count 19667 ;; 19668 19669 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19670$as_echo "$as_me: executing $ac_file commands" >&6;} 19671 ;; 19672 esac 19673 19674 19675 case $ac_file$ac_mode in 19676 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19677 # Older Autoconf quotes --file arguments for eval, but not when files 19678 # are listed without --file. Let's play safe and only enable the eval 19679 # if we detect the quoting. 19680 case $CONFIG_FILES in 19681 *\'*) eval set x "$CONFIG_FILES" ;; 19682 *) set x $CONFIG_FILES ;; 19683 esac 19684 shift 19685 for mf 19686 do 19687 # Strip MF so we end up with the name of the file. 19688 mf=`echo "$mf" | sed -e 's/:.*$//'` 19689 # Check whether this is an Automake generated Makefile or not. 19690 # We used to match only the files named 'Makefile.in', but 19691 # some people rename them; so instead we look at the file content. 19692 # Grep'ing the first line is not enough: some people post-process 19693 # each Makefile.in and add a new line on top of each file to say so. 19694 # Grep'ing the whole file is not good either: AIX grep has a line 19695 # limit of 2048, but all sed's we know have understand at least 4000. 19696 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19697 dirpart=`$as_dirname -- "$mf" || 19698$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19699 X"$mf" : 'X\(//\)[^/]' \| \ 19700 X"$mf" : 'X\(//\)$' \| \ 19701 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19702$as_echo X"$mf" | 19703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19704 s//\1/ 19705 q 19706 } 19707 /^X\(\/\/\)[^/].*/{ 19708 s//\1/ 19709 q 19710 } 19711 /^X\(\/\/\)$/{ 19712 s//\1/ 19713 q 19714 } 19715 /^X\(\/\).*/{ 19716 s//\1/ 19717 q 19718 } 19719 s/.*/./; q'` 19720 else 19721 continue 19722 fi 19723 # Extract the definition of DEPDIR, am__include, and am__quote 19724 # from the Makefile without running 'make'. 19725 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19726 test -z "$DEPDIR" && continue 19727 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19728 test -z "$am__include" && continue 19729 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19730 # Find all dependency output files, they are included files with 19731 # $(DEPDIR) in their names. We invoke sed twice because it is the 19732 # simplest approach to changing $(DEPDIR) to its actual value in the 19733 # expansion. 19734 for file in `sed -n " 19735 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19736 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19737 # Make sure the directory exists. 19738 test -f "$dirpart/$file" && continue 19739 fdir=`$as_dirname -- "$file" || 19740$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19741 X"$file" : 'X\(//\)[^/]' \| \ 19742 X"$file" : 'X\(//\)$' \| \ 19743 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19744$as_echo X"$file" | 19745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19746 s//\1/ 19747 q 19748 } 19749 /^X\(\/\/\)[^/].*/{ 19750 s//\1/ 19751 q 19752 } 19753 /^X\(\/\/\)$/{ 19754 s//\1/ 19755 q 19756 } 19757 /^X\(\/\).*/{ 19758 s//\1/ 19759 q 19760 } 19761 s/.*/./; q'` 19762 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19763 # echo "creating $dirpart/$file" 19764 echo '# dummy' > "$dirpart/$file" 19765 done 19766 done 19767} 19768 ;; 19769 "libtool":C) 19770 19771 # See if we are running on zsh, and set the options which allow our 19772 # commands through without removal of \ escapes. 19773 if test -n "${ZSH_VERSION+set}" ; then 19774 setopt NO_GLOB_SUBST 19775 fi 19776 19777 cfgfile="${ofile}T" 19778 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19779 $RM "$cfgfile" 19780 19781 cat <<_LT_EOF >> "$cfgfile" 19782#! $SHELL 19783 19784# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19785# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19786# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19787# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19788# 19789# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19790# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 19791# Inc. 19792# Written by Gordon Matzigkeit, 1996 19793# 19794# This file is part of GNU Libtool. 19795# 19796# GNU Libtool is free software; you can redistribute it and/or 19797# modify it under the terms of the GNU General Public License as 19798# published by the Free Software Foundation; either version 2 of 19799# the License, or (at your option) any later version. 19800# 19801# As a special exception to the GNU General Public License, 19802# if you distribute this file as part of a program or library that 19803# is built using GNU Libtool, you may include this file under the 19804# same distribution terms that you use for the rest of that program. 19805# 19806# GNU Libtool is distributed in the hope that it will be useful, 19807# but WITHOUT ANY WARRANTY; without even the implied warranty of 19808# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19809# GNU General Public License for more details. 19810# 19811# You should have received a copy of the GNU General Public License 19812# along with GNU Libtool; see the file COPYING. If not, a copy 19813# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19814# obtained by writing to the Free Software Foundation, Inc., 19815# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19816 19817 19818# The names of the tagged configurations supported by this script. 19819available_tags="" 19820 19821# ### BEGIN LIBTOOL CONFIG 19822 19823# Whether or not to build static libraries. 19824build_old_libs=$enable_static 19825 19826# Which release of libtool.m4 was used? 19827macro_version=$macro_version 19828macro_revision=$macro_revision 19829 19830# Whether or not to build shared libraries. 19831build_libtool_libs=$enable_shared 19832 19833# What type of objects to build. 19834pic_mode=$pic_mode 19835 19836# Whether or not to optimize for fast installation. 19837fast_install=$enable_fast_install 19838 19839# Shell to use when invoking shell scripts. 19840SHELL=$lt_SHELL 19841 19842# An echo program that protects backslashes. 19843ECHO=$lt_ECHO 19844 19845# The host system. 19846host_alias=$host_alias 19847host=$host 19848host_os=$host_os 19849 19850# The build system. 19851build_alias=$build_alias 19852build=$build 19853build_os=$build_os 19854 19855# A sed program that does not truncate output. 19856SED=$lt_SED 19857 19858# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19859Xsed="\$SED -e 1s/^X//" 19860 19861# A grep program that handles long lines. 19862GREP=$lt_GREP 19863 19864# An ERE matcher. 19865EGREP=$lt_EGREP 19866 19867# A literal string matcher. 19868FGREP=$lt_FGREP 19869 19870# A BSD- or MS-compatible name lister. 19871NM=$lt_NM 19872 19873# Whether we need soft or hard links. 19874LN_S=$lt_LN_S 19875 19876# What is the maximum length of a command? 19877max_cmd_len=$max_cmd_len 19878 19879# Object file suffix (normally "o"). 19880objext=$ac_objext 19881 19882# Executable file suffix (normally ""). 19883exeext=$exeext 19884 19885# whether the shell understands "unset". 19886lt_unset=$lt_unset 19887 19888# turn spaces into newlines. 19889SP2NL=$lt_lt_SP2NL 19890 19891# turn newlines into spaces. 19892NL2SP=$lt_lt_NL2SP 19893 19894# convert \$build file names to \$host format. 19895to_host_file_cmd=$lt_cv_to_host_file_cmd 19896 19897# convert \$build files to toolchain format. 19898to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19899 19900# An object symbol dumper. 19901OBJDUMP=$lt_OBJDUMP 19902 19903# Method to check whether dependent libraries are shared objects. 19904deplibs_check_method=$lt_deplibs_check_method 19905 19906# Command to use when deplibs_check_method = "file_magic". 19907file_magic_cmd=$lt_file_magic_cmd 19908 19909# How to find potential files when deplibs_check_method = "file_magic". 19910file_magic_glob=$lt_file_magic_glob 19911 19912# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19913want_nocaseglob=$lt_want_nocaseglob 19914 19915# DLL creation program. 19916DLLTOOL=$lt_DLLTOOL 19917 19918# Command to associate shared and link libraries. 19919sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19920 19921# The archiver. 19922AR=$lt_AR 19923 19924# Flags to create an archive. 19925AR_FLAGS=$lt_AR_FLAGS 19926 19927# How to feed a file listing to the archiver. 19928archiver_list_spec=$lt_archiver_list_spec 19929 19930# A symbol stripping program. 19931STRIP=$lt_STRIP 19932 19933# Commands used to install an old-style archive. 19934RANLIB=$lt_RANLIB 19935old_postinstall_cmds=$lt_old_postinstall_cmds 19936old_postuninstall_cmds=$lt_old_postuninstall_cmds 19937 19938# Whether to use a lock for old archive extraction. 19939lock_old_archive_extraction=$lock_old_archive_extraction 19940 19941# A C compiler. 19942LTCC=$lt_CC 19943 19944# LTCC compiler flags. 19945LTCFLAGS=$lt_CFLAGS 19946 19947# Take the output of nm and produce a listing of raw symbols and C names. 19948global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19949 19950# Transform the output of nm in a proper C declaration. 19951global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19952 19953# Transform the output of nm in a C name address pair. 19954global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19955 19956# Transform the output of nm in a C name address pair when lib prefix is needed. 19957global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19958 19959# Specify filename containing input files for \$NM. 19960nm_file_list_spec=$lt_nm_file_list_spec 19961 19962# The root where to search for dependent libraries,and in which our libraries should be installed. 19963lt_sysroot=$lt_sysroot 19964 19965# The name of the directory that contains temporary libtool files. 19966objdir=$objdir 19967 19968# Used to examine libraries when file_magic_cmd begins with "file". 19969MAGIC_CMD=$MAGIC_CMD 19970 19971# Must we lock files when doing compilation? 19972need_locks=$lt_need_locks 19973 19974# Manifest tool. 19975MANIFEST_TOOL=$lt_MANIFEST_TOOL 19976 19977# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19978DSYMUTIL=$lt_DSYMUTIL 19979 19980# Tool to change global to local symbols on Mac OS X. 19981NMEDIT=$lt_NMEDIT 19982 19983# Tool to manipulate fat objects and archives on Mac OS X. 19984LIPO=$lt_LIPO 19985 19986# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19987OTOOL=$lt_OTOOL 19988 19989# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19990OTOOL64=$lt_OTOOL64 19991 19992# Old archive suffix (normally "a"). 19993libext=$libext 19994 19995# Shared library suffix (normally ".so"). 19996shrext_cmds=$lt_shrext_cmds 19997 19998# The commands to extract the exported symbol list from a shared archive. 19999extract_expsyms_cmds=$lt_extract_expsyms_cmds 20000 20001# Variables whose values should be saved in libtool wrapper scripts and 20002# restored at link time. 20003variables_saved_for_relink=$lt_variables_saved_for_relink 20004 20005# Do we need the "lib" prefix for modules? 20006need_lib_prefix=$need_lib_prefix 20007 20008# Do we need a version for libraries? 20009need_version=$need_version 20010 20011# Library versioning type. 20012version_type=$version_type 20013 20014# Shared library runtime path variable. 20015runpath_var=$runpath_var 20016 20017# Shared library path variable. 20018shlibpath_var=$shlibpath_var 20019 20020# Is shlibpath searched before the hard-coded library search path? 20021shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20022 20023# Format of library name prefix. 20024libname_spec=$lt_libname_spec 20025 20026# List of archive names. First name is the real one, the rest are links. 20027# The last name is the one that the linker finds with -lNAME 20028library_names_spec=$lt_library_names_spec 20029 20030# The coded name of the library, if different from the real name. 20031soname_spec=$lt_soname_spec 20032 20033# Permission mode override for installation of shared libraries. 20034install_override_mode=$lt_install_override_mode 20035 20036# Command to use after installation of a shared archive. 20037postinstall_cmds=$lt_postinstall_cmds 20038 20039# Command to use after uninstallation of a shared archive. 20040postuninstall_cmds=$lt_postuninstall_cmds 20041 20042# Commands used to finish a libtool library installation in a directory. 20043finish_cmds=$lt_finish_cmds 20044 20045# As "finish_cmds", except a single script fragment to be evaled but 20046# not shown. 20047finish_eval=$lt_finish_eval 20048 20049# Whether we should hardcode library paths into libraries. 20050hardcode_into_libs=$hardcode_into_libs 20051 20052# Compile-time system search path for libraries. 20053sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20054 20055# Run-time system search path for libraries. 20056sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20057 20058# Whether dlopen is supported. 20059dlopen_support=$enable_dlopen 20060 20061# Whether dlopen of programs is supported. 20062dlopen_self=$enable_dlopen_self 20063 20064# Whether dlopen of statically linked programs is supported. 20065dlopen_self_static=$enable_dlopen_self_static 20066 20067# Commands to strip libraries. 20068old_striplib=$lt_old_striplib 20069striplib=$lt_striplib 20070 20071 20072# The linker used to build libraries. 20073LD=$lt_LD 20074 20075# How to create reloadable object files. 20076reload_flag=$lt_reload_flag 20077reload_cmds=$lt_reload_cmds 20078 20079# Commands used to build an old-style archive. 20080old_archive_cmds=$lt_old_archive_cmds 20081 20082# A language specific compiler. 20083CC=$lt_compiler 20084 20085# Is the compiler the GNU compiler? 20086with_gcc=$GCC 20087 20088# Compiler flag to turn off builtin functions. 20089no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20090 20091# Additional compiler flags for building library objects. 20092pic_flag=$lt_lt_prog_compiler_pic 20093 20094# How to pass a linker flag through the compiler. 20095wl=$lt_lt_prog_compiler_wl 20096 20097# Compiler flag to prevent dynamic linking. 20098link_static_flag=$lt_lt_prog_compiler_static 20099 20100# Does compiler simultaneously support -c and -o options? 20101compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20102 20103# Whether or not to add -lc for building shared libraries. 20104build_libtool_need_lc=$archive_cmds_need_lc 20105 20106# Whether or not to disallow shared libs when runtime libs are static. 20107allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20108 20109# Compiler flag to allow reflexive dlopens. 20110export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20111 20112# Compiler flag to generate shared objects directly from archives. 20113whole_archive_flag_spec=$lt_whole_archive_flag_spec 20114 20115# Whether the compiler copes with passing no objects directly. 20116compiler_needs_object=$lt_compiler_needs_object 20117 20118# Create an old-style archive from a shared archive. 20119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20120 20121# Create a temporary old-style archive to link instead of a shared archive. 20122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20123 20124# Commands used to build a shared archive. 20125archive_cmds=$lt_archive_cmds 20126archive_expsym_cmds=$lt_archive_expsym_cmds 20127 20128# Commands used to build a loadable module if different from building 20129# a shared archive. 20130module_cmds=$lt_module_cmds 20131module_expsym_cmds=$lt_module_expsym_cmds 20132 20133# Whether we are building with GNU ld or not. 20134with_gnu_ld=$lt_with_gnu_ld 20135 20136# Flag that allows shared libraries with undefined symbols to be built. 20137allow_undefined_flag=$lt_allow_undefined_flag 20138 20139# Flag that enforces no undefined symbols. 20140no_undefined_flag=$lt_no_undefined_flag 20141 20142# Flag to hardcode \$libdir into a binary during linking. 20143# This must work even if \$libdir does not exist 20144hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20145 20146# If ld is used when linking, flag to hardcode \$libdir into a binary 20147# during linking. This must work even if \$libdir does not exist. 20148hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20149 20150# Whether we need a single "-rpath" flag with a separated argument. 20151hardcode_libdir_separator=$lt_hardcode_libdir_separator 20152 20153# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20154# DIR into the resulting binary. 20155hardcode_direct=$hardcode_direct 20156 20157# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20158# DIR into the resulting binary and the resulting library dependency is 20159# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20160# library is relocated. 20161hardcode_direct_absolute=$hardcode_direct_absolute 20162 20163# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20164# into the resulting binary. 20165hardcode_minus_L=$hardcode_minus_L 20166 20167# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20168# into the resulting binary. 20169hardcode_shlibpath_var=$hardcode_shlibpath_var 20170 20171# Set to "yes" if building a shared library automatically hardcodes DIR 20172# into the library and all subsequent libraries and executables linked 20173# against it. 20174hardcode_automatic=$hardcode_automatic 20175 20176# Set to yes if linker adds runtime paths of dependent libraries 20177# to runtime path list. 20178inherit_rpath=$inherit_rpath 20179 20180# Whether libtool must link a program against all its dependency libraries. 20181link_all_deplibs=$link_all_deplibs 20182 20183# Set to "yes" if exported symbols are required. 20184always_export_symbols=$always_export_symbols 20185 20186# The commands to list exported symbols. 20187export_symbols_cmds=$lt_export_symbols_cmds 20188 20189# Symbols that should not be listed in the preloaded symbols. 20190exclude_expsyms=$lt_exclude_expsyms 20191 20192# Symbols that must always be exported. 20193include_expsyms=$lt_include_expsyms 20194 20195# Commands necessary for linking programs (against libraries) with templates. 20196prelink_cmds=$lt_prelink_cmds 20197 20198# Commands necessary for finishing linking programs. 20199postlink_cmds=$lt_postlink_cmds 20200 20201# Specify filename containing input files. 20202file_list_spec=$lt_file_list_spec 20203 20204# How to hardcode a shared library path into an executable. 20205hardcode_action=$hardcode_action 20206 20207# ### END LIBTOOL CONFIG 20208 20209_LT_EOF 20210 20211 case $host_os in 20212 aix3*) 20213 cat <<\_LT_EOF >> "$cfgfile" 20214# AIX sometimes has problems with the GCC collect2 program. For some 20215# reason, if we set the COLLECT_NAMES environment variable, the problems 20216# vanish in a puff of smoke. 20217if test "X${COLLECT_NAMES+set}" != Xset; then 20218 COLLECT_NAMES= 20219 export COLLECT_NAMES 20220fi 20221_LT_EOF 20222 ;; 20223 esac 20224 20225 20226ltmain="$ac_aux_dir/ltmain.sh" 20227 20228 20229 # We use sed instead of cat because bash on DJGPP gets confused if 20230 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20231 # text mode, it properly converts lines to CR/LF. This bash problem 20232 # is reportedly fixed, but why not run on old versions too? 20233 sed '$q' "$ltmain" >> "$cfgfile" \ 20234 || (rm -f "$cfgfile"; exit 1) 20235 20236 if test x"$xsi_shell" = xyes; then 20237 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20238func_dirname ()\ 20239{\ 20240\ case ${1} in\ 20241\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20242\ * ) func_dirname_result="${3}" ;;\ 20243\ esac\ 20244} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20245 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20247test 0 -eq $? || _lt_function_replace_fail=: 20248 20249 20250 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20251func_basename ()\ 20252{\ 20253\ func_basename_result="${1##*/}"\ 20254} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20255 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20257test 0 -eq $? || _lt_function_replace_fail=: 20258 20259 20260 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20261func_dirname_and_basename ()\ 20262{\ 20263\ case ${1} in\ 20264\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20265\ * ) func_dirname_result="${3}" ;;\ 20266\ esac\ 20267\ func_basename_result="${1##*/}"\ 20268} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20269 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20271test 0 -eq $? || _lt_function_replace_fail=: 20272 20273 20274 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20275func_stripname ()\ 20276{\ 20277\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20278\ # positional parameters, so assign one to ordinary parameter first.\ 20279\ func_stripname_result=${3}\ 20280\ func_stripname_result=${func_stripname_result#"${1}"}\ 20281\ func_stripname_result=${func_stripname_result%"${2}"}\ 20282} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20283 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20285test 0 -eq $? || _lt_function_replace_fail=: 20286 20287 20288 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20289func_split_long_opt ()\ 20290{\ 20291\ func_split_long_opt_name=${1%%=*}\ 20292\ func_split_long_opt_arg=${1#*=}\ 20293} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20294 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20295 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20296test 0 -eq $? || _lt_function_replace_fail=: 20297 20298 20299 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20300func_split_short_opt ()\ 20301{\ 20302\ func_split_short_opt_arg=${1#??}\ 20303\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20304} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20305 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20306 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20307test 0 -eq $? || _lt_function_replace_fail=: 20308 20309 20310 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20311func_lo2o ()\ 20312{\ 20313\ case ${1} in\ 20314\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20315\ *) func_lo2o_result=${1} ;;\ 20316\ esac\ 20317} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20318 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20320test 0 -eq $? || _lt_function_replace_fail=: 20321 20322 20323 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20324func_xform ()\ 20325{\ 20326 func_xform_result=${1%.*}.lo\ 20327} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20328 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20330test 0 -eq $? || _lt_function_replace_fail=: 20331 20332 20333 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20334func_arith ()\ 20335{\ 20336 func_arith_result=$(( $* ))\ 20337} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20338 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20340test 0 -eq $? || _lt_function_replace_fail=: 20341 20342 20343 sed -e '/^func_len ()$/,/^} # func_len /c\ 20344func_len ()\ 20345{\ 20346 func_len_result=${#1}\ 20347} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20348 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20350test 0 -eq $? || _lt_function_replace_fail=: 20351 20352fi 20353 20354if test x"$lt_shell_append" = xyes; then 20355 sed -e '/^func_append ()$/,/^} # func_append /c\ 20356func_append ()\ 20357{\ 20358 eval "${1}+=\\${2}"\ 20359} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20360 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20361 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20362test 0 -eq $? || _lt_function_replace_fail=: 20363 20364 20365 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20366func_append_quoted ()\ 20367{\ 20368\ func_quote_for_eval "${2}"\ 20369\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20370} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20371 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20372 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20373test 0 -eq $? || _lt_function_replace_fail=: 20374 20375 20376 # Save a `func_append' function call where possible by direct use of '+=' 20377 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20378 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20379 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20380 test 0 -eq $? || _lt_function_replace_fail=: 20381else 20382 # Save a `func_append' function call even when '+=' is not available 20383 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20384 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20386 test 0 -eq $? || _lt_function_replace_fail=: 20387fi 20388 20389if test x"$_lt_function_replace_fail" = x":"; then 20390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20391$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20392fi 20393 20394 20395 mv -f "$cfgfile" "$ofile" || 20396 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20397 chmod +x "$ofile" 20398 20399 ;; 20400 20401 esac 20402done # for ac_tag 20403 20404 20405as_fn_exit 0 20406_ACEOF 20407ac_clean_files=$ac_clean_files_save 20408 20409test $ac_write_fail = 0 || 20410 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20411 20412 20413# configure is writing to config.log, and then calls config.status. 20414# config.status does its own redirection, appending to config.log. 20415# Unfortunately, on DOS this fails, as config.log is still kept open 20416# by configure, so config.status won't be able to write to it; its 20417# output is simply discarded. So we exec the FD to /dev/null, 20418# effectively closing config.log, so it can be properly (re)opened and 20419# appended to by config.status. When coming back to configure, we 20420# need to make the FD available again. 20421if test "$no_create" != yes; then 20422 ac_cs_success=: 20423 ac_config_status_args= 20424 test "$silent" = yes && 20425 ac_config_status_args="$ac_config_status_args --quiet" 20426 exec 5>/dev/null 20427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20428 exec 5>>config.log 20429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20430 # would make configure fail if this is the last instruction. 20431 $ac_cs_success || as_fn_exit 1 20432fi 20433if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20435$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20436fi 20437 20438