configure revision 42a55b46
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xf86-video-r128 6.9.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='xf86-video-r128' 573PACKAGE_TARNAME='xf86-video-r128' 574PACKAGE_VERSION='6.9.1' 575PACKAGE_STRING='xf86-video-r128 6.9.1' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620DRIVER_NAME 621moduledir 622XSERVER_LIBPCIACCESS_FALSE 623XSERVER_LIBPCIACCESS_TRUE 624PCIACCESS_LIBS 625PCIACCESS_CFLAGS 626USE_EXA_FALSE 627USE_EXA_TRUE 628XAA_FALSE 629XAA_TRUE 630DRI_LIBS 631DRI_CFLAGS 632DRI_FALSE 633DRI_TRUE 634HAVE_XEXTPROTO_71_FALSE 635HAVE_XEXTPROTO_71_TRUE 636XEXT_LIBS 637XEXT_CFLAGS 638XORG_LIBS 639XORG_CFLAGS 640OTOOL64 641OTOOL 642LIPO 643NMEDIT 644DSYMUTIL 645MANIFEST_TOOL 646RANLIB 647ac_ct_AR 648AR 649DLLTOOL 650OBJDUMP 651LN_S 652NM 653ac_ct_DUMPBIN 654DUMPBIN 655LD 656FGREP 657LIBTOOL 658MAINT 659MAINTAINER_MODE_FALSE 660MAINTAINER_MODE_TRUE 661AM_BACKSLASH 662AM_DEFAULT_VERBOSITY 663AM_DEFAULT_V 664AM_V 665MAN_SUBSTS 666XORG_MAN_PAGE 667ADMIN_MAN_DIR 668DRIVER_MAN_DIR 669MISC_MAN_DIR 670FILE_MAN_DIR 671LIB_MAN_DIR 672APP_MAN_DIR 673ADMIN_MAN_SUFFIX 674DRIVER_MAN_SUFFIX 675MISC_MAN_SUFFIX 676FILE_MAN_SUFFIX 677LIB_MAN_SUFFIX 678APP_MAN_SUFFIX 679SED 680host_os 681host_vendor 682host_cpu 683host 684build_os 685build_vendor 686build_cpu 687build 688INSTALL_CMD 689PKG_CONFIG_LIBDIR 690PKG_CONFIG_PATH 691PKG_CONFIG 692CHANGELOG_CMD 693STRICT_CFLAGS 694CWARNFLAGS 695BASE_CFLAGS 696EGREP 697GREP 698CPP 699am__fastdepCC_FALSE 700am__fastdepCC_TRUE 701CCDEPMODE 702am__nodep 703AMDEPBACKSLASH 704AMDEP_FALSE 705AMDEP_TRUE 706am__quote 707am__include 708DEPDIR 709OBJEXT 710EXEEXT 711ac_ct_CC 712CPPFLAGS 713LDFLAGS 714CFLAGS 715CC 716am__untar 717am__tar 718AMTAR 719am__leading_dot 720SET_MAKE 721AWK 722mkdir_p 723MKDIR_P 724INSTALL_STRIP_PROGRAM 725STRIP 726install_sh 727MAKEINFO 728AUTOHEADER 729AUTOMAKE 730AUTOCONF 731ACLOCAL 732VERSION 733PACKAGE 734CYGPATH_W 735am__isrc 736INSTALL_DATA 737INSTALL_SCRIPT 738INSTALL_PROGRAM 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_dependency_tracking 781enable_selective_werror 782enable_strict_compilation 783enable_silent_rules 784enable_maintainer_mode 785enable_static 786enable_shared 787with_pic 788enable_fast_install 789with_gnu_ld 790with_sysroot 791enable_libtool_lock 792with_xorg_module_dir 793enable_dri 794enable_exa 795enable_xaa 796' 797 ac_precious_vars='build_alias 798host_alias 799target_alias 800CC 801CFLAGS 802LDFLAGS 803LIBS 804CPPFLAGS 805CPP 806PKG_CONFIG 807PKG_CONFIG_PATH 808PKG_CONFIG_LIBDIR 809XORG_CFLAGS 810XORG_LIBS 811XEXT_CFLAGS 812XEXT_LIBS 813DRI_CFLAGS 814DRI_LIBS 815PCIACCESS_CFLAGS 816PCIACCESS_LIBS' 817 818 819# Initialize some variables set by options. 820ac_init_help= 821ac_init_version=false 822ac_unrecognized_opts= 823ac_unrecognized_sep= 824# The variables have the same names as the options, with 825# dashes changed to underlines. 826cache_file=/dev/null 827exec_prefix=NONE 828no_create= 829no_recursion= 830prefix=NONE 831program_prefix=NONE 832program_suffix=NONE 833program_transform_name=s,x,x, 834silent= 835site= 836srcdir= 837verbose= 838x_includes=NONE 839x_libraries=NONE 840 841# Installation directory options. 842# These are left unexpanded so users can "make install exec_prefix=/foo" 843# and all the variables that are supposed to be based on exec_prefix 844# by default will actually change. 845# Use braces instead of parens because sh, perl, etc. also accept them. 846# (The list follows the same order as the GNU Coding Standards.) 847bindir='${exec_prefix}/bin' 848sbindir='${exec_prefix}/sbin' 849libexecdir='${exec_prefix}/libexec' 850datarootdir='${prefix}/share' 851datadir='${datarootdir}' 852sysconfdir='${prefix}/etc' 853sharedstatedir='${prefix}/com' 854localstatedir='${prefix}/var' 855includedir='${prefix}/include' 856oldincludedir='/usr/include' 857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 858infodir='${datarootdir}/info' 859htmldir='${docdir}' 860dvidir='${docdir}' 861pdfdir='${docdir}' 862psdir='${docdir}' 863libdir='${exec_prefix}/lib' 864localedir='${datarootdir}/locale' 865mandir='${datarootdir}/man' 866 867ac_prev= 868ac_dashdash= 869for ac_option 870do 871 # If the previous option needs an argument, assign it. 872 if test -n "$ac_prev"; then 873 eval $ac_prev=\$ac_option 874 ac_prev= 875 continue 876 fi 877 878 case $ac_option in 879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 880 *=) ac_optarg= ;; 881 *) ac_optarg=yes ;; 882 esac 883 884 # Accept the important Cygnus configure options, so we can diagnose typos. 885 886 case $ac_dashdash$ac_option in 887 --) 888 ac_dashdash=yes ;; 889 890 -bindir | --bindir | --bindi | --bind | --bin | --bi) 891 ac_prev=bindir ;; 892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 893 bindir=$ac_optarg ;; 894 895 -build | --build | --buil | --bui | --bu) 896 ac_prev=build_alias ;; 897 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 898 build_alias=$ac_optarg ;; 899 900 -cache-file | --cache-file | --cache-fil | --cache-fi \ 901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 902 ac_prev=cache_file ;; 903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 905 cache_file=$ac_optarg ;; 906 907 --config-cache | -C) 908 cache_file=config.cache ;; 909 910 -datadir | --datadir | --datadi | --datad) 911 ac_prev=datadir ;; 912 -datadir=* | --datadir=* | --datadi=* | --datad=*) 913 datadir=$ac_optarg ;; 914 915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 916 | --dataroo | --dataro | --datar) 917 ac_prev=datarootdir ;; 918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 920 datarootdir=$ac_optarg ;; 921 922 -disable-* | --disable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=no ;; 937 938 -docdir | --docdir | --docdi | --doc | --do) 939 ac_prev=docdir ;; 940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 941 docdir=$ac_optarg ;; 942 943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 944 ac_prev=dvidir ;; 945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 946 dvidir=$ac_optarg ;; 947 948 -enable-* | --enable-*) 949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 952 as_fn_error $? "invalid feature name: $ac_useropt" 953 ac_useropt_orig=$ac_useropt 954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 955 case $ac_user_opts in 956 *" 957"enable_$ac_useropt" 958"*) ;; 959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 960 ac_unrecognized_sep=', ';; 961 esac 962 eval enable_$ac_useropt=\$ac_optarg ;; 963 964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 966 | --exec | --exe | --ex) 967 ac_prev=exec_prefix ;; 968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 970 | --exec=* | --exe=* | --ex=*) 971 exec_prefix=$ac_optarg ;; 972 973 -gas | --gas | --ga | --g) 974 # Obsolete; use --with-gas. 975 with_gas=yes ;; 976 977 -help | --help | --hel | --he | -h) 978 ac_init_help=long ;; 979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 980 ac_init_help=recursive ;; 981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 982 ac_init_help=short ;; 983 984 -host | --host | --hos | --ho) 985 ac_prev=host_alias ;; 986 -host=* | --host=* | --hos=* | --ho=*) 987 host_alias=$ac_optarg ;; 988 989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 990 ac_prev=htmldir ;; 991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 992 | --ht=*) 993 htmldir=$ac_optarg ;; 994 995 -includedir | --includedir | --includedi | --included | --include \ 996 | --includ | --inclu | --incl | --inc) 997 ac_prev=includedir ;; 998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 999 | --includ=* | --inclu=* | --incl=* | --inc=*) 1000 includedir=$ac_optarg ;; 1001 1002 -infodir | --infodir | --infodi | --infod | --info | --inf) 1003 ac_prev=infodir ;; 1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1005 infodir=$ac_optarg ;; 1006 1007 -libdir | --libdir | --libdi | --libd) 1008 ac_prev=libdir ;; 1009 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1010 libdir=$ac_optarg ;; 1011 1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1013 | --libexe | --libex | --libe) 1014 ac_prev=libexecdir ;; 1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1016 | --libexe=* | --libex=* | --libe=*) 1017 libexecdir=$ac_optarg ;; 1018 1019 -localedir | --localedir | --localedi | --localed | --locale) 1020 ac_prev=localedir ;; 1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1022 localedir=$ac_optarg ;; 1023 1024 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1025 | --localstate | --localstat | --localsta | --localst | --locals) 1026 ac_prev=localstatedir ;; 1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1029 localstatedir=$ac_optarg ;; 1030 1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1032 ac_prev=mandir ;; 1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1034 mandir=$ac_optarg ;; 1035 1036 -nfp | --nfp | --nf) 1037 # Obsolete; use --without-fp. 1038 with_fp=no ;; 1039 1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1041 | --no-cr | --no-c | -n) 1042 no_create=yes ;; 1043 1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1046 no_recursion=yes ;; 1047 1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1050 | --oldin | --oldi | --old | --ol | --o) 1051 ac_prev=oldincludedir ;; 1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1055 oldincludedir=$ac_optarg ;; 1056 1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1058 ac_prev=prefix ;; 1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1060 prefix=$ac_optarg ;; 1061 1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1063 | --program-pre | --program-pr | --program-p) 1064 ac_prev=program_prefix ;; 1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1067 program_prefix=$ac_optarg ;; 1068 1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1070 | --program-suf | --program-su | --program-s) 1071 ac_prev=program_suffix ;; 1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1074 program_suffix=$ac_optarg ;; 1075 1076 -program-transform-name | --program-transform-name \ 1077 | --program-transform-nam | --program-transform-na \ 1078 | --program-transform-n | --program-transform- \ 1079 | --program-transform | --program-transfor \ 1080 | --program-transfo | --program-transf \ 1081 | --program-trans | --program-tran \ 1082 | --progr-tra | --program-tr | --program-t) 1083 ac_prev=program_transform_name ;; 1084 -program-transform-name=* | --program-transform-name=* \ 1085 | --program-transform-nam=* | --program-transform-na=* \ 1086 | --program-transform-n=* | --program-transform-=* \ 1087 | --program-transform=* | --program-transfor=* \ 1088 | --program-transfo=* | --program-transf=* \ 1089 | --program-trans=* | --program-tran=* \ 1090 | --progr-tra=* | --program-tr=* | --program-t=*) 1091 program_transform_name=$ac_optarg ;; 1092 1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1094 ac_prev=pdfdir ;; 1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1096 pdfdir=$ac_optarg ;; 1097 1098 -psdir | --psdir | --psdi | --psd | --ps) 1099 ac_prev=psdir ;; 1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1101 psdir=$ac_optarg ;; 1102 1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1104 | -silent | --silent | --silen | --sile | --sil) 1105 silent=yes ;; 1106 1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1108 ac_prev=sbindir ;; 1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1110 | --sbi=* | --sb=*) 1111 sbindir=$ac_optarg ;; 1112 1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1115 | --sharedst | --shareds | --shared | --share | --shar \ 1116 | --sha | --sh) 1117 ac_prev=sharedstatedir ;; 1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1121 | --sha=* | --sh=*) 1122 sharedstatedir=$ac_optarg ;; 1123 1124 -site | --site | --sit) 1125 ac_prev=site ;; 1126 -site=* | --site=* | --sit=*) 1127 site=$ac_optarg ;; 1128 1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1130 ac_prev=srcdir ;; 1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1132 srcdir=$ac_optarg ;; 1133 1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1135 | --syscon | --sysco | --sysc | --sys | --sy) 1136 ac_prev=sysconfdir ;; 1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1139 sysconfdir=$ac_optarg ;; 1140 1141 -target | --target | --targe | --targ | --tar | --ta | --t) 1142 ac_prev=target_alias ;; 1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1144 target_alias=$ac_optarg ;; 1145 1146 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1147 verbose=yes ;; 1148 1149 -version | --version | --versio | --versi | --vers | -V) 1150 ac_init_version=: ;; 1151 1152 -with-* | --with-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"with_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=\$ac_optarg ;; 1167 1168 -without-* | --without-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid package name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"with_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval with_$ac_useropt=no ;; 1183 1184 --x) 1185 # Obsolete; use --with-x. 1186 with_x=yes ;; 1187 1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1189 | --x-incl | --x-inc | --x-in | --x-i) 1190 ac_prev=x_includes ;; 1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1193 x_includes=$ac_optarg ;; 1194 1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1197 ac_prev=x_libraries ;; 1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1200 x_libraries=$ac_optarg ;; 1201 1202 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1203Try \`$0 --help' for more information" 1204 ;; 1205 1206 *=*) 1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1208 # Reject names that are not valid shell variable names. 1209 case $ac_envvar in #( 1210 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1212 esac 1213 eval $ac_envvar=\$ac_optarg 1214 export $ac_envvar ;; 1215 1216 *) 1217 # FIXME: should be removed in autoconf 3.0. 1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1222 ;; 1223 1224 esac 1225done 1226 1227if test -n "$ac_prev"; then 1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1229 as_fn_error $? "missing argument to $ac_option" 1230fi 1231 1232if test -n "$ac_unrecognized_opts"; then 1233 case $enable_option_checking in 1234 no) ;; 1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1237 esac 1238fi 1239 1240# Check all directory arguments for consistency. 1241for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1242 datadir sysconfdir sharedstatedir localstatedir includedir \ 1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1244 libdir localedir mandir 1245do 1246 eval ac_val=\$$ac_var 1247 # Remove trailing slashes. 1248 case $ac_val in 1249 */ ) 1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1251 eval $ac_var=\$ac_val;; 1252 esac 1253 # Be sure to have absolute directory names. 1254 case $ac_val in 1255 [\\/$]* | ?:[\\/]* ) continue;; 1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1257 esac 1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1259done 1260 1261# There might be people who depend on the old broken behavior: `$host' 1262# used to hold the argument of --host etc. 1263# FIXME: To remove some day. 1264build=$build_alias 1265host=$host_alias 1266target=$target_alias 1267 1268# FIXME: To remove some day. 1269if test "x$host_alias" != x; then 1270 if test "x$build_alias" = x; then 1271 cross_compiling=maybe 1272 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1273 If a cross compiler is detected then cross compile mode will be used" >&2 1274 elif test "x$build_alias" != "x$host_alias"; then 1275 cross_compiling=yes 1276 fi 1277fi 1278 1279ac_tool_prefix= 1280test -n "$host_alias" && ac_tool_prefix=$host_alias- 1281 1282test "$silent" = yes && exec 6>/dev/null 1283 1284 1285ac_pwd=`pwd` && test -n "$ac_pwd" && 1286ac_ls_di=`ls -di .` && 1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1288 as_fn_error $? "working directory cannot be determined" 1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1290 as_fn_error $? "pwd does not report name of working directory" 1291 1292 1293# Find the source files, if location was not specified. 1294if test -z "$srcdir"; then 1295 ac_srcdir_defaulted=yes 1296 # Try the directory containing this script, then the parent directory. 1297 ac_confdir=`$as_dirname -- "$as_myself" || 1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1299 X"$as_myself" : 'X\(//\)[^/]' \| \ 1300 X"$as_myself" : 'X\(//\)$' \| \ 1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1302$as_echo X"$as_myself" | 1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)[^/].*/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\/\)$/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\).*/{ 1316 s//\1/ 1317 q 1318 } 1319 s/.*/./; q'` 1320 srcdir=$ac_confdir 1321 if test ! -r "$srcdir/$ac_unique_file"; then 1322 srcdir=.. 1323 fi 1324else 1325 ac_srcdir_defaulted=no 1326fi 1327if test ! -r "$srcdir/$ac_unique_file"; then 1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1330fi 1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1332ac_abs_confdir=`( 1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1334 pwd)` 1335# When building in place, set srcdir=. 1336if test "$ac_abs_confdir" = "$ac_pwd"; then 1337 srcdir=. 1338fi 1339# Remove unnecessary trailing slashes from srcdir. 1340# Double slashes in file names in object file debugging info 1341# mess up M-x gdb in Emacs. 1342case $srcdir in 1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1344esac 1345for ac_var in $ac_precious_vars; do 1346 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1347 eval ac_env_${ac_var}_value=\$${ac_var} 1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1350done 1351 1352# 1353# Report the --help message. 1354# 1355if test "$ac_init_help" = "long"; then 1356 # Omit some internal or obsolete options to make the list less imposing. 1357 # This message is too long to be a string in the A/UX 3.1 sh. 1358 cat <<_ACEOF 1359\`configure' configures xf86-video-r128 6.9.1 to adapt to many kinds of systems. 1360 1361Usage: $0 [OPTION]... [VAR=VALUE]... 1362 1363To assign environment variables (e.g., CC, CFLAGS...), specify them as 1364VAR=VALUE. See below for descriptions of some of the useful variables. 1365 1366Defaults for the options are specified in brackets. 1367 1368Configuration: 1369 -h, --help display this help and exit 1370 --help=short display options specific to this package 1371 --help=recursive display the short help of all the included packages 1372 -V, --version display version information and exit 1373 -q, --quiet, --silent do not print \`checking ...' messages 1374 --cache-file=FILE cache test results in FILE [disabled] 1375 -C, --config-cache alias for \`--cache-file=config.cache' 1376 -n, --no-create do not create output files 1377 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1378 1379Installation directories: 1380 --prefix=PREFIX install architecture-independent files in PREFIX 1381 [$ac_default_prefix] 1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1383 [PREFIX] 1384 1385By default, \`make install' will install all the files in 1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1387an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1388for instance \`--prefix=\$HOME'. 1389 1390For better control, use the options below. 1391 1392Fine tuning of the installation directories: 1393 --bindir=DIR user executables [EPREFIX/bin] 1394 --sbindir=DIR system admin executables [EPREFIX/sbin] 1395 --libexecdir=DIR program executables [EPREFIX/libexec] 1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1399 --libdir=DIR object code libraries [EPREFIX/lib] 1400 --includedir=DIR C header files [PREFIX/include] 1401 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1404 --infodir=DIR info documentation [DATAROOTDIR/info] 1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1406 --mandir=DIR man documentation [DATAROOTDIR/man] 1407 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-r128] 1408 --htmldir=DIR html documentation [DOCDIR] 1409 --dvidir=DIR dvi documentation [DOCDIR] 1410 --pdfdir=DIR pdf documentation [DOCDIR] 1411 --psdir=DIR ps documentation [DOCDIR] 1412_ACEOF 1413 1414 cat <<\_ACEOF 1415 1416Program names: 1417 --program-prefix=PREFIX prepend PREFIX to installed program names 1418 --program-suffix=SUFFIX append SUFFIX to installed program names 1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1420 1421System types: 1422 --build=BUILD configure for building on BUILD [guessed] 1423 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1424_ACEOF 1425fi 1426 1427if test -n "$ac_init_help"; then 1428 case $ac_init_help in 1429 short | recursive ) echo "Configuration of xf86-video-r128 6.9.1:";; 1430 esac 1431 cat <<\_ACEOF 1432 1433Optional Features: 1434 --disable-option-checking ignore unrecognized --enable/--with options 1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1437 --disable-dependency-tracking speeds up one-time build 1438 --enable-dependency-tracking do not reject slow dependency extractors 1439 --disable-selective-werror 1440 Turn off selective compiler errors. (default: 1441 enabled) 1442 --enable-strict-compilation 1443 Enable all warnings from compiler and make them 1444 errors (default: disabled) 1445 --enable-silent-rules less verbose build output (undo: `make V=1') 1446 --disable-silent-rules verbose build output (undo: `make V=0') 1447 --enable-maintainer-mode enable make rules and dependencies not useful 1448 (and sometimes confusing) to the casual installer 1449 --enable-static[=PKGS] build static libraries [default=no] 1450 --enable-shared[=PKGS] build shared libraries [default=yes] 1451 --enable-fast-install[=PKGS] 1452 optimize for fast installation [default=yes] 1453 --disable-libtool-lock avoid locking (might break parallel builds) 1454 --disable-dri Disable DRI support [[default=auto]] 1455 --disable-exa Disable EXA support [[default=enabled]] 1456 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1457 [default=auto] 1458 1459Optional Packages: 1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1463 both] 1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1465 --with-sysroot=DIR Search for dependent libraries within DIR 1466 (or the compiler's sysroot if not specified). 1467 --with-xorg-module-dir=DIR 1468 Default xorg module directory 1469 [[default=$libdir/xorg/modules]] 1470 1471Some influential environment variables: 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 nonstandard directory <lib dir> 1476 LIBS libraries to pass to the linker, e.g. -l<library> 1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 CPP C preprocessor 1480 PKG_CONFIG path to pkg-config utility 1481 PKG_CONFIG_PATH 1482 directories to add to pkg-config's search path 1483 PKG_CONFIG_LIBDIR 1484 path overriding pkg-config's built-in search path 1485 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1486 XORG_LIBS linker flags for XORG, overriding pkg-config 1487 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1488 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1489 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1490 DRI_LIBS linker flags for DRI, 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>. 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-r128 configure 6.9.1 1563generated by GNU Autoconf 2.68 1564 1565Copyright (C) 2010 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 $as_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 ## 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-r128 $as_me 6.9.1, which was 1978generated by GNU Autoconf 2.68. 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.11' 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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# Just in case 2457sleep 1 2458echo timestamp > conftest.file 2459# Reject unsafe characters in $srcdir or the absolute working directory 2460# name. Accept space and tab only in the latter. 2461am_lf=' 2462' 2463case `pwd` in 2464 *[\\\"\#\$\&\'\`$am_lf]*) 2465 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2466esac 2467case $srcdir in 2468 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2469 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2470esac 2471 2472# Do `set' in a subshell so we don't clobber the current shell's 2473# arguments. Must try -L first in case configure is actually a 2474# symlink; some systems play weird games with the mod time of symlinks 2475# (eg FreeBSD returns the mod time of the symlink's containing 2476# directory). 2477if ( 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 rm -f conftest.file 2484 if test "$*" != "X $srcdir/configure conftest.file" \ 2485 && test "$*" != "X conftest.file $srcdir/configure"; then 2486 2487 # If neither matched, then we have a broken ls. This can happen 2488 # if, for instance, CONFIG_SHELL is bash and it inherits a 2489 # broken ls alias from the environment. This has actually 2490 # happened. Such a system could not be considered "sane". 2491 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2492alias in your environment" "$LINENO" 5 2493 fi 2494 2495 test "$2" = conftest.file 2496 ) 2497then 2498 # Ok. 2499 : 2500else 2501 as_fn_error $? "newly created file is older than distributed files! 2502Check your system clock" "$LINENO" 5 2503fi 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2505$as_echo "yes" >&6; } 2506test "$program_prefix" != NONE && 2507 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2508# Use a double $ so make ignores it. 2509test "$program_suffix" != NONE && 2510 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2511# Double any \ or $. 2512# By default was `s,x,x', remove it if useless. 2513ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2514program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2515 2516# expand $ac_aux_dir to an absolute path 2517am_aux_dir=`cd $ac_aux_dir && pwd` 2518 2519if test x"${MISSING+set}" != xset; then 2520 case $am_aux_dir in 2521 *\ * | *\ *) 2522 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2523 *) 2524 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2525 esac 2526fi 2527# Use eval to expand $SHELL 2528if eval "$MISSING --run true"; then 2529 am_missing_run="$MISSING --run " 2530else 2531 am_missing_run= 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2533$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2534fi 2535 2536if test x"${install_sh}" != xset; then 2537 case $am_aux_dir in 2538 *\ * | *\ *) 2539 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2540 *) 2541 install_sh="\${SHELL} $am_aux_dir/install-sh" 2542 esac 2543fi 2544 2545# Installed binaries are usually stripped using `strip' when the user 2546# run `make install-strip'. However `strip' might not be the right 2547# tool to use in cross-compilation environments, therefore Automake 2548# will honor the `STRIP' environment variable to overrule this program. 2549if test "$cross_compiling" != no; then 2550 if test -n "$ac_tool_prefix"; then 2551 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2552set dummy ${ac_tool_prefix}strip; ac_word=$2 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2554$as_echo_n "checking for $ac_word... " >&6; } 2555if ${ac_cv_prog_STRIP+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 if test -n "$STRIP"; then 2559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2560else 2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2562for as_dir in $PATH 2563do 2564 IFS=$as_save_IFS 2565 test -z "$as_dir" && as_dir=. 2566 for ac_exec_ext in '' $ac_executable_extensions; do 2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2568 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2570 break 2 2571 fi 2572done 2573 done 2574IFS=$as_save_IFS 2575 2576fi 2577fi 2578STRIP=$ac_cv_prog_STRIP 2579if test -n "$STRIP"; then 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2581$as_echo "$STRIP" >&6; } 2582else 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2584$as_echo "no" >&6; } 2585fi 2586 2587 2588fi 2589if test -z "$ac_cv_prog_STRIP"; then 2590 ac_ct_STRIP=$STRIP 2591 # Extract the first word of "strip", so it can be a program name with args. 2592set dummy strip; ac_word=$2 2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2594$as_echo_n "checking for $ac_word... " >&6; } 2595if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 if test -n "$ac_ct_STRIP"; then 2599 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2600else 2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2602for as_dir in $PATH 2603do 2604 IFS=$as_save_IFS 2605 test -z "$as_dir" && as_dir=. 2606 for ac_exec_ext in '' $ac_executable_extensions; do 2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2608 ac_cv_prog_ac_ct_STRIP="strip" 2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2610 break 2 2611 fi 2612done 2613 done 2614IFS=$as_save_IFS 2615 2616fi 2617fi 2618ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2619if test -n "$ac_ct_STRIP"; then 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2621$as_echo "$ac_ct_STRIP" >&6; } 2622else 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2624$as_echo "no" >&6; } 2625fi 2626 2627 if test "x$ac_ct_STRIP" = x; then 2628 STRIP=":" 2629 else 2630 case $cross_compiling:$ac_tool_warned in 2631yes:) 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2634ac_tool_warned=yes ;; 2635esac 2636 STRIP=$ac_ct_STRIP 2637 fi 2638else 2639 STRIP="$ac_cv_prog_STRIP" 2640fi 2641 2642fi 2643INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2644 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2646$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2647if test -z "$MKDIR_P"; then 2648 if ${ac_cv_path_mkdir+:} false; then : 2649 $as_echo_n "(cached) " >&6 2650else 2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2652for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2653do 2654 IFS=$as_save_IFS 2655 test -z "$as_dir" && as_dir=. 2656 for ac_prog in mkdir gmkdir; do 2657 for ac_exec_ext in '' $ac_executable_extensions; do 2658 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2659 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2660 'mkdir (GNU coreutils) '* | \ 2661 'mkdir (coreutils) '* | \ 2662 'mkdir (fileutils) '4.1*) 2663 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2664 break 3;; 2665 esac 2666 done 2667 done 2668 done 2669IFS=$as_save_IFS 2670 2671fi 2672 2673 test -d ./--version && rmdir ./--version 2674 if test "${ac_cv_path_mkdir+set}" = set; then 2675 MKDIR_P="$ac_cv_path_mkdir -p" 2676 else 2677 # As a last resort, use the slow shell script. Don't cache a 2678 # value for MKDIR_P within a source directory, because that will 2679 # break other packages using the cache if that directory is 2680 # removed, or if the value is a relative name. 2681 MKDIR_P="$ac_install_sh -d" 2682 fi 2683fi 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2685$as_echo "$MKDIR_P" >&6; } 2686 2687mkdir_p="$MKDIR_P" 2688case $mkdir_p in 2689 [\\/$]* | ?:[\\/]*) ;; 2690 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2691esac 2692 2693for ac_prog in gawk mawk nawk awk 2694do 2695 # Extract the first word of "$ac_prog", so it can be a program name with args. 2696set dummy $ac_prog; ac_word=$2 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2698$as_echo_n "checking for $ac_word... " >&6; } 2699if ${ac_cv_prog_AWK+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 if test -n "$AWK"; then 2703 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2704else 2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2706for as_dir in $PATH 2707do 2708 IFS=$as_save_IFS 2709 test -z "$as_dir" && as_dir=. 2710 for ac_exec_ext in '' $ac_executable_extensions; do 2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2712 ac_cv_prog_AWK="$ac_prog" 2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2714 break 2 2715 fi 2716done 2717 done 2718IFS=$as_save_IFS 2719 2720fi 2721fi 2722AWK=$ac_cv_prog_AWK 2723if test -n "$AWK"; then 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2725$as_echo "$AWK" >&6; } 2726else 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2728$as_echo "no" >&6; } 2729fi 2730 2731 2732 test -n "$AWK" && break 2733done 2734 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2736$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2737set x ${MAKE-make} 2738ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2739if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2740 $as_echo_n "(cached) " >&6 2741else 2742 cat >conftest.make <<\_ACEOF 2743SHELL = /bin/sh 2744all: 2745 @echo '@@@%%%=$(MAKE)=@@@%%%' 2746_ACEOF 2747# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2748case `${MAKE-make} -f conftest.make 2>/dev/null` in 2749 *@@@%%%=?*=@@@%%%*) 2750 eval ac_cv_prog_make_${ac_make}_set=yes;; 2751 *) 2752 eval ac_cv_prog_make_${ac_make}_set=no;; 2753esac 2754rm -f conftest.make 2755fi 2756if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2758$as_echo "yes" >&6; } 2759 SET_MAKE= 2760else 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2762$as_echo "no" >&6; } 2763 SET_MAKE="MAKE=${MAKE-make}" 2764fi 2765 2766rm -rf .tst 2>/dev/null 2767mkdir .tst 2>/dev/null 2768if test -d .tst; then 2769 am__leading_dot=. 2770else 2771 am__leading_dot=_ 2772fi 2773rmdir .tst 2>/dev/null 2774 2775if test "`cd $srcdir && pwd`" != "`pwd`"; then 2776 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2777 # is not polluted with repeated "-I." 2778 am__isrc=' -I$(srcdir)' 2779 # test to see if srcdir already configured 2780 if test -f $srcdir/config.status; then 2781 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2782 fi 2783fi 2784 2785# test whether we have cygpath 2786if test -z "$CYGPATH_W"; then 2787 if (cygpath --version) >/dev/null 2>/dev/null; then 2788 CYGPATH_W='cygpath -w' 2789 else 2790 CYGPATH_W=echo 2791 fi 2792fi 2793 2794 2795# Define the identity of the package. 2796 PACKAGE='xf86-video-r128' 2797 VERSION='6.9.1' 2798 2799 2800cat >>confdefs.h <<_ACEOF 2801#define PACKAGE "$PACKAGE" 2802_ACEOF 2803 2804 2805cat >>confdefs.h <<_ACEOF 2806#define VERSION "$VERSION" 2807_ACEOF 2808 2809# Some tools Automake needs. 2810 2811ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2812 2813 2814AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2815 2816 2817AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2818 2819 2820AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2821 2822 2823MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2824 2825# We need awk for the "check" target. The system "awk" is bad on 2826# some platforms. 2827# Always define AMTAR for backward compatibility. Yes, it's still used 2828# in the wild :-( We should find a proper way to deprecate it ... 2829AMTAR='$${TAR-tar}' 2830 2831am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2832 2833 2834 2835 2836 2837 2838# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850DEPDIR="${am__leading_dot}deps" 2851 2852ac_config_commands="$ac_config_commands depfiles" 2853 2854 2855am_make=${MAKE-make} 2856cat > confinc << 'END' 2857am__doit: 2858 @echo this is the am__doit target 2859.PHONY: am__doit 2860END 2861# If we don't find an include directive, just comment out the code. 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2863$as_echo_n "checking for style of include used by $am_make... " >&6; } 2864am__include="#" 2865am__quote= 2866_am_result=none 2867# First try GNU make style include. 2868echo "include confinc" > confmf 2869# Ignore all kinds of additional output from `make'. 2870case `$am_make -s -f confmf 2> /dev/null` in #( 2871*the\ am__doit\ target*) 2872 am__include=include 2873 am__quote= 2874 _am_result=GNU 2875 ;; 2876esac 2877# Now try BSD make style include. 2878if test "$am__include" = "#"; then 2879 echo '.include "confinc"' > confmf 2880 case `$am_make -s -f confmf 2> /dev/null` in #( 2881 *the\ am__doit\ target*) 2882 am__include=.include 2883 am__quote="\"" 2884 _am_result=BSD 2885 ;; 2886 esac 2887fi 2888 2889 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2891$as_echo "$_am_result" >&6; } 2892rm -f confinc confmf 2893 2894# Check whether --enable-dependency-tracking was given. 2895if test "${enable_dependency_tracking+set}" = set; then : 2896 enableval=$enable_dependency_tracking; 2897fi 2898 2899if test "x$enable_dependency_tracking" != xno; then 2900 am_depcomp="$ac_aux_dir/depcomp" 2901 AMDEPBACKSLASH='\' 2902 am__nodep='_no' 2903fi 2904 if test "x$enable_dependency_tracking" != xno; then 2905 AMDEP_TRUE= 2906 AMDEP_FALSE='#' 2907else 2908 AMDEP_TRUE='#' 2909 AMDEP_FALSE= 2910fi 2911 2912 2913ac_ext=c 2914ac_cpp='$CPP $CPPFLAGS' 2915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2917ac_compiler_gnu=$ac_cv_c_compiler_gnu 2918if test -n "$ac_tool_prefix"; then 2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2920set dummy ${ac_tool_prefix}gcc; ac_word=$2 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922$as_echo_n "checking for $ac_word... " >&6; } 2923if ${ac_cv_prog_CC+:} false; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 if test -n "$CC"; then 2927 ac_cv_prog_CC="$CC" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 test -z "$as_dir" && as_dir=. 2934 for ac_exec_ext in '' $ac_executable_extensions; do 2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2936 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2938 break 2 2939 fi 2940done 2941 done 2942IFS=$as_save_IFS 2943 2944fi 2945fi 2946CC=$ac_cv_prog_CC 2947if test -n "$CC"; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2949$as_echo "$CC" >&6; } 2950else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952$as_echo "no" >&6; } 2953fi 2954 2955 2956fi 2957if test -z "$ac_cv_prog_CC"; then 2958 ac_ct_CC=$CC 2959 # Extract the first word of "gcc", so it can be a program name with args. 2960set dummy gcc; ac_word=$2 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2962$as_echo_n "checking for $ac_word... " >&6; } 2963if ${ac_cv_prog_ac_ct_CC+:} false; then : 2964 $as_echo_n "(cached) " >&6 2965else 2966 if test -n "$ac_ct_CC"; then 2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2968else 2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2970for as_dir in $PATH 2971do 2972 IFS=$as_save_IFS 2973 test -z "$as_dir" && as_dir=. 2974 for ac_exec_ext in '' $ac_executable_extensions; do 2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2976 ac_cv_prog_ac_ct_CC="gcc" 2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2978 break 2 2979 fi 2980done 2981 done 2982IFS=$as_save_IFS 2983 2984fi 2985fi 2986ac_ct_CC=$ac_cv_prog_ac_ct_CC 2987if test -n "$ac_ct_CC"; then 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2989$as_echo "$ac_ct_CC" >&6; } 2990else 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992$as_echo "no" >&6; } 2993fi 2994 2995 if test "x$ac_ct_CC" = x; then 2996 CC="" 2997 else 2998 case $cross_compiling:$ac_tool_warned in 2999yes:) 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3002ac_tool_warned=yes ;; 3003esac 3004 CC=$ac_ct_CC 3005 fi 3006else 3007 CC="$ac_cv_prog_CC" 3008fi 3009 3010if test -z "$CC"; then 3011 if test -n "$ac_tool_prefix"; then 3012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3013set dummy ${ac_tool_prefix}cc; ac_word=$2 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3015$as_echo_n "checking for $ac_word... " >&6; } 3016if ${ac_cv_prog_CC+:} false; then : 3017 $as_echo_n "(cached) " >&6 3018else 3019 if test -n "$CC"; then 3020 ac_cv_prog_CC="$CC" # Let the user override the test. 3021else 3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3023for as_dir in $PATH 3024do 3025 IFS=$as_save_IFS 3026 test -z "$as_dir" && as_dir=. 3027 for ac_exec_ext in '' $ac_executable_extensions; do 3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3029 ac_cv_prog_CC="${ac_tool_prefix}cc" 3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3031 break 2 3032 fi 3033done 3034 done 3035IFS=$as_save_IFS 3036 3037fi 3038fi 3039CC=$ac_cv_prog_CC 3040if test -n "$CC"; then 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3042$as_echo "$CC" >&6; } 3043else 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3045$as_echo "no" >&6; } 3046fi 3047 3048 3049 fi 3050fi 3051if test -z "$CC"; then 3052 # Extract the first word of "cc", so it can be a program name with args. 3053set dummy cc; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if ${ac_cv_prog_CC+:} false; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 if test -n "$CC"; then 3060 ac_cv_prog_CC="$CC" # Let the user override the test. 3061else 3062 ac_prog_rejected=no 3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3064for as_dir in $PATH 3065do 3066 IFS=$as_save_IFS 3067 test -z "$as_dir" && as_dir=. 3068 for ac_exec_ext in '' $ac_executable_extensions; do 3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3071 ac_prog_rejected=yes 3072 continue 3073 fi 3074 ac_cv_prog_CC="cc" 3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3076 break 2 3077 fi 3078done 3079 done 3080IFS=$as_save_IFS 3081 3082if test $ac_prog_rejected = yes; then 3083 # We found a bogon in the path, so make sure we never use it. 3084 set dummy $ac_cv_prog_CC 3085 shift 3086 if test $# != 0; then 3087 # We chose a different compiler from the bogus one. 3088 # However, it has the same basename, so the bogon will be chosen 3089 # first if we set CC to just the basename; use the full file name. 3090 shift 3091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3092 fi 3093fi 3094fi 3095fi 3096CC=$ac_cv_prog_CC 3097if test -n "$CC"; then 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3099$as_echo "$CC" >&6; } 3100else 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102$as_echo "no" >&6; } 3103fi 3104 3105 3106fi 3107if test -z "$CC"; then 3108 if test -n "$ac_tool_prefix"; then 3109 for ac_prog in cl.exe 3110 do 3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3112set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114$as_echo_n "checking for $ac_word... " >&6; } 3115if ${ac_cv_prog_CC+:} false; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if test -n "$CC"; then 3119 ac_cv_prog_CC="$CC" # Let the user override the test. 3120else 3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 test -z "$as_dir" && as_dir=. 3126 for ac_exec_ext in '' $ac_executable_extensions; do 3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3130 break 2 3131 fi 3132done 3133 done 3134IFS=$as_save_IFS 3135 3136fi 3137fi 3138CC=$ac_cv_prog_CC 3139if test -n "$CC"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3141$as_echo "$CC" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 3148 test -n "$CC" && break 3149 done 3150fi 3151if test -z "$CC"; then 3152 ac_ct_CC=$CC 3153 for ac_prog in cl.exe 3154do 3155 # Extract the first word of "$ac_prog", so it can be a program name with args. 3156set dummy $ac_prog; ac_word=$2 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3158$as_echo_n "checking for $ac_word... " >&6; } 3159if ${ac_cv_prog_ac_ct_CC+:} false; then : 3160 $as_echo_n "(cached) " >&6 3161else 3162 if test -n "$ac_ct_CC"; then 3163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3164else 3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3166for as_dir in $PATH 3167do 3168 IFS=$as_save_IFS 3169 test -z "$as_dir" && as_dir=. 3170 for ac_exec_ext in '' $ac_executable_extensions; do 3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3172 ac_cv_prog_ac_ct_CC="$ac_prog" 3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3174 break 2 3175 fi 3176done 3177 done 3178IFS=$as_save_IFS 3179 3180fi 3181fi 3182ac_ct_CC=$ac_cv_prog_ac_ct_CC 3183if test -n "$ac_ct_CC"; then 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3185$as_echo "$ac_ct_CC" >&6; } 3186else 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3188$as_echo "no" >&6; } 3189fi 3190 3191 3192 test -n "$ac_ct_CC" && break 3193done 3194 3195 if test "x$ac_ct_CC" = x; then 3196 CC="" 3197 else 3198 case $cross_compiling:$ac_tool_warned in 3199yes:) 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3202ac_tool_warned=yes ;; 3203esac 3204 CC=$ac_ct_CC 3205 fi 3206fi 3207 3208fi 3209 3210 3211test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3213as_fn_error $? "no acceptable C compiler found in \$PATH 3214See \`config.log' for more details" "$LINENO" 5; } 3215 3216# Provide some information about the compiler. 3217$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3218set X $ac_compile 3219ac_compiler=$2 3220for ac_option in --version -v -V -qversion; do 3221 { { ac_try="$ac_compiler $ac_option >&5" 3222case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3227$as_echo "$ac_try_echo"; } >&5 3228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3229 ac_status=$? 3230 if test -s conftest.err; then 3231 sed '10a\ 3232... rest of stderr output deleted ... 3233 10q' conftest.err >conftest.er1 3234 cat conftest.er1 >&5 3235 fi 3236 rm -f conftest.er1 conftest.err 3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3238 test $ac_status = 0; } 3239done 3240 3241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3242/* end confdefs.h. */ 3243 3244int 3245main () 3246{ 3247 3248 ; 3249 return 0; 3250} 3251_ACEOF 3252ac_clean_files_save=$ac_clean_files 3253ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3254# Try to create an executable without -o first, disregard a.out. 3255# It will help us diagnose broken compilers, and finding out an intuition 3256# of exeext. 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3258$as_echo_n "checking whether the C compiler works... " >&6; } 3259ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3260 3261# The possible output files: 3262ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3263 3264ac_rmfiles= 3265for ac_file in $ac_files 3266do 3267 case $ac_file in 3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3269 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3270 esac 3271done 3272rm -f $ac_rmfiles 3273 3274if { { ac_try="$ac_link_default" 3275case "(($ac_try" in 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3277 *) ac_try_echo=$ac_try;; 3278esac 3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3280$as_echo "$ac_try_echo"; } >&5 3281 (eval "$ac_link_default") 2>&5 3282 ac_status=$? 3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3284 test $ac_status = 0; }; then : 3285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3286# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3287# in a Makefile. We should not override ac_cv_exeext if it was cached, 3288# so that the user can short-circuit this test for compilers unknown to 3289# Autoconf. 3290for ac_file in $ac_files '' 3291do 3292 test -f "$ac_file" || continue 3293 case $ac_file in 3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3295 ;; 3296 [ab].out ) 3297 # We found the default executable, but exeext='' is most 3298 # certainly right. 3299 break;; 3300 *.* ) 3301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3302 then :; else 3303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3304 fi 3305 # We set ac_cv_exeext here because the later test for it is not 3306 # safe: cross compilers may not add the suffix if given an `-o' 3307 # argument, so we may need to know it at that point already. 3308 # Even if this section looks crufty: it has the advantage of 3309 # actually working. 3310 break;; 3311 * ) 3312 break;; 3313 esac 3314done 3315test "$ac_cv_exeext" = no && ac_cv_exeext= 3316 3317else 3318 ac_file='' 3319fi 3320if test -z "$ac_file"; then : 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3322$as_echo "no" >&6; } 3323$as_echo "$as_me: failed program was:" >&5 3324sed 's/^/| /' conftest.$ac_ext >&5 3325 3326{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3328as_fn_error 77 "C compiler cannot create executables 3329See \`config.log' for more details" "$LINENO" 5; } 3330else 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3332$as_echo "yes" >&6; } 3333fi 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3335$as_echo_n "checking for C compiler default output file name... " >&6; } 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3337$as_echo "$ac_file" >&6; } 3338ac_exeext=$ac_cv_exeext 3339 3340rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3341ac_clean_files=$ac_clean_files_save 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3343$as_echo_n "checking for suffix of executables... " >&6; } 3344if { { ac_try="$ac_link" 3345case "(($ac_try" in 3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3347 *) ac_try_echo=$ac_try;; 3348esac 3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3350$as_echo "$ac_try_echo"; } >&5 3351 (eval "$ac_link") 2>&5 3352 ac_status=$? 3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3354 test $ac_status = 0; }; then : 3355 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3356# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3357# work properly (i.e., refer to `conftest.exe'), while it won't with 3358# `rm'. 3359for ac_file in conftest.exe conftest conftest.*; do 3360 test -f "$ac_file" || continue 3361 case $ac_file in 3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3363 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3364 break;; 3365 * ) break;; 3366 esac 3367done 3368else 3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3371as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3372See \`config.log' for more details" "$LINENO" 5; } 3373fi 3374rm -f conftest conftest$ac_cv_exeext 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3376$as_echo "$ac_cv_exeext" >&6; } 3377 3378rm -f conftest.$ac_ext 3379EXEEXT=$ac_cv_exeext 3380ac_exeext=$EXEEXT 3381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3382/* end confdefs.h. */ 3383#include <stdio.h> 3384int 3385main () 3386{ 3387FILE *f = fopen ("conftest.out", "w"); 3388 return ferror (f) || fclose (f) != 0; 3389 3390 ; 3391 return 0; 3392} 3393_ACEOF 3394ac_clean_files="$ac_clean_files conftest.out" 3395# Check that the compiler produces executables we can run. If not, either 3396# the compiler is broken, or we cross compile. 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3398$as_echo_n "checking whether we are cross compiling... " >&6; } 3399if test "$cross_compiling" != yes; then 3400 { { ac_try="$ac_link" 3401case "(($ac_try" in 3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3403 *) ac_try_echo=$ac_try;; 3404esac 3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3406$as_echo "$ac_try_echo"; } >&5 3407 (eval "$ac_link") 2>&5 3408 ac_status=$? 3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3410 test $ac_status = 0; } 3411 if { ac_try='./conftest$ac_cv_exeext' 3412 { { case "(($ac_try" in 3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3414 *) ac_try_echo=$ac_try;; 3415esac 3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3417$as_echo "$ac_try_echo"; } >&5 3418 (eval "$ac_try") 2>&5 3419 ac_status=$? 3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3421 test $ac_status = 0; }; }; then 3422 cross_compiling=no 3423 else 3424 if test "$cross_compiling" = maybe; then 3425 cross_compiling=yes 3426 else 3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3429as_fn_error $? "cannot run C compiled programs. 3430If you meant to cross compile, use \`--host'. 3431See \`config.log' for more details" "$LINENO" 5; } 3432 fi 3433 fi 3434fi 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3436$as_echo "$cross_compiling" >&6; } 3437 3438rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3439ac_clean_files=$ac_clean_files_save 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3441$as_echo_n "checking for suffix of object files... " >&6; } 3442if ${ac_cv_objext+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3446/* end confdefs.h. */ 3447 3448int 3449main () 3450{ 3451 3452 ; 3453 return 0; 3454} 3455_ACEOF 3456rm -f conftest.o conftest.obj 3457if { { ac_try="$ac_compile" 3458case "(($ac_try" in 3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3460 *) ac_try_echo=$ac_try;; 3461esac 3462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3463$as_echo "$ac_try_echo"; } >&5 3464 (eval "$ac_compile") 2>&5 3465 ac_status=$? 3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3467 test $ac_status = 0; }; then : 3468 for ac_file in conftest.o conftest.obj conftest.*; do 3469 test -f "$ac_file" || continue; 3470 case $ac_file in 3471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3473 break;; 3474 esac 3475done 3476else 3477 $as_echo "$as_me: failed program was:" >&5 3478sed 's/^/| /' conftest.$ac_ext >&5 3479 3480{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3482as_fn_error $? "cannot compute suffix of object files: cannot compile 3483See \`config.log' for more details" "$LINENO" 5; } 3484fi 3485rm -f conftest.$ac_cv_objext conftest.$ac_ext 3486fi 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3488$as_echo "$ac_cv_objext" >&6; } 3489OBJEXT=$ac_cv_objext 3490ac_objext=$OBJEXT 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3492$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3493if ${ac_cv_c_compiler_gnu+:} false; then : 3494 $as_echo_n "(cached) " >&6 3495else 3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3497/* end confdefs.h. */ 3498 3499int 3500main () 3501{ 3502#ifndef __GNUC__ 3503 choke me 3504#endif 3505 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510if ac_fn_c_try_compile "$LINENO"; then : 3511 ac_compiler_gnu=yes 3512else 3513 ac_compiler_gnu=no 3514fi 3515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3516ac_cv_c_compiler_gnu=$ac_compiler_gnu 3517 3518fi 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3520$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3521if test $ac_compiler_gnu = yes; then 3522 GCC=yes 3523else 3524 GCC= 3525fi 3526ac_test_CFLAGS=${CFLAGS+set} 3527ac_save_CFLAGS=$CFLAGS 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3529$as_echo_n "checking whether $CC accepts -g... " >&6; } 3530if ${ac_cv_prog_cc_g+:} false; then : 3531 $as_echo_n "(cached) " >&6 3532else 3533 ac_save_c_werror_flag=$ac_c_werror_flag 3534 ac_c_werror_flag=yes 3535 ac_cv_prog_cc_g=no 3536 CFLAGS="-g" 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539 3540int 3541main () 3542{ 3543 3544 ; 3545 return 0; 3546} 3547_ACEOF 3548if ac_fn_c_try_compile "$LINENO"; then : 3549 ac_cv_prog_cc_g=yes 3550else 3551 CFLAGS="" 3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554 3555int 3556main () 3557{ 3558 3559 ; 3560 return 0; 3561} 3562_ACEOF 3563if ac_fn_c_try_compile "$LINENO"; then : 3564 3565else 3566 ac_c_werror_flag=$ac_save_c_werror_flag 3567 CFLAGS="-g" 3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569/* end confdefs.h. */ 3570 3571int 3572main () 3573{ 3574 3575 ; 3576 return 0; 3577} 3578_ACEOF 3579if ac_fn_c_try_compile "$LINENO"; then : 3580 ac_cv_prog_cc_g=yes 3581fi 3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3583fi 3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3585fi 3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3587 ac_c_werror_flag=$ac_save_c_werror_flag 3588fi 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3590$as_echo "$ac_cv_prog_cc_g" >&6; } 3591if test "$ac_test_CFLAGS" = set; then 3592 CFLAGS=$ac_save_CFLAGS 3593elif test $ac_cv_prog_cc_g = yes; then 3594 if test "$GCC" = yes; then 3595 CFLAGS="-g -O2" 3596 else 3597 CFLAGS="-g" 3598 fi 3599else 3600 if test "$GCC" = yes; then 3601 CFLAGS="-O2" 3602 else 3603 CFLAGS= 3604 fi 3605fi 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3607$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3608if ${ac_cv_prog_cc_c89+:} false; then : 3609 $as_echo_n "(cached) " >&6 3610else 3611 ac_cv_prog_cc_c89=no 3612ac_save_CC=$CC 3613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614/* end confdefs.h. */ 3615#include <stdarg.h> 3616#include <stdio.h> 3617#include <sys/types.h> 3618#include <sys/stat.h> 3619/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3620struct buf { int x; }; 3621FILE * (*rcsopen) (struct buf *, struct stat *, int); 3622static char *e (p, i) 3623 char **p; 3624 int i; 3625{ 3626 return p[i]; 3627} 3628static char *f (char * (*g) (char **, int), char **p, ...) 3629{ 3630 char *s; 3631 va_list v; 3632 va_start (v,p); 3633 s = g (p, va_arg (v,int)); 3634 va_end (v); 3635 return s; 3636} 3637 3638/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3639 function prototypes and stuff, but not '\xHH' hex character constants. 3640 These don't provoke an error unfortunately, instead are silently treated 3641 as 'x'. The following induces an error, until -std is added to get 3642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3643 array size at least. It's necessary to write '\x00'==0 to get something 3644 that's true only with -std. */ 3645int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3646 3647/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3648 inside strings and character constants. */ 3649#define FOO(x) 'x' 3650int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3651 3652int test (int i, double x); 3653struct s1 {int (*f) (int a);}; 3654struct s2 {int (*f) (double a);}; 3655int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3656int argc; 3657char **argv; 3658int 3659main () 3660{ 3661return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3668do 3669 CC="$ac_save_CC $ac_arg" 3670 if ac_fn_c_try_compile "$LINENO"; then : 3671 ac_cv_prog_cc_c89=$ac_arg 3672fi 3673rm -f core conftest.err conftest.$ac_objext 3674 test "x$ac_cv_prog_cc_c89" != "xno" && break 3675done 3676rm -f conftest.$ac_ext 3677CC=$ac_save_CC 3678 3679fi 3680# AC_CACHE_VAL 3681case "x$ac_cv_prog_cc_c89" in 3682 x) 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3684$as_echo "none needed" >&6; } ;; 3685 xno) 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3687$as_echo "unsupported" >&6; } ;; 3688 *) 3689 CC="$CC $ac_cv_prog_cc_c89" 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3691$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3692esac 3693if test "x$ac_cv_prog_cc_c89" != xno; then : 3694 3695fi 3696 3697ac_ext=c 3698ac_cpp='$CPP $CPPFLAGS' 3699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3701ac_compiler_gnu=$ac_cv_c_compiler_gnu 3702 3703depcc="$CC" am_compiler_list= 3704 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3706$as_echo_n "checking dependency style of $depcc... " >&6; } 3707if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3708 $as_echo_n "(cached) " >&6 3709else 3710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3711 # We make a subdir and do the tests there. Otherwise we can end up 3712 # making bogus files that we don't know about and never remove. For 3713 # instance it was reported that on HP-UX the gcc test will end up 3714 # making a dummy file named `D' -- because `-MD' means `put the output 3715 # in D'. 3716 rm -rf conftest.dir 3717 mkdir conftest.dir 3718 # Copy depcomp to subdir because otherwise we won't find it if we're 3719 # using a relative directory. 3720 cp "$am_depcomp" conftest.dir 3721 cd conftest.dir 3722 # We will build objects and dependencies in a subdirectory because 3723 # it helps to detect inapplicable dependency modes. For instance 3724 # both Tru64's cc and ICC support -MD to output dependencies as a 3725 # side effect of compilation, but ICC will put the dependencies in 3726 # the current directory while Tru64 will put them in the object 3727 # directory. 3728 mkdir sub 3729 3730 am_cv_CC_dependencies_compiler_type=none 3731 if test "$am_compiler_list" = ""; then 3732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3733 fi 3734 am__universal=false 3735 case " $depcc " in #( 3736 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3737 esac 3738 3739 for depmode in $am_compiler_list; do 3740 # Setup a source with many dependencies, because some compilers 3741 # like to wrap large dependency lists on column 80 (with \), and 3742 # we should not choose a depcomp mode which is confused by this. 3743 # 3744 # We need to recreate these files for each test, as the compiler may 3745 # overwrite some of them when testing with obscure command lines. 3746 # This happens at least with the AIX C compiler. 3747 : > sub/conftest.c 3748 for i in 1 2 3 4 5 6; do 3749 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3750 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3751 # Solaris 8's {/usr,}/bin/sh. 3752 touch sub/conftst$i.h 3753 done 3754 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3755 3756 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3757 # mode. It turns out that the SunPro C++ compiler does not properly 3758 # handle `-M -o', and we need to detect this. Also, some Intel 3759 # versions had trouble with output in subdirs 3760 am__obj=sub/conftest.${OBJEXT-o} 3761 am__minus_obj="-o $am__obj" 3762 case $depmode in 3763 gcc) 3764 # This depmode causes a compiler race in universal mode. 3765 test "$am__universal" = false || continue 3766 ;; 3767 nosideeffect) 3768 # after this tag, mechanisms are not by side-effect, so they'll 3769 # only be used when explicitly requested 3770 if test "x$enable_dependency_tracking" = xyes; then 3771 continue 3772 else 3773 break 3774 fi 3775 ;; 3776 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3777 # This compiler won't grok `-c -o', but also, the minuso test has 3778 # not run yet. These depmodes are late enough in the game, and 3779 # so weak that their functioning should not be impacted. 3780 am__obj=conftest.${OBJEXT-o} 3781 am__minus_obj= 3782 ;; 3783 none) break ;; 3784 esac 3785 if depmode=$depmode \ 3786 source=sub/conftest.c object=$am__obj \ 3787 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3788 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3789 >/dev/null 2>conftest.err && 3790 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3792 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3794 # icc doesn't choke on unknown options, it will just issue warnings 3795 # or remarks (even with -Werror). So we grep stderr for any message 3796 # that says an option was ignored or not supported. 3797 # When given -MP, icc 7.0 and 7.1 complain thusly: 3798 # icc: Command line warning: ignoring option '-M'; no argument required 3799 # The diagnosis changed in icc 8.0: 3800 # icc: Command line remark: option '-MP' not supported 3801 if (grep 'ignoring option' conftest.err || 3802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3803 am_cv_CC_dependencies_compiler_type=$depmode 3804 break 3805 fi 3806 fi 3807 done 3808 3809 cd .. 3810 rm -rf conftest.dir 3811else 3812 am_cv_CC_dependencies_compiler_type=none 3813fi 3814 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3817$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3818CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3819 3820 if 3821 test "x$enable_dependency_tracking" != xno \ 3822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3823 am__fastdepCC_TRUE= 3824 am__fastdepCC_FALSE='#' 3825else 3826 am__fastdepCC_TRUE='#' 3827 am__fastdepCC_FALSE= 3828fi 3829 3830 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3832$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3833if ${ac_cv_prog_cc_c99+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 ac_cv_prog_cc_c99=no 3837ac_save_CC=$CC 3838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3839/* end confdefs.h. */ 3840#include <stdarg.h> 3841#include <stdbool.h> 3842#include <stdlib.h> 3843#include <wchar.h> 3844#include <stdio.h> 3845 3846// Check varargs macros. These examples are taken from C99 6.10.3.5. 3847#define debug(...) fprintf (stderr, __VA_ARGS__) 3848#define showlist(...) puts (#__VA_ARGS__) 3849#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3850static void 3851test_varargs_macros (void) 3852{ 3853 int x = 1234; 3854 int y = 5678; 3855 debug ("Flag"); 3856 debug ("X = %d\n", x); 3857 showlist (The first, second, and third items.); 3858 report (x>y, "x is %d but y is %d", x, y); 3859} 3860 3861// Check long long types. 3862#define BIG64 18446744073709551615ull 3863#define BIG32 4294967295ul 3864#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3865#if !BIG_OK 3866 your preprocessor is broken; 3867#endif 3868#if BIG_OK 3869#else 3870 your preprocessor is broken; 3871#endif 3872static long long int bignum = -9223372036854775807LL; 3873static unsigned long long int ubignum = BIG64; 3874 3875struct incomplete_array 3876{ 3877 int datasize; 3878 double data[]; 3879}; 3880 3881struct named_init { 3882 int number; 3883 const wchar_t *name; 3884 double average; 3885}; 3886 3887typedef const char *ccp; 3888 3889static inline int 3890test_restrict (ccp restrict text) 3891{ 3892 // See if C++-style comments work. 3893 // Iterate through items via the restricted pointer. 3894 // Also check for declarations in for loops. 3895 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3896 continue; 3897 return 0; 3898} 3899 3900// Check varargs and va_copy. 3901static void 3902test_varargs (const char *format, ...) 3903{ 3904 va_list args; 3905 va_start (args, format); 3906 va_list args_copy; 3907 va_copy (args_copy, args); 3908 3909 const char *str; 3910 int number; 3911 float fnumber; 3912 3913 while (*format) 3914 { 3915 switch (*format++) 3916 { 3917 case 's': // string 3918 str = va_arg (args_copy, const char *); 3919 break; 3920 case 'd': // int 3921 number = va_arg (args_copy, int); 3922 break; 3923 case 'f': // float 3924 fnumber = va_arg (args_copy, double); 3925 break; 3926 default: 3927 break; 3928 } 3929 } 3930 va_end (args_copy); 3931 va_end (args); 3932} 3933 3934int 3935main () 3936{ 3937 3938 // Check bool. 3939 _Bool success = false; 3940 3941 // Check restrict. 3942 if (test_restrict ("String literal") == 0) 3943 success = true; 3944 char *restrict newvar = "Another string"; 3945 3946 // Check varargs. 3947 test_varargs ("s, d' f .", "string", 65, 34.234); 3948 test_varargs_macros (); 3949 3950 // Check flexible array members. 3951 struct incomplete_array *ia = 3952 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3953 ia->datasize = 10; 3954 for (int i = 0; i < ia->datasize; ++i) 3955 ia->data[i] = i * 1.234; 3956 3957 // Check named initializers. 3958 struct named_init ni = { 3959 .number = 34, 3960 .name = L"Test wide string", 3961 .average = 543.34343, 3962 }; 3963 3964 ni.number = 58; 3965 3966 int dynamic_array[ni.number]; 3967 dynamic_array[ni.number - 1] = 543; 3968 3969 // work around unused variable warnings 3970 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3971 || dynamic_array[ni.number - 1] != 543); 3972 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3978do 3979 CC="$ac_save_CC $ac_arg" 3980 if ac_fn_c_try_compile "$LINENO"; then : 3981 ac_cv_prog_cc_c99=$ac_arg 3982fi 3983rm -f core conftest.err conftest.$ac_objext 3984 test "x$ac_cv_prog_cc_c99" != "xno" && break 3985done 3986rm -f conftest.$ac_ext 3987CC=$ac_save_CC 3988 3989fi 3990# AC_CACHE_VAL 3991case "x$ac_cv_prog_cc_c99" in 3992 x) 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3994$as_echo "none needed" >&6; } ;; 3995 xno) 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3997$as_echo "unsupported" >&6; } ;; 3998 *) 3999 CC="$CC $ac_cv_prog_cc_c99" 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4001$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4002esac 4003if test "x$ac_cv_prog_cc_c99" != xno; then : 4004 4005fi 4006 4007 4008 4009ac_ext=c 4010ac_cpp='$CPP $CPPFLAGS' 4011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4013ac_compiler_gnu=$ac_cv_c_compiler_gnu 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4015$as_echo_n "checking how to run the C preprocessor... " >&6; } 4016# On Suns, sometimes $CPP names a directory. 4017if test -n "$CPP" && test -d "$CPP"; then 4018 CPP= 4019fi 4020if test -z "$CPP"; then 4021 if ${ac_cv_prog_CPP+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 # Double quotes because CPP needs to be expanded 4025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4026 do 4027 ac_preproc_ok=false 4028for ac_c_preproc_warn_flag in '' yes 4029do 4030 # Use a header file that comes with gcc, so configuring glibc 4031 # with a fresh cross-compiler works. 4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4033 # <limits.h> exists even on freestanding compilers. 4034 # On the NeXT, cc -E runs the code through the compiler's parser, 4035 # not just through cpp. "Syntax error" is here to catch this case. 4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037/* end confdefs.h. */ 4038#ifdef __STDC__ 4039# include <limits.h> 4040#else 4041# include <assert.h> 4042#endif 4043 Syntax error 4044_ACEOF 4045if ac_fn_c_try_cpp "$LINENO"; then : 4046 4047else 4048 # Broken: fails on valid input. 4049continue 4050fi 4051rm -f conftest.err conftest.i conftest.$ac_ext 4052 4053 # OK, works on sane cases. Now check whether nonexistent headers 4054 # can be detected and how. 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057#include <ac_nonexistent.h> 4058_ACEOF 4059if ac_fn_c_try_cpp "$LINENO"; then : 4060 # Broken: success on invalid input. 4061continue 4062else 4063 # Passes both tests. 4064ac_preproc_ok=: 4065break 4066fi 4067rm -f conftest.err conftest.i conftest.$ac_ext 4068 4069done 4070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4071rm -f conftest.i conftest.err conftest.$ac_ext 4072if $ac_preproc_ok; then : 4073 break 4074fi 4075 4076 done 4077 ac_cv_prog_CPP=$CPP 4078 4079fi 4080 CPP=$ac_cv_prog_CPP 4081else 4082 ac_cv_prog_CPP=$CPP 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4085$as_echo "$CPP" >&6; } 4086ac_preproc_ok=false 4087for ac_c_preproc_warn_flag in '' yes 4088do 4089 # Use a header file that comes with gcc, so configuring glibc 4090 # with a fresh cross-compiler works. 4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4092 # <limits.h> exists even on freestanding compilers. 4093 # On the NeXT, cc -E runs the code through the compiler's parser, 4094 # not just through cpp. "Syntax error" is here to catch this case. 4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097#ifdef __STDC__ 4098# include <limits.h> 4099#else 4100# include <assert.h> 4101#endif 4102 Syntax error 4103_ACEOF 4104if ac_fn_c_try_cpp "$LINENO"; then : 4105 4106else 4107 # Broken: fails on valid input. 4108continue 4109fi 4110rm -f conftest.err conftest.i conftest.$ac_ext 4111 4112 # OK, works on sane cases. Now check whether nonexistent headers 4113 # can be detected and how. 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116#include <ac_nonexistent.h> 4117_ACEOF 4118if ac_fn_c_try_cpp "$LINENO"; then : 4119 # Broken: success on invalid input. 4120continue 4121else 4122 # Passes both tests. 4123ac_preproc_ok=: 4124break 4125fi 4126rm -f conftest.err conftest.i conftest.$ac_ext 4127 4128done 4129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4130rm -f conftest.i conftest.err conftest.$ac_ext 4131if $ac_preproc_ok; then : 4132 4133else 4134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4136as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4137See \`config.log' for more details" "$LINENO" 5; } 4138fi 4139 4140ac_ext=c 4141ac_cpp='$CPP $CPPFLAGS' 4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4144ac_compiler_gnu=$ac_cv_c_compiler_gnu 4145 4146 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4148$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4149if ${ac_cv_path_GREP+:} false; then : 4150 $as_echo_n "(cached) " >&6 4151else 4152 if test -z "$GREP"; then 4153 ac_path_GREP_found=false 4154 # Loop through the user's path and test for each of PROGNAME-LIST 4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4157do 4158 IFS=$as_save_IFS 4159 test -z "$as_dir" && as_dir=. 4160 for ac_prog in grep ggrep; do 4161 for ac_exec_ext in '' $ac_executable_extensions; do 4162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4164# Check for GNU ac_path_GREP and select it if it is found. 4165 # Check for GNU $ac_path_GREP 4166case `"$ac_path_GREP" --version 2>&1` in 4167*GNU*) 4168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4169*) 4170 ac_count=0 4171 $as_echo_n 0123456789 >"conftest.in" 4172 while : 4173 do 4174 cat "conftest.in" "conftest.in" >"conftest.tmp" 4175 mv "conftest.tmp" "conftest.in" 4176 cp "conftest.in" "conftest.nl" 4177 $as_echo 'GREP' >> "conftest.nl" 4178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4180 as_fn_arith $ac_count + 1 && ac_count=$as_val 4181 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4182 # Best one so far, save it but keep looking for a better one 4183 ac_cv_path_GREP="$ac_path_GREP" 4184 ac_path_GREP_max=$ac_count 4185 fi 4186 # 10*(2^10) chars as input seems more than enough 4187 test $ac_count -gt 10 && break 4188 done 4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4190esac 4191 4192 $ac_path_GREP_found && break 3 4193 done 4194 done 4195 done 4196IFS=$as_save_IFS 4197 if test -z "$ac_cv_path_GREP"; then 4198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4199 fi 4200else 4201 ac_cv_path_GREP=$GREP 4202fi 4203 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4206$as_echo "$ac_cv_path_GREP" >&6; } 4207 GREP="$ac_cv_path_GREP" 4208 4209 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4211$as_echo_n "checking for egrep... " >&6; } 4212if ${ac_cv_path_EGREP+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214else 4215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4216 then ac_cv_path_EGREP="$GREP -E" 4217 else 4218 if test -z "$EGREP"; then 4219 ac_path_EGREP_found=false 4220 # Loop through the user's path and test for each of PROGNAME-LIST 4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4223do 4224 IFS=$as_save_IFS 4225 test -z "$as_dir" && as_dir=. 4226 for ac_prog in egrep; do 4227 for ac_exec_ext in '' $ac_executable_extensions; do 4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4230# Check for GNU ac_path_EGREP and select it if it is found. 4231 # Check for GNU $ac_path_EGREP 4232case `"$ac_path_EGREP" --version 2>&1` in 4233*GNU*) 4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4235*) 4236 ac_count=0 4237 $as_echo_n 0123456789 >"conftest.in" 4238 while : 4239 do 4240 cat "conftest.in" "conftest.in" >"conftest.tmp" 4241 mv "conftest.tmp" "conftest.in" 4242 cp "conftest.in" "conftest.nl" 4243 $as_echo 'EGREP' >> "conftest.nl" 4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4246 as_fn_arith $ac_count + 1 && ac_count=$as_val 4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4248 # Best one so far, save it but keep looking for a better one 4249 ac_cv_path_EGREP="$ac_path_EGREP" 4250 ac_path_EGREP_max=$ac_count 4251 fi 4252 # 10*(2^10) chars as input seems more than enough 4253 test $ac_count -gt 10 && break 4254 done 4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4256esac 4257 4258 $ac_path_EGREP_found && break 3 4259 done 4260 done 4261 done 4262IFS=$as_save_IFS 4263 if test -z "$ac_cv_path_EGREP"; then 4264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4265 fi 4266else 4267 ac_cv_path_EGREP=$EGREP 4268fi 4269 4270 fi 4271fi 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4273$as_echo "$ac_cv_path_EGREP" >&6; } 4274 EGREP="$ac_cv_path_EGREP" 4275 4276 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4278$as_echo_n "checking for ANSI C header files... " >&6; } 4279if ${ac_cv_header_stdc+:} false; then : 4280 $as_echo_n "(cached) " >&6 4281else 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4283/* end confdefs.h. */ 4284#include <stdlib.h> 4285#include <stdarg.h> 4286#include <string.h> 4287#include <float.h> 4288 4289int 4290main () 4291{ 4292 4293 ; 4294 return 0; 4295} 4296_ACEOF 4297if ac_fn_c_try_compile "$LINENO"; then : 4298 ac_cv_header_stdc=yes 4299else 4300 ac_cv_header_stdc=no 4301fi 4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4303 4304if test $ac_cv_header_stdc = yes; then 4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307/* end confdefs.h. */ 4308#include <string.h> 4309 4310_ACEOF 4311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4312 $EGREP "memchr" >/dev/null 2>&1; then : 4313 4314else 4315 ac_cv_header_stdc=no 4316fi 4317rm -f conftest* 4318 4319fi 4320 4321if test $ac_cv_header_stdc = yes; then 4322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4324/* end confdefs.h. */ 4325#include <stdlib.h> 4326 4327_ACEOF 4328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4329 $EGREP "free" >/dev/null 2>&1; then : 4330 4331else 4332 ac_cv_header_stdc=no 4333fi 4334rm -f conftest* 4335 4336fi 4337 4338if test $ac_cv_header_stdc = yes; then 4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4340 if test "$cross_compiling" = yes; then : 4341 : 4342else 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344/* end confdefs.h. */ 4345#include <ctype.h> 4346#include <stdlib.h> 4347#if ((' ' & 0x0FF) == 0x020) 4348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4350#else 4351# define ISLOWER(c) \ 4352 (('a' <= (c) && (c) <= 'i') \ 4353 || ('j' <= (c) && (c) <= 'r') \ 4354 || ('s' <= (c) && (c) <= 'z')) 4355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4356#endif 4357 4358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4359int 4360main () 4361{ 4362 int i; 4363 for (i = 0; i < 256; i++) 4364 if (XOR (islower (i), ISLOWER (i)) 4365 || toupper (i) != TOUPPER (i)) 4366 return 2; 4367 return 0; 4368} 4369_ACEOF 4370if ac_fn_c_try_run "$LINENO"; then : 4371 4372else 4373 ac_cv_header_stdc=no 4374fi 4375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4376 conftest.$ac_objext conftest.beam conftest.$ac_ext 4377fi 4378 4379fi 4380fi 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4382$as_echo "$ac_cv_header_stdc" >&6; } 4383if test $ac_cv_header_stdc = yes; then 4384 4385$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4386 4387fi 4388 4389# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4391 inttypes.h stdint.h unistd.h 4392do : 4393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4394ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4395" 4396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4397 cat >>confdefs.h <<_ACEOF 4398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4399_ACEOF 4400 4401fi 4402 4403done 4404 4405 4406 4407 4408 4409 4410ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4411if test "x$ac_cv_have_decl___clang__" = xyes; then : 4412 CLANGCC="yes" 4413else 4414 CLANGCC="no" 4415fi 4416 4417ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4418if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4419 INTELCC="yes" 4420else 4421 INTELCC="no" 4422fi 4423 4424ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4425if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4426 SUNCC="yes" 4427else 4428 SUNCC="no" 4429fi 4430 4431 4432 4433 4434 4435 4436 4437 4438if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4439 if test -n "$ac_tool_prefix"; then 4440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4441set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4443$as_echo_n "checking for $ac_word... " >&6; } 4444if ${ac_cv_path_PKG_CONFIG+:} false; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 case $PKG_CONFIG in 4448 [\\/]* | ?:[\\/]*) 4449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4450 ;; 4451 *) 4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4453for as_dir in $PATH 4454do 4455 IFS=$as_save_IFS 4456 test -z "$as_dir" && as_dir=. 4457 for ac_exec_ext in '' $ac_executable_extensions; do 4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4461 break 2 4462 fi 4463done 4464 done 4465IFS=$as_save_IFS 4466 4467 ;; 4468esac 4469fi 4470PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4471if test -n "$PKG_CONFIG"; then 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4473$as_echo "$PKG_CONFIG" >&6; } 4474else 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4476$as_echo "no" >&6; } 4477fi 4478 4479 4480fi 4481if test -z "$ac_cv_path_PKG_CONFIG"; then 4482 ac_pt_PKG_CONFIG=$PKG_CONFIG 4483 # Extract the first word of "pkg-config", so it can be a program name with args. 4484set dummy pkg-config; ac_word=$2 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4486$as_echo_n "checking for $ac_word... " >&6; } 4487if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 case $ac_pt_PKG_CONFIG in 4491 [\\/]* | ?:[\\/]*) 4492 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4493 ;; 4494 *) 4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4496for as_dir in $PATH 4497do 4498 IFS=$as_save_IFS 4499 test -z "$as_dir" && as_dir=. 4500 for ac_exec_ext in '' $ac_executable_extensions; do 4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4504 break 2 4505 fi 4506done 4507 done 4508IFS=$as_save_IFS 4509 4510 ;; 4511esac 4512fi 4513ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4514if test -n "$ac_pt_PKG_CONFIG"; then 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4516$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4517else 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4519$as_echo "no" >&6; } 4520fi 4521 4522 if test "x$ac_pt_PKG_CONFIG" = x; then 4523 PKG_CONFIG="" 4524 else 4525 case $cross_compiling:$ac_tool_warned in 4526yes:) 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4529ac_tool_warned=yes ;; 4530esac 4531 PKG_CONFIG=$ac_pt_PKG_CONFIG 4532 fi 4533else 4534 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4535fi 4536 4537fi 4538if test -n "$PKG_CONFIG"; then 4539 _pkg_min_version=0.9.0 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4541$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4542 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4544$as_echo "yes" >&6; } 4545 else 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4547$as_echo "no" >&6; } 4548 PKG_CONFIG="" 4549 fi 4550fi 4551# Make sure we can run config.sub. 4552$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4553 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4554 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4556$as_echo_n "checking build system type... " >&6; } 4557if ${ac_cv_build+:} false; then : 4558 $as_echo_n "(cached) " >&6 4559else 4560 ac_build_alias=$build_alias 4561test "x$ac_build_alias" = x && 4562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4563test "x$ac_build_alias" = x && 4564 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4565ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4567 4568fi 4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4570$as_echo "$ac_cv_build" >&6; } 4571case $ac_cv_build in 4572*-*-*) ;; 4573*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4574esac 4575build=$ac_cv_build 4576ac_save_IFS=$IFS; IFS='-' 4577set x $ac_cv_build 4578shift 4579build_cpu=$1 4580build_vendor=$2 4581shift; shift 4582# Remember, the first character of IFS is used to create $*, 4583# except with old shells: 4584build_os=$* 4585IFS=$ac_save_IFS 4586case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4587 4588 4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4590$as_echo_n "checking host system type... " >&6; } 4591if ${ac_cv_host+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593else 4594 if test "x$host_alias" = x; then 4595 ac_cv_host=$ac_cv_build 4596else 4597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4598 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4599fi 4600 4601fi 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4603$as_echo "$ac_cv_host" >&6; } 4604case $ac_cv_host in 4605*-*-*) ;; 4606*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4607esac 4608host=$ac_cv_host 4609ac_save_IFS=$IFS; IFS='-' 4610set x $ac_cv_host 4611shift 4612host_cpu=$1 4613host_vendor=$2 4614shift; shift 4615# Remember, the first character of IFS is used to create $*, 4616# except with old shells: 4617host_os=$* 4618IFS=$ac_save_IFS 4619case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4620 4621 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4623$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4624if ${ac_cv_path_SED+:} false; then : 4625 $as_echo_n "(cached) " >&6 4626else 4627 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4628 for ac_i in 1 2 3 4 5 6 7; do 4629 ac_script="$ac_script$as_nl$ac_script" 4630 done 4631 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4632 { ac_script=; unset ac_script;} 4633 if test -z "$SED"; then 4634 ac_path_SED_found=false 4635 # Loop through the user's path and test for each of PROGNAME-LIST 4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4637for as_dir in $PATH 4638do 4639 IFS=$as_save_IFS 4640 test -z "$as_dir" && as_dir=. 4641 for ac_prog in sed gsed; do 4642 for ac_exec_ext in '' $ac_executable_extensions; do 4643 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4644 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4645# Check for GNU ac_path_SED and select it if it is found. 4646 # Check for GNU $ac_path_SED 4647case `"$ac_path_SED" --version 2>&1` in 4648*GNU*) 4649 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4650*) 4651 ac_count=0 4652 $as_echo_n 0123456789 >"conftest.in" 4653 while : 4654 do 4655 cat "conftest.in" "conftest.in" >"conftest.tmp" 4656 mv "conftest.tmp" "conftest.in" 4657 cp "conftest.in" "conftest.nl" 4658 $as_echo '' >> "conftest.nl" 4659 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4661 as_fn_arith $ac_count + 1 && ac_count=$as_val 4662 if test $ac_count -gt ${ac_path_SED_max-0}; then 4663 # Best one so far, save it but keep looking for a better one 4664 ac_cv_path_SED="$ac_path_SED" 4665 ac_path_SED_max=$ac_count 4666 fi 4667 # 10*(2^10) chars as input seems more than enough 4668 test $ac_count -gt 10 && break 4669 done 4670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4671esac 4672 4673 $ac_path_SED_found && break 3 4674 done 4675 done 4676 done 4677IFS=$as_save_IFS 4678 if test -z "$ac_cv_path_SED"; then 4679 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4680 fi 4681else 4682 ac_cv_path_SED=$SED 4683fi 4684 4685fi 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4687$as_echo "$ac_cv_path_SED" >&6; } 4688 SED="$ac_cv_path_SED" 4689 rm -f conftest.sed 4690 4691 4692 4693 4694 4695 4696# Check whether --enable-selective-werror was given. 4697if test "${enable_selective_werror+set}" = set; then : 4698 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4699else 4700 SELECTIVE_WERROR=yes 4701fi 4702 4703 4704 4705 4706 4707# -v is too short to test reliably with XORG_TESTSET_CFLAG 4708if test "x$SUNCC" = "xyes"; then 4709 BASE_CFLAGS="-v" 4710else 4711 BASE_CFLAGS="" 4712fi 4713 4714# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728xorg_testset_save_CFLAGS="$CFLAGS" 4729 4730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738/* end confdefs.h. */ 4739int i; 4740_ACEOF 4741if ac_fn_c_try_compile "$LINENO"; then : 4742 xorg_cv_cc_flag_unknown_warning_option=yes 4743else 4744 xorg_cv_cc_flag_unknown_warning_option=no 4745fi 4746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4747fi 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4751 CFLAGS="$xorg_testset_save_CFLAGS" 4752fi 4753 4754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4757 fi 4758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765/* end confdefs.h. */ 4766int i; 4767_ACEOF 4768if ac_fn_c_try_compile "$LINENO"; then : 4769 xorg_cv_cc_flag_unused_command_line_argument=yes 4770else 4771 xorg_cv_cc_flag_unused_command_line_argument=no 4772fi 4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4774fi 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4778 CFLAGS="$xorg_testset_save_CFLAGS" 4779fi 4780 4781found="no" 4782 4783 if test $found = "no" ; then 4784 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4786 fi 4787 4788 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4790 fi 4791 4792 CFLAGS="$CFLAGS -Wall" 4793 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4795$as_echo_n "checking if $CC supports -Wall... " >&6; } 4796 cacheid=xorg_cv_cc_flag__Wall 4797 if eval \${$cacheid+:} false; then : 4798 $as_echo_n "(cached) " >&6 4799else 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802int i; 4803int 4804main () 4805{ 4806 4807 ; 4808 return 0; 4809} 4810_ACEOF 4811if ac_fn_c_try_link "$LINENO"; then : 4812 eval $cacheid=yes 4813else 4814 eval $cacheid=no 4815fi 4816rm -f core conftest.err conftest.$ac_objext \ 4817 conftest$ac_exeext conftest.$ac_ext 4818fi 4819 4820 4821 CFLAGS="$xorg_testset_save_CFLAGS" 4822 4823 eval supported=\$$cacheid 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4825$as_echo "$supported" >&6; } 4826 if test "$supported" = "yes" ; then 4827 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4828 found="yes" 4829 fi 4830 fi 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846xorg_testset_save_CFLAGS="$CFLAGS" 4847 4848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4856/* end confdefs.h. */ 4857int i; 4858_ACEOF 4859if ac_fn_c_try_compile "$LINENO"; then : 4860 xorg_cv_cc_flag_unknown_warning_option=yes 4861else 4862 xorg_cv_cc_flag_unknown_warning_option=no 4863fi 4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4865fi 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4869 CFLAGS="$xorg_testset_save_CFLAGS" 4870fi 4871 4872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4875 fi 4876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4880 $as_echo_n "(cached) " >&6 4881else 4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4883/* end confdefs.h. */ 4884int i; 4885_ACEOF 4886if ac_fn_c_try_compile "$LINENO"; then : 4887 xorg_cv_cc_flag_unused_command_line_argument=yes 4888else 4889 xorg_cv_cc_flag_unused_command_line_argument=no 4890fi 4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4892fi 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4896 CFLAGS="$xorg_testset_save_CFLAGS" 4897fi 4898 4899found="no" 4900 4901 if test $found = "no" ; then 4902 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4904 fi 4905 4906 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4908 fi 4909 4910 CFLAGS="$CFLAGS -Wpointer-arith" 4911 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4913$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4914 cacheid=xorg_cv_cc_flag__Wpointer_arith 4915 if eval \${$cacheid+:} false; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920int i; 4921int 4922main () 4923{ 4924 4925 ; 4926 return 0; 4927} 4928_ACEOF 4929if ac_fn_c_try_link "$LINENO"; then : 4930 eval $cacheid=yes 4931else 4932 eval $cacheid=no 4933fi 4934rm -f core conftest.err conftest.$ac_objext \ 4935 conftest$ac_exeext conftest.$ac_ext 4936fi 4937 4938 4939 CFLAGS="$xorg_testset_save_CFLAGS" 4940 4941 eval supported=\$$cacheid 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4943$as_echo "$supported" >&6; } 4944 if test "$supported" = "yes" ; then 4945 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4946 found="yes" 4947 fi 4948 fi 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964xorg_testset_save_CFLAGS="$CFLAGS" 4965 4966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974/* end confdefs.h. */ 4975int i; 4976_ACEOF 4977if ac_fn_c_try_compile "$LINENO"; then : 4978 xorg_cv_cc_flag_unknown_warning_option=yes 4979else 4980 xorg_cv_cc_flag_unknown_warning_option=no 4981fi 4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4983fi 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4987 CFLAGS="$xorg_testset_save_CFLAGS" 4988fi 4989 4990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4993 fi 4994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001/* end confdefs.h. */ 5002int i; 5003_ACEOF 5004if ac_fn_c_try_compile "$LINENO"; then : 5005 xorg_cv_cc_flag_unused_command_line_argument=yes 5006else 5007 xorg_cv_cc_flag_unused_command_line_argument=no 5008fi 5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5010fi 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5014 CFLAGS="$xorg_testset_save_CFLAGS" 5015fi 5016 5017found="no" 5018 5019 if test $found = "no" ; then 5020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5022 fi 5023 5024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5026 fi 5027 5028 CFLAGS="$CFLAGS -Wmissing-declarations" 5029 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5031$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5032 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5033 if eval \${$cacheid+:} false; then : 5034 $as_echo_n "(cached) " >&6 5035else 5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5037/* end confdefs.h. */ 5038int i; 5039int 5040main () 5041{ 5042 5043 ; 5044 return 0; 5045} 5046_ACEOF 5047if ac_fn_c_try_link "$LINENO"; then : 5048 eval $cacheid=yes 5049else 5050 eval $cacheid=no 5051fi 5052rm -f core conftest.err conftest.$ac_objext \ 5053 conftest$ac_exeext conftest.$ac_ext 5054fi 5055 5056 5057 CFLAGS="$xorg_testset_save_CFLAGS" 5058 5059 eval supported=\$$cacheid 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5061$as_echo "$supported" >&6; } 5062 if test "$supported" = "yes" ; then 5063 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5064 found="yes" 5065 fi 5066 fi 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082xorg_testset_save_CFLAGS="$CFLAGS" 5083 5084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5092/* end confdefs.h. */ 5093int i; 5094_ACEOF 5095if ac_fn_c_try_compile "$LINENO"; then : 5096 xorg_cv_cc_flag_unknown_warning_option=yes 5097else 5098 xorg_cv_cc_flag_unknown_warning_option=no 5099fi 5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5101fi 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5105 CFLAGS="$xorg_testset_save_CFLAGS" 5106fi 5107 5108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5111 fi 5112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5116 $as_echo_n "(cached) " >&6 5117else 5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5119/* end confdefs.h. */ 5120int i; 5121_ACEOF 5122if ac_fn_c_try_compile "$LINENO"; then : 5123 xorg_cv_cc_flag_unused_command_line_argument=yes 5124else 5125 xorg_cv_cc_flag_unused_command_line_argument=no 5126fi 5127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5128fi 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5132 CFLAGS="$xorg_testset_save_CFLAGS" 5133fi 5134 5135found="no" 5136 5137 if test $found = "no" ; then 5138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5140 fi 5141 5142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5144 fi 5145 5146 CFLAGS="$CFLAGS -Wformat=2" 5147 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5149$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5150 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5151 if eval \${$cacheid+:} false; then : 5152 $as_echo_n "(cached) " >&6 5153else 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5155/* end confdefs.h. */ 5156int i; 5157int 5158main () 5159{ 5160 5161 ; 5162 return 0; 5163} 5164_ACEOF 5165if ac_fn_c_try_link "$LINENO"; then : 5166 eval $cacheid=yes 5167else 5168 eval $cacheid=no 5169fi 5170rm -f core conftest.err conftest.$ac_objext \ 5171 conftest$ac_exeext conftest.$ac_ext 5172fi 5173 5174 5175 CFLAGS="$xorg_testset_save_CFLAGS" 5176 5177 eval supported=\$$cacheid 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5179$as_echo "$supported" >&6; } 5180 if test "$supported" = "yes" ; then 5181 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5182 found="yes" 5183 fi 5184 fi 5185 5186 if test $found = "no" ; then 5187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 fi 5190 5191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5193 fi 5194 5195 CFLAGS="$CFLAGS -Wformat" 5196 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5198$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5199 cacheid=xorg_cv_cc_flag__Wformat 5200 if eval \${$cacheid+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204/* end confdefs.h. */ 5205int i; 5206int 5207main () 5208{ 5209 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214if ac_fn_c_try_link "$LINENO"; then : 5215 eval $cacheid=yes 5216else 5217 eval $cacheid=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext \ 5220 conftest$ac_exeext conftest.$ac_ext 5221fi 5222 5223 5224 CFLAGS="$xorg_testset_save_CFLAGS" 5225 5226 eval supported=\$$cacheid 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5228$as_echo "$supported" >&6; } 5229 if test "$supported" = "yes" ; then 5230 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5231 found="yes" 5232 fi 5233 fi 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251xorg_testset_save_CFLAGS="$CFLAGS" 5252 5253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5256$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5257if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5258 $as_echo_n "(cached) " >&6 5259else 5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5261/* end confdefs.h. */ 5262int i; 5263_ACEOF 5264if ac_fn_c_try_compile "$LINENO"; then : 5265 xorg_cv_cc_flag_unknown_warning_option=yes 5266else 5267 xorg_cv_cc_flag_unknown_warning_option=no 5268fi 5269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5270fi 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5272$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5274 CFLAGS="$xorg_testset_save_CFLAGS" 5275fi 5276 5277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5280 fi 5281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5283$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5284if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5285 $as_echo_n "(cached) " >&6 5286else 5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5288/* end confdefs.h. */ 5289int i; 5290_ACEOF 5291if ac_fn_c_try_compile "$LINENO"; then : 5292 xorg_cv_cc_flag_unused_command_line_argument=yes 5293else 5294 xorg_cv_cc_flag_unused_command_line_argument=no 5295fi 5296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5297fi 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5299$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5301 CFLAGS="$xorg_testset_save_CFLAGS" 5302fi 5303 5304found="no" 5305 5306 if test $found = "no" ; then 5307 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5309 fi 5310 5311 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5313 fi 5314 5315 CFLAGS="$CFLAGS -Wstrict-prototypes" 5316 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5318$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5319 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5320 if eval \${$cacheid+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324/* end confdefs.h. */ 5325int i; 5326int 5327main () 5328{ 5329 5330 ; 5331 return 0; 5332} 5333_ACEOF 5334if ac_fn_c_try_link "$LINENO"; then : 5335 eval $cacheid=yes 5336else 5337 eval $cacheid=no 5338fi 5339rm -f core conftest.err conftest.$ac_objext \ 5340 conftest$ac_exeext conftest.$ac_ext 5341fi 5342 5343 5344 CFLAGS="$xorg_testset_save_CFLAGS" 5345 5346 eval supported=\$$cacheid 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5348$as_echo "$supported" >&6; } 5349 if test "$supported" = "yes" ; then 5350 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5351 found="yes" 5352 fi 5353 fi 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369xorg_testset_save_CFLAGS="$CFLAGS" 5370 5371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5374$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5375if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5379/* end confdefs.h. */ 5380int i; 5381_ACEOF 5382if ac_fn_c_try_compile "$LINENO"; then : 5383 xorg_cv_cc_flag_unknown_warning_option=yes 5384else 5385 xorg_cv_cc_flag_unknown_warning_option=no 5386fi 5387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5388fi 5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5390$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5392 CFLAGS="$xorg_testset_save_CFLAGS" 5393fi 5394 5395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5398 fi 5399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5401$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5402if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5403 $as_echo_n "(cached) " >&6 5404else 5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5406/* end confdefs.h. */ 5407int i; 5408_ACEOF 5409if ac_fn_c_try_compile "$LINENO"; then : 5410 xorg_cv_cc_flag_unused_command_line_argument=yes 5411else 5412 xorg_cv_cc_flag_unused_command_line_argument=no 5413fi 5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5415fi 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5417$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5419 CFLAGS="$xorg_testset_save_CFLAGS" 5420fi 5421 5422found="no" 5423 5424 if test $found = "no" ; then 5425 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5427 fi 5428 5429 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5431 fi 5432 5433 CFLAGS="$CFLAGS -Wmissing-prototypes" 5434 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5436$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5437 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5438 if eval \${$cacheid+:} false; then : 5439 $as_echo_n "(cached) " >&6 5440else 5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5442/* end confdefs.h. */ 5443int i; 5444int 5445main () 5446{ 5447 5448 ; 5449 return 0; 5450} 5451_ACEOF 5452if ac_fn_c_try_link "$LINENO"; then : 5453 eval $cacheid=yes 5454else 5455 eval $cacheid=no 5456fi 5457rm -f core conftest.err conftest.$ac_objext \ 5458 conftest$ac_exeext conftest.$ac_ext 5459fi 5460 5461 5462 CFLAGS="$xorg_testset_save_CFLAGS" 5463 5464 eval supported=\$$cacheid 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5466$as_echo "$supported" >&6; } 5467 if test "$supported" = "yes" ; then 5468 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5469 found="yes" 5470 fi 5471 fi 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487xorg_testset_save_CFLAGS="$CFLAGS" 5488 5489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5497/* end confdefs.h. */ 5498int i; 5499_ACEOF 5500if ac_fn_c_try_compile "$LINENO"; then : 5501 xorg_cv_cc_flag_unknown_warning_option=yes 5502else 5503 xorg_cv_cc_flag_unknown_warning_option=no 5504fi 5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5506fi 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5510 CFLAGS="$xorg_testset_save_CFLAGS" 5511fi 5512 5513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5516 fi 5517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524/* end confdefs.h. */ 5525int i; 5526_ACEOF 5527if ac_fn_c_try_compile "$LINENO"; then : 5528 xorg_cv_cc_flag_unused_command_line_argument=yes 5529else 5530 xorg_cv_cc_flag_unused_command_line_argument=no 5531fi 5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5533fi 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5538fi 5539 5540found="no" 5541 5542 if test $found = "no" ; then 5543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5545 fi 5546 5547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5549 fi 5550 5551 CFLAGS="$CFLAGS -Wnested-externs" 5552 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5554$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5555 cacheid=xorg_cv_cc_flag__Wnested_externs 5556 if eval \${$cacheid+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5560/* end confdefs.h. */ 5561int i; 5562int 5563main () 5564{ 5565 5566 ; 5567 return 0; 5568} 5569_ACEOF 5570if ac_fn_c_try_link "$LINENO"; then : 5571 eval $cacheid=yes 5572else 5573 eval $cacheid=no 5574fi 5575rm -f core conftest.err conftest.$ac_objext \ 5576 conftest$ac_exeext conftest.$ac_ext 5577fi 5578 5579 5580 CFLAGS="$xorg_testset_save_CFLAGS" 5581 5582 eval supported=\$$cacheid 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5584$as_echo "$supported" >&6; } 5585 if test "$supported" = "yes" ; then 5586 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5587 found="yes" 5588 fi 5589 fi 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605xorg_testset_save_CFLAGS="$CFLAGS" 5606 5607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5612 $as_echo_n "(cached) " >&6 5613else 5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5615/* end confdefs.h. */ 5616int i; 5617_ACEOF 5618if ac_fn_c_try_compile "$LINENO"; then : 5619 xorg_cv_cc_flag_unknown_warning_option=yes 5620else 5621 xorg_cv_cc_flag_unknown_warning_option=no 5622fi 5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5624fi 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5628 CFLAGS="$xorg_testset_save_CFLAGS" 5629fi 5630 5631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5634 fi 5635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5639 $as_echo_n "(cached) " >&6 5640else 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643int i; 5644_ACEOF 5645if ac_fn_c_try_compile "$LINENO"; then : 5646 xorg_cv_cc_flag_unused_command_line_argument=yes 5647else 5648 xorg_cv_cc_flag_unused_command_line_argument=no 5649fi 5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5651fi 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5655 CFLAGS="$xorg_testset_save_CFLAGS" 5656fi 5657 5658found="no" 5659 5660 if test $found = "no" ; then 5661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5663 fi 5664 5665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5667 fi 5668 5669 CFLAGS="$CFLAGS -Wbad-function-cast" 5670 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5672$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5673 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5674 if eval \${$cacheid+:} false; then : 5675 $as_echo_n "(cached) " >&6 5676else 5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5678/* end confdefs.h. */ 5679int i; 5680int 5681main () 5682{ 5683 5684 ; 5685 return 0; 5686} 5687_ACEOF 5688if ac_fn_c_try_link "$LINENO"; then : 5689 eval $cacheid=yes 5690else 5691 eval $cacheid=no 5692fi 5693rm -f core conftest.err conftest.$ac_objext \ 5694 conftest$ac_exeext conftest.$ac_ext 5695fi 5696 5697 5698 CFLAGS="$xorg_testset_save_CFLAGS" 5699 5700 eval supported=\$$cacheid 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5702$as_echo "$supported" >&6; } 5703 if test "$supported" = "yes" ; then 5704 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5705 found="yes" 5706 fi 5707 fi 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723xorg_testset_save_CFLAGS="$CFLAGS" 5724 5725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5733/* end confdefs.h. */ 5734int i; 5735_ACEOF 5736if ac_fn_c_try_compile "$LINENO"; then : 5737 xorg_cv_cc_flag_unknown_warning_option=yes 5738else 5739 xorg_cv_cc_flag_unknown_warning_option=no 5740fi 5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5742fi 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5746 CFLAGS="$xorg_testset_save_CFLAGS" 5747fi 5748 5749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5752 fi 5753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5757 $as_echo_n "(cached) " >&6 5758else 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761int i; 5762_ACEOF 5763if ac_fn_c_try_compile "$LINENO"; then : 5764 xorg_cv_cc_flag_unused_command_line_argument=yes 5765else 5766 xorg_cv_cc_flag_unused_command_line_argument=no 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5769fi 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5773 CFLAGS="$xorg_testset_save_CFLAGS" 5774fi 5775 5776found="no" 5777 5778 if test $found = "no" ; then 5779 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5781 fi 5782 5783 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5785 fi 5786 5787 CFLAGS="$CFLAGS -Wold-style-definition" 5788 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5790$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5791 cacheid=xorg_cv_cc_flag__Wold_style_definition 5792 if eval \${$cacheid+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796/* end confdefs.h. */ 5797int i; 5798int 5799main () 5800{ 5801 5802 ; 5803 return 0; 5804} 5805_ACEOF 5806if ac_fn_c_try_link "$LINENO"; then : 5807 eval $cacheid=yes 5808else 5809 eval $cacheid=no 5810fi 5811rm -f core conftest.err conftest.$ac_objext \ 5812 conftest$ac_exeext conftest.$ac_ext 5813fi 5814 5815 5816 CFLAGS="$xorg_testset_save_CFLAGS" 5817 5818 eval supported=\$$cacheid 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5820$as_echo "$supported" >&6; } 5821 if test "$supported" = "yes" ; then 5822 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5823 found="yes" 5824 fi 5825 fi 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841xorg_testset_save_CFLAGS="$CFLAGS" 5842 5843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5851/* end confdefs.h. */ 5852int i; 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 xorg_cv_cc_flag_unknown_warning_option=yes 5856else 5857 xorg_cv_cc_flag_unknown_warning_option=no 5858fi 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860fi 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865fi 5866 5867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5870 fi 5871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5878/* end confdefs.h. */ 5879int i; 5880_ACEOF 5881if ac_fn_c_try_compile "$LINENO"; then : 5882 xorg_cv_cc_flag_unused_command_line_argument=yes 5883else 5884 xorg_cv_cc_flag_unused_command_line_argument=no 5885fi 5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5887fi 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5891 CFLAGS="$xorg_testset_save_CFLAGS" 5892fi 5893 5894found="no" 5895 5896 if test $found = "no" ; then 5897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5899 fi 5900 5901 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5903 fi 5904 5905 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5906 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5908$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5909 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5910 if eval \${$cacheid+:} false; then : 5911 $as_echo_n "(cached) " >&6 5912else 5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5914/* end confdefs.h. */ 5915int i; 5916int 5917main () 5918{ 5919 5920 ; 5921 return 0; 5922} 5923_ACEOF 5924if ac_fn_c_try_link "$LINENO"; then : 5925 eval $cacheid=yes 5926else 5927 eval $cacheid=no 5928fi 5929rm -f core conftest.err conftest.$ac_objext \ 5930 conftest$ac_exeext conftest.$ac_ext 5931fi 5932 5933 5934 CFLAGS="$xorg_testset_save_CFLAGS" 5935 5936 eval supported=\$$cacheid 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5938$as_echo "$supported" >&6; } 5939 if test "$supported" = "yes" ; then 5940 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5941 found="yes" 5942 fi 5943 fi 5944 5945 5946 5947 5948 5949# This chunk adds additional warnings that could catch undesired effects. 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963xorg_testset_save_CFLAGS="$CFLAGS" 5964 5965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5973/* end confdefs.h. */ 5974int i; 5975_ACEOF 5976if ac_fn_c_try_compile "$LINENO"; then : 5977 xorg_cv_cc_flag_unknown_warning_option=yes 5978else 5979 xorg_cv_cc_flag_unknown_warning_option=no 5980fi 5981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5982fi 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5986 CFLAGS="$xorg_testset_save_CFLAGS" 5987fi 5988 5989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5992 fi 5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998else 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6000/* end confdefs.h. */ 6001int i; 6002_ACEOF 6003if ac_fn_c_try_compile "$LINENO"; then : 6004 xorg_cv_cc_flag_unused_command_line_argument=yes 6005else 6006 xorg_cv_cc_flag_unused_command_line_argument=no 6007fi 6008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6009fi 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6013 CFLAGS="$xorg_testset_save_CFLAGS" 6014fi 6015 6016found="no" 6017 6018 if test $found = "no" ; then 6019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6021 fi 6022 6023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6025 fi 6026 6027 CFLAGS="$CFLAGS -Wunused" 6028 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6030$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6031 cacheid=xorg_cv_cc_flag__Wunused 6032 if eval \${$cacheid+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036/* end confdefs.h. */ 6037int i; 6038int 6039main () 6040{ 6041 6042 ; 6043 return 0; 6044} 6045_ACEOF 6046if ac_fn_c_try_link "$LINENO"; then : 6047 eval $cacheid=yes 6048else 6049 eval $cacheid=no 6050fi 6051rm -f core conftest.err conftest.$ac_objext \ 6052 conftest$ac_exeext conftest.$ac_ext 6053fi 6054 6055 6056 CFLAGS="$xorg_testset_save_CFLAGS" 6057 6058 eval supported=\$$cacheid 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6060$as_echo "$supported" >&6; } 6061 if test "$supported" = "yes" ; then 6062 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6063 found="yes" 6064 fi 6065 fi 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081xorg_testset_save_CFLAGS="$CFLAGS" 6082 6083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089else 6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091/* end confdefs.h. */ 6092int i; 6093_ACEOF 6094if ac_fn_c_try_compile "$LINENO"; then : 6095 xorg_cv_cc_flag_unknown_warning_option=yes 6096else 6097 xorg_cv_cc_flag_unknown_warning_option=no 6098fi 6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6100fi 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6104 CFLAGS="$xorg_testset_save_CFLAGS" 6105fi 6106 6107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6110 fi 6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6115 $as_echo_n "(cached) " >&6 6116else 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6118/* end confdefs.h. */ 6119int i; 6120_ACEOF 6121if ac_fn_c_try_compile "$LINENO"; then : 6122 xorg_cv_cc_flag_unused_command_line_argument=yes 6123else 6124 xorg_cv_cc_flag_unused_command_line_argument=no 6125fi 6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6127fi 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6131 CFLAGS="$xorg_testset_save_CFLAGS" 6132fi 6133 6134found="no" 6135 6136 if test $found = "no" ; then 6137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6139 fi 6140 6141 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6143 fi 6144 6145 CFLAGS="$CFLAGS -Wuninitialized" 6146 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6148$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6149 cacheid=xorg_cv_cc_flag__Wuninitialized 6150 if eval \${$cacheid+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6154/* end confdefs.h. */ 6155int i; 6156int 6157main () 6158{ 6159 6160 ; 6161 return 0; 6162} 6163_ACEOF 6164if ac_fn_c_try_link "$LINENO"; then : 6165 eval $cacheid=yes 6166else 6167 eval $cacheid=no 6168fi 6169rm -f core conftest.err conftest.$ac_objext \ 6170 conftest$ac_exeext conftest.$ac_ext 6171fi 6172 6173 6174 CFLAGS="$xorg_testset_save_CFLAGS" 6175 6176 eval supported=\$$cacheid 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6178$as_echo "$supported" >&6; } 6179 if test "$supported" = "yes" ; then 6180 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6181 found="yes" 6182 fi 6183 fi 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199xorg_testset_save_CFLAGS="$CFLAGS" 6200 6201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6206 $as_echo_n "(cached) " >&6 6207else 6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209/* end confdefs.h. */ 6210int i; 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO"; then : 6213 xorg_cv_cc_flag_unknown_warning_option=yes 6214else 6215 xorg_cv_cc_flag_unknown_warning_option=no 6216fi 6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6218fi 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6222 CFLAGS="$xorg_testset_save_CFLAGS" 6223fi 6224 6225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6228 fi 6229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6233 $as_echo_n "(cached) " >&6 6234else 6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236/* end confdefs.h. */ 6237int i; 6238_ACEOF 6239if ac_fn_c_try_compile "$LINENO"; then : 6240 xorg_cv_cc_flag_unused_command_line_argument=yes 6241else 6242 xorg_cv_cc_flag_unused_command_line_argument=no 6243fi 6244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6245fi 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6249 CFLAGS="$xorg_testset_save_CFLAGS" 6250fi 6251 6252found="no" 6253 6254 if test $found = "no" ; then 6255 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6257 fi 6258 6259 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6261 fi 6262 6263 CFLAGS="$CFLAGS -Wshadow" 6264 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6266$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6267 cacheid=xorg_cv_cc_flag__Wshadow 6268 if eval \${$cacheid+:} false; then : 6269 $as_echo_n "(cached) " >&6 6270else 6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272/* end confdefs.h. */ 6273int i; 6274int 6275main () 6276{ 6277 6278 ; 6279 return 0; 6280} 6281_ACEOF 6282if ac_fn_c_try_link "$LINENO"; then : 6283 eval $cacheid=yes 6284else 6285 eval $cacheid=no 6286fi 6287rm -f core conftest.err conftest.$ac_objext \ 6288 conftest$ac_exeext conftest.$ac_ext 6289fi 6290 6291 6292 CFLAGS="$xorg_testset_save_CFLAGS" 6293 6294 eval supported=\$$cacheid 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6296$as_echo "$supported" >&6; } 6297 if test "$supported" = "yes" ; then 6298 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6299 found="yes" 6300 fi 6301 fi 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317xorg_testset_save_CFLAGS="$CFLAGS" 6318 6319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329_ACEOF 6330if ac_fn_c_try_compile "$LINENO"; then : 6331 xorg_cv_cc_flag_unknown_warning_option=yes 6332else 6333 xorg_cv_cc_flag_unknown_warning_option=no 6334fi 6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6340 CFLAGS="$xorg_testset_save_CFLAGS" 6341fi 6342 6343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6346 fi 6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355int i; 6356_ACEOF 6357if ac_fn_c_try_compile "$LINENO"; then : 6358 xorg_cv_cc_flag_unused_command_line_argument=yes 6359else 6360 xorg_cv_cc_flag_unused_command_line_argument=no 6361fi 6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6363fi 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6367 CFLAGS="$xorg_testset_save_CFLAGS" 6368fi 6369 6370found="no" 6371 6372 if test $found = "no" ; then 6373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6375 fi 6376 6377 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6379 fi 6380 6381 CFLAGS="$CFLAGS -Wcast-qual" 6382 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6384$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6385 cacheid=xorg_cv_cc_flag__Wcast_qual 6386 if eval \${$cacheid+:} false; then : 6387 $as_echo_n "(cached) " >&6 6388else 6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6390/* end confdefs.h. */ 6391int i; 6392int 6393main () 6394{ 6395 6396 ; 6397 return 0; 6398} 6399_ACEOF 6400if ac_fn_c_try_link "$LINENO"; then : 6401 eval $cacheid=yes 6402else 6403 eval $cacheid=no 6404fi 6405rm -f core conftest.err conftest.$ac_objext \ 6406 conftest$ac_exeext conftest.$ac_ext 6407fi 6408 6409 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411 6412 eval supported=\$$cacheid 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6414$as_echo "$supported" >&6; } 6415 if test "$supported" = "yes" ; then 6416 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6417 found="yes" 6418 fi 6419 fi 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435xorg_testset_save_CFLAGS="$CFLAGS" 6436 6437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446int i; 6447_ACEOF 6448if ac_fn_c_try_compile "$LINENO"; then : 6449 xorg_cv_cc_flag_unknown_warning_option=yes 6450else 6451 xorg_cv_cc_flag_unknown_warning_option=no 6452fi 6453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6454fi 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459fi 6460 6461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6464 fi 6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6469 $as_echo_n "(cached) " >&6 6470else 6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473int i; 6474_ACEOF 6475if ac_fn_c_try_compile "$LINENO"; then : 6476 xorg_cv_cc_flag_unused_command_line_argument=yes 6477else 6478 xorg_cv_cc_flag_unused_command_line_argument=no 6479fi 6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6481fi 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6485 CFLAGS="$xorg_testset_save_CFLAGS" 6486fi 6487 6488found="no" 6489 6490 if test $found = "no" ; then 6491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6493 fi 6494 6495 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6497 fi 6498 6499 CFLAGS="$CFLAGS -Wmissing-noreturn" 6500 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6502$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6503 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6504 if eval \${$cacheid+:} false; then : 6505 $as_echo_n "(cached) " >&6 6506else 6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6508/* end confdefs.h. */ 6509int i; 6510int 6511main () 6512{ 6513 6514 ; 6515 return 0; 6516} 6517_ACEOF 6518if ac_fn_c_try_link "$LINENO"; then : 6519 eval $cacheid=yes 6520else 6521 eval $cacheid=no 6522fi 6523rm -f core conftest.err conftest.$ac_objext \ 6524 conftest$ac_exeext conftest.$ac_ext 6525fi 6526 6527 6528 CFLAGS="$xorg_testset_save_CFLAGS" 6529 6530 eval supported=\$$cacheid 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6532$as_echo "$supported" >&6; } 6533 if test "$supported" = "yes" ; then 6534 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6535 found="yes" 6536 fi 6537 fi 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553xorg_testset_save_CFLAGS="$CFLAGS" 6554 6555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564int i; 6565_ACEOF 6566if ac_fn_c_try_compile "$LINENO"; then : 6567 xorg_cv_cc_flag_unknown_warning_option=yes 6568else 6569 xorg_cv_cc_flag_unknown_warning_option=no 6570fi 6571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6572fi 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577fi 6578 6579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6582 fi 6583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6587 $as_echo_n "(cached) " >&6 6588else 6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6590/* end confdefs.h. */ 6591int i; 6592_ACEOF 6593if ac_fn_c_try_compile "$LINENO"; then : 6594 xorg_cv_cc_flag_unused_command_line_argument=yes 6595else 6596 xorg_cv_cc_flag_unused_command_line_argument=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6599fi 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6603 CFLAGS="$xorg_testset_save_CFLAGS" 6604fi 6605 6606found="no" 6607 6608 if test $found = "no" ; then 6609 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6611 fi 6612 6613 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6615 fi 6616 6617 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6618 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6620$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6621 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6622 if eval \${$cacheid+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6626/* end confdefs.h. */ 6627int i; 6628int 6629main () 6630{ 6631 6632 ; 6633 return 0; 6634} 6635_ACEOF 6636if ac_fn_c_try_link "$LINENO"; then : 6637 eval $cacheid=yes 6638else 6639 eval $cacheid=no 6640fi 6641rm -f core conftest.err conftest.$ac_objext \ 6642 conftest$ac_exeext conftest.$ac_ext 6643fi 6644 6645 6646 CFLAGS="$xorg_testset_save_CFLAGS" 6647 6648 eval supported=\$$cacheid 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6650$as_echo "$supported" >&6; } 6651 if test "$supported" = "yes" ; then 6652 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6653 found="yes" 6654 fi 6655 fi 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671xorg_testset_save_CFLAGS="$CFLAGS" 6672 6673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681/* end confdefs.h. */ 6682int i; 6683_ACEOF 6684if ac_fn_c_try_compile "$LINENO"; then : 6685 xorg_cv_cc_flag_unknown_warning_option=yes 6686else 6687 xorg_cv_cc_flag_unknown_warning_option=no 6688fi 6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6690fi 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6694 CFLAGS="$xorg_testset_save_CFLAGS" 6695fi 6696 6697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6700 fi 6701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708/* end confdefs.h. */ 6709int i; 6710_ACEOF 6711if ac_fn_c_try_compile "$LINENO"; then : 6712 xorg_cv_cc_flag_unused_command_line_argument=yes 6713else 6714 xorg_cv_cc_flag_unused_command_line_argument=no 6715fi 6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6717fi 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722fi 6723 6724found="no" 6725 6726 if test $found = "no" ; then 6727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6729 fi 6730 6731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6733 fi 6734 6735 CFLAGS="$CFLAGS -Wredundant-decls" 6736 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6738$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6739 cacheid=xorg_cv_cc_flag__Wredundant_decls 6740 if eval \${$cacheid+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744/* end confdefs.h. */ 6745int i; 6746int 6747main () 6748{ 6749 6750 ; 6751 return 0; 6752} 6753_ACEOF 6754if ac_fn_c_try_link "$LINENO"; then : 6755 eval $cacheid=yes 6756else 6757 eval $cacheid=no 6758fi 6759rm -f core conftest.err conftest.$ac_objext \ 6760 conftest$ac_exeext conftest.$ac_ext 6761fi 6762 6763 6764 CFLAGS="$xorg_testset_save_CFLAGS" 6765 6766 eval supported=\$$cacheid 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6768$as_echo "$supported" >&6; } 6769 if test "$supported" = "yes" ; then 6770 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6771 found="yes" 6772 fi 6773 fi 6774 6775 6776 6777# These are currently disabled because they are noisy. They will be enabled 6778# in the future once the codebase is sufficiently modernized to silence 6779# them. For now, I don't want them to drown out the other warnings. 6780# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6781# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6782# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6783 6784# Turn some warnings into errors, so we don't accidently get successful builds 6785# when there are problems that should be fixed. 6786 6787if test "x$SELECTIVE_WERROR" = "xyes" ; then 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801xorg_testset_save_CFLAGS="$CFLAGS" 6802 6803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6811/* end confdefs.h. */ 6812int i; 6813_ACEOF 6814if ac_fn_c_try_compile "$LINENO"; then : 6815 xorg_cv_cc_flag_unknown_warning_option=yes 6816else 6817 xorg_cv_cc_flag_unknown_warning_option=no 6818fi 6819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6820fi 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6824 CFLAGS="$xorg_testset_save_CFLAGS" 6825fi 6826 6827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6830 fi 6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6835 $as_echo_n "(cached) " >&6 6836else 6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6838/* end confdefs.h. */ 6839int i; 6840_ACEOF 6841if ac_fn_c_try_compile "$LINENO"; then : 6842 xorg_cv_cc_flag_unused_command_line_argument=yes 6843else 6844 xorg_cv_cc_flag_unused_command_line_argument=no 6845fi 6846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6847fi 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6851 CFLAGS="$xorg_testset_save_CFLAGS" 6852fi 6853 6854found="no" 6855 6856 if test $found = "no" ; then 6857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6859 fi 6860 6861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6863 fi 6864 6865 CFLAGS="$CFLAGS -Werror=implicit" 6866 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6868$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6869 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6870 if eval \${$cacheid+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872else 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875int i; 6876int 6877main () 6878{ 6879 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884if ac_fn_c_try_link "$LINENO"; then : 6885 eval $cacheid=yes 6886else 6887 eval $cacheid=no 6888fi 6889rm -f core conftest.err conftest.$ac_objext \ 6890 conftest$ac_exeext conftest.$ac_ext 6891fi 6892 6893 6894 CFLAGS="$xorg_testset_save_CFLAGS" 6895 6896 eval supported=\$$cacheid 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6898$as_echo "$supported" >&6; } 6899 if test "$supported" = "yes" ; then 6900 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6901 found="yes" 6902 fi 6903 fi 6904 6905 if test $found = "no" ; then 6906 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6908 fi 6909 6910 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6912 fi 6913 6914 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6915 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6917$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6918 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6919 if eval \${$cacheid+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6923/* end confdefs.h. */ 6924int i; 6925int 6926main () 6927{ 6928 6929 ; 6930 return 0; 6931} 6932_ACEOF 6933if ac_fn_c_try_link "$LINENO"; then : 6934 eval $cacheid=yes 6935else 6936 eval $cacheid=no 6937fi 6938rm -f core conftest.err conftest.$ac_objext \ 6939 conftest$ac_exeext conftest.$ac_ext 6940fi 6941 6942 6943 CFLAGS="$xorg_testset_save_CFLAGS" 6944 6945 eval supported=\$$cacheid 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6947$as_echo "$supported" >&6; } 6948 if test "$supported" = "yes" ; then 6949 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6950 found="yes" 6951 fi 6952 fi 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968xorg_testset_save_CFLAGS="$CFLAGS" 6969 6970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6975 $as_echo_n "(cached) " >&6 6976else 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978/* end confdefs.h. */ 6979int i; 6980_ACEOF 6981if ac_fn_c_try_compile "$LINENO"; then : 6982 xorg_cv_cc_flag_unknown_warning_option=yes 6983else 6984 xorg_cv_cc_flag_unknown_warning_option=no 6985fi 6986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6987fi 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6991 CFLAGS="$xorg_testset_save_CFLAGS" 6992fi 6993 6994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6997 fi 6998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005/* end confdefs.h. */ 7006int i; 7007_ACEOF 7008if ac_fn_c_try_compile "$LINENO"; then : 7009 xorg_cv_cc_flag_unused_command_line_argument=yes 7010else 7011 xorg_cv_cc_flag_unused_command_line_argument=no 7012fi 7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7014fi 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7018 CFLAGS="$xorg_testset_save_CFLAGS" 7019fi 7020 7021found="no" 7022 7023 if test $found = "no" ; then 7024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7026 fi 7027 7028 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7030 fi 7031 7032 CFLAGS="$CFLAGS -Werror=nonnull" 7033 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7035$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7036 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7037 if eval \${$cacheid+:} false; then : 7038 $as_echo_n "(cached) " >&6 7039else 7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7041/* end confdefs.h. */ 7042int i; 7043int 7044main () 7045{ 7046 7047 ; 7048 return 0; 7049} 7050_ACEOF 7051if ac_fn_c_try_link "$LINENO"; then : 7052 eval $cacheid=yes 7053else 7054 eval $cacheid=no 7055fi 7056rm -f core conftest.err conftest.$ac_objext \ 7057 conftest$ac_exeext conftest.$ac_ext 7058fi 7059 7060 7061 CFLAGS="$xorg_testset_save_CFLAGS" 7062 7063 eval supported=\$$cacheid 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7065$as_echo "$supported" >&6; } 7066 if test "$supported" = "yes" ; then 7067 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7068 found="yes" 7069 fi 7070 fi 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086xorg_testset_save_CFLAGS="$CFLAGS" 7087 7088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7093 $as_echo_n "(cached) " >&6 7094else 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097int i; 7098_ACEOF 7099if ac_fn_c_try_compile "$LINENO"; then : 7100 xorg_cv_cc_flag_unknown_warning_option=yes 7101else 7102 xorg_cv_cc_flag_unknown_warning_option=no 7103fi 7104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7105fi 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7109 CFLAGS="$xorg_testset_save_CFLAGS" 7110fi 7111 7112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7115 fi 7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121else 7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123/* end confdefs.h. */ 7124int i; 7125_ACEOF 7126if ac_fn_c_try_compile "$LINENO"; then : 7127 xorg_cv_cc_flag_unused_command_line_argument=yes 7128else 7129 xorg_cv_cc_flag_unused_command_line_argument=no 7130fi 7131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7132fi 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7136 CFLAGS="$xorg_testset_save_CFLAGS" 7137fi 7138 7139found="no" 7140 7141 if test $found = "no" ; then 7142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7144 fi 7145 7146 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7148 fi 7149 7150 CFLAGS="$CFLAGS -Werror=init-self" 7151 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7153$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7154 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7155 if eval \${$cacheid+:} false; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7159/* end confdefs.h. */ 7160int i; 7161int 7162main () 7163{ 7164 7165 ; 7166 return 0; 7167} 7168_ACEOF 7169if ac_fn_c_try_link "$LINENO"; then : 7170 eval $cacheid=yes 7171else 7172 eval $cacheid=no 7173fi 7174rm -f core conftest.err conftest.$ac_objext \ 7175 conftest$ac_exeext conftest.$ac_ext 7176fi 7177 7178 7179 CFLAGS="$xorg_testset_save_CFLAGS" 7180 7181 eval supported=\$$cacheid 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7183$as_echo "$supported" >&6; } 7184 if test "$supported" = "yes" ; then 7185 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7186 found="yes" 7187 fi 7188 fi 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204xorg_testset_save_CFLAGS="$CFLAGS" 7205 7206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7214/* end confdefs.h. */ 7215int i; 7216_ACEOF 7217if ac_fn_c_try_compile "$LINENO"; then : 7218 xorg_cv_cc_flag_unknown_warning_option=yes 7219else 7220 xorg_cv_cc_flag_unknown_warning_option=no 7221fi 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228fi 7229 7230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7233 fi 7234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241/* end confdefs.h. */ 7242int i; 7243_ACEOF 7244if ac_fn_c_try_compile "$LINENO"; then : 7245 xorg_cv_cc_flag_unused_command_line_argument=yes 7246else 7247 xorg_cv_cc_flag_unused_command_line_argument=no 7248fi 7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7250fi 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7254 CFLAGS="$xorg_testset_save_CFLAGS" 7255fi 7256 7257found="no" 7258 7259 if test $found = "no" ; then 7260 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7262 fi 7263 7264 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7266 fi 7267 7268 CFLAGS="$CFLAGS -Werror=main" 7269 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7271$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7272 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7273 if eval \${$cacheid+:} false; then : 7274 $as_echo_n "(cached) " >&6 7275else 7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7277/* end confdefs.h. */ 7278int i; 7279int 7280main () 7281{ 7282 7283 ; 7284 return 0; 7285} 7286_ACEOF 7287if ac_fn_c_try_link "$LINENO"; then : 7288 eval $cacheid=yes 7289else 7290 eval $cacheid=no 7291fi 7292rm -f core conftest.err conftest.$ac_objext \ 7293 conftest$ac_exeext conftest.$ac_ext 7294fi 7295 7296 7297 CFLAGS="$xorg_testset_save_CFLAGS" 7298 7299 eval supported=\$$cacheid 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7301$as_echo "$supported" >&6; } 7302 if test "$supported" = "yes" ; then 7303 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7304 found="yes" 7305 fi 7306 fi 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322xorg_testset_save_CFLAGS="$CFLAGS" 7323 7324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332/* end confdefs.h. */ 7333int i; 7334_ACEOF 7335if ac_fn_c_try_compile "$LINENO"; then : 7336 xorg_cv_cc_flag_unknown_warning_option=yes 7337else 7338 xorg_cv_cc_flag_unknown_warning_option=no 7339fi 7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7341fi 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7345 CFLAGS="$xorg_testset_save_CFLAGS" 7346fi 7347 7348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7351 fi 7352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7356 $as_echo_n "(cached) " >&6 7357else 7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7359/* end confdefs.h. */ 7360int i; 7361_ACEOF 7362if ac_fn_c_try_compile "$LINENO"; then : 7363 xorg_cv_cc_flag_unused_command_line_argument=yes 7364else 7365 xorg_cv_cc_flag_unused_command_line_argument=no 7366fi 7367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7368fi 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7372 CFLAGS="$xorg_testset_save_CFLAGS" 7373fi 7374 7375found="no" 7376 7377 if test $found = "no" ; then 7378 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7380 fi 7381 7382 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7384 fi 7385 7386 CFLAGS="$CFLAGS -Werror=missing-braces" 7387 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7389$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7390 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7391 if eval \${$cacheid+:} false; then : 7392 $as_echo_n "(cached) " >&6 7393else 7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395/* end confdefs.h. */ 7396int i; 7397int 7398main () 7399{ 7400 7401 ; 7402 return 0; 7403} 7404_ACEOF 7405if ac_fn_c_try_link "$LINENO"; then : 7406 eval $cacheid=yes 7407else 7408 eval $cacheid=no 7409fi 7410rm -f core conftest.err conftest.$ac_objext \ 7411 conftest$ac_exeext conftest.$ac_ext 7412fi 7413 7414 7415 CFLAGS="$xorg_testset_save_CFLAGS" 7416 7417 eval supported=\$$cacheid 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7419$as_echo "$supported" >&6; } 7420 if test "$supported" = "yes" ; then 7421 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7422 found="yes" 7423 fi 7424 fi 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440xorg_testset_save_CFLAGS="$CFLAGS" 7441 7442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451int i; 7452_ACEOF 7453if ac_fn_c_try_compile "$LINENO"; then : 7454 xorg_cv_cc_flag_unknown_warning_option=yes 7455else 7456 xorg_cv_cc_flag_unknown_warning_option=no 7457fi 7458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7459fi 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7464fi 7465 7466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7469 fi 7470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479_ACEOF 7480if ac_fn_c_try_compile "$LINENO"; then : 7481 xorg_cv_cc_flag_unused_command_line_argument=yes 7482else 7483 xorg_cv_cc_flag_unused_command_line_argument=no 7484fi 7485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7486fi 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7490 CFLAGS="$xorg_testset_save_CFLAGS" 7491fi 7492 7493found="no" 7494 7495 if test $found = "no" ; then 7496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7498 fi 7499 7500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7502 fi 7503 7504 CFLAGS="$CFLAGS -Werror=sequence-point" 7505 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7507$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7508 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7509 if eval \${$cacheid+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7513/* end confdefs.h. */ 7514int i; 7515int 7516main () 7517{ 7518 7519 ; 7520 return 0; 7521} 7522_ACEOF 7523if ac_fn_c_try_link "$LINENO"; then : 7524 eval $cacheid=yes 7525else 7526 eval $cacheid=no 7527fi 7528rm -f core conftest.err conftest.$ac_objext \ 7529 conftest$ac_exeext conftest.$ac_ext 7530fi 7531 7532 7533 CFLAGS="$xorg_testset_save_CFLAGS" 7534 7535 eval supported=\$$cacheid 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7537$as_echo "$supported" >&6; } 7538 if test "$supported" = "yes" ; then 7539 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7540 found="yes" 7541 fi 7542 fi 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558xorg_testset_save_CFLAGS="$CFLAGS" 7559 7560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569int i; 7570_ACEOF 7571if ac_fn_c_try_compile "$LINENO"; then : 7572 xorg_cv_cc_flag_unknown_warning_option=yes 7573else 7574 xorg_cv_cc_flag_unknown_warning_option=no 7575fi 7576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7577fi 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7581 CFLAGS="$xorg_testset_save_CFLAGS" 7582fi 7583 7584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7587 fi 7588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7592 $as_echo_n "(cached) " >&6 7593else 7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595/* end confdefs.h. */ 7596int i; 7597_ACEOF 7598if ac_fn_c_try_compile "$LINENO"; then : 7599 xorg_cv_cc_flag_unused_command_line_argument=yes 7600else 7601 xorg_cv_cc_flag_unused_command_line_argument=no 7602fi 7603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7604fi 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7608 CFLAGS="$xorg_testset_save_CFLAGS" 7609fi 7610 7611found="no" 7612 7613 if test $found = "no" ; then 7614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7616 fi 7617 7618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7620 fi 7621 7622 CFLAGS="$CFLAGS -Werror=return-type" 7623 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7625$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7626 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7627 if eval \${$cacheid+:} false; then : 7628 $as_echo_n "(cached) " >&6 7629else 7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7631/* end confdefs.h. */ 7632int i; 7633int 7634main () 7635{ 7636 7637 ; 7638 return 0; 7639} 7640_ACEOF 7641if ac_fn_c_try_link "$LINENO"; then : 7642 eval $cacheid=yes 7643else 7644 eval $cacheid=no 7645fi 7646rm -f core conftest.err conftest.$ac_objext \ 7647 conftest$ac_exeext conftest.$ac_ext 7648fi 7649 7650 7651 CFLAGS="$xorg_testset_save_CFLAGS" 7652 7653 eval supported=\$$cacheid 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7655$as_echo "$supported" >&6; } 7656 if test "$supported" = "yes" ; then 7657 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7658 found="yes" 7659 fi 7660 fi 7661 7662 if test $found = "no" ; then 7663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 7667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7669 fi 7670 7671 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7672 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7674$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7675 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7676 if eval \${$cacheid+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680/* end confdefs.h. */ 7681int i; 7682int 7683main () 7684{ 7685 7686 ; 7687 return 0; 7688} 7689_ACEOF 7690if ac_fn_c_try_link "$LINENO"; then : 7691 eval $cacheid=yes 7692else 7693 eval $cacheid=no 7694fi 7695rm -f core conftest.err conftest.$ac_objext \ 7696 conftest$ac_exeext conftest.$ac_ext 7697fi 7698 7699 7700 CFLAGS="$xorg_testset_save_CFLAGS" 7701 7702 eval supported=\$$cacheid 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7704$as_echo "$supported" >&6; } 7705 if test "$supported" = "yes" ; then 7706 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7707 found="yes" 7708 fi 7709 fi 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725xorg_testset_save_CFLAGS="$CFLAGS" 7726 7727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7732 $as_echo_n "(cached) " >&6 7733else 7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735/* end confdefs.h. */ 7736int i; 7737_ACEOF 7738if ac_fn_c_try_compile "$LINENO"; then : 7739 xorg_cv_cc_flag_unknown_warning_option=yes 7740else 7741 xorg_cv_cc_flag_unknown_warning_option=no 7742fi 7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7748 CFLAGS="$xorg_testset_save_CFLAGS" 7749fi 7750 7751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7754 fi 7755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7759 $as_echo_n "(cached) " >&6 7760else 7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762/* end confdefs.h. */ 7763int i; 7764_ACEOF 7765if ac_fn_c_try_compile "$LINENO"; then : 7766 xorg_cv_cc_flag_unused_command_line_argument=yes 7767else 7768 xorg_cv_cc_flag_unused_command_line_argument=no 7769fi 7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7771fi 7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7775 CFLAGS="$xorg_testset_save_CFLAGS" 7776fi 7777 7778found="no" 7779 7780 if test $found = "no" ; then 7781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7783 fi 7784 7785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7787 fi 7788 7789 CFLAGS="$CFLAGS -Werror=trigraphs" 7790 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7792$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7793 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7794 if eval \${$cacheid+:} false; then : 7795 $as_echo_n "(cached) " >&6 7796else 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798/* end confdefs.h. */ 7799int i; 7800int 7801main () 7802{ 7803 7804 ; 7805 return 0; 7806} 7807_ACEOF 7808if ac_fn_c_try_link "$LINENO"; then : 7809 eval $cacheid=yes 7810else 7811 eval $cacheid=no 7812fi 7813rm -f core conftest.err conftest.$ac_objext \ 7814 conftest$ac_exeext conftest.$ac_ext 7815fi 7816 7817 7818 CFLAGS="$xorg_testset_save_CFLAGS" 7819 7820 eval supported=\$$cacheid 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7822$as_echo "$supported" >&6; } 7823 if test "$supported" = "yes" ; then 7824 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7825 found="yes" 7826 fi 7827 fi 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843xorg_testset_save_CFLAGS="$CFLAGS" 7844 7845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7850 $as_echo_n "(cached) " >&6 7851else 7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7853/* end confdefs.h. */ 7854int i; 7855_ACEOF 7856if ac_fn_c_try_compile "$LINENO"; then : 7857 xorg_cv_cc_flag_unknown_warning_option=yes 7858else 7859 xorg_cv_cc_flag_unknown_warning_option=no 7860fi 7861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7862fi 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7866 CFLAGS="$xorg_testset_save_CFLAGS" 7867fi 7868 7869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7872 fi 7873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7877 $as_echo_n "(cached) " >&6 7878else 7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7880/* end confdefs.h. */ 7881int i; 7882_ACEOF 7883if ac_fn_c_try_compile "$LINENO"; then : 7884 xorg_cv_cc_flag_unused_command_line_argument=yes 7885else 7886 xorg_cv_cc_flag_unused_command_line_argument=no 7887fi 7888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7889fi 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7893 CFLAGS="$xorg_testset_save_CFLAGS" 7894fi 7895 7896found="no" 7897 7898 if test $found = "no" ; then 7899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7901 fi 7902 7903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7905 fi 7906 7907 CFLAGS="$CFLAGS -Werror=array-bounds" 7908 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7910$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7911 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7912 if eval \${$cacheid+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917int i; 7918int 7919main () 7920{ 7921 7922 ; 7923 return 0; 7924} 7925_ACEOF 7926if ac_fn_c_try_link "$LINENO"; then : 7927 eval $cacheid=yes 7928else 7929 eval $cacheid=no 7930fi 7931rm -f core conftest.err conftest.$ac_objext \ 7932 conftest$ac_exeext conftest.$ac_ext 7933fi 7934 7935 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7937 7938 eval supported=\$$cacheid 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7940$as_echo "$supported" >&6; } 7941 if test "$supported" = "yes" ; then 7942 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7943 found="yes" 7944 fi 7945 fi 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961xorg_testset_save_CFLAGS="$CFLAGS" 7962 7963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO"; then : 7975 xorg_cv_cc_flag_unknown_warning_option=yes 7976else 7977 xorg_cv_cc_flag_unknown_warning_option=no 7978fi 7979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7980fi 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7984 CFLAGS="$xorg_testset_save_CFLAGS" 7985fi 7986 7987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7990 fi 7991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7995 $as_echo_n "(cached) " >&6 7996else 7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998/* end confdefs.h. */ 7999int i; 8000_ACEOF 8001if ac_fn_c_try_compile "$LINENO"; then : 8002 xorg_cv_cc_flag_unused_command_line_argument=yes 8003else 8004 xorg_cv_cc_flag_unused_command_line_argument=no 8005fi 8006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8007fi 8008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8011 CFLAGS="$xorg_testset_save_CFLAGS" 8012fi 8013 8014found="no" 8015 8016 if test $found = "no" ; then 8017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8019 fi 8020 8021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8023 fi 8024 8025 CFLAGS="$CFLAGS -Werror=write-strings" 8026 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8028$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8029 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8030 if eval \${$cacheid+:} false; then : 8031 $as_echo_n "(cached) " >&6 8032else 8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8034/* end confdefs.h. */ 8035int i; 8036int 8037main () 8038{ 8039 8040 ; 8041 return 0; 8042} 8043_ACEOF 8044if ac_fn_c_try_link "$LINENO"; then : 8045 eval $cacheid=yes 8046else 8047 eval $cacheid=no 8048fi 8049rm -f core conftest.err conftest.$ac_objext \ 8050 conftest$ac_exeext conftest.$ac_ext 8051fi 8052 8053 8054 CFLAGS="$xorg_testset_save_CFLAGS" 8055 8056 eval supported=\$$cacheid 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8058$as_echo "$supported" >&6; } 8059 if test "$supported" = "yes" ; then 8060 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8061 found="yes" 8062 fi 8063 fi 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079xorg_testset_save_CFLAGS="$CFLAGS" 8080 8081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8086 $as_echo_n "(cached) " >&6 8087else 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089/* end confdefs.h. */ 8090int i; 8091_ACEOF 8092if ac_fn_c_try_compile "$LINENO"; then : 8093 xorg_cv_cc_flag_unknown_warning_option=yes 8094else 8095 xorg_cv_cc_flag_unknown_warning_option=no 8096fi 8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8098fi 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8102 CFLAGS="$xorg_testset_save_CFLAGS" 8103fi 8104 8105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8108 fi 8109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8113 $as_echo_n "(cached) " >&6 8114else 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117int i; 8118_ACEOF 8119if ac_fn_c_try_compile "$LINENO"; then : 8120 xorg_cv_cc_flag_unused_command_line_argument=yes 8121else 8122 xorg_cv_cc_flag_unused_command_line_argument=no 8123fi 8124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8125fi 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8129 CFLAGS="$xorg_testset_save_CFLAGS" 8130fi 8131 8132found="no" 8133 8134 if test $found = "no" ; then 8135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8137 fi 8138 8139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8141 fi 8142 8143 CFLAGS="$CFLAGS -Werror=address" 8144 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8146$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8147 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8148 if eval \${$cacheid+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8152/* end confdefs.h. */ 8153int i; 8154int 8155main () 8156{ 8157 8158 ; 8159 return 0; 8160} 8161_ACEOF 8162if ac_fn_c_try_link "$LINENO"; then : 8163 eval $cacheid=yes 8164else 8165 eval $cacheid=no 8166fi 8167rm -f core conftest.err conftest.$ac_objext \ 8168 conftest$ac_exeext conftest.$ac_ext 8169fi 8170 8171 8172 CFLAGS="$xorg_testset_save_CFLAGS" 8173 8174 eval supported=\$$cacheid 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8176$as_echo "$supported" >&6; } 8177 if test "$supported" = "yes" ; then 8178 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8179 found="yes" 8180 fi 8181 fi 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197xorg_testset_save_CFLAGS="$CFLAGS" 8198 8199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208int i; 8209_ACEOF 8210if ac_fn_c_try_compile "$LINENO"; then : 8211 xorg_cv_cc_flag_unknown_warning_option=yes 8212else 8213 xorg_cv_cc_flag_unknown_warning_option=no 8214fi 8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8216fi 8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8220 CFLAGS="$xorg_testset_save_CFLAGS" 8221fi 8222 8223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232else 8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234/* end confdefs.h. */ 8235int i; 8236_ACEOF 8237if ac_fn_c_try_compile "$LINENO"; then : 8238 xorg_cv_cc_flag_unused_command_line_argument=yes 8239else 8240 xorg_cv_cc_flag_unused_command_line_argument=no 8241fi 8242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8243fi 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8247 CFLAGS="$xorg_testset_save_CFLAGS" 8248fi 8249 8250found="no" 8251 8252 if test $found = "no" ; then 8253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8255 fi 8256 8257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8259 fi 8260 8261 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8262 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8264$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8265 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8266 if eval \${$cacheid+:} false; then : 8267 $as_echo_n "(cached) " >&6 8268else 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8270/* end confdefs.h. */ 8271int i; 8272int 8273main () 8274{ 8275 8276 ; 8277 return 0; 8278} 8279_ACEOF 8280if ac_fn_c_try_link "$LINENO"; then : 8281 eval $cacheid=yes 8282else 8283 eval $cacheid=no 8284fi 8285rm -f core conftest.err conftest.$ac_objext \ 8286 conftest$ac_exeext conftest.$ac_ext 8287fi 8288 8289 8290 CFLAGS="$xorg_testset_save_CFLAGS" 8291 8292 eval supported=\$$cacheid 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8294$as_echo "$supported" >&6; } 8295 if test "$supported" = "yes" ; then 8296 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8297 found="yes" 8298 fi 8299 fi 8300 8301 if test $found = "no" ; then 8302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8304 fi 8305 8306 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8308 fi 8309 8310 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8311 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8313$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8314 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8315 if eval \${$cacheid+:} false; then : 8316 $as_echo_n "(cached) " >&6 8317else 8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8319/* end confdefs.h. */ 8320int i; 8321int 8322main () 8323{ 8324 8325 ; 8326 return 0; 8327} 8328_ACEOF 8329if ac_fn_c_try_link "$LINENO"; then : 8330 eval $cacheid=yes 8331else 8332 eval $cacheid=no 8333fi 8334rm -f core conftest.err conftest.$ac_objext \ 8335 conftest$ac_exeext conftest.$ac_ext 8336fi 8337 8338 8339 CFLAGS="$xorg_testset_save_CFLAGS" 8340 8341 eval supported=\$$cacheid 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8343$as_echo "$supported" >&6; } 8344 if test "$supported" = "yes" ; then 8345 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8346 found="yes" 8347 fi 8348 fi 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364xorg_testset_save_CFLAGS="$CFLAGS" 8365 8366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8374/* end confdefs.h. */ 8375int i; 8376_ACEOF 8377if ac_fn_c_try_compile "$LINENO"; then : 8378 xorg_cv_cc_flag_unknown_warning_option=yes 8379else 8380 xorg_cv_cc_flag_unknown_warning_option=no 8381fi 8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8383fi 8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388fi 8389 8390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8393 fi 8394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399else 8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8401/* end confdefs.h. */ 8402int i; 8403_ACEOF 8404if ac_fn_c_try_compile "$LINENO"; then : 8405 xorg_cv_cc_flag_unused_command_line_argument=yes 8406else 8407 xorg_cv_cc_flag_unused_command_line_argument=no 8408fi 8409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8410fi 8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8414 CFLAGS="$xorg_testset_save_CFLAGS" 8415fi 8416 8417found="no" 8418 8419 if test $found = "no" ; then 8420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8422 fi 8423 8424 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8426 fi 8427 8428 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8429 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8431$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8432 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8433 if eval \${$cacheid+:} false; then : 8434 $as_echo_n "(cached) " >&6 8435else 8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8437/* end confdefs.h. */ 8438int i; 8439int 8440main () 8441{ 8442 8443 ; 8444 return 0; 8445} 8446_ACEOF 8447if ac_fn_c_try_link "$LINENO"; then : 8448 eval $cacheid=yes 8449else 8450 eval $cacheid=no 8451fi 8452rm -f core conftest.err conftest.$ac_objext \ 8453 conftest$ac_exeext conftest.$ac_ext 8454fi 8455 8456 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458 8459 eval supported=\$$cacheid 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8461$as_echo "$supported" >&6; } 8462 if test "$supported" = "yes" ; then 8463 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8464 found="yes" 8465 fi 8466 fi 8467 8468 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8469else 8470{ $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 8471$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;} 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485xorg_testset_save_CFLAGS="$CFLAGS" 8486 8487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8492 $as_echo_n "(cached) " >&6 8493else 8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8495/* end confdefs.h. */ 8496int i; 8497_ACEOF 8498if ac_fn_c_try_compile "$LINENO"; then : 8499 xorg_cv_cc_flag_unknown_warning_option=yes 8500else 8501 xorg_cv_cc_flag_unknown_warning_option=no 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8504fi 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509fi 8510 8511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8514 fi 8515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8519 $as_echo_n "(cached) " >&6 8520else 8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8522/* end confdefs.h. */ 8523int i; 8524_ACEOF 8525if ac_fn_c_try_compile "$LINENO"; then : 8526 xorg_cv_cc_flag_unused_command_line_argument=yes 8527else 8528 xorg_cv_cc_flag_unused_command_line_argument=no 8529fi 8530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8531fi 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8535 CFLAGS="$xorg_testset_save_CFLAGS" 8536fi 8537 8538found="no" 8539 8540 if test $found = "no" ; then 8541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8543 fi 8544 8545 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8547 fi 8548 8549 CFLAGS="$CFLAGS -Wimplicit" 8550 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8552$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8553 cacheid=xorg_cv_cc_flag__Wimplicit 8554 if eval \${$cacheid+:} false; then : 8555 $as_echo_n "(cached) " >&6 8556else 8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558/* end confdefs.h. */ 8559int i; 8560int 8561main () 8562{ 8563 8564 ; 8565 return 0; 8566} 8567_ACEOF 8568if ac_fn_c_try_link "$LINENO"; then : 8569 eval $cacheid=yes 8570else 8571 eval $cacheid=no 8572fi 8573rm -f core conftest.err conftest.$ac_objext \ 8574 conftest$ac_exeext conftest.$ac_ext 8575fi 8576 8577 8578 CFLAGS="$xorg_testset_save_CFLAGS" 8579 8580 eval supported=\$$cacheid 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8582$as_echo "$supported" >&6; } 8583 if test "$supported" = "yes" ; then 8584 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8585 found="yes" 8586 fi 8587 fi 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603xorg_testset_save_CFLAGS="$CFLAGS" 8604 8605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614int i; 8615_ACEOF 8616if ac_fn_c_try_compile "$LINENO"; then : 8617 xorg_cv_cc_flag_unknown_warning_option=yes 8618else 8619 xorg_cv_cc_flag_unknown_warning_option=no 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627fi 8628 8629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8632 fi 8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638else 8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640/* end confdefs.h. */ 8641int i; 8642_ACEOF 8643if ac_fn_c_try_compile "$LINENO"; then : 8644 xorg_cv_cc_flag_unused_command_line_argument=yes 8645else 8646 xorg_cv_cc_flag_unused_command_line_argument=no 8647fi 8648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8649fi 8650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8653 CFLAGS="$xorg_testset_save_CFLAGS" 8654fi 8655 8656found="no" 8657 8658 if test $found = "no" ; then 8659 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8661 fi 8662 8663 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8665 fi 8666 8667 CFLAGS="$CFLAGS -Wnonnull" 8668 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8670$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8671 cacheid=xorg_cv_cc_flag__Wnonnull 8672 if eval \${$cacheid+:} false; then : 8673 $as_echo_n "(cached) " >&6 8674else 8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8676/* end confdefs.h. */ 8677int i; 8678int 8679main () 8680{ 8681 8682 ; 8683 return 0; 8684} 8685_ACEOF 8686if ac_fn_c_try_link "$LINENO"; then : 8687 eval $cacheid=yes 8688else 8689 eval $cacheid=no 8690fi 8691rm -f core conftest.err conftest.$ac_objext \ 8692 conftest$ac_exeext conftest.$ac_ext 8693fi 8694 8695 8696 CFLAGS="$xorg_testset_save_CFLAGS" 8697 8698 eval supported=\$$cacheid 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8700$as_echo "$supported" >&6; } 8701 if test "$supported" = "yes" ; then 8702 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8703 found="yes" 8704 fi 8705 fi 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721xorg_testset_save_CFLAGS="$CFLAGS" 8722 8723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8731/* end confdefs.h. */ 8732int i; 8733_ACEOF 8734if ac_fn_c_try_compile "$LINENO"; then : 8735 xorg_cv_cc_flag_unknown_warning_option=yes 8736else 8737 xorg_cv_cc_flag_unknown_warning_option=no 8738fi 8739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8740fi 8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8744 CFLAGS="$xorg_testset_save_CFLAGS" 8745fi 8746 8747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8750 fi 8751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8755 $as_echo_n "(cached) " >&6 8756else 8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758/* end confdefs.h. */ 8759int i; 8760_ACEOF 8761if ac_fn_c_try_compile "$LINENO"; then : 8762 xorg_cv_cc_flag_unused_command_line_argument=yes 8763else 8764 xorg_cv_cc_flag_unused_command_line_argument=no 8765fi 8766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8767fi 8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8771 CFLAGS="$xorg_testset_save_CFLAGS" 8772fi 8773 8774found="no" 8775 8776 if test $found = "no" ; then 8777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8779 fi 8780 8781 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8783 fi 8784 8785 CFLAGS="$CFLAGS -Winit-self" 8786 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8788$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8789 cacheid=xorg_cv_cc_flag__Winit_self 8790 if eval \${$cacheid+:} false; then : 8791 $as_echo_n "(cached) " >&6 8792else 8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8794/* end confdefs.h. */ 8795int i; 8796int 8797main () 8798{ 8799 8800 ; 8801 return 0; 8802} 8803_ACEOF 8804if ac_fn_c_try_link "$LINENO"; then : 8805 eval $cacheid=yes 8806else 8807 eval $cacheid=no 8808fi 8809rm -f core conftest.err conftest.$ac_objext \ 8810 conftest$ac_exeext conftest.$ac_ext 8811fi 8812 8813 8814 CFLAGS="$xorg_testset_save_CFLAGS" 8815 8816 eval supported=\$$cacheid 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8818$as_echo "$supported" >&6; } 8819 if test "$supported" = "yes" ; then 8820 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8821 found="yes" 8822 fi 8823 fi 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839xorg_testset_save_CFLAGS="$CFLAGS" 8840 8841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849/* end confdefs.h. */ 8850int i; 8851_ACEOF 8852if ac_fn_c_try_compile "$LINENO"; then : 8853 xorg_cv_cc_flag_unknown_warning_option=yes 8854else 8855 xorg_cv_cc_flag_unknown_warning_option=no 8856fi 8857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8858fi 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8862 CFLAGS="$xorg_testset_save_CFLAGS" 8863fi 8864 8865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8868 fi 8869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874else 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876/* end confdefs.h. */ 8877int i; 8878_ACEOF 8879if ac_fn_c_try_compile "$LINENO"; then : 8880 xorg_cv_cc_flag_unused_command_line_argument=yes 8881else 8882 xorg_cv_cc_flag_unused_command_line_argument=no 8883fi 8884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8885fi 8886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8889 CFLAGS="$xorg_testset_save_CFLAGS" 8890fi 8891 8892found="no" 8893 8894 if test $found = "no" ; then 8895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8897 fi 8898 8899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8901 fi 8902 8903 CFLAGS="$CFLAGS -Wmain" 8904 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8906$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8907 cacheid=xorg_cv_cc_flag__Wmain 8908 if eval \${$cacheid+:} false; then : 8909 $as_echo_n "(cached) " >&6 8910else 8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8912/* end confdefs.h. */ 8913int i; 8914int 8915main () 8916{ 8917 8918 ; 8919 return 0; 8920} 8921_ACEOF 8922if ac_fn_c_try_link "$LINENO"; then : 8923 eval $cacheid=yes 8924else 8925 eval $cacheid=no 8926fi 8927rm -f core conftest.err conftest.$ac_objext \ 8928 conftest$ac_exeext conftest.$ac_ext 8929fi 8930 8931 8932 CFLAGS="$xorg_testset_save_CFLAGS" 8933 8934 eval supported=\$$cacheid 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8936$as_echo "$supported" >&6; } 8937 if test "$supported" = "yes" ; then 8938 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8939 found="yes" 8940 fi 8941 fi 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957xorg_testset_save_CFLAGS="$CFLAGS" 8958 8959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8967/* end confdefs.h. */ 8968int i; 8969_ACEOF 8970if ac_fn_c_try_compile "$LINENO"; then : 8971 xorg_cv_cc_flag_unknown_warning_option=yes 8972else 8973 xorg_cv_cc_flag_unknown_warning_option=no 8974fi 8975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8976fi 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8980 CFLAGS="$xorg_testset_save_CFLAGS" 8981fi 8982 8983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8986 fi 8987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992else 8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8994/* end confdefs.h. */ 8995int i; 8996_ACEOF 8997if ac_fn_c_try_compile "$LINENO"; then : 8998 xorg_cv_cc_flag_unused_command_line_argument=yes 8999else 9000 xorg_cv_cc_flag_unused_command_line_argument=no 9001fi 9002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9003fi 9004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9007 CFLAGS="$xorg_testset_save_CFLAGS" 9008fi 9009 9010found="no" 9011 9012 if test $found = "no" ; then 9013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9015 fi 9016 9017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9019 fi 9020 9021 CFLAGS="$CFLAGS -Wmissing-braces" 9022 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9024$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9025 cacheid=xorg_cv_cc_flag__Wmissing_braces 9026 if eval \${$cacheid+:} false; then : 9027 $as_echo_n "(cached) " >&6 9028else 9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9030/* end confdefs.h. */ 9031int i; 9032int 9033main () 9034{ 9035 9036 ; 9037 return 0; 9038} 9039_ACEOF 9040if ac_fn_c_try_link "$LINENO"; then : 9041 eval $cacheid=yes 9042else 9043 eval $cacheid=no 9044fi 9045rm -f core conftest.err conftest.$ac_objext \ 9046 conftest$ac_exeext conftest.$ac_ext 9047fi 9048 9049 9050 CFLAGS="$xorg_testset_save_CFLAGS" 9051 9052 eval supported=\$$cacheid 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9054$as_echo "$supported" >&6; } 9055 if test "$supported" = "yes" ; then 9056 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9057 found="yes" 9058 fi 9059 fi 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075xorg_testset_save_CFLAGS="$CFLAGS" 9076 9077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9082 $as_echo_n "(cached) " >&6 9083else 9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085/* end confdefs.h. */ 9086int i; 9087_ACEOF 9088if ac_fn_c_try_compile "$LINENO"; then : 9089 xorg_cv_cc_flag_unknown_warning_option=yes 9090else 9091 xorg_cv_cc_flag_unknown_warning_option=no 9092fi 9093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9094fi 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9098 CFLAGS="$xorg_testset_save_CFLAGS" 9099fi 9100 9101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9104 fi 9105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9109 $as_echo_n "(cached) " >&6 9110else 9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9112/* end confdefs.h. */ 9113int i; 9114_ACEOF 9115if ac_fn_c_try_compile "$LINENO"; then : 9116 xorg_cv_cc_flag_unused_command_line_argument=yes 9117else 9118 xorg_cv_cc_flag_unused_command_line_argument=no 9119fi 9120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9121fi 9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9125 CFLAGS="$xorg_testset_save_CFLAGS" 9126fi 9127 9128found="no" 9129 9130 if test $found = "no" ; then 9131 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9133 fi 9134 9135 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9137 fi 9138 9139 CFLAGS="$CFLAGS -Wsequence-point" 9140 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9142$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9143 cacheid=xorg_cv_cc_flag__Wsequence_point 9144 if eval \${$cacheid+:} false; then : 9145 $as_echo_n "(cached) " >&6 9146else 9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9148/* end confdefs.h. */ 9149int i; 9150int 9151main () 9152{ 9153 9154 ; 9155 return 0; 9156} 9157_ACEOF 9158if ac_fn_c_try_link "$LINENO"; then : 9159 eval $cacheid=yes 9160else 9161 eval $cacheid=no 9162fi 9163rm -f core conftest.err conftest.$ac_objext \ 9164 conftest$ac_exeext conftest.$ac_ext 9165fi 9166 9167 9168 CFLAGS="$xorg_testset_save_CFLAGS" 9169 9170 eval supported=\$$cacheid 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9172$as_echo "$supported" >&6; } 9173 if test "$supported" = "yes" ; then 9174 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9175 found="yes" 9176 fi 9177 fi 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193xorg_testset_save_CFLAGS="$CFLAGS" 9194 9195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9203/* end confdefs.h. */ 9204int i; 9205_ACEOF 9206if ac_fn_c_try_compile "$LINENO"; then : 9207 xorg_cv_cc_flag_unknown_warning_option=yes 9208else 9209 xorg_cv_cc_flag_unknown_warning_option=no 9210fi 9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9212fi 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9216 CFLAGS="$xorg_testset_save_CFLAGS" 9217fi 9218 9219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9222 fi 9223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9230/* end confdefs.h. */ 9231int i; 9232_ACEOF 9233if ac_fn_c_try_compile "$LINENO"; then : 9234 xorg_cv_cc_flag_unused_command_line_argument=yes 9235else 9236 xorg_cv_cc_flag_unused_command_line_argument=no 9237fi 9238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9239fi 9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9243 CFLAGS="$xorg_testset_save_CFLAGS" 9244fi 9245 9246found="no" 9247 9248 if test $found = "no" ; then 9249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9251 fi 9252 9253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9255 fi 9256 9257 CFLAGS="$CFLAGS -Wreturn-type" 9258 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9260$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9261 cacheid=xorg_cv_cc_flag__Wreturn_type 9262 if eval \${$cacheid+:} false; then : 9263 $as_echo_n "(cached) " >&6 9264else 9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9266/* end confdefs.h. */ 9267int i; 9268int 9269main () 9270{ 9271 9272 ; 9273 return 0; 9274} 9275_ACEOF 9276if ac_fn_c_try_link "$LINENO"; then : 9277 eval $cacheid=yes 9278else 9279 eval $cacheid=no 9280fi 9281rm -f core conftest.err conftest.$ac_objext \ 9282 conftest$ac_exeext conftest.$ac_ext 9283fi 9284 9285 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287 9288 eval supported=\$$cacheid 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9290$as_echo "$supported" >&6; } 9291 if test "$supported" = "yes" ; then 9292 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9293 found="yes" 9294 fi 9295 fi 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311xorg_testset_save_CFLAGS="$CFLAGS" 9312 9313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9318 $as_echo_n "(cached) " >&6 9319else 9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9321/* end confdefs.h. */ 9322int i; 9323_ACEOF 9324if ac_fn_c_try_compile "$LINENO"; then : 9325 xorg_cv_cc_flag_unknown_warning_option=yes 9326else 9327 xorg_cv_cc_flag_unknown_warning_option=no 9328fi 9329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9330fi 9331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9334 CFLAGS="$xorg_testset_save_CFLAGS" 9335fi 9336 9337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 fi 9341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9345 $as_echo_n "(cached) " >&6 9346else 9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348/* end confdefs.h. */ 9349int i; 9350_ACEOF 9351if ac_fn_c_try_compile "$LINENO"; then : 9352 xorg_cv_cc_flag_unused_command_line_argument=yes 9353else 9354 xorg_cv_cc_flag_unused_command_line_argument=no 9355fi 9356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9357fi 9358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9361 CFLAGS="$xorg_testset_save_CFLAGS" 9362fi 9363 9364found="no" 9365 9366 if test $found = "no" ; then 9367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9369 fi 9370 9371 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9373 fi 9374 9375 CFLAGS="$CFLAGS -Wtrigraphs" 9376 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9378$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9379 cacheid=xorg_cv_cc_flag__Wtrigraphs 9380 if eval \${$cacheid+:} false; then : 9381 $as_echo_n "(cached) " >&6 9382else 9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9384/* end confdefs.h. */ 9385int i; 9386int 9387main () 9388{ 9389 9390 ; 9391 return 0; 9392} 9393_ACEOF 9394if ac_fn_c_try_link "$LINENO"; then : 9395 eval $cacheid=yes 9396else 9397 eval $cacheid=no 9398fi 9399rm -f core conftest.err conftest.$ac_objext \ 9400 conftest$ac_exeext conftest.$ac_ext 9401fi 9402 9403 9404 CFLAGS="$xorg_testset_save_CFLAGS" 9405 9406 eval supported=\$$cacheid 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9408$as_echo "$supported" >&6; } 9409 if test "$supported" = "yes" ; then 9410 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9411 found="yes" 9412 fi 9413 fi 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429xorg_testset_save_CFLAGS="$CFLAGS" 9430 9431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440int i; 9441_ACEOF 9442if ac_fn_c_try_compile "$LINENO"; then : 9443 xorg_cv_cc_flag_unknown_warning_option=yes 9444else 9445 xorg_cv_cc_flag_unknown_warning_option=no 9446fi 9447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9448fi 9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9452 CFLAGS="$xorg_testset_save_CFLAGS" 9453fi 9454 9455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9458 fi 9459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9463 $as_echo_n "(cached) " >&6 9464else 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466/* end confdefs.h. */ 9467int i; 9468_ACEOF 9469if ac_fn_c_try_compile "$LINENO"; then : 9470 xorg_cv_cc_flag_unused_command_line_argument=yes 9471else 9472 xorg_cv_cc_flag_unused_command_line_argument=no 9473fi 9474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9475fi 9476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9479 CFLAGS="$xorg_testset_save_CFLAGS" 9480fi 9481 9482found="no" 9483 9484 if test $found = "no" ; then 9485 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9487 fi 9488 9489 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9491 fi 9492 9493 CFLAGS="$CFLAGS -Warray-bounds" 9494 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9496$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9497 cacheid=xorg_cv_cc_flag__Warray_bounds 9498 if eval \${$cacheid+:} false; then : 9499 $as_echo_n "(cached) " >&6 9500else 9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9502/* end confdefs.h. */ 9503int i; 9504int 9505main () 9506{ 9507 9508 ; 9509 return 0; 9510} 9511_ACEOF 9512if ac_fn_c_try_link "$LINENO"; then : 9513 eval $cacheid=yes 9514else 9515 eval $cacheid=no 9516fi 9517rm -f core conftest.err conftest.$ac_objext \ 9518 conftest$ac_exeext conftest.$ac_ext 9519fi 9520 9521 9522 CFLAGS="$xorg_testset_save_CFLAGS" 9523 9524 eval supported=\$$cacheid 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9526$as_echo "$supported" >&6; } 9527 if test "$supported" = "yes" ; then 9528 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9529 found="yes" 9530 fi 9531 fi 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547xorg_testset_save_CFLAGS="$CFLAGS" 9548 9549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9554 $as_echo_n "(cached) " >&6 9555else 9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9557/* end confdefs.h. */ 9558int i; 9559_ACEOF 9560if ac_fn_c_try_compile "$LINENO"; then : 9561 xorg_cv_cc_flag_unknown_warning_option=yes 9562else 9563 xorg_cv_cc_flag_unknown_warning_option=no 9564fi 9565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9566fi 9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9570 CFLAGS="$xorg_testset_save_CFLAGS" 9571fi 9572 9573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9576 fi 9577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9581 $as_echo_n "(cached) " >&6 9582else 9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9584/* end confdefs.h. */ 9585int i; 9586_ACEOF 9587if ac_fn_c_try_compile "$LINENO"; then : 9588 xorg_cv_cc_flag_unused_command_line_argument=yes 9589else 9590 xorg_cv_cc_flag_unused_command_line_argument=no 9591fi 9592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9593fi 9594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9597 CFLAGS="$xorg_testset_save_CFLAGS" 9598fi 9599 9600found="no" 9601 9602 if test $found = "no" ; then 9603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9605 fi 9606 9607 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9609 fi 9610 9611 CFLAGS="$CFLAGS -Wwrite-strings" 9612 9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9614$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9615 cacheid=xorg_cv_cc_flag__Wwrite_strings 9616 if eval \${$cacheid+:} false; then : 9617 $as_echo_n "(cached) " >&6 9618else 9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9620/* end confdefs.h. */ 9621int i; 9622int 9623main () 9624{ 9625 9626 ; 9627 return 0; 9628} 9629_ACEOF 9630if ac_fn_c_try_link "$LINENO"; then : 9631 eval $cacheid=yes 9632else 9633 eval $cacheid=no 9634fi 9635rm -f core conftest.err conftest.$ac_objext \ 9636 conftest$ac_exeext conftest.$ac_ext 9637fi 9638 9639 9640 CFLAGS="$xorg_testset_save_CFLAGS" 9641 9642 eval supported=\$$cacheid 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9644$as_echo "$supported" >&6; } 9645 if test "$supported" = "yes" ; then 9646 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9647 found="yes" 9648 fi 9649 fi 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665xorg_testset_save_CFLAGS="$CFLAGS" 9666 9667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9672 $as_echo_n "(cached) " >&6 9673else 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676int i; 9677_ACEOF 9678if ac_fn_c_try_compile "$LINENO"; then : 9679 xorg_cv_cc_flag_unknown_warning_option=yes 9680else 9681 xorg_cv_cc_flag_unknown_warning_option=no 9682fi 9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9688 CFLAGS="$xorg_testset_save_CFLAGS" 9689fi 9690 9691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9694 fi 9695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9699 $as_echo_n "(cached) " >&6 9700else 9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702/* end confdefs.h. */ 9703int i; 9704_ACEOF 9705if ac_fn_c_try_compile "$LINENO"; then : 9706 xorg_cv_cc_flag_unused_command_line_argument=yes 9707else 9708 xorg_cv_cc_flag_unused_command_line_argument=no 9709fi 9710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9711fi 9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9715 CFLAGS="$xorg_testset_save_CFLAGS" 9716fi 9717 9718found="no" 9719 9720 if test $found = "no" ; then 9721 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9723 fi 9724 9725 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9727 fi 9728 9729 CFLAGS="$CFLAGS -Waddress" 9730 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9732$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9733 cacheid=xorg_cv_cc_flag__Waddress 9734 if eval \${$cacheid+:} false; then : 9735 $as_echo_n "(cached) " >&6 9736else 9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9738/* end confdefs.h. */ 9739int i; 9740int 9741main () 9742{ 9743 9744 ; 9745 return 0; 9746} 9747_ACEOF 9748if ac_fn_c_try_link "$LINENO"; then : 9749 eval $cacheid=yes 9750else 9751 eval $cacheid=no 9752fi 9753rm -f core conftest.err conftest.$ac_objext \ 9754 conftest$ac_exeext conftest.$ac_ext 9755fi 9756 9757 9758 CFLAGS="$xorg_testset_save_CFLAGS" 9759 9760 eval supported=\$$cacheid 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9762$as_echo "$supported" >&6; } 9763 if test "$supported" = "yes" ; then 9764 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9765 found="yes" 9766 fi 9767 fi 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783xorg_testset_save_CFLAGS="$CFLAGS" 9784 9785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9790 $as_echo_n "(cached) " >&6 9791else 9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794int i; 9795_ACEOF 9796if ac_fn_c_try_compile "$LINENO"; then : 9797 xorg_cv_cc_flag_unknown_warning_option=yes 9798else 9799 xorg_cv_cc_flag_unknown_warning_option=no 9800fi 9801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9802fi 9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9806 CFLAGS="$xorg_testset_save_CFLAGS" 9807fi 9808 9809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9812 fi 9813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9817 $as_echo_n "(cached) " >&6 9818else 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821int i; 9822_ACEOF 9823if ac_fn_c_try_compile "$LINENO"; then : 9824 xorg_cv_cc_flag_unused_command_line_argument=yes 9825else 9826 xorg_cv_cc_flag_unused_command_line_argument=no 9827fi 9828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9829fi 9830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9833 CFLAGS="$xorg_testset_save_CFLAGS" 9834fi 9835 9836found="no" 9837 9838 if test $found = "no" ; then 9839 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9841 fi 9842 9843 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9845 fi 9846 9847 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9848 9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9850$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9851 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9852 if eval \${$cacheid+:} false; then : 9853 $as_echo_n "(cached) " >&6 9854else 9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9856/* end confdefs.h. */ 9857int i; 9858int 9859main () 9860{ 9861 9862 ; 9863 return 0; 9864} 9865_ACEOF 9866if ac_fn_c_try_link "$LINENO"; then : 9867 eval $cacheid=yes 9868else 9869 eval $cacheid=no 9870fi 9871rm -f core conftest.err conftest.$ac_objext \ 9872 conftest$ac_exeext conftest.$ac_ext 9873fi 9874 9875 9876 CFLAGS="$xorg_testset_save_CFLAGS" 9877 9878 eval supported=\$$cacheid 9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9880$as_echo "$supported" >&6; } 9881 if test "$supported" = "yes" ; then 9882 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9883 found="yes" 9884 fi 9885 fi 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901xorg_testset_save_CFLAGS="$CFLAGS" 9902 9903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9907if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912int i; 9913_ACEOF 9914if ac_fn_c_try_compile "$LINENO"; then : 9915 xorg_cv_cc_flag_unknown_warning_option=yes 9916else 9917 xorg_cv_cc_flag_unknown_warning_option=no 9918fi 9919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9920fi 9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9922$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9924 CFLAGS="$xorg_testset_save_CFLAGS" 9925fi 9926 9927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9930 fi 9931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9933$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9934if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9935 $as_echo_n "(cached) " >&6 9936else 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939int i; 9940_ACEOF 9941if ac_fn_c_try_compile "$LINENO"; then : 9942 xorg_cv_cc_flag_unused_command_line_argument=yes 9943else 9944 xorg_cv_cc_flag_unused_command_line_argument=no 9945fi 9946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9947fi 9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9949$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9951 CFLAGS="$xorg_testset_save_CFLAGS" 9952fi 9953 9954found="no" 9955 9956 if test $found = "no" ; then 9957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9959 fi 9960 9961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9963 fi 9964 9965 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9966 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9968$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9969 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9970 if eval \${$cacheid+:} false; then : 9971 $as_echo_n "(cached) " >&6 9972else 9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9974/* end confdefs.h. */ 9975int i; 9976int 9977main () 9978{ 9979 9980 ; 9981 return 0; 9982} 9983_ACEOF 9984if ac_fn_c_try_link "$LINENO"; then : 9985 eval $cacheid=yes 9986else 9987 eval $cacheid=no 9988fi 9989rm -f core conftest.err conftest.$ac_objext \ 9990 conftest$ac_exeext conftest.$ac_ext 9991fi 9992 9993 9994 CFLAGS="$xorg_testset_save_CFLAGS" 9995 9996 eval supported=\$$cacheid 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9998$as_echo "$supported" >&6; } 9999 if test "$supported" = "yes" ; then 10000 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10001 found="yes" 10002 fi 10003 fi 10004 10005 10006fi 10007 10008 10009 10010 10011 10012 10013 10014 CWARNFLAGS="$BASE_CFLAGS" 10015 if test "x$GCC" = xyes ; then 10016 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10017 fi 10018 10019 10020 10021 10022 10023 10024 10025 10026# Check whether --enable-strict-compilation was given. 10027if test "${enable_strict_compilation+set}" = set; then : 10028 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10029else 10030 STRICT_COMPILE=no 10031fi 10032 10033 10034 10035 10036 10037 10038STRICT_CFLAGS="" 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052xorg_testset_save_CFLAGS="$CFLAGS" 10053 10054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064_ACEOF 10065if ac_fn_c_try_compile "$LINENO"; then : 10066 xorg_cv_cc_flag_unknown_warning_option=yes 10067else 10068 xorg_cv_cc_flag_unknown_warning_option=no 10069fi 10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10071fi 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10075 CFLAGS="$xorg_testset_save_CFLAGS" 10076fi 10077 10078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10081 fi 10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10086 $as_echo_n "(cached) " >&6 10087else 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089/* end confdefs.h. */ 10090int i; 10091_ACEOF 10092if ac_fn_c_try_compile "$LINENO"; then : 10093 xorg_cv_cc_flag_unused_command_line_argument=yes 10094else 10095 xorg_cv_cc_flag_unused_command_line_argument=no 10096fi 10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10098fi 10099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10102 CFLAGS="$xorg_testset_save_CFLAGS" 10103fi 10104 10105found="no" 10106 10107 if test $found = "no" ; then 10108 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10110 fi 10111 10112 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10114 fi 10115 10116 CFLAGS="$CFLAGS -pedantic" 10117 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10119$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10120 cacheid=xorg_cv_cc_flag__pedantic 10121 if eval \${$cacheid+:} false; then : 10122 $as_echo_n "(cached) " >&6 10123else 10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10125/* end confdefs.h. */ 10126int i; 10127int 10128main () 10129{ 10130 10131 ; 10132 return 0; 10133} 10134_ACEOF 10135if ac_fn_c_try_link "$LINENO"; then : 10136 eval $cacheid=yes 10137else 10138 eval $cacheid=no 10139fi 10140rm -f core conftest.err conftest.$ac_objext \ 10141 conftest$ac_exeext conftest.$ac_ext 10142fi 10143 10144 10145 CFLAGS="$xorg_testset_save_CFLAGS" 10146 10147 eval supported=\$$cacheid 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10149$as_echo "$supported" >&6; } 10150 if test "$supported" = "yes" ; then 10151 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10152 found="yes" 10153 fi 10154 fi 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170xorg_testset_save_CFLAGS="$CFLAGS" 10171 10172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10177 $as_echo_n "(cached) " >&6 10178else 10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10180/* end confdefs.h. */ 10181int i; 10182_ACEOF 10183if ac_fn_c_try_compile "$LINENO"; then : 10184 xorg_cv_cc_flag_unknown_warning_option=yes 10185else 10186 xorg_cv_cc_flag_unknown_warning_option=no 10187fi 10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10189fi 10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10193 CFLAGS="$xorg_testset_save_CFLAGS" 10194fi 10195 10196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10199 fi 10200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10204 $as_echo_n "(cached) " >&6 10205else 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207/* end confdefs.h. */ 10208int i; 10209_ACEOF 10210if ac_fn_c_try_compile "$LINENO"; then : 10211 xorg_cv_cc_flag_unused_command_line_argument=yes 10212else 10213 xorg_cv_cc_flag_unused_command_line_argument=no 10214fi 10215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10216fi 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10220 CFLAGS="$xorg_testset_save_CFLAGS" 10221fi 10222 10223found="no" 10224 10225 if test $found = "no" ; then 10226 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10228 fi 10229 10230 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 fi 10233 10234 CFLAGS="$CFLAGS -Werror" 10235 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10237$as_echo_n "checking if $CC supports -Werror... " >&6; } 10238 cacheid=xorg_cv_cc_flag__Werror 10239 if eval \${$cacheid+:} false; then : 10240 $as_echo_n "(cached) " >&6 10241else 10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10243/* end confdefs.h. */ 10244int i; 10245int 10246main () 10247{ 10248 10249 ; 10250 return 0; 10251} 10252_ACEOF 10253if ac_fn_c_try_link "$LINENO"; then : 10254 eval $cacheid=yes 10255else 10256 eval $cacheid=no 10257fi 10258rm -f core conftest.err conftest.$ac_objext \ 10259 conftest$ac_exeext conftest.$ac_ext 10260fi 10261 10262 10263 CFLAGS="$xorg_testset_save_CFLAGS" 10264 10265 eval supported=\$$cacheid 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10267$as_echo "$supported" >&6; } 10268 if test "$supported" = "yes" ; then 10269 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10270 found="yes" 10271 fi 10272 fi 10273 10274 if test $found = "no" ; then 10275 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10277 fi 10278 10279 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10281 fi 10282 10283 CFLAGS="$CFLAGS -errwarn" 10284 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10286$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10287 cacheid=xorg_cv_cc_flag__errwarn 10288 if eval \${$cacheid+:} false; then : 10289 $as_echo_n "(cached) " >&6 10290else 10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10292/* end confdefs.h. */ 10293int i; 10294int 10295main () 10296{ 10297 10298 ; 10299 return 0; 10300} 10301_ACEOF 10302if ac_fn_c_try_link "$LINENO"; then : 10303 eval $cacheid=yes 10304else 10305 eval $cacheid=no 10306fi 10307rm -f core conftest.err conftest.$ac_objext \ 10308 conftest$ac_exeext conftest.$ac_ext 10309fi 10310 10311 10312 CFLAGS="$xorg_testset_save_CFLAGS" 10313 10314 eval supported=\$$cacheid 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10316$as_echo "$supported" >&6; } 10317 if test "$supported" = "yes" ; then 10318 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10319 found="yes" 10320 fi 10321 fi 10322 10323 10324 10325# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10326# activate it with -Werror, so we add it here explicitly. 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340xorg_testset_save_CFLAGS="$CFLAGS" 10341 10342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10347 $as_echo_n "(cached) " >&6 10348else 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350/* end confdefs.h. */ 10351int i; 10352_ACEOF 10353if ac_fn_c_try_compile "$LINENO"; then : 10354 xorg_cv_cc_flag_unknown_warning_option=yes 10355else 10356 xorg_cv_cc_flag_unknown_warning_option=no 10357fi 10358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10359fi 10360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10363 CFLAGS="$xorg_testset_save_CFLAGS" 10364fi 10365 10366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10369 fi 10370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10374 $as_echo_n "(cached) " >&6 10375else 10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10377/* end confdefs.h. */ 10378int i; 10379_ACEOF 10380if ac_fn_c_try_compile "$LINENO"; then : 10381 xorg_cv_cc_flag_unused_command_line_argument=yes 10382else 10383 xorg_cv_cc_flag_unused_command_line_argument=no 10384fi 10385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10386fi 10387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391fi 10392 10393found="no" 10394 10395 if test $found = "no" ; then 10396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10398 fi 10399 10400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10402 fi 10403 10404 CFLAGS="$CFLAGS -Werror=attributes" 10405 10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10407$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10408 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10409 if eval \${$cacheid+:} false; then : 10410 $as_echo_n "(cached) " >&6 10411else 10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10413/* end confdefs.h. */ 10414int i; 10415int 10416main () 10417{ 10418 10419 ; 10420 return 0; 10421} 10422_ACEOF 10423if ac_fn_c_try_link "$LINENO"; then : 10424 eval $cacheid=yes 10425else 10426 eval $cacheid=no 10427fi 10428rm -f core conftest.err conftest.$ac_objext \ 10429 conftest$ac_exeext conftest.$ac_ext 10430fi 10431 10432 10433 CFLAGS="$xorg_testset_save_CFLAGS" 10434 10435 eval supported=\$$cacheid 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10437$as_echo "$supported" >&6; } 10438 if test "$supported" = "yes" ; then 10439 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10440 found="yes" 10441 fi 10442 fi 10443 10444 10445 10446if test "x$STRICT_COMPILE" = "xyes"; then 10447 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10448 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10449fi 10450 10451 10452 10453 10454 10455 10456cat >>confdefs.h <<_ACEOF 10457#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10458_ACEOF 10459 10460 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10461 if test "x$PVM" = "x"; then 10462 PVM="0" 10463 fi 10464 10465cat >>confdefs.h <<_ACEOF 10466#define PACKAGE_VERSION_MINOR $PVM 10467_ACEOF 10468 10469 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10470 if test "x$PVP" = "x"; then 10471 PVP="0" 10472 fi 10473 10474cat >>confdefs.h <<_ACEOF 10475#define PACKAGE_VERSION_PATCHLEVEL $PVP 10476_ACEOF 10477 10478 10479 10480CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10481mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10482|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10483echo 'git directory not found: installing possibly empty changelog.' >&2)" 10484 10485 10486 10487 10488macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10489INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10490mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10491|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10492echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10493 10494 10495 10496 10497 10498 10499if test x$APP_MAN_SUFFIX = x ; then 10500 APP_MAN_SUFFIX=1 10501fi 10502if test x$APP_MAN_DIR = x ; then 10503 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10504fi 10505 10506if test x$LIB_MAN_SUFFIX = x ; then 10507 LIB_MAN_SUFFIX=3 10508fi 10509if test x$LIB_MAN_DIR = x ; then 10510 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10511fi 10512 10513if test x$FILE_MAN_SUFFIX = x ; then 10514 case $host_os in 10515 solaris*) FILE_MAN_SUFFIX=4 ;; 10516 *) FILE_MAN_SUFFIX=5 ;; 10517 esac 10518fi 10519if test x$FILE_MAN_DIR = x ; then 10520 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10521fi 10522 10523if test x$MISC_MAN_SUFFIX = x ; then 10524 case $host_os in 10525 solaris*) MISC_MAN_SUFFIX=5 ;; 10526 *) MISC_MAN_SUFFIX=7 ;; 10527 esac 10528fi 10529if test x$MISC_MAN_DIR = x ; then 10530 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10531fi 10532 10533if test x$DRIVER_MAN_SUFFIX = x ; then 10534 case $host_os in 10535 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10536 *) DRIVER_MAN_SUFFIX=4 ;; 10537 esac 10538fi 10539if test x$DRIVER_MAN_DIR = x ; then 10540 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10541fi 10542 10543if test x$ADMIN_MAN_SUFFIX = x ; then 10544 case $host_os in 10545 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10546 *) ADMIN_MAN_SUFFIX=8 ;; 10547 esac 10548fi 10549if test x$ADMIN_MAN_DIR = x ; then 10550 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10551fi 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567XORG_MAN_PAGE="X Version 11" 10568 10569MAN_SUBSTS="\ 10570 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10571 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10572 -e 's|__xservername__|Xorg|g' \ 10573 -e 's|__xconfigfile__|xorg.conf|g' \ 10574 -e 's|__projectroot__|\$(prefix)|g' \ 10575 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10576 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10577 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10578 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10579 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10580 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10581 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10582 10583 10584 10585# Check whether --enable-silent-rules was given. 10586if test "${enable_silent_rules+set}" = set; then : 10587 enableval=$enable_silent_rules; 10588fi 10589 10590case $enable_silent_rules in 10591yes) AM_DEFAULT_VERBOSITY=0;; 10592no) AM_DEFAULT_VERBOSITY=1;; 10593*) AM_DEFAULT_VERBOSITY=0;; 10594esac 10595am_make=${MAKE-make} 10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10597$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10598if ${am_cv_make_support_nested_variables+:} false; then : 10599 $as_echo_n "(cached) " >&6 10600else 10601 if $as_echo 'TRUE=$(BAR$(V)) 10602BAR0=false 10603BAR1=true 10604V=1 10605am__doit: 10606 @$(TRUE) 10607.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10608 am_cv_make_support_nested_variables=yes 10609else 10610 am_cv_make_support_nested_variables=no 10611fi 10612fi 10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10614$as_echo "$am_cv_make_support_nested_variables" >&6; } 10615if test $am_cv_make_support_nested_variables = yes; then 10616 AM_V='$(V)' 10617 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10618else 10619 AM_V=$AM_DEFAULT_VERBOSITY 10620 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10621fi 10622AM_BACKSLASH='\' 10623 10624 10625 10626 10627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 10628$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 10629 # Check whether --enable-maintainer-mode was given. 10630if test "${enable_maintainer_mode+set}" = set; then : 10631 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 10632else 10633 USE_MAINTAINER_MODE=no 10634fi 10635 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 10637$as_echo "$USE_MAINTAINER_MODE" >&6; } 10638 if test $USE_MAINTAINER_MODE = yes; then 10639 MAINTAINER_MODE_TRUE= 10640 MAINTAINER_MODE_FALSE='#' 10641else 10642 MAINTAINER_MODE_TRUE='#' 10643 MAINTAINER_MODE_FALSE= 10644fi 10645 10646 MAINT=$MAINTAINER_MODE_TRUE 10647 10648 10649 10650# Initialize libtool 10651# Check whether --enable-static was given. 10652if test "${enable_static+set}" = set; then : 10653 enableval=$enable_static; p=${PACKAGE-default} 10654 case $enableval in 10655 yes) enable_static=yes ;; 10656 no) enable_static=no ;; 10657 *) 10658 enable_static=no 10659 # Look at the argument we got. We use all the common list separators. 10660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10661 for pkg in $enableval; do 10662 IFS="$lt_save_ifs" 10663 if test "X$pkg" = "X$p"; then 10664 enable_static=yes 10665 fi 10666 done 10667 IFS="$lt_save_ifs" 10668 ;; 10669 esac 10670else 10671 enable_static=no 10672fi 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682case `pwd` in 10683 *\ * | *\ *) 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10685$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10686esac 10687 10688 10689 10690macro_version='2.4.2' 10691macro_revision='1.3337' 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705ltmain="$ac_aux_dir/ltmain.sh" 10706 10707# Backslashify metacharacters that are still active within 10708# double-quoted strings. 10709sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10710 10711# Same as above, but do not quote variable references. 10712double_quote_subst='s/\(["`\\]\)/\\\1/g' 10713 10714# Sed substitution to delay expansion of an escaped shell variable in a 10715# double_quote_subst'ed string. 10716delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10717 10718# Sed substitution to delay expansion of an escaped single quote. 10719delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10720 10721# Sed substitution to avoid accidental globbing in evaled expressions 10722no_glob_subst='s/\*/\\\*/g' 10723 10724ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10725ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10726ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10727 10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10729$as_echo_n "checking how to print strings... " >&6; } 10730# Test print first, because it will be a builtin if present. 10731if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10732 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10733 ECHO='print -r --' 10734elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10735 ECHO='printf %s\n' 10736else 10737 # Use this function as a fallback that always works. 10738 func_fallback_echo () 10739 { 10740 eval 'cat <<_LTECHO_EOF 10741$1 10742_LTECHO_EOF' 10743 } 10744 ECHO='func_fallback_echo' 10745fi 10746 10747# func_echo_all arg... 10748# Invoke $ECHO with all args, space-separated. 10749func_echo_all () 10750{ 10751 $ECHO "" 10752} 10753 10754case "$ECHO" in 10755 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10756$as_echo "printf" >&6; } ;; 10757 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10758$as_echo "print -r" >&6; } ;; 10759 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10760$as_echo "cat" >&6; } ;; 10761esac 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10777$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10778if ${ac_cv_path_SED+:} false; then : 10779 $as_echo_n "(cached) " >&6 10780else 10781 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10782 for ac_i in 1 2 3 4 5 6 7; do 10783 ac_script="$ac_script$as_nl$ac_script" 10784 done 10785 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10786 { ac_script=; unset ac_script;} 10787 if test -z "$SED"; then 10788 ac_path_SED_found=false 10789 # Loop through the user's path and test for each of PROGNAME-LIST 10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10791for as_dir in $PATH 10792do 10793 IFS=$as_save_IFS 10794 test -z "$as_dir" && as_dir=. 10795 for ac_prog in sed gsed; do 10796 for ac_exec_ext in '' $ac_executable_extensions; do 10797 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10798 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 10799# Check for GNU ac_path_SED and select it if it is found. 10800 # Check for GNU $ac_path_SED 10801case `"$ac_path_SED" --version 2>&1` in 10802*GNU*) 10803 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10804*) 10805 ac_count=0 10806 $as_echo_n 0123456789 >"conftest.in" 10807 while : 10808 do 10809 cat "conftest.in" "conftest.in" >"conftest.tmp" 10810 mv "conftest.tmp" "conftest.in" 10811 cp "conftest.in" "conftest.nl" 10812 $as_echo '' >> "conftest.nl" 10813 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10815 as_fn_arith $ac_count + 1 && ac_count=$as_val 10816 if test $ac_count -gt ${ac_path_SED_max-0}; then 10817 # Best one so far, save it but keep looking for a better one 10818 ac_cv_path_SED="$ac_path_SED" 10819 ac_path_SED_max=$ac_count 10820 fi 10821 # 10*(2^10) chars as input seems more than enough 10822 test $ac_count -gt 10 && break 10823 done 10824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10825esac 10826 10827 $ac_path_SED_found && break 3 10828 done 10829 done 10830 done 10831IFS=$as_save_IFS 10832 if test -z "$ac_cv_path_SED"; then 10833 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10834 fi 10835else 10836 ac_cv_path_SED=$SED 10837fi 10838 10839fi 10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10841$as_echo "$ac_cv_path_SED" >&6; } 10842 SED="$ac_cv_path_SED" 10843 rm -f conftest.sed 10844 10845test -z "$SED" && SED=sed 10846Xsed="$SED -e 1s/^X//" 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10859$as_echo_n "checking for fgrep... " >&6; } 10860if ${ac_cv_path_FGREP+:} false; then : 10861 $as_echo_n "(cached) " >&6 10862else 10863 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10864 then ac_cv_path_FGREP="$GREP -F" 10865 else 10866 if test -z "$FGREP"; then 10867 ac_path_FGREP_found=false 10868 # Loop through the user's path and test for each of PROGNAME-LIST 10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10871do 10872 IFS=$as_save_IFS 10873 test -z "$as_dir" && as_dir=. 10874 for ac_prog in fgrep; do 10875 for ac_exec_ext in '' $ac_executable_extensions; do 10876 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10877 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 10878# Check for GNU ac_path_FGREP and select it if it is found. 10879 # Check for GNU $ac_path_FGREP 10880case `"$ac_path_FGREP" --version 2>&1` in 10881*GNU*) 10882 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10883*) 10884 ac_count=0 10885 $as_echo_n 0123456789 >"conftest.in" 10886 while : 10887 do 10888 cat "conftest.in" "conftest.in" >"conftest.tmp" 10889 mv "conftest.tmp" "conftest.in" 10890 cp "conftest.in" "conftest.nl" 10891 $as_echo 'FGREP' >> "conftest.nl" 10892 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10894 as_fn_arith $ac_count + 1 && ac_count=$as_val 10895 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10896 # Best one so far, save it but keep looking for a better one 10897 ac_cv_path_FGREP="$ac_path_FGREP" 10898 ac_path_FGREP_max=$ac_count 10899 fi 10900 # 10*(2^10) chars as input seems more than enough 10901 test $ac_count -gt 10 && break 10902 done 10903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10904esac 10905 10906 $ac_path_FGREP_found && break 3 10907 done 10908 done 10909 done 10910IFS=$as_save_IFS 10911 if test -z "$ac_cv_path_FGREP"; then 10912 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10913 fi 10914else 10915 ac_cv_path_FGREP=$FGREP 10916fi 10917 10918 fi 10919fi 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10921$as_echo "$ac_cv_path_FGREP" >&6; } 10922 FGREP="$ac_cv_path_FGREP" 10923 10924 10925test -z "$GREP" && GREP=grep 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945# Check whether --with-gnu-ld was given. 10946if test "${with_gnu_ld+set}" = set; then : 10947 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10948else 10949 with_gnu_ld=no 10950fi 10951 10952ac_prog=ld 10953if test "$GCC" = yes; then 10954 # Check if gcc -print-prog-name=ld gives a path. 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10956$as_echo_n "checking for ld used by $CC... " >&6; } 10957 case $host in 10958 *-*-mingw*) 10959 # gcc leaves a trailing carriage return which upsets mingw 10960 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10961 *) 10962 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10963 esac 10964 case $ac_prog in 10965 # Accept absolute paths. 10966 [\\/]* | ?:[\\/]*) 10967 re_direlt='/[^/][^/]*/\.\./' 10968 # Canonicalize the pathname of ld 10969 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 10970 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 10971 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 10972 done 10973 test -z "$LD" && LD="$ac_prog" 10974 ;; 10975 "") 10976 # If it fails, then pretend we aren't using GCC. 10977 ac_prog=ld 10978 ;; 10979 *) 10980 # If it is relative, then search for the first ld in PATH. 10981 with_gnu_ld=unknown 10982 ;; 10983 esac 10984elif test "$with_gnu_ld" = yes; then 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10986$as_echo_n "checking for GNU ld... " >&6; } 10987else 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10989$as_echo_n "checking for non-GNU ld... " >&6; } 10990fi 10991if ${lt_cv_path_LD+:} false; then : 10992 $as_echo_n "(cached) " >&6 10993else 10994 if test -z "$LD"; then 10995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10996 for ac_dir in $PATH; do 10997 IFS="$lt_save_ifs" 10998 test -z "$ac_dir" && ac_dir=. 10999 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11000 lt_cv_path_LD="$ac_dir/$ac_prog" 11001 # Check to see if the program is GNU ld. I'd rather use --version, 11002 # but apparently some variants of GNU ld only accept -v. 11003 # Break only if it was the GNU/non-GNU ld that we prefer. 11004 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11005 *GNU* | *'with BFD'*) 11006 test "$with_gnu_ld" != no && break 11007 ;; 11008 *) 11009 test "$with_gnu_ld" != yes && break 11010 ;; 11011 esac 11012 fi 11013 done 11014 IFS="$lt_save_ifs" 11015else 11016 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11017fi 11018fi 11019 11020LD="$lt_cv_path_LD" 11021if test -n "$LD"; then 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11023$as_echo "$LD" >&6; } 11024else 11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11026$as_echo "no" >&6; } 11027fi 11028test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11030$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11031if ${lt_cv_prog_gnu_ld+:} false; then : 11032 $as_echo_n "(cached) " >&6 11033else 11034 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11035case `$LD -v 2>&1 </dev/null` in 11036*GNU* | *'with BFD'*) 11037 lt_cv_prog_gnu_ld=yes 11038 ;; 11039*) 11040 lt_cv_prog_gnu_ld=no 11041 ;; 11042esac 11043fi 11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11045$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11046with_gnu_ld=$lt_cv_prog_gnu_ld 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11057$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11058if ${lt_cv_path_NM+:} false; then : 11059 $as_echo_n "(cached) " >&6 11060else 11061 if test -n "$NM"; then 11062 # Let the user override the test. 11063 lt_cv_path_NM="$NM" 11064else 11065 lt_nm_to_check="${ac_tool_prefix}nm" 11066 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11067 lt_nm_to_check="$lt_nm_to_check nm" 11068 fi 11069 for lt_tmp_nm in $lt_nm_to_check; do 11070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11071 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11072 IFS="$lt_save_ifs" 11073 test -z "$ac_dir" && ac_dir=. 11074 tmp_nm="$ac_dir/$lt_tmp_nm" 11075 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11076 # Check to see if the nm accepts a BSD-compat flag. 11077 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11078 # nm: unknown option "B" ignored 11079 # Tru64's nm complains that /dev/null is an invalid object file 11080 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11081 */dev/null* | *'Invalid file or object type'*) 11082 lt_cv_path_NM="$tmp_nm -B" 11083 break 11084 ;; 11085 *) 11086 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11087 */dev/null*) 11088 lt_cv_path_NM="$tmp_nm -p" 11089 break 11090 ;; 11091 *) 11092 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11093 continue # so that we can try to find one that supports BSD flags 11094 ;; 11095 esac 11096 ;; 11097 esac 11098 fi 11099 done 11100 IFS="$lt_save_ifs" 11101 done 11102 : ${lt_cv_path_NM=no} 11103fi 11104fi 11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11106$as_echo "$lt_cv_path_NM" >&6; } 11107if test "$lt_cv_path_NM" != "no"; then 11108 NM="$lt_cv_path_NM" 11109else 11110 # Didn't find any BSD compatible name lister, look for dumpbin. 11111 if test -n "$DUMPBIN"; then : 11112 # Let the user override the test. 11113 else 11114 if test -n "$ac_tool_prefix"; then 11115 for ac_prog in dumpbin "link -dump" 11116 do 11117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11118set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11120$as_echo_n "checking for $ac_word... " >&6; } 11121if ${ac_cv_prog_DUMPBIN+:} false; then : 11122 $as_echo_n "(cached) " >&6 11123else 11124 if test -n "$DUMPBIN"; then 11125 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11126else 11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11128for as_dir in $PATH 11129do 11130 IFS=$as_save_IFS 11131 test -z "$as_dir" && as_dir=. 11132 for ac_exec_ext in '' $ac_executable_extensions; do 11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11134 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11136 break 2 11137 fi 11138done 11139 done 11140IFS=$as_save_IFS 11141 11142fi 11143fi 11144DUMPBIN=$ac_cv_prog_DUMPBIN 11145if test -n "$DUMPBIN"; then 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11147$as_echo "$DUMPBIN" >&6; } 11148else 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11150$as_echo "no" >&6; } 11151fi 11152 11153 11154 test -n "$DUMPBIN" && break 11155 done 11156fi 11157if test -z "$DUMPBIN"; then 11158 ac_ct_DUMPBIN=$DUMPBIN 11159 for ac_prog in dumpbin "link -dump" 11160do 11161 # Extract the first word of "$ac_prog", so it can be a program name with args. 11162set dummy $ac_prog; ac_word=$2 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11164$as_echo_n "checking for $ac_word... " >&6; } 11165if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11166 $as_echo_n "(cached) " >&6 11167else 11168 if test -n "$ac_ct_DUMPBIN"; then 11169 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11170else 11171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11172for as_dir in $PATH 11173do 11174 IFS=$as_save_IFS 11175 test -z "$as_dir" && as_dir=. 11176 for ac_exec_ext in '' $ac_executable_extensions; do 11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11178 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11180 break 2 11181 fi 11182done 11183 done 11184IFS=$as_save_IFS 11185 11186fi 11187fi 11188ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11189if test -n "$ac_ct_DUMPBIN"; then 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11191$as_echo "$ac_ct_DUMPBIN" >&6; } 11192else 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11194$as_echo "no" >&6; } 11195fi 11196 11197 11198 test -n "$ac_ct_DUMPBIN" && break 11199done 11200 11201 if test "x$ac_ct_DUMPBIN" = x; then 11202 DUMPBIN=":" 11203 else 11204 case $cross_compiling:$ac_tool_warned in 11205yes:) 11206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11208ac_tool_warned=yes ;; 11209esac 11210 DUMPBIN=$ac_ct_DUMPBIN 11211 fi 11212fi 11213 11214 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11215 *COFF*) 11216 DUMPBIN="$DUMPBIN -symbols" 11217 ;; 11218 *) 11219 DUMPBIN=: 11220 ;; 11221 esac 11222 fi 11223 11224 if test "$DUMPBIN" != ":"; then 11225 NM="$DUMPBIN" 11226 fi 11227fi 11228test -z "$NM" && NM=nm 11229 11230 11231 11232 11233 11234 11235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11236$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11237if ${lt_cv_nm_interface+:} false; then : 11238 $as_echo_n "(cached) " >&6 11239else 11240 lt_cv_nm_interface="BSD nm" 11241 echo "int some_variable = 0;" > conftest.$ac_ext 11242 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11243 (eval "$ac_compile" 2>conftest.err) 11244 cat conftest.err >&5 11245 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11246 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11247 cat conftest.err >&5 11248 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11249 cat conftest.out >&5 11250 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11251 lt_cv_nm_interface="MS dumpbin" 11252 fi 11253 rm -f conftest* 11254fi 11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11256$as_echo "$lt_cv_nm_interface" >&6; } 11257 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11259$as_echo_n "checking whether ln -s works... " >&6; } 11260LN_S=$as_ln_s 11261if test "$LN_S" = "ln -s"; then 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11263$as_echo "yes" >&6; } 11264else 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11266$as_echo "no, using $LN_S" >&6; } 11267fi 11268 11269# find the maximum length of command line arguments 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11271$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11272if ${lt_cv_sys_max_cmd_len+:} false; then : 11273 $as_echo_n "(cached) " >&6 11274else 11275 i=0 11276 teststring="ABCD" 11277 11278 case $build_os in 11279 msdosdjgpp*) 11280 # On DJGPP, this test can blow up pretty badly due to problems in libc 11281 # (any single argument exceeding 2000 bytes causes a buffer overrun 11282 # during glob expansion). Even if it were fixed, the result of this 11283 # check would be larger than it should be. 11284 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11285 ;; 11286 11287 gnu*) 11288 # Under GNU Hurd, this test is not required because there is 11289 # no limit to the length of command line arguments. 11290 # Libtool will interpret -1 as no limit whatsoever 11291 lt_cv_sys_max_cmd_len=-1; 11292 ;; 11293 11294 cygwin* | mingw* | cegcc*) 11295 # On Win9x/ME, this test blows up -- it succeeds, but takes 11296 # about 5 minutes as the teststring grows exponentially. 11297 # Worse, since 9x/ME are not pre-emptively multitasking, 11298 # you end up with a "frozen" computer, even though with patience 11299 # the test eventually succeeds (with a max line length of 256k). 11300 # Instead, let's just punt: use the minimum linelength reported by 11301 # all of the supported platforms: 8192 (on NT/2K/XP). 11302 lt_cv_sys_max_cmd_len=8192; 11303 ;; 11304 11305 mint*) 11306 # On MiNT this can take a long time and run out of memory. 11307 lt_cv_sys_max_cmd_len=8192; 11308 ;; 11309 11310 amigaos*) 11311 # On AmigaOS with pdksh, this test takes hours, literally. 11312 # So we just punt and use a minimum line length of 8192. 11313 lt_cv_sys_max_cmd_len=8192; 11314 ;; 11315 11316 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11317 # This has been around since 386BSD, at least. Likely further. 11318 if test -x /sbin/sysctl; then 11319 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11320 elif test -x /usr/sbin/sysctl; then 11321 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11322 else 11323 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11324 fi 11325 # And add a safety zone 11326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11328 ;; 11329 11330 interix*) 11331 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11332 lt_cv_sys_max_cmd_len=196608 11333 ;; 11334 11335 os2*) 11336 # The test takes a long time on OS/2. 11337 lt_cv_sys_max_cmd_len=8192 11338 ;; 11339 11340 osf*) 11341 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11342 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11343 # nice to cause kernel panics so lets avoid the loop below. 11344 # First set a reasonable default. 11345 lt_cv_sys_max_cmd_len=16384 11346 # 11347 if test -x /sbin/sysconfig; then 11348 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11349 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11350 esac 11351 fi 11352 ;; 11353 sco3.2v5*) 11354 lt_cv_sys_max_cmd_len=102400 11355 ;; 11356 sysv5* | sco5v6* | sysv4.2uw2*) 11357 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11358 if test -n "$kargmax"; then 11359 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11360 else 11361 lt_cv_sys_max_cmd_len=32768 11362 fi 11363 ;; 11364 *) 11365 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11366 if test -n "$lt_cv_sys_max_cmd_len"; then 11367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11369 else 11370 # Make teststring a little bigger before we do anything with it. 11371 # a 1K string should be a reasonable start. 11372 for i in 1 2 3 4 5 6 7 8 ; do 11373 teststring=$teststring$teststring 11374 done 11375 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11376 # If test is not a shell built-in, we'll probably end up computing a 11377 # maximum length that is only half of the actual maximum length, but 11378 # we can't tell. 11379 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11380 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11381 test $i != 17 # 1/2 MB should be enough 11382 do 11383 i=`expr $i + 1` 11384 teststring=$teststring$teststring 11385 done 11386 # Only check the string length outside the loop. 11387 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11388 teststring= 11389 # Add a significant safety factor because C++ compilers can tack on 11390 # massive amounts of additional arguments before passing them to the 11391 # linker. It appears as though 1/2 is a usable value. 11392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11393 fi 11394 ;; 11395 esac 11396 11397fi 11398 11399if test -n $lt_cv_sys_max_cmd_len ; then 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11401$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11402else 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11404$as_echo "none" >&6; } 11405fi 11406max_cmd_len=$lt_cv_sys_max_cmd_len 11407 11408 11409 11410 11411 11412 11413: ${CP="cp -f"} 11414: ${MV="mv -f"} 11415: ${RM="rm -f"} 11416 11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11418$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11419# Try some XSI features 11420xsi_shell=no 11421( _lt_dummy="a/b/c" 11422 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11423 = c,a/b,b/c, \ 11424 && eval 'test $(( 1 + 1 )) -eq 2 \ 11425 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11426 && xsi_shell=yes 11427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11428$as_echo "$xsi_shell" >&6; } 11429 11430 11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11432$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11433lt_shell_append=no 11434( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11435 >/dev/null 2>&1 \ 11436 && lt_shell_append=yes 11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11438$as_echo "$lt_shell_append" >&6; } 11439 11440 11441if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11442 lt_unset=unset 11443else 11444 lt_unset=false 11445fi 11446 11447 11448 11449 11450 11451# test EBCDIC or ASCII 11452case `echo X|tr X '\101'` in 11453 A) # ASCII based system 11454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11455 lt_SP2NL='tr \040 \012' 11456 lt_NL2SP='tr \015\012 \040\040' 11457 ;; 11458 *) # EBCDIC based system 11459 lt_SP2NL='tr \100 \n' 11460 lt_NL2SP='tr \r\n \100\100' 11461 ;; 11462esac 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11473$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11474if ${lt_cv_to_host_file_cmd+:} false; then : 11475 $as_echo_n "(cached) " >&6 11476else 11477 case $host in 11478 *-*-mingw* ) 11479 case $build in 11480 *-*-mingw* ) # actually msys 11481 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11482 ;; 11483 *-*-cygwin* ) 11484 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11485 ;; 11486 * ) # otherwise, assume *nix 11487 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11488 ;; 11489 esac 11490 ;; 11491 *-*-cygwin* ) 11492 case $build in 11493 *-*-mingw* ) # actually msys 11494 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11495 ;; 11496 *-*-cygwin* ) 11497 lt_cv_to_host_file_cmd=func_convert_file_noop 11498 ;; 11499 * ) # otherwise, assume *nix 11500 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11501 ;; 11502 esac 11503 ;; 11504 * ) # unhandled hosts (and "normal" native builds) 11505 lt_cv_to_host_file_cmd=func_convert_file_noop 11506 ;; 11507esac 11508 11509fi 11510 11511to_host_file_cmd=$lt_cv_to_host_file_cmd 11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11513$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11514 11515 11516 11517 11518 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11520$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11521if ${lt_cv_to_tool_file_cmd+:} false; then : 11522 $as_echo_n "(cached) " >&6 11523else 11524 #assume ordinary cross tools, or native build. 11525lt_cv_to_tool_file_cmd=func_convert_file_noop 11526case $host in 11527 *-*-mingw* ) 11528 case $build in 11529 *-*-mingw* ) # actually msys 11530 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11531 ;; 11532 esac 11533 ;; 11534esac 11535 11536fi 11537 11538to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11540$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11541 11542 11543 11544 11545 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11547$as_echo_n "checking for $LD option to reload object files... " >&6; } 11548if ${lt_cv_ld_reload_flag+:} false; then : 11549 $as_echo_n "(cached) " >&6 11550else 11551 lt_cv_ld_reload_flag='-r' 11552fi 11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11554$as_echo "$lt_cv_ld_reload_flag" >&6; } 11555reload_flag=$lt_cv_ld_reload_flag 11556case $reload_flag in 11557"" | " "*) ;; 11558*) reload_flag=" $reload_flag" ;; 11559esac 11560reload_cmds='$LD$reload_flag -o $output$reload_objs' 11561case $host_os in 11562 cygwin* | mingw* | pw32* | cegcc*) 11563 if test "$GCC" != yes; then 11564 reload_cmds=false 11565 fi 11566 ;; 11567 darwin*) 11568 if test "$GCC" = yes; then 11569 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11570 else 11571 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11572 fi 11573 ;; 11574esac 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584if test -n "$ac_tool_prefix"; then 11585 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11586set dummy ${ac_tool_prefix}objdump; ac_word=$2 11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11588$as_echo_n "checking for $ac_word... " >&6; } 11589if ${ac_cv_prog_OBJDUMP+:} false; then : 11590 $as_echo_n "(cached) " >&6 11591else 11592 if test -n "$OBJDUMP"; then 11593 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11594else 11595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11596for as_dir in $PATH 11597do 11598 IFS=$as_save_IFS 11599 test -z "$as_dir" && as_dir=. 11600 for ac_exec_ext in '' $ac_executable_extensions; do 11601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11602 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11604 break 2 11605 fi 11606done 11607 done 11608IFS=$as_save_IFS 11609 11610fi 11611fi 11612OBJDUMP=$ac_cv_prog_OBJDUMP 11613if test -n "$OBJDUMP"; then 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11615$as_echo "$OBJDUMP" >&6; } 11616else 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11618$as_echo "no" >&6; } 11619fi 11620 11621 11622fi 11623if test -z "$ac_cv_prog_OBJDUMP"; then 11624 ac_ct_OBJDUMP=$OBJDUMP 11625 # Extract the first word of "objdump", so it can be a program name with args. 11626set dummy objdump; ac_word=$2 11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11628$as_echo_n "checking for $ac_word... " >&6; } 11629if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11630 $as_echo_n "(cached) " >&6 11631else 11632 if test -n "$ac_ct_OBJDUMP"; then 11633 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11634else 11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11636for as_dir in $PATH 11637do 11638 IFS=$as_save_IFS 11639 test -z "$as_dir" && as_dir=. 11640 for ac_exec_ext in '' $ac_executable_extensions; do 11641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11642 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11644 break 2 11645 fi 11646done 11647 done 11648IFS=$as_save_IFS 11649 11650fi 11651fi 11652ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11653if test -n "$ac_ct_OBJDUMP"; then 11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11655$as_echo "$ac_ct_OBJDUMP" >&6; } 11656else 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11658$as_echo "no" >&6; } 11659fi 11660 11661 if test "x$ac_ct_OBJDUMP" = x; then 11662 OBJDUMP="false" 11663 else 11664 case $cross_compiling:$ac_tool_warned in 11665yes:) 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11668ac_tool_warned=yes ;; 11669esac 11670 OBJDUMP=$ac_ct_OBJDUMP 11671 fi 11672else 11673 OBJDUMP="$ac_cv_prog_OBJDUMP" 11674fi 11675 11676test -z "$OBJDUMP" && OBJDUMP=objdump 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11687$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11688if ${lt_cv_deplibs_check_method+:} false; then : 11689 $as_echo_n "(cached) " >&6 11690else 11691 lt_cv_file_magic_cmd='$MAGIC_CMD' 11692lt_cv_file_magic_test_file= 11693lt_cv_deplibs_check_method='unknown' 11694# Need to set the preceding variable on all platforms that support 11695# interlibrary dependencies. 11696# 'none' -- dependencies not supported. 11697# `unknown' -- same as none, but documents that we really don't know. 11698# 'pass_all' -- all dependencies passed with no checks. 11699# 'test_compile' -- check by making test program. 11700# 'file_magic [[regex]]' -- check by looking for files in library path 11701# which responds to the $file_magic_cmd with a given extended regex. 11702# If you have `file' or equivalent on your system and you're not sure 11703# whether `pass_all' will *always* work, you probably want this one. 11704 11705case $host_os in 11706aix[4-9]*) 11707 lt_cv_deplibs_check_method=pass_all 11708 ;; 11709 11710beos*) 11711 lt_cv_deplibs_check_method=pass_all 11712 ;; 11713 11714bsdi[45]*) 11715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11716 lt_cv_file_magic_cmd='/usr/bin/file -L' 11717 lt_cv_file_magic_test_file=/shlib/libc.so 11718 ;; 11719 11720cygwin*) 11721 # func_win32_libid is a shell function defined in ltmain.sh 11722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11723 lt_cv_file_magic_cmd='func_win32_libid' 11724 ;; 11725 11726mingw* | pw32*) 11727 # Base MSYS/MinGW do not provide the 'file' command needed by 11728 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11729 # unless we find 'file', for example because we are cross-compiling. 11730 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11731 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11733 lt_cv_file_magic_cmd='func_win32_libid' 11734 else 11735 # Keep this pattern in sync with the one in func_win32_libid. 11736 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11737 lt_cv_file_magic_cmd='$OBJDUMP -f' 11738 fi 11739 ;; 11740 11741cegcc*) 11742 # use the weaker test based on 'objdump'. See mingw*. 11743 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11744 lt_cv_file_magic_cmd='$OBJDUMP -f' 11745 ;; 11746 11747darwin* | rhapsody*) 11748 lt_cv_deplibs_check_method=pass_all 11749 ;; 11750 11751freebsd* | dragonfly*) 11752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11753 case $host_cpu in 11754 i*86 ) 11755 # Not sure whether the presence of OpenBSD here was a mistake. 11756 # Let's accept both of them until this is cleared up. 11757 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11758 lt_cv_file_magic_cmd=/usr/bin/file 11759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11760 ;; 11761 esac 11762 else 11763 lt_cv_deplibs_check_method=pass_all 11764 fi 11765 ;; 11766 11767gnu*) 11768 lt_cv_deplibs_check_method=pass_all 11769 ;; 11770 11771haiku*) 11772 lt_cv_deplibs_check_method=pass_all 11773 ;; 11774 11775hpux10.20* | hpux11*) 11776 lt_cv_file_magic_cmd=/usr/bin/file 11777 case $host_cpu in 11778 ia64*) 11779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11780 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11781 ;; 11782 hppa*64*) 11783 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]' 11784 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11785 ;; 11786 *) 11787 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11788 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11789 ;; 11790 esac 11791 ;; 11792 11793interix[3-9]*) 11794 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11796 ;; 11797 11798irix5* | irix6* | nonstopux*) 11799 case $LD in 11800 *-32|*"-32 ") libmagic=32-bit;; 11801 *-n32|*"-n32 ") libmagic=N32;; 11802 *-64|*"-64 ") libmagic=64-bit;; 11803 *) libmagic=never-match;; 11804 esac 11805 lt_cv_deplibs_check_method=pass_all 11806 ;; 11807 11808# This must be glibc/ELF. 11809linux* | k*bsd*-gnu | kopensolaris*-gnu) 11810 lt_cv_deplibs_check_method=pass_all 11811 ;; 11812 11813netbsd*) 11814 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11816 else 11817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11818 fi 11819 ;; 11820 11821newos6*) 11822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11823 lt_cv_file_magic_cmd=/usr/bin/file 11824 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11825 ;; 11826 11827*nto* | *qnx*) 11828 lt_cv_deplibs_check_method=pass_all 11829 ;; 11830 11831openbsd*) 11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11834 else 11835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11836 fi 11837 ;; 11838 11839osf3* | osf4* | osf5*) 11840 lt_cv_deplibs_check_method=pass_all 11841 ;; 11842 11843rdos*) 11844 lt_cv_deplibs_check_method=pass_all 11845 ;; 11846 11847solaris*) 11848 lt_cv_deplibs_check_method=pass_all 11849 ;; 11850 11851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11852 lt_cv_deplibs_check_method=pass_all 11853 ;; 11854 11855sysv4 | sysv4.3*) 11856 case $host_vendor in 11857 motorola) 11858 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]' 11859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11860 ;; 11861 ncr) 11862 lt_cv_deplibs_check_method=pass_all 11863 ;; 11864 sequent) 11865 lt_cv_file_magic_cmd='/bin/file' 11866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11867 ;; 11868 sni) 11869 lt_cv_file_magic_cmd='/bin/file' 11870 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11871 lt_cv_file_magic_test_file=/lib/libc.so 11872 ;; 11873 siemens) 11874 lt_cv_deplibs_check_method=pass_all 11875 ;; 11876 pc) 11877 lt_cv_deplibs_check_method=pass_all 11878 ;; 11879 esac 11880 ;; 11881 11882tpf*) 11883 lt_cv_deplibs_check_method=pass_all 11884 ;; 11885esac 11886 11887fi 11888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11889$as_echo "$lt_cv_deplibs_check_method" >&6; } 11890 11891file_magic_glob= 11892want_nocaseglob=no 11893if test "$build" = "$host"; then 11894 case $host_os in 11895 mingw* | pw32*) 11896 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11897 want_nocaseglob=yes 11898 else 11899 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11900 fi 11901 ;; 11902 esac 11903fi 11904 11905file_magic_cmd=$lt_cv_file_magic_cmd 11906deplibs_check_method=$lt_cv_deplibs_check_method 11907test -z "$deplibs_check_method" && deplibs_check_method=unknown 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930if test -n "$ac_tool_prefix"; then 11931 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11932set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11934$as_echo_n "checking for $ac_word... " >&6; } 11935if ${ac_cv_prog_DLLTOOL+:} false; then : 11936 $as_echo_n "(cached) " >&6 11937else 11938 if test -n "$DLLTOOL"; then 11939 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11940else 11941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11942for as_dir in $PATH 11943do 11944 IFS=$as_save_IFS 11945 test -z "$as_dir" && as_dir=. 11946 for ac_exec_ext in '' $ac_executable_extensions; do 11947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11948 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11950 break 2 11951 fi 11952done 11953 done 11954IFS=$as_save_IFS 11955 11956fi 11957fi 11958DLLTOOL=$ac_cv_prog_DLLTOOL 11959if test -n "$DLLTOOL"; then 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11961$as_echo "$DLLTOOL" >&6; } 11962else 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11964$as_echo "no" >&6; } 11965fi 11966 11967 11968fi 11969if test -z "$ac_cv_prog_DLLTOOL"; then 11970 ac_ct_DLLTOOL=$DLLTOOL 11971 # Extract the first word of "dlltool", so it can be a program name with args. 11972set dummy dlltool; ac_word=$2 11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11974$as_echo_n "checking for $ac_word... " >&6; } 11975if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11976 $as_echo_n "(cached) " >&6 11977else 11978 if test -n "$ac_ct_DLLTOOL"; then 11979 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11980else 11981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11982for as_dir in $PATH 11983do 11984 IFS=$as_save_IFS 11985 test -z "$as_dir" && as_dir=. 11986 for ac_exec_ext in '' $ac_executable_extensions; do 11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11988 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11990 break 2 11991 fi 11992done 11993 done 11994IFS=$as_save_IFS 11995 11996fi 11997fi 11998ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11999if test -n "$ac_ct_DLLTOOL"; then 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12001$as_echo "$ac_ct_DLLTOOL" >&6; } 12002else 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12004$as_echo "no" >&6; } 12005fi 12006 12007 if test "x$ac_ct_DLLTOOL" = x; then 12008 DLLTOOL="false" 12009 else 12010 case $cross_compiling:$ac_tool_warned in 12011yes:) 12012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12014ac_tool_warned=yes ;; 12015esac 12016 DLLTOOL=$ac_ct_DLLTOOL 12017 fi 12018else 12019 DLLTOOL="$ac_cv_prog_DLLTOOL" 12020fi 12021 12022test -z "$DLLTOOL" && DLLTOOL=dlltool 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12034$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12035if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12036 $as_echo_n "(cached) " >&6 12037else 12038 lt_cv_sharedlib_from_linklib_cmd='unknown' 12039 12040case $host_os in 12041cygwin* | mingw* | pw32* | cegcc*) 12042 # two different shell functions defined in ltmain.sh 12043 # decide which to use based on capabilities of $DLLTOOL 12044 case `$DLLTOOL --help 2>&1` in 12045 *--identify-strict*) 12046 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12047 ;; 12048 *) 12049 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12050 ;; 12051 esac 12052 ;; 12053*) 12054 # fallback: assume linklib IS sharedlib 12055 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12056 ;; 12057esac 12058 12059fi 12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12061$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12062sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12063test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12064 12065 12066 12067 12068 12069 12070 12071if test -n "$ac_tool_prefix"; then 12072 for ac_prog in ar 12073 do 12074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12075set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12077$as_echo_n "checking for $ac_word... " >&6; } 12078if ${ac_cv_prog_AR+:} false; then : 12079 $as_echo_n "(cached) " >&6 12080else 12081 if test -n "$AR"; then 12082 ac_cv_prog_AR="$AR" # Let the user override the test. 12083else 12084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12085for as_dir in $PATH 12086do 12087 IFS=$as_save_IFS 12088 test -z "$as_dir" && as_dir=. 12089 for ac_exec_ext in '' $ac_executable_extensions; do 12090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12091 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12093 break 2 12094 fi 12095done 12096 done 12097IFS=$as_save_IFS 12098 12099fi 12100fi 12101AR=$ac_cv_prog_AR 12102if test -n "$AR"; then 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12104$as_echo "$AR" >&6; } 12105else 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12107$as_echo "no" >&6; } 12108fi 12109 12110 12111 test -n "$AR" && break 12112 done 12113fi 12114if test -z "$AR"; then 12115 ac_ct_AR=$AR 12116 for ac_prog in ar 12117do 12118 # Extract the first word of "$ac_prog", so it can be a program name with args. 12119set dummy $ac_prog; ac_word=$2 12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12121$as_echo_n "checking for $ac_word... " >&6; } 12122if ${ac_cv_prog_ac_ct_AR+:} false; then : 12123 $as_echo_n "(cached) " >&6 12124else 12125 if test -n "$ac_ct_AR"; then 12126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12127else 12128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12129for as_dir in $PATH 12130do 12131 IFS=$as_save_IFS 12132 test -z "$as_dir" && as_dir=. 12133 for ac_exec_ext in '' $ac_executable_extensions; do 12134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12135 ac_cv_prog_ac_ct_AR="$ac_prog" 12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12137 break 2 12138 fi 12139done 12140 done 12141IFS=$as_save_IFS 12142 12143fi 12144fi 12145ac_ct_AR=$ac_cv_prog_ac_ct_AR 12146if test -n "$ac_ct_AR"; then 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12148$as_echo "$ac_ct_AR" >&6; } 12149else 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12151$as_echo "no" >&6; } 12152fi 12153 12154 12155 test -n "$ac_ct_AR" && break 12156done 12157 12158 if test "x$ac_ct_AR" = x; then 12159 AR="false" 12160 else 12161 case $cross_compiling:$ac_tool_warned in 12162yes:) 12163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12165ac_tool_warned=yes ;; 12166esac 12167 AR=$ac_ct_AR 12168 fi 12169fi 12170 12171: ${AR=ar} 12172: ${AR_FLAGS=cru} 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12185$as_echo_n "checking for archiver @FILE support... " >&6; } 12186if ${lt_cv_ar_at_file+:} false; then : 12187 $as_echo_n "(cached) " >&6 12188else 12189 lt_cv_ar_at_file=no 12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12191/* end confdefs.h. */ 12192 12193int 12194main () 12195{ 12196 12197 ; 12198 return 0; 12199} 12200_ACEOF 12201if ac_fn_c_try_compile "$LINENO"; then : 12202 echo conftest.$ac_objext > conftest.lst 12203 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12205 (eval $lt_ar_try) 2>&5 12206 ac_status=$? 12207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12208 test $ac_status = 0; } 12209 if test "$ac_status" -eq 0; then 12210 # Ensure the archiver fails upon bogus file names. 12211 rm -f conftest.$ac_objext libconftest.a 12212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12213 (eval $lt_ar_try) 2>&5 12214 ac_status=$? 12215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12216 test $ac_status = 0; } 12217 if test "$ac_status" -ne 0; then 12218 lt_cv_ar_at_file=@ 12219 fi 12220 fi 12221 rm -f conftest.* libconftest.a 12222 12223fi 12224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12225 12226fi 12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12228$as_echo "$lt_cv_ar_at_file" >&6; } 12229 12230if test "x$lt_cv_ar_at_file" = xno; then 12231 archiver_list_spec= 12232else 12233 archiver_list_spec=$lt_cv_ar_at_file 12234fi 12235 12236 12237 12238 12239 12240 12241 12242if test -n "$ac_tool_prefix"; then 12243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12244set dummy ${ac_tool_prefix}strip; ac_word=$2 12245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12246$as_echo_n "checking for $ac_word... " >&6; } 12247if ${ac_cv_prog_STRIP+:} false; then : 12248 $as_echo_n "(cached) " >&6 12249else 12250 if test -n "$STRIP"; then 12251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12252else 12253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12254for as_dir in $PATH 12255do 12256 IFS=$as_save_IFS 12257 test -z "$as_dir" && as_dir=. 12258 for ac_exec_ext in '' $ac_executable_extensions; do 12259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12260 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12262 break 2 12263 fi 12264done 12265 done 12266IFS=$as_save_IFS 12267 12268fi 12269fi 12270STRIP=$ac_cv_prog_STRIP 12271if test -n "$STRIP"; then 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12273$as_echo "$STRIP" >&6; } 12274else 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12276$as_echo "no" >&6; } 12277fi 12278 12279 12280fi 12281if test -z "$ac_cv_prog_STRIP"; then 12282 ac_ct_STRIP=$STRIP 12283 # Extract the first word of "strip", so it can be a program name with args. 12284set dummy strip; ac_word=$2 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12286$as_echo_n "checking for $ac_word... " >&6; } 12287if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12288 $as_echo_n "(cached) " >&6 12289else 12290 if test -n "$ac_ct_STRIP"; then 12291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12292else 12293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12294for as_dir in $PATH 12295do 12296 IFS=$as_save_IFS 12297 test -z "$as_dir" && as_dir=. 12298 for ac_exec_ext in '' $ac_executable_extensions; do 12299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12300 ac_cv_prog_ac_ct_STRIP="strip" 12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12302 break 2 12303 fi 12304done 12305 done 12306IFS=$as_save_IFS 12307 12308fi 12309fi 12310ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12311if test -n "$ac_ct_STRIP"; then 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12313$as_echo "$ac_ct_STRIP" >&6; } 12314else 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12316$as_echo "no" >&6; } 12317fi 12318 12319 if test "x$ac_ct_STRIP" = x; then 12320 STRIP=":" 12321 else 12322 case $cross_compiling:$ac_tool_warned in 12323yes:) 12324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12326ac_tool_warned=yes ;; 12327esac 12328 STRIP=$ac_ct_STRIP 12329 fi 12330else 12331 STRIP="$ac_cv_prog_STRIP" 12332fi 12333 12334test -z "$STRIP" && STRIP=: 12335 12336 12337 12338 12339 12340 12341if test -n "$ac_tool_prefix"; then 12342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12343set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12345$as_echo_n "checking for $ac_word... " >&6; } 12346if ${ac_cv_prog_RANLIB+:} false; then : 12347 $as_echo_n "(cached) " >&6 12348else 12349 if test -n "$RANLIB"; then 12350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12351else 12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12353for as_dir in $PATH 12354do 12355 IFS=$as_save_IFS 12356 test -z "$as_dir" && as_dir=. 12357 for ac_exec_ext in '' $ac_executable_extensions; do 12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12361 break 2 12362 fi 12363done 12364 done 12365IFS=$as_save_IFS 12366 12367fi 12368fi 12369RANLIB=$ac_cv_prog_RANLIB 12370if test -n "$RANLIB"; then 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12372$as_echo "$RANLIB" >&6; } 12373else 12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12375$as_echo "no" >&6; } 12376fi 12377 12378 12379fi 12380if test -z "$ac_cv_prog_RANLIB"; then 12381 ac_ct_RANLIB=$RANLIB 12382 # Extract the first word of "ranlib", so it can be a program name with args. 12383set dummy ranlib; ac_word=$2 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12385$as_echo_n "checking for $ac_word... " >&6; } 12386if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 if test -n "$ac_ct_RANLIB"; then 12390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12391else 12392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12393for as_dir in $PATH 12394do 12395 IFS=$as_save_IFS 12396 test -z "$as_dir" && as_dir=. 12397 for ac_exec_ext in '' $ac_executable_extensions; do 12398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12399 ac_cv_prog_ac_ct_RANLIB="ranlib" 12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12401 break 2 12402 fi 12403done 12404 done 12405IFS=$as_save_IFS 12406 12407fi 12408fi 12409ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12410if test -n "$ac_ct_RANLIB"; then 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12412$as_echo "$ac_ct_RANLIB" >&6; } 12413else 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12415$as_echo "no" >&6; } 12416fi 12417 12418 if test "x$ac_ct_RANLIB" = x; then 12419 RANLIB=":" 12420 else 12421 case $cross_compiling:$ac_tool_warned in 12422yes:) 12423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12425ac_tool_warned=yes ;; 12426esac 12427 RANLIB=$ac_ct_RANLIB 12428 fi 12429else 12430 RANLIB="$ac_cv_prog_RANLIB" 12431fi 12432 12433test -z "$RANLIB" && RANLIB=: 12434 12435 12436 12437 12438 12439 12440# Determine commands to create old-style static archives. 12441old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12442old_postinstall_cmds='chmod 644 $oldlib' 12443old_postuninstall_cmds= 12444 12445if test -n "$RANLIB"; then 12446 case $host_os in 12447 openbsd*) 12448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12449 ;; 12450 *) 12451 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12452 ;; 12453 esac 12454 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12455fi 12456 12457case $host_os in 12458 darwin*) 12459 lock_old_archive_extraction=yes ;; 12460 *) 12461 lock_old_archive_extraction=no ;; 12462esac 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502# If no C compiler was specified, use CC. 12503LTCC=${LTCC-"$CC"} 12504 12505# If no C compiler flags were specified, use CFLAGS. 12506LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12507 12508# Allow CC to be a program name with arguments. 12509compiler=$CC 12510 12511 12512# Check for command to grab the raw symbol name followed by C symbol from nm. 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12514$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12515if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12516 $as_echo_n "(cached) " >&6 12517else 12518 12519# These are sane defaults that work on at least a few old systems. 12520# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12521 12522# Character class describing NM global symbol codes. 12523symcode='[BCDEGRST]' 12524 12525# Regexp to match symbols that can be accessed directly from C. 12526sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12527 12528# Define system-specific variables. 12529case $host_os in 12530aix*) 12531 symcode='[BCDT]' 12532 ;; 12533cygwin* | mingw* | pw32* | cegcc*) 12534 symcode='[ABCDGISTW]' 12535 ;; 12536hpux*) 12537 if test "$host_cpu" = ia64; then 12538 symcode='[ABCDEGRST]' 12539 fi 12540 ;; 12541irix* | nonstopux*) 12542 symcode='[BCDEGRST]' 12543 ;; 12544osf*) 12545 symcode='[BCDEGQRST]' 12546 ;; 12547solaris*) 12548 symcode='[BDRT]' 12549 ;; 12550sco3.2v5*) 12551 symcode='[DT]' 12552 ;; 12553sysv4.2uw2*) 12554 symcode='[DT]' 12555 ;; 12556sysv5* | sco5v6* | unixware* | OpenUNIX*) 12557 symcode='[ABDT]' 12558 ;; 12559sysv4) 12560 symcode='[DFNSTU]' 12561 ;; 12562esac 12563 12564# If we're using GNU nm, then use its standard symbol codes. 12565case `$NM -V 2>&1` in 12566*GNU* | *'with BFD'*) 12567 symcode='[ABCDGIRSTW]' ;; 12568esac 12569 12570# Transform an extracted symbol line into a proper C declaration. 12571# Some systems (esp. on ia64) link data and code symbols differently, 12572# so use this general approach. 12573lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12574 12575# Transform an extracted symbol line into symbol name and symbol address 12576lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12577lt_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'" 12578 12579# Handle CRLF in mingw tool chain 12580opt_cr= 12581case $build_os in 12582mingw*) 12583 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12584 ;; 12585esac 12586 12587# Try without a prefix underscore, then with it. 12588for ac_symprfx in "" "_"; do 12589 12590 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12591 symxfrm="\\1 $ac_symprfx\\2 \\2" 12592 12593 # Write the raw and C identifiers. 12594 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12595 # Fake it for dumpbin and say T for any non-static function 12596 # and D for any global variable. 12597 # Also find C++ and __fastcall symbols from MSVC++, 12598 # which start with @ or ?. 12599 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12600" {last_section=section; section=\$ 3};"\ 12601" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12602" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12603" \$ 0!~/External *\|/{next};"\ 12604" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12605" {if(hide[section]) next};"\ 12606" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12607" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12608" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12609" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12610" ' prfx=^$ac_symprfx" 12611 else 12612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12613 fi 12614 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12615 12616 # Check to see that the pipe works correctly. 12617 pipe_works=no 12618 12619 rm -f conftest* 12620 cat > conftest.$ac_ext <<_LT_EOF 12621#ifdef __cplusplus 12622extern "C" { 12623#endif 12624char nm_test_var; 12625void nm_test_func(void); 12626void nm_test_func(void){} 12627#ifdef __cplusplus 12628} 12629#endif 12630int main(){nm_test_var='a';nm_test_func();return(0);} 12631_LT_EOF 12632 12633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12634 (eval $ac_compile) 2>&5 12635 ac_status=$? 12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12637 test $ac_status = 0; }; then 12638 # Now try to grab the symbols. 12639 nlist=conftest.nm 12640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12641 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12642 ac_status=$? 12643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12644 test $ac_status = 0; } && test -s "$nlist"; then 12645 # Try sorting and uniquifying the output. 12646 if sort "$nlist" | uniq > "$nlist"T; then 12647 mv -f "$nlist"T "$nlist" 12648 else 12649 rm -f "$nlist"T 12650 fi 12651 12652 # Make sure that we snagged all the symbols we need. 12653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12655 cat <<_LT_EOF > conftest.$ac_ext 12656/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12657#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12658/* DATA imports from DLLs on WIN32 con't be const, because runtime 12659 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12660# define LT_DLSYM_CONST 12661#elif defined(__osf__) 12662/* This system does not cope well with relocations in const data. */ 12663# define LT_DLSYM_CONST 12664#else 12665# define LT_DLSYM_CONST const 12666#endif 12667 12668#ifdef __cplusplus 12669extern "C" { 12670#endif 12671 12672_LT_EOF 12673 # Now generate the symbol file. 12674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12675 12676 cat <<_LT_EOF >> conftest.$ac_ext 12677 12678/* The mapping between symbol names and symbols. */ 12679LT_DLSYM_CONST struct { 12680 const char *name; 12681 void *address; 12682} 12683lt__PROGRAM__LTX_preloaded_symbols[] = 12684{ 12685 { "@PROGRAM@", (void *) 0 }, 12686_LT_EOF 12687 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12688 cat <<\_LT_EOF >> conftest.$ac_ext 12689 {0, (void *) 0} 12690}; 12691 12692/* This works around a problem in FreeBSD linker */ 12693#ifdef FREEBSD_WORKAROUND 12694static const void *lt_preloaded_setup() { 12695 return lt__PROGRAM__LTX_preloaded_symbols; 12696} 12697#endif 12698 12699#ifdef __cplusplus 12700} 12701#endif 12702_LT_EOF 12703 # Now try linking the two files. 12704 mv conftest.$ac_objext conftstm.$ac_objext 12705 lt_globsym_save_LIBS=$LIBS 12706 lt_globsym_save_CFLAGS=$CFLAGS 12707 LIBS="conftstm.$ac_objext" 12708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12710 (eval $ac_link) 2>&5 12711 ac_status=$? 12712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12713 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12714 pipe_works=yes 12715 fi 12716 LIBS=$lt_globsym_save_LIBS 12717 CFLAGS=$lt_globsym_save_CFLAGS 12718 else 12719 echo "cannot find nm_test_func in $nlist" >&5 12720 fi 12721 else 12722 echo "cannot find nm_test_var in $nlist" >&5 12723 fi 12724 else 12725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12726 fi 12727 else 12728 echo "$progname: failed program was:" >&5 12729 cat conftest.$ac_ext >&5 12730 fi 12731 rm -rf conftest* conftst* 12732 12733 # Do not use the global_symbol_pipe unless it works. 12734 if test "$pipe_works" = yes; then 12735 break 12736 else 12737 lt_cv_sys_global_symbol_pipe= 12738 fi 12739done 12740 12741fi 12742 12743if test -z "$lt_cv_sys_global_symbol_pipe"; then 12744 lt_cv_sys_global_symbol_to_cdecl= 12745fi 12746if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12748$as_echo "failed" >&6; } 12749else 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12751$as_echo "ok" >&6; } 12752fi 12753 12754# Response file support. 12755if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12756 nm_file_list_spec='@' 12757elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12758 nm_file_list_spec='@' 12759fi 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12788$as_echo_n "checking for sysroot... " >&6; } 12789 12790# Check whether --with-sysroot was given. 12791if test "${with_sysroot+set}" = set; then : 12792 withval=$with_sysroot; 12793else 12794 with_sysroot=no 12795fi 12796 12797 12798lt_sysroot= 12799case ${with_sysroot} in #( 12800 yes) 12801 if test "$GCC" = yes; then 12802 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12803 fi 12804 ;; #( 12805 /*) 12806 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12807 ;; #( 12808 no|'') 12809 ;; #( 12810 *) 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12812$as_echo "${with_sysroot}" >&6; } 12813 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12814 ;; 12815esac 12816 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12818$as_echo "${lt_sysroot:-no}" >&6; } 12819 12820 12821 12822 12823 12824# Check whether --enable-libtool-lock was given. 12825if test "${enable_libtool_lock+set}" = set; then : 12826 enableval=$enable_libtool_lock; 12827fi 12828 12829test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12830 12831# Some flags need to be propagated to the compiler or linker for good 12832# libtool support. 12833case $host in 12834ia64-*-hpux*) 12835 # Find out which ABI we are using. 12836 echo 'int i;' > conftest.$ac_ext 12837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12838 (eval $ac_compile) 2>&5 12839 ac_status=$? 12840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12841 test $ac_status = 0; }; then 12842 case `/usr/bin/file conftest.$ac_objext` in 12843 *ELF-32*) 12844 HPUX_IA64_MODE="32" 12845 ;; 12846 *ELF-64*) 12847 HPUX_IA64_MODE="64" 12848 ;; 12849 esac 12850 fi 12851 rm -rf conftest* 12852 ;; 12853*-*-irix6*) 12854 # Find out which ABI we are using. 12855 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12857 (eval $ac_compile) 2>&5 12858 ac_status=$? 12859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12860 test $ac_status = 0; }; then 12861 if test "$lt_cv_prog_gnu_ld" = yes; then 12862 case `/usr/bin/file conftest.$ac_objext` in 12863 *32-bit*) 12864 LD="${LD-ld} -melf32bsmip" 12865 ;; 12866 *N32*) 12867 LD="${LD-ld} -melf32bmipn32" 12868 ;; 12869 *64-bit*) 12870 LD="${LD-ld} -melf64bmip" 12871 ;; 12872 esac 12873 else 12874 case `/usr/bin/file conftest.$ac_objext` in 12875 *32-bit*) 12876 LD="${LD-ld} -32" 12877 ;; 12878 *N32*) 12879 LD="${LD-ld} -n32" 12880 ;; 12881 *64-bit*) 12882 LD="${LD-ld} -64" 12883 ;; 12884 esac 12885 fi 12886 fi 12887 rm -rf conftest* 12888 ;; 12889 12890x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12891s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12892 # Find out which ABI we are using. 12893 echo 'int i;' > conftest.$ac_ext 12894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12895 (eval $ac_compile) 2>&5 12896 ac_status=$? 12897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12898 test $ac_status = 0; }; then 12899 case `/usr/bin/file conftest.o` in 12900 *32-bit*) 12901 case $host in 12902 x86_64-*kfreebsd*-gnu) 12903 LD="${LD-ld} -m elf_i386_fbsd" 12904 ;; 12905 x86_64-*linux*) 12906 LD="${LD-ld} -m elf_i386" 12907 ;; 12908 ppc64-*linux*|powerpc64-*linux*) 12909 LD="${LD-ld} -m elf32ppclinux" 12910 ;; 12911 s390x-*linux*) 12912 LD="${LD-ld} -m elf_s390" 12913 ;; 12914 sparc64-*linux*) 12915 LD="${LD-ld} -m elf32_sparc" 12916 ;; 12917 esac 12918 ;; 12919 *64-bit*) 12920 case $host in 12921 x86_64-*kfreebsd*-gnu) 12922 LD="${LD-ld} -m elf_x86_64_fbsd" 12923 ;; 12924 x86_64-*linux*) 12925 LD="${LD-ld} -m elf_x86_64" 12926 ;; 12927 ppc*-*linux*|powerpc*-*linux*) 12928 LD="${LD-ld} -m elf64ppc" 12929 ;; 12930 s390*-*linux*|s390*-*tpf*) 12931 LD="${LD-ld} -m elf64_s390" 12932 ;; 12933 sparc*-*linux*) 12934 LD="${LD-ld} -m elf64_sparc" 12935 ;; 12936 esac 12937 ;; 12938 esac 12939 fi 12940 rm -rf conftest* 12941 ;; 12942 12943*-*-sco3.2v5*) 12944 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12945 SAVE_CFLAGS="$CFLAGS" 12946 CFLAGS="$CFLAGS -belf" 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12948$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12949if ${lt_cv_cc_needs_belf+:} false; then : 12950 $as_echo_n "(cached) " >&6 12951else 12952 ac_ext=c 12953ac_cpp='$CPP $CPPFLAGS' 12954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12956ac_compiler_gnu=$ac_cv_c_compiler_gnu 12957 12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959/* end confdefs.h. */ 12960 12961int 12962main () 12963{ 12964 12965 ; 12966 return 0; 12967} 12968_ACEOF 12969if ac_fn_c_try_link "$LINENO"; then : 12970 lt_cv_cc_needs_belf=yes 12971else 12972 lt_cv_cc_needs_belf=no 12973fi 12974rm -f core conftest.err conftest.$ac_objext \ 12975 conftest$ac_exeext conftest.$ac_ext 12976 ac_ext=c 12977ac_cpp='$CPP $CPPFLAGS' 12978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12980ac_compiler_gnu=$ac_cv_c_compiler_gnu 12981 12982fi 12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 12984$as_echo "$lt_cv_cc_needs_belf" >&6; } 12985 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 12986 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12987 CFLAGS="$SAVE_CFLAGS" 12988 fi 12989 ;; 12990*-*solaris*) 12991 # Find out which ABI we are using. 12992 echo 'int i;' > conftest.$ac_ext 12993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12994 (eval $ac_compile) 2>&5 12995 ac_status=$? 12996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12997 test $ac_status = 0; }; then 12998 case `/usr/bin/file conftest.o` in 12999 *64-bit*) 13000 case $lt_cv_prog_gnu_ld in 13001 yes*) 13002 case $host in 13003 i?86-*-solaris*) 13004 LD="${LD-ld} -m elf_x86_64" 13005 ;; 13006 sparc*-*-solaris*) 13007 LD="${LD-ld} -m elf64_sparc" 13008 ;; 13009 esac 13010 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13011 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13012 LD="${LD-ld}_sol2" 13013 fi 13014 ;; 13015 *) 13016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13017 LD="${LD-ld} -64" 13018 fi 13019 ;; 13020 esac 13021 ;; 13022 esac 13023 fi 13024 rm -rf conftest* 13025 ;; 13026esac 13027 13028need_locks="$enable_libtool_lock" 13029 13030if test -n "$ac_tool_prefix"; then 13031 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13032set dummy ${ac_tool_prefix}mt; ac_word=$2 13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13034$as_echo_n "checking for $ac_word... " >&6; } 13035if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13036 $as_echo_n "(cached) " >&6 13037else 13038 if test -n "$MANIFEST_TOOL"; then 13039 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13040else 13041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13042for as_dir in $PATH 13043do 13044 IFS=$as_save_IFS 13045 test -z "$as_dir" && as_dir=. 13046 for ac_exec_ext in '' $ac_executable_extensions; do 13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13048 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13050 break 2 13051 fi 13052done 13053 done 13054IFS=$as_save_IFS 13055 13056fi 13057fi 13058MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13059if test -n "$MANIFEST_TOOL"; then 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13061$as_echo "$MANIFEST_TOOL" >&6; } 13062else 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13064$as_echo "no" >&6; } 13065fi 13066 13067 13068fi 13069if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13070 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13071 # Extract the first word of "mt", so it can be a program name with args. 13072set dummy mt; ac_word=$2 13073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13074$as_echo_n "checking for $ac_word... " >&6; } 13075if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13076 $as_echo_n "(cached) " >&6 13077else 13078 if test -n "$ac_ct_MANIFEST_TOOL"; then 13079 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13080else 13081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13082for as_dir in $PATH 13083do 13084 IFS=$as_save_IFS 13085 test -z "$as_dir" && as_dir=. 13086 for ac_exec_ext in '' $ac_executable_extensions; do 13087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13088 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13090 break 2 13091 fi 13092done 13093 done 13094IFS=$as_save_IFS 13095 13096fi 13097fi 13098ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13099if test -n "$ac_ct_MANIFEST_TOOL"; then 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13101$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13102else 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13104$as_echo "no" >&6; } 13105fi 13106 13107 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13108 MANIFEST_TOOL=":" 13109 else 13110 case $cross_compiling:$ac_tool_warned in 13111yes:) 13112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13114ac_tool_warned=yes ;; 13115esac 13116 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13117 fi 13118else 13119 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13120fi 13121 13122test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13124$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13125if ${lt_cv_path_mainfest_tool+:} false; then : 13126 $as_echo_n "(cached) " >&6 13127else 13128 lt_cv_path_mainfest_tool=no 13129 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13130 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13131 cat conftest.err >&5 13132 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13133 lt_cv_path_mainfest_tool=yes 13134 fi 13135 rm -f conftest* 13136fi 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13138$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13139if test "x$lt_cv_path_mainfest_tool" != xyes; then 13140 MANIFEST_TOOL=: 13141fi 13142 13143 13144 13145 13146 13147 13148 case $host_os in 13149 rhapsody* | darwin*) 13150 if test -n "$ac_tool_prefix"; then 13151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13152set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13154$as_echo_n "checking for $ac_word... " >&6; } 13155if ${ac_cv_prog_DSYMUTIL+:} false; then : 13156 $as_echo_n "(cached) " >&6 13157else 13158 if test -n "$DSYMUTIL"; then 13159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13160else 13161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13162for as_dir in $PATH 13163do 13164 IFS=$as_save_IFS 13165 test -z "$as_dir" && as_dir=. 13166 for ac_exec_ext in '' $ac_executable_extensions; do 13167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13170 break 2 13171 fi 13172done 13173 done 13174IFS=$as_save_IFS 13175 13176fi 13177fi 13178DSYMUTIL=$ac_cv_prog_DSYMUTIL 13179if test -n "$DSYMUTIL"; then 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13181$as_echo "$DSYMUTIL" >&6; } 13182else 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13184$as_echo "no" >&6; } 13185fi 13186 13187 13188fi 13189if test -z "$ac_cv_prog_DSYMUTIL"; then 13190 ac_ct_DSYMUTIL=$DSYMUTIL 13191 # Extract the first word of "dsymutil", so it can be a program name with args. 13192set dummy dsymutil; ac_word=$2 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13194$as_echo_n "checking for $ac_word... " >&6; } 13195if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13196 $as_echo_n "(cached) " >&6 13197else 13198 if test -n "$ac_ct_DSYMUTIL"; then 13199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13200else 13201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13202for as_dir in $PATH 13203do 13204 IFS=$as_save_IFS 13205 test -z "$as_dir" && as_dir=. 13206 for ac_exec_ext in '' $ac_executable_extensions; do 13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13210 break 2 13211 fi 13212done 13213 done 13214IFS=$as_save_IFS 13215 13216fi 13217fi 13218ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13219if test -n "$ac_ct_DSYMUTIL"; then 13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13221$as_echo "$ac_ct_DSYMUTIL" >&6; } 13222else 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13224$as_echo "no" >&6; } 13225fi 13226 13227 if test "x$ac_ct_DSYMUTIL" = x; then 13228 DSYMUTIL=":" 13229 else 13230 case $cross_compiling:$ac_tool_warned in 13231yes:) 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13234ac_tool_warned=yes ;; 13235esac 13236 DSYMUTIL=$ac_ct_DSYMUTIL 13237 fi 13238else 13239 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13240fi 13241 13242 if test -n "$ac_tool_prefix"; then 13243 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13244set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13246$as_echo_n "checking for $ac_word... " >&6; } 13247if ${ac_cv_prog_NMEDIT+:} false; then : 13248 $as_echo_n "(cached) " >&6 13249else 13250 if test -n "$NMEDIT"; then 13251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13252else 13253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13254for as_dir in $PATH 13255do 13256 IFS=$as_save_IFS 13257 test -z "$as_dir" && as_dir=. 13258 for ac_exec_ext in '' $ac_executable_extensions; do 13259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13260 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13262 break 2 13263 fi 13264done 13265 done 13266IFS=$as_save_IFS 13267 13268fi 13269fi 13270NMEDIT=$ac_cv_prog_NMEDIT 13271if test -n "$NMEDIT"; then 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13273$as_echo "$NMEDIT" >&6; } 13274else 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13276$as_echo "no" >&6; } 13277fi 13278 13279 13280fi 13281if test -z "$ac_cv_prog_NMEDIT"; then 13282 ac_ct_NMEDIT=$NMEDIT 13283 # Extract the first word of "nmedit", so it can be a program name with args. 13284set dummy nmedit; ac_word=$2 13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13286$as_echo_n "checking for $ac_word... " >&6; } 13287if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13288 $as_echo_n "(cached) " >&6 13289else 13290 if test -n "$ac_ct_NMEDIT"; then 13291 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13292else 13293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13294for as_dir in $PATH 13295do 13296 IFS=$as_save_IFS 13297 test -z "$as_dir" && as_dir=. 13298 for ac_exec_ext in '' $ac_executable_extensions; do 13299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13300 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13302 break 2 13303 fi 13304done 13305 done 13306IFS=$as_save_IFS 13307 13308fi 13309fi 13310ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13311if test -n "$ac_ct_NMEDIT"; then 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13313$as_echo "$ac_ct_NMEDIT" >&6; } 13314else 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13316$as_echo "no" >&6; } 13317fi 13318 13319 if test "x$ac_ct_NMEDIT" = x; then 13320 NMEDIT=":" 13321 else 13322 case $cross_compiling:$ac_tool_warned in 13323yes:) 13324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13326ac_tool_warned=yes ;; 13327esac 13328 NMEDIT=$ac_ct_NMEDIT 13329 fi 13330else 13331 NMEDIT="$ac_cv_prog_NMEDIT" 13332fi 13333 13334 if test -n "$ac_tool_prefix"; then 13335 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13336set dummy ${ac_tool_prefix}lipo; ac_word=$2 13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13338$as_echo_n "checking for $ac_word... " >&6; } 13339if ${ac_cv_prog_LIPO+:} false; then : 13340 $as_echo_n "(cached) " >&6 13341else 13342 if test -n "$LIPO"; then 13343 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13344else 13345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13346for as_dir in $PATH 13347do 13348 IFS=$as_save_IFS 13349 test -z "$as_dir" && as_dir=. 13350 for ac_exec_ext in '' $ac_executable_extensions; do 13351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13352 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13354 break 2 13355 fi 13356done 13357 done 13358IFS=$as_save_IFS 13359 13360fi 13361fi 13362LIPO=$ac_cv_prog_LIPO 13363if test -n "$LIPO"; then 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13365$as_echo "$LIPO" >&6; } 13366else 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13368$as_echo "no" >&6; } 13369fi 13370 13371 13372fi 13373if test -z "$ac_cv_prog_LIPO"; then 13374 ac_ct_LIPO=$LIPO 13375 # Extract the first word of "lipo", so it can be a program name with args. 13376set dummy lipo; ac_word=$2 13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13378$as_echo_n "checking for $ac_word... " >&6; } 13379if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13380 $as_echo_n "(cached) " >&6 13381else 13382 if test -n "$ac_ct_LIPO"; then 13383 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13384else 13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13386for as_dir in $PATH 13387do 13388 IFS=$as_save_IFS 13389 test -z "$as_dir" && as_dir=. 13390 for ac_exec_ext in '' $ac_executable_extensions; do 13391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13392 ac_cv_prog_ac_ct_LIPO="lipo" 13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13394 break 2 13395 fi 13396done 13397 done 13398IFS=$as_save_IFS 13399 13400fi 13401fi 13402ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13403if test -n "$ac_ct_LIPO"; then 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13405$as_echo "$ac_ct_LIPO" >&6; } 13406else 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13408$as_echo "no" >&6; } 13409fi 13410 13411 if test "x$ac_ct_LIPO" = x; then 13412 LIPO=":" 13413 else 13414 case $cross_compiling:$ac_tool_warned in 13415yes:) 13416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13418ac_tool_warned=yes ;; 13419esac 13420 LIPO=$ac_ct_LIPO 13421 fi 13422else 13423 LIPO="$ac_cv_prog_LIPO" 13424fi 13425 13426 if test -n "$ac_tool_prefix"; then 13427 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13428set dummy ${ac_tool_prefix}otool; ac_word=$2 13429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13430$as_echo_n "checking for $ac_word... " >&6; } 13431if ${ac_cv_prog_OTOOL+:} false; then : 13432 $as_echo_n "(cached) " >&6 13433else 13434 if test -n "$OTOOL"; then 13435 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13436else 13437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13438for as_dir in $PATH 13439do 13440 IFS=$as_save_IFS 13441 test -z "$as_dir" && as_dir=. 13442 for ac_exec_ext in '' $ac_executable_extensions; do 13443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13444 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13446 break 2 13447 fi 13448done 13449 done 13450IFS=$as_save_IFS 13451 13452fi 13453fi 13454OTOOL=$ac_cv_prog_OTOOL 13455if test -n "$OTOOL"; then 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13457$as_echo "$OTOOL" >&6; } 13458else 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13460$as_echo "no" >&6; } 13461fi 13462 13463 13464fi 13465if test -z "$ac_cv_prog_OTOOL"; then 13466 ac_ct_OTOOL=$OTOOL 13467 # Extract the first word of "otool", so it can be a program name with args. 13468set dummy otool; ac_word=$2 13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13470$as_echo_n "checking for $ac_word... " >&6; } 13471if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13472 $as_echo_n "(cached) " >&6 13473else 13474 if test -n "$ac_ct_OTOOL"; then 13475 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13476else 13477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13478for as_dir in $PATH 13479do 13480 IFS=$as_save_IFS 13481 test -z "$as_dir" && as_dir=. 13482 for ac_exec_ext in '' $ac_executable_extensions; do 13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13484 ac_cv_prog_ac_ct_OTOOL="otool" 13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13486 break 2 13487 fi 13488done 13489 done 13490IFS=$as_save_IFS 13491 13492fi 13493fi 13494ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13495if test -n "$ac_ct_OTOOL"; then 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13497$as_echo "$ac_ct_OTOOL" >&6; } 13498else 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13500$as_echo "no" >&6; } 13501fi 13502 13503 if test "x$ac_ct_OTOOL" = x; then 13504 OTOOL=":" 13505 else 13506 case $cross_compiling:$ac_tool_warned in 13507yes:) 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13510ac_tool_warned=yes ;; 13511esac 13512 OTOOL=$ac_ct_OTOOL 13513 fi 13514else 13515 OTOOL="$ac_cv_prog_OTOOL" 13516fi 13517 13518 if test -n "$ac_tool_prefix"; then 13519 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13520set dummy ${ac_tool_prefix}otool64; ac_word=$2 13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13522$as_echo_n "checking for $ac_word... " >&6; } 13523if ${ac_cv_prog_OTOOL64+:} false; then : 13524 $as_echo_n "(cached) " >&6 13525else 13526 if test -n "$OTOOL64"; then 13527 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13528else 13529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13530for as_dir in $PATH 13531do 13532 IFS=$as_save_IFS 13533 test -z "$as_dir" && as_dir=. 13534 for ac_exec_ext in '' $ac_executable_extensions; do 13535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13536 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13538 break 2 13539 fi 13540done 13541 done 13542IFS=$as_save_IFS 13543 13544fi 13545fi 13546OTOOL64=$ac_cv_prog_OTOOL64 13547if test -n "$OTOOL64"; then 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13549$as_echo "$OTOOL64" >&6; } 13550else 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13552$as_echo "no" >&6; } 13553fi 13554 13555 13556fi 13557if test -z "$ac_cv_prog_OTOOL64"; then 13558 ac_ct_OTOOL64=$OTOOL64 13559 # Extract the first word of "otool64", so it can be a program name with args. 13560set dummy otool64; ac_word=$2 13561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13562$as_echo_n "checking for $ac_word... " >&6; } 13563if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13564 $as_echo_n "(cached) " >&6 13565else 13566 if test -n "$ac_ct_OTOOL64"; then 13567 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13568else 13569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13570for as_dir in $PATH 13571do 13572 IFS=$as_save_IFS 13573 test -z "$as_dir" && as_dir=. 13574 for ac_exec_ext in '' $ac_executable_extensions; do 13575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13576 ac_cv_prog_ac_ct_OTOOL64="otool64" 13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13578 break 2 13579 fi 13580done 13581 done 13582IFS=$as_save_IFS 13583 13584fi 13585fi 13586ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13587if test -n "$ac_ct_OTOOL64"; then 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13589$as_echo "$ac_ct_OTOOL64" >&6; } 13590else 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13592$as_echo "no" >&6; } 13593fi 13594 13595 if test "x$ac_ct_OTOOL64" = x; then 13596 OTOOL64=":" 13597 else 13598 case $cross_compiling:$ac_tool_warned in 13599yes:) 13600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13602ac_tool_warned=yes ;; 13603esac 13604 OTOOL64=$ac_ct_OTOOL64 13605 fi 13606else 13607 OTOOL64="$ac_cv_prog_OTOOL64" 13608fi 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13637$as_echo_n "checking for -single_module linker flag... " >&6; } 13638if ${lt_cv_apple_cc_single_mod+:} false; then : 13639 $as_echo_n "(cached) " >&6 13640else 13641 lt_cv_apple_cc_single_mod=no 13642 if test -z "${LT_MULTI_MODULE}"; then 13643 # By default we will add the -single_module flag. You can override 13644 # by either setting the environment variable LT_MULTI_MODULE 13645 # non-empty at configure time, or by adding -multi_module to the 13646 # link flags. 13647 rm -rf libconftest.dylib* 13648 echo "int foo(void){return 1;}" > conftest.c 13649 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13650-dynamiclib -Wl,-single_module conftest.c" >&5 13651 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13652 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13653 _lt_result=$? 13654 # If there is a non-empty error log, and "single_module" 13655 # appears in it, assume the flag caused a linker warning 13656 if test -s conftest.err && $GREP single_module conftest.err; then 13657 cat conftest.err >&5 13658 # Otherwise, if the output was created with a 0 exit code from 13659 # the compiler, it worked. 13660 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13661 lt_cv_apple_cc_single_mod=yes 13662 else 13663 cat conftest.err >&5 13664 fi 13665 rm -rf libconftest.dylib* 13666 rm -f conftest.* 13667 fi 13668fi 13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13670$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13671 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13673$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13674if ${lt_cv_ld_exported_symbols_list+:} false; then : 13675 $as_echo_n "(cached) " >&6 13676else 13677 lt_cv_ld_exported_symbols_list=no 13678 save_LDFLAGS=$LDFLAGS 13679 echo "_main" > conftest.sym 13680 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13682/* end confdefs.h. */ 13683 13684int 13685main () 13686{ 13687 13688 ; 13689 return 0; 13690} 13691_ACEOF 13692if ac_fn_c_try_link "$LINENO"; then : 13693 lt_cv_ld_exported_symbols_list=yes 13694else 13695 lt_cv_ld_exported_symbols_list=no 13696fi 13697rm -f core conftest.err conftest.$ac_objext \ 13698 conftest$ac_exeext conftest.$ac_ext 13699 LDFLAGS="$save_LDFLAGS" 13700 13701fi 13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13703$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13704 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13706$as_echo_n "checking for -force_load linker flag... " >&6; } 13707if ${lt_cv_ld_force_load+:} false; then : 13708 $as_echo_n "(cached) " >&6 13709else 13710 lt_cv_ld_force_load=no 13711 cat > conftest.c << _LT_EOF 13712int forced_loaded() { return 2;} 13713_LT_EOF 13714 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13715 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13716 echo "$AR cru libconftest.a conftest.o" >&5 13717 $AR cru libconftest.a conftest.o 2>&5 13718 echo "$RANLIB libconftest.a" >&5 13719 $RANLIB libconftest.a 2>&5 13720 cat > conftest.c << _LT_EOF 13721int main() { return 0;} 13722_LT_EOF 13723 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13724 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13725 _lt_result=$? 13726 if test -s conftest.err && $GREP force_load conftest.err; then 13727 cat conftest.err >&5 13728 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13729 lt_cv_ld_force_load=yes 13730 else 13731 cat conftest.err >&5 13732 fi 13733 rm -f conftest.err libconftest.a conftest conftest.c 13734 rm -rf conftest.dSYM 13735 13736fi 13737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13738$as_echo "$lt_cv_ld_force_load" >&6; } 13739 case $host_os in 13740 rhapsody* | darwin1.[012]) 13741 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13742 darwin1.*) 13743 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13744 darwin*) # darwin 5.x on 13745 # if running on 10.5 or later, the deployment target defaults 13746 # to the OS version, if on x86, and 10.4, the deployment 13747 # target defaults to 10.4. Don't you love it? 13748 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13749 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13750 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13751 10.[012]*) 13752 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13753 10.*) 13754 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13755 esac 13756 ;; 13757 esac 13758 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13759 _lt_dar_single_mod='$single_module' 13760 fi 13761 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13762 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13763 else 13764 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13765 fi 13766 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13767 _lt_dsymutil='~$DSYMUTIL $lib || :' 13768 else 13769 _lt_dsymutil= 13770 fi 13771 ;; 13772 esac 13773 13774for ac_header in dlfcn.h 13775do : 13776 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13777" 13778if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13779 cat >>confdefs.h <<_ACEOF 13780#define HAVE_DLFCN_H 1 13781_ACEOF 13782 13783fi 13784 13785done 13786 13787 13788 13789 13790 13791# Set options 13792 13793 13794 13795 enable_dlopen=no 13796 13797 13798 enable_win32_dll=no 13799 13800 13801 # Check whether --enable-shared was given. 13802if test "${enable_shared+set}" = set; then : 13803 enableval=$enable_shared; p=${PACKAGE-default} 13804 case $enableval in 13805 yes) enable_shared=yes ;; 13806 no) enable_shared=no ;; 13807 *) 13808 enable_shared=no 13809 # Look at the argument we got. We use all the common list separators. 13810 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13811 for pkg in $enableval; do 13812 IFS="$lt_save_ifs" 13813 if test "X$pkg" = "X$p"; then 13814 enable_shared=yes 13815 fi 13816 done 13817 IFS="$lt_save_ifs" 13818 ;; 13819 esac 13820else 13821 enable_shared=yes 13822fi 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834# Check whether --with-pic was given. 13835if test "${with_pic+set}" = set; then : 13836 withval=$with_pic; lt_p=${PACKAGE-default} 13837 case $withval in 13838 yes|no) pic_mode=$withval ;; 13839 *) 13840 pic_mode=default 13841 # Look at the argument we got. We use all the common list separators. 13842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13843 for lt_pkg in $withval; do 13844 IFS="$lt_save_ifs" 13845 if test "X$lt_pkg" = "X$lt_p"; then 13846 pic_mode=yes 13847 fi 13848 done 13849 IFS="$lt_save_ifs" 13850 ;; 13851 esac 13852else 13853 pic_mode=default 13854fi 13855 13856 13857test -z "$pic_mode" && pic_mode=default 13858 13859 13860 13861 13862 13863 13864 13865 # Check whether --enable-fast-install was given. 13866if test "${enable_fast_install+set}" = set; then : 13867 enableval=$enable_fast_install; p=${PACKAGE-default} 13868 case $enableval in 13869 yes) enable_fast_install=yes ;; 13870 no) enable_fast_install=no ;; 13871 *) 13872 enable_fast_install=no 13873 # Look at the argument we got. We use all the common list separators. 13874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13875 for pkg in $enableval; do 13876 IFS="$lt_save_ifs" 13877 if test "X$pkg" = "X$p"; then 13878 enable_fast_install=yes 13879 fi 13880 done 13881 IFS="$lt_save_ifs" 13882 ;; 13883 esac 13884else 13885 enable_fast_install=yes 13886fi 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898# This can be used to rebuild libtool when needed 13899LIBTOOL_DEPS="$ltmain" 13900 13901# Always use our own libtool. 13902LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933test -z "$LN_S" && LN_S="ln -s" 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948if test -n "${ZSH_VERSION+set}" ; then 13949 setopt NO_GLOB_SUBST 13950fi 13951 13952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13953$as_echo_n "checking for objdir... " >&6; } 13954if ${lt_cv_objdir+:} false; then : 13955 $as_echo_n "(cached) " >&6 13956else 13957 rm -f .libs 2>/dev/null 13958mkdir .libs 2>/dev/null 13959if test -d .libs; then 13960 lt_cv_objdir=.libs 13961else 13962 # MS-DOS does not allow filenames that begin with a dot. 13963 lt_cv_objdir=_libs 13964fi 13965rmdir .libs 2>/dev/null 13966fi 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13968$as_echo "$lt_cv_objdir" >&6; } 13969objdir=$lt_cv_objdir 13970 13971 13972 13973 13974 13975cat >>confdefs.h <<_ACEOF 13976#define LT_OBJDIR "$lt_cv_objdir/" 13977_ACEOF 13978 13979 13980 13981 13982case $host_os in 13983aix3*) 13984 # AIX sometimes has problems with the GCC collect2 program. For some 13985 # reason, if we set the COLLECT_NAMES environment variable, the problems 13986 # vanish in a puff of smoke. 13987 if test "X${COLLECT_NAMES+set}" != Xset; then 13988 COLLECT_NAMES= 13989 export COLLECT_NAMES 13990 fi 13991 ;; 13992esac 13993 13994# Global variables: 13995ofile=libtool 13996can_build_shared=yes 13997 13998# All known linkers require a `.a' archive for static linking (except MSVC, 13999# which needs '.lib'). 14000libext=a 14001 14002with_gnu_ld="$lt_cv_prog_gnu_ld" 14003 14004old_CC="$CC" 14005old_CFLAGS="$CFLAGS" 14006 14007# Set sane defaults for various variables 14008test -z "$CC" && CC=cc 14009test -z "$LTCC" && LTCC=$CC 14010test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14011test -z "$LD" && LD=ld 14012test -z "$ac_objext" && ac_objext=o 14013 14014for cc_temp in $compiler""; do 14015 case $cc_temp in 14016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14018 \-*) ;; 14019 *) break;; 14020 esac 14021done 14022cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14023 14024 14025# Only perform the check for file, if the check method requires it 14026test -z "$MAGIC_CMD" && MAGIC_CMD=file 14027case $deplibs_check_method in 14028file_magic*) 14029 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14031$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14032if ${lt_cv_path_MAGIC_CMD+:} false; then : 14033 $as_echo_n "(cached) " >&6 14034else 14035 case $MAGIC_CMD in 14036[\\/*] | ?:[\\/]*) 14037 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14038 ;; 14039*) 14040 lt_save_MAGIC_CMD="$MAGIC_CMD" 14041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14043 for ac_dir in $ac_dummy; do 14044 IFS="$lt_save_ifs" 14045 test -z "$ac_dir" && ac_dir=. 14046 if test -f $ac_dir/${ac_tool_prefix}file; then 14047 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14048 if test -n "$file_magic_test_file"; then 14049 case $deplibs_check_method in 14050 "file_magic "*) 14051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14054 $EGREP "$file_magic_regex" > /dev/null; then 14055 : 14056 else 14057 cat <<_LT_EOF 1>&2 14058 14059*** Warning: the command libtool uses to detect shared libraries, 14060*** $file_magic_cmd, produces output that libtool cannot recognize. 14061*** The result is that libtool may fail to recognize shared libraries 14062*** as such. This will affect the creation of libtool libraries that 14063*** depend on shared libraries, but programs linked with such libtool 14064*** libraries will work regardless of this problem. Nevertheless, you 14065*** may want to report the problem to your system manager and/or to 14066*** bug-libtool@gnu.org 14067 14068_LT_EOF 14069 fi ;; 14070 esac 14071 fi 14072 break 14073 fi 14074 done 14075 IFS="$lt_save_ifs" 14076 MAGIC_CMD="$lt_save_MAGIC_CMD" 14077 ;; 14078esac 14079fi 14080 14081MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14082if test -n "$MAGIC_CMD"; then 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14084$as_echo "$MAGIC_CMD" >&6; } 14085else 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14087$as_echo "no" >&6; } 14088fi 14089 14090 14091 14092 14093 14094if test -z "$lt_cv_path_MAGIC_CMD"; then 14095 if test -n "$ac_tool_prefix"; then 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14097$as_echo_n "checking for file... " >&6; } 14098if ${lt_cv_path_MAGIC_CMD+:} false; then : 14099 $as_echo_n "(cached) " >&6 14100else 14101 case $MAGIC_CMD in 14102[\\/*] | ?:[\\/]*) 14103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14104 ;; 14105*) 14106 lt_save_MAGIC_CMD="$MAGIC_CMD" 14107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14108 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14109 for ac_dir in $ac_dummy; do 14110 IFS="$lt_save_ifs" 14111 test -z "$ac_dir" && ac_dir=. 14112 if test -f $ac_dir/file; then 14113 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14114 if test -n "$file_magic_test_file"; then 14115 case $deplibs_check_method in 14116 "file_magic "*) 14117 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14120 $EGREP "$file_magic_regex" > /dev/null; then 14121 : 14122 else 14123 cat <<_LT_EOF 1>&2 14124 14125*** Warning: the command libtool uses to detect shared libraries, 14126*** $file_magic_cmd, produces output that libtool cannot recognize. 14127*** The result is that libtool may fail to recognize shared libraries 14128*** as such. This will affect the creation of libtool libraries that 14129*** depend on shared libraries, but programs linked with such libtool 14130*** libraries will work regardless of this problem. Nevertheless, you 14131*** may want to report the problem to your system manager and/or to 14132*** bug-libtool@gnu.org 14133 14134_LT_EOF 14135 fi ;; 14136 esac 14137 fi 14138 break 14139 fi 14140 done 14141 IFS="$lt_save_ifs" 14142 MAGIC_CMD="$lt_save_MAGIC_CMD" 14143 ;; 14144esac 14145fi 14146 14147MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14148if test -n "$MAGIC_CMD"; then 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14150$as_echo "$MAGIC_CMD" >&6; } 14151else 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14153$as_echo "no" >&6; } 14154fi 14155 14156 14157 else 14158 MAGIC_CMD=: 14159 fi 14160fi 14161 14162 fi 14163 ;; 14164esac 14165 14166# Use C for the default configuration in the libtool script 14167 14168lt_save_CC="$CC" 14169ac_ext=c 14170ac_cpp='$CPP $CPPFLAGS' 14171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14173ac_compiler_gnu=$ac_cv_c_compiler_gnu 14174 14175 14176# Source file extension for C test sources. 14177ac_ext=c 14178 14179# Object file extension for compiled C test sources. 14180objext=o 14181objext=$objext 14182 14183# Code to be used in simple compile tests 14184lt_simple_compile_test_code="int some_variable = 0;" 14185 14186# Code to be used in simple link tests 14187lt_simple_link_test_code='int main(){return(0);}' 14188 14189 14190 14191 14192 14193 14194 14195# If no C compiler was specified, use CC. 14196LTCC=${LTCC-"$CC"} 14197 14198# If no C compiler flags were specified, use CFLAGS. 14199LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14200 14201# Allow CC to be a program name with arguments. 14202compiler=$CC 14203 14204# Save the default compiler, since it gets overwritten when the other 14205# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14206compiler_DEFAULT=$CC 14207 14208# save warnings/boilerplate of simple test code 14209ac_outfile=conftest.$ac_objext 14210echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14211eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14212_lt_compiler_boilerplate=`cat conftest.err` 14213$RM conftest* 14214 14215ac_outfile=conftest.$ac_objext 14216echo "$lt_simple_link_test_code" >conftest.$ac_ext 14217eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14218_lt_linker_boilerplate=`cat conftest.err` 14219$RM -r conftest* 14220 14221 14222if test -n "$compiler"; then 14223 14224lt_prog_compiler_no_builtin_flag= 14225 14226if test "$GCC" = yes; then 14227 case $cc_basename in 14228 nvcc*) 14229 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14230 *) 14231 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14232 esac 14233 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14235$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14236if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14237 $as_echo_n "(cached) " >&6 14238else 14239 lt_cv_prog_compiler_rtti_exceptions=no 14240 ac_outfile=conftest.$ac_objext 14241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14242 lt_compiler_flag="-fno-rtti -fno-exceptions" 14243 # Insert the option either (1) after the last *FLAGS variable, or 14244 # (2) before a word containing "conftest.", or (3) at the end. 14245 # Note that $ac_compile itself does not contain backslashes and begins 14246 # with a dollar sign (not a hyphen), so the echo should work correctly. 14247 # The option is referenced via a variable to avoid confusing sed. 14248 lt_compile=`echo "$ac_compile" | $SED \ 14249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14251 -e 's:$: $lt_compiler_flag:'` 14252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14253 (eval "$lt_compile" 2>conftest.err) 14254 ac_status=$? 14255 cat conftest.err >&5 14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14257 if (exit $ac_status) && test -s "$ac_outfile"; then 14258 # The compiler can only warn and ignore the option if not recognized 14259 # So say no if there are warnings other than the usual output. 14260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14263 lt_cv_prog_compiler_rtti_exceptions=yes 14264 fi 14265 fi 14266 $RM conftest* 14267 14268fi 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14270$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14271 14272if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14273 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14274else 14275 : 14276fi 14277 14278fi 14279 14280 14281 14282 14283 14284 14285 lt_prog_compiler_wl= 14286lt_prog_compiler_pic= 14287lt_prog_compiler_static= 14288 14289 14290 if test "$GCC" = yes; then 14291 lt_prog_compiler_wl='-Wl,' 14292 lt_prog_compiler_static='-static' 14293 14294 case $host_os in 14295 aix*) 14296 # All AIX code is PIC. 14297 if test "$host_cpu" = ia64; then 14298 # AIX 5 now supports IA64 processor 14299 lt_prog_compiler_static='-Bstatic' 14300 fi 14301 ;; 14302 14303 amigaos*) 14304 case $host_cpu in 14305 powerpc) 14306 # see comment about AmigaOS4 .so support 14307 lt_prog_compiler_pic='-fPIC' 14308 ;; 14309 m68k) 14310 # FIXME: we need at least 68020 code to build shared libraries, but 14311 # adding the `-m68020' flag to GCC prevents building anything better, 14312 # like `-m68040'. 14313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14314 ;; 14315 esac 14316 ;; 14317 14318 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14319 # PIC is the default for these OSes. 14320 ;; 14321 14322 mingw* | cygwin* | pw32* | os2* | cegcc*) 14323 # This hack is so that the source file can tell whether it is being 14324 # built for inclusion in a dll (and should export symbols for example). 14325 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14326 # (--disable-auto-import) libraries 14327 lt_prog_compiler_pic='-DDLL_EXPORT' 14328 ;; 14329 14330 darwin* | rhapsody*) 14331 # PIC is the default on this platform 14332 # Common symbols not allowed in MH_DYLIB files 14333 lt_prog_compiler_pic='-fno-common' 14334 ;; 14335 14336 haiku*) 14337 # PIC is the default for Haiku. 14338 # The "-static" flag exists, but is broken. 14339 lt_prog_compiler_static= 14340 ;; 14341 14342 hpux*) 14343 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14344 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14345 # sets the default TLS model and affects inlining. 14346 case $host_cpu in 14347 hppa*64*) 14348 # +Z the default 14349 ;; 14350 *) 14351 lt_prog_compiler_pic='-fPIC' 14352 ;; 14353 esac 14354 ;; 14355 14356 interix[3-9]*) 14357 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14358 # Instead, we relocate shared libraries at runtime. 14359 ;; 14360 14361 msdosdjgpp*) 14362 # Just because we use GCC doesn't mean we suddenly get shared libraries 14363 # on systems that don't support them. 14364 lt_prog_compiler_can_build_shared=no 14365 enable_shared=no 14366 ;; 14367 14368 *nto* | *qnx*) 14369 # QNX uses GNU C++, but need to define -shared option too, otherwise 14370 # it will coredump. 14371 lt_prog_compiler_pic='-fPIC -shared' 14372 ;; 14373 14374 sysv4*MP*) 14375 if test -d /usr/nec; then 14376 lt_prog_compiler_pic=-Kconform_pic 14377 fi 14378 ;; 14379 14380 *) 14381 lt_prog_compiler_pic='-fPIC' 14382 ;; 14383 esac 14384 14385 case $cc_basename in 14386 nvcc*) # Cuda Compiler Driver 2.2 14387 lt_prog_compiler_wl='-Xlinker ' 14388 if test -n "$lt_prog_compiler_pic"; then 14389 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14390 fi 14391 ;; 14392 esac 14393 else 14394 # PORTME Check for flag to pass linker flags through the system compiler. 14395 case $host_os in 14396 aix*) 14397 lt_prog_compiler_wl='-Wl,' 14398 if test "$host_cpu" = ia64; then 14399 # AIX 5 now supports IA64 processor 14400 lt_prog_compiler_static='-Bstatic' 14401 else 14402 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14403 fi 14404 ;; 14405 14406 mingw* | cygwin* | pw32* | os2* | cegcc*) 14407 # This hack is so that the source file can tell whether it is being 14408 # built for inclusion in a dll (and should export symbols for example). 14409 lt_prog_compiler_pic='-DDLL_EXPORT' 14410 ;; 14411 14412 hpux9* | hpux10* | hpux11*) 14413 lt_prog_compiler_wl='-Wl,' 14414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14415 # not for PA HP-UX. 14416 case $host_cpu in 14417 hppa*64*|ia64*) 14418 # +Z the default 14419 ;; 14420 *) 14421 lt_prog_compiler_pic='+Z' 14422 ;; 14423 esac 14424 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14425 lt_prog_compiler_static='${wl}-a ${wl}archive' 14426 ;; 14427 14428 irix5* | irix6* | nonstopux*) 14429 lt_prog_compiler_wl='-Wl,' 14430 # PIC (with -KPIC) is the default. 14431 lt_prog_compiler_static='-non_shared' 14432 ;; 14433 14434 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14435 case $cc_basename in 14436 # old Intel for x86_64 which still supported -KPIC. 14437 ecc*) 14438 lt_prog_compiler_wl='-Wl,' 14439 lt_prog_compiler_pic='-KPIC' 14440 lt_prog_compiler_static='-static' 14441 ;; 14442 # icc used to be incompatible with GCC. 14443 # ICC 10 doesn't accept -KPIC any more. 14444 icc* | ifort*) 14445 lt_prog_compiler_wl='-Wl,' 14446 lt_prog_compiler_pic='-fPIC' 14447 lt_prog_compiler_static='-static' 14448 ;; 14449 # Lahey Fortran 8.1. 14450 lf95*) 14451 lt_prog_compiler_wl='-Wl,' 14452 lt_prog_compiler_pic='--shared' 14453 lt_prog_compiler_static='--static' 14454 ;; 14455 nagfor*) 14456 # NAG Fortran compiler 14457 lt_prog_compiler_wl='-Wl,-Wl,,' 14458 lt_prog_compiler_pic='-PIC' 14459 lt_prog_compiler_static='-Bstatic' 14460 ;; 14461 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14462 # Portland Group compilers (*not* the Pentium gcc compiler, 14463 # which looks to be a dead project) 14464 lt_prog_compiler_wl='-Wl,' 14465 lt_prog_compiler_pic='-fpic' 14466 lt_prog_compiler_static='-Bstatic' 14467 ;; 14468 ccc*) 14469 lt_prog_compiler_wl='-Wl,' 14470 # All Alpha code is PIC. 14471 lt_prog_compiler_static='-non_shared' 14472 ;; 14473 xl* | bgxl* | bgf* | mpixl*) 14474 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14475 lt_prog_compiler_wl='-Wl,' 14476 lt_prog_compiler_pic='-qpic' 14477 lt_prog_compiler_static='-qstaticlink' 14478 ;; 14479 *) 14480 case `$CC -V 2>&1 | sed 5q` in 14481 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14482 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14483 lt_prog_compiler_pic='-KPIC' 14484 lt_prog_compiler_static='-Bstatic' 14485 lt_prog_compiler_wl='' 14486 ;; 14487 *Sun\ F* | *Sun*Fortran*) 14488 lt_prog_compiler_pic='-KPIC' 14489 lt_prog_compiler_static='-Bstatic' 14490 lt_prog_compiler_wl='-Qoption ld ' 14491 ;; 14492 *Sun\ C*) 14493 # Sun C 5.9 14494 lt_prog_compiler_pic='-KPIC' 14495 lt_prog_compiler_static='-Bstatic' 14496 lt_prog_compiler_wl='-Wl,' 14497 ;; 14498 *Intel*\ [CF]*Compiler*) 14499 lt_prog_compiler_wl='-Wl,' 14500 lt_prog_compiler_pic='-fPIC' 14501 lt_prog_compiler_static='-static' 14502 ;; 14503 *Portland\ Group*) 14504 lt_prog_compiler_wl='-Wl,' 14505 lt_prog_compiler_pic='-fpic' 14506 lt_prog_compiler_static='-Bstatic' 14507 ;; 14508 esac 14509 ;; 14510 esac 14511 ;; 14512 14513 newsos6) 14514 lt_prog_compiler_pic='-KPIC' 14515 lt_prog_compiler_static='-Bstatic' 14516 ;; 14517 14518 *nto* | *qnx*) 14519 # QNX uses GNU C++, but need to define -shared option too, otherwise 14520 # it will coredump. 14521 lt_prog_compiler_pic='-fPIC -shared' 14522 ;; 14523 14524 osf3* | osf4* | osf5*) 14525 lt_prog_compiler_wl='-Wl,' 14526 # All OSF/1 code is PIC. 14527 lt_prog_compiler_static='-non_shared' 14528 ;; 14529 14530 rdos*) 14531 lt_prog_compiler_static='-non_shared' 14532 ;; 14533 14534 solaris*) 14535 lt_prog_compiler_pic='-KPIC' 14536 lt_prog_compiler_static='-Bstatic' 14537 case $cc_basename in 14538 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14539 lt_prog_compiler_wl='-Qoption ld ';; 14540 *) 14541 lt_prog_compiler_wl='-Wl,';; 14542 esac 14543 ;; 14544 14545 sunos4*) 14546 lt_prog_compiler_wl='-Qoption ld ' 14547 lt_prog_compiler_pic='-PIC' 14548 lt_prog_compiler_static='-Bstatic' 14549 ;; 14550 14551 sysv4 | sysv4.2uw2* | sysv4.3*) 14552 lt_prog_compiler_wl='-Wl,' 14553 lt_prog_compiler_pic='-KPIC' 14554 lt_prog_compiler_static='-Bstatic' 14555 ;; 14556 14557 sysv4*MP*) 14558 if test -d /usr/nec ;then 14559 lt_prog_compiler_pic='-Kconform_pic' 14560 lt_prog_compiler_static='-Bstatic' 14561 fi 14562 ;; 14563 14564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14565 lt_prog_compiler_wl='-Wl,' 14566 lt_prog_compiler_pic='-KPIC' 14567 lt_prog_compiler_static='-Bstatic' 14568 ;; 14569 14570 unicos*) 14571 lt_prog_compiler_wl='-Wl,' 14572 lt_prog_compiler_can_build_shared=no 14573 ;; 14574 14575 uts4*) 14576 lt_prog_compiler_pic='-pic' 14577 lt_prog_compiler_static='-Bstatic' 14578 ;; 14579 14580 *) 14581 lt_prog_compiler_can_build_shared=no 14582 ;; 14583 esac 14584 fi 14585 14586case $host_os in 14587 # For platforms which do not support PIC, -DPIC is meaningless: 14588 *djgpp*) 14589 lt_prog_compiler_pic= 14590 ;; 14591 *) 14592 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14593 ;; 14594esac 14595 14596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14597$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14598if ${lt_cv_prog_compiler_pic+:} false; then : 14599 $as_echo_n "(cached) " >&6 14600else 14601 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14602fi 14603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14604$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14605lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14606 14607# 14608# Check to make sure the PIC flag actually works. 14609# 14610if test -n "$lt_prog_compiler_pic"; then 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14612$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14613if ${lt_cv_prog_compiler_pic_works+:} false; then : 14614 $as_echo_n "(cached) " >&6 14615else 14616 lt_cv_prog_compiler_pic_works=no 14617 ac_outfile=conftest.$ac_objext 14618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14619 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14620 # Insert the option either (1) after the last *FLAGS variable, or 14621 # (2) before a word containing "conftest.", or (3) at the end. 14622 # Note that $ac_compile itself does not contain backslashes and begins 14623 # with a dollar sign (not a hyphen), so the echo should work correctly. 14624 # The option is referenced via a variable to avoid confusing sed. 14625 lt_compile=`echo "$ac_compile" | $SED \ 14626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14628 -e 's:$: $lt_compiler_flag:'` 14629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14630 (eval "$lt_compile" 2>conftest.err) 14631 ac_status=$? 14632 cat conftest.err >&5 14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14634 if (exit $ac_status) && test -s "$ac_outfile"; then 14635 # The compiler can only warn and ignore the option if not recognized 14636 # So say no if there are warnings other than the usual output. 14637 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14640 lt_cv_prog_compiler_pic_works=yes 14641 fi 14642 fi 14643 $RM conftest* 14644 14645fi 14646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14647$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14648 14649if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14650 case $lt_prog_compiler_pic in 14651 "" | " "*) ;; 14652 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14653 esac 14654else 14655 lt_prog_compiler_pic= 14656 lt_prog_compiler_can_build_shared=no 14657fi 14658 14659fi 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671# 14672# Check to make sure the static flag actually works. 14673# 14674wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14676$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14677if ${lt_cv_prog_compiler_static_works+:} false; then : 14678 $as_echo_n "(cached) " >&6 14679else 14680 lt_cv_prog_compiler_static_works=no 14681 save_LDFLAGS="$LDFLAGS" 14682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14683 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14685 # The linker can only warn and ignore the option if not recognized 14686 # So say no if there are warnings 14687 if test -s conftest.err; then 14688 # Append any errors to the config.log. 14689 cat conftest.err 1>&5 14690 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14692 if diff conftest.exp conftest.er2 >/dev/null; then 14693 lt_cv_prog_compiler_static_works=yes 14694 fi 14695 else 14696 lt_cv_prog_compiler_static_works=yes 14697 fi 14698 fi 14699 $RM -r conftest* 14700 LDFLAGS="$save_LDFLAGS" 14701 14702fi 14703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14704$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14705 14706if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14707 : 14708else 14709 lt_prog_compiler_static= 14710fi 14711 14712 14713 14714 14715 14716 14717 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14719$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14720if ${lt_cv_prog_compiler_c_o+:} false; then : 14721 $as_echo_n "(cached) " >&6 14722else 14723 lt_cv_prog_compiler_c_o=no 14724 $RM -r conftest 2>/dev/null 14725 mkdir conftest 14726 cd conftest 14727 mkdir out 14728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14729 14730 lt_compiler_flag="-o out/conftest2.$ac_objext" 14731 # Insert the option either (1) after the last *FLAGS variable, or 14732 # (2) before a word containing "conftest.", or (3) at the end. 14733 # Note that $ac_compile itself does not contain backslashes and begins 14734 # with a dollar sign (not a hyphen), so the echo should work correctly. 14735 lt_compile=`echo "$ac_compile" | $SED \ 14736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14738 -e 's:$: $lt_compiler_flag:'` 14739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14740 (eval "$lt_compile" 2>out/conftest.err) 14741 ac_status=$? 14742 cat out/conftest.err >&5 14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14744 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14745 then 14746 # The compiler can only warn and ignore the option if not recognized 14747 # So say no if there are warnings 14748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14751 lt_cv_prog_compiler_c_o=yes 14752 fi 14753 fi 14754 chmod u+w . 2>&5 14755 $RM conftest* 14756 # SGI C++ compiler will create directory out/ii_files/ for 14757 # template instantiation 14758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14759 $RM out/* && rmdir out 14760 cd .. 14761 $RM -r conftest 14762 $RM conftest* 14763 14764fi 14765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14766$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14767 14768 14769 14770 14771 14772 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14774$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14775if ${lt_cv_prog_compiler_c_o+:} false; then : 14776 $as_echo_n "(cached) " >&6 14777else 14778 lt_cv_prog_compiler_c_o=no 14779 $RM -r conftest 2>/dev/null 14780 mkdir conftest 14781 cd conftest 14782 mkdir out 14783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14784 14785 lt_compiler_flag="-o out/conftest2.$ac_objext" 14786 # Insert the option either (1) after the last *FLAGS variable, or 14787 # (2) before a word containing "conftest.", or (3) at the end. 14788 # Note that $ac_compile itself does not contain backslashes and begins 14789 # with a dollar sign (not a hyphen), so the echo should work correctly. 14790 lt_compile=`echo "$ac_compile" | $SED \ 14791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14793 -e 's:$: $lt_compiler_flag:'` 14794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14795 (eval "$lt_compile" 2>out/conftest.err) 14796 ac_status=$? 14797 cat out/conftest.err >&5 14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14799 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14800 then 14801 # The compiler can only warn and ignore the option if not recognized 14802 # So say no if there are warnings 14803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14806 lt_cv_prog_compiler_c_o=yes 14807 fi 14808 fi 14809 chmod u+w . 2>&5 14810 $RM conftest* 14811 # SGI C++ compiler will create directory out/ii_files/ for 14812 # template instantiation 14813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14814 $RM out/* && rmdir out 14815 cd .. 14816 $RM -r conftest 14817 $RM conftest* 14818 14819fi 14820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14821$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14822 14823 14824 14825 14826hard_links="nottested" 14827if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14828 # do not overwrite the value of need_locks provided by the user 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14830$as_echo_n "checking if we can lock with hard links... " >&6; } 14831 hard_links=yes 14832 $RM conftest* 14833 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14834 touch conftest.a 14835 ln conftest.a conftest.b 2>&5 || hard_links=no 14836 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14838$as_echo "$hard_links" >&6; } 14839 if test "$hard_links" = no; then 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14841$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14842 need_locks=warn 14843 fi 14844else 14845 need_locks=no 14846fi 14847 14848 14849 14850 14851 14852 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14854$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14855 14856 runpath_var= 14857 allow_undefined_flag= 14858 always_export_symbols=no 14859 archive_cmds= 14860 archive_expsym_cmds= 14861 compiler_needs_object=no 14862 enable_shared_with_static_runtimes=no 14863 export_dynamic_flag_spec= 14864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14865 hardcode_automatic=no 14866 hardcode_direct=no 14867 hardcode_direct_absolute=no 14868 hardcode_libdir_flag_spec= 14869 hardcode_libdir_separator= 14870 hardcode_minus_L=no 14871 hardcode_shlibpath_var=unsupported 14872 inherit_rpath=no 14873 link_all_deplibs=unknown 14874 module_cmds= 14875 module_expsym_cmds= 14876 old_archive_from_new_cmds= 14877 old_archive_from_expsyms_cmds= 14878 thread_safe_flag_spec= 14879 whole_archive_flag_spec= 14880 # include_expsyms should be a list of space-separated symbols to be *always* 14881 # included in the symbol list 14882 include_expsyms= 14883 # exclude_expsyms can be an extended regexp of symbols to exclude 14884 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14885 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14886 # as well as any symbol that contains `d'. 14887 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14888 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14889 # platforms (ab)use it in PIC code, but their linkers get confused if 14890 # the symbol is explicitly referenced. Since portable code cannot 14891 # rely on this symbol name, it's probably fine to never include it in 14892 # preloaded symbol tables. 14893 # Exclude shared library initialization/finalization symbols. 14894 extract_expsyms_cmds= 14895 14896 case $host_os in 14897 cygwin* | mingw* | pw32* | cegcc*) 14898 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14899 # When not using gcc, we currently assume that we are using 14900 # Microsoft Visual C++. 14901 if test "$GCC" != yes; then 14902 with_gnu_ld=no 14903 fi 14904 ;; 14905 interix*) 14906 # we just hope/assume this is gcc and not c89 (= MSVC++) 14907 with_gnu_ld=yes 14908 ;; 14909 openbsd*) 14910 with_gnu_ld=no 14911 ;; 14912 esac 14913 14914 ld_shlibs=yes 14915 14916 # On some targets, GNU ld is compatible enough with the native linker 14917 # that we're better off using the native interface for both. 14918 lt_use_gnu_ld_interface=no 14919 if test "$with_gnu_ld" = yes; then 14920 case $host_os in 14921 aix*) 14922 # The AIX port of GNU ld has always aspired to compatibility 14923 # with the native linker. However, as the warning in the GNU ld 14924 # block says, versions before 2.19.5* couldn't really create working 14925 # shared libraries, regardless of the interface used. 14926 case `$LD -v 2>&1` in 14927 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14928 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14929 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14930 *) 14931 lt_use_gnu_ld_interface=yes 14932 ;; 14933 esac 14934 ;; 14935 *) 14936 lt_use_gnu_ld_interface=yes 14937 ;; 14938 esac 14939 fi 14940 14941 if test "$lt_use_gnu_ld_interface" = yes; then 14942 # If archive_cmds runs LD, not CC, wlarc should be empty 14943 wlarc='${wl}' 14944 14945 # Set some defaults for GNU ld with shared library support. These 14946 # are reset later if shared libraries are not supported. Putting them 14947 # here allows them to be overridden if necessary. 14948 runpath_var=LD_RUN_PATH 14949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14950 export_dynamic_flag_spec='${wl}--export-dynamic' 14951 # ancient GNU ld didn't support --whole-archive et. al. 14952 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14953 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14954 else 14955 whole_archive_flag_spec= 14956 fi 14957 supports_anon_versioning=no 14958 case `$LD -v 2>&1` in 14959 *GNU\ gold*) supports_anon_versioning=yes ;; 14960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14963 *\ 2.11.*) ;; # other 2.11 versions 14964 *) supports_anon_versioning=yes ;; 14965 esac 14966 14967 # See if GNU ld supports shared libraries. 14968 case $host_os in 14969 aix[3-9]*) 14970 # On AIX/PPC, the GNU linker is very broken 14971 if test "$host_cpu" != ia64; then 14972 ld_shlibs=no 14973 cat <<_LT_EOF 1>&2 14974 14975*** Warning: the GNU linker, at least up to release 2.19, is reported 14976*** to be unable to reliably create shared libraries on AIX. 14977*** Therefore, libtool is disabling shared libraries support. If you 14978*** really care for shared libraries, you may want to install binutils 14979*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14980*** You will then need to restart the configuration process. 14981 14982_LT_EOF 14983 fi 14984 ;; 14985 14986 amigaos*) 14987 case $host_cpu in 14988 powerpc) 14989 # see comment about AmigaOS4 .so support 14990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14991 archive_expsym_cmds='' 14992 ;; 14993 m68k) 14994 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)' 14995 hardcode_libdir_flag_spec='-L$libdir' 14996 hardcode_minus_L=yes 14997 ;; 14998 esac 14999 ;; 15000 15001 beos*) 15002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15003 allow_undefined_flag=unsupported 15004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15005 # support --undefined. This deserves some investigation. FIXME 15006 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15007 else 15008 ld_shlibs=no 15009 fi 15010 ;; 15011 15012 cygwin* | mingw* | pw32* | cegcc*) 15013 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15014 # as there is no search path for DLLs. 15015 hardcode_libdir_flag_spec='-L$libdir' 15016 export_dynamic_flag_spec='${wl}--export-all-symbols' 15017 allow_undefined_flag=unsupported 15018 always_export_symbols=no 15019 enable_shared_with_static_runtimes=yes 15020 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' 15021 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15022 15023 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15025 # If the export-symbols file already is a .def file (1st line 15026 # is EXPORTS), use it as is; otherwise, prepend... 15027 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15028 cp $export_symbols $output_objdir/$soname.def; 15029 else 15030 echo EXPORTS > $output_objdir/$soname.def; 15031 cat $export_symbols >> $output_objdir/$soname.def; 15032 fi~ 15033 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15034 else 15035 ld_shlibs=no 15036 fi 15037 ;; 15038 15039 haiku*) 15040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15041 link_all_deplibs=yes 15042 ;; 15043 15044 interix[3-9]*) 15045 hardcode_direct=no 15046 hardcode_shlibpath_var=no 15047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15048 export_dynamic_flag_spec='${wl}-E' 15049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15050 # Instead, shared libraries are loaded at an image base (0x10000000 by 15051 # default) and relocated if they conflict, which is a slow very memory 15052 # consuming and fragmenting process. To avoid this, we pick a random, 15053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15054 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15056 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' 15057 ;; 15058 15059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15060 tmp_diet=no 15061 if test "$host_os" = linux-dietlibc; then 15062 case $cc_basename in 15063 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15064 esac 15065 fi 15066 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15067 && test "$tmp_diet" = no 15068 then 15069 tmp_addflag=' $pic_flag' 15070 tmp_sharedflag='-shared' 15071 case $cc_basename,$host_cpu in 15072 pgcc*) # Portland Group C compiler 15073 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' 15074 tmp_addflag=' $pic_flag' 15075 ;; 15076 pgf77* | pgf90* | pgf95* | pgfortran*) 15077 # Portland Group f77 and f90 compilers 15078 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' 15079 tmp_addflag=' $pic_flag -Mnomain' ;; 15080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15081 tmp_addflag=' -i_dynamic' ;; 15082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15083 tmp_addflag=' -i_dynamic -nofor_main' ;; 15084 ifc* | ifort*) # Intel Fortran compiler 15085 tmp_addflag=' -nofor_main' ;; 15086 lf95*) # Lahey Fortran 8.1 15087 whole_archive_flag_spec= 15088 tmp_sharedflag='--shared' ;; 15089 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15090 tmp_sharedflag='-qmkshrobj' 15091 tmp_addflag= ;; 15092 nvcc*) # Cuda Compiler Driver 2.2 15093 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' 15094 compiler_needs_object=yes 15095 ;; 15096 esac 15097 case `$CC -V 2>&1 | sed 5q` in 15098 *Sun\ C*) # Sun C 5.9 15099 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' 15100 compiler_needs_object=yes 15101 tmp_sharedflag='-G' ;; 15102 *Sun\ F*) # Sun Fortran 8.3 15103 tmp_sharedflag='-G' ;; 15104 esac 15105 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15106 15107 if test "x$supports_anon_versioning" = xyes; then 15108 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15110 echo "local: *; };" >> $output_objdir/$libname.ver~ 15111 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15112 fi 15113 15114 case $cc_basename in 15115 xlf* | bgf* | bgxlf* | mpixlf*) 15116 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15117 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15119 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15120 if test "x$supports_anon_versioning" = xyes; then 15121 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15123 echo "local: *; };" >> $output_objdir/$libname.ver~ 15124 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15125 fi 15126 ;; 15127 esac 15128 else 15129 ld_shlibs=no 15130 fi 15131 ;; 15132 15133 netbsd*) 15134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15135 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15136 wlarc= 15137 else 15138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15139 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15140 fi 15141 ;; 15142 15143 solaris*) 15144 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15145 ld_shlibs=no 15146 cat <<_LT_EOF 1>&2 15147 15148*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15149*** create shared libraries on Solaris systems. Therefore, libtool 15150*** is disabling shared libraries support. We urge you to upgrade GNU 15151*** binutils to release 2.9.1 or newer. Another option is to modify 15152*** your PATH or compiler configuration so that the native linker is 15153*** used, and then restart. 15154 15155_LT_EOF 15156 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15158 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15159 else 15160 ld_shlibs=no 15161 fi 15162 ;; 15163 15164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15165 case `$LD -v 2>&1` in 15166 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15167 ld_shlibs=no 15168 cat <<_LT_EOF 1>&2 15169 15170*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15171*** reliably create shared libraries on SCO systems. Therefore, libtool 15172*** is disabling shared libraries support. We urge you to upgrade GNU 15173*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15174*** your PATH or compiler configuration so that the native linker is 15175*** used, and then restart. 15176 15177_LT_EOF 15178 ;; 15179 *) 15180 # For security reasons, it is highly recommended that you always 15181 # use absolute paths for naming shared libraries, and exclude the 15182 # DT_RUNPATH tag from executables and libraries. But doing so 15183 # requires that you compile everything twice, which is a pain. 15184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15188 else 15189 ld_shlibs=no 15190 fi 15191 ;; 15192 esac 15193 ;; 15194 15195 sunos4*) 15196 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15197 wlarc= 15198 hardcode_direct=yes 15199 hardcode_shlibpath_var=no 15200 ;; 15201 15202 *) 15203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15205 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15206 else 15207 ld_shlibs=no 15208 fi 15209 ;; 15210 esac 15211 15212 if test "$ld_shlibs" = no; then 15213 runpath_var= 15214 hardcode_libdir_flag_spec= 15215 export_dynamic_flag_spec= 15216 whole_archive_flag_spec= 15217 fi 15218 else 15219 # PORTME fill in a description of your system's linker (not GNU ld) 15220 case $host_os in 15221 aix3*) 15222 allow_undefined_flag=unsupported 15223 always_export_symbols=yes 15224 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' 15225 # Note: this linker hardcodes the directories in LIBPATH if there 15226 # are no directories specified by -L. 15227 hardcode_minus_L=yes 15228 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15229 # Neither direct hardcoding nor static linking is supported with a 15230 # broken collect2. 15231 hardcode_direct=unsupported 15232 fi 15233 ;; 15234 15235 aix[4-9]*) 15236 if test "$host_cpu" = ia64; then 15237 # On IA64, the linker does run time linking by default, so we don't 15238 # have to do anything special. 15239 aix_use_runtimelinking=no 15240 exp_sym_flag='-Bexport' 15241 no_entry_flag="" 15242 else 15243 # If we're using GNU nm, then we don't want the "-C" option. 15244 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15245 # Also, AIX nm treats weak defined symbols like other global 15246 # defined symbols, whereas GNU nm marks them as "W". 15247 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15248 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' 15249 else 15250 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' 15251 fi 15252 aix_use_runtimelinking=no 15253 15254 # Test if we are trying to use run time linking or normal 15255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15256 # need to do runtime linking. 15257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15258 for ld_flag in $LDFLAGS; do 15259 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15260 aix_use_runtimelinking=yes 15261 break 15262 fi 15263 done 15264 ;; 15265 esac 15266 15267 exp_sym_flag='-bexport' 15268 no_entry_flag='-bnoentry' 15269 fi 15270 15271 # When large executables or shared objects are built, AIX ld can 15272 # have problems creating the table of contents. If linking a library 15273 # or program results in "error TOC overflow" add -mminimal-toc to 15274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15276 15277 archive_cmds='' 15278 hardcode_direct=yes 15279 hardcode_direct_absolute=yes 15280 hardcode_libdir_separator=':' 15281 link_all_deplibs=yes 15282 file_list_spec='${wl}-f,' 15283 15284 if test "$GCC" = yes; then 15285 case $host_os in aix4.[012]|aix4.[012].*) 15286 # We only want to do this on AIX 4.2 and lower, the check 15287 # below for broken collect2 doesn't work under 4.3+ 15288 collect2name=`${CC} -print-prog-name=collect2` 15289 if test -f "$collect2name" && 15290 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15291 then 15292 # We have reworked collect2 15293 : 15294 else 15295 # We have old collect2 15296 hardcode_direct=unsupported 15297 # It fails to find uninstalled libraries when the uninstalled 15298 # path is not listed in the libpath. Setting hardcode_minus_L 15299 # to unsupported forces relinking 15300 hardcode_minus_L=yes 15301 hardcode_libdir_flag_spec='-L$libdir' 15302 hardcode_libdir_separator= 15303 fi 15304 ;; 15305 esac 15306 shared_flag='-shared' 15307 if test "$aix_use_runtimelinking" = yes; then 15308 shared_flag="$shared_flag "'${wl}-G' 15309 fi 15310 else 15311 # not using gcc 15312 if test "$host_cpu" = ia64; then 15313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15314 # chokes on -Wl,-G. The following line is correct: 15315 shared_flag='-G' 15316 else 15317 if test "$aix_use_runtimelinking" = yes; then 15318 shared_flag='${wl}-G' 15319 else 15320 shared_flag='${wl}-bM:SRE' 15321 fi 15322 fi 15323 fi 15324 15325 export_dynamic_flag_spec='${wl}-bexpall' 15326 # It seems that -bexpall does not export symbols beginning with 15327 # underscore (_), so it is better to generate a list of symbols to export. 15328 always_export_symbols=yes 15329 if test "$aix_use_runtimelinking" = yes; then 15330 # Warning - without using the other runtime loading flags (-brtl), 15331 # -berok will link without error, but may produce a broken library. 15332 allow_undefined_flag='-berok' 15333 # Determine the default libpath from the value encoded in an 15334 # empty executable. 15335 if test "${lt_cv_aix_libpath+set}" = set; then 15336 aix_libpath=$lt_cv_aix_libpath 15337else 15338 if ${lt_cv_aix_libpath_+:} false; then : 15339 $as_echo_n "(cached) " >&6 15340else 15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15342/* end confdefs.h. */ 15343 15344int 15345main () 15346{ 15347 15348 ; 15349 return 0; 15350} 15351_ACEOF 15352if ac_fn_c_try_link "$LINENO"; then : 15353 15354 lt_aix_libpath_sed=' 15355 /Import File Strings/,/^$/ { 15356 /^0/ { 15357 s/^0 *\([^ ]*\) *$/\1/ 15358 p 15359 } 15360 }' 15361 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15362 # Check for a 64-bit object if we didn't find anything. 15363 if test -z "$lt_cv_aix_libpath_"; then 15364 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15365 fi 15366fi 15367rm -f core conftest.err conftest.$ac_objext \ 15368 conftest$ac_exeext conftest.$ac_ext 15369 if test -z "$lt_cv_aix_libpath_"; then 15370 lt_cv_aix_libpath_="/usr/lib:/lib" 15371 fi 15372 15373fi 15374 15375 aix_libpath=$lt_cv_aix_libpath_ 15376fi 15377 15378 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15379 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" 15380 else 15381 if test "$host_cpu" = ia64; then 15382 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15383 allow_undefined_flag="-z nodefs" 15384 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" 15385 else 15386 # Determine the default libpath from the value encoded in an 15387 # empty executable. 15388 if test "${lt_cv_aix_libpath+set}" = set; then 15389 aix_libpath=$lt_cv_aix_libpath 15390else 15391 if ${lt_cv_aix_libpath_+:} false; then : 15392 $as_echo_n "(cached) " >&6 15393else 15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15395/* end confdefs.h. */ 15396 15397int 15398main () 15399{ 15400 15401 ; 15402 return 0; 15403} 15404_ACEOF 15405if ac_fn_c_try_link "$LINENO"; then : 15406 15407 lt_aix_libpath_sed=' 15408 /Import File Strings/,/^$/ { 15409 /^0/ { 15410 s/^0 *\([^ ]*\) *$/\1/ 15411 p 15412 } 15413 }' 15414 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15415 # Check for a 64-bit object if we didn't find anything. 15416 if test -z "$lt_cv_aix_libpath_"; then 15417 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15418 fi 15419fi 15420rm -f core conftest.err conftest.$ac_objext \ 15421 conftest$ac_exeext conftest.$ac_ext 15422 if test -z "$lt_cv_aix_libpath_"; then 15423 lt_cv_aix_libpath_="/usr/lib:/lib" 15424 fi 15425 15426fi 15427 15428 aix_libpath=$lt_cv_aix_libpath_ 15429fi 15430 15431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15432 # Warning - without using the other run time loading flags, 15433 # -berok will link without error, but may produce a broken library. 15434 no_undefined_flag=' ${wl}-bernotok' 15435 allow_undefined_flag=' ${wl}-berok' 15436 if test "$with_gnu_ld" = yes; then 15437 # We only use this code for GNU lds that support --whole-archive. 15438 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15439 else 15440 # Exported symbols can be pulled into shared objects from archives 15441 whole_archive_flag_spec='$convenience' 15442 fi 15443 archive_cmds_need_lc=yes 15444 # This is similar to how AIX traditionally builds its shared libraries. 15445 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' 15446 fi 15447 fi 15448 ;; 15449 15450 amigaos*) 15451 case $host_cpu in 15452 powerpc) 15453 # see comment about AmigaOS4 .so support 15454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15455 archive_expsym_cmds='' 15456 ;; 15457 m68k) 15458 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)' 15459 hardcode_libdir_flag_spec='-L$libdir' 15460 hardcode_minus_L=yes 15461 ;; 15462 esac 15463 ;; 15464 15465 bsdi[45]*) 15466 export_dynamic_flag_spec=-rdynamic 15467 ;; 15468 15469 cygwin* | mingw* | pw32* | cegcc*) 15470 # When not using gcc, we currently assume that we are using 15471 # Microsoft Visual C++. 15472 # hardcode_libdir_flag_spec is actually meaningless, as there is 15473 # no search path for DLLs. 15474 case $cc_basename in 15475 cl*) 15476 # Native MSVC 15477 hardcode_libdir_flag_spec=' ' 15478 allow_undefined_flag=unsupported 15479 always_export_symbols=yes 15480 file_list_spec='@' 15481 # Tell ltmain to make .lib files, not .a files. 15482 libext=lib 15483 # Tell ltmain to make .dll files, not .so files. 15484 shrext_cmds=".dll" 15485 # FIXME: Setting linknames here is a bad hack. 15486 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15487 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15488 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15489 else 15490 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15491 fi~ 15492 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15493 linknames=' 15494 # The linker will not automatically build a static lib if we build a DLL. 15495 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15496 enable_shared_with_static_runtimes=yes 15497 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15499 # Don't use ranlib 15500 old_postinstall_cmds='chmod 644 $oldlib' 15501 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15502 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15503 case $lt_outputfile in 15504 *.exe|*.EXE) ;; 15505 *) 15506 lt_outputfile="$lt_outputfile.exe" 15507 lt_tool_outputfile="$lt_tool_outputfile.exe" 15508 ;; 15509 esac~ 15510 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15511 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15512 $RM "$lt_outputfile.manifest"; 15513 fi' 15514 ;; 15515 *) 15516 # Assume MSVC wrapper 15517 hardcode_libdir_flag_spec=' ' 15518 allow_undefined_flag=unsupported 15519 # Tell ltmain to make .lib files, not .a files. 15520 libext=lib 15521 # Tell ltmain to make .dll files, not .so files. 15522 shrext_cmds=".dll" 15523 # FIXME: Setting linknames here is a bad hack. 15524 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15525 # The linker will automatically build a .lib file if we build a DLL. 15526 old_archive_from_new_cmds='true' 15527 # FIXME: Should let the user specify the lib program. 15528 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15529 enable_shared_with_static_runtimes=yes 15530 ;; 15531 esac 15532 ;; 15533 15534 darwin* | rhapsody*) 15535 15536 15537 archive_cmds_need_lc=no 15538 hardcode_direct=no 15539 hardcode_automatic=yes 15540 hardcode_shlibpath_var=unsupported 15541 if test "$lt_cv_ld_force_load" = "yes"; then 15542 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\"`' 15543 15544 else 15545 whole_archive_flag_spec='' 15546 fi 15547 link_all_deplibs=yes 15548 allow_undefined_flag="$_lt_dar_allow_undefined" 15549 case $cc_basename in 15550 ifort*) _lt_dar_can_shared=yes ;; 15551 *) _lt_dar_can_shared=$GCC ;; 15552 esac 15553 if test "$_lt_dar_can_shared" = "yes"; then 15554 output_verbose_link_cmd=func_echo_all 15555 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15556 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15557 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}" 15558 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}" 15559 15560 else 15561 ld_shlibs=no 15562 fi 15563 15564 ;; 15565 15566 dgux*) 15567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15568 hardcode_libdir_flag_spec='-L$libdir' 15569 hardcode_shlibpath_var=no 15570 ;; 15571 15572 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15573 # support. Future versions do this automatically, but an explicit c++rt0.o 15574 # does not break anything, and helps significantly (at the cost of a little 15575 # extra space). 15576 freebsd2.2*) 15577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15578 hardcode_libdir_flag_spec='-R$libdir' 15579 hardcode_direct=yes 15580 hardcode_shlibpath_var=no 15581 ;; 15582 15583 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15584 freebsd2.*) 15585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15586 hardcode_direct=yes 15587 hardcode_minus_L=yes 15588 hardcode_shlibpath_var=no 15589 ;; 15590 15591 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15592 freebsd* | dragonfly*) 15593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15594 hardcode_libdir_flag_spec='-R$libdir' 15595 hardcode_direct=yes 15596 hardcode_shlibpath_var=no 15597 ;; 15598 15599 hpux9*) 15600 if test "$GCC" = yes; then 15601 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' 15602 else 15603 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' 15604 fi 15605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15606 hardcode_libdir_separator=: 15607 hardcode_direct=yes 15608 15609 # hardcode_minus_L: Not really in the search PATH, 15610 # but as the default location of the library. 15611 hardcode_minus_L=yes 15612 export_dynamic_flag_spec='${wl}-E' 15613 ;; 15614 15615 hpux10*) 15616 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15617 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15618 else 15619 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15620 fi 15621 if test "$with_gnu_ld" = no; then 15622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15623 hardcode_libdir_separator=: 15624 hardcode_direct=yes 15625 hardcode_direct_absolute=yes 15626 export_dynamic_flag_spec='${wl}-E' 15627 # hardcode_minus_L: Not really in the search PATH, 15628 # but as the default location of the library. 15629 hardcode_minus_L=yes 15630 fi 15631 ;; 15632 15633 hpux11*) 15634 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15635 case $host_cpu in 15636 hppa*64*) 15637 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15638 ;; 15639 ia64*) 15640 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15641 ;; 15642 *) 15643 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15644 ;; 15645 esac 15646 else 15647 case $host_cpu in 15648 hppa*64*) 15649 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15650 ;; 15651 ia64*) 15652 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15653 ;; 15654 *) 15655 15656 # Older versions of the 11.00 compiler do not understand -b yet 15657 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15659$as_echo_n "checking if $CC understands -b... " >&6; } 15660if ${lt_cv_prog_compiler__b+:} false; then : 15661 $as_echo_n "(cached) " >&6 15662else 15663 lt_cv_prog_compiler__b=no 15664 save_LDFLAGS="$LDFLAGS" 15665 LDFLAGS="$LDFLAGS -b" 15666 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15668 # The linker can only warn and ignore the option if not recognized 15669 # So say no if there are warnings 15670 if test -s conftest.err; then 15671 # Append any errors to the config.log. 15672 cat conftest.err 1>&5 15673 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15675 if diff conftest.exp conftest.er2 >/dev/null; then 15676 lt_cv_prog_compiler__b=yes 15677 fi 15678 else 15679 lt_cv_prog_compiler__b=yes 15680 fi 15681 fi 15682 $RM -r conftest* 15683 LDFLAGS="$save_LDFLAGS" 15684 15685fi 15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15687$as_echo "$lt_cv_prog_compiler__b" >&6; } 15688 15689if test x"$lt_cv_prog_compiler__b" = xyes; then 15690 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15691else 15692 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15693fi 15694 15695 ;; 15696 esac 15697 fi 15698 if test "$with_gnu_ld" = no; then 15699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15700 hardcode_libdir_separator=: 15701 15702 case $host_cpu in 15703 hppa*64*|ia64*) 15704 hardcode_direct=no 15705 hardcode_shlibpath_var=no 15706 ;; 15707 *) 15708 hardcode_direct=yes 15709 hardcode_direct_absolute=yes 15710 export_dynamic_flag_spec='${wl}-E' 15711 15712 # hardcode_minus_L: Not really in the search PATH, 15713 # but as the default location of the library. 15714 hardcode_minus_L=yes 15715 ;; 15716 esac 15717 fi 15718 ;; 15719 15720 irix5* | irix6* | nonstopux*) 15721 if test "$GCC" = yes; then 15722 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' 15723 # Try to use the -exported_symbol ld option, if it does not 15724 # work, assume that -exports_file does not work either and 15725 # implicitly export all symbols. 15726 # This should be the same for all languages, so no per-tag cache variable. 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15728$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15729if ${lt_cv_irix_exported_symbol+:} false; then : 15730 $as_echo_n "(cached) " >&6 15731else 15732 save_LDFLAGS="$LDFLAGS" 15733 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15735/* end confdefs.h. */ 15736int foo (void) { return 0; } 15737_ACEOF 15738if ac_fn_c_try_link "$LINENO"; then : 15739 lt_cv_irix_exported_symbol=yes 15740else 15741 lt_cv_irix_exported_symbol=no 15742fi 15743rm -f core conftest.err conftest.$ac_objext \ 15744 conftest$ac_exeext conftest.$ac_ext 15745 LDFLAGS="$save_LDFLAGS" 15746fi 15747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15748$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15749 if test "$lt_cv_irix_exported_symbol" = yes; then 15750 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' 15751 fi 15752 else 15753 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' 15754 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' 15755 fi 15756 archive_cmds_need_lc='no' 15757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15758 hardcode_libdir_separator=: 15759 inherit_rpath=yes 15760 link_all_deplibs=yes 15761 ;; 15762 15763 netbsd*) 15764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15766 else 15767 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15768 fi 15769 hardcode_libdir_flag_spec='-R$libdir' 15770 hardcode_direct=yes 15771 hardcode_shlibpath_var=no 15772 ;; 15773 15774 newsos6) 15775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15776 hardcode_direct=yes 15777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15778 hardcode_libdir_separator=: 15779 hardcode_shlibpath_var=no 15780 ;; 15781 15782 *nto* | *qnx*) 15783 ;; 15784 15785 openbsd*) 15786 if test -f /usr/libexec/ld.so; then 15787 hardcode_direct=yes 15788 hardcode_shlibpath_var=no 15789 hardcode_direct_absolute=yes 15790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15792 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15794 export_dynamic_flag_spec='${wl}-E' 15795 else 15796 case $host_os in 15797 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15798 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15799 hardcode_libdir_flag_spec='-R$libdir' 15800 ;; 15801 *) 15802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15803 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15804 ;; 15805 esac 15806 fi 15807 else 15808 ld_shlibs=no 15809 fi 15810 ;; 15811 15812 os2*) 15813 hardcode_libdir_flag_spec='-L$libdir' 15814 hardcode_minus_L=yes 15815 allow_undefined_flag=unsupported 15816 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' 15817 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15818 ;; 15819 15820 osf3*) 15821 if test "$GCC" = yes; then 15822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15823 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' 15824 else 15825 allow_undefined_flag=' -expect_unresolved \*' 15826 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' 15827 fi 15828 archive_cmds_need_lc='no' 15829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15830 hardcode_libdir_separator=: 15831 ;; 15832 15833 osf4* | osf5*) # as osf3* with the addition of -msym flag 15834 if test "$GCC" = yes; then 15835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15836 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' 15837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15838 else 15839 allow_undefined_flag=' -expect_unresolved \*' 15840 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' 15841 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~ 15842 $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' 15843 15844 # Both c and cxx compiler support -rpath directly 15845 hardcode_libdir_flag_spec='-rpath $libdir' 15846 fi 15847 archive_cmds_need_lc='no' 15848 hardcode_libdir_separator=: 15849 ;; 15850 15851 solaris*) 15852 no_undefined_flag=' -z defs' 15853 if test "$GCC" = yes; then 15854 wlarc='${wl}' 15855 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15857 $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' 15858 else 15859 case `$CC -V 2>&1` in 15860 *"Compilers 5.0"*) 15861 wlarc='' 15862 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15864 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15865 ;; 15866 *) 15867 wlarc='${wl}' 15868 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15870 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15871 ;; 15872 esac 15873 fi 15874 hardcode_libdir_flag_spec='-R$libdir' 15875 hardcode_shlibpath_var=no 15876 case $host_os in 15877 solaris2.[0-5] | solaris2.[0-5].*) ;; 15878 *) 15879 # The compiler driver will combine and reorder linker options, 15880 # but understands `-z linker_flag'. GCC discards it without `$wl', 15881 # but is careful enough not to reorder. 15882 # Supported since Solaris 2.6 (maybe 2.5.1?) 15883 if test "$GCC" = yes; then 15884 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15885 else 15886 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15887 fi 15888 ;; 15889 esac 15890 link_all_deplibs=yes 15891 ;; 15892 15893 sunos4*) 15894 if test "x$host_vendor" = xsequent; then 15895 # Use $CC to link under sequent, because it throws in some extra .o 15896 # files that make .init and .fini sections work. 15897 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15898 else 15899 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15900 fi 15901 hardcode_libdir_flag_spec='-L$libdir' 15902 hardcode_direct=yes 15903 hardcode_minus_L=yes 15904 hardcode_shlibpath_var=no 15905 ;; 15906 15907 sysv4) 15908 case $host_vendor in 15909 sni) 15910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15911 hardcode_direct=yes # is this really true??? 15912 ;; 15913 siemens) 15914 ## LD is ld it makes a PLAMLIB 15915 ## CC just makes a GrossModule. 15916 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15917 reload_cmds='$CC -r -o $output$reload_objs' 15918 hardcode_direct=no 15919 ;; 15920 motorola) 15921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15922 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15923 ;; 15924 esac 15925 runpath_var='LD_RUN_PATH' 15926 hardcode_shlibpath_var=no 15927 ;; 15928 15929 sysv4.3*) 15930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15931 hardcode_shlibpath_var=no 15932 export_dynamic_flag_spec='-Bexport' 15933 ;; 15934 15935 sysv4*MP*) 15936 if test -d /usr/nec; then 15937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15938 hardcode_shlibpath_var=no 15939 runpath_var=LD_RUN_PATH 15940 hardcode_runpath_var=yes 15941 ld_shlibs=yes 15942 fi 15943 ;; 15944 15945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15946 no_undefined_flag='${wl}-z,text' 15947 archive_cmds_need_lc=no 15948 hardcode_shlibpath_var=no 15949 runpath_var='LD_RUN_PATH' 15950 15951 if test "$GCC" = yes; then 15952 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15954 else 15955 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15957 fi 15958 ;; 15959 15960 sysv5* | sco3.2v5* | sco5v6*) 15961 # Note: We can NOT use -z defs as we might desire, because we do not 15962 # link with -lc, and that would cause any symbols used from libc to 15963 # always be unresolved, which means just about no library would 15964 # ever link correctly. If we're not using GNU ld we use -z text 15965 # though, which does catch some bad symbols but isn't as heavy-handed 15966 # as -z defs. 15967 no_undefined_flag='${wl}-z,text' 15968 allow_undefined_flag='${wl}-z,nodefs' 15969 archive_cmds_need_lc=no 15970 hardcode_shlibpath_var=no 15971 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15972 hardcode_libdir_separator=':' 15973 link_all_deplibs=yes 15974 export_dynamic_flag_spec='${wl}-Bexport' 15975 runpath_var='LD_RUN_PATH' 15976 15977 if test "$GCC" = yes; then 15978 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15980 else 15981 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15983 fi 15984 ;; 15985 15986 uts4*) 15987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15988 hardcode_libdir_flag_spec='-L$libdir' 15989 hardcode_shlibpath_var=no 15990 ;; 15991 15992 *) 15993 ld_shlibs=no 15994 ;; 15995 esac 15996 15997 if test x$host_vendor = xsni; then 15998 case $host in 15999 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16000 export_dynamic_flag_spec='${wl}-Blargedynsym' 16001 ;; 16002 esac 16003 fi 16004 fi 16005 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16007$as_echo "$ld_shlibs" >&6; } 16008test "$ld_shlibs" = no && can_build_shared=no 16009 16010with_gnu_ld=$with_gnu_ld 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026# 16027# Do we need to explicitly link libc? 16028# 16029case "x$archive_cmds_need_lc" in 16030x|xyes) 16031 # Assume -lc should be added 16032 archive_cmds_need_lc=yes 16033 16034 if test "$enable_shared" = yes && test "$GCC" = yes; then 16035 case $archive_cmds in 16036 *'~'*) 16037 # FIXME: we may have to deal with multi-command sequences. 16038 ;; 16039 '$CC '*) 16040 # Test whether the compiler implicitly links with -lc since on some 16041 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16042 # to ld, don't add -lc before -lgcc. 16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16044$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16045if ${lt_cv_archive_cmds_need_lc+:} false; then : 16046 $as_echo_n "(cached) " >&6 16047else 16048 $RM conftest* 16049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16050 16051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16052 (eval $ac_compile) 2>&5 16053 ac_status=$? 16054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16055 test $ac_status = 0; } 2>conftest.err; then 16056 soname=conftest 16057 lib=conftest 16058 libobjs=conftest.$ac_objext 16059 deplibs= 16060 wl=$lt_prog_compiler_wl 16061 pic_flag=$lt_prog_compiler_pic 16062 compiler_flags=-v 16063 linker_flags=-v 16064 verstring= 16065 output_objdir=. 16066 libname=conftest 16067 lt_save_allow_undefined_flag=$allow_undefined_flag 16068 allow_undefined_flag= 16069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16070 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16071 ac_status=$? 16072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16073 test $ac_status = 0; } 16074 then 16075 lt_cv_archive_cmds_need_lc=no 16076 else 16077 lt_cv_archive_cmds_need_lc=yes 16078 fi 16079 allow_undefined_flag=$lt_save_allow_undefined_flag 16080 else 16081 cat conftest.err 1>&5 16082 fi 16083 $RM conftest* 16084 16085fi 16086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16087$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16088 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16089 ;; 16090 esac 16091 fi 16092 ;; 16093esac 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16247$as_echo_n "checking dynamic linker characteristics... " >&6; } 16248 16249if test "$GCC" = yes; then 16250 case $host_os in 16251 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16252 *) lt_awk_arg="/^libraries:/" ;; 16253 esac 16254 case $host_os in 16255 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16256 *) lt_sed_strip_eq="s,=/,/,g" ;; 16257 esac 16258 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16259 case $lt_search_path_spec in 16260 *\;*) 16261 # if the path contains ";" then we assume it to be the separator 16262 # otherwise default to the standard path separator (i.e. ":") - it is 16263 # assumed that no part of a normal pathname contains ";" but that should 16264 # okay in the real world where ";" in dirpaths is itself problematic. 16265 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16266 ;; 16267 *) 16268 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16269 ;; 16270 esac 16271 # Ok, now we have the path, separated by spaces, we can step through it 16272 # and add multilib dir if necessary. 16273 lt_tmp_lt_search_path_spec= 16274 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16275 for lt_sys_path in $lt_search_path_spec; do 16276 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16278 else 16279 test -d "$lt_sys_path" && \ 16280 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16281 fi 16282 done 16283 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16284BEGIN {RS=" "; FS="/|\n";} { 16285 lt_foo=""; 16286 lt_count=0; 16287 for (lt_i = NF; lt_i > 0; lt_i--) { 16288 if ($lt_i != "" && $lt_i != ".") { 16289 if ($lt_i == "..") { 16290 lt_count++; 16291 } else { 16292 if (lt_count == 0) { 16293 lt_foo="/" $lt_i lt_foo; 16294 } else { 16295 lt_count--; 16296 } 16297 } 16298 } 16299 } 16300 if (lt_foo != "") { lt_freq[lt_foo]++; } 16301 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16302}'` 16303 # AWK program above erroneously prepends '/' to C:/dos/paths 16304 # for these hosts. 16305 case $host_os in 16306 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16307 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16308 esac 16309 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16310else 16311 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16312fi 16313library_names_spec= 16314libname_spec='lib$name' 16315soname_spec= 16316shrext_cmds=".so" 16317postinstall_cmds= 16318postuninstall_cmds= 16319finish_cmds= 16320finish_eval= 16321shlibpath_var= 16322shlibpath_overrides_runpath=unknown 16323version_type=none 16324dynamic_linker="$host_os ld.so" 16325sys_lib_dlsearch_path_spec="/lib /usr/lib" 16326need_lib_prefix=unknown 16327hardcode_into_libs=no 16328 16329# when you set need_version to no, make sure it does not cause -set_version 16330# flags to be left without arguments 16331need_version=unknown 16332 16333case $host_os in 16334aix3*) 16335 version_type=linux # correct to gnu/linux during the next big refactor 16336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16337 shlibpath_var=LIBPATH 16338 16339 # AIX 3 has no versioning support, so we append a major version to the name. 16340 soname_spec='${libname}${release}${shared_ext}$major' 16341 ;; 16342 16343aix[4-9]*) 16344 version_type=linux # correct to gnu/linux during the next big refactor 16345 need_lib_prefix=no 16346 need_version=no 16347 hardcode_into_libs=yes 16348 if test "$host_cpu" = ia64; then 16349 # AIX 5 supports IA64 16350 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16351 shlibpath_var=LD_LIBRARY_PATH 16352 else 16353 # With GCC up to 2.95.x, collect2 would create an import file 16354 # for dependence libraries. The import file would start with 16355 # the line `#! .'. This would cause the generated library to 16356 # depend on `.', always an invalid library. This was fixed in 16357 # development snapshots of GCC prior to 3.0. 16358 case $host_os in 16359 aix4 | aix4.[01] | aix4.[01].*) 16360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16361 echo ' yes ' 16362 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16363 : 16364 else 16365 can_build_shared=no 16366 fi 16367 ;; 16368 esac 16369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16370 # soname into executable. Probably we can add versioning support to 16371 # collect2, so additional links can be useful in future. 16372 if test "$aix_use_runtimelinking" = yes; then 16373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16374 # instead of lib<name>.a to let people know that these are not 16375 # typical AIX shared libraries. 16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16377 else 16378 # We preserve .a as extension for shared libraries through AIX4.2 16379 # and later when we are not doing run time linking. 16380 library_names_spec='${libname}${release}.a $libname.a' 16381 soname_spec='${libname}${release}${shared_ext}$major' 16382 fi 16383 shlibpath_var=LIBPATH 16384 fi 16385 ;; 16386 16387amigaos*) 16388 case $host_cpu in 16389 powerpc) 16390 # Since July 2007 AmigaOS4 officially supports .so libraries. 16391 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16393 ;; 16394 m68k) 16395 library_names_spec='$libname.ixlibrary $libname.a' 16396 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16397 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' 16398 ;; 16399 esac 16400 ;; 16401 16402beos*) 16403 library_names_spec='${libname}${shared_ext}' 16404 dynamic_linker="$host_os ld.so" 16405 shlibpath_var=LIBRARY_PATH 16406 ;; 16407 16408bsdi[45]*) 16409 version_type=linux # correct to gnu/linux during the next big refactor 16410 need_version=no 16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16412 soname_spec='${libname}${release}${shared_ext}$major' 16413 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16414 shlibpath_var=LD_LIBRARY_PATH 16415 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16416 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16417 # the default ld.so.conf also contains /usr/contrib/lib and 16418 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16419 # libtool to hard-code these into programs 16420 ;; 16421 16422cygwin* | mingw* | pw32* | cegcc*) 16423 version_type=windows 16424 shrext_cmds=".dll" 16425 need_version=no 16426 need_lib_prefix=no 16427 16428 case $GCC,$cc_basename in 16429 yes,*) 16430 # gcc 16431 library_names_spec='$libname.dll.a' 16432 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16433 postinstall_cmds='base_file=`basename \${file}`~ 16434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16435 dldir=$destdir/`dirname \$dlpath`~ 16436 test -d \$dldir || mkdir -p \$dldir~ 16437 $install_prog $dir/$dlname \$dldir/$dlname~ 16438 chmod a+x \$dldir/$dlname~ 16439 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16440 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16441 fi' 16442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16443 dlpath=$dir/\$dldll~ 16444 $RM \$dlpath' 16445 shlibpath_overrides_runpath=yes 16446 16447 case $host_os in 16448 cygwin*) 16449 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16450 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16451 16452 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16453 ;; 16454 mingw* | cegcc*) 16455 # MinGW DLLs use traditional 'lib' prefix 16456 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16457 ;; 16458 pw32*) 16459 # pw32 DLLs use 'pw' prefix rather than 'lib' 16460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16461 ;; 16462 esac 16463 dynamic_linker='Win32 ld.exe' 16464 ;; 16465 16466 *,cl*) 16467 # Native MSVC 16468 libname_spec='$name' 16469 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16470 library_names_spec='${libname}.dll.lib' 16471 16472 case $build_os in 16473 mingw*) 16474 sys_lib_search_path_spec= 16475 lt_save_ifs=$IFS 16476 IFS=';' 16477 for lt_path in $LIB 16478 do 16479 IFS=$lt_save_ifs 16480 # Let DOS variable expansion print the short 8.3 style file name. 16481 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16482 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16483 done 16484 IFS=$lt_save_ifs 16485 # Convert to MSYS style. 16486 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16487 ;; 16488 cygwin*) 16489 # Convert to unix form, then to dos form, then back to unix form 16490 # but this time dos style (no spaces!) so that the unix form looks 16491 # like /cygdrive/c/PROGRA~1:/cygdr... 16492 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16493 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16494 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16495 ;; 16496 *) 16497 sys_lib_search_path_spec="$LIB" 16498 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16499 # It is most probably a Windows format PATH. 16500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16501 else 16502 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16503 fi 16504 # FIXME: find the short name or the path components, as spaces are 16505 # common. (e.g. "Program Files" -> "PROGRA~1") 16506 ;; 16507 esac 16508 16509 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16510 postinstall_cmds='base_file=`basename \${file}`~ 16511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16512 dldir=$destdir/`dirname \$dlpath`~ 16513 test -d \$dldir || mkdir -p \$dldir~ 16514 $install_prog $dir/$dlname \$dldir/$dlname' 16515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16516 dlpath=$dir/\$dldll~ 16517 $RM \$dlpath' 16518 shlibpath_overrides_runpath=yes 16519 dynamic_linker='Win32 link.exe' 16520 ;; 16521 16522 *) 16523 # Assume MSVC wrapper 16524 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16525 dynamic_linker='Win32 ld.exe' 16526 ;; 16527 esac 16528 # FIXME: first we should search . and the directory the executable is in 16529 shlibpath_var=PATH 16530 ;; 16531 16532darwin* | rhapsody*) 16533 dynamic_linker="$host_os dyld" 16534 version_type=darwin 16535 need_lib_prefix=no 16536 need_version=no 16537 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16538 soname_spec='${libname}${release}${major}$shared_ext' 16539 shlibpath_overrides_runpath=yes 16540 shlibpath_var=DYLD_LIBRARY_PATH 16541 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16542 16543 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16544 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16545 ;; 16546 16547dgux*) 16548 version_type=linux # correct to gnu/linux during the next big refactor 16549 need_lib_prefix=no 16550 need_version=no 16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16552 soname_spec='${libname}${release}${shared_ext}$major' 16553 shlibpath_var=LD_LIBRARY_PATH 16554 ;; 16555 16556freebsd* | dragonfly*) 16557 # DragonFly does not have aout. When/if they implement a new 16558 # versioning mechanism, adjust this. 16559 if test -x /usr/bin/objformat; then 16560 objformat=`/usr/bin/objformat` 16561 else 16562 case $host_os in 16563 freebsd[23].*) objformat=aout ;; 16564 *) objformat=elf ;; 16565 esac 16566 fi 16567 version_type=freebsd-$objformat 16568 case $version_type in 16569 freebsd-elf*) 16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16571 need_version=no 16572 need_lib_prefix=no 16573 ;; 16574 freebsd-*) 16575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16576 need_version=yes 16577 ;; 16578 esac 16579 shlibpath_var=LD_LIBRARY_PATH 16580 case $host_os in 16581 freebsd2.*) 16582 shlibpath_overrides_runpath=yes 16583 ;; 16584 freebsd3.[01]* | freebsdelf3.[01]*) 16585 shlibpath_overrides_runpath=yes 16586 hardcode_into_libs=yes 16587 ;; 16588 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16589 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16590 shlibpath_overrides_runpath=no 16591 hardcode_into_libs=yes 16592 ;; 16593 *) # from 4.6 on, and DragonFly 16594 shlibpath_overrides_runpath=yes 16595 hardcode_into_libs=yes 16596 ;; 16597 esac 16598 ;; 16599 16600gnu*) 16601 version_type=linux # correct to gnu/linux during the next big refactor 16602 need_lib_prefix=no 16603 need_version=no 16604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16605 soname_spec='${libname}${release}${shared_ext}$major' 16606 shlibpath_var=LD_LIBRARY_PATH 16607 shlibpath_overrides_runpath=no 16608 hardcode_into_libs=yes 16609 ;; 16610 16611haiku*) 16612 version_type=linux # correct to gnu/linux during the next big refactor 16613 need_lib_prefix=no 16614 need_version=no 16615 dynamic_linker="$host_os runtime_loader" 16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16617 soname_spec='${libname}${release}${shared_ext}$major' 16618 shlibpath_var=LIBRARY_PATH 16619 shlibpath_overrides_runpath=yes 16620 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16621 hardcode_into_libs=yes 16622 ;; 16623 16624hpux9* | hpux10* | hpux11*) 16625 # Give a soname corresponding to the major version so that dld.sl refuses to 16626 # link against other versions. 16627 version_type=sunos 16628 need_lib_prefix=no 16629 need_version=no 16630 case $host_cpu in 16631 ia64*) 16632 shrext_cmds='.so' 16633 hardcode_into_libs=yes 16634 dynamic_linker="$host_os dld.so" 16635 shlibpath_var=LD_LIBRARY_PATH 16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16638 soname_spec='${libname}${release}${shared_ext}$major' 16639 if test "X$HPUX_IA64_MODE" = X32; then 16640 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16641 else 16642 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16643 fi 16644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16645 ;; 16646 hppa*64*) 16647 shrext_cmds='.sl' 16648 hardcode_into_libs=yes 16649 dynamic_linker="$host_os dld.sl" 16650 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16653 soname_spec='${libname}${release}${shared_ext}$major' 16654 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16656 ;; 16657 *) 16658 shrext_cmds='.sl' 16659 dynamic_linker="$host_os dld.sl" 16660 shlibpath_var=SHLIB_PATH 16661 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16663 soname_spec='${libname}${release}${shared_ext}$major' 16664 ;; 16665 esac 16666 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16667 postinstall_cmds='chmod 555 $lib' 16668 # or fails outright, so override atomically: 16669 install_override_mode=555 16670 ;; 16671 16672interix[3-9]*) 16673 version_type=linux # correct to gnu/linux during the next big refactor 16674 need_lib_prefix=no 16675 need_version=no 16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16677 soname_spec='${libname}${release}${shared_ext}$major' 16678 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16679 shlibpath_var=LD_LIBRARY_PATH 16680 shlibpath_overrides_runpath=no 16681 hardcode_into_libs=yes 16682 ;; 16683 16684irix5* | irix6* | nonstopux*) 16685 case $host_os in 16686 nonstopux*) version_type=nonstopux ;; 16687 *) 16688 if test "$lt_cv_prog_gnu_ld" = yes; then 16689 version_type=linux # correct to gnu/linux during the next big refactor 16690 else 16691 version_type=irix 16692 fi ;; 16693 esac 16694 need_lib_prefix=no 16695 need_version=no 16696 soname_spec='${libname}${release}${shared_ext}$major' 16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16698 case $host_os in 16699 irix5* | nonstopux*) 16700 libsuff= shlibsuff= 16701 ;; 16702 *) 16703 case $LD in # libtool.m4 will add one of these switches to LD 16704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16705 libsuff= shlibsuff= libmagic=32-bit;; 16706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16707 libsuff=32 shlibsuff=N32 libmagic=N32;; 16708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16709 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16710 *) libsuff= shlibsuff= libmagic=never-match;; 16711 esac 16712 ;; 16713 esac 16714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16715 shlibpath_overrides_runpath=no 16716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16718 hardcode_into_libs=yes 16719 ;; 16720 16721# No shared lib support for Linux oldld, aout, or coff. 16722linux*oldld* | linux*aout* | linux*coff*) 16723 dynamic_linker=no 16724 ;; 16725 16726# This must be glibc/ELF. 16727linux* | k*bsd*-gnu | kopensolaris*-gnu) 16728 version_type=linux # correct to gnu/linux during the next big refactor 16729 need_lib_prefix=no 16730 need_version=no 16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16732 soname_spec='${libname}${release}${shared_ext}$major' 16733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16734 shlibpath_var=LD_LIBRARY_PATH 16735 shlibpath_overrides_runpath=no 16736 16737 # Some binutils ld are patched to set DT_RUNPATH 16738 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16739 $as_echo_n "(cached) " >&6 16740else 16741 lt_cv_shlibpath_overrides_runpath=no 16742 save_LDFLAGS=$LDFLAGS 16743 save_libdir=$libdir 16744 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16745 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16747/* end confdefs.h. */ 16748 16749int 16750main () 16751{ 16752 16753 ; 16754 return 0; 16755} 16756_ACEOF 16757if ac_fn_c_try_link "$LINENO"; then : 16758 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16759 lt_cv_shlibpath_overrides_runpath=yes 16760fi 16761fi 16762rm -f core conftest.err conftest.$ac_objext \ 16763 conftest$ac_exeext conftest.$ac_ext 16764 LDFLAGS=$save_LDFLAGS 16765 libdir=$save_libdir 16766 16767fi 16768 16769 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16770 16771 # This implies no fast_install, which is unacceptable. 16772 # Some rework will be needed to allow for fast_install 16773 # before this can be enabled. 16774 hardcode_into_libs=yes 16775 16776 # Add ABI-specific directories to the system library path. 16777 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16778 16779 # Append ld.so.conf contents to the search path 16780 if test -f /etc/ld.so.conf; then 16781 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' ' '` 16782 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16783 16784 fi 16785 16786 # We used to test for /lib/ld.so.1 and disable shared libraries on 16787 # powerpc, because MkLinux only supported shared libraries with the 16788 # GNU dynamic linker. Since this was broken with cross compilers, 16789 # most powerpc-linux boxes support dynamic linking these days and 16790 # people can always --disable-shared, the test was removed, and we 16791 # assume the GNU/Linux dynamic linker is in use. 16792 dynamic_linker='GNU/Linux ld.so' 16793 ;; 16794 16795netbsd*) 16796 version_type=sunos 16797 need_lib_prefix=no 16798 need_version=no 16799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16802 dynamic_linker='NetBSD (a.out) ld.so' 16803 else 16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16805 soname_spec='${libname}${release}${shared_ext}$major' 16806 dynamic_linker='NetBSD ld.elf_so' 16807 fi 16808 shlibpath_var=LD_LIBRARY_PATH 16809 shlibpath_overrides_runpath=yes 16810 hardcode_into_libs=yes 16811 ;; 16812 16813newsos6) 16814 version_type=linux # correct to gnu/linux during the next big refactor 16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16816 shlibpath_var=LD_LIBRARY_PATH 16817 shlibpath_overrides_runpath=yes 16818 ;; 16819 16820*nto* | *qnx*) 16821 version_type=qnx 16822 need_lib_prefix=no 16823 need_version=no 16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16825 soname_spec='${libname}${release}${shared_ext}$major' 16826 shlibpath_var=LD_LIBRARY_PATH 16827 shlibpath_overrides_runpath=no 16828 hardcode_into_libs=yes 16829 dynamic_linker='ldqnx.so' 16830 ;; 16831 16832openbsd*) 16833 version_type=sunos 16834 sys_lib_dlsearch_path_spec="/usr/lib" 16835 need_lib_prefix=no 16836 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16837 case $host_os in 16838 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16839 *) need_version=no ;; 16840 esac 16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16843 shlibpath_var=LD_LIBRARY_PATH 16844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16845 case $host_os in 16846 openbsd2.[89] | openbsd2.[89].*) 16847 shlibpath_overrides_runpath=no 16848 ;; 16849 *) 16850 shlibpath_overrides_runpath=yes 16851 ;; 16852 esac 16853 else 16854 shlibpath_overrides_runpath=yes 16855 fi 16856 ;; 16857 16858os2*) 16859 libname_spec='$name' 16860 shrext_cmds=".dll" 16861 need_lib_prefix=no 16862 library_names_spec='$libname${shared_ext} $libname.a' 16863 dynamic_linker='OS/2 ld.exe' 16864 shlibpath_var=LIBPATH 16865 ;; 16866 16867osf3* | osf4* | osf5*) 16868 version_type=osf 16869 need_lib_prefix=no 16870 need_version=no 16871 soname_spec='${libname}${release}${shared_ext}$major' 16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16873 shlibpath_var=LD_LIBRARY_PATH 16874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16875 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16876 ;; 16877 16878rdos*) 16879 dynamic_linker=no 16880 ;; 16881 16882solaris*) 16883 version_type=linux # correct to gnu/linux during the next big refactor 16884 need_lib_prefix=no 16885 need_version=no 16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16887 soname_spec='${libname}${release}${shared_ext}$major' 16888 shlibpath_var=LD_LIBRARY_PATH 16889 shlibpath_overrides_runpath=yes 16890 hardcode_into_libs=yes 16891 # ldd complains unless libraries are executable 16892 postinstall_cmds='chmod +x $lib' 16893 ;; 16894 16895sunos4*) 16896 version_type=sunos 16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16899 shlibpath_var=LD_LIBRARY_PATH 16900 shlibpath_overrides_runpath=yes 16901 if test "$with_gnu_ld" = yes; then 16902 need_lib_prefix=no 16903 fi 16904 need_version=yes 16905 ;; 16906 16907sysv4 | sysv4.3*) 16908 version_type=linux # correct to gnu/linux during the next big refactor 16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16910 soname_spec='${libname}${release}${shared_ext}$major' 16911 shlibpath_var=LD_LIBRARY_PATH 16912 case $host_vendor in 16913 sni) 16914 shlibpath_overrides_runpath=no 16915 need_lib_prefix=no 16916 runpath_var=LD_RUN_PATH 16917 ;; 16918 siemens) 16919 need_lib_prefix=no 16920 ;; 16921 motorola) 16922 need_lib_prefix=no 16923 need_version=no 16924 shlibpath_overrides_runpath=no 16925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16926 ;; 16927 esac 16928 ;; 16929 16930sysv4*MP*) 16931 if test -d /usr/nec ;then 16932 version_type=linux # correct to gnu/linux during the next big refactor 16933 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16934 soname_spec='$libname${shared_ext}.$major' 16935 shlibpath_var=LD_LIBRARY_PATH 16936 fi 16937 ;; 16938 16939sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16940 version_type=freebsd-elf 16941 need_lib_prefix=no 16942 need_version=no 16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16944 soname_spec='${libname}${release}${shared_ext}$major' 16945 shlibpath_var=LD_LIBRARY_PATH 16946 shlibpath_overrides_runpath=yes 16947 hardcode_into_libs=yes 16948 if test "$with_gnu_ld" = yes; then 16949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16950 else 16951 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16952 case $host_os in 16953 sco3.2v5*) 16954 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16955 ;; 16956 esac 16957 fi 16958 sys_lib_dlsearch_path_spec='/usr/lib' 16959 ;; 16960 16961tpf*) 16962 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16963 version_type=linux # correct to gnu/linux during the next big refactor 16964 need_lib_prefix=no 16965 need_version=no 16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16967 shlibpath_var=LD_LIBRARY_PATH 16968 shlibpath_overrides_runpath=no 16969 hardcode_into_libs=yes 16970 ;; 16971 16972uts4*) 16973 version_type=linux # correct to gnu/linux during the next big refactor 16974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16975 soname_spec='${libname}${release}${shared_ext}$major' 16976 shlibpath_var=LD_LIBRARY_PATH 16977 ;; 16978 16979*) 16980 dynamic_linker=no 16981 ;; 16982esac 16983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16984$as_echo "$dynamic_linker" >&6; } 16985test "$dynamic_linker" = no && can_build_shared=no 16986 16987variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16988if test "$GCC" = yes; then 16989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16990fi 16991 16992if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16993 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16994fi 16995if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16996 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16997fi 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17091$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17092hardcode_action= 17093if test -n "$hardcode_libdir_flag_spec" || 17094 test -n "$runpath_var" || 17095 test "X$hardcode_automatic" = "Xyes" ; then 17096 17097 # We can hardcode non-existent directories. 17098 if test "$hardcode_direct" != no && 17099 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17100 # have to relink, otherwise we might link with an installed library 17101 # when we should be linking with a yet-to-be-installed one 17102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17103 test "$hardcode_minus_L" != no; then 17104 # Linking always hardcodes the temporary library directory. 17105 hardcode_action=relink 17106 else 17107 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17108 hardcode_action=immediate 17109 fi 17110else 17111 # We cannot hardcode anything, or else we can only hardcode existing 17112 # directories. 17113 hardcode_action=unsupported 17114fi 17115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17116$as_echo "$hardcode_action" >&6; } 17117 17118if test "$hardcode_action" = relink || 17119 test "$inherit_rpath" = yes; then 17120 # Fast installation is not supported 17121 enable_fast_install=no 17122elif test "$shlibpath_overrides_runpath" = yes || 17123 test "$enable_shared" = no; then 17124 # Fast installation is not necessary 17125 enable_fast_install=needless 17126fi 17127 17128 17129 17130 17131 17132 17133 if test "x$enable_dlopen" != xyes; then 17134 enable_dlopen=unknown 17135 enable_dlopen_self=unknown 17136 enable_dlopen_self_static=unknown 17137else 17138 lt_cv_dlopen=no 17139 lt_cv_dlopen_libs= 17140 17141 case $host_os in 17142 beos*) 17143 lt_cv_dlopen="load_add_on" 17144 lt_cv_dlopen_libs= 17145 lt_cv_dlopen_self=yes 17146 ;; 17147 17148 mingw* | pw32* | cegcc*) 17149 lt_cv_dlopen="LoadLibrary" 17150 lt_cv_dlopen_libs= 17151 ;; 17152 17153 cygwin*) 17154 lt_cv_dlopen="dlopen" 17155 lt_cv_dlopen_libs= 17156 ;; 17157 17158 darwin*) 17159 # if libdl is installed we need to link against it 17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17161$as_echo_n "checking for dlopen in -ldl... " >&6; } 17162if ${ac_cv_lib_dl_dlopen+:} false; then : 17163 $as_echo_n "(cached) " >&6 17164else 17165 ac_check_lib_save_LIBS=$LIBS 17166LIBS="-ldl $LIBS" 17167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17168/* end confdefs.h. */ 17169 17170/* Override any GCC internal prototype to avoid an error. 17171 Use char because int might match the return type of a GCC 17172 builtin and then its argument prototype would still apply. */ 17173#ifdef __cplusplus 17174extern "C" 17175#endif 17176char dlopen (); 17177int 17178main () 17179{ 17180return dlopen (); 17181 ; 17182 return 0; 17183} 17184_ACEOF 17185if ac_fn_c_try_link "$LINENO"; then : 17186 ac_cv_lib_dl_dlopen=yes 17187else 17188 ac_cv_lib_dl_dlopen=no 17189fi 17190rm -f core conftest.err conftest.$ac_objext \ 17191 conftest$ac_exeext conftest.$ac_ext 17192LIBS=$ac_check_lib_save_LIBS 17193fi 17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17195$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17196if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17198else 17199 17200 lt_cv_dlopen="dyld" 17201 lt_cv_dlopen_libs= 17202 lt_cv_dlopen_self=yes 17203 17204fi 17205 17206 ;; 17207 17208 *) 17209 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17210if test "x$ac_cv_func_shl_load" = xyes; then : 17211 lt_cv_dlopen="shl_load" 17212else 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17214$as_echo_n "checking for shl_load in -ldld... " >&6; } 17215if ${ac_cv_lib_dld_shl_load+:} false; then : 17216 $as_echo_n "(cached) " >&6 17217else 17218 ac_check_lib_save_LIBS=$LIBS 17219LIBS="-ldld $LIBS" 17220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17221/* end confdefs.h. */ 17222 17223/* Override any GCC internal prototype to avoid an error. 17224 Use char because int might match the return type of a GCC 17225 builtin and then its argument prototype would still apply. */ 17226#ifdef __cplusplus 17227extern "C" 17228#endif 17229char shl_load (); 17230int 17231main () 17232{ 17233return shl_load (); 17234 ; 17235 return 0; 17236} 17237_ACEOF 17238if ac_fn_c_try_link "$LINENO"; then : 17239 ac_cv_lib_dld_shl_load=yes 17240else 17241 ac_cv_lib_dld_shl_load=no 17242fi 17243rm -f core conftest.err conftest.$ac_objext \ 17244 conftest$ac_exeext conftest.$ac_ext 17245LIBS=$ac_check_lib_save_LIBS 17246fi 17247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17248$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17249if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17250 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17251else 17252 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17253if test "x$ac_cv_func_dlopen" = xyes; then : 17254 lt_cv_dlopen="dlopen" 17255else 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17257$as_echo_n "checking for dlopen in -ldl... " >&6; } 17258if ${ac_cv_lib_dl_dlopen+:} false; then : 17259 $as_echo_n "(cached) " >&6 17260else 17261 ac_check_lib_save_LIBS=$LIBS 17262LIBS="-ldl $LIBS" 17263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17264/* end confdefs.h. */ 17265 17266/* Override any GCC internal prototype to avoid an error. 17267 Use char because int might match the return type of a GCC 17268 builtin and then its argument prototype would still apply. */ 17269#ifdef __cplusplus 17270extern "C" 17271#endif 17272char dlopen (); 17273int 17274main () 17275{ 17276return dlopen (); 17277 ; 17278 return 0; 17279} 17280_ACEOF 17281if ac_fn_c_try_link "$LINENO"; then : 17282 ac_cv_lib_dl_dlopen=yes 17283else 17284 ac_cv_lib_dl_dlopen=no 17285fi 17286rm -f core conftest.err conftest.$ac_objext \ 17287 conftest$ac_exeext conftest.$ac_ext 17288LIBS=$ac_check_lib_save_LIBS 17289fi 17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17291$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17292if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17294else 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17296$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17297if ${ac_cv_lib_svld_dlopen+:} false; then : 17298 $as_echo_n "(cached) " >&6 17299else 17300 ac_check_lib_save_LIBS=$LIBS 17301LIBS="-lsvld $LIBS" 17302cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17303/* end confdefs.h. */ 17304 17305/* Override any GCC internal prototype to avoid an error. 17306 Use char because int might match the return type of a GCC 17307 builtin and then its argument prototype would still apply. */ 17308#ifdef __cplusplus 17309extern "C" 17310#endif 17311char dlopen (); 17312int 17313main () 17314{ 17315return dlopen (); 17316 ; 17317 return 0; 17318} 17319_ACEOF 17320if ac_fn_c_try_link "$LINENO"; then : 17321 ac_cv_lib_svld_dlopen=yes 17322else 17323 ac_cv_lib_svld_dlopen=no 17324fi 17325rm -f core conftest.err conftest.$ac_objext \ 17326 conftest$ac_exeext conftest.$ac_ext 17327LIBS=$ac_check_lib_save_LIBS 17328fi 17329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17330$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17331if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17333else 17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17335$as_echo_n "checking for dld_link in -ldld... " >&6; } 17336if ${ac_cv_lib_dld_dld_link+:} false; then : 17337 $as_echo_n "(cached) " >&6 17338else 17339 ac_check_lib_save_LIBS=$LIBS 17340LIBS="-ldld $LIBS" 17341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17342/* end confdefs.h. */ 17343 17344/* Override any GCC internal prototype to avoid an error. 17345 Use char because int might match the return type of a GCC 17346 builtin and then its argument prototype would still apply. */ 17347#ifdef __cplusplus 17348extern "C" 17349#endif 17350char dld_link (); 17351int 17352main () 17353{ 17354return dld_link (); 17355 ; 17356 return 0; 17357} 17358_ACEOF 17359if ac_fn_c_try_link "$LINENO"; then : 17360 ac_cv_lib_dld_dld_link=yes 17361else 17362 ac_cv_lib_dld_dld_link=no 17363fi 17364rm -f core conftest.err conftest.$ac_objext \ 17365 conftest$ac_exeext conftest.$ac_ext 17366LIBS=$ac_check_lib_save_LIBS 17367fi 17368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17369$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17370if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17371 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17372fi 17373 17374 17375fi 17376 17377 17378fi 17379 17380 17381fi 17382 17383 17384fi 17385 17386 17387fi 17388 17389 ;; 17390 esac 17391 17392 if test "x$lt_cv_dlopen" != xno; then 17393 enable_dlopen=yes 17394 else 17395 enable_dlopen=no 17396 fi 17397 17398 case $lt_cv_dlopen in 17399 dlopen) 17400 save_CPPFLAGS="$CPPFLAGS" 17401 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17402 17403 save_LDFLAGS="$LDFLAGS" 17404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17405 17406 save_LIBS="$LIBS" 17407 LIBS="$lt_cv_dlopen_libs $LIBS" 17408 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17410$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17411if ${lt_cv_dlopen_self+:} false; then : 17412 $as_echo_n "(cached) " >&6 17413else 17414 if test "$cross_compiling" = yes; then : 17415 lt_cv_dlopen_self=cross 17416else 17417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17418 lt_status=$lt_dlunknown 17419 cat > conftest.$ac_ext <<_LT_EOF 17420#line $LINENO "configure" 17421#include "confdefs.h" 17422 17423#if HAVE_DLFCN_H 17424#include <dlfcn.h> 17425#endif 17426 17427#include <stdio.h> 17428 17429#ifdef RTLD_GLOBAL 17430# define LT_DLGLOBAL RTLD_GLOBAL 17431#else 17432# ifdef DL_GLOBAL 17433# define LT_DLGLOBAL DL_GLOBAL 17434# else 17435# define LT_DLGLOBAL 0 17436# endif 17437#endif 17438 17439/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17440 find out it does not work in some platform. */ 17441#ifndef LT_DLLAZY_OR_NOW 17442# ifdef RTLD_LAZY 17443# define LT_DLLAZY_OR_NOW RTLD_LAZY 17444# else 17445# ifdef DL_LAZY 17446# define LT_DLLAZY_OR_NOW DL_LAZY 17447# else 17448# ifdef RTLD_NOW 17449# define LT_DLLAZY_OR_NOW RTLD_NOW 17450# else 17451# ifdef DL_NOW 17452# define LT_DLLAZY_OR_NOW DL_NOW 17453# else 17454# define LT_DLLAZY_OR_NOW 0 17455# endif 17456# endif 17457# endif 17458# endif 17459#endif 17460 17461/* When -fvisbility=hidden is used, assume the code has been annotated 17462 correspondingly for the symbols needed. */ 17463#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17464int fnord () __attribute__((visibility("default"))); 17465#endif 17466 17467int fnord () { return 42; } 17468int main () 17469{ 17470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17471 int status = $lt_dlunknown; 17472 17473 if (self) 17474 { 17475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17476 else 17477 { 17478 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17479 else puts (dlerror ()); 17480 } 17481 /* dlclose (self); */ 17482 } 17483 else 17484 puts (dlerror ()); 17485 17486 return status; 17487} 17488_LT_EOF 17489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17490 (eval $ac_link) 2>&5 17491 ac_status=$? 17492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17493 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17494 (./conftest; exit; ) >&5 2>/dev/null 17495 lt_status=$? 17496 case x$lt_status in 17497 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17498 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17499 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17500 esac 17501 else : 17502 # compilation failed 17503 lt_cv_dlopen_self=no 17504 fi 17505fi 17506rm -fr conftest* 17507 17508 17509fi 17510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17511$as_echo "$lt_cv_dlopen_self" >&6; } 17512 17513 if test "x$lt_cv_dlopen_self" = xyes; then 17514 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17516$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17517if ${lt_cv_dlopen_self_static+:} false; then : 17518 $as_echo_n "(cached) " >&6 17519else 17520 if test "$cross_compiling" = yes; then : 17521 lt_cv_dlopen_self_static=cross 17522else 17523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17524 lt_status=$lt_dlunknown 17525 cat > conftest.$ac_ext <<_LT_EOF 17526#line $LINENO "configure" 17527#include "confdefs.h" 17528 17529#if HAVE_DLFCN_H 17530#include <dlfcn.h> 17531#endif 17532 17533#include <stdio.h> 17534 17535#ifdef RTLD_GLOBAL 17536# define LT_DLGLOBAL RTLD_GLOBAL 17537#else 17538# ifdef DL_GLOBAL 17539# define LT_DLGLOBAL DL_GLOBAL 17540# else 17541# define LT_DLGLOBAL 0 17542# endif 17543#endif 17544 17545/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17546 find out it does not work in some platform. */ 17547#ifndef LT_DLLAZY_OR_NOW 17548# ifdef RTLD_LAZY 17549# define LT_DLLAZY_OR_NOW RTLD_LAZY 17550# else 17551# ifdef DL_LAZY 17552# define LT_DLLAZY_OR_NOW DL_LAZY 17553# else 17554# ifdef RTLD_NOW 17555# define LT_DLLAZY_OR_NOW RTLD_NOW 17556# else 17557# ifdef DL_NOW 17558# define LT_DLLAZY_OR_NOW DL_NOW 17559# else 17560# define LT_DLLAZY_OR_NOW 0 17561# endif 17562# endif 17563# endif 17564# endif 17565#endif 17566 17567/* When -fvisbility=hidden is used, assume the code has been annotated 17568 correspondingly for the symbols needed. */ 17569#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17570int fnord () __attribute__((visibility("default"))); 17571#endif 17572 17573int fnord () { return 42; } 17574int main () 17575{ 17576 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17577 int status = $lt_dlunknown; 17578 17579 if (self) 17580 { 17581 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17582 else 17583 { 17584 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17585 else puts (dlerror ()); 17586 } 17587 /* dlclose (self); */ 17588 } 17589 else 17590 puts (dlerror ()); 17591 17592 return status; 17593} 17594_LT_EOF 17595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17596 (eval $ac_link) 2>&5 17597 ac_status=$? 17598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17599 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17600 (./conftest; exit; ) >&5 2>/dev/null 17601 lt_status=$? 17602 case x$lt_status in 17603 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17604 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17605 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17606 esac 17607 else : 17608 # compilation failed 17609 lt_cv_dlopen_self_static=no 17610 fi 17611fi 17612rm -fr conftest* 17613 17614 17615fi 17616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17617$as_echo "$lt_cv_dlopen_self_static" >&6; } 17618 fi 17619 17620 CPPFLAGS="$save_CPPFLAGS" 17621 LDFLAGS="$save_LDFLAGS" 17622 LIBS="$save_LIBS" 17623 ;; 17624 esac 17625 17626 case $lt_cv_dlopen_self in 17627 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17628 *) enable_dlopen_self=unknown ;; 17629 esac 17630 17631 case $lt_cv_dlopen_self_static in 17632 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17633 *) enable_dlopen_self_static=unknown ;; 17634 esac 17635fi 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653striplib= 17654old_striplib= 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17656$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17657if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17658 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17659 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17661$as_echo "yes" >&6; } 17662else 17663# FIXME - insert some real tests, host_os isn't really good enough 17664 case $host_os in 17665 darwin*) 17666 if test -n "$STRIP" ; then 17667 striplib="$STRIP -x" 17668 old_striplib="$STRIP -S" 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17670$as_echo "yes" >&6; } 17671 else 17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17673$as_echo "no" >&6; } 17674 fi 17675 ;; 17676 *) 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17678$as_echo "no" >&6; } 17679 ;; 17680 esac 17681fi 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 # Report which library types will actually be built 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17696$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17698$as_echo "$can_build_shared" >&6; } 17699 17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17701$as_echo_n "checking whether to build shared libraries... " >&6; } 17702 test "$can_build_shared" = "no" && enable_shared=no 17703 17704 # On AIX, shared libraries and static libraries use the same namespace, and 17705 # are all built from PIC. 17706 case $host_os in 17707 aix3*) 17708 test "$enable_shared" = yes && enable_static=no 17709 if test -n "$RANLIB"; then 17710 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17711 postinstall_cmds='$RANLIB $lib' 17712 fi 17713 ;; 17714 17715 aix[4-9]*) 17716 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17717 test "$enable_shared" = yes && enable_static=no 17718 fi 17719 ;; 17720 esac 17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17722$as_echo "$enable_shared" >&6; } 17723 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17725$as_echo_n "checking whether to build static libraries... " >&6; } 17726 # Make sure either enable_shared or enable_static is yes. 17727 test "$enable_shared" = yes || enable_static=yes 17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17729$as_echo "$enable_static" >&6; } 17730 17731 17732 17733 17734fi 17735ac_ext=c 17736ac_cpp='$CPP $CPPFLAGS' 17737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17739ac_compiler_gnu=$ac_cv_c_compiler_gnu 17740 17741CC="$lt_save_CC" 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 ac_config_commands="$ac_config_commands libtool" 17758 17759 17760 17761 17762# Only expand once: 17763 17764 17765 17766if test "x$GCC" = "xyes"; then 17767 CPPFLAGS="$CPPFLAGS -Wall" 17768fi 17769 17770 17771 17772# Define a configure option for an alternate module directory 17773 17774# Check whether --with-xorg-module-dir was given. 17775if test "${with_xorg_module_dir+set}" = set; then : 17776 withval=$with_xorg_module_dir; moduledir="$withval" 17777else 17778 moduledir="$libdir/xorg/modules" 17779fi 17780 17781 17782# Check whether --enable-dri was given. 17783if test "${enable_dri+set}" = set; then : 17784 enableval=$enable_dri; DRI="$enableval" 17785else 17786 DRI=auto 17787fi 17788 17789 17790# Check whether --enable-exa was given. 17791if test "${enable_exa+set}" = set; then : 17792 enableval=$enable_exa; EXA="$enableval" 17793else 17794 EXA=yes 17795fi 17796 17797 17798# Store the list of server defined optional extensions in REQUIRED_MODULES 17799 17800 17801 SAVE_CFLAGS="$CFLAGS" 17802 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17804/* end confdefs.h. */ 17805 17806#include "xorg-server.h" 17807#if !defined RANDR 17808#error RANDR not defined 17809#endif 17810 17811int 17812main () 17813{ 17814 17815 ; 17816 return 0; 17817} 17818_ACEOF 17819if ac_fn_c_try_compile "$LINENO"; then : 17820 _EXT_CHECK=yes 17821else 17822 _EXT_CHECK=no 17823fi 17824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17825 CFLAGS="$SAVE_CFLAGS" 17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 17827$as_echo_n "checking if RANDR is defined... " >&6; } 17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17829$as_echo "$_EXT_CHECK" >&6; } 17830 if test "$_EXT_CHECK" != no; then 17831 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 17832 fi 17833 17834 17835 17836 SAVE_CFLAGS="$CFLAGS" 17837 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17839/* end confdefs.h. */ 17840 17841#include "xorg-server.h" 17842#if !defined RENDER 17843#error RENDER not defined 17844#endif 17845 17846int 17847main () 17848{ 17849 17850 ; 17851 return 0; 17852} 17853_ACEOF 17854if ac_fn_c_try_compile "$LINENO"; then : 17855 _EXT_CHECK=yes 17856else 17857 _EXT_CHECK=no 17858fi 17859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17860 CFLAGS="$SAVE_CFLAGS" 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 17862$as_echo_n "checking if RENDER is defined... " >&6; } 17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17864$as_echo "$_EXT_CHECK" >&6; } 17865 if test "$_EXT_CHECK" != no; then 17866 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 17867 fi 17868 17869 17870 17871 SAVE_CFLAGS="$CFLAGS" 17872 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17874/* end confdefs.h. */ 17875 17876#include "xorg-server.h" 17877#if !defined XV 17878#error XV not defined 17879#endif 17880 17881int 17882main () 17883{ 17884 17885 ; 17886 return 0; 17887} 17888_ACEOF 17889if ac_fn_c_try_compile "$LINENO"; then : 17890 _EXT_CHECK=yes 17891else 17892 _EXT_CHECK=no 17893fi 17894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17895 CFLAGS="$SAVE_CFLAGS" 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 17897$as_echo_n "checking if XV is defined... " >&6; } 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17899$as_echo "$_EXT_CHECK" >&6; } 17900 if test "$_EXT_CHECK" != no; then 17901 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 17902 fi 17903 17904 17905 17906 SAVE_CFLAGS="$CFLAGS" 17907 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17909/* end confdefs.h. */ 17910 17911#include "xorg-server.h" 17912#if !defined XF86MISC 17913#error XF86MISC not defined 17914#endif 17915 17916int 17917main () 17918{ 17919 17920 ; 17921 return 0; 17922} 17923_ACEOF 17924if ac_fn_c_try_compile "$LINENO"; then : 17925 _EXT_CHECK=yes 17926else 17927 _EXT_CHECK=no 17928fi 17929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17930 CFLAGS="$SAVE_CFLAGS" 17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86MISC is defined" >&5 17932$as_echo_n "checking if XF86MISC is defined... " >&6; } 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17934$as_echo "$_EXT_CHECK" >&6; } 17935 if test "$_EXT_CHECK" != no; then 17936 REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto" 17937 fi 17938 17939 17940 17941 SAVE_CFLAGS="$CFLAGS" 17942 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17944/* end confdefs.h. */ 17945 17946#include "xorg-server.h" 17947#if !defined DPMSExtension 17948#error DPMSExtension not defined 17949#endif 17950 17951int 17952main () 17953{ 17954 17955 ; 17956 return 0; 17957} 17958_ACEOF 17959if ac_fn_c_try_compile "$LINENO"; then : 17960 _EXT_CHECK=yes 17961else 17962 _EXT_CHECK=no 17963fi 17964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17965 CFLAGS="$SAVE_CFLAGS" 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 17967$as_echo_n "checking if DPMSExtension is defined... " >&6; } 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17969$as_echo "$_EXT_CHECK" >&6; } 17970 if test "$_EXT_CHECK" != no; then 17971 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 17972 fi 17973 17974 17975# Obtain compiler/linker options for the driver dependencies 17976 17977pkg_failed=no 17978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 17979$as_echo_n "checking for XORG... " >&6; } 17980 17981if test -n "$XORG_CFLAGS"; then 17982 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 17983 elif test -n "$PKG_CONFIG"; then 17984 if test -n "$PKG_CONFIG" && \ 17985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17986 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 17987 ac_status=$? 17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17989 test $ac_status = 0; }; then 17990 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17991else 17992 pkg_failed=yes 17993fi 17994 else 17995 pkg_failed=untried 17996fi 17997if test -n "$XORG_LIBS"; then 17998 pkg_cv_XORG_LIBS="$XORG_LIBS" 17999 elif test -n "$PKG_CONFIG"; then 18000 if test -n "$PKG_CONFIG" && \ 18001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18002 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 18003 ac_status=$? 18004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18005 test $ac_status = 0; }; then 18006 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18007else 18008 pkg_failed=yes 18009fi 18010 else 18011 pkg_failed=untried 18012fi 18013 18014 18015 18016if test $pkg_failed = yes; then 18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18018$as_echo "no" >&6; } 18019 18020if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18021 _pkg_short_errors_supported=yes 18022else 18023 _pkg_short_errors_supported=no 18024fi 18025 if test $_pkg_short_errors_supported = yes; then 18026 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18027 else 18028 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18029 fi 18030 # Put the nasty error message in config.log where it belongs 18031 echo "$XORG_PKG_ERRORS" >&5 18032 18033 as_fn_error $? "Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met: 18034 18035$XORG_PKG_ERRORS 18036 18037Consider adjusting the PKG_CONFIG_PATH environment variable if you 18038installed software in a non-standard prefix. 18039 18040Alternatively, you may set the environment variables XORG_CFLAGS 18041and XORG_LIBS to avoid the need to call pkg-config. 18042See the pkg-config man page for more details." "$LINENO" 5 18043 18044elif test $pkg_failed = untried; then 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18046$as_echo "no" >&6; } 18047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18049as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18050is in your PATH or set the PKG_CONFIG environment variable to the full 18051path to pkg-config. 18052 18053Alternatively, you may set the environment variables XORG_CFLAGS 18054and XORG_LIBS to avoid the need to call pkg-config. 18055See the pkg-config man page for more details. 18056 18057To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18058See \`config.log' for more details" "$LINENO" 5; } 18059 18060else 18061 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18062 XORG_LIBS=$pkg_cv_XORG_LIBS 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18064$as_echo "yes" >&6; } 18065 18066fi 18067 18068pkg_failed=no 18069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18070$as_echo_n "checking for XEXT... " >&6; } 18071 18072if test -n "$XEXT_CFLAGS"; then 18073 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18074 elif test -n "$PKG_CONFIG"; then 18075 if test -n "$PKG_CONFIG" && \ 18076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18077 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18078 ac_status=$? 18079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18080 test $ac_status = 0; }; then 18081 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 18082else 18083 pkg_failed=yes 18084fi 18085 else 18086 pkg_failed=untried 18087fi 18088if test -n "$XEXT_LIBS"; then 18089 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18090 elif test -n "$PKG_CONFIG"; then 18091 if test -n "$PKG_CONFIG" && \ 18092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18093 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18094 ac_status=$? 18095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18096 test $ac_status = 0; }; then 18097 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 18098else 18099 pkg_failed=yes 18100fi 18101 else 18102 pkg_failed=untried 18103fi 18104 18105 18106 18107if test $pkg_failed = yes; then 18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18109$as_echo "no" >&6; } 18110 18111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18112 _pkg_short_errors_supported=yes 18113else 18114 _pkg_short_errors_supported=no 18115fi 18116 if test $_pkg_short_errors_supported = yes; then 18117 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 18118 else 18119 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 18120 fi 18121 # Put the nasty error message in config.log where it belongs 18122 echo "$XEXT_PKG_ERRORS" >&5 18123 18124 HAVE_XEXTPROTO_71="no" 18125elif test $pkg_failed = untried; then 18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18127$as_echo "no" >&6; } 18128 HAVE_XEXTPROTO_71="no" 18129else 18130 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18131 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18133$as_echo "yes" >&6; } 18134 HAVE_XEXTPROTO_71="yes"; 18135$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18136 18137fi 18138 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18139 HAVE_XEXTPROTO_71_TRUE= 18140 HAVE_XEXTPROTO_71_FALSE='#' 18141else 18142 HAVE_XEXTPROTO_71_TRUE='#' 18143 HAVE_XEXTPROTO_71_FALSE= 18144fi 18145 18146sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18147 18148# Checks for libraries. 18149 18150if test "$DRI" != no; then 18151 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 18152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 18153$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 18154if eval \${$as_ac_File+:} false; then : 18155 $as_echo_n "(cached) " >&6 18156else 18157 test "$cross_compiling" = yes && 18158 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18159if test -r "${sdkdir}/dri.h"; then 18160 eval "$as_ac_File=yes" 18161else 18162 eval "$as_ac_File=no" 18163fi 18164fi 18165eval ac_res=\$$as_ac_File 18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18167$as_echo "$ac_res" >&6; } 18168if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18169 have_dri_h="yes" 18170else 18171 have_dri_h="no" 18172fi 18173 18174 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 18175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 18176$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 18177if eval \${$as_ac_File+:} false; then : 18178 $as_echo_n "(cached) " >&6 18179else 18180 test "$cross_compiling" = yes && 18181 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18182if test -r "${sdkdir}/sarea.h"; then 18183 eval "$as_ac_File=yes" 18184else 18185 eval "$as_ac_File=no" 18186fi 18187fi 18188eval ac_res=\$$as_ac_File 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18190$as_echo "$ac_res" >&6; } 18191if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18192 have_sarea_h="yes" 18193else 18194 have_sarea_h="no" 18195fi 18196 18197 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 18198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 18199$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 18200if eval \${$as_ac_File+:} false; then : 18201 $as_echo_n "(cached) " >&6 18202else 18203 test "$cross_compiling" = yes && 18204 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18205if test -r "${sdkdir}/dristruct.h"; then 18206 eval "$as_ac_File=yes" 18207else 18208 eval "$as_ac_File=no" 18209fi 18210fi 18211eval ac_res=\$$as_ac_File 18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18213$as_echo "$ac_res" >&6; } 18214if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18215 have_dristruct_h="yes" 18216else 18217 have_dristruct_h="no" 18218fi 18219 18220 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh` 18221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5 18222$as_echo_n "checking for ${sdkdir}/damage.h... " >&6; } 18223if eval \${$as_ac_File+:} false; then : 18224 $as_echo_n "(cached) " >&6 18225else 18226 test "$cross_compiling" = yes && 18227 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18228if test -r "${sdkdir}/damage.h"; then 18229 eval "$as_ac_File=yes" 18230else 18231 eval "$as_ac_File=no" 18232fi 18233fi 18234eval ac_res=\$$as_ac_File 18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18236$as_echo "$ac_res" >&6; } 18237if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18238 have_damage_h="yes" 18239else 18240 have_damage_h="no" 18241fi 18242 18243fi 18244 18245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 18246$as_echo_n "checking whether to include DRI support... " >&6; } 18247if test x$DRI = xauto; then 18248 if test "$have_dri_h" = yes -a \ 18249 "$have_sarea_h" = yes -a \ 18250 "$have_dristruct_h" = yes; then 18251 DRI="yes" 18252 else 18253 DRI="no" 18254 fi 18255fi 18256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 18257$as_echo "$DRI" >&6; } 18258 18259 if test x$DRI = xyes; then 18260 DRI_TRUE= 18261 DRI_FALSE='#' 18262else 18263 DRI_TRUE='#' 18264 DRI_FALSE= 18265fi 18266 18267if test "$DRI" = yes; then 18268 18269pkg_failed=no 18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 18271$as_echo_n "checking for DRI... " >&6; } 18272 18273if test -n "$DRI_CFLAGS"; then 18274 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 18275 elif test -n "$PKG_CONFIG"; then 18276 if test -n "$PKG_CONFIG" && \ 18277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5 18278 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 18279 ac_status=$? 18280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18281 test $ac_status = 0; }; then 18282 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null` 18283else 18284 pkg_failed=yes 18285fi 18286 else 18287 pkg_failed=untried 18288fi 18289if test -n "$DRI_LIBS"; then 18290 pkg_cv_DRI_LIBS="$DRI_LIBS" 18291 elif test -n "$PKG_CONFIG"; then 18292 if test -n "$PKG_CONFIG" && \ 18293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5 18294 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 18295 ac_status=$? 18296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18297 test $ac_status = 0; }; then 18298 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null` 18299else 18300 pkg_failed=yes 18301fi 18302 else 18303 pkg_failed=untried 18304fi 18305 18306 18307 18308if test $pkg_failed = yes; then 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18310$as_echo "no" >&6; } 18311 18312if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18313 _pkg_short_errors_supported=yes 18314else 18315 _pkg_short_errors_supported=no 18316fi 18317 if test $_pkg_short_errors_supported = yes; then 18318 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1` 18319 else 18320 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1` 18321 fi 18322 # Put the nasty error message in config.log where it belongs 18323 echo "$DRI_PKG_ERRORS" >&5 18324 18325 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met: 18326 18327$DRI_PKG_ERRORS 18328 18329Consider adjusting the PKG_CONFIG_PATH environment variable if you 18330installed software in a non-standard prefix. 18331 18332Alternatively, you may set the environment variables DRI_CFLAGS 18333and DRI_LIBS to avoid the need to call pkg-config. 18334See the pkg-config man page for more details." "$LINENO" 5 18335 18336elif test $pkg_failed = untried; then 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18338$as_echo "no" >&6; } 18339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18341as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18342is in your PATH or set the PKG_CONFIG environment variable to the full 18343path to pkg-config. 18344 18345Alternatively, you may set the environment variables DRI_CFLAGS 18346and DRI_LIBS to avoid the need to call pkg-config. 18347See the pkg-config man page for more details. 18348 18349To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18350See \`config.log' for more details" "$LINENO" 5; } 18351 18352else 18353 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 18354 DRI_LIBS=$pkg_cv_DRI_LIBS 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18356$as_echo "yes" >&6; } 18357 18358fi 18359 18360$as_echo "#define R128DRI 1" >>confdefs.h 18361 18362 18363$as_echo "#define R128DRI_DEVEL 1" >>confdefs.h 18364 18365fi 18366 18367SAVE_CPPFLAGS="$CPPFLAGS" 18368CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18369# Properly handle EXA. 18370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5 18371$as_echo_n "checking whether to enable EXA support... " >&6; } 18372if test "x$EXA" = xyes; then 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18374$as_echo "yes" >&6; } 18375 18376 SAVE_CPPFLAGS="$CPPFLAGS" 18377 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18378 ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default" 18379if test "x$ac_cv_header_exa_h" = xyes; then : 18380 have_exa_h="yes" 18381else 18382 have_exa_h="no" 18383fi 18384 18385 18386 CPPFLAGS="$SAVE_CPPFLAGS" 18387else 18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18389$as_echo "no" >&6; } 18390fi 18391 18392SAVE_CPPFLAGS="$CPPFLAGS" 18393CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18394if test "x$have_exa_h" = xyes; then 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5 18396$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; } 18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18398/* end confdefs.h. */ 18399 18400#include "exa.h" 18401#if EXA_VERSION_MAJOR < 2 18402#error OLD EXA! 18403#endif 18404 18405int 18406main () 18407{ 18408 18409 ; 18410 return 0; 18411} 18412_ACEOF 18413if ac_fn_c_try_cpp "$LINENO"; then : 18414 USE_EXA=yes 18415else 18416 USE_EXA=no 18417fi 18418rm -f conftest.err conftest.i conftest.$ac_ext 18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5 18420$as_echo "$USE_EXA" >&6; } 18421 18422 if test "x$USE_EXA" = xyes; then 18423 18424$as_echo "#define USE_EXA 1" >>confdefs.h 18425 18426 fi 18427fi 18428 18429ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18430" 18431if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18432 XSERVER_LIBPCIACCESS=yes 18433else 18434 XSERVER_LIBPCIACCESS=no 18435fi 18436 18437CPPFLAGS="$SAVE_CPPFLAGS" 18438 18439# Check whether --enable-xaa was given. 18440if test "${enable_xaa+set}" = set; then : 18441 enableval=$enable_xaa; XAA="$enableval" 18442else 18443 XAA=auto 18444fi 18445 18446if test "x$XAA" != xno; then 18447 save_CFLAGS=$CFLAGS 18448 save_CPPFLAGS=$CPPFLAGS 18449 CFLAGS=$XORG_CFLAGS 18450 CPPFLAGS="$XORG_CFLAGS" 18451 for ac_header in xaa.h 18452do : 18453 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18454if test "x$ac_cv_header_xaa_h" = xyes; then : 18455 cat >>confdefs.h <<_ACEOF 18456#define HAVE_XAA_H 1 18457_ACEOF 18458 XAA=yes 18459else 18460 XAA=no 18461fi 18462 18463done 18464 18465 CFLAGS=$save_CFLAGS 18466 CPPFLAGS=$save_CPPFLAGS 18467fi 18468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18469$as_echo_n "checking whether to include XAA support... " >&6; } 18470 if test "x$XAA" = xyes; then 18471 XAA_TRUE= 18472 XAA_FALSE='#' 18473else 18474 XAA_TRUE='#' 18475 XAA_FALSE= 18476fi 18477 18478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18479$as_echo "$XAA" >&6; } 18480 18481 if test "x$USE_EXA" = xyes; then 18482 USE_EXA_TRUE= 18483 USE_EXA_FALSE='#' 18484else 18485 USE_EXA_TRUE='#' 18486 USE_EXA_FALSE= 18487fi 18488 18489 18490if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18491 18492pkg_failed=no 18493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18494$as_echo_n "checking for PCIACCESS... " >&6; } 18495 18496if test -n "$PCIACCESS_CFLAGS"; then 18497 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18498 elif test -n "$PKG_CONFIG"; then 18499 if test -n "$PKG_CONFIG" && \ 18500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18501 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18502 ac_status=$? 18503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18504 test $ac_status = 0; }; then 18505 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18506else 18507 pkg_failed=yes 18508fi 18509 else 18510 pkg_failed=untried 18511fi 18512if test -n "$PCIACCESS_LIBS"; then 18513 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18514 elif test -n "$PKG_CONFIG"; then 18515 if test -n "$PKG_CONFIG" && \ 18516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18517 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18518 ac_status=$? 18519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18520 test $ac_status = 0; }; then 18521 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18522else 18523 pkg_failed=yes 18524fi 18525 else 18526 pkg_failed=untried 18527fi 18528 18529 18530 18531if test $pkg_failed = yes; then 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18533$as_echo "no" >&6; } 18534 18535if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18536 _pkg_short_errors_supported=yes 18537else 18538 _pkg_short_errors_supported=no 18539fi 18540 if test $_pkg_short_errors_supported = yes; then 18541 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 18542 else 18543 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 18544 fi 18545 # Put the nasty error message in config.log where it belongs 18546 echo "$PCIACCESS_PKG_ERRORS" >&5 18547 18548 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18549 18550$PCIACCESS_PKG_ERRORS 18551 18552Consider adjusting the PKG_CONFIG_PATH environment variable if you 18553installed software in a non-standard prefix. 18554 18555Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18556and PCIACCESS_LIBS to avoid the need to call pkg-config. 18557See the pkg-config man page for more details." "$LINENO" 5 18558 18559elif test $pkg_failed = untried; then 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18561$as_echo "no" >&6; } 18562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18564as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18565is in your PATH or set the PKG_CONFIG environment variable to the full 18566path to pkg-config. 18567 18568Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18569and PCIACCESS_LIBS to avoid the need to call pkg-config. 18570See the pkg-config man page for more details. 18571 18572To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18573See \`config.log' for more details" "$LINENO" 5; } 18574 18575else 18576 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18577 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18579$as_echo "yes" >&6; } 18580 18581fi 18582 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18583fi 18584 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18585 XSERVER_LIBPCIACCESS_TRUE= 18586 XSERVER_LIBPCIACCESS_FALSE='#' 18587else 18588 XSERVER_LIBPCIACCESS_TRUE='#' 18589 XSERVER_LIBPCIACCESS_FALSE= 18590fi 18591 18592 18593# Checks for headers/macros for byte swapping 18594# Known variants: 18595# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 18596# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 18597# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 18598# and a fallback to local macros if none of the above are found 18599 18600# if <byteswap.h> is found, assume it's the correct version 18601for ac_header in byteswap.h 18602do : 18603 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 18604if test "x$ac_cv_header_byteswap_h" = xyes; then : 18605 cat >>confdefs.h <<_ACEOF 18606#define HAVE_BYTESWAP_H 1 18607_ACEOF 18608 18609fi 18610 18611done 18612 18613 18614# if <sys/endian.h> is found, have to check which version 18615ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 18616if test "x$ac_cv_header_sys_endian_h" = xyes; then : 18617 HAVE_SYS_ENDIAN_H="yes" 18618else 18619 HAVE_SYS_ENDIAN_H="no" 18620fi 18621 18622 18623 18624if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 18626$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 18627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18628/* end confdefs.h. */ 18629 18630#include <sys/types.h> 18631#include <sys/endian.h> 18632 18633int 18634main () 18635{ 18636 18637int a = 1, b; 18638b = __swap16(a); 18639 18640 ; 18641 return 0; 18642} 18643 18644_ACEOF 18645if ac_fn_c_try_link "$LINENO"; then : 18646 SYS_ENDIAN__SWAP='yes' 18647else 18648 SYS_ENDIAN__SWAP='no' 18649fi 18650rm -f core conftest.err conftest.$ac_objext \ 18651 conftest$ac_exeext conftest.$ac_ext 18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 18653$as_echo "$SYS_ENDIAN__SWAP" >&6; } 18654 18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 18656$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18658/* end confdefs.h. */ 18659 18660#include <sys/types.h> 18661#include <sys/endian.h> 18662 18663int 18664main () 18665{ 18666 18667int a = 1, b; 18668b = bswap16(a); 18669 18670 ; 18671 return 0; 18672} 18673 18674_ACEOF 18675if ac_fn_c_try_link "$LINENO"; then : 18676 SYS_ENDIAN_BSWAP='yes' 18677else 18678 SYS_ENDIAN_BSWAP='no' 18679fi 18680rm -f core conftest.err conftest.$ac_objext \ 18681 conftest$ac_exeext conftest.$ac_ext 18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 18683$as_echo "$SYS_ENDIAN_BSWAP" >&6; } 18684 18685 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 18686 USE_SYS_ENDIAN_H=yes 18687 BSWAP=bswap 18688 else 18689 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 18690 USE_SYS_ENDIAN_H=yes 18691 BSWAP=__swap 18692 else 18693 USE_SYS_ENDIAN_H=no 18694 fi 18695 fi 18696 18697 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 18698 18699$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 18700 18701 18702cat >>confdefs.h <<_ACEOF 18703#define bswap_16 ${BSWAP}16 18704_ACEOF 18705 18706 18707cat >>confdefs.h <<_ACEOF 18708#define bswap_32 ${BSWAP}32 18709_ACEOF 18710 18711 18712cat >>confdefs.h <<_ACEOF 18713#define bswap_64 ${BSWAP}64 18714_ACEOF 18715 18716 fi 18717fi 18718 18719 18720 18721DRIVER_NAME=r128 18722 18723 18724{ $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install 18725the ati wrapper as well: 18726 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati 18727" >&5 18728$as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install 18729the ati wrapper as well: 18730 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati 18731" >&6;} 18732 18733ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18734 18735cat >confcache <<\_ACEOF 18736# This file is a shell script that caches the results of configure 18737# tests run on this system so they can be shared between configure 18738# scripts and configure runs, see configure's option --config-cache. 18739# It is not useful on other systems. If it contains results you don't 18740# want to keep, you may remove or edit it. 18741# 18742# config.status only pays attention to the cache file if you give it 18743# the --recheck option to rerun configure. 18744# 18745# `ac_cv_env_foo' variables (set or unset) will be overridden when 18746# loading this file, other *unset* `ac_cv_foo' will be assigned the 18747# following values. 18748 18749_ACEOF 18750 18751# The following way of writing the cache mishandles newlines in values, 18752# but we know of no workaround that is simple, portable, and efficient. 18753# So, we kill variables containing newlines. 18754# Ultrix sh set writes to stderr and can't be redirected directly, 18755# and sets the high bit in the cache file unless we assign to the vars. 18756( 18757 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18758 eval ac_val=\$$ac_var 18759 case $ac_val in #( 18760 *${as_nl}*) 18761 case $ac_var in #( 18762 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18763$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18764 esac 18765 case $ac_var in #( 18766 _ | IFS | as_nl) ;; #( 18767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18768 *) { eval $ac_var=; unset $ac_var;} ;; 18769 esac ;; 18770 esac 18771 done 18772 18773 (set) 2>&1 | 18774 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18775 *${as_nl}ac_space=\ *) 18776 # `set' does not quote correctly, so add quotes: double-quote 18777 # substitution turns \\\\ into \\, and sed turns \\ into \. 18778 sed -n \ 18779 "s/'/'\\\\''/g; 18780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18781 ;; #( 18782 *) 18783 # `set' quotes correctly as required by POSIX, so do not add quotes. 18784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18785 ;; 18786 esac | 18787 sort 18788) | 18789 sed ' 18790 /^ac_cv_env_/b end 18791 t clear 18792 :clear 18793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18794 t end 18795 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18796 :end' >>confcache 18797if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18798 if test -w "$cache_file"; then 18799 if test "x$cache_file" != "x/dev/null"; then 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18801$as_echo "$as_me: updating cache $cache_file" >&6;} 18802 if test ! -f "$cache_file" || test -h "$cache_file"; then 18803 cat confcache >"$cache_file" 18804 else 18805 case $cache_file in #( 18806 */* | ?:*) 18807 mv -f confcache "$cache_file"$$ && 18808 mv -f "$cache_file"$$ "$cache_file" ;; #( 18809 *) 18810 mv -f confcache "$cache_file" ;; 18811 esac 18812 fi 18813 fi 18814 else 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18816$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18817 fi 18818fi 18819rm -f confcache 18820 18821test "x$prefix" = xNONE && prefix=$ac_default_prefix 18822# Let make expand exec_prefix. 18823test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18824 18825DEFS=-DHAVE_CONFIG_H 18826 18827ac_libobjs= 18828ac_ltlibobjs= 18829U= 18830for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18831 # 1. Remove the extension, and $U if already installed. 18832 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18833 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18834 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18835 # will be set to the directory where LIBOBJS objects are built. 18836 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18837 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18838done 18839LIBOBJS=$ac_libobjs 18840 18841LTLIBOBJS=$ac_ltlibobjs 18842 18843 18844 if test -n "$EXEEXT"; then 18845 am__EXEEXT_TRUE= 18846 am__EXEEXT_FALSE='#' 18847else 18848 am__EXEEXT_TRUE='#' 18849 am__EXEEXT_FALSE= 18850fi 18851 18852if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18853 as_fn_error $? "conditional \"AMDEP\" was never defined. 18854Usually this means the macro was only invoked conditionally." "$LINENO" 5 18855fi 18856if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18857 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18858Usually this means the macro was only invoked conditionally." "$LINENO" 5 18859fi 18860if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18861 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18862Usually this means the macro was only invoked conditionally." "$LINENO" 5 18863fi 18864if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 18865 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 18866Usually this means the macro was only invoked conditionally." "$LINENO" 5 18867fi 18868if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 18869 as_fn_error $? "conditional \"DRI\" was never defined. 18870Usually this means the macro was only invoked conditionally." "$LINENO" 5 18871fi 18872if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 18873 as_fn_error $? "conditional \"XAA\" was never defined. 18874Usually this means the macro was only invoked conditionally." "$LINENO" 5 18875fi 18876if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 18877 as_fn_error $? "conditional \"USE_EXA\" was never defined. 18878Usually this means the macro was only invoked conditionally." "$LINENO" 5 18879fi 18880if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 18881 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 18882Usually this means the macro was only invoked conditionally." "$LINENO" 5 18883fi 18884 18885: "${CONFIG_STATUS=./config.status}" 18886ac_write_fail=0 18887ac_clean_files_save=$ac_clean_files 18888ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18889{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18890$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18891as_write_fail=0 18892cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18893#! $SHELL 18894# Generated by $as_me. 18895# Run this file to recreate the current configuration. 18896# Compiler output produced by configure, useful for debugging 18897# configure, is in config.log if it exists. 18898 18899debug=false 18900ac_cs_recheck=false 18901ac_cs_silent=false 18902 18903SHELL=\${CONFIG_SHELL-$SHELL} 18904export SHELL 18905_ASEOF 18906cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18907## -------------------- ## 18908## M4sh Initialization. ## 18909## -------------------- ## 18910 18911# Be more Bourne compatible 18912DUALCASE=1; export DUALCASE # for MKS sh 18913if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18914 emulate sh 18915 NULLCMD=: 18916 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18917 # is contrary to our usage. Disable this feature. 18918 alias -g '${1+"$@"}'='"$@"' 18919 setopt NO_GLOB_SUBST 18920else 18921 case `(set -o) 2>/dev/null` in #( 18922 *posix*) : 18923 set -o posix ;; #( 18924 *) : 18925 ;; 18926esac 18927fi 18928 18929 18930as_nl=' 18931' 18932export as_nl 18933# Printing a long string crashes Solaris 7 /usr/bin/printf. 18934as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18935as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18936as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18937# Prefer a ksh shell builtin over an external printf program on Solaris, 18938# but without wasting forks for bash or zsh. 18939if test -z "$BASH_VERSION$ZSH_VERSION" \ 18940 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18941 as_echo='print -r --' 18942 as_echo_n='print -rn --' 18943elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18944 as_echo='printf %s\n' 18945 as_echo_n='printf %s' 18946else 18947 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18948 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18949 as_echo_n='/usr/ucb/echo -n' 18950 else 18951 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18952 as_echo_n_body='eval 18953 arg=$1; 18954 case $arg in #( 18955 *"$as_nl"*) 18956 expr "X$arg" : "X\\(.*\\)$as_nl"; 18957 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18958 esac; 18959 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18960 ' 18961 export as_echo_n_body 18962 as_echo_n='sh -c $as_echo_n_body as_echo' 18963 fi 18964 export as_echo_body 18965 as_echo='sh -c $as_echo_body as_echo' 18966fi 18967 18968# The user is always right. 18969if test "${PATH_SEPARATOR+set}" != set; then 18970 PATH_SEPARATOR=: 18971 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18972 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18973 PATH_SEPARATOR=';' 18974 } 18975fi 18976 18977 18978# IFS 18979# We need space, tab and new line, in precisely that order. Quoting is 18980# there to prevent editors from complaining about space-tab. 18981# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18982# splitting by setting IFS to empty value.) 18983IFS=" "" $as_nl" 18984 18985# Find who we are. Look in the path if we contain no directory separator. 18986as_myself= 18987case $0 in #(( 18988 *[\\/]* ) as_myself=$0 ;; 18989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18990for as_dir in $PATH 18991do 18992 IFS=$as_save_IFS 18993 test -z "$as_dir" && as_dir=. 18994 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18995 done 18996IFS=$as_save_IFS 18997 18998 ;; 18999esac 19000# We did not find ourselves, most probably we were run as `sh COMMAND' 19001# in which case we are not to be found in the path. 19002if test "x$as_myself" = x; then 19003 as_myself=$0 19004fi 19005if test ! -f "$as_myself"; then 19006 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19007 exit 1 19008fi 19009 19010# Unset variables that we do not need and which cause bugs (e.g. in 19011# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19012# suppresses any "Segmentation fault" message there. '((' could 19013# trigger a bug in pdksh 5.2.14. 19014for as_var in BASH_ENV ENV MAIL MAILPATH 19015do eval test x\${$as_var+set} = xset \ 19016 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19017done 19018PS1='$ ' 19019PS2='> ' 19020PS4='+ ' 19021 19022# NLS nuisances. 19023LC_ALL=C 19024export LC_ALL 19025LANGUAGE=C 19026export LANGUAGE 19027 19028# CDPATH. 19029(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19030 19031 19032# as_fn_error STATUS ERROR [LINENO LOG_FD] 19033# ---------------------------------------- 19034# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19035# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19036# script with STATUS, using 1 if that was 0. 19037as_fn_error () 19038{ 19039 as_status=$1; test $as_status -eq 0 && as_status=1 19040 if test "$4"; then 19041 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19042 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19043 fi 19044 $as_echo "$as_me: error: $2" >&2 19045 as_fn_exit $as_status 19046} # as_fn_error 19047 19048 19049# as_fn_set_status STATUS 19050# ----------------------- 19051# Set $? to STATUS, without forking. 19052as_fn_set_status () 19053{ 19054 return $1 19055} # as_fn_set_status 19056 19057# as_fn_exit STATUS 19058# ----------------- 19059# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19060as_fn_exit () 19061{ 19062 set +e 19063 as_fn_set_status $1 19064 exit $1 19065} # as_fn_exit 19066 19067# as_fn_unset VAR 19068# --------------- 19069# Portably unset VAR. 19070as_fn_unset () 19071{ 19072 { eval $1=; unset $1;} 19073} 19074as_unset=as_fn_unset 19075# as_fn_append VAR VALUE 19076# ---------------------- 19077# Append the text in VALUE to the end of the definition contained in VAR. Take 19078# advantage of any shell optimizations that allow amortized linear growth over 19079# repeated appends, instead of the typical quadratic growth present in naive 19080# implementations. 19081if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19082 eval 'as_fn_append () 19083 { 19084 eval $1+=\$2 19085 }' 19086else 19087 as_fn_append () 19088 { 19089 eval $1=\$$1\$2 19090 } 19091fi # as_fn_append 19092 19093# as_fn_arith ARG... 19094# ------------------ 19095# Perform arithmetic evaluation on the ARGs, and store the result in the 19096# global $as_val. Take advantage of shells that can avoid forks. The arguments 19097# must be portable across $(()) and expr. 19098if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19099 eval 'as_fn_arith () 19100 { 19101 as_val=$(( $* )) 19102 }' 19103else 19104 as_fn_arith () 19105 { 19106 as_val=`expr "$@" || test $? -eq 1` 19107 } 19108fi # as_fn_arith 19109 19110 19111if expr a : '\(a\)' >/dev/null 2>&1 && 19112 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19113 as_expr=expr 19114else 19115 as_expr=false 19116fi 19117 19118if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19119 as_basename=basename 19120else 19121 as_basename=false 19122fi 19123 19124if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19125 as_dirname=dirname 19126else 19127 as_dirname=false 19128fi 19129 19130as_me=`$as_basename -- "$0" || 19131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19132 X"$0" : 'X\(//\)$' \| \ 19133 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19134$as_echo X/"$0" | 19135 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19136 s//\1/ 19137 q 19138 } 19139 /^X\/\(\/\/\)$/{ 19140 s//\1/ 19141 q 19142 } 19143 /^X\/\(\/\).*/{ 19144 s//\1/ 19145 q 19146 } 19147 s/.*/./; q'` 19148 19149# Avoid depending upon Character Ranges. 19150as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19151as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19152as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19153as_cr_digits='0123456789' 19154as_cr_alnum=$as_cr_Letters$as_cr_digits 19155 19156ECHO_C= ECHO_N= ECHO_T= 19157case `echo -n x` in #((((( 19158-n*) 19159 case `echo 'xy\c'` in 19160 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19161 xy) ECHO_C='\c';; 19162 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19163 ECHO_T=' ';; 19164 esac;; 19165*) 19166 ECHO_N='-n';; 19167esac 19168 19169rm -f conf$$ conf$$.exe conf$$.file 19170if test -d conf$$.dir; then 19171 rm -f conf$$.dir/conf$$.file 19172else 19173 rm -f conf$$.dir 19174 mkdir conf$$.dir 2>/dev/null 19175fi 19176if (echo >conf$$.file) 2>/dev/null; then 19177 if ln -s conf$$.file conf$$ 2>/dev/null; then 19178 as_ln_s='ln -s' 19179 # ... but there are two gotchas: 19180 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19181 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19182 # In both cases, we have to default to `cp -p'. 19183 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19184 as_ln_s='cp -p' 19185 elif ln conf$$.file conf$$ 2>/dev/null; then 19186 as_ln_s=ln 19187 else 19188 as_ln_s='cp -p' 19189 fi 19190else 19191 as_ln_s='cp -p' 19192fi 19193rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19194rmdir conf$$.dir 2>/dev/null 19195 19196 19197# as_fn_mkdir_p 19198# ------------- 19199# Create "$as_dir" as a directory, including parents if necessary. 19200as_fn_mkdir_p () 19201{ 19202 19203 case $as_dir in #( 19204 -*) as_dir=./$as_dir;; 19205 esac 19206 test -d "$as_dir" || eval $as_mkdir_p || { 19207 as_dirs= 19208 while :; do 19209 case $as_dir in #( 19210 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19211 *) as_qdir=$as_dir;; 19212 esac 19213 as_dirs="'$as_qdir' $as_dirs" 19214 as_dir=`$as_dirname -- "$as_dir" || 19215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19216 X"$as_dir" : 'X\(//\)[^/]' \| \ 19217 X"$as_dir" : 'X\(//\)$' \| \ 19218 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19219$as_echo X"$as_dir" | 19220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19221 s//\1/ 19222 q 19223 } 19224 /^X\(\/\/\)[^/].*/{ 19225 s//\1/ 19226 q 19227 } 19228 /^X\(\/\/\)$/{ 19229 s//\1/ 19230 q 19231 } 19232 /^X\(\/\).*/{ 19233 s//\1/ 19234 q 19235 } 19236 s/.*/./; q'` 19237 test -d "$as_dir" && break 19238 done 19239 test -z "$as_dirs" || eval "mkdir $as_dirs" 19240 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19241 19242 19243} # as_fn_mkdir_p 19244if mkdir -p . 2>/dev/null; then 19245 as_mkdir_p='mkdir -p "$as_dir"' 19246else 19247 test -d ./-p && rmdir ./-p 19248 as_mkdir_p=false 19249fi 19250 19251if test -x / >/dev/null 2>&1; then 19252 as_test_x='test -x' 19253else 19254 if ls -dL / >/dev/null 2>&1; then 19255 as_ls_L_option=L 19256 else 19257 as_ls_L_option= 19258 fi 19259 as_test_x=' 19260 eval sh -c '\'' 19261 if test -d "$1"; then 19262 test -d "$1/."; 19263 else 19264 case $1 in #( 19265 -*)set "./$1";; 19266 esac; 19267 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19268 ???[sx]*):;;*)false;;esac;fi 19269 '\'' sh 19270 ' 19271fi 19272as_executable_p=$as_test_x 19273 19274# Sed expression to map a string onto a valid CPP name. 19275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19276 19277# Sed expression to map a string onto a valid variable name. 19278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19279 19280 19281exec 6>&1 19282## ----------------------------------- ## 19283## Main body of $CONFIG_STATUS script. ## 19284## ----------------------------------- ## 19285_ASEOF 19286test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19287 19288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19289# Save the log message, to keep $0 and so on meaningful, and to 19290# report actual input values of CONFIG_FILES etc. instead of their 19291# values after options handling. 19292ac_log=" 19293This file was extended by xf86-video-r128 $as_me 6.9.1, which was 19294generated by GNU Autoconf 2.68. Invocation command line was 19295 19296 CONFIG_FILES = $CONFIG_FILES 19297 CONFIG_HEADERS = $CONFIG_HEADERS 19298 CONFIG_LINKS = $CONFIG_LINKS 19299 CONFIG_COMMANDS = $CONFIG_COMMANDS 19300 $ $0 $@ 19301 19302on `(hostname || uname -n) 2>/dev/null | sed 1q` 19303" 19304 19305_ACEOF 19306 19307case $ac_config_files in *" 19308"*) set x $ac_config_files; shift; ac_config_files=$*;; 19309esac 19310 19311case $ac_config_headers in *" 19312"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19313esac 19314 19315 19316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19317# Files that config.status was made for. 19318config_files="$ac_config_files" 19319config_headers="$ac_config_headers" 19320config_commands="$ac_config_commands" 19321 19322_ACEOF 19323 19324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19325ac_cs_usage="\ 19326\`$as_me' instantiates files and other configuration actions 19327from templates according to the current configuration. Unless the files 19328and actions are specified as TAGs, all are instantiated by default. 19329 19330Usage: $0 [OPTION]... [TAG]... 19331 19332 -h, --help print this help, then exit 19333 -V, --version print version number and configuration settings, then exit 19334 --config print configuration, then exit 19335 -q, --quiet, --silent 19336 do not print progress messages 19337 -d, --debug don't remove temporary files 19338 --recheck update $as_me by reconfiguring in the same conditions 19339 --file=FILE[:TEMPLATE] 19340 instantiate the configuration file FILE 19341 --header=FILE[:TEMPLATE] 19342 instantiate the configuration header FILE 19343 19344Configuration files: 19345$config_files 19346 19347Configuration headers: 19348$config_headers 19349 19350Configuration commands: 19351$config_commands 19352 19353Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19354 19355_ACEOF 19356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19357ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19358ac_cs_version="\\ 19359xf86-video-r128 config.status 6.9.1 19360configured by $0, generated by GNU Autoconf 2.68, 19361 with options \\"\$ac_cs_config\\" 19362 19363Copyright (C) 2010 Free Software Foundation, Inc. 19364This config.status script is free software; the Free Software Foundation 19365gives unlimited permission to copy, distribute and modify it." 19366 19367ac_pwd='$ac_pwd' 19368srcdir='$srcdir' 19369INSTALL='$INSTALL' 19370MKDIR_P='$MKDIR_P' 19371AWK='$AWK' 19372test -n "\$AWK" || AWK=awk 19373_ACEOF 19374 19375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19376# The default lists apply if the user does not specify any file. 19377ac_need_defaults=: 19378while test $# != 0 19379do 19380 case $1 in 19381 --*=?*) 19382 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19383 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19384 ac_shift=: 19385 ;; 19386 --*=) 19387 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19388 ac_optarg= 19389 ac_shift=: 19390 ;; 19391 *) 19392 ac_option=$1 19393 ac_optarg=$2 19394 ac_shift=shift 19395 ;; 19396 esac 19397 19398 case $ac_option in 19399 # Handling of the options. 19400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19401 ac_cs_recheck=: ;; 19402 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19403 $as_echo "$ac_cs_version"; exit ;; 19404 --config | --confi | --conf | --con | --co | --c ) 19405 $as_echo "$ac_cs_config"; exit ;; 19406 --debug | --debu | --deb | --de | --d | -d ) 19407 debug=: ;; 19408 --file | --fil | --fi | --f ) 19409 $ac_shift 19410 case $ac_optarg in 19411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19412 '') as_fn_error $? "missing file argument" ;; 19413 esac 19414 as_fn_append CONFIG_FILES " '$ac_optarg'" 19415 ac_need_defaults=false;; 19416 --header | --heade | --head | --hea ) 19417 $ac_shift 19418 case $ac_optarg in 19419 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19420 esac 19421 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19422 ac_need_defaults=false;; 19423 --he | --h) 19424 # Conflict between --help and --header 19425 as_fn_error $? "ambiguous option: \`$1' 19426Try \`$0 --help' for more information.";; 19427 --help | --hel | -h ) 19428 $as_echo "$ac_cs_usage"; exit ;; 19429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19430 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19431 ac_cs_silent=: ;; 19432 19433 # This is an error. 19434 -*) as_fn_error $? "unrecognized option: \`$1' 19435Try \`$0 --help' for more information." ;; 19436 19437 *) as_fn_append ac_config_targets " $1" 19438 ac_need_defaults=false ;; 19439 19440 esac 19441 shift 19442done 19443 19444ac_configure_extra_args= 19445 19446if $ac_cs_silent; then 19447 exec 6>/dev/null 19448 ac_configure_extra_args="$ac_configure_extra_args --silent" 19449fi 19450 19451_ACEOF 19452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19453if \$ac_cs_recheck; then 19454 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19455 shift 19456 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19457 CONFIG_SHELL='$SHELL' 19458 export CONFIG_SHELL 19459 exec "\$@" 19460fi 19461 19462_ACEOF 19463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19464exec 5>>config.log 19465{ 19466 echo 19467 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19468## Running $as_me. ## 19469_ASBOX 19470 $as_echo "$ac_log" 19471} >&5 19472 19473_ACEOF 19474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19475# 19476# INIT-COMMANDS 19477# 19478AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19479 19480 19481# The HP-UX ksh and POSIX shell print the target directory to stdout 19482# if CDPATH is set. 19483(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19484 19485sed_quote_subst='$sed_quote_subst' 19486double_quote_subst='$double_quote_subst' 19487delay_variable_subst='$delay_variable_subst' 19488enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19489macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19490macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19491enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19492pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19493enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19494SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19495ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19496PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19497host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19498host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19499host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19500build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19501build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19502build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19503SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19504Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19505GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19506EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19507FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19508LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19509NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19510LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19511max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19512ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19513exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19514lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19515lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19516lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19517lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19518lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19519reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19520reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19521OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19522deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19523file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19524file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19525want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19526DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19527sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19528AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19529AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19530archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19531STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19532RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19533old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19534old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19535old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19536lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19537CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19538CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19539compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19540GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19541lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19542lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19543lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19544lt_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"`' 19545nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19546lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19547objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19548MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19549lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19550lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19551lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19552lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19553lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19554need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19555MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19556DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19557NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19558LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19559OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19560OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19561libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19562shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19563extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19564archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19565enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19566export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19567whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19568compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19569old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19570old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19571archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19572archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19573module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19574module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19575with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19576allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19577no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19578hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19579hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19580hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19581hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19582hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19583hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19584hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19585inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19586link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19587always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19588export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19589exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19590include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19591prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19592postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19593file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19594variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19595need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19596need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19597version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19598runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19599shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19600shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19601libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19602library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19603soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19604install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19605postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19606postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19607finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19608finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19609hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19610sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19611sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19612hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19613enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19614enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19615enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19616old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19617striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19618 19619LTCC='$LTCC' 19620LTCFLAGS='$LTCFLAGS' 19621compiler='$compiler_DEFAULT' 19622 19623# A function that is used when there is no print builtin or printf. 19624func_fallback_echo () 19625{ 19626 eval 'cat <<_LTECHO_EOF 19627\$1 19628_LTECHO_EOF' 19629} 19630 19631# Quote evaled strings. 19632for var in SHELL \ 19633ECHO \ 19634PATH_SEPARATOR \ 19635SED \ 19636GREP \ 19637EGREP \ 19638FGREP \ 19639LD \ 19640NM \ 19641LN_S \ 19642lt_SP2NL \ 19643lt_NL2SP \ 19644reload_flag \ 19645OBJDUMP \ 19646deplibs_check_method \ 19647file_magic_cmd \ 19648file_magic_glob \ 19649want_nocaseglob \ 19650DLLTOOL \ 19651sharedlib_from_linklib_cmd \ 19652AR \ 19653AR_FLAGS \ 19654archiver_list_spec \ 19655STRIP \ 19656RANLIB \ 19657CC \ 19658CFLAGS \ 19659compiler \ 19660lt_cv_sys_global_symbol_pipe \ 19661lt_cv_sys_global_symbol_to_cdecl \ 19662lt_cv_sys_global_symbol_to_c_name_address \ 19663lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19664nm_file_list_spec \ 19665lt_prog_compiler_no_builtin_flag \ 19666lt_prog_compiler_pic \ 19667lt_prog_compiler_wl \ 19668lt_prog_compiler_static \ 19669lt_cv_prog_compiler_c_o \ 19670need_locks \ 19671MANIFEST_TOOL \ 19672DSYMUTIL \ 19673NMEDIT \ 19674LIPO \ 19675OTOOL \ 19676OTOOL64 \ 19677shrext_cmds \ 19678export_dynamic_flag_spec \ 19679whole_archive_flag_spec \ 19680compiler_needs_object \ 19681with_gnu_ld \ 19682allow_undefined_flag \ 19683no_undefined_flag \ 19684hardcode_libdir_flag_spec \ 19685hardcode_libdir_separator \ 19686exclude_expsyms \ 19687include_expsyms \ 19688file_list_spec \ 19689variables_saved_for_relink \ 19690libname_spec \ 19691library_names_spec \ 19692soname_spec \ 19693install_override_mode \ 19694finish_eval \ 19695old_striplib \ 19696striplib; do 19697 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19698 *[\\\\\\\`\\"\\\$]*) 19699 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19700 ;; 19701 *) 19702 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19703 ;; 19704 esac 19705done 19706 19707# Double-quote double-evaled strings. 19708for var in reload_cmds \ 19709old_postinstall_cmds \ 19710old_postuninstall_cmds \ 19711old_archive_cmds \ 19712extract_expsyms_cmds \ 19713old_archive_from_new_cmds \ 19714old_archive_from_expsyms_cmds \ 19715archive_cmds \ 19716archive_expsym_cmds \ 19717module_cmds \ 19718module_expsym_cmds \ 19719export_symbols_cmds \ 19720prelink_cmds \ 19721postlink_cmds \ 19722postinstall_cmds \ 19723postuninstall_cmds \ 19724finish_cmds \ 19725sys_lib_search_path_spec \ 19726sys_lib_dlsearch_path_spec; do 19727 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19728 *[\\\\\\\`\\"\\\$]*) 19729 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19730 ;; 19731 *) 19732 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19733 ;; 19734 esac 19735done 19736 19737ac_aux_dir='$ac_aux_dir' 19738xsi_shell='$xsi_shell' 19739lt_shell_append='$lt_shell_append' 19740 19741# See if we are running on zsh, and set the options which allow our 19742# commands through without removal of \ escapes INIT. 19743if test -n "\${ZSH_VERSION+set}" ; then 19744 setopt NO_GLOB_SUBST 19745fi 19746 19747 19748 PACKAGE='$PACKAGE' 19749 VERSION='$VERSION' 19750 TIMESTAMP='$TIMESTAMP' 19751 RM='$RM' 19752 ofile='$ofile' 19753 19754 19755 19756 19757_ACEOF 19758 19759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19760 19761# Handling of arguments. 19762for ac_config_target in $ac_config_targets 19763do 19764 case $ac_config_target in 19765 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19766 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19767 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19769 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19770 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19771 19772 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19773 esac 19774done 19775 19776 19777# If the user did not use the arguments to specify the items to instantiate, 19778# then the envvar interface is used. Set only those that are not. 19779# We use the long form for the default assignment because of an extremely 19780# bizarre bug on SunOS 4.1.3. 19781if $ac_need_defaults; then 19782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19785fi 19786 19787# Have a temporary directory for convenience. Make it in the build tree 19788# simply because there is no reason against having it here, and in addition, 19789# creating and moving files from /tmp can sometimes cause problems. 19790# Hook for its removal unless debugging. 19791# Note that there is a small window in which the directory will not be cleaned: 19792# after its creation but before its name has been assigned to `$tmp'. 19793$debug || 19794{ 19795 tmp= ac_tmp= 19796 trap 'exit_status=$? 19797 : "${ac_tmp:=$tmp}" 19798 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19799' 0 19800 trap 'as_fn_exit 1' 1 2 13 15 19801} 19802# Create a (secure) tmp directory for tmp files. 19803 19804{ 19805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19806 test -d "$tmp" 19807} || 19808{ 19809 tmp=./conf$$-$RANDOM 19810 (umask 077 && mkdir "$tmp") 19811} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19812ac_tmp=$tmp 19813 19814# Set up the scripts for CONFIG_FILES section. 19815# No need to generate them if there are no CONFIG_FILES. 19816# This happens for instance with `./config.status config.h'. 19817if test -n "$CONFIG_FILES"; then 19818 19819 19820ac_cr=`echo X | tr X '\015'` 19821# On cygwin, bash can eat \r inside `` if the user requested igncr. 19822# But we know of no other shell where ac_cr would be empty at this 19823# point, so we can use a bashism as a fallback. 19824if test "x$ac_cr" = x; then 19825 eval ac_cr=\$\'\\r\' 19826fi 19827ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19828if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19829 ac_cs_awk_cr='\\r' 19830else 19831 ac_cs_awk_cr=$ac_cr 19832fi 19833 19834echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19835_ACEOF 19836 19837 19838{ 19839 echo "cat >conf$$subs.awk <<_ACEOF" && 19840 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19841 echo "_ACEOF" 19842} >conf$$subs.sh || 19843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19844ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19845ac_delim='%!_!# ' 19846for ac_last_try in false false false false false :; do 19847 . ./conf$$subs.sh || 19848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19849 19850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19851 if test $ac_delim_n = $ac_delim_num; then 19852 break 19853 elif $ac_last_try; then 19854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19855 else 19856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19857 fi 19858done 19859rm -f conf$$subs.sh 19860 19861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19862cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19863_ACEOF 19864sed -n ' 19865h 19866s/^/S["/; s/!.*/"]=/ 19867p 19868g 19869s/^[^!]*!// 19870:repl 19871t repl 19872s/'"$ac_delim"'$// 19873t delim 19874:nl 19875h 19876s/\(.\{148\}\)..*/\1/ 19877t more1 19878s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19879p 19880n 19881b repl 19882:more1 19883s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19884p 19885g 19886s/.\{148\}// 19887t nl 19888:delim 19889h 19890s/\(.\{148\}\)..*/\1/ 19891t more2 19892s/["\\]/\\&/g; s/^/"/; s/$/"/ 19893p 19894b 19895:more2 19896s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19897p 19898g 19899s/.\{148\}// 19900t delim 19901' <conf$$subs.awk | sed ' 19902/^[^""]/{ 19903 N 19904 s/\n// 19905} 19906' >>$CONFIG_STATUS || ac_write_fail=1 19907rm -f conf$$subs.awk 19908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19909_ACAWK 19910cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19911 for (key in S) S_is_set[key] = 1 19912 FS = "" 19913 19914} 19915{ 19916 line = $ 0 19917 nfields = split(line, field, "@") 19918 substed = 0 19919 len = length(field[1]) 19920 for (i = 2; i < nfields; i++) { 19921 key = field[i] 19922 keylen = length(key) 19923 if (S_is_set[key]) { 19924 value = S[key] 19925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19926 len += length(value) + length(field[++i]) 19927 substed = 1 19928 } else 19929 len += 1 + keylen 19930 } 19931 19932 print line 19933} 19934 19935_ACAWK 19936_ACEOF 19937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19938if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19940else 19941 cat 19942fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19943 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19944_ACEOF 19945 19946# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19947# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19948# trailing colons and then remove the whole line if VPATH becomes empty 19949# (actually we leave an empty line to preserve line numbers). 19950if test "x$srcdir" = x.; then 19951 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19952h 19953s/// 19954s/^/:/ 19955s/[ ]*$/:/ 19956s/:\$(srcdir):/:/g 19957s/:\${srcdir}:/:/g 19958s/:@srcdir@:/:/g 19959s/^:*// 19960s/:*$// 19961x 19962s/\(=[ ]*\).*/\1/ 19963G 19964s/\n// 19965s/^[^=]*=[ ]*$// 19966}' 19967fi 19968 19969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19970fi # test -n "$CONFIG_FILES" 19971 19972# Set up the scripts for CONFIG_HEADERS section. 19973# No need to generate them if there are no CONFIG_HEADERS. 19974# This happens for instance with `./config.status Makefile'. 19975if test -n "$CONFIG_HEADERS"; then 19976cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19977BEGIN { 19978_ACEOF 19979 19980# Transform confdefs.h into an awk script `defines.awk', embedded as 19981# here-document in config.status, that substitutes the proper values into 19982# config.h.in to produce config.h. 19983 19984# Create a delimiter string that does not exist in confdefs.h, to ease 19985# handling of long lines. 19986ac_delim='%!_!# ' 19987for ac_last_try in false false :; do 19988 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19989 if test -z "$ac_tt"; then 19990 break 19991 elif $ac_last_try; then 19992 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19993 else 19994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19995 fi 19996done 19997 19998# For the awk script, D is an array of macro values keyed by name, 19999# likewise P contains macro parameters if any. Preserve backslash 20000# newline sequences. 20001 20002ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20003sed -n ' 20004s/.\{148\}/&'"$ac_delim"'/g 20005t rset 20006:rset 20007s/^[ ]*#[ ]*define[ ][ ]*/ / 20008t def 20009d 20010:def 20011s/\\$// 20012t bsnl 20013s/["\\]/\\&/g 20014s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20015D["\1"]=" \3"/p 20016s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20017d 20018:bsnl 20019s/["\\]/\\&/g 20020s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20021D["\1"]=" \3\\\\\\n"\\/p 20022t cont 20023s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20024t cont 20025d 20026:cont 20027n 20028s/.\{148\}/&'"$ac_delim"'/g 20029t clear 20030:clear 20031s/\\$// 20032t bsnlc 20033s/["\\]/\\&/g; s/^/"/; s/$/"/p 20034d 20035:bsnlc 20036s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20037b cont 20038' <confdefs.h | sed ' 20039s/'"$ac_delim"'/"\\\ 20040"/g' >>$CONFIG_STATUS || ac_write_fail=1 20041 20042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20043 for (key in D) D_is_set[key] = 1 20044 FS = "" 20045} 20046/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20047 line = \$ 0 20048 split(line, arg, " ") 20049 if (arg[1] == "#") { 20050 defundef = arg[2] 20051 mac1 = arg[3] 20052 } else { 20053 defundef = substr(arg[1], 2) 20054 mac1 = arg[2] 20055 } 20056 split(mac1, mac2, "(") #) 20057 macro = mac2[1] 20058 prefix = substr(line, 1, index(line, defundef) - 1) 20059 if (D_is_set[macro]) { 20060 # Preserve the white space surrounding the "#". 20061 print prefix "define", macro P[macro] D[macro] 20062 next 20063 } else { 20064 # Replace #undef with comments. This is necessary, for example, 20065 # in the case of _POSIX_SOURCE, which is predefined and required 20066 # on some systems where configure will not decide to define it. 20067 if (defundef == "undef") { 20068 print "/*", prefix defundef, macro, "*/" 20069 next 20070 } 20071 } 20072} 20073{ print } 20074_ACAWK 20075_ACEOF 20076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20077 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20078fi # test -n "$CONFIG_HEADERS" 20079 20080 20081eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20082shift 20083for ac_tag 20084do 20085 case $ac_tag in 20086 :[FHLC]) ac_mode=$ac_tag; continue;; 20087 esac 20088 case $ac_mode$ac_tag in 20089 :[FHL]*:*);; 20090 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20091 :[FH]-) ac_tag=-:-;; 20092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20093 esac 20094 ac_save_IFS=$IFS 20095 IFS=: 20096 set x $ac_tag 20097 IFS=$ac_save_IFS 20098 shift 20099 ac_file=$1 20100 shift 20101 20102 case $ac_mode in 20103 :L) ac_source=$1;; 20104 :[FH]) 20105 ac_file_inputs= 20106 for ac_f 20107 do 20108 case $ac_f in 20109 -) ac_f="$ac_tmp/stdin";; 20110 *) # Look for the file first in the build tree, then in the source tree 20111 # (if the path is not absolute). The absolute path cannot be DOS-style, 20112 # because $ac_f cannot contain `:'. 20113 test -f "$ac_f" || 20114 case $ac_f in 20115 [\\/$]*) false;; 20116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20117 esac || 20118 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20119 esac 20120 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20121 as_fn_append ac_file_inputs " '$ac_f'" 20122 done 20123 20124 # Let's still pretend it is `configure' which instantiates (i.e., don't 20125 # use $as_me), people would be surprised to read: 20126 # /* config.h. Generated by config.status. */ 20127 configure_input='Generated from '` 20128 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20129 `' by configure.' 20130 if test x"$ac_file" != x-; then 20131 configure_input="$ac_file. $configure_input" 20132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20133$as_echo "$as_me: creating $ac_file" >&6;} 20134 fi 20135 # Neutralize special characters interpreted by sed in replacement strings. 20136 case $configure_input in #( 20137 *\&* | *\|* | *\\* ) 20138 ac_sed_conf_input=`$as_echo "$configure_input" | 20139 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20140 *) ac_sed_conf_input=$configure_input;; 20141 esac 20142 20143 case $ac_tag in 20144 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20146 esac 20147 ;; 20148 esac 20149 20150 ac_dir=`$as_dirname -- "$ac_file" || 20151$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20152 X"$ac_file" : 'X\(//\)[^/]' \| \ 20153 X"$ac_file" : 'X\(//\)$' \| \ 20154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20155$as_echo X"$ac_file" | 20156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20157 s//\1/ 20158 q 20159 } 20160 /^X\(\/\/\)[^/].*/{ 20161 s//\1/ 20162 q 20163 } 20164 /^X\(\/\/\)$/{ 20165 s//\1/ 20166 q 20167 } 20168 /^X\(\/\).*/{ 20169 s//\1/ 20170 q 20171 } 20172 s/.*/./; q'` 20173 as_dir="$ac_dir"; as_fn_mkdir_p 20174 ac_builddir=. 20175 20176case "$ac_dir" in 20177.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20178*) 20179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20180 # A ".." for each directory in $ac_dir_suffix. 20181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20182 case $ac_top_builddir_sub in 20183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20185 esac ;; 20186esac 20187ac_abs_top_builddir=$ac_pwd 20188ac_abs_builddir=$ac_pwd$ac_dir_suffix 20189# for backward compatibility: 20190ac_top_builddir=$ac_top_build_prefix 20191 20192case $srcdir in 20193 .) # We are building in place. 20194 ac_srcdir=. 20195 ac_top_srcdir=$ac_top_builddir_sub 20196 ac_abs_top_srcdir=$ac_pwd ;; 20197 [\\/]* | ?:[\\/]* ) # Absolute name. 20198 ac_srcdir=$srcdir$ac_dir_suffix; 20199 ac_top_srcdir=$srcdir 20200 ac_abs_top_srcdir=$srcdir ;; 20201 *) # Relative name. 20202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20203 ac_top_srcdir=$ac_top_build_prefix$srcdir 20204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20205esac 20206ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20207 20208 20209 case $ac_mode in 20210 :F) 20211 # 20212 # CONFIG_FILE 20213 # 20214 20215 case $INSTALL in 20216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20217 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20218 esac 20219 ac_MKDIR_P=$MKDIR_P 20220 case $MKDIR_P in 20221 [\\/$]* | ?:[\\/]* ) ;; 20222 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20223 esac 20224_ACEOF 20225 20226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20227# If the template does not know about datarootdir, expand it. 20228# FIXME: This hack should be removed a few years after 2.60. 20229ac_datarootdir_hack=; ac_datarootdir_seen= 20230ac_sed_dataroot=' 20231/datarootdir/ { 20232 p 20233 q 20234} 20235/@datadir@/p 20236/@docdir@/p 20237/@infodir@/p 20238/@localedir@/p 20239/@mandir@/p' 20240case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20241*datarootdir*) ac_datarootdir_seen=yes;; 20242*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20244$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20245_ACEOF 20246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20247 ac_datarootdir_hack=' 20248 s&@datadir@&$datadir&g 20249 s&@docdir@&$docdir&g 20250 s&@infodir@&$infodir&g 20251 s&@localedir@&$localedir&g 20252 s&@mandir@&$mandir&g 20253 s&\\\${datarootdir}&$datarootdir&g' ;; 20254esac 20255_ACEOF 20256 20257# Neutralize VPATH when `$srcdir' = `.'. 20258# Shell code in configure.ac might set extrasub. 20259# FIXME: do we really want to maintain this feature? 20260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20261ac_sed_extra="$ac_vpsub 20262$extrasub 20263_ACEOF 20264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20265:t 20266/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20267s|@configure_input@|$ac_sed_conf_input|;t t 20268s&@top_builddir@&$ac_top_builddir_sub&;t t 20269s&@top_build_prefix@&$ac_top_build_prefix&;t t 20270s&@srcdir@&$ac_srcdir&;t t 20271s&@abs_srcdir@&$ac_abs_srcdir&;t t 20272s&@top_srcdir@&$ac_top_srcdir&;t t 20273s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20274s&@builddir@&$ac_builddir&;t t 20275s&@abs_builddir@&$ac_abs_builddir&;t t 20276s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20277s&@INSTALL@&$ac_INSTALL&;t t 20278s&@MKDIR_P@&$ac_MKDIR_P&;t t 20279$ac_datarootdir_hack 20280" 20281eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20282 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20283 20284test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20285 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20287 "$ac_tmp/out"`; test -z "$ac_out"; } && 20288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20289which seems to be undefined. Please make sure it is defined" >&5 20290$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20291which seems to be undefined. Please make sure it is defined" >&2;} 20292 20293 rm -f "$ac_tmp/stdin" 20294 case $ac_file in 20295 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20296 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20297 esac \ 20298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20299 ;; 20300 :H) 20301 # 20302 # CONFIG_HEADER 20303 # 20304 if test x"$ac_file" != x-; then 20305 { 20306 $as_echo "/* $configure_input */" \ 20307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20308 } >"$ac_tmp/config.h" \ 20309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20310 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20311 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20312$as_echo "$as_me: $ac_file is unchanged" >&6;} 20313 else 20314 rm -f "$ac_file" 20315 mv "$ac_tmp/config.h" "$ac_file" \ 20316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20317 fi 20318 else 20319 $as_echo "/* $configure_input */" \ 20320 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20321 || as_fn_error $? "could not create -" "$LINENO" 5 20322 fi 20323# Compute "$ac_file"'s index in $config_headers. 20324_am_arg="$ac_file" 20325_am_stamp_count=1 20326for _am_header in $config_headers :; do 20327 case $_am_header in 20328 $_am_arg | $_am_arg:* ) 20329 break ;; 20330 * ) 20331 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20332 esac 20333done 20334echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20335$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20336 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20337 X"$_am_arg" : 'X\(//\)$' \| \ 20338 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20339$as_echo X"$_am_arg" | 20340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20341 s//\1/ 20342 q 20343 } 20344 /^X\(\/\/\)[^/].*/{ 20345 s//\1/ 20346 q 20347 } 20348 /^X\(\/\/\)$/{ 20349 s//\1/ 20350 q 20351 } 20352 /^X\(\/\).*/{ 20353 s//\1/ 20354 q 20355 } 20356 s/.*/./; q'`/stamp-h$_am_stamp_count 20357 ;; 20358 20359 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20360$as_echo "$as_me: executing $ac_file commands" >&6;} 20361 ;; 20362 esac 20363 20364 20365 case $ac_file$ac_mode in 20366 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20367 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20368 # are listed without --file. Let's play safe and only enable the eval 20369 # if we detect the quoting. 20370 case $CONFIG_FILES in 20371 *\'*) eval set x "$CONFIG_FILES" ;; 20372 *) set x $CONFIG_FILES ;; 20373 esac 20374 shift 20375 for mf 20376 do 20377 # Strip MF so we end up with the name of the file. 20378 mf=`echo "$mf" | sed -e 's/:.*$//'` 20379 # Check whether this is an Automake generated Makefile or not. 20380 # We used to match only the files named `Makefile.in', but 20381 # some people rename them; so instead we look at the file content. 20382 # Grep'ing the first line is not enough: some people post-process 20383 # each Makefile.in and add a new line on top of each file to say so. 20384 # Grep'ing the whole file is not good either: AIX grep has a line 20385 # limit of 2048, but all sed's we know have understand at least 4000. 20386 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20387 dirpart=`$as_dirname -- "$mf" || 20388$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20389 X"$mf" : 'X\(//\)[^/]' \| \ 20390 X"$mf" : 'X\(//\)$' \| \ 20391 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20392$as_echo X"$mf" | 20393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20394 s//\1/ 20395 q 20396 } 20397 /^X\(\/\/\)[^/].*/{ 20398 s//\1/ 20399 q 20400 } 20401 /^X\(\/\/\)$/{ 20402 s//\1/ 20403 q 20404 } 20405 /^X\(\/\).*/{ 20406 s//\1/ 20407 q 20408 } 20409 s/.*/./; q'` 20410 else 20411 continue 20412 fi 20413 # Extract the definition of DEPDIR, am__include, and am__quote 20414 # from the Makefile without running `make'. 20415 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20416 test -z "$DEPDIR" && continue 20417 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20418 test -z "am__include" && continue 20419 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20420 # When using ansi2knr, U may be empty or an underscore; expand it 20421 U=`sed -n 's/^U = //p' < "$mf"` 20422 # Find all dependency output files, they are included files with 20423 # $(DEPDIR) in their names. We invoke sed twice because it is the 20424 # simplest approach to changing $(DEPDIR) to its actual value in the 20425 # expansion. 20426 for file in `sed -n " 20427 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20428 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20429 # Make sure the directory exists. 20430 test -f "$dirpart/$file" && continue 20431 fdir=`$as_dirname -- "$file" || 20432$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20433 X"$file" : 'X\(//\)[^/]' \| \ 20434 X"$file" : 'X\(//\)$' \| \ 20435 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20436$as_echo X"$file" | 20437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20438 s//\1/ 20439 q 20440 } 20441 /^X\(\/\/\)[^/].*/{ 20442 s//\1/ 20443 q 20444 } 20445 /^X\(\/\/\)$/{ 20446 s//\1/ 20447 q 20448 } 20449 /^X\(\/\).*/{ 20450 s//\1/ 20451 q 20452 } 20453 s/.*/./; q'` 20454 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20455 # echo "creating $dirpart/$file" 20456 echo '# dummy' > "$dirpart/$file" 20457 done 20458 done 20459} 20460 ;; 20461 "libtool":C) 20462 20463 # See if we are running on zsh, and set the options which allow our 20464 # commands through without removal of \ escapes. 20465 if test -n "${ZSH_VERSION+set}" ; then 20466 setopt NO_GLOB_SUBST 20467 fi 20468 20469 cfgfile="${ofile}T" 20470 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20471 $RM "$cfgfile" 20472 20473 cat <<_LT_EOF >> "$cfgfile" 20474#! $SHELL 20475 20476# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20477# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20478# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20479# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20480# 20481# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20482# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20483# Foundation, Inc. 20484# Written by Gordon Matzigkeit, 1996 20485# 20486# This file is part of GNU Libtool. 20487# 20488# GNU Libtool is free software; you can redistribute it and/or 20489# modify it under the terms of the GNU General Public License as 20490# published by the Free Software Foundation; either version 2 of 20491# the License, or (at your option) any later version. 20492# 20493# As a special exception to the GNU General Public License, 20494# if you distribute this file as part of a program or library that 20495# is built using GNU Libtool, you may include this file under the 20496# same distribution terms that you use for the rest of that program. 20497# 20498# GNU Libtool is distributed in the hope that it will be useful, 20499# but WITHOUT ANY WARRANTY; without even the implied warranty of 20500# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20501# GNU General Public License for more details. 20502# 20503# You should have received a copy of the GNU General Public License 20504# along with GNU Libtool; see the file COPYING. If not, a copy 20505# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20506# obtained by writing to the Free Software Foundation, Inc., 20507# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20508 20509 20510# The names of the tagged configurations supported by this script. 20511available_tags="" 20512 20513# ### BEGIN LIBTOOL CONFIG 20514 20515# Whether or not to build static libraries. 20516build_old_libs=$enable_static 20517 20518# Which release of libtool.m4 was used? 20519macro_version=$macro_version 20520macro_revision=$macro_revision 20521 20522# Whether or not to build shared libraries. 20523build_libtool_libs=$enable_shared 20524 20525# What type of objects to build. 20526pic_mode=$pic_mode 20527 20528# Whether or not to optimize for fast installation. 20529fast_install=$enable_fast_install 20530 20531# Shell to use when invoking shell scripts. 20532SHELL=$lt_SHELL 20533 20534# An echo program that protects backslashes. 20535ECHO=$lt_ECHO 20536 20537# The PATH separator for the build system. 20538PATH_SEPARATOR=$lt_PATH_SEPARATOR 20539 20540# The host system. 20541host_alias=$host_alias 20542host=$host 20543host_os=$host_os 20544 20545# The build system. 20546build_alias=$build_alias 20547build=$build 20548build_os=$build_os 20549 20550# A sed program that does not truncate output. 20551SED=$lt_SED 20552 20553# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20554Xsed="\$SED -e 1s/^X//" 20555 20556# A grep program that handles long lines. 20557GREP=$lt_GREP 20558 20559# An ERE matcher. 20560EGREP=$lt_EGREP 20561 20562# A literal string matcher. 20563FGREP=$lt_FGREP 20564 20565# A BSD- or MS-compatible name lister. 20566NM=$lt_NM 20567 20568# Whether we need soft or hard links. 20569LN_S=$lt_LN_S 20570 20571# What is the maximum length of a command? 20572max_cmd_len=$max_cmd_len 20573 20574# Object file suffix (normally "o"). 20575objext=$ac_objext 20576 20577# Executable file suffix (normally ""). 20578exeext=$exeext 20579 20580# whether the shell understands "unset". 20581lt_unset=$lt_unset 20582 20583# turn spaces into newlines. 20584SP2NL=$lt_lt_SP2NL 20585 20586# turn newlines into spaces. 20587NL2SP=$lt_lt_NL2SP 20588 20589# convert \$build file names to \$host format. 20590to_host_file_cmd=$lt_cv_to_host_file_cmd 20591 20592# convert \$build files to toolchain format. 20593to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20594 20595# An object symbol dumper. 20596OBJDUMP=$lt_OBJDUMP 20597 20598# Method to check whether dependent libraries are shared objects. 20599deplibs_check_method=$lt_deplibs_check_method 20600 20601# Command to use when deplibs_check_method = "file_magic". 20602file_magic_cmd=$lt_file_magic_cmd 20603 20604# How to find potential files when deplibs_check_method = "file_magic". 20605file_magic_glob=$lt_file_magic_glob 20606 20607# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20608want_nocaseglob=$lt_want_nocaseglob 20609 20610# DLL creation program. 20611DLLTOOL=$lt_DLLTOOL 20612 20613# Command to associate shared and link libraries. 20614sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20615 20616# The archiver. 20617AR=$lt_AR 20618 20619# Flags to create an archive. 20620AR_FLAGS=$lt_AR_FLAGS 20621 20622# How to feed a file listing to the archiver. 20623archiver_list_spec=$lt_archiver_list_spec 20624 20625# A symbol stripping program. 20626STRIP=$lt_STRIP 20627 20628# Commands used to install an old-style archive. 20629RANLIB=$lt_RANLIB 20630old_postinstall_cmds=$lt_old_postinstall_cmds 20631old_postuninstall_cmds=$lt_old_postuninstall_cmds 20632 20633# Whether to use a lock for old archive extraction. 20634lock_old_archive_extraction=$lock_old_archive_extraction 20635 20636# A C compiler. 20637LTCC=$lt_CC 20638 20639# LTCC compiler flags. 20640LTCFLAGS=$lt_CFLAGS 20641 20642# Take the output of nm and produce a listing of raw symbols and C names. 20643global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20644 20645# Transform the output of nm in a proper C declaration. 20646global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20647 20648# Transform the output of nm in a C name address pair. 20649global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20650 20651# Transform the output of nm in a C name address pair when lib prefix is needed. 20652global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20653 20654# Specify filename containing input files for \$NM. 20655nm_file_list_spec=$lt_nm_file_list_spec 20656 20657# The root where to search for dependent libraries,and in which our libraries should be installed. 20658lt_sysroot=$lt_sysroot 20659 20660# The name of the directory that contains temporary libtool files. 20661objdir=$objdir 20662 20663# Used to examine libraries when file_magic_cmd begins with "file". 20664MAGIC_CMD=$MAGIC_CMD 20665 20666# Must we lock files when doing compilation? 20667need_locks=$lt_need_locks 20668 20669# Manifest tool. 20670MANIFEST_TOOL=$lt_MANIFEST_TOOL 20671 20672# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20673DSYMUTIL=$lt_DSYMUTIL 20674 20675# Tool to change global to local symbols on Mac OS X. 20676NMEDIT=$lt_NMEDIT 20677 20678# Tool to manipulate fat objects and archives on Mac OS X. 20679LIPO=$lt_LIPO 20680 20681# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20682OTOOL=$lt_OTOOL 20683 20684# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20685OTOOL64=$lt_OTOOL64 20686 20687# Old archive suffix (normally "a"). 20688libext=$libext 20689 20690# Shared library suffix (normally ".so"). 20691shrext_cmds=$lt_shrext_cmds 20692 20693# The commands to extract the exported symbol list from a shared archive. 20694extract_expsyms_cmds=$lt_extract_expsyms_cmds 20695 20696# Variables whose values should be saved in libtool wrapper scripts and 20697# restored at link time. 20698variables_saved_for_relink=$lt_variables_saved_for_relink 20699 20700# Do we need the "lib" prefix for modules? 20701need_lib_prefix=$need_lib_prefix 20702 20703# Do we need a version for libraries? 20704need_version=$need_version 20705 20706# Library versioning type. 20707version_type=$version_type 20708 20709# Shared library runtime path variable. 20710runpath_var=$runpath_var 20711 20712# Shared library path variable. 20713shlibpath_var=$shlibpath_var 20714 20715# Is shlibpath searched before the hard-coded library search path? 20716shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20717 20718# Format of library name prefix. 20719libname_spec=$lt_libname_spec 20720 20721# List of archive names. First name is the real one, the rest are links. 20722# The last name is the one that the linker finds with -lNAME 20723library_names_spec=$lt_library_names_spec 20724 20725# The coded name of the library, if different from the real name. 20726soname_spec=$lt_soname_spec 20727 20728# Permission mode override for installation of shared libraries. 20729install_override_mode=$lt_install_override_mode 20730 20731# Command to use after installation of a shared archive. 20732postinstall_cmds=$lt_postinstall_cmds 20733 20734# Command to use after uninstallation of a shared archive. 20735postuninstall_cmds=$lt_postuninstall_cmds 20736 20737# Commands used to finish a libtool library installation in a directory. 20738finish_cmds=$lt_finish_cmds 20739 20740# As "finish_cmds", except a single script fragment to be evaled but 20741# not shown. 20742finish_eval=$lt_finish_eval 20743 20744# Whether we should hardcode library paths into libraries. 20745hardcode_into_libs=$hardcode_into_libs 20746 20747# Compile-time system search path for libraries. 20748sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20749 20750# Run-time system search path for libraries. 20751sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20752 20753# Whether dlopen is supported. 20754dlopen_support=$enable_dlopen 20755 20756# Whether dlopen of programs is supported. 20757dlopen_self=$enable_dlopen_self 20758 20759# Whether dlopen of statically linked programs is supported. 20760dlopen_self_static=$enable_dlopen_self_static 20761 20762# Commands to strip libraries. 20763old_striplib=$lt_old_striplib 20764striplib=$lt_striplib 20765 20766 20767# The linker used to build libraries. 20768LD=$lt_LD 20769 20770# How to create reloadable object files. 20771reload_flag=$lt_reload_flag 20772reload_cmds=$lt_reload_cmds 20773 20774# Commands used to build an old-style archive. 20775old_archive_cmds=$lt_old_archive_cmds 20776 20777# A language specific compiler. 20778CC=$lt_compiler 20779 20780# Is the compiler the GNU compiler? 20781with_gcc=$GCC 20782 20783# Compiler flag to turn off builtin functions. 20784no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20785 20786# Additional compiler flags for building library objects. 20787pic_flag=$lt_lt_prog_compiler_pic 20788 20789# How to pass a linker flag through the compiler. 20790wl=$lt_lt_prog_compiler_wl 20791 20792# Compiler flag to prevent dynamic linking. 20793link_static_flag=$lt_lt_prog_compiler_static 20794 20795# Does compiler simultaneously support -c and -o options? 20796compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20797 20798# Whether or not to add -lc for building shared libraries. 20799build_libtool_need_lc=$archive_cmds_need_lc 20800 20801# Whether or not to disallow shared libs when runtime libs are static. 20802allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20803 20804# Compiler flag to allow reflexive dlopens. 20805export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20806 20807# Compiler flag to generate shared objects directly from archives. 20808whole_archive_flag_spec=$lt_whole_archive_flag_spec 20809 20810# Whether the compiler copes with passing no objects directly. 20811compiler_needs_object=$lt_compiler_needs_object 20812 20813# Create an old-style archive from a shared archive. 20814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20815 20816# Create a temporary old-style archive to link instead of a shared archive. 20817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20818 20819# Commands used to build a shared archive. 20820archive_cmds=$lt_archive_cmds 20821archive_expsym_cmds=$lt_archive_expsym_cmds 20822 20823# Commands used to build a loadable module if different from building 20824# a shared archive. 20825module_cmds=$lt_module_cmds 20826module_expsym_cmds=$lt_module_expsym_cmds 20827 20828# Whether we are building with GNU ld or not. 20829with_gnu_ld=$lt_with_gnu_ld 20830 20831# Flag that allows shared libraries with undefined symbols to be built. 20832allow_undefined_flag=$lt_allow_undefined_flag 20833 20834# Flag that enforces no undefined symbols. 20835no_undefined_flag=$lt_no_undefined_flag 20836 20837# Flag to hardcode \$libdir into a binary during linking. 20838# This must work even if \$libdir does not exist 20839hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20840 20841# Whether we need a single "-rpath" flag with a separated argument. 20842hardcode_libdir_separator=$lt_hardcode_libdir_separator 20843 20844# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20845# DIR into the resulting binary. 20846hardcode_direct=$hardcode_direct 20847 20848# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20849# DIR into the resulting binary and the resulting library dependency is 20850# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20851# library is relocated. 20852hardcode_direct_absolute=$hardcode_direct_absolute 20853 20854# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20855# into the resulting binary. 20856hardcode_minus_L=$hardcode_minus_L 20857 20858# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20859# into the resulting binary. 20860hardcode_shlibpath_var=$hardcode_shlibpath_var 20861 20862# Set to "yes" if building a shared library automatically hardcodes DIR 20863# into the library and all subsequent libraries and executables linked 20864# against it. 20865hardcode_automatic=$hardcode_automatic 20866 20867# Set to yes if linker adds runtime paths of dependent libraries 20868# to runtime path list. 20869inherit_rpath=$inherit_rpath 20870 20871# Whether libtool must link a program against all its dependency libraries. 20872link_all_deplibs=$link_all_deplibs 20873 20874# Set to "yes" if exported symbols are required. 20875always_export_symbols=$always_export_symbols 20876 20877# The commands to list exported symbols. 20878export_symbols_cmds=$lt_export_symbols_cmds 20879 20880# Symbols that should not be listed in the preloaded symbols. 20881exclude_expsyms=$lt_exclude_expsyms 20882 20883# Symbols that must always be exported. 20884include_expsyms=$lt_include_expsyms 20885 20886# Commands necessary for linking programs (against libraries) with templates. 20887prelink_cmds=$lt_prelink_cmds 20888 20889# Commands necessary for finishing linking programs. 20890postlink_cmds=$lt_postlink_cmds 20891 20892# Specify filename containing input files. 20893file_list_spec=$lt_file_list_spec 20894 20895# How to hardcode a shared library path into an executable. 20896hardcode_action=$hardcode_action 20897 20898# ### END LIBTOOL CONFIG 20899 20900_LT_EOF 20901 20902 case $host_os in 20903 aix3*) 20904 cat <<\_LT_EOF >> "$cfgfile" 20905# AIX sometimes has problems with the GCC collect2 program. For some 20906# reason, if we set the COLLECT_NAMES environment variable, the problems 20907# vanish in a puff of smoke. 20908if test "X${COLLECT_NAMES+set}" != Xset; then 20909 COLLECT_NAMES= 20910 export COLLECT_NAMES 20911fi 20912_LT_EOF 20913 ;; 20914 esac 20915 20916 20917ltmain="$ac_aux_dir/ltmain.sh" 20918 20919 20920 # We use sed instead of cat because bash on DJGPP gets confused if 20921 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20922 # text mode, it properly converts lines to CR/LF. This bash problem 20923 # is reportedly fixed, but why not run on old versions too? 20924 sed '$q' "$ltmain" >> "$cfgfile" \ 20925 || (rm -f "$cfgfile"; exit 1) 20926 20927 if test x"$xsi_shell" = xyes; then 20928 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20929func_dirname ()\ 20930{\ 20931\ case ${1} in\ 20932\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20933\ * ) func_dirname_result="${3}" ;;\ 20934\ esac\ 20935} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20938test 0 -eq $? || _lt_function_replace_fail=: 20939 20940 20941 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20942func_basename ()\ 20943{\ 20944\ func_basename_result="${1##*/}"\ 20945} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20946 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20948test 0 -eq $? || _lt_function_replace_fail=: 20949 20950 20951 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20952func_dirname_and_basename ()\ 20953{\ 20954\ case ${1} in\ 20955\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20956\ * ) func_dirname_result="${3}" ;;\ 20957\ esac\ 20958\ func_basename_result="${1##*/}"\ 20959} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20960 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20962test 0 -eq $? || _lt_function_replace_fail=: 20963 20964 20965 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20966func_stripname ()\ 20967{\ 20968\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20969\ # positional parameters, so assign one to ordinary parameter first.\ 20970\ func_stripname_result=${3}\ 20971\ func_stripname_result=${func_stripname_result#"${1}"}\ 20972\ func_stripname_result=${func_stripname_result%"${2}"}\ 20973} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20974 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20976test 0 -eq $? || _lt_function_replace_fail=: 20977 20978 20979 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20980func_split_long_opt ()\ 20981{\ 20982\ func_split_long_opt_name=${1%%=*}\ 20983\ func_split_long_opt_arg=${1#*=}\ 20984} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20985 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20987test 0 -eq $? || _lt_function_replace_fail=: 20988 20989 20990 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20991func_split_short_opt ()\ 20992{\ 20993\ func_split_short_opt_arg=${1#??}\ 20994\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20995} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20996 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20998test 0 -eq $? || _lt_function_replace_fail=: 20999 21000 21001 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21002func_lo2o ()\ 21003{\ 21004\ case ${1} in\ 21005\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21006\ *) func_lo2o_result=${1} ;;\ 21007\ esac\ 21008} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21009 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21011test 0 -eq $? || _lt_function_replace_fail=: 21012 21013 21014 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21015func_xform ()\ 21016{\ 21017 func_xform_result=${1%.*}.lo\ 21018} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21019 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21021test 0 -eq $? || _lt_function_replace_fail=: 21022 21023 21024 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21025func_arith ()\ 21026{\ 21027 func_arith_result=$(( $* ))\ 21028} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21029 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21031test 0 -eq $? || _lt_function_replace_fail=: 21032 21033 21034 sed -e '/^func_len ()$/,/^} # func_len /c\ 21035func_len ()\ 21036{\ 21037 func_len_result=${#1}\ 21038} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21039 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21041test 0 -eq $? || _lt_function_replace_fail=: 21042 21043fi 21044 21045if test x"$lt_shell_append" = xyes; then 21046 sed -e '/^func_append ()$/,/^} # func_append /c\ 21047func_append ()\ 21048{\ 21049 eval "${1}+=\\${2}"\ 21050} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21051 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21053test 0 -eq $? || _lt_function_replace_fail=: 21054 21055 21056 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21057func_append_quoted ()\ 21058{\ 21059\ func_quote_for_eval "${2}"\ 21060\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21061} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21062 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21064test 0 -eq $? || _lt_function_replace_fail=: 21065 21066 21067 # Save a `func_append' function call where possible by direct use of '+=' 21068 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21069 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21071 test 0 -eq $? || _lt_function_replace_fail=: 21072else 21073 # Save a `func_append' function call even when '+=' is not available 21074 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21075 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21077 test 0 -eq $? || _lt_function_replace_fail=: 21078fi 21079 21080if test x"$_lt_function_replace_fail" = x":"; then 21081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21082$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21083fi 21084 21085 21086 mv -f "$cfgfile" "$ofile" || 21087 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21088 chmod +x "$ofile" 21089 21090 ;; 21091 21092 esac 21093done # for ac_tag 21094 21095 21096as_fn_exit 0 21097_ACEOF 21098ac_clean_files=$ac_clean_files_save 21099 21100test $ac_write_fail = 0 || 21101 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21102 21103 21104# configure is writing to config.log, and then calls config.status. 21105# config.status does its own redirection, appending to config.log. 21106# Unfortunately, on DOS this fails, as config.log is still kept open 21107# by configure, so config.status won't be able to write to it; its 21108# output is simply discarded. So we exec the FD to /dev/null, 21109# effectively closing config.log, so it can be properly (re)opened and 21110# appended to by config.status. When coming back to configure, we 21111# need to make the FD available again. 21112if test "$no_create" != yes; then 21113 ac_cs_success=: 21114 ac_config_status_args= 21115 test "$silent" = yes && 21116 ac_config_status_args="$ac_config_status_args --quiet" 21117 exec 5>/dev/null 21118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21119 exec 5>>config.log 21120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21121 # would make configure fail if this is the last instruction. 21122 $ac_cs_success || as_fn_exit 1 21123fi 21124if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21126$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21127fi 21128 21129