1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-scfb 0.0.5. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-video-scfb' 593PACKAGE_TARNAME='xf86-video-scfb' 594PACKAGE_VERSION='0.0.5' 595PACKAGE_STRING='xf86-video-scfb 0.0.5' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642XORG_LIBS 643XORG_CFLAGS 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649MANIFEST_TOOL 650RANLIB 651ac_ct_AR 652AR 653DLLTOOL 654OBJDUMP 655LN_S 656NM 657ac_ct_DUMPBIN 658DUMPBIN 659LD 660FGREP 661LIBTOOL 662MAINT 663MAINTAINER_MODE_FALSE 664MAINTAINER_MODE_TRUE 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 673am__include 674DEPDIR 675am__untar 676am__tar 677AMTAR 678am__leading_dot 679SET_MAKE 680AWK 681mkdir_p 682MKDIR_P 683INSTALL_STRIP_PROGRAM 684STRIP 685install_sh 686MAKEINFO 687AUTOHEADER 688AUTOMAKE 689AUTOCONF 690ACLOCAL 691VERSION 692PACKAGE 693CYGPATH_W 694am__isrc 695AM_BACKSLASH 696AM_DEFAULT_VERBOSITY 697AM_DEFAULT_V 698AM_V 699MAN_SUBSTS 700XORG_MAN_PAGE 701ADMIN_MAN_DIR 702DRIVER_MAN_DIR 703MISC_MAN_DIR 704FILE_MAN_DIR 705LIB_MAN_DIR 706APP_MAN_DIR 707ADMIN_MAN_SUFFIX 708DRIVER_MAN_SUFFIX 709MISC_MAN_SUFFIX 710FILE_MAN_SUFFIX 711LIB_MAN_SUFFIX 712APP_MAN_SUFFIX 713SED 714host_os 715host_vendor 716host_cpu 717host 718build_os 719build_vendor 720build_cpu 721build 722INSTALL_CMD 723PKG_CONFIG_LIBDIR 724PKG_CONFIG_PATH 725PKG_CONFIG 726CHANGELOG_CMD 727STRICT_CFLAGS 728CWARNFLAGS 729BASE_CFLAGS 730EGREP 731GREP 732CPP 733OBJEXT 734EXEEXT 735ac_ct_CC 736CPPFLAGS 737LDFLAGS 738CFLAGS 739CC 740INSTALL_DATA 741INSTALL_SCRIPT 742INSTALL_PROGRAM 743target_alias 744host_alias 745build_alias 746LIBS 747ECHO_T 748ECHO_N 749ECHO_C 750DEFS 751mandir 752localedir 753libdir 754psdir 755pdfdir 756dvidir 757htmldir 758infodir 759docdir 760oldincludedir 761includedir 762localstatedir 763sharedstatedir 764sysconfdir 765datadir 766datarootdir 767libexecdir 768sbindir 769bindir 770program_transform_name 771prefix 772exec_prefix 773PACKAGE_URL 774PACKAGE_BUGREPORT 775PACKAGE_STRING 776PACKAGE_VERSION 777PACKAGE_TARNAME 778PACKAGE_NAME 779PATH_SEPARATOR 780SHELL' 781ac_subst_files='' 782ac_user_opts=' 783enable_option_checking 784enable_selective_werror 785enable_strict_compilation 786enable_silent_rules 787enable_dependency_tracking 788enable_maintainer_mode 789enable_static 790enable_shared 791with_pic 792enable_fast_install 793with_gnu_ld 794with_sysroot 795enable_libtool_lock 796with_xorg_module_dir 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806CPP 807PKG_CONFIG 808PKG_CONFIG_PATH 809PKG_CONFIG_LIBDIR 810XORG_CFLAGS 811XORG_LIBS' 812 813 814# Initialize some variables set by options. 815ac_init_help= 816ac_init_version=false 817ac_unrecognized_opts= 818ac_unrecognized_sep= 819# The variables have the same names as the options, with 820# dashes changed to underlines. 821cache_file=/dev/null 822exec_prefix=NONE 823no_create= 824no_recursion= 825prefix=NONE 826program_prefix=NONE 827program_suffix=NONE 828program_transform_name=s,x,x, 829silent= 830site= 831srcdir= 832verbose= 833x_includes=NONE 834x_libraries=NONE 835 836# Installation directory options. 837# These are left unexpanded so users can "make install exec_prefix=/foo" 838# and all the variables that are supposed to be based on exec_prefix 839# by default will actually change. 840# Use braces instead of parens because sh, perl, etc. also accept them. 841# (The list follows the same order as the GNU Coding Standards.) 842bindir='${exec_prefix}/bin' 843sbindir='${exec_prefix}/sbin' 844libexecdir='${exec_prefix}/libexec' 845datarootdir='${prefix}/share' 846datadir='${datarootdir}' 847sysconfdir='${prefix}/etc' 848sharedstatedir='${prefix}/com' 849localstatedir='${prefix}/var' 850includedir='${prefix}/include' 851oldincludedir='/usr/include' 852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 853infodir='${datarootdir}/info' 854htmldir='${docdir}' 855dvidir='${docdir}' 856pdfdir='${docdir}' 857psdir='${docdir}' 858libdir='${exec_prefix}/lib' 859localedir='${datarootdir}/locale' 860mandir='${datarootdir}/man' 861 862ac_prev= 863ac_dashdash= 864for ac_option 865do 866 # If the previous option needs an argument, assign it. 867 if test -n "$ac_prev"; then 868 eval $ac_prev=\$ac_option 869 ac_prev= 870 continue 871 fi 872 873 case $ac_option in 874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 875 *=) ac_optarg= ;; 876 *) ac_optarg=yes ;; 877 esac 878 879 # Accept the important Cygnus configure options, so we can diagnose typos. 880 881 case $ac_dashdash$ac_option in 882 --) 883 ac_dashdash=yes ;; 884 885 -bindir | --bindir | --bindi | --bind | --bin | --bi) 886 ac_prev=bindir ;; 887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 888 bindir=$ac_optarg ;; 889 890 -build | --build | --buil | --bui | --bu) 891 ac_prev=build_alias ;; 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 893 build_alias=$ac_optarg ;; 894 895 -cache-file | --cache-file | --cache-fil | --cache-fi \ 896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 897 ac_prev=cache_file ;; 898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 900 cache_file=$ac_optarg ;; 901 902 --config-cache | -C) 903 cache_file=config.cache ;; 904 905 -datadir | --datadir | --datadi | --datad) 906 ac_prev=datadir ;; 907 -datadir=* | --datadir=* | --datadi=* | --datad=*) 908 datadir=$ac_optarg ;; 909 910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 911 | --dataroo | --dataro | --datar) 912 ac_prev=datarootdir ;; 913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 915 datarootdir=$ac_optarg ;; 916 917 -disable-* | --disable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: $ac_useropt" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=no ;; 932 933 -docdir | --docdir | --docdi | --doc | --do) 934 ac_prev=docdir ;; 935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 936 docdir=$ac_optarg ;; 937 938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 939 ac_prev=dvidir ;; 940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 941 dvidir=$ac_optarg ;; 942 943 -enable-* | --enable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: $ac_useropt" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=\$ac_optarg ;; 958 959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 961 | --exec | --exe | --ex) 962 ac_prev=exec_prefix ;; 963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 965 | --exec=* | --exe=* | --ex=*) 966 exec_prefix=$ac_optarg ;; 967 968 -gas | --gas | --ga | --g) 969 # Obsolete; use --with-gas. 970 with_gas=yes ;; 971 972 -help | --help | --hel | --he | -h) 973 ac_init_help=long ;; 974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 975 ac_init_help=recursive ;; 976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 977 ac_init_help=short ;; 978 979 -host | --host | --hos | --ho) 980 ac_prev=host_alias ;; 981 -host=* | --host=* | --hos=* | --ho=*) 982 host_alias=$ac_optarg ;; 983 984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 985 ac_prev=htmldir ;; 986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 987 | --ht=*) 988 htmldir=$ac_optarg ;; 989 990 -includedir | --includedir | --includedi | --included | --include \ 991 | --includ | --inclu | --incl | --inc) 992 ac_prev=includedir ;; 993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 994 | --includ=* | --inclu=* | --incl=* | --inc=*) 995 includedir=$ac_optarg ;; 996 997 -infodir | --infodir | --infodi | --infod | --info | --inf) 998 ac_prev=infodir ;; 999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1000 infodir=$ac_optarg ;; 1001 1002 -libdir | --libdir | --libdi | --libd) 1003 ac_prev=libdir ;; 1004 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1005 libdir=$ac_optarg ;; 1006 1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1008 | --libexe | --libex | --libe) 1009 ac_prev=libexecdir ;; 1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1011 | --libexe=* | --libex=* | --libe=*) 1012 libexecdir=$ac_optarg ;; 1013 1014 -localedir | --localedir | --localedi | --localed | --locale) 1015 ac_prev=localedir ;; 1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1017 localedir=$ac_optarg ;; 1018 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1020 | --localstate | --localstat | --localsta | --localst | --locals) 1021 ac_prev=localstatedir ;; 1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1024 localstatedir=$ac_optarg ;; 1025 1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1027 ac_prev=mandir ;; 1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1029 mandir=$ac_optarg ;; 1030 1031 -nfp | --nfp | --nf) 1032 # Obsolete; use --without-fp. 1033 with_fp=no ;; 1034 1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1036 | --no-cr | --no-c | -n) 1037 no_create=yes ;; 1038 1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1041 no_recursion=yes ;; 1042 1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1045 | --oldin | --oldi | --old | --ol | --o) 1046 ac_prev=oldincludedir ;; 1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1050 oldincludedir=$ac_optarg ;; 1051 1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1053 ac_prev=prefix ;; 1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1055 prefix=$ac_optarg ;; 1056 1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1058 | --program-pre | --program-pr | --program-p) 1059 ac_prev=program_prefix ;; 1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1062 program_prefix=$ac_optarg ;; 1063 1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1065 | --program-suf | --program-su | --program-s) 1066 ac_prev=program_suffix ;; 1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1069 program_suffix=$ac_optarg ;; 1070 1071 -program-transform-name | --program-transform-name \ 1072 | --program-transform-nam | --program-transform-na \ 1073 | --program-transform-n | --program-transform- \ 1074 | --program-transform | --program-transfor \ 1075 | --program-transfo | --program-transf \ 1076 | --program-trans | --program-tran \ 1077 | --progr-tra | --program-tr | --program-t) 1078 ac_prev=program_transform_name ;; 1079 -program-transform-name=* | --program-transform-name=* \ 1080 | --program-transform-nam=* | --program-transform-na=* \ 1081 | --program-transform-n=* | --program-transform-=* \ 1082 | --program-transform=* | --program-transfor=* \ 1083 | --program-transfo=* | --program-transf=* \ 1084 | --program-trans=* | --program-tran=* \ 1085 | --progr-tra=* | --program-tr=* | --program-t=*) 1086 program_transform_name=$ac_optarg ;; 1087 1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1089 ac_prev=pdfdir ;; 1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1091 pdfdir=$ac_optarg ;; 1092 1093 -psdir | --psdir | --psdi | --psd | --ps) 1094 ac_prev=psdir ;; 1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1096 psdir=$ac_optarg ;; 1097 1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1099 | -silent | --silent | --silen | --sile | --sil) 1100 silent=yes ;; 1101 1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1103 ac_prev=sbindir ;; 1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1105 | --sbi=* | --sb=*) 1106 sbindir=$ac_optarg ;; 1107 1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1110 | --sharedst | --shareds | --shared | --share | --shar \ 1111 | --sha | --sh) 1112 ac_prev=sharedstatedir ;; 1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1116 | --sha=* | --sh=*) 1117 sharedstatedir=$ac_optarg ;; 1118 1119 -site | --site | --sit) 1120 ac_prev=site ;; 1121 -site=* | --site=* | --sit=*) 1122 site=$ac_optarg ;; 1123 1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1125 ac_prev=srcdir ;; 1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1127 srcdir=$ac_optarg ;; 1128 1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1130 | --syscon | --sysco | --sysc | --sys | --sy) 1131 ac_prev=sysconfdir ;; 1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1134 sysconfdir=$ac_optarg ;; 1135 1136 -target | --target | --targe | --targ | --tar | --ta | --t) 1137 ac_prev=target_alias ;; 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1139 target_alias=$ac_optarg ;; 1140 1141 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1142 verbose=yes ;; 1143 1144 -version | --version | --versio | --versi | --vers | -V) 1145 ac_init_version=: ;; 1146 1147 -with-* | --with-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid package name: $ac_useropt" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156"with_$ac_useropt" 1157"*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval with_$ac_useropt=\$ac_optarg ;; 1162 1163 -without-* | --without-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: $ac_useropt" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172"with_$ac_useropt" 1173"*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=no ;; 1178 1179 --x) 1180 # Obsolete; use --with-x. 1181 with_x=yes ;; 1182 1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1184 | --x-incl | --x-inc | --x-in | --x-i) 1185 ac_prev=x_includes ;; 1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1188 x_includes=$ac_optarg ;; 1189 1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1192 ac_prev=x_libraries ;; 1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1195 x_libraries=$ac_optarg ;; 1196 1197 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1198Try \`$0 --help' for more information" 1199 ;; 1200 1201 *=*) 1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1203 # Reject names that are not valid shell variable names. 1204 case $ac_envvar in #( 1205 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1207 esac 1208 eval $ac_envvar=\$ac_optarg 1209 export $ac_envvar ;; 1210 1211 *) 1212 # FIXME: should be removed in autoconf 3.0. 1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1217 ;; 1218 1219 esac 1220done 1221 1222if test -n "$ac_prev"; then 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1224 as_fn_error $? "missing argument to $ac_option" 1225fi 1226 1227if test -n "$ac_unrecognized_opts"; then 1228 case $enable_option_checking in 1229 no) ;; 1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232 esac 1233fi 1234 1235# Check all directory arguments for consistency. 1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1237 datadir sysconfdir sharedstatedir localstatedir includedir \ 1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1239 libdir localedir mandir 1240do 1241 eval ac_val=\$$ac_var 1242 # Remove trailing slashes. 1243 case $ac_val in 1244 */ ) 1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1246 eval $ac_var=\$ac_val;; 1247 esac 1248 # Be sure to have absolute directory names. 1249 case $ac_val in 1250 [\\/$]* | ?:[\\/]* ) continue;; 1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1252 esac 1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1254done 1255 1256# There might be people who depend on the old broken behavior: `$host' 1257# used to hold the argument of --host etc. 1258# FIXME: To remove some day. 1259build=$build_alias 1260host=$host_alias 1261target=$target_alias 1262 1263# FIXME: To remove some day. 1264if test "x$host_alias" != x; then 1265 if test "x$build_alias" = x; then 1266 cross_compiling=maybe 1267 elif test "x$build_alias" != "x$host_alias"; then 1268 cross_compiling=yes 1269 fi 1270fi 1271 1272ac_tool_prefix= 1273test -n "$host_alias" && ac_tool_prefix=$host_alias- 1274 1275test "$silent" = yes && exec 6>/dev/null 1276 1277 1278ac_pwd=`pwd` && test -n "$ac_pwd" && 1279ac_ls_di=`ls -di .` && 1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281 as_fn_error $? "working directory cannot be determined" 1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283 as_fn_error $? "pwd does not report name of working directory" 1284 1285 1286# Find the source files, if location was not specified. 1287if test -z "$srcdir"; then 1288 ac_srcdir_defaulted=yes 1289 # Try the directory containing this script, then the parent directory. 1290 ac_confdir=`$as_dirname -- "$as_myself" || 1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292 X"$as_myself" : 'X\(//\)[^/]' \| \ 1293 X"$as_myself" : 'X\(//\)$' \| \ 1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1295$as_echo X"$as_myself" | 1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)[^/].*/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\).*/{ 1309 s//\1/ 1310 q 1311 } 1312 s/.*/./; q'` 1313 srcdir=$ac_confdir 1314 if test ! -r "$srcdir/$ac_unique_file"; then 1315 srcdir=.. 1316 fi 1317else 1318 ac_srcdir_defaulted=no 1319fi 1320if test ! -r "$srcdir/$ac_unique_file"; then 1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1323fi 1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1325ac_abs_confdir=`( 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1327 pwd)` 1328# When building in place, set srcdir=. 1329if test "$ac_abs_confdir" = "$ac_pwd"; then 1330 srcdir=. 1331fi 1332# Remove unnecessary trailing slashes from srcdir. 1333# Double slashes in file names in object file debugging info 1334# mess up M-x gdb in Emacs. 1335case $srcdir in 1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1337esac 1338for ac_var in $ac_precious_vars; do 1339 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_env_${ac_var}_value=\$${ac_var} 1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1343done 1344 1345# 1346# Report the --help message. 1347# 1348if test "$ac_init_help" = "long"; then 1349 # Omit some internal or obsolete options to make the list less imposing. 1350 # This message is too long to be a string in the A/UX 3.1 sh. 1351 cat <<_ACEOF 1352\`configure' configures xf86-video-scfb 0.0.5 to adapt to many kinds of systems. 1353 1354Usage: $0 [OPTION]... [VAR=VALUE]... 1355 1356To assign environment variables (e.g., CC, CFLAGS...), specify them as 1357VAR=VALUE. See below for descriptions of some of the useful variables. 1358 1359Defaults for the options are specified in brackets. 1360 1361Configuration: 1362 -h, --help display this help and exit 1363 --help=short display options specific to this package 1364 --help=recursive display the short help of all the included packages 1365 -V, --version display version information and exit 1366 -q, --quiet, --silent do not print \`checking ...' messages 1367 --cache-file=FILE cache test results in FILE [disabled] 1368 -C, --config-cache alias for \`--cache-file=config.cache' 1369 -n, --no-create do not create output files 1370 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1371 1372Installation directories: 1373 --prefix=PREFIX install architecture-independent files in PREFIX 1374 [$ac_default_prefix] 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376 [PREFIX] 1377 1378By default, \`make install' will install all the files in 1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1380an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1381for instance \`--prefix=\$HOME'. 1382 1383For better control, use the options below. 1384 1385Fine tuning of the installation directories: 1386 --bindir=DIR user executables [EPREFIX/bin] 1387 --sbindir=DIR system admin executables [EPREFIX/sbin] 1388 --libexecdir=DIR program executables [EPREFIX/libexec] 1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-scfb] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409Program names: 1410 --program-prefix=PREFIX prepend PREFIX to installed program names 1411 --program-suffix=SUFFIX append SUFFIX to installed program names 1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1413 1414System types: 1415 --build=BUILD configure for building on BUILD [guessed] 1416 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of xf86-video-scfb 0.0.5:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 --enable-silent-rules less verbose build output (undo: "make V=1") 1437 --disable-silent-rules verbose build output (undo: "make V=0") 1438 --enable-dependency-tracking 1439 do not reject slow dependency extractors 1440 --disable-dependency-tracking 1441 speeds up one-time build 1442 --enable-maintainer-mode 1443 enable make rules and dependencies not useful (and 1444 sometimes confusing) to the casual installer 1445 --enable-static[=PKGS] build static libraries [default=no] 1446 --enable-shared[=PKGS] build shared libraries [default=yes] 1447 --enable-fast-install[=PKGS] 1448 optimize for fast installation [default=yes] 1449 --disable-libtool-lock avoid locking (might break parallel builds) 1450 1451Optional Packages: 1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1454 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1455 both] 1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1457 --with-sysroot=DIR Search for dependent libraries within DIR 1458 (or the compiler's sysroot if not specified). 1459 --with-xorg-module-dir=DIR 1460 Default xorg module directory 1461 [[default=$libdir/xorg/modules]] 1462 1463Some influential environment variables: 1464 CC C compiler command 1465 CFLAGS C compiler flags 1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1467 nonstandard directory <lib dir> 1468 LIBS libraries to pass to the linker, e.g. -l<library> 1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1470 you have headers in a nonstandard directory <include dir> 1471 CPP C preprocessor 1472 PKG_CONFIG path to pkg-config utility 1473 PKG_CONFIG_PATH 1474 directories to add to pkg-config's search path 1475 PKG_CONFIG_LIBDIR 1476 path overriding pkg-config's built-in search path 1477 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1478 XORG_LIBS linker flags for XORG, overriding pkg-config 1479 1480Use these variables to override the choices made by `configure' or to help 1481it to find libraries and programs with nonstandard names/locations. 1482 1483Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1484_ACEOF 1485ac_status=$? 1486fi 1487 1488if test "$ac_init_help" = "recursive"; then 1489 # If there are subdirs, report their specific --help. 1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1491 test -d "$ac_dir" || 1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1493 continue 1494 ac_builddir=. 1495 1496case "$ac_dir" in 1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1498*) 1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1500 # A ".." for each directory in $ac_dir_suffix. 1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1502 case $ac_top_builddir_sub in 1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1505 esac ;; 1506esac 1507ac_abs_top_builddir=$ac_pwd 1508ac_abs_builddir=$ac_pwd$ac_dir_suffix 1509# for backward compatibility: 1510ac_top_builddir=$ac_top_build_prefix 1511 1512case $srcdir in 1513 .) # We are building in place. 1514 ac_srcdir=. 1515 ac_top_srcdir=$ac_top_builddir_sub 1516 ac_abs_top_srcdir=$ac_pwd ;; 1517 [\\/]* | ?:[\\/]* ) # Absolute name. 1518 ac_srcdir=$srcdir$ac_dir_suffix; 1519 ac_top_srcdir=$srcdir 1520 ac_abs_top_srcdir=$srcdir ;; 1521 *) # Relative name. 1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1523 ac_top_srcdir=$ac_top_build_prefix$srcdir 1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1525esac 1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1527 1528 cd "$ac_dir" || { ac_status=$?; continue; } 1529 # Check for guested configure. 1530 if test -f "$ac_srcdir/configure.gnu"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1533 elif test -f "$ac_srcdir/configure"; then 1534 echo && 1535 $SHELL "$ac_srcdir/configure" --help=recursive 1536 else 1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1538 fi || ac_status=$? 1539 cd "$ac_pwd" || { ac_status=$?; break; } 1540 done 1541fi 1542 1543test -n "$ac_init_help" && exit $ac_status 1544if $ac_init_version; then 1545 cat <<\_ACEOF 1546xf86-video-scfb configure 0.0.5 1547generated by GNU Autoconf 2.69 1548 1549Copyright (C) 2012 Free Software Foundation, Inc. 1550This configure script is free software; the Free Software Foundation 1551gives unlimited permission to copy, distribute and modify it. 1552_ACEOF 1553 exit 1554fi 1555 1556## ------------------------ ## 1557## Autoconf initialization. ## 1558## ------------------------ ## 1559 1560# ac_fn_c_try_compile LINENO 1561# -------------------------- 1562# Try to compile conftest.$ac_ext, and return whether this succeeded. 1563ac_fn_c_try_compile () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 rm -f conftest.$ac_objext 1567 if { { ac_try="$ac_compile" 1568case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571esac 1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573$as_echo "$ac_try_echo"; } >&5 1574 (eval "$ac_compile") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { 1583 test -z "$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 } && test -s conftest.$ac_objext; then : 1586 ac_retval=0 1587else 1588 $as_echo "$as_me: failed program was:" >&5 1589sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 1592fi 1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1594 as_fn_set_status $ac_retval 1595 1596} # ac_fn_c_try_compile 1597 1598# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1599# --------------------------------------------- 1600# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1601# accordingly. 1602ac_fn_c_check_decl () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 as_decl_name=`echo $2|sed 's/ *(.*//'` 1606 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1608$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1609if eval \${$3+:} false; then : 1610 $as_echo_n "(cached) " >&6 1611else 1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613/* end confdefs.h. */ 1614$4 1615int 1616main () 1617{ 1618#ifndef $as_decl_name 1619#ifdef __cplusplus 1620 (void) $as_decl_use; 1621#else 1622 (void) $as_decl_name; 1623#endif 1624#endif 1625 1626 ; 1627 return 0; 1628} 1629_ACEOF 1630if ac_fn_c_try_compile "$LINENO"; then : 1631 eval "$3=yes" 1632else 1633 eval "$3=no" 1634fi 1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1636fi 1637eval ac_res=\$$3 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1639$as_echo "$ac_res" >&6; } 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 1642} # ac_fn_c_check_decl 1643 1644# ac_fn_c_try_cpp LINENO 1645# ---------------------- 1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1647ac_fn_c_try_cpp () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 if { { ac_try="$ac_cpp conftest.$ac_ext" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } > conftest.i && { 1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 }; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_cpp 1680 1681# ac_fn_c_try_run LINENO 1682# ---------------------- 1683# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1684# that executables *can* be run. 1685ac_fn_c_try_run () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 if { { ac_try="$ac_link" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_link") 2>&5 1696 ac_status=$? 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1699 { { case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_try") 2>&5 1706 ac_status=$? 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; }; }; then : 1709 ac_retval=0 1710else 1711 $as_echo "$as_me: program exited with status $ac_status" >&5 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=$ac_status 1716fi 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_run 1722 1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1724# ------------------------------------------------------- 1725# Tests whether HEADER exists and can be compiled using the include files in 1726# INCLUDES, setting the cache variable VAR accordingly. 1727ac_fn_c_check_header_compile () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731$as_echo_n "checking for $2... " >&6; } 1732if eval \${$3+:} false; then : 1733 $as_echo_n "(cached) " >&6 1734else 1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_compile "$LINENO"; then : 1741 eval "$3=yes" 1742else 1743 eval "$3=no" 1744fi 1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1746fi 1747eval ac_res=\$$3 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1749$as_echo "$ac_res" >&6; } 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 1752} # ac_fn_c_check_header_compile 1753 1754# ac_fn_c_try_link LINENO 1755# ----------------------- 1756# Try to link conftest.$ac_ext, and return whether this succeeded. 1757ac_fn_c_try_link () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 rm -f conftest.$ac_objext conftest$ac_exeext 1761 if { { ac_try="$ac_link" 1762case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_link") 2>conftest.err 1769 ac_status=$? 1770 if test -s conftest.err; then 1771 grep -v '^ *+' conftest.err >conftest.er1 1772 cat conftest.er1 >&5 1773 mv -f conftest.er1 conftest.err 1774 fi 1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; } && { 1777 test -z "$ac_c_werror_flag" || 1778 test ! -s conftest.err 1779 } && test -s conftest$ac_exeext && { 1780 test "$cross_compiling" = yes || 1781 test -x conftest$ac_exeext 1782 }; then : 1783 ac_retval=0 1784else 1785 $as_echo "$as_me: failed program was:" >&5 1786sed 's/^/| /' conftest.$ac_ext >&5 1787 1788 ac_retval=1 1789fi 1790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1792 # interfere with the next link command; also delete a directory that is 1793 # left behind by Apple's compiler. We do this before executing the actions. 1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 as_fn_set_status $ac_retval 1797 1798} # ac_fn_c_try_link 1799 1800# ac_fn_c_check_func LINENO FUNC VAR 1801# ---------------------------------- 1802# Tests whether FUNC exists, setting the cache variable VAR accordingly 1803ac_fn_c_check_func () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if eval \${$3+:} false; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812/* end confdefs.h. */ 1813/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1814 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1815#define $2 innocuous_$2 1816 1817/* System header to define __stub macros and hopefully few prototypes, 1818 which can conflict with char $2 (); below. 1819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1820 <limits.h> exists even on freestanding compilers. */ 1821 1822#ifdef __STDC__ 1823# include <limits.h> 1824#else 1825# include <assert.h> 1826#endif 1827 1828#undef $2 1829 1830/* Override any GCC internal prototype to avoid an error. 1831 Use char because int might match the return type of a GCC 1832 builtin and then its argument prototype would still apply. */ 1833#ifdef __cplusplus 1834extern "C" 1835#endif 1836char $2 (); 1837/* The GNU C library defines this for functions which it implements 1838 to always fail with ENOSYS. Some functions are actually named 1839 something starting with __ and the normal name is an alias. */ 1840#if defined __stub_$2 || defined __stub___$2 1841choke me 1842#endif 1843 1844int 1845main () 1846{ 1847return $2 (); 1848 ; 1849 return 0; 1850} 1851_ACEOF 1852if ac_fn_c_try_link "$LINENO"; then : 1853 eval "$3=yes" 1854else 1855 eval "$3=no" 1856fi 1857rm -f core conftest.err conftest.$ac_objext \ 1858 conftest$ac_exeext conftest.$ac_ext 1859fi 1860eval ac_res=\$$3 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1862$as_echo "$ac_res" >&6; } 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 1865} # ac_fn_c_check_func 1866 1867# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1868# ------------------------------------------------------- 1869# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1870# the include files in INCLUDES and setting the cache variable VAR 1871# accordingly. 1872ac_fn_c_check_header_mongrel () 1873{ 1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1875 if eval \${$3+:} false; then : 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1877$as_echo_n "checking for $2... " >&6; } 1878if eval \${$3+:} false; then : 1879 $as_echo_n "(cached) " >&6 1880fi 1881eval ac_res=\$$3 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1883$as_echo "$ac_res" >&6; } 1884else 1885 # Is the header compilable? 1886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1887$as_echo_n "checking $2 usability... " >&6; } 1888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1889/* end confdefs.h. */ 1890$4 1891#include <$2> 1892_ACEOF 1893if ac_fn_c_try_compile "$LINENO"; then : 1894 ac_header_compiler=yes 1895else 1896 ac_header_compiler=no 1897fi 1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1900$as_echo "$ac_header_compiler" >&6; } 1901 1902# Is the header present? 1903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1904$as_echo_n "checking $2 presence... " >&6; } 1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907#include <$2> 1908_ACEOF 1909if ac_fn_c_try_cpp "$LINENO"; then : 1910 ac_header_preproc=yes 1911else 1912 ac_header_preproc=no 1913fi 1914rm -f conftest.err conftest.i conftest.$ac_ext 1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1916$as_echo "$ac_header_preproc" >&6; } 1917 1918# So? What about this header? 1919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1920 yes:no: ) 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1922$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1925 ;; 1926 no:yes:* ) 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1928$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1930$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1932$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1934$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1937( $as_echo "## ---------------------------------------------------------------------- ## 1938## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1939## ---------------------------------------------------------------------- ##" 1940 ) | sed "s/^/$as_me: WARNING: /" >&2 1941 ;; 1942esac 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1944$as_echo_n "checking for $2... " >&6; } 1945if eval \${$3+:} false; then : 1946 $as_echo_n "(cached) " >&6 1947else 1948 eval "$3=\$ac_header_compiler" 1949fi 1950eval ac_res=\$$3 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1952$as_echo "$ac_res" >&6; } 1953fi 1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1955 1956} # ac_fn_c_check_header_mongrel 1957cat >config.log <<_ACEOF 1958This file contains any messages produced by compilers while 1959running configure, to aid debugging if configure makes a mistake. 1960 1961It was created by xf86-video-scfb $as_me 0.0.5, which was 1962generated by GNU Autoconf 2.69. Invocation command line was 1963 1964 $ $0 $@ 1965 1966_ACEOF 1967exec 5>>config.log 1968{ 1969cat <<_ASUNAME 1970## --------- ## 1971## Platform. ## 1972## --------- ## 1973 1974hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1975uname -m = `(uname -m) 2>/dev/null || echo unknown` 1976uname -r = `(uname -r) 2>/dev/null || echo unknown` 1977uname -s = `(uname -s) 2>/dev/null || echo unknown` 1978uname -v = `(uname -v) 2>/dev/null || echo unknown` 1979 1980/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1981/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1982 1983/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1984/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1985/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1986/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1987/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1988/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1989/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1990 1991_ASUNAME 1992 1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1994for as_dir in $PATH 1995do 1996 IFS=$as_save_IFS 1997 test -z "$as_dir" && as_dir=. 1998 $as_echo "PATH: $as_dir" 1999 done 2000IFS=$as_save_IFS 2001 2002} >&5 2003 2004cat >&5 <<_ACEOF 2005 2006 2007## ----------- ## 2008## Core tests. ## 2009## ----------- ## 2010 2011_ACEOF 2012 2013 2014# Keep a trace of the command line. 2015# Strip out --no-create and --no-recursion so they do not pile up. 2016# Strip out --silent because we don't want to record it for future runs. 2017# Also quote any args containing shell meta-characters. 2018# Make two passes to allow for proper duplicate-argument suppression. 2019ac_configure_args= 2020ac_configure_args0= 2021ac_configure_args1= 2022ac_must_keep_next=false 2023for ac_pass in 1 2 2024do 2025 for ac_arg 2026 do 2027 case $ac_arg in 2028 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2030 | -silent | --silent | --silen | --sile | --sil) 2031 continue ;; 2032 *\'*) 2033 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2034 esac 2035 case $ac_pass in 2036 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2037 2) 2038 as_fn_append ac_configure_args1 " '$ac_arg'" 2039 if test $ac_must_keep_next = true; then 2040 ac_must_keep_next=false # Got value, back to normal. 2041 else 2042 case $ac_arg in 2043 *=* | --config-cache | -C | -disable-* | --disable-* \ 2044 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2045 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2046 | -with-* | --with-* | -without-* | --without-* | --x) 2047 case "$ac_configure_args0 " in 2048 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2049 esac 2050 ;; 2051 -* ) ac_must_keep_next=true ;; 2052 esac 2053 fi 2054 as_fn_append ac_configure_args " '$ac_arg'" 2055 ;; 2056 esac 2057 done 2058done 2059{ ac_configure_args0=; unset ac_configure_args0;} 2060{ ac_configure_args1=; unset ac_configure_args1;} 2061 2062# When interrupted or exit'd, cleanup temporary files, and complete 2063# config.log. We remove comments because anyway the quotes in there 2064# would cause problems or look ugly. 2065# WARNING: Use '\'' to represent an apostrophe within the trap. 2066# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2067trap 'exit_status=$? 2068 # Save into config.log some information that might help in debugging. 2069 { 2070 echo 2071 2072 $as_echo "## ---------------- ## 2073## Cache variables. ## 2074## ---------------- ##" 2075 echo 2076 # The following way of writing the cache mishandles newlines in values, 2077( 2078 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2079 eval ac_val=\$$ac_var 2080 case $ac_val in #( 2081 *${as_nl}*) 2082 case $ac_var in #( 2083 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2084$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2085 esac 2086 case $ac_var in #( 2087 _ | IFS | as_nl) ;; #( 2088 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2089 *) { eval $ac_var=; unset $ac_var;} ;; 2090 esac ;; 2091 esac 2092 done 2093 (set) 2>&1 | 2094 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2095 *${as_nl}ac_space=\ *) 2096 sed -n \ 2097 "s/'\''/'\''\\\\'\'''\''/g; 2098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2099 ;; #( 2100 *) 2101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2102 ;; 2103 esac | 2104 sort 2105) 2106 echo 2107 2108 $as_echo "## ----------------- ## 2109## Output variables. ## 2110## ----------------- ##" 2111 echo 2112 for ac_var in $ac_subst_vars 2113 do 2114 eval ac_val=\$$ac_var 2115 case $ac_val in 2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2117 esac 2118 $as_echo "$ac_var='\''$ac_val'\''" 2119 done | sort 2120 echo 2121 2122 if test -n "$ac_subst_files"; then 2123 $as_echo "## ------------------- ## 2124## File substitutions. ## 2125## ------------------- ##" 2126 echo 2127 for ac_var in $ac_subst_files 2128 do 2129 eval ac_val=\$$ac_var 2130 case $ac_val in 2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2132 esac 2133 $as_echo "$ac_var='\''$ac_val'\''" 2134 done | sort 2135 echo 2136 fi 2137 2138 if test -s confdefs.h; then 2139 $as_echo "## ----------- ## 2140## confdefs.h. ## 2141## ----------- ##" 2142 echo 2143 cat confdefs.h 2144 echo 2145 fi 2146 test "$ac_signal" != 0 && 2147 $as_echo "$as_me: caught signal $ac_signal" 2148 $as_echo "$as_me: exit $exit_status" 2149 } >&5 2150 rm -f core *.core core.conftest.* && 2151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2152 exit $exit_status 2153' 0 2154for ac_signal in 1 2 13 15; do 2155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2156done 2157ac_signal=0 2158 2159# confdefs.h avoids OS command line length limits that DEFS can exceed. 2160rm -f -r conftest* confdefs.h 2161 2162$as_echo "/* confdefs.h */" > confdefs.h 2163 2164# Predefined preprocessor variables. 2165 2166cat >>confdefs.h <<_ACEOF 2167#define PACKAGE_NAME "$PACKAGE_NAME" 2168_ACEOF 2169 2170cat >>confdefs.h <<_ACEOF 2171#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2172_ACEOF 2173 2174cat >>confdefs.h <<_ACEOF 2175#define PACKAGE_VERSION "$PACKAGE_VERSION" 2176_ACEOF 2177 2178cat >>confdefs.h <<_ACEOF 2179#define PACKAGE_STRING "$PACKAGE_STRING" 2180_ACEOF 2181 2182cat >>confdefs.h <<_ACEOF 2183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2184_ACEOF 2185 2186cat >>confdefs.h <<_ACEOF 2187#define PACKAGE_URL "$PACKAGE_URL" 2188_ACEOF 2189 2190 2191# Let the site file select an alternate cache file if it wants to. 2192# Prefer an explicitly selected file to automatically selected ones. 2193ac_site_file1=NONE 2194ac_site_file2=NONE 2195if test -n "$CONFIG_SITE"; then 2196 # We do not want a PATH search for config.site. 2197 case $CONFIG_SITE in #(( 2198 -*) ac_site_file1=./$CONFIG_SITE;; 2199 */*) ac_site_file1=$CONFIG_SITE;; 2200 *) ac_site_file1=./$CONFIG_SITE;; 2201 esac 2202elif test "x$prefix" != xNONE; then 2203 ac_site_file1=$prefix/share/config.site 2204 ac_site_file2=$prefix/etc/config.site 2205else 2206 ac_site_file1=$ac_default_prefix/share/config.site 2207 ac_site_file2=$ac_default_prefix/etc/config.site 2208fi 2209for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2210do 2211 test "x$ac_site_file" = xNONE && continue 2212 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2214$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2215 sed 's/^/| /' "$ac_site_file" >&5 2216 . "$ac_site_file" \ 2217 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2219as_fn_error $? "failed to load site script $ac_site_file 2220See \`config.log' for more details" "$LINENO" 5; } 2221 fi 2222done 2223 2224if test -r "$cache_file"; then 2225 # Some versions of bash will fail to source /dev/null (special files 2226 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2227 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2229$as_echo "$as_me: loading cache $cache_file" >&6;} 2230 case $cache_file in 2231 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2232 *) . "./$cache_file";; 2233 esac 2234 fi 2235else 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2237$as_echo "$as_me: creating cache $cache_file" >&6;} 2238 >$cache_file 2239fi 2240 2241# Check that the precious variables saved in the cache have kept the same 2242# value. 2243ac_cache_corrupted=false 2244for ac_var in $ac_precious_vars; do 2245 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2246 eval ac_new_set=\$ac_env_${ac_var}_set 2247 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2248 eval ac_new_val=\$ac_env_${ac_var}_value 2249 case $ac_old_set,$ac_new_set in 2250 set,) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2252$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2253 ac_cache_corrupted=: ;; 2254 ,set) 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2256$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2257 ac_cache_corrupted=: ;; 2258 ,);; 2259 *) 2260 if test "x$ac_old_val" != "x$ac_new_val"; then 2261 # differences in whitespace do not lead to failure. 2262 ac_old_val_w=`echo x $ac_old_val` 2263 ac_new_val_w=`echo x $ac_new_val` 2264 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2266$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2267 ac_cache_corrupted=: 2268 else 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2270$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2271 eval $ac_var=\$ac_old_val 2272 fi 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2274$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2276$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2277 fi;; 2278 esac 2279 # Pass precious variables to config.status. 2280 if test "$ac_new_set" = set; then 2281 case $ac_new_val in 2282 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2283 *) ac_arg=$ac_var=$ac_new_val ;; 2284 esac 2285 case " $ac_configure_args " in 2286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2287 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2288 esac 2289 fi 2290done 2291if $ac_cache_corrupted; then 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2295$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2296 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2297fi 2298## -------------------- ## 2299## Main body of script. ## 2300## -------------------- ## 2301 2302ac_ext=c 2303ac_cpp='$CPP $CPPFLAGS' 2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2306ac_compiler_gnu=$ac_cv_c_compiler_gnu 2307 2308 2309 2310ac_config_headers="$ac_config_headers config.h" 2311 2312 2313# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325ac_aux_dir= 2326for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2327 if test -f "$ac_dir/install-sh"; then 2328 ac_aux_dir=$ac_dir 2329 ac_install_sh="$ac_aux_dir/install-sh -c" 2330 break 2331 elif test -f "$ac_dir/install.sh"; then 2332 ac_aux_dir=$ac_dir 2333 ac_install_sh="$ac_aux_dir/install.sh -c" 2334 break 2335 elif test -f "$ac_dir/shtool"; then 2336 ac_aux_dir=$ac_dir 2337 ac_install_sh="$ac_aux_dir/shtool install -c" 2338 break 2339 fi 2340done 2341if test -z "$ac_aux_dir"; then 2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2343fi 2344 2345# These three variables are undocumented and unsupported, 2346# and are intended to be withdrawn in a future Autoconf release. 2347# They can cause serious problems if a builder's source tree is in a directory 2348# whose full name contains unusual characters. 2349ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2350ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2351ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2352 2353 2354# Find a good install program. We prefer a C program (faster), 2355# so one script is as good as another. But avoid the broken or 2356# incompatible versions: 2357# SysV /etc/install, /usr/sbin/install 2358# SunOS /usr/etc/install 2359# IRIX /sbin/install 2360# AIX /bin/install 2361# AmigaOS /C/install, which installs bootblocks on floppy discs 2362# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2363# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2364# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2365# OS/2's system install, which has a completely different semantic 2366# ./install, which can be erroneously created by make from ./install.sh. 2367# Reject install programs that cannot install multiple files. 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2369$as_echo_n "checking for a BSD-compatible install... " >&6; } 2370if test -z "$INSTALL"; then 2371if ${ac_cv_path_install+:} false; then : 2372 $as_echo_n "(cached) " >&6 2373else 2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 # Account for people who put trailing slashes in PATH elements. 2380case $as_dir/ in #(( 2381 ./ | .// | /[cC]/* | \ 2382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2383 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2384 /usr/ucb/* ) ;; 2385 *) 2386 # OSF1 and SCO ODT 3.0 have their own names for install. 2387 # Don't use installbsd from OSF since it installs stuff as root 2388 # by default. 2389 for ac_prog in ginstall scoinst install; do 2390 for ac_exec_ext in '' $ac_executable_extensions; do 2391 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2392 if test $ac_prog = install && 2393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2394 # AIX install. It has an incompatible calling convention. 2395 : 2396 elif test $ac_prog = install && 2397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2398 # program-specific install script used by HP pwplus--don't use. 2399 : 2400 else 2401 rm -rf conftest.one conftest.two conftest.dir 2402 echo one > conftest.one 2403 echo two > conftest.two 2404 mkdir conftest.dir 2405 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2406 test -s conftest.one && test -s conftest.two && 2407 test -s conftest.dir/conftest.one && 2408 test -s conftest.dir/conftest.two 2409 then 2410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2411 break 3 2412 fi 2413 fi 2414 fi 2415 done 2416 done 2417 ;; 2418esac 2419 2420 done 2421IFS=$as_save_IFS 2422 2423rm -rf conftest.one conftest.two conftest.dir 2424 2425fi 2426 if test "${ac_cv_path_install+set}" = set; then 2427 INSTALL=$ac_cv_path_install 2428 else 2429 # As a last resort, use the slow shell script. Don't cache a 2430 # value for INSTALL within a source directory, because that will 2431 # break other packages using the cache if that directory is 2432 # removed, or if the value is a relative name. 2433 INSTALL=$ac_install_sh 2434 fi 2435fi 2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2437$as_echo "$INSTALL" >&6; } 2438 2439# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2440# It thinks the first close brace ends the variable substitution. 2441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2442 2443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2444 2445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2446 2447ac_ext=c 2448ac_cpp='$CPP $CPPFLAGS' 2449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2451ac_compiler_gnu=$ac_cv_c_compiler_gnu 2452if test -n "$ac_tool_prefix"; then 2453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2454set dummy ${ac_tool_prefix}gcc; ac_word=$2 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2456$as_echo_n "checking for $ac_word... " >&6; } 2457if ${ac_cv_prog_CC+:} false; then : 2458 $as_echo_n "(cached) " >&6 2459else 2460 if test -n "$CC"; then 2461 ac_cv_prog_CC="$CC" # Let the user override the test. 2462else 2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2464for as_dir in $PATH 2465do 2466 IFS=$as_save_IFS 2467 test -z "$as_dir" && as_dir=. 2468 for ac_exec_ext in '' $ac_executable_extensions; do 2469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2470 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2472 break 2 2473 fi 2474done 2475 done 2476IFS=$as_save_IFS 2477 2478fi 2479fi 2480CC=$ac_cv_prog_CC 2481if test -n "$CC"; then 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2483$as_echo "$CC" >&6; } 2484else 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2486$as_echo "no" >&6; } 2487fi 2488 2489 2490fi 2491if test -z "$ac_cv_prog_CC"; then 2492 ac_ct_CC=$CC 2493 # Extract the first word of "gcc", so it can be a program name with args. 2494set dummy gcc; ac_word=$2 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2496$as_echo_n "checking for $ac_word... " >&6; } 2497if ${ac_cv_prog_ac_ct_CC+:} false; then : 2498 $as_echo_n "(cached) " >&6 2499else 2500 if test -n "$ac_ct_CC"; then 2501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2502else 2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2504for as_dir in $PATH 2505do 2506 IFS=$as_save_IFS 2507 test -z "$as_dir" && as_dir=. 2508 for ac_exec_ext in '' $ac_executable_extensions; do 2509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2510 ac_cv_prog_ac_ct_CC="gcc" 2511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2512 break 2 2513 fi 2514done 2515 done 2516IFS=$as_save_IFS 2517 2518fi 2519fi 2520ac_ct_CC=$ac_cv_prog_ac_ct_CC 2521if test -n "$ac_ct_CC"; then 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2523$as_echo "$ac_ct_CC" >&6; } 2524else 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2526$as_echo "no" >&6; } 2527fi 2528 2529 if test "x$ac_ct_CC" = x; then 2530 CC="" 2531 else 2532 case $cross_compiling:$ac_tool_warned in 2533yes:) 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2536ac_tool_warned=yes ;; 2537esac 2538 CC=$ac_ct_CC 2539 fi 2540else 2541 CC="$ac_cv_prog_CC" 2542fi 2543 2544if test -z "$CC"; then 2545 if test -n "$ac_tool_prefix"; then 2546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2547set dummy ${ac_tool_prefix}cc; ac_word=$2 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2549$as_echo_n "checking for $ac_word... " >&6; } 2550if ${ac_cv_prog_CC+:} false; then : 2551 $as_echo_n "(cached) " >&6 2552else 2553 if test -n "$CC"; then 2554 ac_cv_prog_CC="$CC" # Let the user override the test. 2555else 2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2557for as_dir in $PATH 2558do 2559 IFS=$as_save_IFS 2560 test -z "$as_dir" && as_dir=. 2561 for ac_exec_ext in '' $ac_executable_extensions; do 2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2563 ac_cv_prog_CC="${ac_tool_prefix}cc" 2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2565 break 2 2566 fi 2567done 2568 done 2569IFS=$as_save_IFS 2570 2571fi 2572fi 2573CC=$ac_cv_prog_CC 2574if test -n "$CC"; then 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2576$as_echo "$CC" >&6; } 2577else 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2579$as_echo "no" >&6; } 2580fi 2581 2582 2583 fi 2584fi 2585if test -z "$CC"; then 2586 # Extract the first word of "cc", so it can be a program name with args. 2587set dummy cc; ac_word=$2 2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2589$as_echo_n "checking for $ac_word... " >&6; } 2590if ${ac_cv_prog_CC+:} false; then : 2591 $as_echo_n "(cached) " >&6 2592else 2593 if test -n "$CC"; then 2594 ac_cv_prog_CC="$CC" # Let the user override the test. 2595else 2596 ac_prog_rejected=no 2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2598for as_dir in $PATH 2599do 2600 IFS=$as_save_IFS 2601 test -z "$as_dir" && as_dir=. 2602 for ac_exec_ext in '' $ac_executable_extensions; do 2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2604 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2605 ac_prog_rejected=yes 2606 continue 2607 fi 2608 ac_cv_prog_CC="cc" 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 2616if test $ac_prog_rejected = yes; then 2617 # We found a bogon in the path, so make sure we never use it. 2618 set dummy $ac_cv_prog_CC 2619 shift 2620 if test $# != 0; then 2621 # We chose a different compiler from the bogus one. 2622 # However, it has the same basename, so the bogon will be chosen 2623 # first if we set CC to just the basename; use the full file name. 2624 shift 2625 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2626 fi 2627fi 2628fi 2629fi 2630CC=$ac_cv_prog_CC 2631if test -n "$CC"; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2633$as_echo "$CC" >&6; } 2634else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2636$as_echo "no" >&6; } 2637fi 2638 2639 2640fi 2641if test -z "$CC"; then 2642 if test -n "$ac_tool_prefix"; then 2643 for ac_prog in cl.exe 2644 do 2645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2646set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2648$as_echo_n "checking for $ac_word... " >&6; } 2649if ${ac_cv_prog_CC+:} false; then : 2650 $as_echo_n "(cached) " >&6 2651else 2652 if test -n "$CC"; then 2653 ac_cv_prog_CC="$CC" # Let the user override the test. 2654else 2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656for as_dir in $PATH 2657do 2658 IFS=$as_save_IFS 2659 test -z "$as_dir" && as_dir=. 2660 for ac_exec_ext in '' $ac_executable_extensions; do 2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2662 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2664 break 2 2665 fi 2666done 2667 done 2668IFS=$as_save_IFS 2669 2670fi 2671fi 2672CC=$ac_cv_prog_CC 2673if test -n "$CC"; then 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2675$as_echo "$CC" >&6; } 2676else 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2678$as_echo "no" >&6; } 2679fi 2680 2681 2682 test -n "$CC" && break 2683 done 2684fi 2685if test -z "$CC"; then 2686 ac_ct_CC=$CC 2687 for ac_prog in cl.exe 2688do 2689 # Extract the first word of "$ac_prog", so it can be a program name with args. 2690set dummy $ac_prog; ac_word=$2 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2692$as_echo_n "checking for $ac_word... " >&6; } 2693if ${ac_cv_prog_ac_ct_CC+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 if test -n "$ac_ct_CC"; then 2697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2698else 2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2700for as_dir in $PATH 2701do 2702 IFS=$as_save_IFS 2703 test -z "$as_dir" && as_dir=. 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2706 ac_cv_prog_ac_ct_CC="$ac_prog" 2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2708 break 2 2709 fi 2710done 2711 done 2712IFS=$as_save_IFS 2713 2714fi 2715fi 2716ac_ct_CC=$ac_cv_prog_ac_ct_CC 2717if test -n "$ac_ct_CC"; then 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2719$as_echo "$ac_ct_CC" >&6; } 2720else 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2722$as_echo "no" >&6; } 2723fi 2724 2725 2726 test -n "$ac_ct_CC" && break 2727done 2728 2729 if test "x$ac_ct_CC" = x; then 2730 CC="" 2731 else 2732 case $cross_compiling:$ac_tool_warned in 2733yes:) 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2736ac_tool_warned=yes ;; 2737esac 2738 CC=$ac_ct_CC 2739 fi 2740fi 2741 2742fi 2743 2744 2745test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2747as_fn_error $? "no acceptable C compiler found in \$PATH 2748See \`config.log' for more details" "$LINENO" 5; } 2749 2750# Provide some information about the compiler. 2751$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2752set X $ac_compile 2753ac_compiler=$2 2754for ac_option in --version -v -V -qversion; do 2755 { { ac_try="$ac_compiler $ac_option >&5" 2756case "(($ac_try" in 2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2758 *) ac_try_echo=$ac_try;; 2759esac 2760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2761$as_echo "$ac_try_echo"; } >&5 2762 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2763 ac_status=$? 2764 if test -s conftest.err; then 2765 sed '10a\ 2766... rest of stderr output deleted ... 2767 10q' conftest.err >conftest.er1 2768 cat conftest.er1 >&5 2769 fi 2770 rm -f conftest.er1 conftest.err 2771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2772 test $ac_status = 0; } 2773done 2774 2775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2776/* end confdefs.h. */ 2777 2778int 2779main () 2780{ 2781 2782 ; 2783 return 0; 2784} 2785_ACEOF 2786ac_clean_files_save=$ac_clean_files 2787ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2788# Try to create an executable without -o first, disregard a.out. 2789# It will help us diagnose broken compilers, and finding out an intuition 2790# of exeext. 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2792$as_echo_n "checking whether the C compiler works... " >&6; } 2793ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2794 2795# The possible output files: 2796ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2797 2798ac_rmfiles= 2799for ac_file in $ac_files 2800do 2801 case $ac_file in 2802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2803 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2804 esac 2805done 2806rm -f $ac_rmfiles 2807 2808if { { ac_try="$ac_link_default" 2809case "(($ac_try" in 2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2811 *) ac_try_echo=$ac_try;; 2812esac 2813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2814$as_echo "$ac_try_echo"; } >&5 2815 (eval "$ac_link_default") 2>&5 2816 ac_status=$? 2817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2818 test $ac_status = 0; }; then : 2819 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2820# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2821# in a Makefile. We should not override ac_cv_exeext if it was cached, 2822# so that the user can short-circuit this test for compilers unknown to 2823# Autoconf. 2824for ac_file in $ac_files '' 2825do 2826 test -f "$ac_file" || continue 2827 case $ac_file in 2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2829 ;; 2830 [ab].out ) 2831 # We found the default executable, but exeext='' is most 2832 # certainly right. 2833 break;; 2834 *.* ) 2835 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2836 then :; else 2837 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2838 fi 2839 # We set ac_cv_exeext here because the later test for it is not 2840 # safe: cross compilers may not add the suffix if given an `-o' 2841 # argument, so we may need to know it at that point already. 2842 # Even if this section looks crufty: it has the advantage of 2843 # actually working. 2844 break;; 2845 * ) 2846 break;; 2847 esac 2848done 2849test "$ac_cv_exeext" = no && ac_cv_exeext= 2850 2851else 2852 ac_file='' 2853fi 2854if test -z "$ac_file"; then : 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2856$as_echo "no" >&6; } 2857$as_echo "$as_me: failed program was:" >&5 2858sed 's/^/| /' conftest.$ac_ext >&5 2859 2860{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2862as_fn_error 77 "C compiler cannot create executables 2863See \`config.log' for more details" "$LINENO" 5; } 2864else 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2866$as_echo "yes" >&6; } 2867fi 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2869$as_echo_n "checking for C compiler default output file name... " >&6; } 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2871$as_echo "$ac_file" >&6; } 2872ac_exeext=$ac_cv_exeext 2873 2874rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2875ac_clean_files=$ac_clean_files_save 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2877$as_echo_n "checking for suffix of executables... " >&6; } 2878if { { ac_try="$ac_link" 2879case "(($ac_try" in 2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2881 *) ac_try_echo=$ac_try;; 2882esac 2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2884$as_echo "$ac_try_echo"; } >&5 2885 (eval "$ac_link") 2>&5 2886 ac_status=$? 2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2888 test $ac_status = 0; }; then : 2889 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2890# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2891# work properly (i.e., refer to `conftest.exe'), while it won't with 2892# `rm'. 2893for ac_file in conftest.exe conftest conftest.*; do 2894 test -f "$ac_file" || continue 2895 case $ac_file in 2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2898 break;; 2899 * ) break;; 2900 esac 2901done 2902else 2903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2905as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2906See \`config.log' for more details" "$LINENO" 5; } 2907fi 2908rm -f conftest conftest$ac_cv_exeext 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2910$as_echo "$ac_cv_exeext" >&6; } 2911 2912rm -f conftest.$ac_ext 2913EXEEXT=$ac_cv_exeext 2914ac_exeext=$EXEEXT 2915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2916/* end confdefs.h. */ 2917#include <stdio.h> 2918int 2919main () 2920{ 2921FILE *f = fopen ("conftest.out", "w"); 2922 return ferror (f) || fclose (f) != 0; 2923 2924 ; 2925 return 0; 2926} 2927_ACEOF 2928ac_clean_files="$ac_clean_files conftest.out" 2929# Check that the compiler produces executables we can run. If not, either 2930# the compiler is broken, or we cross compile. 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2932$as_echo_n "checking whether we are cross compiling... " >&6; } 2933if test "$cross_compiling" != yes; then 2934 { { ac_try="$ac_link" 2935case "(($ac_try" in 2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2937 *) ac_try_echo=$ac_try;; 2938esac 2939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2940$as_echo "$ac_try_echo"; } >&5 2941 (eval "$ac_link") 2>&5 2942 ac_status=$? 2943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2944 test $ac_status = 0; } 2945 if { ac_try='./conftest$ac_cv_exeext' 2946 { { case "(($ac_try" in 2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2948 *) ac_try_echo=$ac_try;; 2949esac 2950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2951$as_echo "$ac_try_echo"; } >&5 2952 (eval "$ac_try") 2>&5 2953 ac_status=$? 2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2955 test $ac_status = 0; }; }; then 2956 cross_compiling=no 2957 else 2958 if test "$cross_compiling" = maybe; then 2959 cross_compiling=yes 2960 else 2961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2963as_fn_error $? "cannot run C compiled programs. 2964If you meant to cross compile, use \`--host'. 2965See \`config.log' for more details" "$LINENO" 5; } 2966 fi 2967 fi 2968fi 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2970$as_echo "$cross_compiling" >&6; } 2971 2972rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2973ac_clean_files=$ac_clean_files_save 2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2975$as_echo_n "checking for suffix of object files... " >&6; } 2976if ${ac_cv_objext+:} false; then : 2977 $as_echo_n "(cached) " >&6 2978else 2979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2980/* end confdefs.h. */ 2981 2982int 2983main () 2984{ 2985 2986 ; 2987 return 0; 2988} 2989_ACEOF 2990rm -f conftest.o conftest.obj 2991if { { ac_try="$ac_compile" 2992case "(($ac_try" in 2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2994 *) ac_try_echo=$ac_try;; 2995esac 2996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2997$as_echo "$ac_try_echo"; } >&5 2998 (eval "$ac_compile") 2>&5 2999 ac_status=$? 3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3001 test $ac_status = 0; }; then : 3002 for ac_file in conftest.o conftest.obj conftest.*; do 3003 test -f "$ac_file" || continue; 3004 case $ac_file in 3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3006 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3007 break;; 3008 esac 3009done 3010else 3011 $as_echo "$as_me: failed program was:" >&5 3012sed 's/^/| /' conftest.$ac_ext >&5 3013 3014{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3016as_fn_error $? "cannot compute suffix of object files: cannot compile 3017See \`config.log' for more details" "$LINENO" 5; } 3018fi 3019rm -f conftest.$ac_cv_objext conftest.$ac_ext 3020fi 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3022$as_echo "$ac_cv_objext" >&6; } 3023OBJEXT=$ac_cv_objext 3024ac_objext=$OBJEXT 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3026$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3027if ${ac_cv_c_compiler_gnu+:} false; then : 3028 $as_echo_n "(cached) " >&6 3029else 3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3031/* end confdefs.h. */ 3032 3033int 3034main () 3035{ 3036#ifndef __GNUC__ 3037 choke me 3038#endif 3039 3040 ; 3041 return 0; 3042} 3043_ACEOF 3044if ac_fn_c_try_compile "$LINENO"; then : 3045 ac_compiler_gnu=yes 3046else 3047 ac_compiler_gnu=no 3048fi 3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3050ac_cv_c_compiler_gnu=$ac_compiler_gnu 3051 3052fi 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3054$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3055if test $ac_compiler_gnu = yes; then 3056 GCC=yes 3057else 3058 GCC= 3059fi 3060ac_test_CFLAGS=${CFLAGS+set} 3061ac_save_CFLAGS=$CFLAGS 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3063$as_echo_n "checking whether $CC accepts -g... " >&6; } 3064if ${ac_cv_prog_cc_g+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 ac_save_c_werror_flag=$ac_c_werror_flag 3068 ac_c_werror_flag=yes 3069 ac_cv_prog_cc_g=no 3070 CFLAGS="-g" 3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3072/* end confdefs.h. */ 3073 3074int 3075main () 3076{ 3077 3078 ; 3079 return 0; 3080} 3081_ACEOF 3082if ac_fn_c_try_compile "$LINENO"; then : 3083 ac_cv_prog_cc_g=yes 3084else 3085 CFLAGS="" 3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3087/* end confdefs.h. */ 3088 3089int 3090main () 3091{ 3092 3093 ; 3094 return 0; 3095} 3096_ACEOF 3097if ac_fn_c_try_compile "$LINENO"; then : 3098 3099else 3100 ac_c_werror_flag=$ac_save_c_werror_flag 3101 CFLAGS="-g" 3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3103/* end confdefs.h. */ 3104 3105int 3106main () 3107{ 3108 3109 ; 3110 return 0; 3111} 3112_ACEOF 3113if ac_fn_c_try_compile "$LINENO"; then : 3114 ac_cv_prog_cc_g=yes 3115fi 3116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3117fi 3118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3119fi 3120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3121 ac_c_werror_flag=$ac_save_c_werror_flag 3122fi 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3124$as_echo "$ac_cv_prog_cc_g" >&6; } 3125if test "$ac_test_CFLAGS" = set; then 3126 CFLAGS=$ac_save_CFLAGS 3127elif test $ac_cv_prog_cc_g = yes; then 3128 if test "$GCC" = yes; then 3129 CFLAGS="-g -O2" 3130 else 3131 CFLAGS="-g" 3132 fi 3133else 3134 if test "$GCC" = yes; then 3135 CFLAGS="-O2" 3136 else 3137 CFLAGS= 3138 fi 3139fi 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3141$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3142if ${ac_cv_prog_cc_c89+:} false; then : 3143 $as_echo_n "(cached) " >&6 3144else 3145 ac_cv_prog_cc_c89=no 3146ac_save_CC=$CC 3147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3148/* end confdefs.h. */ 3149#include <stdarg.h> 3150#include <stdio.h> 3151struct stat; 3152/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3153struct buf { int x; }; 3154FILE * (*rcsopen) (struct buf *, struct stat *, int); 3155static char *e (p, i) 3156 char **p; 3157 int i; 3158{ 3159 return p[i]; 3160} 3161static char *f (char * (*g) (char **, int), char **p, ...) 3162{ 3163 char *s; 3164 va_list v; 3165 va_start (v,p); 3166 s = g (p, va_arg (v,int)); 3167 va_end (v); 3168 return s; 3169} 3170 3171/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3172 function prototypes and stuff, but not '\xHH' hex character constants. 3173 These don't provoke an error unfortunately, instead are silently treated 3174 as 'x'. The following induces an error, until -std is added to get 3175 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3176 array size at least. It's necessary to write '\x00'==0 to get something 3177 that's true only with -std. */ 3178int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3179 3180/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3181 inside strings and character constants. */ 3182#define FOO(x) 'x' 3183int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3184 3185int test (int i, double x); 3186struct s1 {int (*f) (int a);}; 3187struct s2 {int (*f) (double a);}; 3188int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3189int argc; 3190char **argv; 3191int 3192main () 3193{ 3194return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3195 ; 3196 return 0; 3197} 3198_ACEOF 3199for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3200 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3201do 3202 CC="$ac_save_CC $ac_arg" 3203 if ac_fn_c_try_compile "$LINENO"; then : 3204 ac_cv_prog_cc_c89=$ac_arg 3205fi 3206rm -f core conftest.err conftest.$ac_objext 3207 test "x$ac_cv_prog_cc_c89" != "xno" && break 3208done 3209rm -f conftest.$ac_ext 3210CC=$ac_save_CC 3211 3212fi 3213# AC_CACHE_VAL 3214case "x$ac_cv_prog_cc_c89" in 3215 x) 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3217$as_echo "none needed" >&6; } ;; 3218 xno) 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3220$as_echo "unsupported" >&6; } ;; 3221 *) 3222 CC="$CC $ac_cv_prog_cc_c89" 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3224$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3225esac 3226if test "x$ac_cv_prog_cc_c89" != xno; then : 3227 3228fi 3229 3230ac_ext=c 3231ac_cpp='$CPP $CPPFLAGS' 3232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3234ac_compiler_gnu=$ac_cv_c_compiler_gnu 3235 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3237$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3238if ${ac_cv_prog_cc_c99+:} false; then : 3239 $as_echo_n "(cached) " >&6 3240else 3241 ac_cv_prog_cc_c99=no 3242ac_save_CC=$CC 3243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3244/* end confdefs.h. */ 3245#include <stdarg.h> 3246#include <stdbool.h> 3247#include <stdlib.h> 3248#include <wchar.h> 3249#include <stdio.h> 3250 3251// Check varargs macros. These examples are taken from C99 6.10.3.5. 3252#define debug(...) fprintf (stderr, __VA_ARGS__) 3253#define showlist(...) puts (#__VA_ARGS__) 3254#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3255static void 3256test_varargs_macros (void) 3257{ 3258 int x = 1234; 3259 int y = 5678; 3260 debug ("Flag"); 3261 debug ("X = %d\n", x); 3262 showlist (The first, second, and third items.); 3263 report (x>y, "x is %d but y is %d", x, y); 3264} 3265 3266// Check long long types. 3267#define BIG64 18446744073709551615ull 3268#define BIG32 4294967295ul 3269#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3270#if !BIG_OK 3271 your preprocessor is broken; 3272#endif 3273#if BIG_OK 3274#else 3275 your preprocessor is broken; 3276#endif 3277static long long int bignum = -9223372036854775807LL; 3278static unsigned long long int ubignum = BIG64; 3279 3280struct incomplete_array 3281{ 3282 int datasize; 3283 double data[]; 3284}; 3285 3286struct named_init { 3287 int number; 3288 const wchar_t *name; 3289 double average; 3290}; 3291 3292typedef const char *ccp; 3293 3294static inline int 3295test_restrict (ccp restrict text) 3296{ 3297 // See if C++-style comments work. 3298 // Iterate through items via the restricted pointer. 3299 // Also check for declarations in for loops. 3300 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3301 continue; 3302 return 0; 3303} 3304 3305// Check varargs and va_copy. 3306static void 3307test_varargs (const char *format, ...) 3308{ 3309 va_list args; 3310 va_start (args, format); 3311 va_list args_copy; 3312 va_copy (args_copy, args); 3313 3314 const char *str; 3315 int number; 3316 float fnumber; 3317 3318 while (*format) 3319 { 3320 switch (*format++) 3321 { 3322 case 's': // string 3323 str = va_arg (args_copy, const char *); 3324 break; 3325 case 'd': // int 3326 number = va_arg (args_copy, int); 3327 break; 3328 case 'f': // float 3329 fnumber = va_arg (args_copy, double); 3330 break; 3331 default: 3332 break; 3333 } 3334 } 3335 va_end (args_copy); 3336 va_end (args); 3337} 3338 3339int 3340main () 3341{ 3342 3343 // Check bool. 3344 _Bool success = false; 3345 3346 // Check restrict. 3347 if (test_restrict ("String literal") == 0) 3348 success = true; 3349 char *restrict newvar = "Another string"; 3350 3351 // Check varargs. 3352 test_varargs ("s, d' f .", "string", 65, 34.234); 3353 test_varargs_macros (); 3354 3355 // Check flexible array members. 3356 struct incomplete_array *ia = 3357 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3358 ia->datasize = 10; 3359 for (int i = 0; i < ia->datasize; ++i) 3360 ia->data[i] = i * 1.234; 3361 3362 // Check named initializers. 3363 struct named_init ni = { 3364 .number = 34, 3365 .name = L"Test wide string", 3366 .average = 543.34343, 3367 }; 3368 3369 ni.number = 58; 3370 3371 int dynamic_array[ni.number]; 3372 dynamic_array[ni.number - 1] = 543; 3373 3374 // work around unused variable warnings 3375 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3376 || dynamic_array[ni.number - 1] != 543); 3377 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3383do 3384 CC="$ac_save_CC $ac_arg" 3385 if ac_fn_c_try_compile "$LINENO"; then : 3386 ac_cv_prog_cc_c99=$ac_arg 3387fi 3388rm -f core conftest.err conftest.$ac_objext 3389 test "x$ac_cv_prog_cc_c99" != "xno" && break 3390done 3391rm -f conftest.$ac_ext 3392CC=$ac_save_CC 3393 3394fi 3395# AC_CACHE_VAL 3396case "x$ac_cv_prog_cc_c99" in 3397 x) 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3399$as_echo "none needed" >&6; } ;; 3400 xno) 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3402$as_echo "unsupported" >&6; } ;; 3403 *) 3404 CC="$CC $ac_cv_prog_cc_c99" 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3406$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3407esac 3408if test "x$ac_cv_prog_cc_c99" != xno; then : 3409 3410fi 3411 3412 3413 3414ac_ext=c 3415ac_cpp='$CPP $CPPFLAGS' 3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3418ac_compiler_gnu=$ac_cv_c_compiler_gnu 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3420$as_echo_n "checking how to run the C preprocessor... " >&6; } 3421# On Suns, sometimes $CPP names a directory. 3422if test -n "$CPP" && test -d "$CPP"; then 3423 CPP= 3424fi 3425if test -z "$CPP"; then 3426 if ${ac_cv_prog_CPP+:} false; then : 3427 $as_echo_n "(cached) " >&6 3428else 3429 # Double quotes because CPP needs to be expanded 3430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3431 do 3432 ac_preproc_ok=false 3433for ac_c_preproc_warn_flag in '' yes 3434do 3435 # Use a header file that comes with gcc, so configuring glibc 3436 # with a fresh cross-compiler works. 3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3438 # <limits.h> exists even on freestanding compilers. 3439 # On the NeXT, cc -E runs the code through the compiler's parser, 3440 # not just through cpp. "Syntax error" is here to catch this case. 3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3442/* end confdefs.h. */ 3443#ifdef __STDC__ 3444# include <limits.h> 3445#else 3446# include <assert.h> 3447#endif 3448 Syntax error 3449_ACEOF 3450if ac_fn_c_try_cpp "$LINENO"; then : 3451 3452else 3453 # Broken: fails on valid input. 3454continue 3455fi 3456rm -f conftest.err conftest.i conftest.$ac_ext 3457 3458 # OK, works on sane cases. Now check whether nonexistent headers 3459 # can be detected and how. 3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3461/* end confdefs.h. */ 3462#include <ac_nonexistent.h> 3463_ACEOF 3464if ac_fn_c_try_cpp "$LINENO"; then : 3465 # Broken: success on invalid input. 3466continue 3467else 3468 # Passes both tests. 3469ac_preproc_ok=: 3470break 3471fi 3472rm -f conftest.err conftest.i conftest.$ac_ext 3473 3474done 3475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3476rm -f conftest.i conftest.err conftest.$ac_ext 3477if $ac_preproc_ok; then : 3478 break 3479fi 3480 3481 done 3482 ac_cv_prog_CPP=$CPP 3483 3484fi 3485 CPP=$ac_cv_prog_CPP 3486else 3487 ac_cv_prog_CPP=$CPP 3488fi 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3490$as_echo "$CPP" >&6; } 3491ac_preproc_ok=false 3492for ac_c_preproc_warn_flag in '' yes 3493do 3494 # Use a header file that comes with gcc, so configuring glibc 3495 # with a fresh cross-compiler works. 3496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3497 # <limits.h> exists even on freestanding compilers. 3498 # On the NeXT, cc -E runs the code through the compiler's parser, 3499 # not just through cpp. "Syntax error" is here to catch this case. 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502#ifdef __STDC__ 3503# include <limits.h> 3504#else 3505# include <assert.h> 3506#endif 3507 Syntax error 3508_ACEOF 3509if ac_fn_c_try_cpp "$LINENO"; then : 3510 3511else 3512 # Broken: fails on valid input. 3513continue 3514fi 3515rm -f conftest.err conftest.i conftest.$ac_ext 3516 3517 # OK, works on sane cases. Now check whether nonexistent headers 3518 # can be detected and how. 3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3520/* end confdefs.h. */ 3521#include <ac_nonexistent.h> 3522_ACEOF 3523if ac_fn_c_try_cpp "$LINENO"; then : 3524 # Broken: success on invalid input. 3525continue 3526else 3527 # Passes both tests. 3528ac_preproc_ok=: 3529break 3530fi 3531rm -f conftest.err conftest.i conftest.$ac_ext 3532 3533done 3534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3535rm -f conftest.i conftest.err conftest.$ac_ext 3536if $ac_preproc_ok; then : 3537 3538else 3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3541as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3542See \`config.log' for more details" "$LINENO" 5; } 3543fi 3544 3545ac_ext=c 3546ac_cpp='$CPP $CPPFLAGS' 3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3549ac_compiler_gnu=$ac_cv_c_compiler_gnu 3550 3551 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3553$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3554if ${ac_cv_path_GREP+:} false; then : 3555 $as_echo_n "(cached) " >&6 3556else 3557 if test -z "$GREP"; then 3558 ac_path_GREP_found=false 3559 # Loop through the user's path and test for each of PROGNAME-LIST 3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3562do 3563 IFS=$as_save_IFS 3564 test -z "$as_dir" && as_dir=. 3565 for ac_prog in grep ggrep; do 3566 for ac_exec_ext in '' $ac_executable_extensions; do 3567 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3568 as_fn_executable_p "$ac_path_GREP" || continue 3569# Check for GNU ac_path_GREP and select it if it is found. 3570 # Check for GNU $ac_path_GREP 3571case `"$ac_path_GREP" --version 2>&1` in 3572*GNU*) 3573 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3574*) 3575 ac_count=0 3576 $as_echo_n 0123456789 >"conftest.in" 3577 while : 3578 do 3579 cat "conftest.in" "conftest.in" >"conftest.tmp" 3580 mv "conftest.tmp" "conftest.in" 3581 cp "conftest.in" "conftest.nl" 3582 $as_echo 'GREP' >> "conftest.nl" 3583 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3585 as_fn_arith $ac_count + 1 && ac_count=$as_val 3586 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3587 # Best one so far, save it but keep looking for a better one 3588 ac_cv_path_GREP="$ac_path_GREP" 3589 ac_path_GREP_max=$ac_count 3590 fi 3591 # 10*(2^10) chars as input seems more than enough 3592 test $ac_count -gt 10 && break 3593 done 3594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3595esac 3596 3597 $ac_path_GREP_found && break 3 3598 done 3599 done 3600 done 3601IFS=$as_save_IFS 3602 if test -z "$ac_cv_path_GREP"; then 3603 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3604 fi 3605else 3606 ac_cv_path_GREP=$GREP 3607fi 3608 3609fi 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3611$as_echo "$ac_cv_path_GREP" >&6; } 3612 GREP="$ac_cv_path_GREP" 3613 3614 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3616$as_echo_n "checking for egrep... " >&6; } 3617if ${ac_cv_path_EGREP+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3621 then ac_cv_path_EGREP="$GREP -E" 3622 else 3623 if test -z "$EGREP"; then 3624 ac_path_EGREP_found=false 3625 # Loop through the user's path and test for each of PROGNAME-LIST 3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3628do 3629 IFS=$as_save_IFS 3630 test -z "$as_dir" && as_dir=. 3631 for ac_prog in egrep; do 3632 for ac_exec_ext in '' $ac_executable_extensions; do 3633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3634 as_fn_executable_p "$ac_path_EGREP" || continue 3635# Check for GNU ac_path_EGREP and select it if it is found. 3636 # Check for GNU $ac_path_EGREP 3637case `"$ac_path_EGREP" --version 2>&1` in 3638*GNU*) 3639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3640*) 3641 ac_count=0 3642 $as_echo_n 0123456789 >"conftest.in" 3643 while : 3644 do 3645 cat "conftest.in" "conftest.in" >"conftest.tmp" 3646 mv "conftest.tmp" "conftest.in" 3647 cp "conftest.in" "conftest.nl" 3648 $as_echo 'EGREP' >> "conftest.nl" 3649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3651 as_fn_arith $ac_count + 1 && ac_count=$as_val 3652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3653 # Best one so far, save it but keep looking for a better one 3654 ac_cv_path_EGREP="$ac_path_EGREP" 3655 ac_path_EGREP_max=$ac_count 3656 fi 3657 # 10*(2^10) chars as input seems more than enough 3658 test $ac_count -gt 10 && break 3659 done 3660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3661esac 3662 3663 $ac_path_EGREP_found && break 3 3664 done 3665 done 3666 done 3667IFS=$as_save_IFS 3668 if test -z "$ac_cv_path_EGREP"; then 3669 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3670 fi 3671else 3672 ac_cv_path_EGREP=$EGREP 3673fi 3674 3675 fi 3676fi 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3678$as_echo "$ac_cv_path_EGREP" >&6; } 3679 EGREP="$ac_cv_path_EGREP" 3680 3681 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3683$as_echo_n "checking for ANSI C header files... " >&6; } 3684if ${ac_cv_header_stdc+:} false; then : 3685 $as_echo_n "(cached) " >&6 3686else 3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3688/* end confdefs.h. */ 3689#include <stdlib.h> 3690#include <stdarg.h> 3691#include <string.h> 3692#include <float.h> 3693 3694int 3695main () 3696{ 3697 3698 ; 3699 return 0; 3700} 3701_ACEOF 3702if ac_fn_c_try_compile "$LINENO"; then : 3703 ac_cv_header_stdc=yes 3704else 3705 ac_cv_header_stdc=no 3706fi 3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3708 3709if test $ac_cv_header_stdc = yes; then 3710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712/* end confdefs.h. */ 3713#include <string.h> 3714 3715_ACEOF 3716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3717 $EGREP "memchr" >/dev/null 2>&1; then : 3718 3719else 3720 ac_cv_header_stdc=no 3721fi 3722rm -f conftest* 3723 3724fi 3725 3726if test $ac_cv_header_stdc = yes; then 3727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3729/* end confdefs.h. */ 3730#include <stdlib.h> 3731 3732_ACEOF 3733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3734 $EGREP "free" >/dev/null 2>&1; then : 3735 3736else 3737 ac_cv_header_stdc=no 3738fi 3739rm -f conftest* 3740 3741fi 3742 3743if test $ac_cv_header_stdc = yes; then 3744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3745 if test "$cross_compiling" = yes; then : 3746 : 3747else 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749/* end confdefs.h. */ 3750#include <ctype.h> 3751#include <stdlib.h> 3752#if ((' ' & 0x0FF) == 0x020) 3753# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3754# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3755#else 3756# define ISLOWER(c) \ 3757 (('a' <= (c) && (c) <= 'i') \ 3758 || ('j' <= (c) && (c) <= 'r') \ 3759 || ('s' <= (c) && (c) <= 'z')) 3760# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3761#endif 3762 3763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3764int 3765main () 3766{ 3767 int i; 3768 for (i = 0; i < 256; i++) 3769 if (XOR (islower (i), ISLOWER (i)) 3770 || toupper (i) != TOUPPER (i)) 3771 return 2; 3772 return 0; 3773} 3774_ACEOF 3775if ac_fn_c_try_run "$LINENO"; then : 3776 3777else 3778 ac_cv_header_stdc=no 3779fi 3780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3781 conftest.$ac_objext conftest.beam conftest.$ac_ext 3782fi 3783 3784fi 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3787$as_echo "$ac_cv_header_stdc" >&6; } 3788if test $ac_cv_header_stdc = yes; then 3789 3790$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3791 3792fi 3793 3794# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3795for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3796 inttypes.h stdint.h unistd.h 3797do : 3798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3799ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3800" 3801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3802 cat >>confdefs.h <<_ACEOF 3803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3804_ACEOF 3805 3806fi 3807 3808done 3809 3810 3811 3812 3813ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 3814if test "x$ac_cv_have_decl___clang__" = xyes; then : 3815 CLANGCC="yes" 3816else 3817 CLANGCC="no" 3818fi 3819 3820ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 3821if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 3822 INTELCC="yes" 3823else 3824 INTELCC="no" 3825fi 3826 3827ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3828if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 3829 SUNCC="yes" 3830else 3831 SUNCC="no" 3832fi 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3843 if test -n "$ac_tool_prefix"; then 3844 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3845set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3847$as_echo_n "checking for $ac_word... " >&6; } 3848if ${ac_cv_path_PKG_CONFIG+:} false; then : 3849 $as_echo_n "(cached) " >&6 3850else 3851 case $PKG_CONFIG in 3852 [\\/]* | ?:[\\/]*) 3853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3854 ;; 3855 *) 3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3857for as_dir in $PATH 3858do 3859 IFS=$as_save_IFS 3860 test -z "$as_dir" && as_dir=. 3861 for ac_exec_ext in '' $ac_executable_extensions; do 3862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3865 break 2 3866 fi 3867done 3868 done 3869IFS=$as_save_IFS 3870 3871 ;; 3872esac 3873fi 3874PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3875if test -n "$PKG_CONFIG"; then 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3877$as_echo "$PKG_CONFIG" >&6; } 3878else 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3880$as_echo "no" >&6; } 3881fi 3882 3883 3884fi 3885if test -z "$ac_cv_path_PKG_CONFIG"; then 3886 ac_pt_PKG_CONFIG=$PKG_CONFIG 3887 # Extract the first word of "pkg-config", so it can be a program name with args. 3888set dummy pkg-config; ac_word=$2 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3890$as_echo_n "checking for $ac_word... " >&6; } 3891if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 case $ac_pt_PKG_CONFIG in 3895 [\\/]* | ?:[\\/]*) 3896 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3897 ;; 3898 *) 3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3900for as_dir in $PATH 3901do 3902 IFS=$as_save_IFS 3903 test -z "$as_dir" && as_dir=. 3904 for ac_exec_ext in '' $ac_executable_extensions; do 3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3906 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3908 break 2 3909 fi 3910done 3911 done 3912IFS=$as_save_IFS 3913 3914 ;; 3915esac 3916fi 3917ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3918if test -n "$ac_pt_PKG_CONFIG"; then 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3920$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3921else 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3923$as_echo "no" >&6; } 3924fi 3925 3926 if test "x$ac_pt_PKG_CONFIG" = x; then 3927 PKG_CONFIG="" 3928 else 3929 case $cross_compiling:$ac_tool_warned in 3930yes:) 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3933ac_tool_warned=yes ;; 3934esac 3935 PKG_CONFIG=$ac_pt_PKG_CONFIG 3936 fi 3937else 3938 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3939fi 3940 3941fi 3942if test -n "$PKG_CONFIG"; then 3943 _pkg_min_version=0.9.0 3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3945$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3946 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3948$as_echo "yes" >&6; } 3949 else 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3951$as_echo "no" >&6; } 3952 PKG_CONFIG="" 3953 fi 3954fi 3955# Make sure we can run config.sub. 3956$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3957 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3958 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3960$as_echo_n "checking build system type... " >&6; } 3961if ${ac_cv_build+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 ac_build_alias=$build_alias 3965test "x$ac_build_alias" = x && 3966 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3967test "x$ac_build_alias" = x && 3968 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3969ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3970 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3971 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3974$as_echo "$ac_cv_build" >&6; } 3975case $ac_cv_build in 3976*-*-*) ;; 3977*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3978esac 3979build=$ac_cv_build 3980ac_save_IFS=$IFS; IFS='-' 3981set x $ac_cv_build 3982shift 3983build_cpu=$1 3984build_vendor=$2 3985shift; shift 3986# Remember, the first character of IFS is used to create $*, 3987# except with old shells: 3988build_os=$* 3989IFS=$ac_save_IFS 3990case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3991 3992 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3994$as_echo_n "checking host system type... " >&6; } 3995if ${ac_cv_host+:} false; then : 3996 $as_echo_n "(cached) " >&6 3997else 3998 if test "x$host_alias" = x; then 3999 ac_cv_host=$ac_cv_build 4000else 4001 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4002 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4003fi 4004 4005fi 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4007$as_echo "$ac_cv_host" >&6; } 4008case $ac_cv_host in 4009*-*-*) ;; 4010*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4011esac 4012host=$ac_cv_host 4013ac_save_IFS=$IFS; IFS='-' 4014set x $ac_cv_host 4015shift 4016host_cpu=$1 4017host_vendor=$2 4018shift; shift 4019# Remember, the first character of IFS is used to create $*, 4020# except with old shells: 4021host_os=$* 4022IFS=$ac_save_IFS 4023case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4024 4025 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4027$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4028if ${ac_cv_path_SED+:} false; then : 4029 $as_echo_n "(cached) " >&6 4030else 4031 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4032 for ac_i in 1 2 3 4 5 6 7; do 4033 ac_script="$ac_script$as_nl$ac_script" 4034 done 4035 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4036 { ac_script=; unset ac_script;} 4037 if test -z "$SED"; then 4038 ac_path_SED_found=false 4039 # Loop through the user's path and test for each of PROGNAME-LIST 4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4041for as_dir in $PATH 4042do 4043 IFS=$as_save_IFS 4044 test -z "$as_dir" && as_dir=. 4045 for ac_prog in sed gsed; do 4046 for ac_exec_ext in '' $ac_executable_extensions; do 4047 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4048 as_fn_executable_p "$ac_path_SED" || continue 4049# Check for GNU ac_path_SED and select it if it is found. 4050 # Check for GNU $ac_path_SED 4051case `"$ac_path_SED" --version 2>&1` in 4052*GNU*) 4053 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4054*) 4055 ac_count=0 4056 $as_echo_n 0123456789 >"conftest.in" 4057 while : 4058 do 4059 cat "conftest.in" "conftest.in" >"conftest.tmp" 4060 mv "conftest.tmp" "conftest.in" 4061 cp "conftest.in" "conftest.nl" 4062 $as_echo '' >> "conftest.nl" 4063 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4065 as_fn_arith $ac_count + 1 && ac_count=$as_val 4066 if test $ac_count -gt ${ac_path_SED_max-0}; then 4067 # Best one so far, save it but keep looking for a better one 4068 ac_cv_path_SED="$ac_path_SED" 4069 ac_path_SED_max=$ac_count 4070 fi 4071 # 10*(2^10) chars as input seems more than enough 4072 test $ac_count -gt 10 && break 4073 done 4074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4075esac 4076 4077 $ac_path_SED_found && break 3 4078 done 4079 done 4080 done 4081IFS=$as_save_IFS 4082 if test -z "$ac_cv_path_SED"; then 4083 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4084 fi 4085else 4086 ac_cv_path_SED=$SED 4087fi 4088 4089fi 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4091$as_echo "$ac_cv_path_SED" >&6; } 4092 SED="$ac_cv_path_SED" 4093 rm -f conftest.sed 4094 4095 4096 4097 4098 4099 4100# Check whether --enable-selective-werror was given. 4101if test "${enable_selective_werror+set}" = set; then : 4102 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4103else 4104 SELECTIVE_WERROR=yes 4105fi 4106 4107 4108# -v is too short to test reliably with XORG_TESTSET_CFLAG 4109if test "x$SUNCC" = "xyes"; then 4110 BASE_CFLAGS="-v" 4111else 4112 BASE_CFLAGS="" 4113fi 4114 4115# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4116 4117 4118 4119 4120 4121xorg_testset_save_CFLAGS="$CFLAGS" 4122 4123if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129int i; 4130_ACEOF 4131if ac_fn_c_try_compile "$LINENO"; then : 4132 xorg_testset_unknown_warning_option=yes 4133else 4134 xorg_testset_unknown_warning_option=no 4135fi 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4138$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4139 CFLAGS="$xorg_testset_save_CFLAGS" 4140fi 4141 4142if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4145 fi 4146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151int i; 4152_ACEOF 4153if ac_fn_c_try_compile "$LINENO"; then : 4154 xorg_testset_unused_command_line_argument=yes 4155else 4156 xorg_testset_unused_command_line_argument=no 4157fi 4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4160$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4161 CFLAGS="$xorg_testset_save_CFLAGS" 4162fi 4163 4164found="no" 4165 4166 if test $found = "no" ; then 4167 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4169 fi 4170 4171 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4173 fi 4174 4175 CFLAGS="$CFLAGS -Wall" 4176 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4178$as_echo_n "checking if $CC supports -Wall... " >&6; } 4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4180/* end confdefs.h. */ 4181int i; 4182int 4183main () 4184{ 4185 4186 ; 4187 return 0; 4188} 4189_ACEOF 4190if ac_fn_c_try_link "$LINENO"; then : 4191 supported=yes 4192else 4193 supported=no 4194fi 4195rm -f core conftest.err conftest.$ac_objext \ 4196 conftest$ac_exeext conftest.$ac_ext 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4198$as_echo "$supported" >&6; } 4199 CFLAGS="$xorg_testset_save_CFLAGS" 4200 4201 if test "$supported" = "yes" ; then 4202 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4203 found="yes" 4204 fi 4205 fi 4206 4207 4208 4209 4210 4211 4212 4213xorg_testset_save_CFLAGS="$CFLAGS" 4214 4215if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220/* end confdefs.h. */ 4221int i; 4222_ACEOF 4223if ac_fn_c_try_compile "$LINENO"; then : 4224 xorg_testset_unknown_warning_option=yes 4225else 4226 xorg_testset_unknown_warning_option=no 4227fi 4228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4230$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4231 CFLAGS="$xorg_testset_save_CFLAGS" 4232fi 4233 4234if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4235 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4237 fi 4238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4242/* end confdefs.h. */ 4243int i; 4244_ACEOF 4245if ac_fn_c_try_compile "$LINENO"; then : 4246 xorg_testset_unused_command_line_argument=yes 4247else 4248 xorg_testset_unused_command_line_argument=no 4249fi 4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4252$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4253 CFLAGS="$xorg_testset_save_CFLAGS" 4254fi 4255 4256found="no" 4257 4258 if test $found = "no" ; then 4259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4261 fi 4262 4263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4265 fi 4266 4267 CFLAGS="$CFLAGS -Wpointer-arith" 4268 4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4270$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273int i; 4274int 4275main () 4276{ 4277 4278 ; 4279 return 0; 4280} 4281_ACEOF 4282if ac_fn_c_try_link "$LINENO"; then : 4283 supported=yes 4284else 4285 supported=no 4286fi 4287rm -f core conftest.err conftest.$ac_objext \ 4288 conftest$ac_exeext conftest.$ac_ext 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4290$as_echo "$supported" >&6; } 4291 CFLAGS="$xorg_testset_save_CFLAGS" 4292 4293 if test "$supported" = "yes" ; then 4294 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4295 found="yes" 4296 fi 4297 fi 4298 4299 4300 4301 4302 4303 4304 4305xorg_testset_save_CFLAGS="$CFLAGS" 4306 4307if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313int i; 4314_ACEOF 4315if ac_fn_c_try_compile "$LINENO"; then : 4316 xorg_testset_unknown_warning_option=yes 4317else 4318 xorg_testset_unknown_warning_option=no 4319fi 4320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4322$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4323 CFLAGS="$xorg_testset_save_CFLAGS" 4324fi 4325 4326if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4329 fi 4330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4334/* end confdefs.h. */ 4335int i; 4336_ACEOF 4337if ac_fn_c_try_compile "$LINENO"; then : 4338 xorg_testset_unused_command_line_argument=yes 4339else 4340 xorg_testset_unused_command_line_argument=no 4341fi 4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4344$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4345 CFLAGS="$xorg_testset_save_CFLAGS" 4346fi 4347 4348found="no" 4349 4350 if test $found = "no" ; then 4351 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4353 fi 4354 4355 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4357 fi 4358 4359 CFLAGS="$CFLAGS -Wstrict-prototypes" 4360 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4362$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364/* end confdefs.h. */ 4365int i; 4366int 4367main () 4368{ 4369 4370 ; 4371 return 0; 4372} 4373_ACEOF 4374if ac_fn_c_try_link "$LINENO"; then : 4375 supported=yes 4376else 4377 supported=no 4378fi 4379rm -f core conftest.err conftest.$ac_objext \ 4380 conftest$ac_exeext conftest.$ac_ext 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4382$as_echo "$supported" >&6; } 4383 CFLAGS="$xorg_testset_save_CFLAGS" 4384 4385 if test "$supported" = "yes" ; then 4386 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4387 found="yes" 4388 fi 4389 fi 4390 4391 4392 4393 4394 4395 4396 4397xorg_testset_save_CFLAGS="$CFLAGS" 4398 4399if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404/* end confdefs.h. */ 4405int i; 4406_ACEOF 4407if ac_fn_c_try_compile "$LINENO"; then : 4408 xorg_testset_unknown_warning_option=yes 4409else 4410 xorg_testset_unknown_warning_option=no 4411fi 4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4414$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4415 CFLAGS="$xorg_testset_save_CFLAGS" 4416fi 4417 4418if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4419 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4421 fi 4422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426/* end confdefs.h. */ 4427int i; 4428_ACEOF 4429if ac_fn_c_try_compile "$LINENO"; then : 4430 xorg_testset_unused_command_line_argument=yes 4431else 4432 xorg_testset_unused_command_line_argument=no 4433fi 4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4436$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4437 CFLAGS="$xorg_testset_save_CFLAGS" 4438fi 4439 4440found="no" 4441 4442 if test $found = "no" ; then 4443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4445 fi 4446 4447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4449 fi 4450 4451 CFLAGS="$CFLAGS -Wmissing-prototypes" 4452 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 4454$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4456/* end confdefs.h. */ 4457int i; 4458int 4459main () 4460{ 4461 4462 ; 4463 return 0; 4464} 4465_ACEOF 4466if ac_fn_c_try_link "$LINENO"; then : 4467 supported=yes 4468else 4469 supported=no 4470fi 4471rm -f core conftest.err conftest.$ac_objext \ 4472 conftest$ac_exeext conftest.$ac_ext 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4474$as_echo "$supported" >&6; } 4475 CFLAGS="$xorg_testset_save_CFLAGS" 4476 4477 if test "$supported" = "yes" ; then 4478 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 4479 found="yes" 4480 fi 4481 fi 4482 4483 4484 4485 4486 4487 4488 4489xorg_testset_save_CFLAGS="$CFLAGS" 4490 4491if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496/* end confdefs.h. */ 4497int i; 4498_ACEOF 4499if ac_fn_c_try_compile "$LINENO"; then : 4500 xorg_testset_unknown_warning_option=yes 4501else 4502 xorg_testset_unknown_warning_option=no 4503fi 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4506$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4507 CFLAGS="$xorg_testset_save_CFLAGS" 4508fi 4509 4510if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4511 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4513 fi 4514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4518/* end confdefs.h. */ 4519int i; 4520_ACEOF 4521if ac_fn_c_try_compile "$LINENO"; then : 4522 xorg_testset_unused_command_line_argument=yes 4523else 4524 xorg_testset_unused_command_line_argument=no 4525fi 4526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4528$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4529 CFLAGS="$xorg_testset_save_CFLAGS" 4530fi 4531 4532found="no" 4533 4534 if test $found = "no" ; then 4535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4537 fi 4538 4539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4541 fi 4542 4543 CFLAGS="$CFLAGS -Wmissing-declarations" 4544 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4546$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4548/* end confdefs.h. */ 4549int i; 4550int 4551main () 4552{ 4553 4554 ; 4555 return 0; 4556} 4557_ACEOF 4558if ac_fn_c_try_link "$LINENO"; then : 4559 supported=yes 4560else 4561 supported=no 4562fi 4563rm -f core conftest.err conftest.$ac_objext \ 4564 conftest$ac_exeext conftest.$ac_ext 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4566$as_echo "$supported" >&6; } 4567 CFLAGS="$xorg_testset_save_CFLAGS" 4568 4569 if test "$supported" = "yes" ; then 4570 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4571 found="yes" 4572 fi 4573 fi 4574 4575 4576 4577 4578 4579 4580 4581xorg_testset_save_CFLAGS="$CFLAGS" 4582 4583if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588/* end confdefs.h. */ 4589int i; 4590_ACEOF 4591if ac_fn_c_try_compile "$LINENO"; then : 4592 xorg_testset_unknown_warning_option=yes 4593else 4594 xorg_testset_unknown_warning_option=no 4595fi 4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4598$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4599 CFLAGS="$xorg_testset_save_CFLAGS" 4600fi 4601 4602if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4605 fi 4606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4610/* end confdefs.h. */ 4611int i; 4612_ACEOF 4613if ac_fn_c_try_compile "$LINENO"; then : 4614 xorg_testset_unused_command_line_argument=yes 4615else 4616 xorg_testset_unused_command_line_argument=no 4617fi 4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4620$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4621 CFLAGS="$xorg_testset_save_CFLAGS" 4622fi 4623 4624found="no" 4625 4626 if test $found = "no" ; then 4627 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4629 fi 4630 4631 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4633 fi 4634 4635 CFLAGS="$CFLAGS -Wnested-externs" 4636 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 4638$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4640/* end confdefs.h. */ 4641int i; 4642int 4643main () 4644{ 4645 4646 ; 4647 return 0; 4648} 4649_ACEOF 4650if ac_fn_c_try_link "$LINENO"; then : 4651 supported=yes 4652else 4653 supported=no 4654fi 4655rm -f core conftest.err conftest.$ac_objext \ 4656 conftest$ac_exeext conftest.$ac_ext 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4658$as_echo "$supported" >&6; } 4659 CFLAGS="$xorg_testset_save_CFLAGS" 4660 4661 if test "$supported" = "yes" ; then 4662 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 4663 found="yes" 4664 fi 4665 fi 4666 4667 4668 4669 4670 4671 4672 4673xorg_testset_save_CFLAGS="$CFLAGS" 4674 4675if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4680/* end confdefs.h. */ 4681int i; 4682_ACEOF 4683if ac_fn_c_try_compile "$LINENO"; then : 4684 xorg_testset_unknown_warning_option=yes 4685else 4686 xorg_testset_unknown_warning_option=no 4687fi 4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4690$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4691 CFLAGS="$xorg_testset_save_CFLAGS" 4692fi 4693 4694if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4695 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4697 fi 4698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702/* end confdefs.h. */ 4703int i; 4704_ACEOF 4705if ac_fn_c_try_compile "$LINENO"; then : 4706 xorg_testset_unused_command_line_argument=yes 4707else 4708 xorg_testset_unused_command_line_argument=no 4709fi 4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4712$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4713 CFLAGS="$xorg_testset_save_CFLAGS" 4714fi 4715 4716found="no" 4717 4718 if test $found = "no" ; then 4719 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4721 fi 4722 4723 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4725 fi 4726 4727 CFLAGS="$CFLAGS -Wbad-function-cast" 4728 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 4730$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732/* end confdefs.h. */ 4733int i; 4734int 4735main () 4736{ 4737 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742if ac_fn_c_try_link "$LINENO"; then : 4743 supported=yes 4744else 4745 supported=no 4746fi 4747rm -f core conftest.err conftest.$ac_objext \ 4748 conftest$ac_exeext conftest.$ac_ext 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4750$as_echo "$supported" >&6; } 4751 CFLAGS="$xorg_testset_save_CFLAGS" 4752 4753 if test "$supported" = "yes" ; then 4754 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 4755 found="yes" 4756 fi 4757 fi 4758 4759 4760 4761 4762 4763 4764 4765xorg_testset_save_CFLAGS="$CFLAGS" 4766 4767if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772/* end confdefs.h. */ 4773int i; 4774_ACEOF 4775if ac_fn_c_try_compile "$LINENO"; then : 4776 xorg_testset_unknown_warning_option=yes 4777else 4778 xorg_testset_unknown_warning_option=no 4779fi 4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4782$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4783 CFLAGS="$xorg_testset_save_CFLAGS" 4784fi 4785 4786if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4787 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4789 fi 4790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4794/* end confdefs.h. */ 4795int i; 4796_ACEOF 4797if ac_fn_c_try_compile "$LINENO"; then : 4798 xorg_testset_unused_command_line_argument=yes 4799else 4800 xorg_testset_unused_command_line_argument=no 4801fi 4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4804$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4805 CFLAGS="$xorg_testset_save_CFLAGS" 4806fi 4807 4808found="no" 4809 4810 if test $found = "no" ; then 4811 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4813 fi 4814 4815 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4817 fi 4818 4819 CFLAGS="$CFLAGS -Wformat=2" 4820 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4822$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825int i; 4826int 4827main () 4828{ 4829 4830 ; 4831 return 0; 4832} 4833_ACEOF 4834if ac_fn_c_try_link "$LINENO"; then : 4835 supported=yes 4836else 4837 supported=no 4838fi 4839rm -f core conftest.err conftest.$ac_objext \ 4840 conftest$ac_exeext conftest.$ac_ext 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4842$as_echo "$supported" >&6; } 4843 CFLAGS="$xorg_testset_save_CFLAGS" 4844 4845 if test "$supported" = "yes" ; then 4846 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4847 found="yes" 4848 fi 4849 fi 4850 4851 if test $found = "no" ; then 4852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4854 fi 4855 4856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4858 fi 4859 4860 CFLAGS="$CFLAGS -Wformat" 4861 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4863$as_echo_n "checking if $CC supports -Wformat... " >&6; } 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4865/* end confdefs.h. */ 4866int i; 4867int 4868main () 4869{ 4870 4871 ; 4872 return 0; 4873} 4874_ACEOF 4875if ac_fn_c_try_link "$LINENO"; then : 4876 supported=yes 4877else 4878 supported=no 4879fi 4880rm -f core conftest.err conftest.$ac_objext \ 4881 conftest$ac_exeext conftest.$ac_ext 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4883$as_echo "$supported" >&6; } 4884 CFLAGS="$xorg_testset_save_CFLAGS" 4885 4886 if test "$supported" = "yes" ; then 4887 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4888 found="yes" 4889 fi 4890 fi 4891 4892 4893 4894 4895 4896 4897 4898xorg_testset_save_CFLAGS="$CFLAGS" 4899 4900if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4905/* end confdefs.h. */ 4906int i; 4907_ACEOF 4908if ac_fn_c_try_compile "$LINENO"; then : 4909 xorg_testset_unknown_warning_option=yes 4910else 4911 xorg_testset_unknown_warning_option=no 4912fi 4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 4915$as_echo "$xorg_testset_unknown_warning_option" >&6; } 4916 CFLAGS="$xorg_testset_save_CFLAGS" 4917fi 4918 4919if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4922 fi 4923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928int i; 4929_ACEOF 4930if ac_fn_c_try_compile "$LINENO"; then : 4931 xorg_testset_unused_command_line_argument=yes 4932else 4933 xorg_testset_unused_command_line_argument=no 4934fi 4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 4937$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 4938 CFLAGS="$xorg_testset_save_CFLAGS" 4939fi 4940 4941found="no" 4942 4943 if test $found = "no" ; then 4944 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4946 fi 4947 4948 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4950 fi 4951 4952 CFLAGS="$CFLAGS -Wold-style-definition" 4953 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 4955$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958int i; 4959int 4960main () 4961{ 4962 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967if ac_fn_c_try_link "$LINENO"; then : 4968 supported=yes 4969else 4970 supported=no 4971fi 4972rm -f core conftest.err conftest.$ac_objext \ 4973 conftest$ac_exeext conftest.$ac_ext 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4975$as_echo "$supported" >&6; } 4976 CFLAGS="$xorg_testset_save_CFLAGS" 4977 4978 if test "$supported" = "yes" ; then 4979 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 4980 found="yes" 4981 fi 4982 fi 4983 4984 4985 4986 4987 4988 4989 4990xorg_testset_save_CFLAGS="$CFLAGS" 4991 4992if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4997/* end confdefs.h. */ 4998int i; 4999_ACEOF 5000if ac_fn_c_try_compile "$LINENO"; then : 5001 xorg_testset_unknown_warning_option=yes 5002else 5003 xorg_testset_unknown_warning_option=no 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5007$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5008 CFLAGS="$xorg_testset_save_CFLAGS" 5009fi 5010 5011if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5014 fi 5015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020int i; 5021_ACEOF 5022if ac_fn_c_try_compile "$LINENO"; then : 5023 xorg_testset_unused_command_line_argument=yes 5024else 5025 xorg_testset_unused_command_line_argument=no 5026fi 5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5029$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5030 CFLAGS="$xorg_testset_save_CFLAGS" 5031fi 5032 5033found="no" 5034 5035 if test $found = "no" ; then 5036 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 fi 5039 5040 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5042 fi 5043 5044 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5045 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5047$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5049/* end confdefs.h. */ 5050int i; 5051int 5052main () 5053{ 5054 5055 ; 5056 return 0; 5057} 5058_ACEOF 5059if ac_fn_c_try_link "$LINENO"; then : 5060 supported=yes 5061else 5062 supported=no 5063fi 5064rm -f core conftest.err conftest.$ac_objext \ 5065 conftest$ac_exeext conftest.$ac_ext 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5067$as_echo "$supported" >&6; } 5068 CFLAGS="$xorg_testset_save_CFLAGS" 5069 5070 if test "$supported" = "yes" ; then 5071 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5072 found="yes" 5073 fi 5074 fi 5075 5076 5077 5078# This chunk adds additional warnings that could catch undesired effects. 5079 5080 5081 5082 5083 5084xorg_testset_save_CFLAGS="$CFLAGS" 5085 5086if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5091/* end confdefs.h. */ 5092int i; 5093_ACEOF 5094if ac_fn_c_try_compile "$LINENO"; then : 5095 xorg_testset_unknown_warning_option=yes 5096else 5097 xorg_testset_unknown_warning_option=no 5098fi 5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5101$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5102 CFLAGS="$xorg_testset_save_CFLAGS" 5103fi 5104 5105if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5108 fi 5109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113/* end confdefs.h. */ 5114int i; 5115_ACEOF 5116if ac_fn_c_try_compile "$LINENO"; then : 5117 xorg_testset_unused_command_line_argument=yes 5118else 5119 xorg_testset_unused_command_line_argument=no 5120fi 5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5123$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5124 CFLAGS="$xorg_testset_save_CFLAGS" 5125fi 5126 5127found="no" 5128 5129 if test $found = "no" ; then 5130 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5132 fi 5133 5134 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5136 fi 5137 5138 CFLAGS="$CFLAGS -Wunused" 5139 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5141$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143/* end confdefs.h. */ 5144int i; 5145int 5146main () 5147{ 5148 5149 ; 5150 return 0; 5151} 5152_ACEOF 5153if ac_fn_c_try_link "$LINENO"; then : 5154 supported=yes 5155else 5156 supported=no 5157fi 5158rm -f core conftest.err conftest.$ac_objext \ 5159 conftest$ac_exeext conftest.$ac_ext 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5161$as_echo "$supported" >&6; } 5162 CFLAGS="$xorg_testset_save_CFLAGS" 5163 5164 if test "$supported" = "yes" ; then 5165 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5166 found="yes" 5167 fi 5168 fi 5169 5170 5171 5172 5173 5174 5175 5176xorg_testset_save_CFLAGS="$CFLAGS" 5177 5178if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185_ACEOF 5186if ac_fn_c_try_compile "$LINENO"; then : 5187 xorg_testset_unknown_warning_option=yes 5188else 5189 xorg_testset_unknown_warning_option=no 5190fi 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5193$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5194 CFLAGS="$xorg_testset_save_CFLAGS" 5195fi 5196 5197if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5198 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5200 fi 5201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5205/* end confdefs.h. */ 5206int i; 5207_ACEOF 5208if ac_fn_c_try_compile "$LINENO"; then : 5209 xorg_testset_unused_command_line_argument=yes 5210else 5211 xorg_testset_unused_command_line_argument=no 5212fi 5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5215$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5216 CFLAGS="$xorg_testset_save_CFLAGS" 5217fi 5218 5219found="no" 5220 5221 if test $found = "no" ; then 5222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5224 fi 5225 5226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5228 fi 5229 5230 CFLAGS="$CFLAGS -Wuninitialized" 5231 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5233$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235/* end confdefs.h. */ 5236int i; 5237int 5238main () 5239{ 5240 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245if ac_fn_c_try_link "$LINENO"; then : 5246 supported=yes 5247else 5248 supported=no 5249fi 5250rm -f core conftest.err conftest.$ac_objext \ 5251 conftest$ac_exeext conftest.$ac_ext 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5253$as_echo "$supported" >&6; } 5254 CFLAGS="$xorg_testset_save_CFLAGS" 5255 5256 if test "$supported" = "yes" ; then 5257 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5258 found="yes" 5259 fi 5260 fi 5261 5262 5263 5264 5265 5266 5267 5268xorg_testset_save_CFLAGS="$CFLAGS" 5269 5270if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5275/* end confdefs.h. */ 5276int i; 5277_ACEOF 5278if ac_fn_c_try_compile "$LINENO"; then : 5279 xorg_testset_unknown_warning_option=yes 5280else 5281 xorg_testset_unknown_warning_option=no 5282fi 5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5285$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5286 CFLAGS="$xorg_testset_save_CFLAGS" 5287fi 5288 5289if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5292 fi 5293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5297/* end confdefs.h. */ 5298int i; 5299_ACEOF 5300if ac_fn_c_try_compile "$LINENO"; then : 5301 xorg_testset_unused_command_line_argument=yes 5302else 5303 xorg_testset_unused_command_line_argument=no 5304fi 5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5307$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5308 CFLAGS="$xorg_testset_save_CFLAGS" 5309fi 5310 5311found="no" 5312 5313 if test $found = "no" ; then 5314 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5316 fi 5317 5318 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5320 fi 5321 5322 CFLAGS="$CFLAGS -Wshadow" 5323 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5325$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5327/* end confdefs.h. */ 5328int i; 5329int 5330main () 5331{ 5332 5333 ; 5334 return 0; 5335} 5336_ACEOF 5337if ac_fn_c_try_link "$LINENO"; then : 5338 supported=yes 5339else 5340 supported=no 5341fi 5342rm -f core conftest.err conftest.$ac_objext \ 5343 conftest$ac_exeext conftest.$ac_ext 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5345$as_echo "$supported" >&6; } 5346 CFLAGS="$xorg_testset_save_CFLAGS" 5347 5348 if test "$supported" = "yes" ; then 5349 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5350 found="yes" 5351 fi 5352 fi 5353 5354 5355 5356 5357 5358 5359 5360xorg_testset_save_CFLAGS="$CFLAGS" 5361 5362if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368int i; 5369_ACEOF 5370if ac_fn_c_try_compile "$LINENO"; then : 5371 xorg_testset_unknown_warning_option=yes 5372else 5373 xorg_testset_unknown_warning_option=no 5374fi 5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5377$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5378 CFLAGS="$xorg_testset_save_CFLAGS" 5379fi 5380 5381if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5384 fi 5385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389/* end confdefs.h. */ 5390int i; 5391_ACEOF 5392if ac_fn_c_try_compile "$LINENO"; then : 5393 xorg_testset_unused_command_line_argument=yes 5394else 5395 xorg_testset_unused_command_line_argument=no 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5399$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5400 CFLAGS="$xorg_testset_save_CFLAGS" 5401fi 5402 5403found="no" 5404 5405 if test $found = "no" ; then 5406 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 5410 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5412 fi 5413 5414 CFLAGS="$CFLAGS -Wcast-qual" 5415 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 5417$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420int i; 5421int 5422main () 5423{ 5424 5425 ; 5426 return 0; 5427} 5428_ACEOF 5429if ac_fn_c_try_link "$LINENO"; then : 5430 supported=yes 5431else 5432 supported=no 5433fi 5434rm -f core conftest.err conftest.$ac_objext \ 5435 conftest$ac_exeext conftest.$ac_ext 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5437$as_echo "$supported" >&6; } 5438 CFLAGS="$xorg_testset_save_CFLAGS" 5439 5440 if test "$supported" = "yes" ; then 5441 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 5442 found="yes" 5443 fi 5444 fi 5445 5446 5447 5448 5449 5450 5451 5452xorg_testset_save_CFLAGS="$CFLAGS" 5453 5454if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5459/* end confdefs.h. */ 5460int i; 5461_ACEOF 5462if ac_fn_c_try_compile "$LINENO"; then : 5463 xorg_testset_unknown_warning_option=yes 5464else 5465 xorg_testset_unknown_warning_option=no 5466fi 5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5469$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5470 CFLAGS="$xorg_testset_save_CFLAGS" 5471fi 5472 5473if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5476 fi 5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482int i; 5483_ACEOF 5484if ac_fn_c_try_compile "$LINENO"; then : 5485 xorg_testset_unused_command_line_argument=yes 5486else 5487 xorg_testset_unused_command_line_argument=no 5488fi 5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5491$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5492 CFLAGS="$xorg_testset_save_CFLAGS" 5493fi 5494 5495found="no" 5496 5497 if test $found = "no" ; then 5498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 fi 5501 5502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5504 fi 5505 5506 CFLAGS="$CFLAGS -Wmissing-noreturn" 5507 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 5509$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5511/* end confdefs.h. */ 5512int i; 5513int 5514main () 5515{ 5516 5517 ; 5518 return 0; 5519} 5520_ACEOF 5521if ac_fn_c_try_link "$LINENO"; then : 5522 supported=yes 5523else 5524 supported=no 5525fi 5526rm -f core conftest.err conftest.$ac_objext \ 5527 conftest$ac_exeext conftest.$ac_ext 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5529$as_echo "$supported" >&6; } 5530 CFLAGS="$xorg_testset_save_CFLAGS" 5531 5532 if test "$supported" = "yes" ; then 5533 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 5534 found="yes" 5535 fi 5536 fi 5537 5538 5539 5540 5541 5542 5543 5544xorg_testset_save_CFLAGS="$CFLAGS" 5545 5546if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5549$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5551/* end confdefs.h. */ 5552int i; 5553_ACEOF 5554if ac_fn_c_try_compile "$LINENO"; then : 5555 xorg_testset_unknown_warning_option=yes 5556else 5557 xorg_testset_unknown_warning_option=no 5558fi 5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5561$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5562 CFLAGS="$xorg_testset_save_CFLAGS" 5563fi 5564 5565if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5566 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5568 fi 5569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5573/* end confdefs.h. */ 5574int i; 5575_ACEOF 5576if ac_fn_c_try_compile "$LINENO"; then : 5577 xorg_testset_unused_command_line_argument=yes 5578else 5579 xorg_testset_unused_command_line_argument=no 5580fi 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5583$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5584 CFLAGS="$xorg_testset_save_CFLAGS" 5585fi 5586 5587found="no" 5588 5589 if test $found = "no" ; then 5590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 fi 5593 5594 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5596 fi 5597 5598 CFLAGS="$CFLAGS -Wmissing-format-attribute" 5599 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 5601$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5603/* end confdefs.h. */ 5604int i; 5605int 5606main () 5607{ 5608 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613if ac_fn_c_try_link "$LINENO"; then : 5614 supported=yes 5615else 5616 supported=no 5617fi 5618rm -f core conftest.err conftest.$ac_objext \ 5619 conftest$ac_exeext conftest.$ac_ext 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5621$as_echo "$supported" >&6; } 5622 CFLAGS="$xorg_testset_save_CFLAGS" 5623 5624 if test "$supported" = "yes" ; then 5625 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 5626 found="yes" 5627 fi 5628 fi 5629 5630 5631 5632 5633 5634 5635 5636xorg_testset_save_CFLAGS="$CFLAGS" 5637 5638if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5643/* end confdefs.h. */ 5644int i; 5645_ACEOF 5646if ac_fn_c_try_compile "$LINENO"; then : 5647 xorg_testset_unknown_warning_option=yes 5648else 5649 xorg_testset_unknown_warning_option=no 5650fi 5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5653$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5654 CFLAGS="$xorg_testset_save_CFLAGS" 5655fi 5656 5657if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5660 fi 5661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665/* end confdefs.h. */ 5666int i; 5667_ACEOF 5668if ac_fn_c_try_compile "$LINENO"; then : 5669 xorg_testset_unused_command_line_argument=yes 5670else 5671 xorg_testset_unused_command_line_argument=no 5672fi 5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5675$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5676 CFLAGS="$xorg_testset_save_CFLAGS" 5677fi 5678 5679found="no" 5680 5681 if test $found = "no" ; then 5682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5684 fi 5685 5686 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5688 fi 5689 5690 CFLAGS="$CFLAGS -Wredundant-decls" 5691 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 5693$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696int i; 5697int 5698main () 5699{ 5700 5701 ; 5702 return 0; 5703} 5704_ACEOF 5705if ac_fn_c_try_link "$LINENO"; then : 5706 supported=yes 5707else 5708 supported=no 5709fi 5710rm -f core conftest.err conftest.$ac_objext \ 5711 conftest$ac_exeext conftest.$ac_ext 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5713$as_echo "$supported" >&6; } 5714 CFLAGS="$xorg_testset_save_CFLAGS" 5715 5716 if test "$supported" = "yes" ; then 5717 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 5718 found="yes" 5719 fi 5720 fi 5721 5722 5723 5724# These are currently disabled because they are noisy. They will be enabled 5725# in the future once the codebase is sufficiently modernized to silence 5726# them. For now, I don't want them to drown out the other warnings. 5727# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op]) 5728# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses]) 5729# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align]) 5730 5731# Turn some warnings into errors, so we don't accidently get successful builds 5732# when there are problems that should be fixed. 5733 5734if test "x$SELECTIVE_WERROR" = "xyes" ; then 5735 5736 5737 5738 5739 5740xorg_testset_save_CFLAGS="$CFLAGS" 5741 5742if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5747/* end confdefs.h. */ 5748int i; 5749_ACEOF 5750if ac_fn_c_try_compile "$LINENO"; then : 5751 xorg_testset_unknown_warning_option=yes 5752else 5753 xorg_testset_unknown_warning_option=no 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5757$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5758 CFLAGS="$xorg_testset_save_CFLAGS" 5759fi 5760 5761if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 fi 5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769/* end confdefs.h. */ 5770int i; 5771_ACEOF 5772if ac_fn_c_try_compile "$LINENO"; then : 5773 xorg_testset_unused_command_line_argument=yes 5774else 5775 xorg_testset_unused_command_line_argument=no 5776fi 5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5779$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5780 CFLAGS="$xorg_testset_save_CFLAGS" 5781fi 5782 5783found="no" 5784 5785 if test $found = "no" ; then 5786 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5788 fi 5789 5790 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5792 fi 5793 5794 CFLAGS="$CFLAGS -Werror=implicit" 5795 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 5797$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799/* end confdefs.h. */ 5800int i; 5801int 5802main () 5803{ 5804 5805 ; 5806 return 0; 5807} 5808_ACEOF 5809if ac_fn_c_try_link "$LINENO"; then : 5810 supported=yes 5811else 5812 supported=no 5813fi 5814rm -f core conftest.err conftest.$ac_objext \ 5815 conftest$ac_exeext conftest.$ac_ext 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5817$as_echo "$supported" >&6; } 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819 5820 if test "$supported" = "yes" ; then 5821 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 5822 found="yes" 5823 fi 5824 fi 5825 5826 if test $found = "no" ; then 5827 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5829 fi 5830 5831 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5833 fi 5834 5835 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 5836 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 5838$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841int i; 5842int 5843main () 5844{ 5845 5846 ; 5847 return 0; 5848} 5849_ACEOF 5850if ac_fn_c_try_link "$LINENO"; then : 5851 supported=yes 5852else 5853 supported=no 5854fi 5855rm -f core conftest.err conftest.$ac_objext \ 5856 conftest$ac_exeext conftest.$ac_ext 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5858$as_echo "$supported" >&6; } 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 if test "$supported" = "yes" ; then 5862 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 5863 found="yes" 5864 fi 5865 fi 5866 5867 5868 5869 5870 5871 5872 5873xorg_testset_save_CFLAGS="$CFLAGS" 5874 5875if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880/* end confdefs.h. */ 5881int i; 5882_ACEOF 5883if ac_fn_c_try_compile "$LINENO"; then : 5884 xorg_testset_unknown_warning_option=yes 5885else 5886 xorg_testset_unknown_warning_option=no 5887fi 5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5890$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5891 CFLAGS="$xorg_testset_save_CFLAGS" 5892fi 5893 5894if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5897 fi 5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903int i; 5904_ACEOF 5905if ac_fn_c_try_compile "$LINENO"; then : 5906 xorg_testset_unused_command_line_argument=yes 5907else 5908 xorg_testset_unused_command_line_argument=no 5909fi 5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 5912$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 5913 CFLAGS="$xorg_testset_save_CFLAGS" 5914fi 5915 5916found="no" 5917 5918 if test $found = "no" ; then 5919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5921 fi 5922 5923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5925 fi 5926 5927 CFLAGS="$CFLAGS -Werror=nonnull" 5928 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 5930$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5932/* end confdefs.h. */ 5933int i; 5934int 5935main () 5936{ 5937 5938 ; 5939 return 0; 5940} 5941_ACEOF 5942if ac_fn_c_try_link "$LINENO"; then : 5943 supported=yes 5944else 5945 supported=no 5946fi 5947rm -f core conftest.err conftest.$ac_objext \ 5948 conftest$ac_exeext conftest.$ac_ext 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5950$as_echo "$supported" >&6; } 5951 CFLAGS="$xorg_testset_save_CFLAGS" 5952 5953 if test "$supported" = "yes" ; then 5954 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 5955 found="yes" 5956 fi 5957 fi 5958 5959 5960 5961 5962 5963 5964 5965xorg_testset_save_CFLAGS="$CFLAGS" 5966 5967if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5972/* end confdefs.h. */ 5973int i; 5974_ACEOF 5975if ac_fn_c_try_compile "$LINENO"; then : 5976 xorg_testset_unknown_warning_option=yes 5977else 5978 xorg_testset_unknown_warning_option=no 5979fi 5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 5982$as_echo "$xorg_testset_unknown_warning_option" >&6; } 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984fi 5985 5986if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5989 fi 5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995int i; 5996_ACEOF 5997if ac_fn_c_try_compile "$LINENO"; then : 5998 xorg_testset_unused_command_line_argument=yes 5999else 6000 xorg_testset_unused_command_line_argument=no 6001fi 6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6004$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6005 CFLAGS="$xorg_testset_save_CFLAGS" 6006fi 6007 6008found="no" 6009 6010 if test $found = "no" ; then 6011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6013 fi 6014 6015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6017 fi 6018 6019 CFLAGS="$CFLAGS -Werror=init-self" 6020 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6022$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6024/* end confdefs.h. */ 6025int i; 6026int 6027main () 6028{ 6029 6030 ; 6031 return 0; 6032} 6033_ACEOF 6034if ac_fn_c_try_link "$LINENO"; then : 6035 supported=yes 6036else 6037 supported=no 6038fi 6039rm -f core conftest.err conftest.$ac_objext \ 6040 conftest$ac_exeext conftest.$ac_ext 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6042$as_echo "$supported" >&6; } 6043 CFLAGS="$xorg_testset_save_CFLAGS" 6044 6045 if test "$supported" = "yes" ; then 6046 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6047 found="yes" 6048 fi 6049 fi 6050 6051 6052 6053 6054 6055 6056 6057xorg_testset_save_CFLAGS="$CFLAGS" 6058 6059if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6064/* end confdefs.h. */ 6065int i; 6066_ACEOF 6067if ac_fn_c_try_compile "$LINENO"; then : 6068 xorg_testset_unknown_warning_option=yes 6069else 6070 xorg_testset_unknown_warning_option=no 6071fi 6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6074$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6075 CFLAGS="$xorg_testset_save_CFLAGS" 6076fi 6077 6078if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6081 fi 6082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086/* end confdefs.h. */ 6087int i; 6088_ACEOF 6089if ac_fn_c_try_compile "$LINENO"; then : 6090 xorg_testset_unused_command_line_argument=yes 6091else 6092 xorg_testset_unused_command_line_argument=no 6093fi 6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6096$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6097 CFLAGS="$xorg_testset_save_CFLAGS" 6098fi 6099 6100found="no" 6101 6102 if test $found = "no" ; then 6103 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 fi 6106 6107 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6109 fi 6110 6111 CFLAGS="$CFLAGS -Werror=main" 6112 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6114$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116/* end confdefs.h. */ 6117int i; 6118int 6119main () 6120{ 6121 6122 ; 6123 return 0; 6124} 6125_ACEOF 6126if ac_fn_c_try_link "$LINENO"; then : 6127 supported=yes 6128else 6129 supported=no 6130fi 6131rm -f core conftest.err conftest.$ac_objext \ 6132 conftest$ac_exeext conftest.$ac_ext 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6134$as_echo "$supported" >&6; } 6135 CFLAGS="$xorg_testset_save_CFLAGS" 6136 6137 if test "$supported" = "yes" ; then 6138 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 6139 found="yes" 6140 fi 6141 fi 6142 6143 6144 6145 6146 6147 6148 6149xorg_testset_save_CFLAGS="$CFLAGS" 6150 6151if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156/* end confdefs.h. */ 6157int i; 6158_ACEOF 6159if ac_fn_c_try_compile "$LINENO"; then : 6160 xorg_testset_unknown_warning_option=yes 6161else 6162 xorg_testset_unknown_warning_option=no 6163fi 6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6166$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6167 CFLAGS="$xorg_testset_save_CFLAGS" 6168fi 6169 6170if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6173 fi 6174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6178/* end confdefs.h. */ 6179int i; 6180_ACEOF 6181if ac_fn_c_try_compile "$LINENO"; then : 6182 xorg_testset_unused_command_line_argument=yes 6183else 6184 xorg_testset_unused_command_line_argument=no 6185fi 6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6188$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6189 CFLAGS="$xorg_testset_save_CFLAGS" 6190fi 6191 6192found="no" 6193 6194 if test $found = "no" ; then 6195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6197 fi 6198 6199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6201 fi 6202 6203 CFLAGS="$CFLAGS -Werror=missing-braces" 6204 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 6206$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6208/* end confdefs.h. */ 6209int i; 6210int 6211main () 6212{ 6213 6214 ; 6215 return 0; 6216} 6217_ACEOF 6218if ac_fn_c_try_link "$LINENO"; then : 6219 supported=yes 6220else 6221 supported=no 6222fi 6223rm -f core conftest.err conftest.$ac_objext \ 6224 conftest$ac_exeext conftest.$ac_ext 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6226$as_echo "$supported" >&6; } 6227 CFLAGS="$xorg_testset_save_CFLAGS" 6228 6229 if test "$supported" = "yes" ; then 6230 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 6231 found="yes" 6232 fi 6233 fi 6234 6235 6236 6237 6238 6239 6240 6241xorg_testset_save_CFLAGS="$CFLAGS" 6242 6243if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6248/* end confdefs.h. */ 6249int i; 6250_ACEOF 6251if ac_fn_c_try_compile "$LINENO"; then : 6252 xorg_testset_unknown_warning_option=yes 6253else 6254 xorg_testset_unknown_warning_option=no 6255fi 6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6258$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260fi 6261 6262if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6265 fi 6266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270/* end confdefs.h. */ 6271int i; 6272_ACEOF 6273if ac_fn_c_try_compile "$LINENO"; then : 6274 xorg_testset_unused_command_line_argument=yes 6275else 6276 xorg_testset_unused_command_line_argument=no 6277fi 6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6280$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6281 CFLAGS="$xorg_testset_save_CFLAGS" 6282fi 6283 6284found="no" 6285 6286 if test $found = "no" ; then 6287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6289 fi 6290 6291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6293 fi 6294 6295 CFLAGS="$CFLAGS -Werror=sequence-point" 6296 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 6298$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301int i; 6302int 6303main () 6304{ 6305 6306 ; 6307 return 0; 6308} 6309_ACEOF 6310if ac_fn_c_try_link "$LINENO"; then : 6311 supported=yes 6312else 6313 supported=no 6314fi 6315rm -f core conftest.err conftest.$ac_objext \ 6316 conftest$ac_exeext conftest.$ac_ext 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6318$as_echo "$supported" >&6; } 6319 CFLAGS="$xorg_testset_save_CFLAGS" 6320 6321 if test "$supported" = "yes" ; then 6322 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 6323 found="yes" 6324 fi 6325 fi 6326 6327 6328 6329 6330 6331 6332 6333xorg_testset_save_CFLAGS="$CFLAGS" 6334 6335if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340/* end confdefs.h. */ 6341int i; 6342_ACEOF 6343if ac_fn_c_try_compile "$LINENO"; then : 6344 xorg_testset_unknown_warning_option=yes 6345else 6346 xorg_testset_unknown_warning_option=no 6347fi 6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6350$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6351 CFLAGS="$xorg_testset_save_CFLAGS" 6352fi 6353 6354if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6355 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 fi 6358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6362/* end confdefs.h. */ 6363int i; 6364_ACEOF 6365if ac_fn_c_try_compile "$LINENO"; then : 6366 xorg_testset_unused_command_line_argument=yes 6367else 6368 xorg_testset_unused_command_line_argument=no 6369fi 6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6372$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6373 CFLAGS="$xorg_testset_save_CFLAGS" 6374fi 6375 6376found="no" 6377 6378 if test $found = "no" ; then 6379 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6381 fi 6382 6383 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6385 fi 6386 6387 CFLAGS="$CFLAGS -Werror=return-type" 6388 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 6390$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6392/* end confdefs.h. */ 6393int i; 6394int 6395main () 6396{ 6397 6398 ; 6399 return 0; 6400} 6401_ACEOF 6402if ac_fn_c_try_link "$LINENO"; then : 6403 supported=yes 6404else 6405 supported=no 6406fi 6407rm -f core conftest.err conftest.$ac_objext \ 6408 conftest$ac_exeext conftest.$ac_ext 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6410$as_echo "$supported" >&6; } 6411 CFLAGS="$xorg_testset_save_CFLAGS" 6412 6413 if test "$supported" = "yes" ; then 6414 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 6415 found="yes" 6416 fi 6417 fi 6418 6419 if test $found = "no" ; then 6420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6422 fi 6423 6424 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6426 fi 6427 6428 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 6429 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 6431$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433/* end confdefs.h. */ 6434int i; 6435int 6436main () 6437{ 6438 6439 ; 6440 return 0; 6441} 6442_ACEOF 6443if ac_fn_c_try_link "$LINENO"; then : 6444 supported=yes 6445else 6446 supported=no 6447fi 6448rm -f core conftest.err conftest.$ac_objext \ 6449 conftest$ac_exeext conftest.$ac_ext 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6451$as_echo "$supported" >&6; } 6452 CFLAGS="$xorg_testset_save_CFLAGS" 6453 6454 if test "$supported" = "yes" ; then 6455 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 6456 found="yes" 6457 fi 6458 fi 6459 6460 6461 6462 6463 6464 6465 6466xorg_testset_save_CFLAGS="$CFLAGS" 6467 6468if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474int i; 6475_ACEOF 6476if ac_fn_c_try_compile "$LINENO"; then : 6477 xorg_testset_unknown_warning_option=yes 6478else 6479 xorg_testset_unknown_warning_option=no 6480fi 6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6483$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6484 CFLAGS="$xorg_testset_save_CFLAGS" 6485fi 6486 6487if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6490 fi 6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6495/* end confdefs.h. */ 6496int i; 6497_ACEOF 6498if ac_fn_c_try_compile "$LINENO"; then : 6499 xorg_testset_unused_command_line_argument=yes 6500else 6501 xorg_testset_unused_command_line_argument=no 6502fi 6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6505$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6506 CFLAGS="$xorg_testset_save_CFLAGS" 6507fi 6508 6509found="no" 6510 6511 if test $found = "no" ; then 6512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6514 fi 6515 6516 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6518 fi 6519 6520 CFLAGS="$CFLAGS -Werror=trigraphs" 6521 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 6523$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6525/* end confdefs.h. */ 6526int i; 6527int 6528main () 6529{ 6530 6531 ; 6532 return 0; 6533} 6534_ACEOF 6535if ac_fn_c_try_link "$LINENO"; then : 6536 supported=yes 6537else 6538 supported=no 6539fi 6540rm -f core conftest.err conftest.$ac_objext \ 6541 conftest$ac_exeext conftest.$ac_ext 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6543$as_echo "$supported" >&6; } 6544 CFLAGS="$xorg_testset_save_CFLAGS" 6545 6546 if test "$supported" = "yes" ; then 6547 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 6548 found="yes" 6549 fi 6550 fi 6551 6552 6553 6554 6555 6556 6557 6558xorg_testset_save_CFLAGS="$CFLAGS" 6559 6560if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6565/* end confdefs.h. */ 6566int i; 6567_ACEOF 6568if ac_fn_c_try_compile "$LINENO"; then : 6569 xorg_testset_unknown_warning_option=yes 6570else 6571 xorg_testset_unknown_warning_option=no 6572fi 6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6575$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577fi 6578 6579if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6580 if test "x$xorg_testset_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; } 6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588int i; 6589_ACEOF 6590if ac_fn_c_try_compile "$LINENO"; then : 6591 xorg_testset_unused_command_line_argument=yes 6592else 6593 xorg_testset_unused_command_line_argument=no 6594fi 6595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6597$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599fi 6600 6601found="no" 6602 6603 if test $found = "no" ; then 6604 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 fi 6607 6608 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6610 fi 6611 6612 CFLAGS="$CFLAGS -Werror=array-bounds" 6613 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 6615$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6617/* end confdefs.h. */ 6618int i; 6619int 6620main () 6621{ 6622 6623 ; 6624 return 0; 6625} 6626_ACEOF 6627if ac_fn_c_try_link "$LINENO"; then : 6628 supported=yes 6629else 6630 supported=no 6631fi 6632rm -f core conftest.err conftest.$ac_objext \ 6633 conftest$ac_exeext conftest.$ac_ext 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6635$as_echo "$supported" >&6; } 6636 CFLAGS="$xorg_testset_save_CFLAGS" 6637 6638 if test "$supported" = "yes" ; then 6639 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 6640 found="yes" 6641 fi 6642 fi 6643 6644 6645 6646 6647 6648 6649 6650xorg_testset_save_CFLAGS="$CFLAGS" 6651 6652if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658int i; 6659_ACEOF 6660if ac_fn_c_try_compile "$LINENO"; then : 6661 xorg_testset_unknown_warning_option=yes 6662else 6663 xorg_testset_unknown_warning_option=no 6664fi 6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6667$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6668 CFLAGS="$xorg_testset_save_CFLAGS" 6669fi 6670 6671if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6674 fi 6675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680int i; 6681_ACEOF 6682if ac_fn_c_try_compile "$LINENO"; then : 6683 xorg_testset_unused_command_line_argument=yes 6684else 6685 xorg_testset_unused_command_line_argument=no 6686fi 6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6689$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6690 CFLAGS="$xorg_testset_save_CFLAGS" 6691fi 6692 6693found="no" 6694 6695 if test $found = "no" ; then 6696 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 fi 6699 6700 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6702 fi 6703 6704 CFLAGS="$CFLAGS -Werror=write-strings" 6705 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 6707$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6709/* end confdefs.h. */ 6710int i; 6711int 6712main () 6713{ 6714 6715 ; 6716 return 0; 6717} 6718_ACEOF 6719if ac_fn_c_try_link "$LINENO"; then : 6720 supported=yes 6721else 6722 supported=no 6723fi 6724rm -f core conftest.err conftest.$ac_objext \ 6725 conftest$ac_exeext conftest.$ac_ext 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6727$as_echo "$supported" >&6; } 6728 CFLAGS="$xorg_testset_save_CFLAGS" 6729 6730 if test "$supported" = "yes" ; then 6731 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 6732 found="yes" 6733 fi 6734 fi 6735 6736 6737 6738 6739 6740 6741 6742xorg_testset_save_CFLAGS="$CFLAGS" 6743 6744if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6749/* end confdefs.h. */ 6750int i; 6751_ACEOF 6752if ac_fn_c_try_compile "$LINENO"; then : 6753 xorg_testset_unknown_warning_option=yes 6754else 6755 xorg_testset_unknown_warning_option=no 6756fi 6757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6759$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6760 CFLAGS="$xorg_testset_save_CFLAGS" 6761fi 6762 6763if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6764 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6766 fi 6767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6771/* end confdefs.h. */ 6772int i; 6773_ACEOF 6774if ac_fn_c_try_compile "$LINENO"; then : 6775 xorg_testset_unused_command_line_argument=yes 6776else 6777 xorg_testset_unused_command_line_argument=no 6778fi 6779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6781$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783fi 6784 6785found="no" 6786 6787 if test $found = "no" ; then 6788 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6790 fi 6791 6792 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6794 fi 6795 6796 CFLAGS="$CFLAGS -Werror=address" 6797 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 6799$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801/* end confdefs.h. */ 6802int i; 6803int 6804main () 6805{ 6806 6807 ; 6808 return 0; 6809} 6810_ACEOF 6811if ac_fn_c_try_link "$LINENO"; then : 6812 supported=yes 6813else 6814 supported=no 6815fi 6816rm -f core conftest.err conftest.$ac_objext \ 6817 conftest$ac_exeext conftest.$ac_ext 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6819$as_echo "$supported" >&6; } 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821 6822 if test "$supported" = "yes" ; then 6823 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 6824 found="yes" 6825 fi 6826 fi 6827 6828 6829 6830 6831 6832 6833 6834xorg_testset_save_CFLAGS="$CFLAGS" 6835 6836if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6841/* end confdefs.h. */ 6842int i; 6843_ACEOF 6844if ac_fn_c_try_compile "$LINENO"; then : 6845 xorg_testset_unknown_warning_option=yes 6846else 6847 xorg_testset_unknown_warning_option=no 6848fi 6849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6851$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6852 CFLAGS="$xorg_testset_save_CFLAGS" 6853fi 6854 6855if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858 fi 6859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6863/* end confdefs.h. */ 6864int i; 6865_ACEOF 6866if ac_fn_c_try_compile "$LINENO"; then : 6867 xorg_testset_unused_command_line_argument=yes 6868else 6869 xorg_testset_unused_command_line_argument=no 6870fi 6871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 6873$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 6874 CFLAGS="$xorg_testset_save_CFLAGS" 6875fi 6876 6877found="no" 6878 6879 if test $found = "no" ; then 6880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 fi 6883 6884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6886 fi 6887 6888 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 6889 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 6891$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894int i; 6895int 6896main () 6897{ 6898 6899 ; 6900 return 0; 6901} 6902_ACEOF 6903if ac_fn_c_try_link "$LINENO"; then : 6904 supported=yes 6905else 6906 supported=no 6907fi 6908rm -f core conftest.err conftest.$ac_objext \ 6909 conftest$ac_exeext conftest.$ac_ext 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6911$as_echo "$supported" >&6; } 6912 CFLAGS="$xorg_testset_save_CFLAGS" 6913 6914 if test "$supported" = "yes" ; then 6915 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 6916 found="yes" 6917 fi 6918 fi 6919 6920 if test $found = "no" ; then 6921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6923 fi 6924 6925 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6927 fi 6928 6929 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 6930 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 6932$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6934/* end confdefs.h. */ 6935int i; 6936int 6937main () 6938{ 6939 6940 ; 6941 return 0; 6942} 6943_ACEOF 6944if ac_fn_c_try_link "$LINENO"; then : 6945 supported=yes 6946else 6947 supported=no 6948fi 6949rm -f core conftest.err conftest.$ac_objext \ 6950 conftest$ac_exeext conftest.$ac_ext 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6952$as_echo "$supported" >&6; } 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954 6955 if test "$supported" = "yes" ; then 6956 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 6957 found="yes" 6958 fi 6959 fi 6960 6961 6962 6963 6964 6965 6966 6967xorg_testset_save_CFLAGS="$CFLAGS" 6968 6969if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975int i; 6976_ACEOF 6977if ac_fn_c_try_compile "$LINENO"; then : 6978 xorg_testset_unknown_warning_option=yes 6979else 6980 xorg_testset_unknown_warning_option=no 6981fi 6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 6984$as_echo "$xorg_testset_unknown_warning_option" >&6; } 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986fi 6987 6988if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6989 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6991 fi 6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997int i; 6998_ACEOF 6999if ac_fn_c_try_compile "$LINENO"; then : 7000 xorg_testset_unused_command_line_argument=yes 7001else 7002 xorg_testset_unused_command_line_argument=no 7003fi 7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7006$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7007 CFLAGS="$xorg_testset_save_CFLAGS" 7008fi 7009 7010found="no" 7011 7012 if test $found = "no" ; then 7013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7015 fi 7016 7017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7019 fi 7020 7021 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 7022 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 7024$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7026/* end confdefs.h. */ 7027int i; 7028int 7029main () 7030{ 7031 7032 ; 7033 return 0; 7034} 7035_ACEOF 7036if ac_fn_c_try_link "$LINENO"; then : 7037 supported=yes 7038else 7039 supported=no 7040fi 7041rm -f core conftest.err conftest.$ac_objext \ 7042 conftest$ac_exeext conftest.$ac_ext 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7044$as_echo "$supported" >&6; } 7045 CFLAGS="$xorg_testset_save_CFLAGS" 7046 7047 if test "$supported" = "yes" ; then 7048 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 7049 found="yes" 7050 fi 7051 fi 7052 7053 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 7054else 7055{ $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 7056$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;} 7057 7058 7059 7060 7061 7062xorg_testset_save_CFLAGS="$CFLAGS" 7063 7064if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070int i; 7071_ACEOF 7072if ac_fn_c_try_compile "$LINENO"; then : 7073 xorg_testset_unknown_warning_option=yes 7074else 7075 xorg_testset_unknown_warning_option=no 7076fi 7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7079$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7080 CFLAGS="$xorg_testset_save_CFLAGS" 7081fi 7082 7083if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7086 fi 7087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092int i; 7093_ACEOF 7094if ac_fn_c_try_compile "$LINENO"; then : 7095 xorg_testset_unused_command_line_argument=yes 7096else 7097 xorg_testset_unused_command_line_argument=no 7098fi 7099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7101$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7102 CFLAGS="$xorg_testset_save_CFLAGS" 7103fi 7104 7105found="no" 7106 7107 if test $found = "no" ; then 7108 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7110 fi 7111 7112 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7114 fi 7115 7116 CFLAGS="$CFLAGS -Wimplicit" 7117 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 7119$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7121/* end confdefs.h. */ 7122int i; 7123int 7124main () 7125{ 7126 7127 ; 7128 return 0; 7129} 7130_ACEOF 7131if ac_fn_c_try_link "$LINENO"; then : 7132 supported=yes 7133else 7134 supported=no 7135fi 7136rm -f core conftest.err conftest.$ac_objext \ 7137 conftest$ac_exeext conftest.$ac_ext 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7139$as_echo "$supported" >&6; } 7140 CFLAGS="$xorg_testset_save_CFLAGS" 7141 7142 if test "$supported" = "yes" ; then 7143 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 7144 found="yes" 7145 fi 7146 fi 7147 7148 7149 7150 7151 7152 7153 7154xorg_testset_save_CFLAGS="$CFLAGS" 7155 7156if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7161/* end confdefs.h. */ 7162int i; 7163_ACEOF 7164if ac_fn_c_try_compile "$LINENO"; then : 7165 xorg_testset_unknown_warning_option=yes 7166else 7167 xorg_testset_unknown_warning_option=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7171$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7172 CFLAGS="$xorg_testset_save_CFLAGS" 7173fi 7174 7175if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7178 fi 7179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7183/* end confdefs.h. */ 7184int i; 7185_ACEOF 7186if ac_fn_c_try_compile "$LINENO"; then : 7187 xorg_testset_unused_command_line_argument=yes 7188else 7189 xorg_testset_unused_command_line_argument=no 7190fi 7191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7193$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7194 CFLAGS="$xorg_testset_save_CFLAGS" 7195fi 7196 7197found="no" 7198 7199 if test $found = "no" ; then 7200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7202 fi 7203 7204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7206 fi 7207 7208 CFLAGS="$CFLAGS -Wnonnull" 7209 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 7211$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7213/* end confdefs.h. */ 7214int i; 7215int 7216main () 7217{ 7218 7219 ; 7220 return 0; 7221} 7222_ACEOF 7223if ac_fn_c_try_link "$LINENO"; then : 7224 supported=yes 7225else 7226 supported=no 7227fi 7228rm -f core conftest.err conftest.$ac_objext \ 7229 conftest$ac_exeext conftest.$ac_ext 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7231$as_echo "$supported" >&6; } 7232 CFLAGS="$xorg_testset_save_CFLAGS" 7233 7234 if test "$supported" = "yes" ; then 7235 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 7236 found="yes" 7237 fi 7238 fi 7239 7240 7241 7242 7243 7244 7245 7246xorg_testset_save_CFLAGS="$CFLAGS" 7247 7248if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254int i; 7255_ACEOF 7256if ac_fn_c_try_compile "$LINENO"; then : 7257 xorg_testset_unknown_warning_option=yes 7258else 7259 xorg_testset_unknown_warning_option=no 7260fi 7261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7263$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7264 CFLAGS="$xorg_testset_save_CFLAGS" 7265fi 7266 7267if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7270 fi 7271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276int i; 7277_ACEOF 7278if ac_fn_c_try_compile "$LINENO"; then : 7279 xorg_testset_unused_command_line_argument=yes 7280else 7281 xorg_testset_unused_command_line_argument=no 7282fi 7283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7285$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287fi 7288 7289found="no" 7290 7291 if test $found = "no" ; then 7292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 fi 7295 7296 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7298 fi 7299 7300 CFLAGS="$CFLAGS -Winit-self" 7301 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 7303$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306int i; 7307int 7308main () 7309{ 7310 7311 ; 7312 return 0; 7313} 7314_ACEOF 7315if ac_fn_c_try_link "$LINENO"; then : 7316 supported=yes 7317else 7318 supported=no 7319fi 7320rm -f core conftest.err conftest.$ac_objext \ 7321 conftest$ac_exeext conftest.$ac_ext 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7323$as_echo "$supported" >&6; } 7324 CFLAGS="$xorg_testset_save_CFLAGS" 7325 7326 if test "$supported" = "yes" ; then 7327 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 7328 found="yes" 7329 fi 7330 fi 7331 7332 7333 7334 7335 7336 7337 7338xorg_testset_save_CFLAGS="$CFLAGS" 7339 7340if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7345/* end confdefs.h. */ 7346int i; 7347_ACEOF 7348if ac_fn_c_try_compile "$LINENO"; then : 7349 xorg_testset_unknown_warning_option=yes 7350else 7351 xorg_testset_unknown_warning_option=no 7352fi 7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7355$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7356 CFLAGS="$xorg_testset_save_CFLAGS" 7357fi 7358 7359if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7362 fi 7363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367/* end confdefs.h. */ 7368int i; 7369_ACEOF 7370if ac_fn_c_try_compile "$LINENO"; then : 7371 xorg_testset_unused_command_line_argument=yes 7372else 7373 xorg_testset_unused_command_line_argument=no 7374fi 7375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7377$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7378 CFLAGS="$xorg_testset_save_CFLAGS" 7379fi 7380 7381found="no" 7382 7383 if test $found = "no" ; then 7384 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7386 fi 7387 7388 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7390 fi 7391 7392 CFLAGS="$CFLAGS -Wmain" 7393 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 7395$as_echo_n "checking if $CC supports -Wmain... " >&6; } 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398int i; 7399int 7400main () 7401{ 7402 7403 ; 7404 return 0; 7405} 7406_ACEOF 7407if ac_fn_c_try_link "$LINENO"; then : 7408 supported=yes 7409else 7410 supported=no 7411fi 7412rm -f core conftest.err conftest.$ac_objext \ 7413 conftest$ac_exeext conftest.$ac_ext 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7415$as_echo "$supported" >&6; } 7416 CFLAGS="$xorg_testset_save_CFLAGS" 7417 7418 if test "$supported" = "yes" ; then 7419 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 7420 found="yes" 7421 fi 7422 fi 7423 7424 7425 7426 7427 7428 7429 7430xorg_testset_save_CFLAGS="$CFLAGS" 7431 7432if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437/* end confdefs.h. */ 7438int i; 7439_ACEOF 7440if ac_fn_c_try_compile "$LINENO"; then : 7441 xorg_testset_unknown_warning_option=yes 7442else 7443 xorg_testset_unknown_warning_option=no 7444fi 7445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7447$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7448 CFLAGS="$xorg_testset_save_CFLAGS" 7449fi 7450 7451if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7452 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7454 fi 7455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460int i; 7461_ACEOF 7462if ac_fn_c_try_compile "$LINENO"; then : 7463 xorg_testset_unused_command_line_argument=yes 7464else 7465 xorg_testset_unused_command_line_argument=no 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7469$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7470 CFLAGS="$xorg_testset_save_CFLAGS" 7471fi 7472 7473found="no" 7474 7475 if test $found = "no" ; then 7476 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7478 fi 7479 7480 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7482 fi 7483 7484 CFLAGS="$CFLAGS -Wmissing-braces" 7485 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 7487$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489/* end confdefs.h. */ 7490int i; 7491int 7492main () 7493{ 7494 7495 ; 7496 return 0; 7497} 7498_ACEOF 7499if ac_fn_c_try_link "$LINENO"; then : 7500 supported=yes 7501else 7502 supported=no 7503fi 7504rm -f core conftest.err conftest.$ac_objext \ 7505 conftest$ac_exeext conftest.$ac_ext 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7507$as_echo "$supported" >&6; } 7508 CFLAGS="$xorg_testset_save_CFLAGS" 7509 7510 if test "$supported" = "yes" ; then 7511 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 7512 found="yes" 7513 fi 7514 fi 7515 7516 7517 7518 7519 7520 7521 7522xorg_testset_save_CFLAGS="$CFLAGS" 7523 7524if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530int i; 7531_ACEOF 7532if ac_fn_c_try_compile "$LINENO"; then : 7533 xorg_testset_unknown_warning_option=yes 7534else 7535 xorg_testset_unknown_warning_option=no 7536fi 7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7539$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7540 CFLAGS="$xorg_testset_save_CFLAGS" 7541fi 7542 7543if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7544 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7546 fi 7547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552int i; 7553_ACEOF 7554if ac_fn_c_try_compile "$LINENO"; then : 7555 xorg_testset_unused_command_line_argument=yes 7556else 7557 xorg_testset_unused_command_line_argument=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7561$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7562 CFLAGS="$xorg_testset_save_CFLAGS" 7563fi 7564 7565found="no" 7566 7567 if test $found = "no" ; then 7568 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7570 fi 7571 7572 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7574 fi 7575 7576 CFLAGS="$CFLAGS -Wsequence-point" 7577 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 7579$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581/* end confdefs.h. */ 7582int i; 7583int 7584main () 7585{ 7586 7587 ; 7588 return 0; 7589} 7590_ACEOF 7591if ac_fn_c_try_link "$LINENO"; then : 7592 supported=yes 7593else 7594 supported=no 7595fi 7596rm -f core conftest.err conftest.$ac_objext \ 7597 conftest$ac_exeext conftest.$ac_ext 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7599$as_echo "$supported" >&6; } 7600 CFLAGS="$xorg_testset_save_CFLAGS" 7601 7602 if test "$supported" = "yes" ; then 7603 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 7604 found="yes" 7605 fi 7606 fi 7607 7608 7609 7610 7611 7612 7613 7614xorg_testset_save_CFLAGS="$CFLAGS" 7615 7616if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7621/* end confdefs.h. */ 7622int i; 7623_ACEOF 7624if ac_fn_c_try_compile "$LINENO"; then : 7625 xorg_testset_unknown_warning_option=yes 7626else 7627 xorg_testset_unknown_warning_option=no 7628fi 7629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7631$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7632 CFLAGS="$xorg_testset_save_CFLAGS" 7633fi 7634 7635if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7636 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7638 fi 7639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7641$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643/* end confdefs.h. */ 7644int i; 7645_ACEOF 7646if ac_fn_c_try_compile "$LINENO"; then : 7647 xorg_testset_unused_command_line_argument=yes 7648else 7649 xorg_testset_unused_command_line_argument=no 7650fi 7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7653$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7654 CFLAGS="$xorg_testset_save_CFLAGS" 7655fi 7656 7657found="no" 7658 7659 if test $found = "no" ; then 7660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7662 fi 7663 7664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7666 fi 7667 7668 CFLAGS="$CFLAGS -Wreturn-type" 7669 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 7671$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674int i; 7675int 7676main () 7677{ 7678 7679 ; 7680 return 0; 7681} 7682_ACEOF 7683if ac_fn_c_try_link "$LINENO"; then : 7684 supported=yes 7685else 7686 supported=no 7687fi 7688rm -f core conftest.err conftest.$ac_objext \ 7689 conftest$ac_exeext conftest.$ac_ext 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7691$as_echo "$supported" >&6; } 7692 CFLAGS="$xorg_testset_save_CFLAGS" 7693 7694 if test "$supported" = "yes" ; then 7695 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 7696 found="yes" 7697 fi 7698 fi 7699 7700 7701 7702 7703 7704 7705 7706xorg_testset_save_CFLAGS="$CFLAGS" 7707 7708if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714int i; 7715_ACEOF 7716if ac_fn_c_try_compile "$LINENO"; then : 7717 xorg_testset_unknown_warning_option=yes 7718else 7719 xorg_testset_unknown_warning_option=no 7720fi 7721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7723$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7724 CFLAGS="$xorg_testset_save_CFLAGS" 7725fi 7726 7727if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7733$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 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_testset_unused_command_line_argument=yes 7740else 7741 xorg_testset_unused_command_line_argument=no 7742fi 7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7745$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7746 CFLAGS="$xorg_testset_save_CFLAGS" 7747fi 7748 7749found="no" 7750 7751 if test $found = "no" ; then 7752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7754 fi 7755 7756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7758 fi 7759 7760 CFLAGS="$CFLAGS -Wtrigraphs" 7761 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 7763$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766int i; 7767int 7768main () 7769{ 7770 7771 ; 7772 return 0; 7773} 7774_ACEOF 7775if ac_fn_c_try_link "$LINENO"; then : 7776 supported=yes 7777else 7778 supported=no 7779fi 7780rm -f core conftest.err conftest.$ac_objext \ 7781 conftest$ac_exeext conftest.$ac_ext 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7783$as_echo "$supported" >&6; } 7784 CFLAGS="$xorg_testset_save_CFLAGS" 7785 7786 if test "$supported" = "yes" ; then 7787 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 7788 found="yes" 7789 fi 7790 fi 7791 7792 7793 7794 7795 7796 7797 7798xorg_testset_save_CFLAGS="$CFLAGS" 7799 7800if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806int i; 7807_ACEOF 7808if ac_fn_c_try_compile "$LINENO"; then : 7809 xorg_testset_unknown_warning_option=yes 7810else 7811 xorg_testset_unknown_warning_option=no 7812fi 7813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7815$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7816 CFLAGS="$xorg_testset_save_CFLAGS" 7817fi 7818 7819if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7820 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7822 fi 7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828int i; 7829_ACEOF 7830if ac_fn_c_try_compile "$LINENO"; then : 7831 xorg_testset_unused_command_line_argument=yes 7832else 7833 xorg_testset_unused_command_line_argument=no 7834fi 7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7837$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7838 CFLAGS="$xorg_testset_save_CFLAGS" 7839fi 7840 7841found="no" 7842 7843 if test $found = "no" ; then 7844 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7846 fi 7847 7848 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7850 fi 7851 7852 CFLAGS="$CFLAGS -Warray-bounds" 7853 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 7855$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858int i; 7859int 7860main () 7861{ 7862 7863 ; 7864 return 0; 7865} 7866_ACEOF 7867if ac_fn_c_try_link "$LINENO"; then : 7868 supported=yes 7869else 7870 supported=no 7871fi 7872rm -f core conftest.err conftest.$ac_objext \ 7873 conftest$ac_exeext conftest.$ac_ext 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7875$as_echo "$supported" >&6; } 7876 CFLAGS="$xorg_testset_save_CFLAGS" 7877 7878 if test "$supported" = "yes" ; then 7879 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 7880 found="yes" 7881 fi 7882 fi 7883 7884 7885 7886 7887 7888 7889 7890xorg_testset_save_CFLAGS="$CFLAGS" 7891 7892if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7897/* end confdefs.h. */ 7898int i; 7899_ACEOF 7900if ac_fn_c_try_compile "$LINENO"; then : 7901 xorg_testset_unknown_warning_option=yes 7902else 7903 xorg_testset_unknown_warning_option=no 7904fi 7905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7907$as_echo "$xorg_testset_unknown_warning_option" >&6; } 7908 CFLAGS="$xorg_testset_save_CFLAGS" 7909fi 7910 7911if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7914 fi 7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7919/* end confdefs.h. */ 7920int i; 7921_ACEOF 7922if ac_fn_c_try_compile "$LINENO"; then : 7923 xorg_testset_unused_command_line_argument=yes 7924else 7925 xorg_testset_unused_command_line_argument=no 7926fi 7927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 7929$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 7930 CFLAGS="$xorg_testset_save_CFLAGS" 7931fi 7932 7933found="no" 7934 7935 if test $found = "no" ; then 7936 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7938 fi 7939 7940 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7942 fi 7943 7944 CFLAGS="$CFLAGS -Wwrite-strings" 7945 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 7947$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950int i; 7951int 7952main () 7953{ 7954 7955 ; 7956 return 0; 7957} 7958_ACEOF 7959if ac_fn_c_try_link "$LINENO"; then : 7960 supported=yes 7961else 7962 supported=no 7963fi 7964rm -f core conftest.err conftest.$ac_objext \ 7965 conftest$ac_exeext conftest.$ac_ext 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7967$as_echo "$supported" >&6; } 7968 CFLAGS="$xorg_testset_save_CFLAGS" 7969 7970 if test "$supported" = "yes" ; then 7971 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 7972 found="yes" 7973 fi 7974 fi 7975 7976 7977 7978 7979 7980 7981 7982xorg_testset_save_CFLAGS="$CFLAGS" 7983 7984if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7989/* end confdefs.h. */ 7990int i; 7991_ACEOF 7992if ac_fn_c_try_compile "$LINENO"; then : 7993 xorg_testset_unknown_warning_option=yes 7994else 7995 xorg_testset_unknown_warning_option=no 7996fi 7997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 7999$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8000 CFLAGS="$xorg_testset_save_CFLAGS" 8001fi 8002 8003if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8006 fi 8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012int i; 8013_ACEOF 8014if ac_fn_c_try_compile "$LINENO"; then : 8015 xorg_testset_unused_command_line_argument=yes 8016else 8017 xorg_testset_unused_command_line_argument=no 8018fi 8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8021$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8022 CFLAGS="$xorg_testset_save_CFLAGS" 8023fi 8024 8025found="no" 8026 8027 if test $found = "no" ; then 8028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8030 fi 8031 8032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8034 fi 8035 8036 CFLAGS="$CFLAGS -Waddress" 8037 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 8039$as_echo_n "checking if $CC supports -Waddress... " >&6; } 8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8041/* end confdefs.h. */ 8042int i; 8043int 8044main () 8045{ 8046 8047 ; 8048 return 0; 8049} 8050_ACEOF 8051if ac_fn_c_try_link "$LINENO"; then : 8052 supported=yes 8053else 8054 supported=no 8055fi 8056rm -f core conftest.err conftest.$ac_objext \ 8057 conftest$ac_exeext conftest.$ac_ext 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8059$as_echo "$supported" >&6; } 8060 CFLAGS="$xorg_testset_save_CFLAGS" 8061 8062 if test "$supported" = "yes" ; then 8063 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 8064 found="yes" 8065 fi 8066 fi 8067 8068 8069 8070 8071 8072 8073 8074xorg_testset_save_CFLAGS="$CFLAGS" 8075 8076if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8081/* end confdefs.h. */ 8082int i; 8083_ACEOF 8084if ac_fn_c_try_compile "$LINENO"; then : 8085 xorg_testset_unknown_warning_option=yes 8086else 8087 xorg_testset_unknown_warning_option=no 8088fi 8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8091$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8092 CFLAGS="$xorg_testset_save_CFLAGS" 8093fi 8094 8095if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8098 fi 8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8103/* end confdefs.h. */ 8104int i; 8105_ACEOF 8106if ac_fn_c_try_compile "$LINENO"; then : 8107 xorg_testset_unused_command_line_argument=yes 8108else 8109 xorg_testset_unused_command_line_argument=no 8110fi 8111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8113$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8114 CFLAGS="$xorg_testset_save_CFLAGS" 8115fi 8116 8117found="no" 8118 8119 if test $found = "no" ; then 8120 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8122 fi 8123 8124 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8126 fi 8127 8128 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 8129 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 8131$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8133/* end confdefs.h. */ 8134int i; 8135int 8136main () 8137{ 8138 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143if ac_fn_c_try_link "$LINENO"; then : 8144 supported=yes 8145else 8146 supported=no 8147fi 8148rm -f core conftest.err conftest.$ac_objext \ 8149 conftest$ac_exeext conftest.$ac_ext 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8151$as_echo "$supported" >&6; } 8152 CFLAGS="$xorg_testset_save_CFLAGS" 8153 8154 if test "$supported" = "yes" ; then 8155 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 8156 found="yes" 8157 fi 8158 fi 8159 8160 8161 8162 8163 8164 8165 8166xorg_testset_save_CFLAGS="$CFLAGS" 8167 8168if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173/* end confdefs.h. */ 8174int i; 8175_ACEOF 8176if ac_fn_c_try_compile "$LINENO"; then : 8177 xorg_testset_unknown_warning_option=yes 8178else 8179 xorg_testset_unknown_warning_option=no 8180fi 8181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8183$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8184 CFLAGS="$xorg_testset_save_CFLAGS" 8185fi 8186 8187if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8190 fi 8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8195/* end confdefs.h. */ 8196int i; 8197_ACEOF 8198if ac_fn_c_try_compile "$LINENO"; then : 8199 xorg_testset_unused_command_line_argument=yes 8200else 8201 xorg_testset_unused_command_line_argument=no 8202fi 8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8205$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8206 CFLAGS="$xorg_testset_save_CFLAGS" 8207fi 8208 8209found="no" 8210 8211 if test $found = "no" ; then 8212 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8214 fi 8215 8216 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8218 fi 8219 8220 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 8221 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 8223$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225/* end confdefs.h. */ 8226int i; 8227int 8228main () 8229{ 8230 8231 ; 8232 return 0; 8233} 8234_ACEOF 8235if ac_fn_c_try_link "$LINENO"; then : 8236 supported=yes 8237else 8238 supported=no 8239fi 8240rm -f core conftest.err conftest.$ac_objext \ 8241 conftest$ac_exeext conftest.$ac_ext 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8243$as_echo "$supported" >&6; } 8244 CFLAGS="$xorg_testset_save_CFLAGS" 8245 8246 if test "$supported" = "yes" ; then 8247 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 8248 found="yes" 8249 fi 8250 fi 8251 8252 8253fi 8254 8255 8256 8257 8258 8259 8260CWARNFLAGS="$BASE_CFLAGS" 8261if test "x$GCC" = xyes ; then 8262 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 8263fi 8264 8265 8266 8267 8268 8269 8270# Check whether --enable-strict-compilation was given. 8271if test "${enable_strict_compilation+set}" = set; then : 8272 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 8273else 8274 STRICT_COMPILE=no 8275fi 8276 8277 8278STRICT_CFLAGS="" 8279 8280 8281 8282 8283 8284xorg_testset_save_CFLAGS="$CFLAGS" 8285 8286if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291/* end confdefs.h. */ 8292int i; 8293_ACEOF 8294if ac_fn_c_try_compile "$LINENO"; then : 8295 xorg_testset_unknown_warning_option=yes 8296else 8297 xorg_testset_unknown_warning_option=no 8298fi 8299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8301$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8302 CFLAGS="$xorg_testset_save_CFLAGS" 8303fi 8304 8305if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8308 fi 8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313/* end confdefs.h. */ 8314int i; 8315_ACEOF 8316if ac_fn_c_try_compile "$LINENO"; then : 8317 xorg_testset_unused_command_line_argument=yes 8318else 8319 xorg_testset_unused_command_line_argument=no 8320fi 8321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8323$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8324 CFLAGS="$xorg_testset_save_CFLAGS" 8325fi 8326 8327found="no" 8328 8329 if test $found = "no" ; then 8330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8332 fi 8333 8334 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8336 fi 8337 8338 CFLAGS="$CFLAGS -pedantic" 8339 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 8341$as_echo_n "checking if $CC supports -pedantic... " >&6; } 8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8343/* end confdefs.h. */ 8344int i; 8345int 8346main () 8347{ 8348 8349 ; 8350 return 0; 8351} 8352_ACEOF 8353if ac_fn_c_try_link "$LINENO"; then : 8354 supported=yes 8355else 8356 supported=no 8357fi 8358rm -f core conftest.err conftest.$ac_objext \ 8359 conftest$ac_exeext conftest.$ac_ext 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8361$as_echo "$supported" >&6; } 8362 CFLAGS="$xorg_testset_save_CFLAGS" 8363 8364 if test "$supported" = "yes" ; then 8365 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 8366 found="yes" 8367 fi 8368 fi 8369 8370 8371 8372 8373 8374 8375 8376xorg_testset_save_CFLAGS="$CFLAGS" 8377 8378if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384int i; 8385_ACEOF 8386if ac_fn_c_try_compile "$LINENO"; then : 8387 xorg_testset_unknown_warning_option=yes 8388else 8389 xorg_testset_unknown_warning_option=no 8390fi 8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8393$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8394 CFLAGS="$xorg_testset_save_CFLAGS" 8395fi 8396 8397if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8400 fi 8401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8405/* end confdefs.h. */ 8406int i; 8407_ACEOF 8408if ac_fn_c_try_compile "$LINENO"; then : 8409 xorg_testset_unused_command_line_argument=yes 8410else 8411 xorg_testset_unused_command_line_argument=no 8412fi 8413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8415$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8416 CFLAGS="$xorg_testset_save_CFLAGS" 8417fi 8418 8419found="no" 8420 8421 if test $found = "no" ; then 8422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8424 fi 8425 8426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8428 fi 8429 8430 CFLAGS="$CFLAGS -Werror" 8431 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 8433$as_echo_n "checking if $CC supports -Werror... " >&6; } 8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8435/* end confdefs.h. */ 8436int i; 8437int 8438main () 8439{ 8440 8441 ; 8442 return 0; 8443} 8444_ACEOF 8445if ac_fn_c_try_link "$LINENO"; then : 8446 supported=yes 8447else 8448 supported=no 8449fi 8450rm -f core conftest.err conftest.$ac_objext \ 8451 conftest$ac_exeext conftest.$ac_ext 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8453$as_echo "$supported" >&6; } 8454 CFLAGS="$xorg_testset_save_CFLAGS" 8455 8456 if test "$supported" = "yes" ; then 8457 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 8458 found="yes" 8459 fi 8460 fi 8461 8462 if test $found = "no" ; then 8463 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 8467 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8469 fi 8470 8471 CFLAGS="$CFLAGS -errwarn" 8472 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 8474$as_echo_n "checking if $CC supports -errwarn... " >&6; } 8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476/* end confdefs.h. */ 8477int i; 8478int 8479main () 8480{ 8481 8482 ; 8483 return 0; 8484} 8485_ACEOF 8486if ac_fn_c_try_link "$LINENO"; then : 8487 supported=yes 8488else 8489 supported=no 8490fi 8491rm -f core conftest.err conftest.$ac_objext \ 8492 conftest$ac_exeext conftest.$ac_ext 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8494$as_echo "$supported" >&6; } 8495 CFLAGS="$xorg_testset_save_CFLAGS" 8496 8497 if test "$supported" = "yes" ; then 8498 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 8499 found="yes" 8500 fi 8501 fi 8502 8503 8504 8505# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 8506# activate it with -Werror, so we add it here explicitly. 8507 8508 8509 8510 8511 8512xorg_testset_save_CFLAGS="$CFLAGS" 8513 8514if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8517$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8519/* end confdefs.h. */ 8520int i; 8521_ACEOF 8522if ac_fn_c_try_compile "$LINENO"; then : 8523 xorg_testset_unknown_warning_option=yes 8524else 8525 xorg_testset_unknown_warning_option=no 8526fi 8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5 8529$as_echo "$xorg_testset_unknown_warning_option" >&6; } 8530 CFLAGS="$xorg_testset_save_CFLAGS" 8531fi 8532 8533if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8534 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8536 fi 8537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541/* end confdefs.h. */ 8542int i; 8543_ACEOF 8544if ac_fn_c_try_compile "$LINENO"; then : 8545 xorg_testset_unused_command_line_argument=yes 8546else 8547 xorg_testset_unused_command_line_argument=no 8548fi 8549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5 8551$as_echo "$xorg_testset_unused_command_line_argument" >&6; } 8552 CFLAGS="$xorg_testset_save_CFLAGS" 8553fi 8554 8555found="no" 8556 8557 if test $found = "no" ; then 8558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8560 fi 8561 8562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8564 fi 8565 8566 CFLAGS="$CFLAGS -Werror=attributes" 8567 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 8569$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571/* end confdefs.h. */ 8572int i; 8573int 8574main () 8575{ 8576 8577 ; 8578 return 0; 8579} 8580_ACEOF 8581if ac_fn_c_try_link "$LINENO"; then : 8582 supported=yes 8583else 8584 supported=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext \ 8587 conftest$ac_exeext conftest.$ac_ext 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8589$as_echo "$supported" >&6; } 8590 CFLAGS="$xorg_testset_save_CFLAGS" 8591 8592 if test "$supported" = "yes" ; then 8593 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 8594 found="yes" 8595 fi 8596 fi 8597 8598 8599 8600if test "x$STRICT_COMPILE" = "xyes"; then 8601 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 8602 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 8603fi 8604 8605 8606 8607 8608 8609 8610cat >>confdefs.h <<_ACEOF 8611#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 8612_ACEOF 8613 8614 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 8615 if test "x$PVM" = "x"; then 8616 PVM="0" 8617 fi 8618 8619cat >>confdefs.h <<_ACEOF 8620#define PACKAGE_VERSION_MINOR $PVM 8621_ACEOF 8622 8623 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 8624 if test "x$PVP" = "x"; then 8625 PVP="0" 8626 fi 8627 8628cat >>confdefs.h <<_ACEOF 8629#define PACKAGE_VERSION_PATCHLEVEL $PVP 8630_ACEOF 8631 8632 8633 8634CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 8635mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 8636|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 8637echo 'git directory not found: installing possibly empty changelog.' >&2)" 8638 8639 8640 8641 8642macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 8643INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 8644mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 8645|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 8646echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 8647 8648 8649 8650 8651 8652 8653if test x$APP_MAN_SUFFIX = x ; then 8654 APP_MAN_SUFFIX=1 8655fi 8656if test x$APP_MAN_DIR = x ; then 8657 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 8658fi 8659 8660if test x$LIB_MAN_SUFFIX = x ; then 8661 LIB_MAN_SUFFIX=3 8662fi 8663if test x$LIB_MAN_DIR = x ; then 8664 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 8665fi 8666 8667if test x$FILE_MAN_SUFFIX = x ; then 8668 case $host_os in 8669 solaris*) FILE_MAN_SUFFIX=4 ;; 8670 *) FILE_MAN_SUFFIX=5 ;; 8671 esac 8672fi 8673if test x$FILE_MAN_DIR = x ; then 8674 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 8675fi 8676 8677if test x$MISC_MAN_SUFFIX = x ; then 8678 case $host_os in 8679 solaris*) MISC_MAN_SUFFIX=5 ;; 8680 *) MISC_MAN_SUFFIX=7 ;; 8681 esac 8682fi 8683if test x$MISC_MAN_DIR = x ; then 8684 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 8685fi 8686 8687if test x$DRIVER_MAN_SUFFIX = x ; then 8688 case $host_os in 8689 solaris*) DRIVER_MAN_SUFFIX=7 ;; 8690 *) DRIVER_MAN_SUFFIX=4 ;; 8691 esac 8692fi 8693if test x$DRIVER_MAN_DIR = x ; then 8694 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 8695fi 8696 8697if test x$ADMIN_MAN_SUFFIX = x ; then 8698 case $host_os in 8699 solaris*) ADMIN_MAN_SUFFIX=1m ;; 8700 *) ADMIN_MAN_SUFFIX=8 ;; 8701 esac 8702fi 8703if test x$ADMIN_MAN_DIR = x ; then 8704 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 8705fi 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721XORG_MAN_PAGE="X Version 11" 8722 8723MAN_SUBSTS="\ 8724 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 8725 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 8726 -e 's|__xservername__|Xorg|g' \ 8727 -e 's|__xconfigfile__|xorg.conf|g' \ 8728 -e 's|__projectroot__|\$(prefix)|g' \ 8729 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 8730 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 8731 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 8732 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 8733 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 8734 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 8735 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 8736 8737 8738 8739# Check whether --enable-silent-rules was given. 8740if test "${enable_silent_rules+set}" = set; then : 8741 enableval=$enable_silent_rules; 8742fi 8743 8744case $enable_silent_rules in # ((( 8745 yes) AM_DEFAULT_VERBOSITY=0;; 8746 no) AM_DEFAULT_VERBOSITY=1;; 8747 *) AM_DEFAULT_VERBOSITY=0;; 8748esac 8749am_make=${MAKE-make} 8750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 8751$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 8752if ${am_cv_make_support_nested_variables+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 if $as_echo 'TRUE=$(BAR$(V)) 8756BAR0=false 8757BAR1=true 8758V=1 8759am__doit: 8760 @$(TRUE) 8761.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 8762 am_cv_make_support_nested_variables=yes 8763else 8764 am_cv_make_support_nested_variables=no 8765fi 8766fi 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 8768$as_echo "$am_cv_make_support_nested_variables" >&6; } 8769if test $am_cv_make_support_nested_variables = yes; then 8770 AM_V='$(V)' 8771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 8772else 8773 AM_V=$AM_DEFAULT_VERBOSITY 8774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 8775fi 8776AM_BACKSLASH='\' 8777 8778 8779 8780ac_aux_dir= 8781for ac_dir in . "$srcdir"/.; do 8782 if test -f "$ac_dir/install-sh"; then 8783 ac_aux_dir=$ac_dir 8784 ac_install_sh="$ac_aux_dir/install-sh -c" 8785 break 8786 elif test -f "$ac_dir/install.sh"; then 8787 ac_aux_dir=$ac_dir 8788 ac_install_sh="$ac_aux_dir/install.sh -c" 8789 break 8790 elif test -f "$ac_dir/shtool"; then 8791 ac_aux_dir=$ac_dir 8792 ac_install_sh="$ac_aux_dir/shtool install -c" 8793 break 8794 fi 8795done 8796if test -z "$ac_aux_dir"; then 8797 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 8798fi 8799 8800# These three variables are undocumented and unsupported, 8801# and are intended to be withdrawn in a future Autoconf release. 8802# They can cause serious problems if a builder's source tree is in a directory 8803# whose full name contains unusual characters. 8804ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 8805ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 8806ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 8807 8808 8809 8810# Initialize Automake 8811am__api_version='1.12' 8812 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 8814$as_echo_n "checking whether build environment is sane... " >&6; } 8815# Reject unsafe characters in $srcdir or the absolute working directory 8816# name. Accept space and tab only in the latter. 8817am_lf=' 8818' 8819case `pwd` in 8820 *[\\\"\#\$\&\'\`$am_lf]*) 8821 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 8822esac 8823case $srcdir in 8824 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 8825 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 8826esac 8827 8828# Do 'set' in a subshell so we don't clobber the current shell's 8829# arguments. Must try -L first in case configure is actually a 8830# symlink; some systems play weird games with the mod time of symlinks 8831# (eg FreeBSD returns the mod time of the symlink's containing 8832# directory). 8833if ( 8834 am_has_slept=no 8835 for am_try in 1 2; do 8836 echo "timestamp, slept: $am_has_slept" > conftest.file 8837 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 8838 if test "$*" = "X"; then 8839 # -L didn't work. 8840 set X `ls -t "$srcdir/configure" conftest.file` 8841 fi 8842 if test "$*" != "X $srcdir/configure conftest.file" \ 8843 && test "$*" != "X conftest.file $srcdir/configure"; then 8844 8845 # If neither matched, then we have a broken ls. This can happen 8846 # if, for instance, CONFIG_SHELL is bash and it inherits a 8847 # broken ls alias from the environment. This has actually 8848 # happened. Such a system could not be considered "sane". 8849 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 8850 alias in your environment" "$LINENO" 5 8851 fi 8852 if test "$2" = conftest.file || test $am_try -eq 2; then 8853 break 8854 fi 8855 # Just in case. 8856 sleep 1 8857 am_has_slept=yes 8858 done 8859 test "$2" = conftest.file 8860 ) 8861then 8862 # Ok. 8863 : 8864else 8865 as_fn_error $? "newly created file is older than distributed files! 8866Check your system clock" "$LINENO" 5 8867fi 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8869$as_echo "yes" >&6; } 8870# If we didn't sleep, we still need to ensure time stamps of config.status and 8871# generated files are strictly newer. 8872am_sleep_pid= 8873if grep 'slept: no' conftest.file >/dev/null 2>&1; then 8874 ( sleep 1 ) & 8875 am_sleep_pid=$! 8876fi 8877 8878rm -f conftest.file 8879 8880test "$program_prefix" != NONE && 8881 program_transform_name="s&^&$program_prefix&;$program_transform_name" 8882# Use a double $ so make ignores it. 8883test "$program_suffix" != NONE && 8884 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 8885# Double any \ or $. 8886# By default was `s,x,x', remove it if useless. 8887ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 8888program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 8889 8890# expand $ac_aux_dir to an absolute path 8891am_aux_dir=`cd $ac_aux_dir && pwd` 8892 8893if test x"${MISSING+set}" != xset; then 8894 case $am_aux_dir in 8895 *\ * | *\ *) 8896 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 8897 *) 8898 MISSING="\${SHELL} $am_aux_dir/missing" ;; 8899 esac 8900fi 8901# Use eval to expand $SHELL 8902if eval "$MISSING --run true"; then 8903 am_missing_run="$MISSING --run " 8904else 8905 am_missing_run= 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 8907$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 8908fi 8909 8910if test x"${install_sh}" != xset; then 8911 case $am_aux_dir in 8912 *\ * | *\ *) 8913 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 8914 *) 8915 install_sh="\${SHELL} $am_aux_dir/install-sh" 8916 esac 8917fi 8918 8919# Installed binaries are usually stripped using 'strip' when the user 8920# run "make install-strip". However 'strip' might not be the right 8921# tool to use in cross-compilation environments, therefore Automake 8922# will honor the 'STRIP' environment variable to overrule this program. 8923if test "$cross_compiling" != no; then 8924 if test -n "$ac_tool_prefix"; then 8925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8926set dummy ${ac_tool_prefix}strip; ac_word=$2 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8928$as_echo_n "checking for $ac_word... " >&6; } 8929if ${ac_cv_prog_STRIP+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 if test -n "$STRIP"; then 8933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8934else 8935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8936for as_dir in $PATH 8937do 8938 IFS=$as_save_IFS 8939 test -z "$as_dir" && as_dir=. 8940 for ac_exec_ext in '' $ac_executable_extensions; do 8941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8942 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8944 break 2 8945 fi 8946done 8947 done 8948IFS=$as_save_IFS 8949 8950fi 8951fi 8952STRIP=$ac_cv_prog_STRIP 8953if test -n "$STRIP"; then 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8955$as_echo "$STRIP" >&6; } 8956else 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8958$as_echo "no" >&6; } 8959fi 8960 8961 8962fi 8963if test -z "$ac_cv_prog_STRIP"; then 8964 ac_ct_STRIP=$STRIP 8965 # Extract the first word of "strip", so it can be a program name with args. 8966set dummy strip; ac_word=$2 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8968$as_echo_n "checking for $ac_word... " >&6; } 8969if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 if test -n "$ac_ct_STRIP"; then 8973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8974else 8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8976for as_dir in $PATH 8977do 8978 IFS=$as_save_IFS 8979 test -z "$as_dir" && as_dir=. 8980 for ac_exec_ext in '' $ac_executable_extensions; do 8981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8982 ac_cv_prog_ac_ct_STRIP="strip" 8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8984 break 2 8985 fi 8986done 8987 done 8988IFS=$as_save_IFS 8989 8990fi 8991fi 8992ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8993if test -n "$ac_ct_STRIP"; then 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8995$as_echo "$ac_ct_STRIP" >&6; } 8996else 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8998$as_echo "no" >&6; } 8999fi 9000 9001 if test "x$ac_ct_STRIP" = x; then 9002 STRIP=":" 9003 else 9004 case $cross_compiling:$ac_tool_warned in 9005yes:) 9006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9008ac_tool_warned=yes ;; 9009esac 9010 STRIP=$ac_ct_STRIP 9011 fi 9012else 9013 STRIP="$ac_cv_prog_STRIP" 9014fi 9015 9016fi 9017INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 9018 9019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 9020$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 9021if test -z "$MKDIR_P"; then 9022 if ${ac_cv_path_mkdir+:} false; then : 9023 $as_echo_n "(cached) " >&6 9024else 9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9026for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 9027do 9028 IFS=$as_save_IFS 9029 test -z "$as_dir" && as_dir=. 9030 for ac_prog in mkdir gmkdir; do 9031 for ac_exec_ext in '' $ac_executable_extensions; do 9032 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 9033 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 9034 'mkdir (GNU coreutils) '* | \ 9035 'mkdir (coreutils) '* | \ 9036 'mkdir (fileutils) '4.1*) 9037 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 9038 break 3;; 9039 esac 9040 done 9041 done 9042 done 9043IFS=$as_save_IFS 9044 9045fi 9046 9047 test -d ./--version && rmdir ./--version 9048 if test "${ac_cv_path_mkdir+set}" = set; then 9049 MKDIR_P="$ac_cv_path_mkdir -p" 9050 else 9051 # As a last resort, use the slow shell script. Don't cache a 9052 # value for MKDIR_P within a source directory, because that will 9053 # break other packages using the cache if that directory is 9054 # removed, or if the value is a relative name. 9055 MKDIR_P="$ac_install_sh -d" 9056 fi 9057fi 9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 9059$as_echo "$MKDIR_P" >&6; } 9060 9061for ac_prog in gawk mawk nawk awk 9062do 9063 # Extract the first word of "$ac_prog", so it can be a program name with args. 9064set dummy $ac_prog; ac_word=$2 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9066$as_echo_n "checking for $ac_word... " >&6; } 9067if ${ac_cv_prog_AWK+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 if test -n "$AWK"; then 9071 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9072else 9073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9074for as_dir in $PATH 9075do 9076 IFS=$as_save_IFS 9077 test -z "$as_dir" && as_dir=. 9078 for ac_exec_ext in '' $ac_executable_extensions; do 9079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9080 ac_cv_prog_AWK="$ac_prog" 9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9082 break 2 9083 fi 9084done 9085 done 9086IFS=$as_save_IFS 9087 9088fi 9089fi 9090AWK=$ac_cv_prog_AWK 9091if test -n "$AWK"; then 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9093$as_echo "$AWK" >&6; } 9094else 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9096$as_echo "no" >&6; } 9097fi 9098 9099 9100 test -n "$AWK" && break 9101done 9102 9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9104$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9105set x ${MAKE-make} 9106ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9107if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 9108 $as_echo_n "(cached) " >&6 9109else 9110 cat >conftest.make <<\_ACEOF 9111SHELL = /bin/sh 9112all: 9113 @echo '@@@%%%=$(MAKE)=@@@%%%' 9114_ACEOF 9115# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 9116case `${MAKE-make} -f conftest.make 2>/dev/null` in 9117 *@@@%%%=?*=@@@%%%*) 9118 eval ac_cv_prog_make_${ac_make}_set=yes;; 9119 *) 9120 eval ac_cv_prog_make_${ac_make}_set=no;; 9121esac 9122rm -f conftest.make 9123fi 9124if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9126$as_echo "yes" >&6; } 9127 SET_MAKE= 9128else 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9130$as_echo "no" >&6; } 9131 SET_MAKE="MAKE=${MAKE-make}" 9132fi 9133 9134rm -rf .tst 2>/dev/null 9135mkdir .tst 2>/dev/null 9136if test -d .tst; then 9137 am__leading_dot=. 9138else 9139 am__leading_dot=_ 9140fi 9141rmdir .tst 2>/dev/null 9142 9143DEPDIR="${am__leading_dot}deps" 9144 9145ac_config_commands="$ac_config_commands depfiles" 9146 9147 9148am_make=${MAKE-make} 9149cat > confinc << 'END' 9150am__doit: 9151 @echo this is the am__doit target 9152.PHONY: am__doit 9153END 9154# If we don't find an include directive, just comment out the code. 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 9156$as_echo_n "checking for style of include used by $am_make... " >&6; } 9157am__include="#" 9158am__quote= 9159_am_result=none 9160# First try GNU make style include. 9161echo "include confinc" > confmf 9162# Ignore all kinds of additional output from 'make'. 9163case `$am_make -s -f confmf 2> /dev/null` in #( 9164*the\ am__doit\ target*) 9165 am__include=include 9166 am__quote= 9167 _am_result=GNU 9168 ;; 9169esac 9170# Now try BSD make style include. 9171if test "$am__include" = "#"; then 9172 echo '.include "confinc"' > confmf 9173 case `$am_make -s -f confmf 2> /dev/null` in #( 9174 *the\ am__doit\ target*) 9175 am__include=.include 9176 am__quote="\"" 9177 _am_result=BSD 9178 ;; 9179 esac 9180fi 9181 9182 9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 9184$as_echo "$_am_result" >&6; } 9185rm -f confinc confmf 9186 9187# Check whether --enable-dependency-tracking was given. 9188if test "${enable_dependency_tracking+set}" = set; then : 9189 enableval=$enable_dependency_tracking; 9190fi 9191 9192if test "x$enable_dependency_tracking" != xno; then 9193 am_depcomp="$ac_aux_dir/depcomp" 9194 AMDEPBACKSLASH='\' 9195 am__nodep='_no' 9196fi 9197 if test "x$enable_dependency_tracking" != xno; then 9198 AMDEP_TRUE= 9199 AMDEP_FALSE='#' 9200else 9201 AMDEP_TRUE='#' 9202 AMDEP_FALSE= 9203fi 9204 9205 9206if test "`cd $srcdir && pwd`" != "`pwd`"; then 9207 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 9208 # is not polluted with repeated "-I." 9209 am__isrc=' -I$(srcdir)' 9210 # test to see if srcdir already configured 9211 if test -f $srcdir/config.status; then 9212 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 9213 fi 9214fi 9215 9216# test whether we have cygpath 9217if test -z "$CYGPATH_W"; then 9218 if (cygpath --version) >/dev/null 2>/dev/null; then 9219 CYGPATH_W='cygpath -w' 9220 else 9221 CYGPATH_W=echo 9222 fi 9223fi 9224 9225 9226# Define the identity of the package. 9227 PACKAGE='xf86-video-scfb' 9228 VERSION='0.0.5' 9229 9230 9231cat >>confdefs.h <<_ACEOF 9232#define PACKAGE "$PACKAGE" 9233_ACEOF 9234 9235 9236cat >>confdefs.h <<_ACEOF 9237#define VERSION "$VERSION" 9238_ACEOF 9239 9240# Some tools Automake needs. 9241 9242ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 9243 9244 9245AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 9246 9247 9248AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 9249 9250 9251AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 9252 9253 9254MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 9255 9256# For better backward compatibility. To be removed once Automake 1.9.x 9257# dies out for good. For more background, see: 9258# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 9259# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 9260mkdir_p='$(MKDIR_P)' 9261 9262# We need awk for the "check" target. The system "awk" is bad on 9263# some platforms. 9264# Always define AMTAR for backward compatibility. Yes, it's still used 9265# in the wild :-( We should find a proper way to deprecate it ... 9266AMTAR='$${TAR-tar}' 9267 9268am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 9269 9270 9271 9272 9273depcc="$CC" am_compiler_list= 9274 9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 9276$as_echo_n "checking dependency style of $depcc... " >&6; } 9277if ${am_cv_CC_dependencies_compiler_type+:} false; then : 9278 $as_echo_n "(cached) " >&6 9279else 9280 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 9281 # We make a subdir and do the tests there. Otherwise we can end up 9282 # making bogus files that we don't know about and never remove. For 9283 # instance it was reported that on HP-UX the gcc test will end up 9284 # making a dummy file named 'D' -- because '-MD' means "put the output 9285 # in D". 9286 rm -rf conftest.dir 9287 mkdir conftest.dir 9288 # Copy depcomp to subdir because otherwise we won't find it if we're 9289 # using a relative directory. 9290 cp "$am_depcomp" conftest.dir 9291 cd conftest.dir 9292 # We will build objects and dependencies in a subdirectory because 9293 # it helps to detect inapplicable dependency modes. For instance 9294 # both Tru64's cc and ICC support -MD to output dependencies as a 9295 # side effect of compilation, but ICC will put the dependencies in 9296 # the current directory while Tru64 will put them in the object 9297 # directory. 9298 mkdir sub 9299 9300 am_cv_CC_dependencies_compiler_type=none 9301 if test "$am_compiler_list" = ""; then 9302 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 9303 fi 9304 am__universal=false 9305 case " $depcc " in #( 9306 *\ -arch\ *\ -arch\ *) am__universal=true ;; 9307 esac 9308 9309 for depmode in $am_compiler_list; do 9310 # Setup a source with many dependencies, because some compilers 9311 # like to wrap large dependency lists on column 80 (with \), and 9312 # we should not choose a depcomp mode which is confused by this. 9313 # 9314 # We need to recreate these files for each test, as the compiler may 9315 # overwrite some of them when testing with obscure command lines. 9316 # This happens at least with the AIX C compiler. 9317 : > sub/conftest.c 9318 for i in 1 2 3 4 5 6; do 9319 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9320 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 9321 # Solaris 10 /bin/sh. 9322 echo '/* dummy */' > sub/conftst$i.h 9323 done 9324 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 9325 9326 # We check with '-c' and '-o' for the sake of the "dashmstdout" 9327 # mode. It turns out that the SunPro C++ compiler does not properly 9328 # handle '-M -o', and we need to detect this. Also, some Intel 9329 # versions had trouble with output in subdirs. 9330 am__obj=sub/conftest.${OBJEXT-o} 9331 am__minus_obj="-o $am__obj" 9332 case $depmode in 9333 gcc) 9334 # This depmode causes a compiler race in universal mode. 9335 test "$am__universal" = false || continue 9336 ;; 9337 nosideeffect) 9338 # After this tag, mechanisms are not by side-effect, so they'll 9339 # only be used when explicitly requested. 9340 if test "x$enable_dependency_tracking" = xyes; then 9341 continue 9342 else 9343 break 9344 fi 9345 ;; 9346 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 9347 # This compiler won't grok '-c -o', but also, the minuso test has 9348 # not run yet. These depmodes are late enough in the game, and 9349 # so weak that their functioning should not be impacted. 9350 am__obj=conftest.${OBJEXT-o} 9351 am__minus_obj= 9352 ;; 9353 none) break ;; 9354 esac 9355 if depmode=$depmode \ 9356 source=sub/conftest.c object=$am__obj \ 9357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9358 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 9359 >/dev/null 2>conftest.err && 9360 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 9361 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 9362 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 9363 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 9364 # icc doesn't choke on unknown options, it will just issue warnings 9365 # or remarks (even with -Werror). So we grep stderr for any message 9366 # that says an option was ignored or not supported. 9367 # When given -MP, icc 7.0 and 7.1 complain thusly: 9368 # icc: Command line warning: ignoring option '-M'; no argument required 9369 # The diagnosis changed in icc 8.0: 9370 # icc: Command line remark: option '-MP' not supported 9371 if (grep 'ignoring option' conftest.err || 9372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9373 am_cv_CC_dependencies_compiler_type=$depmode 9374 break 9375 fi 9376 fi 9377 done 9378 9379 cd .. 9380 rm -rf conftest.dir 9381else 9382 am_cv_CC_dependencies_compiler_type=none 9383fi 9384 9385fi 9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 9387$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 9388CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 9389 9390 if 9391 test "x$enable_dependency_tracking" != xno \ 9392 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 9393 am__fastdepCC_TRUE= 9394 am__fastdepCC_FALSE='#' 9395else 9396 am__fastdepCC_TRUE='#' 9397 am__fastdepCC_FALSE= 9398fi 9399 9400 9401 9402 9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 9404$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 9405 # Check whether --enable-maintainer-mode was given. 9406if test "${enable_maintainer_mode+set}" = set; then : 9407 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 9408else 9409 USE_MAINTAINER_MODE=no 9410fi 9411 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 9413$as_echo "$USE_MAINTAINER_MODE" >&6; } 9414 if test $USE_MAINTAINER_MODE = yes; then 9415 MAINTAINER_MODE_TRUE= 9416 MAINTAINER_MODE_FALSE='#' 9417else 9418 MAINTAINER_MODE_TRUE='#' 9419 MAINTAINER_MODE_FALSE= 9420fi 9421 9422 MAINT=$MAINTAINER_MODE_TRUE 9423 9424 9425 9426# Initialize libtool 9427# Check whether --enable-static was given. 9428if test "${enable_static+set}" = set; then : 9429 enableval=$enable_static; p=${PACKAGE-default} 9430 case $enableval in 9431 yes) enable_static=yes ;; 9432 no) enable_static=no ;; 9433 *) 9434 enable_static=no 9435 # Look at the argument we got. We use all the common list separators. 9436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9437 for pkg in $enableval; do 9438 IFS="$lt_save_ifs" 9439 if test "X$pkg" = "X$p"; then 9440 enable_static=yes 9441 fi 9442 done 9443 IFS="$lt_save_ifs" 9444 ;; 9445 esac 9446else 9447 enable_static=no 9448fi 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458case `pwd` in 9459 *\ * | *\ *) 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 9461$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 9462esac 9463 9464 9465 9466macro_version='2.4.2' 9467macro_revision='1.3337' 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481ltmain="$ac_aux_dir/ltmain.sh" 9482 9483# Backslashify metacharacters that are still active within 9484# double-quoted strings. 9485sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 9486 9487# Same as above, but do not quote variable references. 9488double_quote_subst='s/\(["`\\]\)/\\\1/g' 9489 9490# Sed substitution to delay expansion of an escaped shell variable in a 9491# double_quote_subst'ed string. 9492delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9493 9494# Sed substitution to delay expansion of an escaped single quote. 9495delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 9496 9497# Sed substitution to avoid accidental globbing in evaled expressions 9498no_glob_subst='s/\*/\\\*/g' 9499 9500ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9501ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 9502ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 9503 9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 9505$as_echo_n "checking how to print strings... " >&6; } 9506# Test print first, because it will be a builtin if present. 9507if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 9508 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 9509 ECHO='print -r --' 9510elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 9511 ECHO='printf %s\n' 9512else 9513 # Use this function as a fallback that always works. 9514 func_fallback_echo () 9515 { 9516 eval 'cat <<_LTECHO_EOF 9517$1 9518_LTECHO_EOF' 9519 } 9520 ECHO='func_fallback_echo' 9521fi 9522 9523# func_echo_all arg... 9524# Invoke $ECHO with all args, space-separated. 9525func_echo_all () 9526{ 9527 $ECHO "" 9528} 9529 9530case "$ECHO" in 9531 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 9532$as_echo "printf" >&6; } ;; 9533 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 9534$as_echo "print -r" >&6; } ;; 9535 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 9536$as_echo "cat" >&6; } ;; 9537esac 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 9553$as_echo_n "checking for a sed that does not truncate output... " >&6; } 9554if ${ac_cv_path_SED+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 9558 for ac_i in 1 2 3 4 5 6 7; do 9559 ac_script="$ac_script$as_nl$ac_script" 9560 done 9561 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 9562 { ac_script=; unset ac_script;} 9563 if test -z "$SED"; then 9564 ac_path_SED_found=false 9565 # Loop through the user's path and test for each of PROGNAME-LIST 9566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9567for as_dir in $PATH 9568do 9569 IFS=$as_save_IFS 9570 test -z "$as_dir" && as_dir=. 9571 for ac_prog in sed gsed; do 9572 for ac_exec_ext in '' $ac_executable_extensions; do 9573 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 9574 as_fn_executable_p "$ac_path_SED" || continue 9575# Check for GNU ac_path_SED and select it if it is found. 9576 # Check for GNU $ac_path_SED 9577case `"$ac_path_SED" --version 2>&1` in 9578*GNU*) 9579 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 9580*) 9581 ac_count=0 9582 $as_echo_n 0123456789 >"conftest.in" 9583 while : 9584 do 9585 cat "conftest.in" "conftest.in" >"conftest.tmp" 9586 mv "conftest.tmp" "conftest.in" 9587 cp "conftest.in" "conftest.nl" 9588 $as_echo '' >> "conftest.nl" 9589 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 9590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9591 as_fn_arith $ac_count + 1 && ac_count=$as_val 9592 if test $ac_count -gt ${ac_path_SED_max-0}; then 9593 # Best one so far, save it but keep looking for a better one 9594 ac_cv_path_SED="$ac_path_SED" 9595 ac_path_SED_max=$ac_count 9596 fi 9597 # 10*(2^10) chars as input seems more than enough 9598 test $ac_count -gt 10 && break 9599 done 9600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9601esac 9602 9603 $ac_path_SED_found && break 3 9604 done 9605 done 9606 done 9607IFS=$as_save_IFS 9608 if test -z "$ac_cv_path_SED"; then 9609 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 9610 fi 9611else 9612 ac_cv_path_SED=$SED 9613fi 9614 9615fi 9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 9617$as_echo "$ac_cv_path_SED" >&6; } 9618 SED="$ac_cv_path_SED" 9619 rm -f conftest.sed 9620 9621test -z "$SED" && SED=sed 9622Xsed="$SED -e 1s/^X//" 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 9635$as_echo_n "checking for fgrep... " >&6; } 9636if ${ac_cv_path_FGREP+:} false; then : 9637 $as_echo_n "(cached) " >&6 9638else 9639 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 9640 then ac_cv_path_FGREP="$GREP -F" 9641 else 9642 if test -z "$FGREP"; then 9643 ac_path_FGREP_found=false 9644 # Loop through the user's path and test for each of PROGNAME-LIST 9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9646for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9647do 9648 IFS=$as_save_IFS 9649 test -z "$as_dir" && as_dir=. 9650 for ac_prog in fgrep; do 9651 for ac_exec_ext in '' $ac_executable_extensions; do 9652 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 9653 as_fn_executable_p "$ac_path_FGREP" || continue 9654# Check for GNU ac_path_FGREP and select it if it is found. 9655 # Check for GNU $ac_path_FGREP 9656case `"$ac_path_FGREP" --version 2>&1` in 9657*GNU*) 9658 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 9659*) 9660 ac_count=0 9661 $as_echo_n 0123456789 >"conftest.in" 9662 while : 9663 do 9664 cat "conftest.in" "conftest.in" >"conftest.tmp" 9665 mv "conftest.tmp" "conftest.in" 9666 cp "conftest.in" "conftest.nl" 9667 $as_echo 'FGREP' >> "conftest.nl" 9668 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 9669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9670 as_fn_arith $ac_count + 1 && ac_count=$as_val 9671 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 9672 # Best one so far, save it but keep looking for a better one 9673 ac_cv_path_FGREP="$ac_path_FGREP" 9674 ac_path_FGREP_max=$ac_count 9675 fi 9676 # 10*(2^10) chars as input seems more than enough 9677 test $ac_count -gt 10 && break 9678 done 9679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9680esac 9681 9682 $ac_path_FGREP_found && break 3 9683 done 9684 done 9685 done 9686IFS=$as_save_IFS 9687 if test -z "$ac_cv_path_FGREP"; then 9688 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9689 fi 9690else 9691 ac_cv_path_FGREP=$FGREP 9692fi 9693 9694 fi 9695fi 9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 9697$as_echo "$ac_cv_path_FGREP" >&6; } 9698 FGREP="$ac_cv_path_FGREP" 9699 9700 9701test -z "$GREP" && GREP=grep 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721# Check whether --with-gnu-ld was given. 9722if test "${with_gnu_ld+set}" = set; then : 9723 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 9724else 9725 with_gnu_ld=no 9726fi 9727 9728ac_prog=ld 9729if test "$GCC" = yes; then 9730 # Check if gcc -print-prog-name=ld gives a path. 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9732$as_echo_n "checking for ld used by $CC... " >&6; } 9733 case $host in 9734 *-*-mingw*) 9735 # gcc leaves a trailing carriage return which upsets mingw 9736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9737 *) 9738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9739 esac 9740 case $ac_prog in 9741 # Accept absolute paths. 9742 [\\/]* | ?:[\\/]*) 9743 re_direlt='/[^/][^/]*/\.\./' 9744 # Canonicalize the pathname of ld 9745 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9746 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9747 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9748 done 9749 test -z "$LD" && LD="$ac_prog" 9750 ;; 9751 "") 9752 # If it fails, then pretend we aren't using GCC. 9753 ac_prog=ld 9754 ;; 9755 *) 9756 # If it is relative, then search for the first ld in PATH. 9757 with_gnu_ld=unknown 9758 ;; 9759 esac 9760elif test "$with_gnu_ld" = yes; then 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9762$as_echo_n "checking for GNU ld... " >&6; } 9763else 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9765$as_echo_n "checking for non-GNU ld... " >&6; } 9766fi 9767if ${lt_cv_path_LD+:} false; then : 9768 $as_echo_n "(cached) " >&6 9769else 9770 if test -z "$LD"; then 9771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9772 for ac_dir in $PATH; do 9773 IFS="$lt_save_ifs" 9774 test -z "$ac_dir" && ac_dir=. 9775 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9776 lt_cv_path_LD="$ac_dir/$ac_prog" 9777 # Check to see if the program is GNU ld. I'd rather use --version, 9778 # but apparently some variants of GNU ld only accept -v. 9779 # Break only if it was the GNU/non-GNU ld that we prefer. 9780 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9781 *GNU* | *'with BFD'*) 9782 test "$with_gnu_ld" != no && break 9783 ;; 9784 *) 9785 test "$with_gnu_ld" != yes && break 9786 ;; 9787 esac 9788 fi 9789 done 9790 IFS="$lt_save_ifs" 9791else 9792 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9793fi 9794fi 9795 9796LD="$lt_cv_path_LD" 9797if test -n "$LD"; then 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9799$as_echo "$LD" >&6; } 9800else 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9802$as_echo "no" >&6; } 9803fi 9804test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9806$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 9807if ${lt_cv_prog_gnu_ld+:} false; then : 9808 $as_echo_n "(cached) " >&6 9809else 9810 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9811case `$LD -v 2>&1 </dev/null` in 9812*GNU* | *'with BFD'*) 9813 lt_cv_prog_gnu_ld=yes 9814 ;; 9815*) 9816 lt_cv_prog_gnu_ld=no 9817 ;; 9818esac 9819fi 9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9821$as_echo "$lt_cv_prog_gnu_ld" >&6; } 9822with_gnu_ld=$lt_cv_prog_gnu_ld 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9833$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9834if ${lt_cv_path_NM+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836else 9837 if test -n "$NM"; then 9838 # Let the user override the test. 9839 lt_cv_path_NM="$NM" 9840else 9841 lt_nm_to_check="${ac_tool_prefix}nm" 9842 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9843 lt_nm_to_check="$lt_nm_to_check nm" 9844 fi 9845 for lt_tmp_nm in $lt_nm_to_check; do 9846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9847 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9848 IFS="$lt_save_ifs" 9849 test -z "$ac_dir" && ac_dir=. 9850 tmp_nm="$ac_dir/$lt_tmp_nm" 9851 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 9852 # Check to see if the nm accepts a BSD-compat flag. 9853 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 9854 # nm: unknown option "B" ignored 9855 # Tru64's nm complains that /dev/null is an invalid object file 9856 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 9857 */dev/null* | *'Invalid file or object type'*) 9858 lt_cv_path_NM="$tmp_nm -B" 9859 break 9860 ;; 9861 *) 9862 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 9863 */dev/null*) 9864 lt_cv_path_NM="$tmp_nm -p" 9865 break 9866 ;; 9867 *) 9868 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9869 continue # so that we can try to find one that supports BSD flags 9870 ;; 9871 esac 9872 ;; 9873 esac 9874 fi 9875 done 9876 IFS="$lt_save_ifs" 9877 done 9878 : ${lt_cv_path_NM=no} 9879fi 9880fi 9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9882$as_echo "$lt_cv_path_NM" >&6; } 9883if test "$lt_cv_path_NM" != "no"; then 9884 NM="$lt_cv_path_NM" 9885else 9886 # Didn't find any BSD compatible name lister, look for dumpbin. 9887 if test -n "$DUMPBIN"; then : 9888 # Let the user override the test. 9889 else 9890 if test -n "$ac_tool_prefix"; then 9891 for ac_prog in dumpbin "link -dump" 9892 do 9893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9894set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9896$as_echo_n "checking for $ac_word... " >&6; } 9897if ${ac_cv_prog_DUMPBIN+:} false; then : 9898 $as_echo_n "(cached) " >&6 9899else 9900 if test -n "$DUMPBIN"; then 9901 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9902else 9903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9904for as_dir in $PATH 9905do 9906 IFS=$as_save_IFS 9907 test -z "$as_dir" && as_dir=. 9908 for ac_exec_ext in '' $ac_executable_extensions; do 9909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9910 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9912 break 2 9913 fi 9914done 9915 done 9916IFS=$as_save_IFS 9917 9918fi 9919fi 9920DUMPBIN=$ac_cv_prog_DUMPBIN 9921if test -n "$DUMPBIN"; then 9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9923$as_echo "$DUMPBIN" >&6; } 9924else 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9926$as_echo "no" >&6; } 9927fi 9928 9929 9930 test -n "$DUMPBIN" && break 9931 done 9932fi 9933if test -z "$DUMPBIN"; then 9934 ac_ct_DUMPBIN=$DUMPBIN 9935 for ac_prog in dumpbin "link -dump" 9936do 9937 # Extract the first word of "$ac_prog", so it can be a program name with args. 9938set dummy $ac_prog; ac_word=$2 9939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9940$as_echo_n "checking for $ac_word... " >&6; } 9941if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943else 9944 if test -n "$ac_ct_DUMPBIN"; then 9945 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 9946else 9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9948for as_dir in $PATH 9949do 9950 IFS=$as_save_IFS 9951 test -z "$as_dir" && as_dir=. 9952 for ac_exec_ext in '' $ac_executable_extensions; do 9953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9954 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9956 break 2 9957 fi 9958done 9959 done 9960IFS=$as_save_IFS 9961 9962fi 9963fi 9964ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 9965if test -n "$ac_ct_DUMPBIN"; then 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 9967$as_echo "$ac_ct_DUMPBIN" >&6; } 9968else 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9970$as_echo "no" >&6; } 9971fi 9972 9973 9974 test -n "$ac_ct_DUMPBIN" && break 9975done 9976 9977 if test "x$ac_ct_DUMPBIN" = x; then 9978 DUMPBIN=":" 9979 else 9980 case $cross_compiling:$ac_tool_warned in 9981yes:) 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9984ac_tool_warned=yes ;; 9985esac 9986 DUMPBIN=$ac_ct_DUMPBIN 9987 fi 9988fi 9989 9990 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 9991 *COFF*) 9992 DUMPBIN="$DUMPBIN -symbols" 9993 ;; 9994 *) 9995 DUMPBIN=: 9996 ;; 9997 esac 9998 fi 9999 10000 if test "$DUMPBIN" != ":"; then 10001 NM="$DUMPBIN" 10002 fi 10003fi 10004test -z "$NM" && NM=nm 10005 10006 10007 10008 10009 10010 10011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 10012$as_echo_n "checking the name lister ($NM) interface... " >&6; } 10013if ${lt_cv_nm_interface+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015else 10016 lt_cv_nm_interface="BSD nm" 10017 echo "int some_variable = 0;" > conftest.$ac_ext 10018 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 10019 (eval "$ac_compile" 2>conftest.err) 10020 cat conftest.err >&5 10021 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 10022 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 10023 cat conftest.err >&5 10024 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 10025 cat conftest.out >&5 10026 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 10027 lt_cv_nm_interface="MS dumpbin" 10028 fi 10029 rm -f conftest* 10030fi 10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 10032$as_echo "$lt_cv_nm_interface" >&6; } 10033 10034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 10035$as_echo_n "checking whether ln -s works... " >&6; } 10036LN_S=$as_ln_s 10037if test "$LN_S" = "ln -s"; then 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10039$as_echo "yes" >&6; } 10040else 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 10042$as_echo "no, using $LN_S" >&6; } 10043fi 10044 10045# find the maximum length of command line arguments 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 10047$as_echo_n "checking the maximum length of command line arguments... " >&6; } 10048if ${lt_cv_sys_max_cmd_len+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050else 10051 i=0 10052 teststring="ABCD" 10053 10054 case $build_os in 10055 msdosdjgpp*) 10056 # On DJGPP, this test can blow up pretty badly due to problems in libc 10057 # (any single argument exceeding 2000 bytes causes a buffer overrun 10058 # during glob expansion). Even if it were fixed, the result of this 10059 # check would be larger than it should be. 10060 lt_cv_sys_max_cmd_len=12288; # 12K is about right 10061 ;; 10062 10063 gnu*) 10064 # Under GNU Hurd, this test is not required because there is 10065 # no limit to the length of command line arguments. 10066 # Libtool will interpret -1 as no limit whatsoever 10067 lt_cv_sys_max_cmd_len=-1; 10068 ;; 10069 10070 cygwin* | mingw* | cegcc*) 10071 # On Win9x/ME, this test blows up -- it succeeds, but takes 10072 # about 5 minutes as the teststring grows exponentially. 10073 # Worse, since 9x/ME are not pre-emptively multitasking, 10074 # you end up with a "frozen" computer, even though with patience 10075 # the test eventually succeeds (with a max line length of 256k). 10076 # Instead, let's just punt: use the minimum linelength reported by 10077 # all of the supported platforms: 8192 (on NT/2K/XP). 10078 lt_cv_sys_max_cmd_len=8192; 10079 ;; 10080 10081 mint*) 10082 # On MiNT this can take a long time and run out of memory. 10083 lt_cv_sys_max_cmd_len=8192; 10084 ;; 10085 10086 amigaos*) 10087 # On AmigaOS with pdksh, this test takes hours, literally. 10088 # So we just punt and use a minimum line length of 8192. 10089 lt_cv_sys_max_cmd_len=8192; 10090 ;; 10091 10092 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 10093 # This has been around since 386BSD, at least. Likely further. 10094 if test -x /sbin/sysctl; then 10095 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 10096 elif test -x /usr/sbin/sysctl; then 10097 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 10098 else 10099 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 10100 fi 10101 # And add a safety zone 10102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10104 ;; 10105 10106 interix*) 10107 # We know the value 262144 and hardcode it with a safety zone (like BSD) 10108 lt_cv_sys_max_cmd_len=196608 10109 ;; 10110 10111 os2*) 10112 # The test takes a long time on OS/2. 10113 lt_cv_sys_max_cmd_len=8192 10114 ;; 10115 10116 osf*) 10117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 10118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 10119 # nice to cause kernel panics so lets avoid the loop below. 10120 # First set a reasonable default. 10121 lt_cv_sys_max_cmd_len=16384 10122 # 10123 if test -x /sbin/sysconfig; then 10124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 10125 *1*) lt_cv_sys_max_cmd_len=-1 ;; 10126 esac 10127 fi 10128 ;; 10129 sco3.2v5*) 10130 lt_cv_sys_max_cmd_len=102400 10131 ;; 10132 sysv5* | sco5v6* | sysv4.2uw2*) 10133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 10134 if test -n "$kargmax"; then 10135 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 10136 else 10137 lt_cv_sys_max_cmd_len=32768 10138 fi 10139 ;; 10140 *) 10141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 10142 if test -n "$lt_cv_sys_max_cmd_len"; then 10143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10145 else 10146 # Make teststring a little bigger before we do anything with it. 10147 # a 1K string should be a reasonable start. 10148 for i in 1 2 3 4 5 6 7 8 ; do 10149 teststring=$teststring$teststring 10150 done 10151 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 10152 # If test is not a shell built-in, we'll probably end up computing a 10153 # maximum length that is only half of the actual maximum length, but 10154 # we can't tell. 10155 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 10156 = "X$teststring$teststring"; } >/dev/null 2>&1 && 10157 test $i != 17 # 1/2 MB should be enough 10158 do 10159 i=`expr $i + 1` 10160 teststring=$teststring$teststring 10161 done 10162 # Only check the string length outside the loop. 10163 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 10164 teststring= 10165 # Add a significant safety factor because C++ compilers can tack on 10166 # massive amounts of additional arguments before passing them to the 10167 # linker. It appears as though 1/2 is a usable value. 10168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 10169 fi 10170 ;; 10171 esac 10172 10173fi 10174 10175if test -n $lt_cv_sys_max_cmd_len ; then 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 10177$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 10178else 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 10180$as_echo "none" >&6; } 10181fi 10182max_cmd_len=$lt_cv_sys_max_cmd_len 10183 10184 10185 10186 10187 10188 10189: ${CP="cp -f"} 10190: ${MV="mv -f"} 10191: ${RM="rm -f"} 10192 10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 10194$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 10195# Try some XSI features 10196xsi_shell=no 10197( _lt_dummy="a/b/c" 10198 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 10199 = c,a/b,b/c, \ 10200 && eval 'test $(( 1 + 1 )) -eq 2 \ 10201 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 10202 && xsi_shell=yes 10203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 10204$as_echo "$xsi_shell" >&6; } 10205 10206 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 10208$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 10209lt_shell_append=no 10210( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 10211 >/dev/null 2>&1 \ 10212 && lt_shell_append=yes 10213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 10214$as_echo "$lt_shell_append" >&6; } 10215 10216 10217if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10218 lt_unset=unset 10219else 10220 lt_unset=false 10221fi 10222 10223 10224 10225 10226 10227# test EBCDIC or ASCII 10228case `echo X|tr X '\101'` in 10229 A) # ASCII based system 10230 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 10231 lt_SP2NL='tr \040 \012' 10232 lt_NL2SP='tr \015\012 \040\040' 10233 ;; 10234 *) # EBCDIC based system 10235 lt_SP2NL='tr \100 \n' 10236 lt_NL2SP='tr \r\n \100\100' 10237 ;; 10238esac 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 10249$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 10250if ${lt_cv_to_host_file_cmd+:} false; then : 10251 $as_echo_n "(cached) " >&6 10252else 10253 case $host in 10254 *-*-mingw* ) 10255 case $build in 10256 *-*-mingw* ) # actually msys 10257 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 10258 ;; 10259 *-*-cygwin* ) 10260 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 10261 ;; 10262 * ) # otherwise, assume *nix 10263 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 10264 ;; 10265 esac 10266 ;; 10267 *-*-cygwin* ) 10268 case $build in 10269 *-*-mingw* ) # actually msys 10270 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 10271 ;; 10272 *-*-cygwin* ) 10273 lt_cv_to_host_file_cmd=func_convert_file_noop 10274 ;; 10275 * ) # otherwise, assume *nix 10276 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 10277 ;; 10278 esac 10279 ;; 10280 * ) # unhandled hosts (and "normal" native builds) 10281 lt_cv_to_host_file_cmd=func_convert_file_noop 10282 ;; 10283esac 10284 10285fi 10286 10287to_host_file_cmd=$lt_cv_to_host_file_cmd 10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 10289$as_echo "$lt_cv_to_host_file_cmd" >&6; } 10290 10291 10292 10293 10294 10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 10296$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 10297if ${lt_cv_to_tool_file_cmd+:} false; then : 10298 $as_echo_n "(cached) " >&6 10299else 10300 #assume ordinary cross tools, or native build. 10301lt_cv_to_tool_file_cmd=func_convert_file_noop 10302case $host in 10303 *-*-mingw* ) 10304 case $build in 10305 *-*-mingw* ) # actually msys 10306 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 10307 ;; 10308 esac 10309 ;; 10310esac 10311 10312fi 10313 10314to_tool_file_cmd=$lt_cv_to_tool_file_cmd 10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 10316$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 10317 10318 10319 10320 10321 10322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 10323$as_echo_n "checking for $LD option to reload object files... " >&6; } 10324if ${lt_cv_ld_reload_flag+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 lt_cv_ld_reload_flag='-r' 10328fi 10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 10330$as_echo "$lt_cv_ld_reload_flag" >&6; } 10331reload_flag=$lt_cv_ld_reload_flag 10332case $reload_flag in 10333"" | " "*) ;; 10334*) reload_flag=" $reload_flag" ;; 10335esac 10336reload_cmds='$LD$reload_flag -o $output$reload_objs' 10337case $host_os in 10338 cygwin* | mingw* | pw32* | cegcc*) 10339 if test "$GCC" != yes; then 10340 reload_cmds=false 10341 fi 10342 ;; 10343 darwin*) 10344 if test "$GCC" = yes; then 10345 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 10346 else 10347 reload_cmds='$LD$reload_flag -o $output$reload_objs' 10348 fi 10349 ;; 10350esac 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360if test -n "$ac_tool_prefix"; then 10361 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10362set dummy ${ac_tool_prefix}objdump; ac_word=$2 10363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10364$as_echo_n "checking for $ac_word... " >&6; } 10365if ${ac_cv_prog_OBJDUMP+:} false; then : 10366 $as_echo_n "(cached) " >&6 10367else 10368 if test -n "$OBJDUMP"; then 10369 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10370else 10371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10372for as_dir in $PATH 10373do 10374 IFS=$as_save_IFS 10375 test -z "$as_dir" && as_dir=. 10376 for ac_exec_ext in '' $ac_executable_extensions; do 10377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10378 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10380 break 2 10381 fi 10382done 10383 done 10384IFS=$as_save_IFS 10385 10386fi 10387fi 10388OBJDUMP=$ac_cv_prog_OBJDUMP 10389if test -n "$OBJDUMP"; then 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10391$as_echo "$OBJDUMP" >&6; } 10392else 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10394$as_echo "no" >&6; } 10395fi 10396 10397 10398fi 10399if test -z "$ac_cv_prog_OBJDUMP"; then 10400 ac_ct_OBJDUMP=$OBJDUMP 10401 # Extract the first word of "objdump", so it can be a program name with args. 10402set dummy objdump; ac_word=$2 10403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10404$as_echo_n "checking for $ac_word... " >&6; } 10405if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 10406 $as_echo_n "(cached) " >&6 10407else 10408 if test -n "$ac_ct_OBJDUMP"; then 10409 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 10410else 10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10412for as_dir in $PATH 10413do 10414 IFS=$as_save_IFS 10415 test -z "$as_dir" && as_dir=. 10416 for ac_exec_ext in '' $ac_executable_extensions; do 10417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10418 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10420 break 2 10421 fi 10422done 10423 done 10424IFS=$as_save_IFS 10425 10426fi 10427fi 10428ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 10429if test -n "$ac_ct_OBJDUMP"; then 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 10431$as_echo "$ac_ct_OBJDUMP" >&6; } 10432else 10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10434$as_echo "no" >&6; } 10435fi 10436 10437 if test "x$ac_ct_OBJDUMP" = x; then 10438 OBJDUMP="false" 10439 else 10440 case $cross_compiling:$ac_tool_warned in 10441yes:) 10442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10444ac_tool_warned=yes ;; 10445esac 10446 OBJDUMP=$ac_ct_OBJDUMP 10447 fi 10448else 10449 OBJDUMP="$ac_cv_prog_OBJDUMP" 10450fi 10451 10452test -z "$OBJDUMP" && OBJDUMP=objdump 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 10463$as_echo_n "checking how to recognize dependent libraries... " >&6; } 10464if ${lt_cv_deplibs_check_method+:} false; then : 10465 $as_echo_n "(cached) " >&6 10466else 10467 lt_cv_file_magic_cmd='$MAGIC_CMD' 10468lt_cv_file_magic_test_file= 10469lt_cv_deplibs_check_method='unknown' 10470# Need to set the preceding variable on all platforms that support 10471# interlibrary dependencies. 10472# 'none' -- dependencies not supported. 10473# `unknown' -- same as none, but documents that we really don't know. 10474# 'pass_all' -- all dependencies passed with no checks. 10475# 'test_compile' -- check by making test program. 10476# 'file_magic [[regex]]' -- check by looking for files in library path 10477# which responds to the $file_magic_cmd with a given extended regex. 10478# If you have `file' or equivalent on your system and you're not sure 10479# whether `pass_all' will *always* work, you probably want this one. 10480 10481case $host_os in 10482aix[4-9]*) 10483 lt_cv_deplibs_check_method=pass_all 10484 ;; 10485 10486beos*) 10487 lt_cv_deplibs_check_method=pass_all 10488 ;; 10489 10490bsdi[45]*) 10491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 10492 lt_cv_file_magic_cmd='/usr/bin/file -L' 10493 lt_cv_file_magic_test_file=/shlib/libc.so 10494 ;; 10495 10496cygwin*) 10497 # func_win32_libid is a shell function defined in ltmain.sh 10498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10499 lt_cv_file_magic_cmd='func_win32_libid' 10500 ;; 10501 10502mingw* | pw32*) 10503 # Base MSYS/MinGW do not provide the 'file' command needed by 10504 # func_win32_libid shell function, so use a weaker test based on 'objdump', 10505 # unless we find 'file', for example because we are cross-compiling. 10506 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 10507 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 10508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10509 lt_cv_file_magic_cmd='func_win32_libid' 10510 else 10511 # Keep this pattern in sync with the one in func_win32_libid. 10512 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 10513 lt_cv_file_magic_cmd='$OBJDUMP -f' 10514 fi 10515 ;; 10516 10517cegcc*) 10518 # use the weaker test based on 'objdump'. See mingw*. 10519 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 10520 lt_cv_file_magic_cmd='$OBJDUMP -f' 10521 ;; 10522 10523darwin* | rhapsody*) 10524 lt_cv_deplibs_check_method=pass_all 10525 ;; 10526 10527freebsd* | dragonfly*) 10528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10529 case $host_cpu in 10530 i*86 ) 10531 # Not sure whether the presence of OpenBSD here was a mistake. 10532 # Let's accept both of them until this is cleared up. 10533 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 10534 lt_cv_file_magic_cmd=/usr/bin/file 10535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10536 ;; 10537 esac 10538 else 10539 lt_cv_deplibs_check_method=pass_all 10540 fi 10541 ;; 10542 10543gnu*) 10544 lt_cv_deplibs_check_method=pass_all 10545 ;; 10546 10547haiku*) 10548 lt_cv_deplibs_check_method=pass_all 10549 ;; 10550 10551hpux10.20* | hpux11*) 10552 lt_cv_file_magic_cmd=/usr/bin/file 10553 case $host_cpu in 10554 ia64*) 10555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10556 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10557 ;; 10558 hppa*64*) 10559 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]' 10560 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10561 ;; 10562 *) 10563 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 10564 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10565 ;; 10566 esac 10567 ;; 10568 10569interix[3-9]*) 10570 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 10571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 10572 ;; 10573 10574irix5* | irix6* | nonstopux*) 10575 case $LD in 10576 *-32|*"-32 ") libmagic=32-bit;; 10577 *-n32|*"-n32 ") libmagic=N32;; 10578 *-64|*"-64 ") libmagic=64-bit;; 10579 *) libmagic=never-match;; 10580 esac 10581 lt_cv_deplibs_check_method=pass_all 10582 ;; 10583 10584# This must be glibc/ELF. 10585linux* | k*bsd*-gnu | kopensolaris*-gnu) 10586 lt_cv_deplibs_check_method=pass_all 10587 ;; 10588 10589netbsd*) 10590 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10592 else 10593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10594 fi 10595 ;; 10596 10597newos6*) 10598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10599 lt_cv_file_magic_cmd=/usr/bin/file 10600 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10601 ;; 10602 10603*nto* | *qnx*) 10604 lt_cv_deplibs_check_method=pass_all 10605 ;; 10606 10607openbsd*) 10608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10610 else 10611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10612 fi 10613 ;; 10614 10615osf3* | osf4* | osf5*) 10616 lt_cv_deplibs_check_method=pass_all 10617 ;; 10618 10619rdos*) 10620 lt_cv_deplibs_check_method=pass_all 10621 ;; 10622 10623solaris*) 10624 lt_cv_deplibs_check_method=pass_all 10625 ;; 10626 10627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10628 lt_cv_deplibs_check_method=pass_all 10629 ;; 10630 10631sysv4 | sysv4.3*) 10632 case $host_vendor in 10633 motorola) 10634 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]' 10635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10636 ;; 10637 ncr) 10638 lt_cv_deplibs_check_method=pass_all 10639 ;; 10640 sequent) 10641 lt_cv_file_magic_cmd='/bin/file' 10642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10643 ;; 10644 sni) 10645 lt_cv_file_magic_cmd='/bin/file' 10646 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10647 lt_cv_file_magic_test_file=/lib/libc.so 10648 ;; 10649 siemens) 10650 lt_cv_deplibs_check_method=pass_all 10651 ;; 10652 pc) 10653 lt_cv_deplibs_check_method=pass_all 10654 ;; 10655 esac 10656 ;; 10657 10658tpf*) 10659 lt_cv_deplibs_check_method=pass_all 10660 ;; 10661esac 10662 10663fi 10664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10665$as_echo "$lt_cv_deplibs_check_method" >&6; } 10666 10667file_magic_glob= 10668want_nocaseglob=no 10669if test "$build" = "$host"; then 10670 case $host_os in 10671 mingw* | pw32*) 10672 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 10673 want_nocaseglob=yes 10674 else 10675 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 10676 fi 10677 ;; 10678 esac 10679fi 10680 10681file_magic_cmd=$lt_cv_file_magic_cmd 10682deplibs_check_method=$lt_cv_deplibs_check_method 10683test -z "$deplibs_check_method" && deplibs_check_method=unknown 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706if test -n "$ac_tool_prefix"; then 10707 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10708set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10710$as_echo_n "checking for $ac_word... " >&6; } 10711if ${ac_cv_prog_DLLTOOL+:} false; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 if test -n "$DLLTOOL"; then 10715 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10716else 10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10718for as_dir in $PATH 10719do 10720 IFS=$as_save_IFS 10721 test -z "$as_dir" && as_dir=. 10722 for ac_exec_ext in '' $ac_executable_extensions; do 10723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10724 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10726 break 2 10727 fi 10728done 10729 done 10730IFS=$as_save_IFS 10731 10732fi 10733fi 10734DLLTOOL=$ac_cv_prog_DLLTOOL 10735if test -n "$DLLTOOL"; then 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10737$as_echo "$DLLTOOL" >&6; } 10738else 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10740$as_echo "no" >&6; } 10741fi 10742 10743 10744fi 10745if test -z "$ac_cv_prog_DLLTOOL"; then 10746 ac_ct_DLLTOOL=$DLLTOOL 10747 # Extract the first word of "dlltool", so it can be a program name with args. 10748set dummy dlltool; ac_word=$2 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10750$as_echo_n "checking for $ac_word... " >&6; } 10751if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10752 $as_echo_n "(cached) " >&6 10753else 10754 if test -n "$ac_ct_DLLTOOL"; then 10755 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10756else 10757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10758for as_dir in $PATH 10759do 10760 IFS=$as_save_IFS 10761 test -z "$as_dir" && as_dir=. 10762 for ac_exec_ext in '' $ac_executable_extensions; do 10763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10764 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10766 break 2 10767 fi 10768done 10769 done 10770IFS=$as_save_IFS 10771 10772fi 10773fi 10774ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10775if test -n "$ac_ct_DLLTOOL"; then 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10777$as_echo "$ac_ct_DLLTOOL" >&6; } 10778else 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10780$as_echo "no" >&6; } 10781fi 10782 10783 if test "x$ac_ct_DLLTOOL" = x; then 10784 DLLTOOL="false" 10785 else 10786 case $cross_compiling:$ac_tool_warned in 10787yes:) 10788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10790ac_tool_warned=yes ;; 10791esac 10792 DLLTOOL=$ac_ct_DLLTOOL 10793 fi 10794else 10795 DLLTOOL="$ac_cv_prog_DLLTOOL" 10796fi 10797 10798test -z "$DLLTOOL" && DLLTOOL=dlltool 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10810$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 10811if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 10812 $as_echo_n "(cached) " >&6 10813else 10814 lt_cv_sharedlib_from_linklib_cmd='unknown' 10815 10816case $host_os in 10817cygwin* | mingw* | pw32* | cegcc*) 10818 # two different shell functions defined in ltmain.sh 10819 # decide which to use based on capabilities of $DLLTOOL 10820 case `$DLLTOOL --help 2>&1` in 10821 *--identify-strict*) 10822 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10823 ;; 10824 *) 10825 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10826 ;; 10827 esac 10828 ;; 10829*) 10830 # fallback: assume linklib IS sharedlib 10831 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 10832 ;; 10833esac 10834 10835fi 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10837$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10838sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10839test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10840 10841 10842 10843 10844 10845 10846 10847if test -n "$ac_tool_prefix"; then 10848 for ac_prog in ar 10849 do 10850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10851set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10853$as_echo_n "checking for $ac_word... " >&6; } 10854if ${ac_cv_prog_AR+:} false; then : 10855 $as_echo_n "(cached) " >&6 10856else 10857 if test -n "$AR"; then 10858 ac_cv_prog_AR="$AR" # Let the user override the test. 10859else 10860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10861for as_dir in $PATH 10862do 10863 IFS=$as_save_IFS 10864 test -z "$as_dir" && as_dir=. 10865 for ac_exec_ext in '' $ac_executable_extensions; do 10866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10867 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10869 break 2 10870 fi 10871done 10872 done 10873IFS=$as_save_IFS 10874 10875fi 10876fi 10877AR=$ac_cv_prog_AR 10878if test -n "$AR"; then 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10880$as_echo "$AR" >&6; } 10881else 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10883$as_echo "no" >&6; } 10884fi 10885 10886 10887 test -n "$AR" && break 10888 done 10889fi 10890if test -z "$AR"; then 10891 ac_ct_AR=$AR 10892 for ac_prog in ar 10893do 10894 # Extract the first word of "$ac_prog", so it can be a program name with args. 10895set dummy $ac_prog; ac_word=$2 10896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10897$as_echo_n "checking for $ac_word... " >&6; } 10898if ${ac_cv_prog_ac_ct_AR+:} false; then : 10899 $as_echo_n "(cached) " >&6 10900else 10901 if test -n "$ac_ct_AR"; then 10902 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10903else 10904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10905for as_dir in $PATH 10906do 10907 IFS=$as_save_IFS 10908 test -z "$as_dir" && as_dir=. 10909 for ac_exec_ext in '' $ac_executable_extensions; do 10910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10911 ac_cv_prog_ac_ct_AR="$ac_prog" 10912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10913 break 2 10914 fi 10915done 10916 done 10917IFS=$as_save_IFS 10918 10919fi 10920fi 10921ac_ct_AR=$ac_cv_prog_ac_ct_AR 10922if test -n "$ac_ct_AR"; then 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10924$as_echo "$ac_ct_AR" >&6; } 10925else 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10927$as_echo "no" >&6; } 10928fi 10929 10930 10931 test -n "$ac_ct_AR" && break 10932done 10933 10934 if test "x$ac_ct_AR" = x; then 10935 AR="false" 10936 else 10937 case $cross_compiling:$ac_tool_warned in 10938yes:) 10939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10941ac_tool_warned=yes ;; 10942esac 10943 AR=$ac_ct_AR 10944 fi 10945fi 10946 10947: ${AR=ar} 10948: ${AR_FLAGS=cru} 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 10961$as_echo_n "checking for archiver @FILE support... " >&6; } 10962if ${lt_cv_ar_at_file+:} false; then : 10963 $as_echo_n "(cached) " >&6 10964else 10965 lt_cv_ar_at_file=no 10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10967/* end confdefs.h. */ 10968 10969int 10970main () 10971{ 10972 10973 ; 10974 return 0; 10975} 10976_ACEOF 10977if ac_fn_c_try_compile "$LINENO"; then : 10978 echo conftest.$ac_objext > conftest.lst 10979 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 10980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10981 (eval $lt_ar_try) 2>&5 10982 ac_status=$? 10983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10984 test $ac_status = 0; } 10985 if test "$ac_status" -eq 0; then 10986 # Ensure the archiver fails upon bogus file names. 10987 rm -f conftest.$ac_objext libconftest.a 10988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10989 (eval $lt_ar_try) 2>&5 10990 ac_status=$? 10991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10992 test $ac_status = 0; } 10993 if test "$ac_status" -ne 0; then 10994 lt_cv_ar_at_file=@ 10995 fi 10996 fi 10997 rm -f conftest.* libconftest.a 10998 10999fi 11000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11001 11002fi 11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 11004$as_echo "$lt_cv_ar_at_file" >&6; } 11005 11006if test "x$lt_cv_ar_at_file" = xno; then 11007 archiver_list_spec= 11008else 11009 archiver_list_spec=$lt_cv_ar_at_file 11010fi 11011 11012 11013 11014 11015 11016 11017 11018if test -n "$ac_tool_prefix"; then 11019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11020set dummy ${ac_tool_prefix}strip; ac_word=$2 11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11022$as_echo_n "checking for $ac_word... " >&6; } 11023if ${ac_cv_prog_STRIP+:} false; then : 11024 $as_echo_n "(cached) " >&6 11025else 11026 if test -n "$STRIP"; then 11027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11028else 11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11030for as_dir in $PATH 11031do 11032 IFS=$as_save_IFS 11033 test -z "$as_dir" && as_dir=. 11034 for ac_exec_ext in '' $ac_executable_extensions; do 11035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11036 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11038 break 2 11039 fi 11040done 11041 done 11042IFS=$as_save_IFS 11043 11044fi 11045fi 11046STRIP=$ac_cv_prog_STRIP 11047if test -n "$STRIP"; then 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11049$as_echo "$STRIP" >&6; } 11050else 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11052$as_echo "no" >&6; } 11053fi 11054 11055 11056fi 11057if test -z "$ac_cv_prog_STRIP"; then 11058 ac_ct_STRIP=$STRIP 11059 # Extract the first word of "strip", so it can be a program name with args. 11060set dummy strip; ac_word=$2 11061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11062$as_echo_n "checking for $ac_word... " >&6; } 11063if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 11064 $as_echo_n "(cached) " >&6 11065else 11066 if test -n "$ac_ct_STRIP"; then 11067 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11068else 11069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11070for as_dir in $PATH 11071do 11072 IFS=$as_save_IFS 11073 test -z "$as_dir" && as_dir=. 11074 for ac_exec_ext in '' $ac_executable_extensions; do 11075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11076 ac_cv_prog_ac_ct_STRIP="strip" 11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11078 break 2 11079 fi 11080done 11081 done 11082IFS=$as_save_IFS 11083 11084fi 11085fi 11086ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11087if test -n "$ac_ct_STRIP"; then 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11089$as_echo "$ac_ct_STRIP" >&6; } 11090else 11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11092$as_echo "no" >&6; } 11093fi 11094 11095 if test "x$ac_ct_STRIP" = x; then 11096 STRIP=":" 11097 else 11098 case $cross_compiling:$ac_tool_warned in 11099yes:) 11100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11102ac_tool_warned=yes ;; 11103esac 11104 STRIP=$ac_ct_STRIP 11105 fi 11106else 11107 STRIP="$ac_cv_prog_STRIP" 11108fi 11109 11110test -z "$STRIP" && STRIP=: 11111 11112 11113 11114 11115 11116 11117if test -n "$ac_tool_prefix"; then 11118 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11119set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11121$as_echo_n "checking for $ac_word... " >&6; } 11122if ${ac_cv_prog_RANLIB+:} false; then : 11123 $as_echo_n "(cached) " >&6 11124else 11125 if test -n "$RANLIB"; then 11126 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11127else 11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11129for as_dir in $PATH 11130do 11131 IFS=$as_save_IFS 11132 test -z "$as_dir" && as_dir=. 11133 for ac_exec_ext in '' $ac_executable_extensions; do 11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11135 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11137 break 2 11138 fi 11139done 11140 done 11141IFS=$as_save_IFS 11142 11143fi 11144fi 11145RANLIB=$ac_cv_prog_RANLIB 11146if test -n "$RANLIB"; then 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 11148$as_echo "$RANLIB" >&6; } 11149else 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11151$as_echo "no" >&6; } 11152fi 11153 11154 11155fi 11156if test -z "$ac_cv_prog_RANLIB"; then 11157 ac_ct_RANLIB=$RANLIB 11158 # Extract the first word of "ranlib", so it can be a program name with args. 11159set dummy ranlib; ac_word=$2 11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11161$as_echo_n "checking for $ac_word... " >&6; } 11162if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 11163 $as_echo_n "(cached) " >&6 11164else 11165 if test -n "$ac_ct_RANLIB"; then 11166 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11167else 11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11169for as_dir in $PATH 11170do 11171 IFS=$as_save_IFS 11172 test -z "$as_dir" && as_dir=. 11173 for ac_exec_ext in '' $ac_executable_extensions; do 11174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11175 ac_cv_prog_ac_ct_RANLIB="ranlib" 11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11177 break 2 11178 fi 11179done 11180 done 11181IFS=$as_save_IFS 11182 11183fi 11184fi 11185ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11186if test -n "$ac_ct_RANLIB"; then 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 11188$as_echo "$ac_ct_RANLIB" >&6; } 11189else 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11191$as_echo "no" >&6; } 11192fi 11193 11194 if test "x$ac_ct_RANLIB" = x; then 11195 RANLIB=":" 11196 else 11197 case $cross_compiling:$ac_tool_warned in 11198yes:) 11199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11201ac_tool_warned=yes ;; 11202esac 11203 RANLIB=$ac_ct_RANLIB 11204 fi 11205else 11206 RANLIB="$ac_cv_prog_RANLIB" 11207fi 11208 11209test -z "$RANLIB" && RANLIB=: 11210 11211 11212 11213 11214 11215 11216# Determine commands to create old-style static archives. 11217old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 11218old_postinstall_cmds='chmod 644 $oldlib' 11219old_postuninstall_cmds= 11220 11221if test -n "$RANLIB"; then 11222 case $host_os in 11223 openbsd*) 11224 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 11225 ;; 11226 *) 11227 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 11228 ;; 11229 esac 11230 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 11231fi 11232 11233case $host_os in 11234 darwin*) 11235 lock_old_archive_extraction=yes ;; 11236 *) 11237 lock_old_archive_extraction=no ;; 11238esac 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278# If no C compiler was specified, use CC. 11279LTCC=${LTCC-"$CC"} 11280 11281# If no C compiler flags were specified, use CFLAGS. 11282LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11283 11284# Allow CC to be a program name with arguments. 11285compiler=$CC 11286 11287 11288# Check for command to grab the raw symbol name followed by C symbol from nm. 11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 11290$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 11291if ${lt_cv_sys_global_symbol_pipe+:} false; then : 11292 $as_echo_n "(cached) " >&6 11293else 11294 11295# These are sane defaults that work on at least a few old systems. 11296# [They come from Ultrix. What could be older than Ultrix?!! ;)] 11297 11298# Character class describing NM global symbol codes. 11299symcode='[BCDEGRST]' 11300 11301# Regexp to match symbols that can be accessed directly from C. 11302sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 11303 11304# Define system-specific variables. 11305case $host_os in 11306aix*) 11307 symcode='[BCDT]' 11308 ;; 11309cygwin* | mingw* | pw32* | cegcc*) 11310 symcode='[ABCDGISTW]' 11311 ;; 11312hpux*) 11313 if test "$host_cpu" = ia64; then 11314 symcode='[ABCDEGRST]' 11315 fi 11316 ;; 11317irix* | nonstopux*) 11318 symcode='[BCDEGRST]' 11319 ;; 11320osf*) 11321 symcode='[BCDEGQRST]' 11322 ;; 11323solaris*) 11324 symcode='[BDRT]' 11325 ;; 11326sco3.2v5*) 11327 symcode='[DT]' 11328 ;; 11329sysv4.2uw2*) 11330 symcode='[DT]' 11331 ;; 11332sysv5* | sco5v6* | unixware* | OpenUNIX*) 11333 symcode='[ABDT]' 11334 ;; 11335sysv4) 11336 symcode='[DFNSTU]' 11337 ;; 11338esac 11339 11340# If we're using GNU nm, then use its standard symbol codes. 11341case `$NM -V 2>&1` in 11342*GNU* | *'with BFD'*) 11343 symcode='[ABCDGIRSTW]' ;; 11344esac 11345 11346# Transform an extracted symbol line into a proper C declaration. 11347# Some systems (esp. on ia64) link data and code symbols differently, 11348# so use this general approach. 11349lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 11350 11351# Transform an extracted symbol line into symbol name and symbol address 11352lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 11353lt_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'" 11354 11355# Handle CRLF in mingw tool chain 11356opt_cr= 11357case $build_os in 11358mingw*) 11359 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 11360 ;; 11361esac 11362 11363# Try without a prefix underscore, then with it. 11364for ac_symprfx in "" "_"; do 11365 11366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 11367 symxfrm="\\1 $ac_symprfx\\2 \\2" 11368 11369 # Write the raw and C identifiers. 11370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11371 # Fake it for dumpbin and say T for any non-static function 11372 # and D for any global variable. 11373 # Also find C++ and __fastcall symbols from MSVC++, 11374 # which start with @ or ?. 11375 lt_cv_sys_global_symbol_pipe="$AWK '"\ 11376" {last_section=section; section=\$ 3};"\ 11377" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 11378" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 11379" \$ 0!~/External *\|/{next};"\ 11380" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 11381" {if(hide[section]) next};"\ 11382" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 11383" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 11384" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 11385" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 11386" ' prfx=^$ac_symprfx" 11387 else 11388 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 11389 fi 11390 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 11391 11392 # Check to see that the pipe works correctly. 11393 pipe_works=no 11394 11395 rm -f conftest* 11396 cat > conftest.$ac_ext <<_LT_EOF 11397#ifdef __cplusplus 11398extern "C" { 11399#endif 11400char nm_test_var; 11401void nm_test_func(void); 11402void nm_test_func(void){} 11403#ifdef __cplusplus 11404} 11405#endif 11406int main(){nm_test_var='a';nm_test_func();return(0);} 11407_LT_EOF 11408 11409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11410 (eval $ac_compile) 2>&5 11411 ac_status=$? 11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11413 test $ac_status = 0; }; then 11414 # Now try to grab the symbols. 11415 nlist=conftest.nm 11416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 11417 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 11418 ac_status=$? 11419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11420 test $ac_status = 0; } && test -s "$nlist"; then 11421 # Try sorting and uniquifying the output. 11422 if sort "$nlist" | uniq > "$nlist"T; then 11423 mv -f "$nlist"T "$nlist" 11424 else 11425 rm -f "$nlist"T 11426 fi 11427 11428 # Make sure that we snagged all the symbols we need. 11429 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 11430 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 11431 cat <<_LT_EOF > conftest.$ac_ext 11432/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 11433#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 11434/* DATA imports from DLLs on WIN32 con't be const, because runtime 11435 relocations are performed -- see ld's documentation on pseudo-relocs. */ 11436# define LT_DLSYM_CONST 11437#elif defined(__osf__) 11438/* This system does not cope well with relocations in const data. */ 11439# define LT_DLSYM_CONST 11440#else 11441# define LT_DLSYM_CONST const 11442#endif 11443 11444#ifdef __cplusplus 11445extern "C" { 11446#endif 11447 11448_LT_EOF 11449 # Now generate the symbol file. 11450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 11451 11452 cat <<_LT_EOF >> conftest.$ac_ext 11453 11454/* The mapping between symbol names and symbols. */ 11455LT_DLSYM_CONST struct { 11456 const char *name; 11457 void *address; 11458} 11459lt__PROGRAM__LTX_preloaded_symbols[] = 11460{ 11461 { "@PROGRAM@", (void *) 0 }, 11462_LT_EOF 11463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 11464 cat <<\_LT_EOF >> conftest.$ac_ext 11465 {0, (void *) 0} 11466}; 11467 11468/* This works around a problem in FreeBSD linker */ 11469#ifdef FREEBSD_WORKAROUND 11470static const void *lt_preloaded_setup() { 11471 return lt__PROGRAM__LTX_preloaded_symbols; 11472} 11473#endif 11474 11475#ifdef __cplusplus 11476} 11477#endif 11478_LT_EOF 11479 # Now try linking the two files. 11480 mv conftest.$ac_objext conftstm.$ac_objext 11481 lt_globsym_save_LIBS=$LIBS 11482 lt_globsym_save_CFLAGS=$CFLAGS 11483 LIBS="conftstm.$ac_objext" 11484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 11485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11486 (eval $ac_link) 2>&5 11487 ac_status=$? 11488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11489 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 11490 pipe_works=yes 11491 fi 11492 LIBS=$lt_globsym_save_LIBS 11493 CFLAGS=$lt_globsym_save_CFLAGS 11494 else 11495 echo "cannot find nm_test_func in $nlist" >&5 11496 fi 11497 else 11498 echo "cannot find nm_test_var in $nlist" >&5 11499 fi 11500 else 11501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 11502 fi 11503 else 11504 echo "$progname: failed program was:" >&5 11505 cat conftest.$ac_ext >&5 11506 fi 11507 rm -rf conftest* conftst* 11508 11509 # Do not use the global_symbol_pipe unless it works. 11510 if test "$pipe_works" = yes; then 11511 break 11512 else 11513 lt_cv_sys_global_symbol_pipe= 11514 fi 11515done 11516 11517fi 11518 11519if test -z "$lt_cv_sys_global_symbol_pipe"; then 11520 lt_cv_sys_global_symbol_to_cdecl= 11521fi 11522if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 11524$as_echo "failed" >&6; } 11525else 11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11527$as_echo "ok" >&6; } 11528fi 11529 11530# Response file support. 11531if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11532 nm_file_list_spec='@' 11533elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 11534 nm_file_list_spec='@' 11535fi 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 11564$as_echo_n "checking for sysroot... " >&6; } 11565 11566# Check whether --with-sysroot was given. 11567if test "${with_sysroot+set}" = set; then : 11568 withval=$with_sysroot; 11569else 11570 with_sysroot=no 11571fi 11572 11573 11574lt_sysroot= 11575case ${with_sysroot} in #( 11576 yes) 11577 if test "$GCC" = yes; then 11578 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 11579 fi 11580 ;; #( 11581 /*) 11582 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 11583 ;; #( 11584 no|'') 11585 ;; #( 11586 *) 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 11588$as_echo "${with_sysroot}" >&6; } 11589 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 11590 ;; 11591esac 11592 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 11594$as_echo "${lt_sysroot:-no}" >&6; } 11595 11596 11597 11598 11599 11600# Check whether --enable-libtool-lock was given. 11601if test "${enable_libtool_lock+set}" = set; then : 11602 enableval=$enable_libtool_lock; 11603fi 11604 11605test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 11606 11607# Some flags need to be propagated to the compiler or linker for good 11608# libtool support. 11609case $host in 11610ia64-*-hpux*) 11611 # Find out which ABI we are using. 11612 echo 'int i;' > conftest.$ac_ext 11613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11614 (eval $ac_compile) 2>&5 11615 ac_status=$? 11616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11617 test $ac_status = 0; }; then 11618 case `/usr/bin/file conftest.$ac_objext` in 11619 *ELF-32*) 11620 HPUX_IA64_MODE="32" 11621 ;; 11622 *ELF-64*) 11623 HPUX_IA64_MODE="64" 11624 ;; 11625 esac 11626 fi 11627 rm -rf conftest* 11628 ;; 11629*-*-irix6*) 11630 # Find out which ABI we are using. 11631 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11633 (eval $ac_compile) 2>&5 11634 ac_status=$? 11635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11636 test $ac_status = 0; }; then 11637 if test "$lt_cv_prog_gnu_ld" = yes; then 11638 case `/usr/bin/file conftest.$ac_objext` in 11639 *32-bit*) 11640 LD="${LD-ld} -melf32bsmip" 11641 ;; 11642 *N32*) 11643 LD="${LD-ld} -melf32bmipn32" 11644 ;; 11645 *64-bit*) 11646 LD="${LD-ld} -melf64bmip" 11647 ;; 11648 esac 11649 else 11650 case `/usr/bin/file conftest.$ac_objext` in 11651 *32-bit*) 11652 LD="${LD-ld} -32" 11653 ;; 11654 *N32*) 11655 LD="${LD-ld} -n32" 11656 ;; 11657 *64-bit*) 11658 LD="${LD-ld} -64" 11659 ;; 11660 esac 11661 fi 11662 fi 11663 rm -rf conftest* 11664 ;; 11665 11666x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 11667s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 11668 # Find out which ABI we are using. 11669 echo 'int i;' > conftest.$ac_ext 11670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11671 (eval $ac_compile) 2>&5 11672 ac_status=$? 11673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11674 test $ac_status = 0; }; then 11675 case `/usr/bin/file conftest.o` in 11676 *32-bit*) 11677 case $host in 11678 x86_64-*kfreebsd*-gnu) 11679 LD="${LD-ld} -m elf_i386_fbsd" 11680 ;; 11681 x86_64-*linux*) 11682 LD="${LD-ld} -m elf_i386" 11683 ;; 11684 ppc64-*linux*|powerpc64-*linux*) 11685 LD="${LD-ld} -m elf32ppclinux" 11686 ;; 11687 s390x-*linux*) 11688 LD="${LD-ld} -m elf_s390" 11689 ;; 11690 sparc64-*linux*) 11691 LD="${LD-ld} -m elf32_sparc" 11692 ;; 11693 esac 11694 ;; 11695 *64-bit*) 11696 case $host in 11697 x86_64-*kfreebsd*-gnu) 11698 LD="${LD-ld} -m elf_x86_64_fbsd" 11699 ;; 11700 x86_64-*linux*) 11701 LD="${LD-ld} -m elf_x86_64" 11702 ;; 11703 ppc*-*linux*|powerpc*-*linux*) 11704 LD="${LD-ld} -m elf64ppc" 11705 ;; 11706 s390*-*linux*|s390*-*tpf*) 11707 LD="${LD-ld} -m elf64_s390" 11708 ;; 11709 sparc*-*linux*) 11710 LD="${LD-ld} -m elf64_sparc" 11711 ;; 11712 esac 11713 ;; 11714 esac 11715 fi 11716 rm -rf conftest* 11717 ;; 11718 11719*-*-sco3.2v5*) 11720 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11721 SAVE_CFLAGS="$CFLAGS" 11722 CFLAGS="$CFLAGS -belf" 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11724$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 11725if ${lt_cv_cc_needs_belf+:} false; then : 11726 $as_echo_n "(cached) " >&6 11727else 11728 ac_ext=c 11729ac_cpp='$CPP $CPPFLAGS' 11730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11732ac_compiler_gnu=$ac_cv_c_compiler_gnu 11733 11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11735/* end confdefs.h. */ 11736 11737int 11738main () 11739{ 11740 11741 ; 11742 return 0; 11743} 11744_ACEOF 11745if ac_fn_c_try_link "$LINENO"; then : 11746 lt_cv_cc_needs_belf=yes 11747else 11748 lt_cv_cc_needs_belf=no 11749fi 11750rm -f core conftest.err conftest.$ac_objext \ 11751 conftest$ac_exeext conftest.$ac_ext 11752 ac_ext=c 11753ac_cpp='$CPP $CPPFLAGS' 11754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11756ac_compiler_gnu=$ac_cv_c_compiler_gnu 11757 11758fi 11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11760$as_echo "$lt_cv_cc_needs_belf" >&6; } 11761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 11762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11763 CFLAGS="$SAVE_CFLAGS" 11764 fi 11765 ;; 11766*-*solaris*) 11767 # Find out which ABI we are using. 11768 echo 'int i;' > conftest.$ac_ext 11769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11770 (eval $ac_compile) 2>&5 11771 ac_status=$? 11772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11773 test $ac_status = 0; }; then 11774 case `/usr/bin/file conftest.o` in 11775 *64-bit*) 11776 case $lt_cv_prog_gnu_ld in 11777 yes*) 11778 case $host in 11779 i?86-*-solaris*) 11780 LD="${LD-ld} -m elf_x86_64" 11781 ;; 11782 sparc*-*-solaris*) 11783 LD="${LD-ld} -m elf64_sparc" 11784 ;; 11785 esac 11786 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11787 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11788 LD="${LD-ld}_sol2" 11789 fi 11790 ;; 11791 *) 11792 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11793 LD="${LD-ld} -64" 11794 fi 11795 ;; 11796 esac 11797 ;; 11798 esac 11799 fi 11800 rm -rf conftest* 11801 ;; 11802esac 11803 11804need_locks="$enable_libtool_lock" 11805 11806if test -n "$ac_tool_prefix"; then 11807 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11808set dummy ${ac_tool_prefix}mt; ac_word=$2 11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11810$as_echo_n "checking for $ac_word... " >&6; } 11811if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 11812 $as_echo_n "(cached) " >&6 11813else 11814 if test -n "$MANIFEST_TOOL"; then 11815 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11816else 11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11818for as_dir in $PATH 11819do 11820 IFS=$as_save_IFS 11821 test -z "$as_dir" && as_dir=. 11822 for ac_exec_ext in '' $ac_executable_extensions; do 11823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11824 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11826 break 2 11827 fi 11828done 11829 done 11830IFS=$as_save_IFS 11831 11832fi 11833fi 11834MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11835if test -n "$MANIFEST_TOOL"; then 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11837$as_echo "$MANIFEST_TOOL" >&6; } 11838else 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11840$as_echo "no" >&6; } 11841fi 11842 11843 11844fi 11845if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11846 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11847 # Extract the first word of "mt", so it can be a program name with args. 11848set dummy mt; ac_word=$2 11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11850$as_echo_n "checking for $ac_word... " >&6; } 11851if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 11852 $as_echo_n "(cached) " >&6 11853else 11854 if test -n "$ac_ct_MANIFEST_TOOL"; then 11855 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11856else 11857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11858for as_dir in $PATH 11859do 11860 IFS=$as_save_IFS 11861 test -z "$as_dir" && as_dir=. 11862 for ac_exec_ext in '' $ac_executable_extensions; do 11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11864 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11866 break 2 11867 fi 11868done 11869 done 11870IFS=$as_save_IFS 11871 11872fi 11873fi 11874ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11875if test -n "$ac_ct_MANIFEST_TOOL"; then 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11877$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 11878else 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11880$as_echo "no" >&6; } 11881fi 11882 11883 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11884 MANIFEST_TOOL=":" 11885 else 11886 case $cross_compiling:$ac_tool_warned in 11887yes:) 11888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11890ac_tool_warned=yes ;; 11891esac 11892 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11893 fi 11894else 11895 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11896fi 11897 11898test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11900$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11901if ${lt_cv_path_mainfest_tool+:} false; then : 11902 $as_echo_n "(cached) " >&6 11903else 11904 lt_cv_path_mainfest_tool=no 11905 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11906 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11907 cat conftest.err >&5 11908 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11909 lt_cv_path_mainfest_tool=yes 11910 fi 11911 rm -f conftest* 11912fi 11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11914$as_echo "$lt_cv_path_mainfest_tool" >&6; } 11915if test "x$lt_cv_path_mainfest_tool" != xyes; then 11916 MANIFEST_TOOL=: 11917fi 11918 11919 11920 11921 11922 11923 11924 case $host_os in 11925 rhapsody* | darwin*) 11926 if test -n "$ac_tool_prefix"; then 11927 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11928set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11930$as_echo_n "checking for $ac_word... " >&6; } 11931if ${ac_cv_prog_DSYMUTIL+:} false; then : 11932 $as_echo_n "(cached) " >&6 11933else 11934 if test -n "$DSYMUTIL"; then 11935 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11936else 11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11938for as_dir in $PATH 11939do 11940 IFS=$as_save_IFS 11941 test -z "$as_dir" && as_dir=. 11942 for ac_exec_ext in '' $ac_executable_extensions; do 11943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11944 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11946 break 2 11947 fi 11948done 11949 done 11950IFS=$as_save_IFS 11951 11952fi 11953fi 11954DSYMUTIL=$ac_cv_prog_DSYMUTIL 11955if test -n "$DSYMUTIL"; then 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11957$as_echo "$DSYMUTIL" >&6; } 11958else 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11960$as_echo "no" >&6; } 11961fi 11962 11963 11964fi 11965if test -z "$ac_cv_prog_DSYMUTIL"; then 11966 ac_ct_DSYMUTIL=$DSYMUTIL 11967 # Extract the first word of "dsymutil", so it can be a program name with args. 11968set dummy dsymutil; ac_word=$2 11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11970$as_echo_n "checking for $ac_word... " >&6; } 11971if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 11972 $as_echo_n "(cached) " >&6 11973else 11974 if test -n "$ac_ct_DSYMUTIL"; then 11975 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11976else 11977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11978for as_dir in $PATH 11979do 11980 IFS=$as_save_IFS 11981 test -z "$as_dir" && as_dir=. 11982 for ac_exec_ext in '' $ac_executable_extensions; do 11983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11984 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11986 break 2 11987 fi 11988done 11989 done 11990IFS=$as_save_IFS 11991 11992fi 11993fi 11994ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11995if test -n "$ac_ct_DSYMUTIL"; then 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11997$as_echo "$ac_ct_DSYMUTIL" >&6; } 11998else 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12000$as_echo "no" >&6; } 12001fi 12002 12003 if test "x$ac_ct_DSYMUTIL" = x; then 12004 DSYMUTIL=":" 12005 else 12006 case $cross_compiling:$ac_tool_warned in 12007yes:) 12008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12010ac_tool_warned=yes ;; 12011esac 12012 DSYMUTIL=$ac_ct_DSYMUTIL 12013 fi 12014else 12015 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 12016fi 12017 12018 if test -n "$ac_tool_prefix"; then 12019 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 12020set dummy ${ac_tool_prefix}nmedit; ac_word=$2 12021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12022$as_echo_n "checking for $ac_word... " >&6; } 12023if ${ac_cv_prog_NMEDIT+:} false; then : 12024 $as_echo_n "(cached) " >&6 12025else 12026 if test -n "$NMEDIT"; then 12027 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 12028else 12029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12030for as_dir in $PATH 12031do 12032 IFS=$as_save_IFS 12033 test -z "$as_dir" && as_dir=. 12034 for ac_exec_ext in '' $ac_executable_extensions; do 12035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12036 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12038 break 2 12039 fi 12040done 12041 done 12042IFS=$as_save_IFS 12043 12044fi 12045fi 12046NMEDIT=$ac_cv_prog_NMEDIT 12047if test -n "$NMEDIT"; then 12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 12049$as_echo "$NMEDIT" >&6; } 12050else 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12052$as_echo "no" >&6; } 12053fi 12054 12055 12056fi 12057if test -z "$ac_cv_prog_NMEDIT"; then 12058 ac_ct_NMEDIT=$NMEDIT 12059 # Extract the first word of "nmedit", so it can be a program name with args. 12060set dummy nmedit; ac_word=$2 12061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12062$as_echo_n "checking for $ac_word... " >&6; } 12063if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 12064 $as_echo_n "(cached) " >&6 12065else 12066 if test -n "$ac_ct_NMEDIT"; then 12067 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 12068else 12069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12070for as_dir in $PATH 12071do 12072 IFS=$as_save_IFS 12073 test -z "$as_dir" && as_dir=. 12074 for ac_exec_ext in '' $ac_executable_extensions; do 12075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12076 ac_cv_prog_ac_ct_NMEDIT="nmedit" 12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12078 break 2 12079 fi 12080done 12081 done 12082IFS=$as_save_IFS 12083 12084fi 12085fi 12086ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 12087if test -n "$ac_ct_NMEDIT"; then 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 12089$as_echo "$ac_ct_NMEDIT" >&6; } 12090else 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12092$as_echo "no" >&6; } 12093fi 12094 12095 if test "x$ac_ct_NMEDIT" = x; then 12096 NMEDIT=":" 12097 else 12098 case $cross_compiling:$ac_tool_warned in 12099yes:) 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12102ac_tool_warned=yes ;; 12103esac 12104 NMEDIT=$ac_ct_NMEDIT 12105 fi 12106else 12107 NMEDIT="$ac_cv_prog_NMEDIT" 12108fi 12109 12110 if test -n "$ac_tool_prefix"; then 12111 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 12112set dummy ${ac_tool_prefix}lipo; ac_word=$2 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12114$as_echo_n "checking for $ac_word... " >&6; } 12115if ${ac_cv_prog_LIPO+:} false; then : 12116 $as_echo_n "(cached) " >&6 12117else 12118 if test -n "$LIPO"; then 12119 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 12120else 12121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12122for as_dir in $PATH 12123do 12124 IFS=$as_save_IFS 12125 test -z "$as_dir" && as_dir=. 12126 for ac_exec_ext in '' $ac_executable_extensions; do 12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12128 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12130 break 2 12131 fi 12132done 12133 done 12134IFS=$as_save_IFS 12135 12136fi 12137fi 12138LIPO=$ac_cv_prog_LIPO 12139if test -n "$LIPO"; then 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 12141$as_echo "$LIPO" >&6; } 12142else 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12144$as_echo "no" >&6; } 12145fi 12146 12147 12148fi 12149if test -z "$ac_cv_prog_LIPO"; then 12150 ac_ct_LIPO=$LIPO 12151 # Extract the first word of "lipo", so it can be a program name with args. 12152set dummy lipo; ac_word=$2 12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12154$as_echo_n "checking for $ac_word... " >&6; } 12155if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 12156 $as_echo_n "(cached) " >&6 12157else 12158 if test -n "$ac_ct_LIPO"; then 12159 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 12160else 12161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12162for as_dir in $PATH 12163do 12164 IFS=$as_save_IFS 12165 test -z "$as_dir" && as_dir=. 12166 for ac_exec_ext in '' $ac_executable_extensions; do 12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12168 ac_cv_prog_ac_ct_LIPO="lipo" 12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12170 break 2 12171 fi 12172done 12173 done 12174IFS=$as_save_IFS 12175 12176fi 12177fi 12178ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 12179if test -n "$ac_ct_LIPO"; then 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 12181$as_echo "$ac_ct_LIPO" >&6; } 12182else 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12184$as_echo "no" >&6; } 12185fi 12186 12187 if test "x$ac_ct_LIPO" = x; then 12188 LIPO=":" 12189 else 12190 case $cross_compiling:$ac_tool_warned in 12191yes:) 12192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12194ac_tool_warned=yes ;; 12195esac 12196 LIPO=$ac_ct_LIPO 12197 fi 12198else 12199 LIPO="$ac_cv_prog_LIPO" 12200fi 12201 12202 if test -n "$ac_tool_prefix"; then 12203 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 12204set dummy ${ac_tool_prefix}otool; ac_word=$2 12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12206$as_echo_n "checking for $ac_word... " >&6; } 12207if ${ac_cv_prog_OTOOL+:} false; then : 12208 $as_echo_n "(cached) " >&6 12209else 12210 if test -n "$OTOOL"; then 12211 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 12212else 12213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12214for as_dir in $PATH 12215do 12216 IFS=$as_save_IFS 12217 test -z "$as_dir" && as_dir=. 12218 for ac_exec_ext in '' $ac_executable_extensions; do 12219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12220 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12222 break 2 12223 fi 12224done 12225 done 12226IFS=$as_save_IFS 12227 12228fi 12229fi 12230OTOOL=$ac_cv_prog_OTOOL 12231if test -n "$OTOOL"; then 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 12233$as_echo "$OTOOL" >&6; } 12234else 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12236$as_echo "no" >&6; } 12237fi 12238 12239 12240fi 12241if test -z "$ac_cv_prog_OTOOL"; then 12242 ac_ct_OTOOL=$OTOOL 12243 # Extract the first word of "otool", so it can be a program name with args. 12244set dummy otool; 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_ac_ct_OTOOL+:} false; then : 12248 $as_echo_n "(cached) " >&6 12249else 12250 if test -n "$ac_ct_OTOOL"; then 12251 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12260 ac_cv_prog_ac_ct_OTOOL="otool" 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 12270ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 12271if test -n "$ac_ct_OTOOL"; then 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 12273$as_echo "$ac_ct_OTOOL" >&6; } 12274else 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12276$as_echo "no" >&6; } 12277fi 12278 12279 if test "x$ac_ct_OTOOL" = x; then 12280 OTOOL=":" 12281 else 12282 case $cross_compiling:$ac_tool_warned in 12283yes:) 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12286ac_tool_warned=yes ;; 12287esac 12288 OTOOL=$ac_ct_OTOOL 12289 fi 12290else 12291 OTOOL="$ac_cv_prog_OTOOL" 12292fi 12293 12294 if test -n "$ac_tool_prefix"; then 12295 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 12296set dummy ${ac_tool_prefix}otool64; ac_word=$2 12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12298$as_echo_n "checking for $ac_word... " >&6; } 12299if ${ac_cv_prog_OTOOL64+:} false; then : 12300 $as_echo_n "(cached) " >&6 12301else 12302 if test -n "$OTOOL64"; then 12303 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 12304else 12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12306for as_dir in $PATH 12307do 12308 IFS=$as_save_IFS 12309 test -z "$as_dir" && as_dir=. 12310 for ac_exec_ext in '' $ac_executable_extensions; do 12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12312 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12314 break 2 12315 fi 12316done 12317 done 12318IFS=$as_save_IFS 12319 12320fi 12321fi 12322OTOOL64=$ac_cv_prog_OTOOL64 12323if test -n "$OTOOL64"; then 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 12325$as_echo "$OTOOL64" >&6; } 12326else 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12328$as_echo "no" >&6; } 12329fi 12330 12331 12332fi 12333if test -z "$ac_cv_prog_OTOOL64"; then 12334 ac_ct_OTOOL64=$OTOOL64 12335 # Extract the first word of "otool64", so it can be a program name with args. 12336set dummy otool64; ac_word=$2 12337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12338$as_echo_n "checking for $ac_word... " >&6; } 12339if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 12340 $as_echo_n "(cached) " >&6 12341else 12342 if test -n "$ac_ct_OTOOL64"; then 12343 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 12344else 12345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12346for as_dir in $PATH 12347do 12348 IFS=$as_save_IFS 12349 test -z "$as_dir" && as_dir=. 12350 for ac_exec_ext in '' $ac_executable_extensions; do 12351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12352 ac_cv_prog_ac_ct_OTOOL64="otool64" 12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12354 break 2 12355 fi 12356done 12357 done 12358IFS=$as_save_IFS 12359 12360fi 12361fi 12362ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 12363if test -n "$ac_ct_OTOOL64"; then 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 12365$as_echo "$ac_ct_OTOOL64" >&6; } 12366else 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12368$as_echo "no" >&6; } 12369fi 12370 12371 if test "x$ac_ct_OTOOL64" = x; then 12372 OTOOL64=":" 12373 else 12374 case $cross_compiling:$ac_tool_warned in 12375yes:) 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12378ac_tool_warned=yes ;; 12379esac 12380 OTOOL64=$ac_ct_OTOOL64 12381 fi 12382else 12383 OTOOL64="$ac_cv_prog_OTOOL64" 12384fi 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 12413$as_echo_n "checking for -single_module linker flag... " >&6; } 12414if ${lt_cv_apple_cc_single_mod+:} false; then : 12415 $as_echo_n "(cached) " >&6 12416else 12417 lt_cv_apple_cc_single_mod=no 12418 if test -z "${LT_MULTI_MODULE}"; then 12419 # By default we will add the -single_module flag. You can override 12420 # by either setting the environment variable LT_MULTI_MODULE 12421 # non-empty at configure time, or by adding -multi_module to the 12422 # link flags. 12423 rm -rf libconftest.dylib* 12424 echo "int foo(void){return 1;}" > conftest.c 12425 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12426-dynamiclib -Wl,-single_module conftest.c" >&5 12427 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12428 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 12429 _lt_result=$? 12430 # If there is a non-empty error log, and "single_module" 12431 # appears in it, assume the flag caused a linker warning 12432 if test -s conftest.err && $GREP single_module conftest.err; then 12433 cat conftest.err >&5 12434 # Otherwise, if the output was created with a 0 exit code from 12435 # the compiler, it worked. 12436 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 12437 lt_cv_apple_cc_single_mod=yes 12438 else 12439 cat conftest.err >&5 12440 fi 12441 rm -rf libconftest.dylib* 12442 rm -f conftest.* 12443 fi 12444fi 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 12446$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 12447 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 12449$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 12450if ${lt_cv_ld_exported_symbols_list+:} false; then : 12451 $as_echo_n "(cached) " >&6 12452else 12453 lt_cv_ld_exported_symbols_list=no 12454 save_LDFLAGS=$LDFLAGS 12455 echo "_main" > conftest.sym 12456 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12458/* end confdefs.h. */ 12459 12460int 12461main () 12462{ 12463 12464 ; 12465 return 0; 12466} 12467_ACEOF 12468if ac_fn_c_try_link "$LINENO"; then : 12469 lt_cv_ld_exported_symbols_list=yes 12470else 12471 lt_cv_ld_exported_symbols_list=no 12472fi 12473rm -f core conftest.err conftest.$ac_objext \ 12474 conftest$ac_exeext conftest.$ac_ext 12475 LDFLAGS="$save_LDFLAGS" 12476 12477fi 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 12479$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 12480 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 12482$as_echo_n "checking for -force_load linker flag... " >&6; } 12483if ${lt_cv_ld_force_load+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485else 12486 lt_cv_ld_force_load=no 12487 cat > conftest.c << _LT_EOF 12488int forced_loaded() { return 2;} 12489_LT_EOF 12490 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 12491 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 12492 echo "$AR cru libconftest.a conftest.o" >&5 12493 $AR cru libconftest.a conftest.o 2>&5 12494 echo "$RANLIB libconftest.a" >&5 12495 $RANLIB libconftest.a 2>&5 12496 cat > conftest.c << _LT_EOF 12497int main() { return 0;} 12498_LT_EOF 12499 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 12500 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 12501 _lt_result=$? 12502 if test -s conftest.err && $GREP force_load conftest.err; then 12503 cat conftest.err >&5 12504 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 12505 lt_cv_ld_force_load=yes 12506 else 12507 cat conftest.err >&5 12508 fi 12509 rm -f conftest.err libconftest.a conftest conftest.c 12510 rm -rf conftest.dSYM 12511 12512fi 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 12514$as_echo "$lt_cv_ld_force_load" >&6; } 12515 case $host_os in 12516 rhapsody* | darwin1.[012]) 12517 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 12518 darwin1.*) 12519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 12520 darwin*) # darwin 5.x on 12521 # if running on 10.5 or later, the deployment target defaults 12522 # to the OS version, if on x86, and 10.4, the deployment 12523 # target defaults to 10.4. Don't you love it? 12524 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 12525 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 12526 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 12527 10.[012]*) 12528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 12529 10.*) 12530 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 12531 esac 12532 ;; 12533 esac 12534 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 12535 _lt_dar_single_mod='$single_module' 12536 fi 12537 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 12538 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 12539 else 12540 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 12541 fi 12542 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 12543 _lt_dsymutil='~$DSYMUTIL $lib || :' 12544 else 12545 _lt_dsymutil= 12546 fi 12547 ;; 12548 esac 12549 12550for ac_header in dlfcn.h 12551do : 12552 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12553" 12554if test "x$ac_cv_header_dlfcn_h" = xyes; then : 12555 cat >>confdefs.h <<_ACEOF 12556#define HAVE_DLFCN_H 1 12557_ACEOF 12558 12559fi 12560 12561done 12562 12563 12564 12565 12566 12567# Set options 12568 12569 12570 12571 enable_dlopen=no 12572 12573 12574 enable_win32_dll=no 12575 12576 12577 # Check whether --enable-shared was given. 12578if test "${enable_shared+set}" = set; then : 12579 enableval=$enable_shared; p=${PACKAGE-default} 12580 case $enableval in 12581 yes) enable_shared=yes ;; 12582 no) enable_shared=no ;; 12583 *) 12584 enable_shared=no 12585 # Look at the argument we got. We use all the common list separators. 12586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12587 for pkg in $enableval; do 12588 IFS="$lt_save_ifs" 12589 if test "X$pkg" = "X$p"; then 12590 enable_shared=yes 12591 fi 12592 done 12593 IFS="$lt_save_ifs" 12594 ;; 12595 esac 12596else 12597 enable_shared=yes 12598fi 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610# Check whether --with-pic was given. 12611if test "${with_pic+set}" = set; then : 12612 withval=$with_pic; lt_p=${PACKAGE-default} 12613 case $withval in 12614 yes|no) pic_mode=$withval ;; 12615 *) 12616 pic_mode=default 12617 # Look at the argument we got. We use all the common list separators. 12618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12619 for lt_pkg in $withval; do 12620 IFS="$lt_save_ifs" 12621 if test "X$lt_pkg" = "X$lt_p"; then 12622 pic_mode=yes 12623 fi 12624 done 12625 IFS="$lt_save_ifs" 12626 ;; 12627 esac 12628else 12629 pic_mode=default 12630fi 12631 12632 12633test -z "$pic_mode" && pic_mode=default 12634 12635 12636 12637 12638 12639 12640 12641 # Check whether --enable-fast-install was given. 12642if test "${enable_fast_install+set}" = set; then : 12643 enableval=$enable_fast_install; p=${PACKAGE-default} 12644 case $enableval in 12645 yes) enable_fast_install=yes ;; 12646 no) enable_fast_install=no ;; 12647 *) 12648 enable_fast_install=no 12649 # Look at the argument we got. We use all the common list separators. 12650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12651 for pkg in $enableval; do 12652 IFS="$lt_save_ifs" 12653 if test "X$pkg" = "X$p"; then 12654 enable_fast_install=yes 12655 fi 12656 done 12657 IFS="$lt_save_ifs" 12658 ;; 12659 esac 12660else 12661 enable_fast_install=yes 12662fi 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674# This can be used to rebuild libtool when needed 12675LIBTOOL_DEPS="$ltmain" 12676 12677# Always use our own libtool. 12678LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709test -z "$LN_S" && LN_S="ln -s" 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724if test -n "${ZSH_VERSION+set}" ; then 12725 setopt NO_GLOB_SUBST 12726fi 12727 12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12729$as_echo_n "checking for objdir... " >&6; } 12730if ${lt_cv_objdir+:} false; then : 12731 $as_echo_n "(cached) " >&6 12732else 12733 rm -f .libs 2>/dev/null 12734mkdir .libs 2>/dev/null 12735if test -d .libs; then 12736 lt_cv_objdir=.libs 12737else 12738 # MS-DOS does not allow filenames that begin with a dot. 12739 lt_cv_objdir=_libs 12740fi 12741rmdir .libs 2>/dev/null 12742fi 12743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12744$as_echo "$lt_cv_objdir" >&6; } 12745objdir=$lt_cv_objdir 12746 12747 12748 12749 12750 12751cat >>confdefs.h <<_ACEOF 12752#define LT_OBJDIR "$lt_cv_objdir/" 12753_ACEOF 12754 12755 12756 12757 12758case $host_os in 12759aix3*) 12760 # AIX sometimes has problems with the GCC collect2 program. For some 12761 # reason, if we set the COLLECT_NAMES environment variable, the problems 12762 # vanish in a puff of smoke. 12763 if test "X${COLLECT_NAMES+set}" != Xset; then 12764 COLLECT_NAMES= 12765 export COLLECT_NAMES 12766 fi 12767 ;; 12768esac 12769 12770# Global variables: 12771ofile=libtool 12772can_build_shared=yes 12773 12774# All known linkers require a `.a' archive for static linking (except MSVC, 12775# which needs '.lib'). 12776libext=a 12777 12778with_gnu_ld="$lt_cv_prog_gnu_ld" 12779 12780old_CC="$CC" 12781old_CFLAGS="$CFLAGS" 12782 12783# Set sane defaults for various variables 12784test -z "$CC" && CC=cc 12785test -z "$LTCC" && LTCC=$CC 12786test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12787test -z "$LD" && LD=ld 12788test -z "$ac_objext" && ac_objext=o 12789 12790for cc_temp in $compiler""; do 12791 case $cc_temp in 12792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12794 \-*) ;; 12795 *) break;; 12796 esac 12797done 12798cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12799 12800 12801# Only perform the check for file, if the check method requires it 12802test -z "$MAGIC_CMD" && MAGIC_CMD=file 12803case $deplibs_check_method in 12804file_magic*) 12805 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12807$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 12808if ${lt_cv_path_MAGIC_CMD+:} false; then : 12809 $as_echo_n "(cached) " >&6 12810else 12811 case $MAGIC_CMD in 12812[\\/*] | ?:[\\/]*) 12813 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 12814 ;; 12815*) 12816 lt_save_MAGIC_CMD="$MAGIC_CMD" 12817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12818 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12819 for ac_dir in $ac_dummy; do 12820 IFS="$lt_save_ifs" 12821 test -z "$ac_dir" && ac_dir=. 12822 if test -f $ac_dir/${ac_tool_prefix}file; then 12823 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 12824 if test -n "$file_magic_test_file"; then 12825 case $deplibs_check_method in 12826 "file_magic "*) 12827 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12829 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12830 $EGREP "$file_magic_regex" > /dev/null; then 12831 : 12832 else 12833 cat <<_LT_EOF 1>&2 12834 12835*** Warning: the command libtool uses to detect shared libraries, 12836*** $file_magic_cmd, produces output that libtool cannot recognize. 12837*** The result is that libtool may fail to recognize shared libraries 12838*** as such. This will affect the creation of libtool libraries that 12839*** depend on shared libraries, but programs linked with such libtool 12840*** libraries will work regardless of this problem. Nevertheless, you 12841*** may want to report the problem to your system manager and/or to 12842*** bug-libtool@gnu.org 12843 12844_LT_EOF 12845 fi ;; 12846 esac 12847 fi 12848 break 12849 fi 12850 done 12851 IFS="$lt_save_ifs" 12852 MAGIC_CMD="$lt_save_MAGIC_CMD" 12853 ;; 12854esac 12855fi 12856 12857MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12858if test -n "$MAGIC_CMD"; then 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12860$as_echo "$MAGIC_CMD" >&6; } 12861else 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12863$as_echo "no" >&6; } 12864fi 12865 12866 12867 12868 12869 12870if test -z "$lt_cv_path_MAGIC_CMD"; then 12871 if test -n "$ac_tool_prefix"; then 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12873$as_echo_n "checking for file... " >&6; } 12874if ${lt_cv_path_MAGIC_CMD+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876else 12877 case $MAGIC_CMD in 12878[\\/*] | ?:[\\/]*) 12879 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 12880 ;; 12881*) 12882 lt_save_MAGIC_CMD="$MAGIC_CMD" 12883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12884 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12885 for ac_dir in $ac_dummy; do 12886 IFS="$lt_save_ifs" 12887 test -z "$ac_dir" && ac_dir=. 12888 if test -f $ac_dir/file; then 12889 lt_cv_path_MAGIC_CMD="$ac_dir/file" 12890 if test -n "$file_magic_test_file"; then 12891 case $deplibs_check_method in 12892 "file_magic "*) 12893 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12896 $EGREP "$file_magic_regex" > /dev/null; then 12897 : 12898 else 12899 cat <<_LT_EOF 1>&2 12900 12901*** Warning: the command libtool uses to detect shared libraries, 12902*** $file_magic_cmd, produces output that libtool cannot recognize. 12903*** The result is that libtool may fail to recognize shared libraries 12904*** as such. This will affect the creation of libtool libraries that 12905*** depend on shared libraries, but programs linked with such libtool 12906*** libraries will work regardless of this problem. Nevertheless, you 12907*** may want to report the problem to your system manager and/or to 12908*** bug-libtool@gnu.org 12909 12910_LT_EOF 12911 fi ;; 12912 esac 12913 fi 12914 break 12915 fi 12916 done 12917 IFS="$lt_save_ifs" 12918 MAGIC_CMD="$lt_save_MAGIC_CMD" 12919 ;; 12920esac 12921fi 12922 12923MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12924if test -n "$MAGIC_CMD"; then 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12926$as_echo "$MAGIC_CMD" >&6; } 12927else 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12929$as_echo "no" >&6; } 12930fi 12931 12932 12933 else 12934 MAGIC_CMD=: 12935 fi 12936fi 12937 12938 fi 12939 ;; 12940esac 12941 12942# Use C for the default configuration in the libtool script 12943 12944lt_save_CC="$CC" 12945ac_ext=c 12946ac_cpp='$CPP $CPPFLAGS' 12947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12949ac_compiler_gnu=$ac_cv_c_compiler_gnu 12950 12951 12952# Source file extension for C test sources. 12953ac_ext=c 12954 12955# Object file extension for compiled C test sources. 12956objext=o 12957objext=$objext 12958 12959# Code to be used in simple compile tests 12960lt_simple_compile_test_code="int some_variable = 0;" 12961 12962# Code to be used in simple link tests 12963lt_simple_link_test_code='int main(){return(0);}' 12964 12965 12966 12967 12968 12969 12970 12971# If no C compiler was specified, use CC. 12972LTCC=${LTCC-"$CC"} 12973 12974# If no C compiler flags were specified, use CFLAGS. 12975LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12976 12977# Allow CC to be a program name with arguments. 12978compiler=$CC 12979 12980# Save the default compiler, since it gets overwritten when the other 12981# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12982compiler_DEFAULT=$CC 12983 12984# save warnings/boilerplate of simple test code 12985ac_outfile=conftest.$ac_objext 12986echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12987eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12988_lt_compiler_boilerplate=`cat conftest.err` 12989$RM conftest* 12990 12991ac_outfile=conftest.$ac_objext 12992echo "$lt_simple_link_test_code" >conftest.$ac_ext 12993eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12994_lt_linker_boilerplate=`cat conftest.err` 12995$RM -r conftest* 12996 12997 12998if test -n "$compiler"; then 12999 13000lt_prog_compiler_no_builtin_flag= 13001 13002if test "$GCC" = yes; then 13003 case $cc_basename in 13004 nvcc*) 13005 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 13006 *) 13007 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 13008 esac 13009 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 13011$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 13012if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 13013 $as_echo_n "(cached) " >&6 13014else 13015 lt_cv_prog_compiler_rtti_exceptions=no 13016 ac_outfile=conftest.$ac_objext 13017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13018 lt_compiler_flag="-fno-rtti -fno-exceptions" 13019 # Insert the option either (1) after the last *FLAGS variable, or 13020 # (2) before a word containing "conftest.", or (3) at the end. 13021 # Note that $ac_compile itself does not contain backslashes and begins 13022 # with a dollar sign (not a hyphen), so the echo should work correctly. 13023 # The option is referenced via a variable to avoid confusing sed. 13024 lt_compile=`echo "$ac_compile" | $SED \ 13025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13027 -e 's:$: $lt_compiler_flag:'` 13028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13029 (eval "$lt_compile" 2>conftest.err) 13030 ac_status=$? 13031 cat conftest.err >&5 13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13033 if (exit $ac_status) && test -s "$ac_outfile"; then 13034 # The compiler can only warn and ignore the option if not recognized 13035 # So say no if there are warnings other than the usual output. 13036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13039 lt_cv_prog_compiler_rtti_exceptions=yes 13040 fi 13041 fi 13042 $RM conftest* 13043 13044fi 13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 13046$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 13047 13048if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 13049 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 13050else 13051 : 13052fi 13053 13054fi 13055 13056 13057 13058 13059 13060 13061 lt_prog_compiler_wl= 13062lt_prog_compiler_pic= 13063lt_prog_compiler_static= 13064 13065 13066 if test "$GCC" = yes; then 13067 lt_prog_compiler_wl='-Wl,' 13068 lt_prog_compiler_static='-static' 13069 13070 case $host_os in 13071 aix*) 13072 # All AIX code is PIC. 13073 if test "$host_cpu" = ia64; then 13074 # AIX 5 now supports IA64 processor 13075 lt_prog_compiler_static='-Bstatic' 13076 fi 13077 ;; 13078 13079 amigaos*) 13080 case $host_cpu in 13081 powerpc) 13082 # see comment about AmigaOS4 .so support 13083 lt_prog_compiler_pic='-fPIC' 13084 ;; 13085 m68k) 13086 # FIXME: we need at least 68020 code to build shared libraries, but 13087 # adding the `-m68020' flag to GCC prevents building anything better, 13088 # like `-m68040'. 13089 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 13090 ;; 13091 esac 13092 ;; 13093 13094 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13095 # PIC is the default for these OSes. 13096 ;; 13097 13098 mingw* | cygwin* | pw32* | os2* | cegcc*) 13099 # This hack is so that the source file can tell whether it is being 13100 # built for inclusion in a dll (and should export symbols for example). 13101 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13102 # (--disable-auto-import) libraries 13103 lt_prog_compiler_pic='-DDLL_EXPORT' 13104 ;; 13105 13106 darwin* | rhapsody*) 13107 # PIC is the default on this platform 13108 # Common symbols not allowed in MH_DYLIB files 13109 lt_prog_compiler_pic='-fno-common' 13110 ;; 13111 13112 haiku*) 13113 # PIC is the default for Haiku. 13114 # The "-static" flag exists, but is broken. 13115 lt_prog_compiler_static= 13116 ;; 13117 13118 hpux*) 13119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13121 # sets the default TLS model and affects inlining. 13122 case $host_cpu in 13123 hppa*64*) 13124 # +Z the default 13125 ;; 13126 *) 13127 lt_prog_compiler_pic='-fPIC' 13128 ;; 13129 esac 13130 ;; 13131 13132 interix[3-9]*) 13133 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13134 # Instead, we relocate shared libraries at runtime. 13135 ;; 13136 13137 msdosdjgpp*) 13138 # Just because we use GCC doesn't mean we suddenly get shared libraries 13139 # on systems that don't support them. 13140 lt_prog_compiler_can_build_shared=no 13141 enable_shared=no 13142 ;; 13143 13144 *nto* | *qnx*) 13145 # QNX uses GNU C++, but need to define -shared option too, otherwise 13146 # it will coredump. 13147 lt_prog_compiler_pic='-fPIC -shared' 13148 ;; 13149 13150 sysv4*MP*) 13151 if test -d /usr/nec; then 13152 lt_prog_compiler_pic=-Kconform_pic 13153 fi 13154 ;; 13155 13156 *) 13157 lt_prog_compiler_pic='-fPIC' 13158 ;; 13159 esac 13160 13161 case $cc_basename in 13162 nvcc*) # Cuda Compiler Driver 2.2 13163 lt_prog_compiler_wl='-Xlinker ' 13164 if test -n "$lt_prog_compiler_pic"; then 13165 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13166 fi 13167 ;; 13168 esac 13169 else 13170 # PORTME Check for flag to pass linker flags through the system compiler. 13171 case $host_os in 13172 aix*) 13173 lt_prog_compiler_wl='-Wl,' 13174 if test "$host_cpu" = ia64; then 13175 # AIX 5 now supports IA64 processor 13176 lt_prog_compiler_static='-Bstatic' 13177 else 13178 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13179 fi 13180 ;; 13181 13182 mingw* | cygwin* | pw32* | os2* | cegcc*) 13183 # This hack is so that the source file can tell whether it is being 13184 # built for inclusion in a dll (and should export symbols for example). 13185 lt_prog_compiler_pic='-DDLL_EXPORT' 13186 ;; 13187 13188 hpux9* | hpux10* | hpux11*) 13189 lt_prog_compiler_wl='-Wl,' 13190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13191 # not for PA HP-UX. 13192 case $host_cpu in 13193 hppa*64*|ia64*) 13194 # +Z the default 13195 ;; 13196 *) 13197 lt_prog_compiler_pic='+Z' 13198 ;; 13199 esac 13200 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13201 lt_prog_compiler_static='${wl}-a ${wl}archive' 13202 ;; 13203 13204 irix5* | irix6* | nonstopux*) 13205 lt_prog_compiler_wl='-Wl,' 13206 # PIC (with -KPIC) is the default. 13207 lt_prog_compiler_static='-non_shared' 13208 ;; 13209 13210 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13211 case $cc_basename in 13212 # old Intel for x86_64 which still supported -KPIC. 13213 ecc*) 13214 lt_prog_compiler_wl='-Wl,' 13215 lt_prog_compiler_pic='-KPIC' 13216 lt_prog_compiler_static='-static' 13217 ;; 13218 # icc used to be incompatible with GCC. 13219 # ICC 10 doesn't accept -KPIC any more. 13220 icc* | ifort*) 13221 lt_prog_compiler_wl='-Wl,' 13222 lt_prog_compiler_pic='-fPIC' 13223 lt_prog_compiler_static='-static' 13224 ;; 13225 # Lahey Fortran 8.1. 13226 lf95*) 13227 lt_prog_compiler_wl='-Wl,' 13228 lt_prog_compiler_pic='--shared' 13229 lt_prog_compiler_static='--static' 13230 ;; 13231 nagfor*) 13232 # NAG Fortran compiler 13233 lt_prog_compiler_wl='-Wl,-Wl,,' 13234 lt_prog_compiler_pic='-PIC' 13235 lt_prog_compiler_static='-Bstatic' 13236 ;; 13237 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13238 # Portland Group compilers (*not* the Pentium gcc compiler, 13239 # which looks to be a dead project) 13240 lt_prog_compiler_wl='-Wl,' 13241 lt_prog_compiler_pic='-fpic' 13242 lt_prog_compiler_static='-Bstatic' 13243 ;; 13244 ccc*) 13245 lt_prog_compiler_wl='-Wl,' 13246 # All Alpha code is PIC. 13247 lt_prog_compiler_static='-non_shared' 13248 ;; 13249 xl* | bgxl* | bgf* | mpixl*) 13250 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13251 lt_prog_compiler_wl='-Wl,' 13252 lt_prog_compiler_pic='-qpic' 13253 lt_prog_compiler_static='-qstaticlink' 13254 ;; 13255 *) 13256 case `$CC -V 2>&1 | sed 5q` in 13257 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13258 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13259 lt_prog_compiler_pic='-KPIC' 13260 lt_prog_compiler_static='-Bstatic' 13261 lt_prog_compiler_wl='' 13262 ;; 13263 *Sun\ F* | *Sun*Fortran*) 13264 lt_prog_compiler_pic='-KPIC' 13265 lt_prog_compiler_static='-Bstatic' 13266 lt_prog_compiler_wl='-Qoption ld ' 13267 ;; 13268 *Sun\ C*) 13269 # Sun C 5.9 13270 lt_prog_compiler_pic='-KPIC' 13271 lt_prog_compiler_static='-Bstatic' 13272 lt_prog_compiler_wl='-Wl,' 13273 ;; 13274 *Intel*\ [CF]*Compiler*) 13275 lt_prog_compiler_wl='-Wl,' 13276 lt_prog_compiler_pic='-fPIC' 13277 lt_prog_compiler_static='-static' 13278 ;; 13279 *Portland\ Group*) 13280 lt_prog_compiler_wl='-Wl,' 13281 lt_prog_compiler_pic='-fpic' 13282 lt_prog_compiler_static='-Bstatic' 13283 ;; 13284 esac 13285 ;; 13286 esac 13287 ;; 13288 13289 newsos6) 13290 lt_prog_compiler_pic='-KPIC' 13291 lt_prog_compiler_static='-Bstatic' 13292 ;; 13293 13294 *nto* | *qnx*) 13295 # QNX uses GNU C++, but need to define -shared option too, otherwise 13296 # it will coredump. 13297 lt_prog_compiler_pic='-fPIC -shared' 13298 ;; 13299 13300 osf3* | osf4* | osf5*) 13301 lt_prog_compiler_wl='-Wl,' 13302 # All OSF/1 code is PIC. 13303 lt_prog_compiler_static='-non_shared' 13304 ;; 13305 13306 rdos*) 13307 lt_prog_compiler_static='-non_shared' 13308 ;; 13309 13310 solaris*) 13311 lt_prog_compiler_pic='-KPIC' 13312 lt_prog_compiler_static='-Bstatic' 13313 case $cc_basename in 13314 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13315 lt_prog_compiler_wl='-Qoption ld ';; 13316 *) 13317 lt_prog_compiler_wl='-Wl,';; 13318 esac 13319 ;; 13320 13321 sunos4*) 13322 lt_prog_compiler_wl='-Qoption ld ' 13323 lt_prog_compiler_pic='-PIC' 13324 lt_prog_compiler_static='-Bstatic' 13325 ;; 13326 13327 sysv4 | sysv4.2uw2* | sysv4.3*) 13328 lt_prog_compiler_wl='-Wl,' 13329 lt_prog_compiler_pic='-KPIC' 13330 lt_prog_compiler_static='-Bstatic' 13331 ;; 13332 13333 sysv4*MP*) 13334 if test -d /usr/nec ;then 13335 lt_prog_compiler_pic='-Kconform_pic' 13336 lt_prog_compiler_static='-Bstatic' 13337 fi 13338 ;; 13339 13340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13341 lt_prog_compiler_wl='-Wl,' 13342 lt_prog_compiler_pic='-KPIC' 13343 lt_prog_compiler_static='-Bstatic' 13344 ;; 13345 13346 unicos*) 13347 lt_prog_compiler_wl='-Wl,' 13348 lt_prog_compiler_can_build_shared=no 13349 ;; 13350 13351 uts4*) 13352 lt_prog_compiler_pic='-pic' 13353 lt_prog_compiler_static='-Bstatic' 13354 ;; 13355 13356 *) 13357 lt_prog_compiler_can_build_shared=no 13358 ;; 13359 esac 13360 fi 13361 13362case $host_os in 13363 # For platforms which do not support PIC, -DPIC is meaningless: 13364 *djgpp*) 13365 lt_prog_compiler_pic= 13366 ;; 13367 *) 13368 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13369 ;; 13370esac 13371 13372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13373$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13374if ${lt_cv_prog_compiler_pic+:} false; then : 13375 $as_echo_n "(cached) " >&6 13376else 13377 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13378fi 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13380$as_echo "$lt_cv_prog_compiler_pic" >&6; } 13381lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13382 13383# 13384# Check to make sure the PIC flag actually works. 13385# 13386if test -n "$lt_prog_compiler_pic"; then 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13388$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13389if ${lt_cv_prog_compiler_pic_works+:} false; then : 13390 $as_echo_n "(cached) " >&6 13391else 13392 lt_cv_prog_compiler_pic_works=no 13393 ac_outfile=conftest.$ac_objext 13394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13395 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 13396 # Insert the option either (1) after the last *FLAGS variable, or 13397 # (2) before a word containing "conftest.", or (3) at the end. 13398 # Note that $ac_compile itself does not contain backslashes and begins 13399 # with a dollar sign (not a hyphen), so the echo should work correctly. 13400 # The option is referenced via a variable to avoid confusing sed. 13401 lt_compile=`echo "$ac_compile" | $SED \ 13402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13404 -e 's:$: $lt_compiler_flag:'` 13405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13406 (eval "$lt_compile" 2>conftest.err) 13407 ac_status=$? 13408 cat conftest.err >&5 13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13410 if (exit $ac_status) && test -s "$ac_outfile"; then 13411 # The compiler can only warn and ignore the option if not recognized 13412 # So say no if there are warnings other than the usual output. 13413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13416 lt_cv_prog_compiler_pic_works=yes 13417 fi 13418 fi 13419 $RM conftest* 13420 13421fi 13422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13423$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 13424 13425if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 13426 case $lt_prog_compiler_pic in 13427 "" | " "*) ;; 13428 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13429 esac 13430else 13431 lt_prog_compiler_pic= 13432 lt_prog_compiler_can_build_shared=no 13433fi 13434 13435fi 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447# 13448# Check to make sure the static flag actually works. 13449# 13450wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13452$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13453if ${lt_cv_prog_compiler_static_works+:} false; then : 13454 $as_echo_n "(cached) " >&6 13455else 13456 lt_cv_prog_compiler_static_works=no 13457 save_LDFLAGS="$LDFLAGS" 13458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13459 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13461 # The linker can only warn and ignore the option if not recognized 13462 # So say no if there are warnings 13463 if test -s conftest.err; then 13464 # Append any errors to the config.log. 13465 cat conftest.err 1>&5 13466 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13468 if diff conftest.exp conftest.er2 >/dev/null; then 13469 lt_cv_prog_compiler_static_works=yes 13470 fi 13471 else 13472 lt_cv_prog_compiler_static_works=yes 13473 fi 13474 fi 13475 $RM -r conftest* 13476 LDFLAGS="$save_LDFLAGS" 13477 13478fi 13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13480$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 13481 13482if test x"$lt_cv_prog_compiler_static_works" = xyes; then 13483 : 13484else 13485 lt_prog_compiler_static= 13486fi 13487 13488 13489 13490 13491 13492 13493 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13495$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13496if ${lt_cv_prog_compiler_c_o+:} false; then : 13497 $as_echo_n "(cached) " >&6 13498else 13499 lt_cv_prog_compiler_c_o=no 13500 $RM -r conftest 2>/dev/null 13501 mkdir conftest 13502 cd conftest 13503 mkdir out 13504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13505 13506 lt_compiler_flag="-o out/conftest2.$ac_objext" 13507 # Insert the option either (1) after the last *FLAGS variable, or 13508 # (2) before a word containing "conftest.", or (3) at the end. 13509 # Note that $ac_compile itself does not contain backslashes and begins 13510 # with a dollar sign (not a hyphen), so the echo should work correctly. 13511 lt_compile=`echo "$ac_compile" | $SED \ 13512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13514 -e 's:$: $lt_compiler_flag:'` 13515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13516 (eval "$lt_compile" 2>out/conftest.err) 13517 ac_status=$? 13518 cat out/conftest.err >&5 13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13520 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13521 then 13522 # The compiler can only warn and ignore the option if not recognized 13523 # So say no if there are warnings 13524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13527 lt_cv_prog_compiler_c_o=yes 13528 fi 13529 fi 13530 chmod u+w . 2>&5 13531 $RM conftest* 13532 # SGI C++ compiler will create directory out/ii_files/ for 13533 # template instantiation 13534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13535 $RM out/* && rmdir out 13536 cd .. 13537 $RM -r conftest 13538 $RM conftest* 13539 13540fi 13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13542$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 13543 13544 13545 13546 13547 13548 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13550$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13551if ${lt_cv_prog_compiler_c_o+:} false; then : 13552 $as_echo_n "(cached) " >&6 13553else 13554 lt_cv_prog_compiler_c_o=no 13555 $RM -r conftest 2>/dev/null 13556 mkdir conftest 13557 cd conftest 13558 mkdir out 13559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13560 13561 lt_compiler_flag="-o out/conftest2.$ac_objext" 13562 # Insert the option either (1) after the last *FLAGS variable, or 13563 # (2) before a word containing "conftest.", or (3) at the end. 13564 # Note that $ac_compile itself does not contain backslashes and begins 13565 # with a dollar sign (not a hyphen), so the echo should work correctly. 13566 lt_compile=`echo "$ac_compile" | $SED \ 13567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13569 -e 's:$: $lt_compiler_flag:'` 13570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13571 (eval "$lt_compile" 2>out/conftest.err) 13572 ac_status=$? 13573 cat out/conftest.err >&5 13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13575 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13576 then 13577 # The compiler can only warn and ignore the option if not recognized 13578 # So say no if there are warnings 13579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13582 lt_cv_prog_compiler_c_o=yes 13583 fi 13584 fi 13585 chmod u+w . 2>&5 13586 $RM conftest* 13587 # SGI C++ compiler will create directory out/ii_files/ for 13588 # template instantiation 13589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13590 $RM out/* && rmdir out 13591 cd .. 13592 $RM -r conftest 13593 $RM conftest* 13594 13595fi 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13597$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 13598 13599 13600 13601 13602hard_links="nottested" 13603if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 13604 # do not overwrite the value of need_locks provided by the user 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13606$as_echo_n "checking if we can lock with hard links... " >&6; } 13607 hard_links=yes 13608 $RM conftest* 13609 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13610 touch conftest.a 13611 ln conftest.a conftest.b 2>&5 || hard_links=no 13612 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13614$as_echo "$hard_links" >&6; } 13615 if test "$hard_links" = no; then 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13617$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13618 need_locks=warn 13619 fi 13620else 13621 need_locks=no 13622fi 13623 13624 13625 13626 13627 13628 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13630$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13631 13632 runpath_var= 13633 allow_undefined_flag= 13634 always_export_symbols=no 13635 archive_cmds= 13636 archive_expsym_cmds= 13637 compiler_needs_object=no 13638 enable_shared_with_static_runtimes=no 13639 export_dynamic_flag_spec= 13640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13641 hardcode_automatic=no 13642 hardcode_direct=no 13643 hardcode_direct_absolute=no 13644 hardcode_libdir_flag_spec= 13645 hardcode_libdir_separator= 13646 hardcode_minus_L=no 13647 hardcode_shlibpath_var=unsupported 13648 inherit_rpath=no 13649 link_all_deplibs=unknown 13650 module_cmds= 13651 module_expsym_cmds= 13652 old_archive_from_new_cmds= 13653 old_archive_from_expsyms_cmds= 13654 thread_safe_flag_spec= 13655 whole_archive_flag_spec= 13656 # include_expsyms should be a list of space-separated symbols to be *always* 13657 # included in the symbol list 13658 include_expsyms= 13659 # exclude_expsyms can be an extended regexp of symbols to exclude 13660 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13661 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13662 # as well as any symbol that contains `d'. 13663 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13664 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13665 # platforms (ab)use it in PIC code, but their linkers get confused if 13666 # the symbol is explicitly referenced. Since portable code cannot 13667 # rely on this symbol name, it's probably fine to never include it in 13668 # preloaded symbol tables. 13669 # Exclude shared library initialization/finalization symbols. 13670 extract_expsyms_cmds= 13671 13672 case $host_os in 13673 cygwin* | mingw* | pw32* | cegcc*) 13674 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13675 # When not using gcc, we currently assume that we are using 13676 # Microsoft Visual C++. 13677 if test "$GCC" != yes; then 13678 with_gnu_ld=no 13679 fi 13680 ;; 13681 interix*) 13682 # we just hope/assume this is gcc and not c89 (= MSVC++) 13683 with_gnu_ld=yes 13684 ;; 13685 openbsd*) 13686 with_gnu_ld=no 13687 ;; 13688 esac 13689 13690 ld_shlibs=yes 13691 13692 # On some targets, GNU ld is compatible enough with the native linker 13693 # that we're better off using the native interface for both. 13694 lt_use_gnu_ld_interface=no 13695 if test "$with_gnu_ld" = yes; then 13696 case $host_os in 13697 aix*) 13698 # The AIX port of GNU ld has always aspired to compatibility 13699 # with the native linker. However, as the warning in the GNU ld 13700 # block says, versions before 2.19.5* couldn't really create working 13701 # shared libraries, regardless of the interface used. 13702 case `$LD -v 2>&1` in 13703 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13704 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13705 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13706 *) 13707 lt_use_gnu_ld_interface=yes 13708 ;; 13709 esac 13710 ;; 13711 *) 13712 lt_use_gnu_ld_interface=yes 13713 ;; 13714 esac 13715 fi 13716 13717 if test "$lt_use_gnu_ld_interface" = yes; then 13718 # If archive_cmds runs LD, not CC, wlarc should be empty 13719 wlarc='${wl}' 13720 13721 # Set some defaults for GNU ld with shared library support. These 13722 # are reset later if shared libraries are not supported. Putting them 13723 # here allows them to be overridden if necessary. 13724 runpath_var=LD_RUN_PATH 13725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13726 export_dynamic_flag_spec='${wl}--export-dynamic' 13727 # ancient GNU ld didn't support --whole-archive et. al. 13728 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13729 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13730 else 13731 whole_archive_flag_spec= 13732 fi 13733 supports_anon_versioning=no 13734 case `$LD -v 2>&1` in 13735 *GNU\ gold*) supports_anon_versioning=yes ;; 13736 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13737 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13738 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13739 *\ 2.11.*) ;; # other 2.11 versions 13740 *) supports_anon_versioning=yes ;; 13741 esac 13742 13743 # See if GNU ld supports shared libraries. 13744 case $host_os in 13745 aix[3-9]*) 13746 # On AIX/PPC, the GNU linker is very broken 13747 if test "$host_cpu" != ia64; then 13748 ld_shlibs=no 13749 cat <<_LT_EOF 1>&2 13750 13751*** Warning: the GNU linker, at least up to release 2.19, is reported 13752*** to be unable to reliably create shared libraries on AIX. 13753*** Therefore, libtool is disabling shared libraries support. If you 13754*** really care for shared libraries, you may want to install binutils 13755*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13756*** You will then need to restart the configuration process. 13757 13758_LT_EOF 13759 fi 13760 ;; 13761 13762 amigaos*) 13763 case $host_cpu in 13764 powerpc) 13765 # see comment about AmigaOS4 .so support 13766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13767 archive_expsym_cmds='' 13768 ;; 13769 m68k) 13770 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)' 13771 hardcode_libdir_flag_spec='-L$libdir' 13772 hardcode_minus_L=yes 13773 ;; 13774 esac 13775 ;; 13776 13777 beos*) 13778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13779 allow_undefined_flag=unsupported 13780 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13781 # support --undefined. This deserves some investigation. FIXME 13782 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13783 else 13784 ld_shlibs=no 13785 fi 13786 ;; 13787 13788 cygwin* | mingw* | pw32* | cegcc*) 13789 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13790 # as there is no search path for DLLs. 13791 hardcode_libdir_flag_spec='-L$libdir' 13792 export_dynamic_flag_spec='${wl}--export-all-symbols' 13793 allow_undefined_flag=unsupported 13794 always_export_symbols=no 13795 enable_shared_with_static_runtimes=yes 13796 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' 13797 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13798 13799 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13801 # If the export-symbols file already is a .def file (1st line 13802 # is EXPORTS), use it as is; otherwise, prepend... 13803 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13804 cp $export_symbols $output_objdir/$soname.def; 13805 else 13806 echo EXPORTS > $output_objdir/$soname.def; 13807 cat $export_symbols >> $output_objdir/$soname.def; 13808 fi~ 13809 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13810 else 13811 ld_shlibs=no 13812 fi 13813 ;; 13814 13815 haiku*) 13816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13817 link_all_deplibs=yes 13818 ;; 13819 13820 interix[3-9]*) 13821 hardcode_direct=no 13822 hardcode_shlibpath_var=no 13823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13824 export_dynamic_flag_spec='${wl}-E' 13825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13826 # Instead, shared libraries are loaded at an image base (0x10000000 by 13827 # default) and relocated if they conflict, which is a slow very memory 13828 # consuming and fragmenting process. To avoid this, we pick a random, 13829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13830 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13832 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' 13833 ;; 13834 13835 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13836 tmp_diet=no 13837 if test "$host_os" = linux-dietlibc; then 13838 case $cc_basename in 13839 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13840 esac 13841 fi 13842 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13843 && test "$tmp_diet" = no 13844 then 13845 tmp_addflag=' $pic_flag' 13846 tmp_sharedflag='-shared' 13847 case $cc_basename,$host_cpu in 13848 pgcc*) # Portland Group C compiler 13849 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' 13850 tmp_addflag=' $pic_flag' 13851 ;; 13852 pgf77* | pgf90* | pgf95* | pgfortran*) 13853 # Portland Group f77 and f90 compilers 13854 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' 13855 tmp_addflag=' $pic_flag -Mnomain' ;; 13856 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13857 tmp_addflag=' -i_dynamic' ;; 13858 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13859 tmp_addflag=' -i_dynamic -nofor_main' ;; 13860 ifc* | ifort*) # Intel Fortran compiler 13861 tmp_addflag=' -nofor_main' ;; 13862 lf95*) # Lahey Fortran 8.1 13863 whole_archive_flag_spec= 13864 tmp_sharedflag='--shared' ;; 13865 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13866 tmp_sharedflag='-qmkshrobj' 13867 tmp_addflag= ;; 13868 nvcc*) # Cuda Compiler Driver 2.2 13869 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' 13870 compiler_needs_object=yes 13871 ;; 13872 esac 13873 case `$CC -V 2>&1 | sed 5q` in 13874 *Sun\ C*) # Sun C 5.9 13875 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' 13876 compiler_needs_object=yes 13877 tmp_sharedflag='-G' ;; 13878 *Sun\ F*) # Sun Fortran 8.3 13879 tmp_sharedflag='-G' ;; 13880 esac 13881 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13882 13883 if test "x$supports_anon_versioning" = xyes; then 13884 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13886 echo "local: *; };" >> $output_objdir/$libname.ver~ 13887 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13888 fi 13889 13890 case $cc_basename in 13891 xlf* | bgf* | bgxlf* | mpixlf*) 13892 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13893 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13895 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13896 if test "x$supports_anon_versioning" = xyes; then 13897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13899 echo "local: *; };" >> $output_objdir/$libname.ver~ 13900 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13901 fi 13902 ;; 13903 esac 13904 else 13905 ld_shlibs=no 13906 fi 13907 ;; 13908 13909 netbsd*) 13910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13912 wlarc= 13913 else 13914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13915 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13916 fi 13917 ;; 13918 13919 solaris*) 13920 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13921 ld_shlibs=no 13922 cat <<_LT_EOF 1>&2 13923 13924*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13925*** create shared libraries on Solaris systems. Therefore, libtool 13926*** is disabling shared libraries support. We urge you to upgrade GNU 13927*** binutils to release 2.9.1 or newer. Another option is to modify 13928*** your PATH or compiler configuration so that the native linker is 13929*** used, and then restart. 13930 13931_LT_EOF 13932 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13935 else 13936 ld_shlibs=no 13937 fi 13938 ;; 13939 13940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13941 case `$LD -v 2>&1` in 13942 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13943 ld_shlibs=no 13944 cat <<_LT_EOF 1>&2 13945 13946*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13947*** reliably create shared libraries on SCO systems. Therefore, libtool 13948*** is disabling shared libraries support. We urge you to upgrade GNU 13949*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13950*** your PATH or compiler configuration so that the native linker is 13951*** used, and then restart. 13952 13953_LT_EOF 13954 ;; 13955 *) 13956 # For security reasons, it is highly recommended that you always 13957 # use absolute paths for naming shared libraries, and exclude the 13958 # DT_RUNPATH tag from executables and libraries. But doing so 13959 # requires that you compile everything twice, which is a pain. 13960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13964 else 13965 ld_shlibs=no 13966 fi 13967 ;; 13968 esac 13969 ;; 13970 13971 sunos4*) 13972 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13973 wlarc= 13974 hardcode_direct=yes 13975 hardcode_shlibpath_var=no 13976 ;; 13977 13978 *) 13979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13982 else 13983 ld_shlibs=no 13984 fi 13985 ;; 13986 esac 13987 13988 if test "$ld_shlibs" = no; then 13989 runpath_var= 13990 hardcode_libdir_flag_spec= 13991 export_dynamic_flag_spec= 13992 whole_archive_flag_spec= 13993 fi 13994 else 13995 # PORTME fill in a description of your system's linker (not GNU ld) 13996 case $host_os in 13997 aix3*) 13998 allow_undefined_flag=unsupported 13999 always_export_symbols=yes 14000 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' 14001 # Note: this linker hardcodes the directories in LIBPATH if there 14002 # are no directories specified by -L. 14003 hardcode_minus_L=yes 14004 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14005 # Neither direct hardcoding nor static linking is supported with a 14006 # broken collect2. 14007 hardcode_direct=unsupported 14008 fi 14009 ;; 14010 14011 aix[4-9]*) 14012 if test "$host_cpu" = ia64; then 14013 # On IA64, the linker does run time linking by default, so we don't 14014 # have to do anything special. 14015 aix_use_runtimelinking=no 14016 exp_sym_flag='-Bexport' 14017 no_entry_flag="" 14018 else 14019 # If we're using GNU nm, then we don't want the "-C" option. 14020 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14021 # Also, AIX nm treats weak defined symbols like other global 14022 # defined symbols, whereas GNU nm marks them as "W". 14023 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14024 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' 14025 else 14026 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' 14027 fi 14028 aix_use_runtimelinking=no 14029 14030 # Test if we are trying to use run time linking or normal 14031 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14032 # need to do runtime linking. 14033 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14034 for ld_flag in $LDFLAGS; do 14035 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14036 aix_use_runtimelinking=yes 14037 break 14038 fi 14039 done 14040 ;; 14041 esac 14042 14043 exp_sym_flag='-bexport' 14044 no_entry_flag='-bnoentry' 14045 fi 14046 14047 # When large executables or shared objects are built, AIX ld can 14048 # have problems creating the table of contents. If linking a library 14049 # or program results in "error TOC overflow" add -mminimal-toc to 14050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14052 14053 archive_cmds='' 14054 hardcode_direct=yes 14055 hardcode_direct_absolute=yes 14056 hardcode_libdir_separator=':' 14057 link_all_deplibs=yes 14058 file_list_spec='${wl}-f,' 14059 14060 if test "$GCC" = yes; then 14061 case $host_os in aix4.[012]|aix4.[012].*) 14062 # We only want to do this on AIX 4.2 and lower, the check 14063 # below for broken collect2 doesn't work under 4.3+ 14064 collect2name=`${CC} -print-prog-name=collect2` 14065 if test -f "$collect2name" && 14066 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14067 then 14068 # We have reworked collect2 14069 : 14070 else 14071 # We have old collect2 14072 hardcode_direct=unsupported 14073 # It fails to find uninstalled libraries when the uninstalled 14074 # path is not listed in the libpath. Setting hardcode_minus_L 14075 # to unsupported forces relinking 14076 hardcode_minus_L=yes 14077 hardcode_libdir_flag_spec='-L$libdir' 14078 hardcode_libdir_separator= 14079 fi 14080 ;; 14081 esac 14082 shared_flag='-shared' 14083 if test "$aix_use_runtimelinking" = yes; then 14084 shared_flag="$shared_flag "'${wl}-G' 14085 fi 14086 else 14087 # not using gcc 14088 if test "$host_cpu" = ia64; then 14089 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14090 # chokes on -Wl,-G. The following line is correct: 14091 shared_flag='-G' 14092 else 14093 if test "$aix_use_runtimelinking" = yes; then 14094 shared_flag='${wl}-G' 14095 else 14096 shared_flag='${wl}-bM:SRE' 14097 fi 14098 fi 14099 fi 14100 14101 export_dynamic_flag_spec='${wl}-bexpall' 14102 # It seems that -bexpall does not export symbols beginning with 14103 # underscore (_), so it is better to generate a list of symbols to export. 14104 always_export_symbols=yes 14105 if test "$aix_use_runtimelinking" = yes; then 14106 # Warning - without using the other runtime loading flags (-brtl), 14107 # -berok will link without error, but may produce a broken library. 14108 allow_undefined_flag='-berok' 14109 # Determine the default libpath from the value encoded in an 14110 # empty executable. 14111 if test "${lt_cv_aix_libpath+set}" = set; then 14112 aix_libpath=$lt_cv_aix_libpath 14113else 14114 if ${lt_cv_aix_libpath_+:} false; then : 14115 $as_echo_n "(cached) " >&6 14116else 14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14118/* end confdefs.h. */ 14119 14120int 14121main () 14122{ 14123 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128if ac_fn_c_try_link "$LINENO"; then : 14129 14130 lt_aix_libpath_sed=' 14131 /Import File Strings/,/^$/ { 14132 /^0/ { 14133 s/^0 *\([^ ]*\) *$/\1/ 14134 p 14135 } 14136 }' 14137 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14138 # Check for a 64-bit object if we didn't find anything. 14139 if test -z "$lt_cv_aix_libpath_"; then 14140 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14141 fi 14142fi 14143rm -f core conftest.err conftest.$ac_objext \ 14144 conftest$ac_exeext conftest.$ac_ext 14145 if test -z "$lt_cv_aix_libpath_"; then 14146 lt_cv_aix_libpath_="/usr/lib:/lib" 14147 fi 14148 14149fi 14150 14151 aix_libpath=$lt_cv_aix_libpath_ 14152fi 14153 14154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 14155 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" 14156 else 14157 if test "$host_cpu" = ia64; then 14158 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 14159 allow_undefined_flag="-z nodefs" 14160 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" 14161 else 14162 # Determine the default libpath from the value encoded in an 14163 # empty executable. 14164 if test "${lt_cv_aix_libpath+set}" = set; then 14165 aix_libpath=$lt_cv_aix_libpath 14166else 14167 if ${lt_cv_aix_libpath_+:} false; then : 14168 $as_echo_n "(cached) " >&6 14169else 14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14171/* end confdefs.h. */ 14172 14173int 14174main () 14175{ 14176 14177 ; 14178 return 0; 14179} 14180_ACEOF 14181if ac_fn_c_try_link "$LINENO"; then : 14182 14183 lt_aix_libpath_sed=' 14184 /Import File Strings/,/^$/ { 14185 /^0/ { 14186 s/^0 *\([^ ]*\) *$/\1/ 14187 p 14188 } 14189 }' 14190 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14191 # Check for a 64-bit object if we didn't find anything. 14192 if test -z "$lt_cv_aix_libpath_"; then 14193 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14194 fi 14195fi 14196rm -f core conftest.err conftest.$ac_objext \ 14197 conftest$ac_exeext conftest.$ac_ext 14198 if test -z "$lt_cv_aix_libpath_"; then 14199 lt_cv_aix_libpath_="/usr/lib:/lib" 14200 fi 14201 14202fi 14203 14204 aix_libpath=$lt_cv_aix_libpath_ 14205fi 14206 14207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 14208 # Warning - without using the other run time loading flags, 14209 # -berok will link without error, but may produce a broken library. 14210 no_undefined_flag=' ${wl}-bernotok' 14211 allow_undefined_flag=' ${wl}-berok' 14212 if test "$with_gnu_ld" = yes; then 14213 # We only use this code for GNU lds that support --whole-archive. 14214 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14215 else 14216 # Exported symbols can be pulled into shared objects from archives 14217 whole_archive_flag_spec='$convenience' 14218 fi 14219 archive_cmds_need_lc=yes 14220 # This is similar to how AIX traditionally builds its shared libraries. 14221 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' 14222 fi 14223 fi 14224 ;; 14225 14226 amigaos*) 14227 case $host_cpu in 14228 powerpc) 14229 # see comment about AmigaOS4 .so support 14230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14231 archive_expsym_cmds='' 14232 ;; 14233 m68k) 14234 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)' 14235 hardcode_libdir_flag_spec='-L$libdir' 14236 hardcode_minus_L=yes 14237 ;; 14238 esac 14239 ;; 14240 14241 bsdi[45]*) 14242 export_dynamic_flag_spec=-rdynamic 14243 ;; 14244 14245 cygwin* | mingw* | pw32* | cegcc*) 14246 # When not using gcc, we currently assume that we are using 14247 # Microsoft Visual C++. 14248 # hardcode_libdir_flag_spec is actually meaningless, as there is 14249 # no search path for DLLs. 14250 case $cc_basename in 14251 cl*) 14252 # Native MSVC 14253 hardcode_libdir_flag_spec=' ' 14254 allow_undefined_flag=unsupported 14255 always_export_symbols=yes 14256 file_list_spec='@' 14257 # Tell ltmain to make .lib files, not .a files. 14258 libext=lib 14259 # Tell ltmain to make .dll files, not .so files. 14260 shrext_cmds=".dll" 14261 # FIXME: Setting linknames here is a bad hack. 14262 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14263 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14264 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14265 else 14266 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14267 fi~ 14268 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14269 linknames=' 14270 # The linker will not automatically build a static lib if we build a DLL. 14271 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14272 enable_shared_with_static_runtimes=yes 14273 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14275 # Don't use ranlib 14276 old_postinstall_cmds='chmod 644 $oldlib' 14277 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14278 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14279 case $lt_outputfile in 14280 *.exe|*.EXE) ;; 14281 *) 14282 lt_outputfile="$lt_outputfile.exe" 14283 lt_tool_outputfile="$lt_tool_outputfile.exe" 14284 ;; 14285 esac~ 14286 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14287 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14288 $RM "$lt_outputfile.manifest"; 14289 fi' 14290 ;; 14291 *) 14292 # Assume MSVC wrapper 14293 hardcode_libdir_flag_spec=' ' 14294 allow_undefined_flag=unsupported 14295 # Tell ltmain to make .lib files, not .a files. 14296 libext=lib 14297 # Tell ltmain to make .dll files, not .so files. 14298 shrext_cmds=".dll" 14299 # FIXME: Setting linknames here is a bad hack. 14300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14301 # The linker will automatically build a .lib file if we build a DLL. 14302 old_archive_from_new_cmds='true' 14303 # FIXME: Should let the user specify the lib program. 14304 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14305 enable_shared_with_static_runtimes=yes 14306 ;; 14307 esac 14308 ;; 14309 14310 darwin* | rhapsody*) 14311 14312 14313 archive_cmds_need_lc=no 14314 hardcode_direct=no 14315 hardcode_automatic=yes 14316 hardcode_shlibpath_var=unsupported 14317 if test "$lt_cv_ld_force_load" = "yes"; then 14318 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\"`' 14319 14320 else 14321 whole_archive_flag_spec='' 14322 fi 14323 link_all_deplibs=yes 14324 allow_undefined_flag="$_lt_dar_allow_undefined" 14325 case $cc_basename in 14326 ifort*) _lt_dar_can_shared=yes ;; 14327 *) _lt_dar_can_shared=$GCC ;; 14328 esac 14329 if test "$_lt_dar_can_shared" = "yes"; then 14330 output_verbose_link_cmd=func_echo_all 14331 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14332 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14333 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}" 14334 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}" 14335 14336 else 14337 ld_shlibs=no 14338 fi 14339 14340 ;; 14341 14342 dgux*) 14343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14344 hardcode_libdir_flag_spec='-L$libdir' 14345 hardcode_shlibpath_var=no 14346 ;; 14347 14348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14349 # support. Future versions do this automatically, but an explicit c++rt0.o 14350 # does not break anything, and helps significantly (at the cost of a little 14351 # extra space). 14352 freebsd2.2*) 14353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14354 hardcode_libdir_flag_spec='-R$libdir' 14355 hardcode_direct=yes 14356 hardcode_shlibpath_var=no 14357 ;; 14358 14359 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14360 freebsd2.*) 14361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14362 hardcode_direct=yes 14363 hardcode_minus_L=yes 14364 hardcode_shlibpath_var=no 14365 ;; 14366 14367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14368 freebsd* | dragonfly*) 14369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14370 hardcode_libdir_flag_spec='-R$libdir' 14371 hardcode_direct=yes 14372 hardcode_shlibpath_var=no 14373 ;; 14374 14375 hpux9*) 14376 if test "$GCC" = yes; then 14377 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' 14378 else 14379 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' 14380 fi 14381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14382 hardcode_libdir_separator=: 14383 hardcode_direct=yes 14384 14385 # hardcode_minus_L: Not really in the search PATH, 14386 # but as the default location of the library. 14387 hardcode_minus_L=yes 14388 export_dynamic_flag_spec='${wl}-E' 14389 ;; 14390 14391 hpux10*) 14392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14393 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14394 else 14395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14396 fi 14397 if test "$with_gnu_ld" = no; then 14398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14399 hardcode_libdir_separator=: 14400 hardcode_direct=yes 14401 hardcode_direct_absolute=yes 14402 export_dynamic_flag_spec='${wl}-E' 14403 # hardcode_minus_L: Not really in the search PATH, 14404 # but as the default location of the library. 14405 hardcode_minus_L=yes 14406 fi 14407 ;; 14408 14409 hpux11*) 14410 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14411 case $host_cpu in 14412 hppa*64*) 14413 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14414 ;; 14415 ia64*) 14416 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14417 ;; 14418 *) 14419 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14420 ;; 14421 esac 14422 else 14423 case $host_cpu in 14424 hppa*64*) 14425 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14426 ;; 14427 ia64*) 14428 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14429 ;; 14430 *) 14431 14432 # Older versions of the 11.00 compiler do not understand -b yet 14433 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14435$as_echo_n "checking if $CC understands -b... " >&6; } 14436if ${lt_cv_prog_compiler__b+:} false; then : 14437 $as_echo_n "(cached) " >&6 14438else 14439 lt_cv_prog_compiler__b=no 14440 save_LDFLAGS="$LDFLAGS" 14441 LDFLAGS="$LDFLAGS -b" 14442 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14444 # The linker can only warn and ignore the option if not recognized 14445 # So say no if there are warnings 14446 if test -s conftest.err; then 14447 # Append any errors to the config.log. 14448 cat conftest.err 1>&5 14449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14451 if diff conftest.exp conftest.er2 >/dev/null; then 14452 lt_cv_prog_compiler__b=yes 14453 fi 14454 else 14455 lt_cv_prog_compiler__b=yes 14456 fi 14457 fi 14458 $RM -r conftest* 14459 LDFLAGS="$save_LDFLAGS" 14460 14461fi 14462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14463$as_echo "$lt_cv_prog_compiler__b" >&6; } 14464 14465if test x"$lt_cv_prog_compiler__b" = xyes; then 14466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14467else 14468 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14469fi 14470 14471 ;; 14472 esac 14473 fi 14474 if test "$with_gnu_ld" = no; then 14475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14476 hardcode_libdir_separator=: 14477 14478 case $host_cpu in 14479 hppa*64*|ia64*) 14480 hardcode_direct=no 14481 hardcode_shlibpath_var=no 14482 ;; 14483 *) 14484 hardcode_direct=yes 14485 hardcode_direct_absolute=yes 14486 export_dynamic_flag_spec='${wl}-E' 14487 14488 # hardcode_minus_L: Not really in the search PATH, 14489 # but as the default location of the library. 14490 hardcode_minus_L=yes 14491 ;; 14492 esac 14493 fi 14494 ;; 14495 14496 irix5* | irix6* | nonstopux*) 14497 if test "$GCC" = yes; then 14498 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' 14499 # Try to use the -exported_symbol ld option, if it does not 14500 # work, assume that -exports_file does not work either and 14501 # implicitly export all symbols. 14502 # This should be the same for all languages, so no per-tag cache variable. 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14504$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14505if ${lt_cv_irix_exported_symbol+:} false; then : 14506 $as_echo_n "(cached) " >&6 14507else 14508 save_LDFLAGS="$LDFLAGS" 14509 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14511/* end confdefs.h. */ 14512int foo (void) { return 0; } 14513_ACEOF 14514if ac_fn_c_try_link "$LINENO"; then : 14515 lt_cv_irix_exported_symbol=yes 14516else 14517 lt_cv_irix_exported_symbol=no 14518fi 14519rm -f core conftest.err conftest.$ac_objext \ 14520 conftest$ac_exeext conftest.$ac_ext 14521 LDFLAGS="$save_LDFLAGS" 14522fi 14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14524$as_echo "$lt_cv_irix_exported_symbol" >&6; } 14525 if test "$lt_cv_irix_exported_symbol" = yes; then 14526 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' 14527 fi 14528 else 14529 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' 14530 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' 14531 fi 14532 archive_cmds_need_lc='no' 14533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14534 hardcode_libdir_separator=: 14535 inherit_rpath=yes 14536 link_all_deplibs=yes 14537 ;; 14538 14539 netbsd*) 14540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14542 else 14543 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14544 fi 14545 hardcode_libdir_flag_spec='-R$libdir' 14546 hardcode_direct=yes 14547 hardcode_shlibpath_var=no 14548 ;; 14549 14550 newsos6) 14551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14552 hardcode_direct=yes 14553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14554 hardcode_libdir_separator=: 14555 hardcode_shlibpath_var=no 14556 ;; 14557 14558 *nto* | *qnx*) 14559 ;; 14560 14561 openbsd*) 14562 if test -f /usr/libexec/ld.so; then 14563 hardcode_direct=yes 14564 hardcode_shlibpath_var=no 14565 hardcode_direct_absolute=yes 14566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14568 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14570 export_dynamic_flag_spec='${wl}-E' 14571 else 14572 case $host_os in 14573 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14575 hardcode_libdir_flag_spec='-R$libdir' 14576 ;; 14577 *) 14578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14580 ;; 14581 esac 14582 fi 14583 else 14584 ld_shlibs=no 14585 fi 14586 ;; 14587 14588 os2*) 14589 hardcode_libdir_flag_spec='-L$libdir' 14590 hardcode_minus_L=yes 14591 allow_undefined_flag=unsupported 14592 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' 14593 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14594 ;; 14595 14596 osf3*) 14597 if test "$GCC" = yes; then 14598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 14599 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' 14600 else 14601 allow_undefined_flag=' -expect_unresolved \*' 14602 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' 14603 fi 14604 archive_cmds_need_lc='no' 14605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14606 hardcode_libdir_separator=: 14607 ;; 14608 14609 osf4* | osf5*) # as osf3* with the addition of -msym flag 14610 if test "$GCC" = yes; then 14611 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 14612 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' 14613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14614 else 14615 allow_undefined_flag=' -expect_unresolved \*' 14616 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' 14617 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~ 14618 $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' 14619 14620 # Both c and cxx compiler support -rpath directly 14621 hardcode_libdir_flag_spec='-rpath $libdir' 14622 fi 14623 archive_cmds_need_lc='no' 14624 hardcode_libdir_separator=: 14625 ;; 14626 14627 solaris*) 14628 no_undefined_flag=' -z defs' 14629 if test "$GCC" = yes; then 14630 wlarc='${wl}' 14631 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14633 $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' 14634 else 14635 case `$CC -V 2>&1` in 14636 *"Compilers 5.0"*) 14637 wlarc='' 14638 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14641 ;; 14642 *) 14643 wlarc='${wl}' 14644 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14646 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14647 ;; 14648 esac 14649 fi 14650 hardcode_libdir_flag_spec='-R$libdir' 14651 hardcode_shlibpath_var=no 14652 case $host_os in 14653 solaris2.[0-5] | solaris2.[0-5].*) ;; 14654 *) 14655 # The compiler driver will combine and reorder linker options, 14656 # but understands `-z linker_flag'. GCC discards it without `$wl', 14657 # but is careful enough not to reorder. 14658 # Supported since Solaris 2.6 (maybe 2.5.1?) 14659 if test "$GCC" = yes; then 14660 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14661 else 14662 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14663 fi 14664 ;; 14665 esac 14666 link_all_deplibs=yes 14667 ;; 14668 14669 sunos4*) 14670 if test "x$host_vendor" = xsequent; then 14671 # Use $CC to link under sequent, because it throws in some extra .o 14672 # files that make .init and .fini sections work. 14673 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14674 else 14675 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14676 fi 14677 hardcode_libdir_flag_spec='-L$libdir' 14678 hardcode_direct=yes 14679 hardcode_minus_L=yes 14680 hardcode_shlibpath_var=no 14681 ;; 14682 14683 sysv4) 14684 case $host_vendor in 14685 sni) 14686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14687 hardcode_direct=yes # is this really true??? 14688 ;; 14689 siemens) 14690 ## LD is ld it makes a PLAMLIB 14691 ## CC just makes a GrossModule. 14692 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14693 reload_cmds='$CC -r -o $output$reload_objs' 14694 hardcode_direct=no 14695 ;; 14696 motorola) 14697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14698 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14699 ;; 14700 esac 14701 runpath_var='LD_RUN_PATH' 14702 hardcode_shlibpath_var=no 14703 ;; 14704 14705 sysv4.3*) 14706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14707 hardcode_shlibpath_var=no 14708 export_dynamic_flag_spec='-Bexport' 14709 ;; 14710 14711 sysv4*MP*) 14712 if test -d /usr/nec; then 14713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14714 hardcode_shlibpath_var=no 14715 runpath_var=LD_RUN_PATH 14716 hardcode_runpath_var=yes 14717 ld_shlibs=yes 14718 fi 14719 ;; 14720 14721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14722 no_undefined_flag='${wl}-z,text' 14723 archive_cmds_need_lc=no 14724 hardcode_shlibpath_var=no 14725 runpath_var='LD_RUN_PATH' 14726 14727 if test "$GCC" = yes; then 14728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14730 else 14731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14733 fi 14734 ;; 14735 14736 sysv5* | sco3.2v5* | sco5v6*) 14737 # Note: We can NOT use -z defs as we might desire, because we do not 14738 # link with -lc, and that would cause any symbols used from libc to 14739 # always be unresolved, which means just about no library would 14740 # ever link correctly. If we're not using GNU ld we use -z text 14741 # though, which does catch some bad symbols but isn't as heavy-handed 14742 # as -z defs. 14743 no_undefined_flag='${wl}-z,text' 14744 allow_undefined_flag='${wl}-z,nodefs' 14745 archive_cmds_need_lc=no 14746 hardcode_shlibpath_var=no 14747 hardcode_libdir_flag_spec='${wl}-R,$libdir' 14748 hardcode_libdir_separator=':' 14749 link_all_deplibs=yes 14750 export_dynamic_flag_spec='${wl}-Bexport' 14751 runpath_var='LD_RUN_PATH' 14752 14753 if test "$GCC" = yes; then 14754 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14756 else 14757 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14759 fi 14760 ;; 14761 14762 uts4*) 14763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14764 hardcode_libdir_flag_spec='-L$libdir' 14765 hardcode_shlibpath_var=no 14766 ;; 14767 14768 *) 14769 ld_shlibs=no 14770 ;; 14771 esac 14772 14773 if test x$host_vendor = xsni; then 14774 case $host in 14775 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14776 export_dynamic_flag_spec='${wl}-Blargedynsym' 14777 ;; 14778 esac 14779 fi 14780 fi 14781 14782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14783$as_echo "$ld_shlibs" >&6; } 14784test "$ld_shlibs" = no && can_build_shared=no 14785 14786with_gnu_ld=$with_gnu_ld 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802# 14803# Do we need to explicitly link libc? 14804# 14805case "x$archive_cmds_need_lc" in 14806x|xyes) 14807 # Assume -lc should be added 14808 archive_cmds_need_lc=yes 14809 14810 if test "$enable_shared" = yes && test "$GCC" = yes; then 14811 case $archive_cmds in 14812 *'~'*) 14813 # FIXME: we may have to deal with multi-command sequences. 14814 ;; 14815 '$CC '*) 14816 # Test whether the compiler implicitly links with -lc since on some 14817 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14818 # to ld, don't add -lc before -lgcc. 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14820$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14821if ${lt_cv_archive_cmds_need_lc+:} false; then : 14822 $as_echo_n "(cached) " >&6 14823else 14824 $RM conftest* 14825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14826 14827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14828 (eval $ac_compile) 2>&5 14829 ac_status=$? 14830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14831 test $ac_status = 0; } 2>conftest.err; then 14832 soname=conftest 14833 lib=conftest 14834 libobjs=conftest.$ac_objext 14835 deplibs= 14836 wl=$lt_prog_compiler_wl 14837 pic_flag=$lt_prog_compiler_pic 14838 compiler_flags=-v 14839 linker_flags=-v 14840 verstring= 14841 output_objdir=. 14842 libname=conftest 14843 lt_save_allow_undefined_flag=$allow_undefined_flag 14844 allow_undefined_flag= 14845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14846 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14847 ac_status=$? 14848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14849 test $ac_status = 0; } 14850 then 14851 lt_cv_archive_cmds_need_lc=no 14852 else 14853 lt_cv_archive_cmds_need_lc=yes 14854 fi 14855 allow_undefined_flag=$lt_save_allow_undefined_flag 14856 else 14857 cat conftest.err 1>&5 14858 fi 14859 $RM conftest* 14860 14861fi 14862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14863$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 14864 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14865 ;; 14866 esac 14867 fi 14868 ;; 14869esac 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15023$as_echo_n "checking dynamic linker characteristics... " >&6; } 15024 15025if test "$GCC" = yes; then 15026 case $host_os in 15027 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 15028 *) lt_awk_arg="/^libraries:/" ;; 15029 esac 15030 case $host_os in 15031 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 15032 *) lt_sed_strip_eq="s,=/,/,g" ;; 15033 esac 15034 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15035 case $lt_search_path_spec in 15036 *\;*) 15037 # if the path contains ";" then we assume it to be the separator 15038 # otherwise default to the standard path separator (i.e. ":") - it is 15039 # assumed that no part of a normal pathname contains ";" but that should 15040 # okay in the real world where ";" in dirpaths is itself problematic. 15041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15042 ;; 15043 *) 15044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15045 ;; 15046 esac 15047 # Ok, now we have the path, separated by spaces, we can step through it 15048 # and add multilib dir if necessary. 15049 lt_tmp_lt_search_path_spec= 15050 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15051 for lt_sys_path in $lt_search_path_spec; do 15052 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 15053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 15054 else 15055 test -d "$lt_sys_path" && \ 15056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15057 fi 15058 done 15059 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15060BEGIN {RS=" "; FS="/|\n";} { 15061 lt_foo=""; 15062 lt_count=0; 15063 for (lt_i = NF; lt_i > 0; lt_i--) { 15064 if ($lt_i != "" && $lt_i != ".") { 15065 if ($lt_i == "..") { 15066 lt_count++; 15067 } else { 15068 if (lt_count == 0) { 15069 lt_foo="/" $lt_i lt_foo; 15070 } else { 15071 lt_count--; 15072 } 15073 } 15074 } 15075 } 15076 if (lt_foo != "") { lt_freq[lt_foo]++; } 15077 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15078}'` 15079 # AWK program above erroneously prepends '/' to C:/dos/paths 15080 # for these hosts. 15081 case $host_os in 15082 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15083 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 15084 esac 15085 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15086else 15087 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15088fi 15089library_names_spec= 15090libname_spec='lib$name' 15091soname_spec= 15092shrext_cmds=".so" 15093postinstall_cmds= 15094postuninstall_cmds= 15095finish_cmds= 15096finish_eval= 15097shlibpath_var= 15098shlibpath_overrides_runpath=unknown 15099version_type=none 15100dynamic_linker="$host_os ld.so" 15101sys_lib_dlsearch_path_spec="/lib /usr/lib" 15102need_lib_prefix=unknown 15103hardcode_into_libs=no 15104 15105# when you set need_version to no, make sure it does not cause -set_version 15106# flags to be left without arguments 15107need_version=unknown 15108 15109case $host_os in 15110aix3*) 15111 version_type=linux # correct to gnu/linux during the next big refactor 15112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15113 shlibpath_var=LIBPATH 15114 15115 # AIX 3 has no versioning support, so we append a major version to the name. 15116 soname_spec='${libname}${release}${shared_ext}$major' 15117 ;; 15118 15119aix[4-9]*) 15120 version_type=linux # correct to gnu/linux during the next big refactor 15121 need_lib_prefix=no 15122 need_version=no 15123 hardcode_into_libs=yes 15124 if test "$host_cpu" = ia64; then 15125 # AIX 5 supports IA64 15126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15127 shlibpath_var=LD_LIBRARY_PATH 15128 else 15129 # With GCC up to 2.95.x, collect2 would create an import file 15130 # for dependence libraries. The import file would start with 15131 # the line `#! .'. This would cause the generated library to 15132 # depend on `.', always an invalid library. This was fixed in 15133 # development snapshots of GCC prior to 3.0. 15134 case $host_os in 15135 aix4 | aix4.[01] | aix4.[01].*) 15136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15137 echo ' yes ' 15138 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15139 : 15140 else 15141 can_build_shared=no 15142 fi 15143 ;; 15144 esac 15145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15146 # soname into executable. Probably we can add versioning support to 15147 # collect2, so additional links can be useful in future. 15148 if test "$aix_use_runtimelinking" = yes; then 15149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15150 # instead of lib<name>.a to let people know that these are not 15151 # typical AIX shared libraries. 15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15153 else 15154 # We preserve .a as extension for shared libraries through AIX4.2 15155 # and later when we are not doing run time linking. 15156 library_names_spec='${libname}${release}.a $libname.a' 15157 soname_spec='${libname}${release}${shared_ext}$major' 15158 fi 15159 shlibpath_var=LIBPATH 15160 fi 15161 ;; 15162 15163amigaos*) 15164 case $host_cpu in 15165 powerpc) 15166 # Since July 2007 AmigaOS4 officially supports .so libraries. 15167 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15169 ;; 15170 m68k) 15171 library_names_spec='$libname.ixlibrary $libname.a' 15172 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15173 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' 15174 ;; 15175 esac 15176 ;; 15177 15178beos*) 15179 library_names_spec='${libname}${shared_ext}' 15180 dynamic_linker="$host_os ld.so" 15181 shlibpath_var=LIBRARY_PATH 15182 ;; 15183 15184bsdi[45]*) 15185 version_type=linux # correct to gnu/linux during the next big refactor 15186 need_version=no 15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15188 soname_spec='${libname}${release}${shared_ext}$major' 15189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15190 shlibpath_var=LD_LIBRARY_PATH 15191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15193 # the default ld.so.conf also contains /usr/contrib/lib and 15194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15195 # libtool to hard-code these into programs 15196 ;; 15197 15198cygwin* | mingw* | pw32* | cegcc*) 15199 version_type=windows 15200 shrext_cmds=".dll" 15201 need_version=no 15202 need_lib_prefix=no 15203 15204 case $GCC,$cc_basename in 15205 yes,*) 15206 # gcc 15207 library_names_spec='$libname.dll.a' 15208 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15209 postinstall_cmds='base_file=`basename \${file}`~ 15210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15211 dldir=$destdir/`dirname \$dlpath`~ 15212 test -d \$dldir || mkdir -p \$dldir~ 15213 $install_prog $dir/$dlname \$dldir/$dlname~ 15214 chmod a+x \$dldir/$dlname~ 15215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15217 fi' 15218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15219 dlpath=$dir/\$dldll~ 15220 $RM \$dlpath' 15221 shlibpath_overrides_runpath=yes 15222 15223 case $host_os in 15224 cygwin*) 15225 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15227 15228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15229 ;; 15230 mingw* | cegcc*) 15231 # MinGW DLLs use traditional 'lib' prefix 15232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15233 ;; 15234 pw32*) 15235 # pw32 DLLs use 'pw' prefix rather than 'lib' 15236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15237 ;; 15238 esac 15239 dynamic_linker='Win32 ld.exe' 15240 ;; 15241 15242 *,cl*) 15243 # Native MSVC 15244 libname_spec='$name' 15245 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15246 library_names_spec='${libname}.dll.lib' 15247 15248 case $build_os in 15249 mingw*) 15250 sys_lib_search_path_spec= 15251 lt_save_ifs=$IFS 15252 IFS=';' 15253 for lt_path in $LIB 15254 do 15255 IFS=$lt_save_ifs 15256 # Let DOS variable expansion print the short 8.3 style file name. 15257 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15258 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15259 done 15260 IFS=$lt_save_ifs 15261 # Convert to MSYS style. 15262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15263 ;; 15264 cygwin*) 15265 # Convert to unix form, then to dos form, then back to unix form 15266 # but this time dos style (no spaces!) so that the unix form looks 15267 # like /cygdrive/c/PROGRA~1:/cygdr... 15268 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15269 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15270 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15271 ;; 15272 *) 15273 sys_lib_search_path_spec="$LIB" 15274 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15275 # It is most probably a Windows format PATH. 15276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15277 else 15278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15279 fi 15280 # FIXME: find the short name or the path components, as spaces are 15281 # common. (e.g. "Program Files" -> "PROGRA~1") 15282 ;; 15283 esac 15284 15285 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15286 postinstall_cmds='base_file=`basename \${file}`~ 15287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15288 dldir=$destdir/`dirname \$dlpath`~ 15289 test -d \$dldir || mkdir -p \$dldir~ 15290 $install_prog $dir/$dlname \$dldir/$dlname' 15291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15292 dlpath=$dir/\$dldll~ 15293 $RM \$dlpath' 15294 shlibpath_overrides_runpath=yes 15295 dynamic_linker='Win32 link.exe' 15296 ;; 15297 15298 *) 15299 # Assume MSVC wrapper 15300 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15301 dynamic_linker='Win32 ld.exe' 15302 ;; 15303 esac 15304 # FIXME: first we should search . and the directory the executable is in 15305 shlibpath_var=PATH 15306 ;; 15307 15308darwin* | rhapsody*) 15309 dynamic_linker="$host_os dyld" 15310 version_type=darwin 15311 need_lib_prefix=no 15312 need_version=no 15313 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15314 soname_spec='${libname}${release}${major}$shared_ext' 15315 shlibpath_overrides_runpath=yes 15316 shlibpath_var=DYLD_LIBRARY_PATH 15317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15318 15319 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 15320 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15321 ;; 15322 15323dgux*) 15324 version_type=linux # correct to gnu/linux during the next big refactor 15325 need_lib_prefix=no 15326 need_version=no 15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15328 soname_spec='${libname}${release}${shared_ext}$major' 15329 shlibpath_var=LD_LIBRARY_PATH 15330 ;; 15331 15332freebsd* | dragonfly*) 15333 # DragonFly does not have aout. When/if they implement a new 15334 # versioning mechanism, adjust this. 15335 if test -x /usr/bin/objformat; then 15336 objformat=`/usr/bin/objformat` 15337 else 15338 case $host_os in 15339 freebsd[23].*) objformat=aout ;; 15340 *) objformat=elf ;; 15341 esac 15342 fi 15343 version_type=freebsd-$objformat 15344 case $version_type in 15345 freebsd-elf*) 15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15347 need_version=no 15348 need_lib_prefix=no 15349 ;; 15350 freebsd-*) 15351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15352 need_version=yes 15353 ;; 15354 esac 15355 shlibpath_var=LD_LIBRARY_PATH 15356 case $host_os in 15357 freebsd2.*) 15358 shlibpath_overrides_runpath=yes 15359 ;; 15360 freebsd3.[01]* | freebsdelf3.[01]*) 15361 shlibpath_overrides_runpath=yes 15362 hardcode_into_libs=yes 15363 ;; 15364 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15365 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15366 shlibpath_overrides_runpath=no 15367 hardcode_into_libs=yes 15368 ;; 15369 *) # from 4.6 on, and DragonFly 15370 shlibpath_overrides_runpath=yes 15371 hardcode_into_libs=yes 15372 ;; 15373 esac 15374 ;; 15375 15376gnu*) 15377 version_type=linux # correct to gnu/linux during the next big refactor 15378 need_lib_prefix=no 15379 need_version=no 15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15381 soname_spec='${libname}${release}${shared_ext}$major' 15382 shlibpath_var=LD_LIBRARY_PATH 15383 shlibpath_overrides_runpath=no 15384 hardcode_into_libs=yes 15385 ;; 15386 15387haiku*) 15388 version_type=linux # correct to gnu/linux during the next big refactor 15389 need_lib_prefix=no 15390 need_version=no 15391 dynamic_linker="$host_os runtime_loader" 15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15393 soname_spec='${libname}${release}${shared_ext}$major' 15394 shlibpath_var=LIBRARY_PATH 15395 shlibpath_overrides_runpath=yes 15396 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15397 hardcode_into_libs=yes 15398 ;; 15399 15400hpux9* | hpux10* | hpux11*) 15401 # Give a soname corresponding to the major version so that dld.sl refuses to 15402 # link against other versions. 15403 version_type=sunos 15404 need_lib_prefix=no 15405 need_version=no 15406 case $host_cpu in 15407 ia64*) 15408 shrext_cmds='.so' 15409 hardcode_into_libs=yes 15410 dynamic_linker="$host_os dld.so" 15411 shlibpath_var=LD_LIBRARY_PATH 15412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15414 soname_spec='${libname}${release}${shared_ext}$major' 15415 if test "X$HPUX_IA64_MODE" = X32; then 15416 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15417 else 15418 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15419 fi 15420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15421 ;; 15422 hppa*64*) 15423 shrext_cmds='.sl' 15424 hardcode_into_libs=yes 15425 dynamic_linker="$host_os dld.sl" 15426 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15429 soname_spec='${libname}${release}${shared_ext}$major' 15430 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15432 ;; 15433 *) 15434 shrext_cmds='.sl' 15435 dynamic_linker="$host_os dld.sl" 15436 shlibpath_var=SHLIB_PATH 15437 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15439 soname_spec='${libname}${release}${shared_ext}$major' 15440 ;; 15441 esac 15442 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15443 postinstall_cmds='chmod 555 $lib' 15444 # or fails outright, so override atomically: 15445 install_override_mode=555 15446 ;; 15447 15448interix[3-9]*) 15449 version_type=linux # correct to gnu/linux during the next big refactor 15450 need_lib_prefix=no 15451 need_version=no 15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15453 soname_spec='${libname}${release}${shared_ext}$major' 15454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15455 shlibpath_var=LD_LIBRARY_PATH 15456 shlibpath_overrides_runpath=no 15457 hardcode_into_libs=yes 15458 ;; 15459 15460irix5* | irix6* | nonstopux*) 15461 case $host_os in 15462 nonstopux*) version_type=nonstopux ;; 15463 *) 15464 if test "$lt_cv_prog_gnu_ld" = yes; then 15465 version_type=linux # correct to gnu/linux during the next big refactor 15466 else 15467 version_type=irix 15468 fi ;; 15469 esac 15470 need_lib_prefix=no 15471 need_version=no 15472 soname_spec='${libname}${release}${shared_ext}$major' 15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15474 case $host_os in 15475 irix5* | nonstopux*) 15476 libsuff= shlibsuff= 15477 ;; 15478 *) 15479 case $LD in # libtool.m4 will add one of these switches to LD 15480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15481 libsuff= shlibsuff= libmagic=32-bit;; 15482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15483 libsuff=32 shlibsuff=N32 libmagic=N32;; 15484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15485 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15486 *) libsuff= shlibsuff= libmagic=never-match;; 15487 esac 15488 ;; 15489 esac 15490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15491 shlibpath_overrides_runpath=no 15492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15494 hardcode_into_libs=yes 15495 ;; 15496 15497# No shared lib support for Linux oldld, aout, or coff. 15498linux*oldld* | linux*aout* | linux*coff*) 15499 dynamic_linker=no 15500 ;; 15501 15502# This must be glibc/ELF. 15503linux* | k*bsd*-gnu | kopensolaris*-gnu) 15504 version_type=linux # correct to gnu/linux during the next big refactor 15505 need_lib_prefix=no 15506 need_version=no 15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15508 soname_spec='${libname}${release}${shared_ext}$major' 15509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15510 shlibpath_var=LD_LIBRARY_PATH 15511 shlibpath_overrides_runpath=no 15512 15513 # Some binutils ld are patched to set DT_RUNPATH 15514 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15515 $as_echo_n "(cached) " >&6 15516else 15517 lt_cv_shlibpath_overrides_runpath=no 15518 save_LDFLAGS=$LDFLAGS 15519 save_libdir=$libdir 15520 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 15521 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15523/* end confdefs.h. */ 15524 15525int 15526main () 15527{ 15528 15529 ; 15530 return 0; 15531} 15532_ACEOF 15533if ac_fn_c_try_link "$LINENO"; then : 15534 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15535 lt_cv_shlibpath_overrides_runpath=yes 15536fi 15537fi 15538rm -f core conftest.err conftest.$ac_objext \ 15539 conftest$ac_exeext conftest.$ac_ext 15540 LDFLAGS=$save_LDFLAGS 15541 libdir=$save_libdir 15542 15543fi 15544 15545 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15546 15547 # This implies no fast_install, which is unacceptable. 15548 # Some rework will be needed to allow for fast_install 15549 # before this can be enabled. 15550 hardcode_into_libs=yes 15551 15552 # Append ld.so.conf contents to the search path 15553 if test -f /etc/ld.so.conf; then 15554 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' ' '` 15555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15556 fi 15557 15558 # We used to test for /lib/ld.so.1 and disable shared libraries on 15559 # powerpc, because MkLinux only supported shared libraries with the 15560 # GNU dynamic linker. Since this was broken with cross compilers, 15561 # most powerpc-linux boxes support dynamic linking these days and 15562 # people can always --disable-shared, the test was removed, and we 15563 # assume the GNU/Linux dynamic linker is in use. 15564 dynamic_linker='GNU/Linux ld.so' 15565 ;; 15566 15567netbsd*) 15568 version_type=sunos 15569 need_lib_prefix=no 15570 need_version=no 15571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15574 dynamic_linker='NetBSD (a.out) ld.so' 15575 else 15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15577 soname_spec='${libname}${release}${shared_ext}$major' 15578 dynamic_linker='NetBSD ld.elf_so' 15579 fi 15580 shlibpath_var=LD_LIBRARY_PATH 15581 shlibpath_overrides_runpath=yes 15582 hardcode_into_libs=yes 15583 ;; 15584 15585newsos6) 15586 version_type=linux # correct to gnu/linux during the next big refactor 15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15588 shlibpath_var=LD_LIBRARY_PATH 15589 shlibpath_overrides_runpath=yes 15590 ;; 15591 15592*nto* | *qnx*) 15593 version_type=qnx 15594 need_lib_prefix=no 15595 need_version=no 15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15597 soname_spec='${libname}${release}${shared_ext}$major' 15598 shlibpath_var=LD_LIBRARY_PATH 15599 shlibpath_overrides_runpath=no 15600 hardcode_into_libs=yes 15601 dynamic_linker='ldqnx.so' 15602 ;; 15603 15604openbsd*) 15605 version_type=sunos 15606 sys_lib_dlsearch_path_spec="/usr/lib" 15607 need_lib_prefix=no 15608 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15609 case $host_os in 15610 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15611 *) need_version=no ;; 15612 esac 15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15615 shlibpath_var=LD_LIBRARY_PATH 15616 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15617 case $host_os in 15618 openbsd2.[89] | openbsd2.[89].*) 15619 shlibpath_overrides_runpath=no 15620 ;; 15621 *) 15622 shlibpath_overrides_runpath=yes 15623 ;; 15624 esac 15625 else 15626 shlibpath_overrides_runpath=yes 15627 fi 15628 ;; 15629 15630os2*) 15631 libname_spec='$name' 15632 shrext_cmds=".dll" 15633 need_lib_prefix=no 15634 library_names_spec='$libname${shared_ext} $libname.a' 15635 dynamic_linker='OS/2 ld.exe' 15636 shlibpath_var=LIBPATH 15637 ;; 15638 15639osf3* | osf4* | osf5*) 15640 version_type=osf 15641 need_lib_prefix=no 15642 need_version=no 15643 soname_spec='${libname}${release}${shared_ext}$major' 15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15645 shlibpath_var=LD_LIBRARY_PATH 15646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15648 ;; 15649 15650rdos*) 15651 dynamic_linker=no 15652 ;; 15653 15654solaris*) 15655 version_type=linux # correct to gnu/linux during the next big refactor 15656 need_lib_prefix=no 15657 need_version=no 15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15659 soname_spec='${libname}${release}${shared_ext}$major' 15660 shlibpath_var=LD_LIBRARY_PATH 15661 shlibpath_overrides_runpath=yes 15662 hardcode_into_libs=yes 15663 # ldd complains unless libraries are executable 15664 postinstall_cmds='chmod +x $lib' 15665 ;; 15666 15667sunos4*) 15668 version_type=sunos 15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15671 shlibpath_var=LD_LIBRARY_PATH 15672 shlibpath_overrides_runpath=yes 15673 if test "$with_gnu_ld" = yes; then 15674 need_lib_prefix=no 15675 fi 15676 need_version=yes 15677 ;; 15678 15679sysv4 | sysv4.3*) 15680 version_type=linux # correct to gnu/linux during the next big refactor 15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15682 soname_spec='${libname}${release}${shared_ext}$major' 15683 shlibpath_var=LD_LIBRARY_PATH 15684 case $host_vendor in 15685 sni) 15686 shlibpath_overrides_runpath=no 15687 need_lib_prefix=no 15688 runpath_var=LD_RUN_PATH 15689 ;; 15690 siemens) 15691 need_lib_prefix=no 15692 ;; 15693 motorola) 15694 need_lib_prefix=no 15695 need_version=no 15696 shlibpath_overrides_runpath=no 15697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15698 ;; 15699 esac 15700 ;; 15701 15702sysv4*MP*) 15703 if test -d /usr/nec ;then 15704 version_type=linux # correct to gnu/linux during the next big refactor 15705 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15706 soname_spec='$libname${shared_ext}.$major' 15707 shlibpath_var=LD_LIBRARY_PATH 15708 fi 15709 ;; 15710 15711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15712 version_type=freebsd-elf 15713 need_lib_prefix=no 15714 need_version=no 15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15716 soname_spec='${libname}${release}${shared_ext}$major' 15717 shlibpath_var=LD_LIBRARY_PATH 15718 shlibpath_overrides_runpath=yes 15719 hardcode_into_libs=yes 15720 if test "$with_gnu_ld" = yes; then 15721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15722 else 15723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15724 case $host_os in 15725 sco3.2v5*) 15726 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15727 ;; 15728 esac 15729 fi 15730 sys_lib_dlsearch_path_spec='/usr/lib' 15731 ;; 15732 15733tpf*) 15734 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15735 version_type=linux # correct to gnu/linux during the next big refactor 15736 need_lib_prefix=no 15737 need_version=no 15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15739 shlibpath_var=LD_LIBRARY_PATH 15740 shlibpath_overrides_runpath=no 15741 hardcode_into_libs=yes 15742 ;; 15743 15744uts4*) 15745 version_type=linux # correct to gnu/linux during the next big refactor 15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15747 soname_spec='${libname}${release}${shared_ext}$major' 15748 shlibpath_var=LD_LIBRARY_PATH 15749 ;; 15750 15751*) 15752 dynamic_linker=no 15753 ;; 15754esac 15755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15756$as_echo "$dynamic_linker" >&6; } 15757test "$dynamic_linker" = no && can_build_shared=no 15758 15759variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15760if test "$GCC" = yes; then 15761 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15762fi 15763 15764if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15765 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15766fi 15767if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15768 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15769fi 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15863$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15864hardcode_action= 15865if test -n "$hardcode_libdir_flag_spec" || 15866 test -n "$runpath_var" || 15867 test "X$hardcode_automatic" = "Xyes" ; then 15868 15869 # We can hardcode non-existent directories. 15870 if test "$hardcode_direct" != no && 15871 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15872 # have to relink, otherwise we might link with an installed library 15873 # when we should be linking with a yet-to-be-installed one 15874 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 15875 test "$hardcode_minus_L" != no; then 15876 # Linking always hardcodes the temporary library directory. 15877 hardcode_action=relink 15878 else 15879 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15880 hardcode_action=immediate 15881 fi 15882else 15883 # We cannot hardcode anything, or else we can only hardcode existing 15884 # directories. 15885 hardcode_action=unsupported 15886fi 15887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15888$as_echo "$hardcode_action" >&6; } 15889 15890if test "$hardcode_action" = relink || 15891 test "$inherit_rpath" = yes; then 15892 # Fast installation is not supported 15893 enable_fast_install=no 15894elif test "$shlibpath_overrides_runpath" = yes || 15895 test "$enable_shared" = no; then 15896 # Fast installation is not necessary 15897 enable_fast_install=needless 15898fi 15899 15900 15901 15902 15903 15904 15905 if test "x$enable_dlopen" != xyes; then 15906 enable_dlopen=unknown 15907 enable_dlopen_self=unknown 15908 enable_dlopen_self_static=unknown 15909else 15910 lt_cv_dlopen=no 15911 lt_cv_dlopen_libs= 15912 15913 case $host_os in 15914 beos*) 15915 lt_cv_dlopen="load_add_on" 15916 lt_cv_dlopen_libs= 15917 lt_cv_dlopen_self=yes 15918 ;; 15919 15920 mingw* | pw32* | cegcc*) 15921 lt_cv_dlopen="LoadLibrary" 15922 lt_cv_dlopen_libs= 15923 ;; 15924 15925 cygwin*) 15926 lt_cv_dlopen="dlopen" 15927 lt_cv_dlopen_libs= 15928 ;; 15929 15930 darwin*) 15931 # if libdl is installed we need to link against it 15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15933$as_echo_n "checking for dlopen in -ldl... " >&6; } 15934if ${ac_cv_lib_dl_dlopen+:} false; then : 15935 $as_echo_n "(cached) " >&6 15936else 15937 ac_check_lib_save_LIBS=$LIBS 15938LIBS="-ldl $LIBS" 15939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15940/* end confdefs.h. */ 15941 15942/* Override any GCC internal prototype to avoid an error. 15943 Use char because int might match the return type of a GCC 15944 builtin and then its argument prototype would still apply. */ 15945#ifdef __cplusplus 15946extern "C" 15947#endif 15948char dlopen (); 15949int 15950main () 15951{ 15952return dlopen (); 15953 ; 15954 return 0; 15955} 15956_ACEOF 15957if ac_fn_c_try_link "$LINENO"; then : 15958 ac_cv_lib_dl_dlopen=yes 15959else 15960 ac_cv_lib_dl_dlopen=no 15961fi 15962rm -f core conftest.err conftest.$ac_objext \ 15963 conftest$ac_exeext conftest.$ac_ext 15964LIBS=$ac_check_lib_save_LIBS 15965fi 15966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15967$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15968if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 15970else 15971 15972 lt_cv_dlopen="dyld" 15973 lt_cv_dlopen_libs= 15974 lt_cv_dlopen_self=yes 15975 15976fi 15977 15978 ;; 15979 15980 *) 15981 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15982if test "x$ac_cv_func_shl_load" = xyes; then : 15983 lt_cv_dlopen="shl_load" 15984else 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15986$as_echo_n "checking for shl_load in -ldld... " >&6; } 15987if ${ac_cv_lib_dld_shl_load+:} false; then : 15988 $as_echo_n "(cached) " >&6 15989else 15990 ac_check_lib_save_LIBS=$LIBS 15991LIBS="-ldld $LIBS" 15992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15993/* end confdefs.h. */ 15994 15995/* Override any GCC internal prototype to avoid an error. 15996 Use char because int might match the return type of a GCC 15997 builtin and then its argument prototype would still apply. */ 15998#ifdef __cplusplus 15999extern "C" 16000#endif 16001char shl_load (); 16002int 16003main () 16004{ 16005return shl_load (); 16006 ; 16007 return 0; 16008} 16009_ACEOF 16010if ac_fn_c_try_link "$LINENO"; then : 16011 ac_cv_lib_dld_shl_load=yes 16012else 16013 ac_cv_lib_dld_shl_load=no 16014fi 16015rm -f core conftest.err conftest.$ac_objext \ 16016 conftest$ac_exeext conftest.$ac_ext 16017LIBS=$ac_check_lib_save_LIBS 16018fi 16019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16020$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 16021if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 16022 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 16023else 16024 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16025if test "x$ac_cv_func_dlopen" = xyes; then : 16026 lt_cv_dlopen="dlopen" 16027else 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16029$as_echo_n "checking for dlopen in -ldl... " >&6; } 16030if ${ac_cv_lib_dl_dlopen+:} false; then : 16031 $as_echo_n "(cached) " >&6 16032else 16033 ac_check_lib_save_LIBS=$LIBS 16034LIBS="-ldl $LIBS" 16035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16036/* end confdefs.h. */ 16037 16038/* Override any GCC internal prototype to avoid an error. 16039 Use char because int might match the return type of a GCC 16040 builtin and then its argument prototype would still apply. */ 16041#ifdef __cplusplus 16042extern "C" 16043#endif 16044char dlopen (); 16045int 16046main () 16047{ 16048return dlopen (); 16049 ; 16050 return 0; 16051} 16052_ACEOF 16053if ac_fn_c_try_link "$LINENO"; then : 16054 ac_cv_lib_dl_dlopen=yes 16055else 16056 ac_cv_lib_dl_dlopen=no 16057fi 16058rm -f core conftest.err conftest.$ac_objext \ 16059 conftest$ac_exeext conftest.$ac_ext 16060LIBS=$ac_check_lib_save_LIBS 16061fi 16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16063$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16064if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16066else 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16068$as_echo_n "checking for dlopen in -lsvld... " >&6; } 16069if ${ac_cv_lib_svld_dlopen+:} false; then : 16070 $as_echo_n "(cached) " >&6 16071else 16072 ac_check_lib_save_LIBS=$LIBS 16073LIBS="-lsvld $LIBS" 16074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16075/* end confdefs.h. */ 16076 16077/* Override any GCC internal prototype to avoid an error. 16078 Use char because int might match the return type of a GCC 16079 builtin and then its argument prototype would still apply. */ 16080#ifdef __cplusplus 16081extern "C" 16082#endif 16083char dlopen (); 16084int 16085main () 16086{ 16087return dlopen (); 16088 ; 16089 return 0; 16090} 16091_ACEOF 16092if ac_fn_c_try_link "$LINENO"; then : 16093 ac_cv_lib_svld_dlopen=yes 16094else 16095 ac_cv_lib_svld_dlopen=no 16096fi 16097rm -f core conftest.err conftest.$ac_objext \ 16098 conftest$ac_exeext conftest.$ac_ext 16099LIBS=$ac_check_lib_save_LIBS 16100fi 16101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16102$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 16103if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 16104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 16105else 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16107$as_echo_n "checking for dld_link in -ldld... " >&6; } 16108if ${ac_cv_lib_dld_dld_link+:} false; then : 16109 $as_echo_n "(cached) " >&6 16110else 16111 ac_check_lib_save_LIBS=$LIBS 16112LIBS="-ldld $LIBS" 16113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16114/* end confdefs.h. */ 16115 16116/* Override any GCC internal prototype to avoid an error. 16117 Use char because int might match the return type of a GCC 16118 builtin and then its argument prototype would still apply. */ 16119#ifdef __cplusplus 16120extern "C" 16121#endif 16122char dld_link (); 16123int 16124main () 16125{ 16126return dld_link (); 16127 ; 16128 return 0; 16129} 16130_ACEOF 16131if ac_fn_c_try_link "$LINENO"; then : 16132 ac_cv_lib_dld_dld_link=yes 16133else 16134 ac_cv_lib_dld_dld_link=no 16135fi 16136rm -f core conftest.err conftest.$ac_objext \ 16137 conftest$ac_exeext conftest.$ac_ext 16138LIBS=$ac_check_lib_save_LIBS 16139fi 16140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16141$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 16142if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 16143 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 16144fi 16145 16146 16147fi 16148 16149 16150fi 16151 16152 16153fi 16154 16155 16156fi 16157 16158 16159fi 16160 16161 ;; 16162 esac 16163 16164 if test "x$lt_cv_dlopen" != xno; then 16165 enable_dlopen=yes 16166 else 16167 enable_dlopen=no 16168 fi 16169 16170 case $lt_cv_dlopen in 16171 dlopen) 16172 save_CPPFLAGS="$CPPFLAGS" 16173 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16174 16175 save_LDFLAGS="$LDFLAGS" 16176 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16177 16178 save_LIBS="$LIBS" 16179 LIBS="$lt_cv_dlopen_libs $LIBS" 16180 16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16182$as_echo_n "checking whether a program can dlopen itself... " >&6; } 16183if ${lt_cv_dlopen_self+:} false; then : 16184 $as_echo_n "(cached) " >&6 16185else 16186 if test "$cross_compiling" = yes; then : 16187 lt_cv_dlopen_self=cross 16188else 16189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16190 lt_status=$lt_dlunknown 16191 cat > conftest.$ac_ext <<_LT_EOF 16192#line $LINENO "configure" 16193#include "confdefs.h" 16194 16195#if HAVE_DLFCN_H 16196#include <dlfcn.h> 16197#endif 16198 16199#include <stdio.h> 16200 16201#ifdef RTLD_GLOBAL 16202# define LT_DLGLOBAL RTLD_GLOBAL 16203#else 16204# ifdef DL_GLOBAL 16205# define LT_DLGLOBAL DL_GLOBAL 16206# else 16207# define LT_DLGLOBAL 0 16208# endif 16209#endif 16210 16211/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16212 find out it does not work in some platform. */ 16213#ifndef LT_DLLAZY_OR_NOW 16214# ifdef RTLD_LAZY 16215# define LT_DLLAZY_OR_NOW RTLD_LAZY 16216# else 16217# ifdef DL_LAZY 16218# define LT_DLLAZY_OR_NOW DL_LAZY 16219# else 16220# ifdef RTLD_NOW 16221# define LT_DLLAZY_OR_NOW RTLD_NOW 16222# else 16223# ifdef DL_NOW 16224# define LT_DLLAZY_OR_NOW DL_NOW 16225# else 16226# define LT_DLLAZY_OR_NOW 0 16227# endif 16228# endif 16229# endif 16230# endif 16231#endif 16232 16233/* When -fvisbility=hidden is used, assume the code has been annotated 16234 correspondingly for the symbols needed. */ 16235#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16236int fnord () __attribute__((visibility("default"))); 16237#endif 16238 16239int fnord () { return 42; } 16240int main () 16241{ 16242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16243 int status = $lt_dlunknown; 16244 16245 if (self) 16246 { 16247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16248 else 16249 { 16250 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16251 else puts (dlerror ()); 16252 } 16253 /* dlclose (self); */ 16254 } 16255 else 16256 puts (dlerror ()); 16257 16258 return status; 16259} 16260_LT_EOF 16261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16262 (eval $ac_link) 2>&5 16263 ac_status=$? 16264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 16266 (./conftest; exit; ) >&5 2>/dev/null 16267 lt_status=$? 16268 case x$lt_status in 16269 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16270 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16271 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16272 esac 16273 else : 16274 # compilation failed 16275 lt_cv_dlopen_self=no 16276 fi 16277fi 16278rm -fr conftest* 16279 16280 16281fi 16282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16283$as_echo "$lt_cv_dlopen_self" >&6; } 16284 16285 if test "x$lt_cv_dlopen_self" = xyes; then 16286 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16288$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 16289if ${lt_cv_dlopen_self_static+:} false; then : 16290 $as_echo_n "(cached) " >&6 16291else 16292 if test "$cross_compiling" = yes; then : 16293 lt_cv_dlopen_self_static=cross 16294else 16295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16296 lt_status=$lt_dlunknown 16297 cat > conftest.$ac_ext <<_LT_EOF 16298#line $LINENO "configure" 16299#include "confdefs.h" 16300 16301#if HAVE_DLFCN_H 16302#include <dlfcn.h> 16303#endif 16304 16305#include <stdio.h> 16306 16307#ifdef RTLD_GLOBAL 16308# define LT_DLGLOBAL RTLD_GLOBAL 16309#else 16310# ifdef DL_GLOBAL 16311# define LT_DLGLOBAL DL_GLOBAL 16312# else 16313# define LT_DLGLOBAL 0 16314# endif 16315#endif 16316 16317/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16318 find out it does not work in some platform. */ 16319#ifndef LT_DLLAZY_OR_NOW 16320# ifdef RTLD_LAZY 16321# define LT_DLLAZY_OR_NOW RTLD_LAZY 16322# else 16323# ifdef DL_LAZY 16324# define LT_DLLAZY_OR_NOW DL_LAZY 16325# else 16326# ifdef RTLD_NOW 16327# define LT_DLLAZY_OR_NOW RTLD_NOW 16328# else 16329# ifdef DL_NOW 16330# define LT_DLLAZY_OR_NOW DL_NOW 16331# else 16332# define LT_DLLAZY_OR_NOW 0 16333# endif 16334# endif 16335# endif 16336# endif 16337#endif 16338 16339/* When -fvisbility=hidden is used, assume the code has been annotated 16340 correspondingly for the symbols needed. */ 16341#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16342int fnord () __attribute__((visibility("default"))); 16343#endif 16344 16345int fnord () { return 42; } 16346int main () 16347{ 16348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16349 int status = $lt_dlunknown; 16350 16351 if (self) 16352 { 16353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16354 else 16355 { 16356 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16357 else puts (dlerror ()); 16358 } 16359 /* dlclose (self); */ 16360 } 16361 else 16362 puts (dlerror ()); 16363 16364 return status; 16365} 16366_LT_EOF 16367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16368 (eval $ac_link) 2>&5 16369 ac_status=$? 16370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16371 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 16372 (./conftest; exit; ) >&5 2>/dev/null 16373 lt_status=$? 16374 case x$lt_status in 16375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16377 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16378 esac 16379 else : 16380 # compilation failed 16381 lt_cv_dlopen_self_static=no 16382 fi 16383fi 16384rm -fr conftest* 16385 16386 16387fi 16388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16389$as_echo "$lt_cv_dlopen_self_static" >&6; } 16390 fi 16391 16392 CPPFLAGS="$save_CPPFLAGS" 16393 LDFLAGS="$save_LDFLAGS" 16394 LIBS="$save_LIBS" 16395 ;; 16396 esac 16397 16398 case $lt_cv_dlopen_self in 16399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16400 *) enable_dlopen_self=unknown ;; 16401 esac 16402 16403 case $lt_cv_dlopen_self_static in 16404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16405 *) enable_dlopen_self_static=unknown ;; 16406 esac 16407fi 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425striplib= 16426old_striplib= 16427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16428$as_echo_n "checking whether stripping libraries is possible... " >&6; } 16429if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16430 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16431 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16433$as_echo "yes" >&6; } 16434else 16435# FIXME - insert some real tests, host_os isn't really good enough 16436 case $host_os in 16437 darwin*) 16438 if test -n "$STRIP" ; then 16439 striplib="$STRIP -x" 16440 old_striplib="$STRIP -S" 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16442$as_echo "yes" >&6; } 16443 else 16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16445$as_echo "no" >&6; } 16446 fi 16447 ;; 16448 *) 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16450$as_echo "no" >&6; } 16451 ;; 16452 esac 16453fi 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 # Report which library types will actually be built 16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16468$as_echo_n "checking if libtool supports shared libraries... " >&6; } 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16470$as_echo "$can_build_shared" >&6; } 16471 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16473$as_echo_n "checking whether to build shared libraries... " >&6; } 16474 test "$can_build_shared" = "no" && enable_shared=no 16475 16476 # On AIX, shared libraries and static libraries use the same namespace, and 16477 # are all built from PIC. 16478 case $host_os in 16479 aix3*) 16480 test "$enable_shared" = yes && enable_static=no 16481 if test -n "$RANLIB"; then 16482 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16483 postinstall_cmds='$RANLIB $lib' 16484 fi 16485 ;; 16486 16487 aix[4-9]*) 16488 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 16489 test "$enable_shared" = yes && enable_static=no 16490 fi 16491 ;; 16492 esac 16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16494$as_echo "$enable_shared" >&6; } 16495 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16497$as_echo_n "checking whether to build static libraries... " >&6; } 16498 # Make sure either enable_shared or enable_static is yes. 16499 test "$enable_shared" = yes || enable_static=yes 16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16501$as_echo "$enable_static" >&6; } 16502 16503 16504 16505 16506fi 16507ac_ext=c 16508ac_cpp='$CPP $CPPFLAGS' 16509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16511ac_compiler_gnu=$ac_cv_c_compiler_gnu 16512 16513CC="$lt_save_CC" 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 ac_config_commands="$ac_config_commands libtool" 16530 16531 16532 16533 16534# Only expand once: 16535 16536 16537 16538 16539 16540# Define a configure option for an alternate module directory 16541 16542# Check whether --with-xorg-module-dir was given. 16543if test "${with_xorg_module_dir+set}" = set; then : 16544 withval=$with_xorg_module_dir; moduledir="$withval" 16545else 16546 moduledir="$libdir/xorg/modules" 16547fi 16548 16549 16550# Store the list of server defined optional extensions in REQUIRED_MODULES 16551#XORG_DRIVER_CHECK_EXT(RANDR, randrproto) 16552#XORG_DRIVER_CHECK_EXT(RENDER, renderproto) 16553#XORG_DRIVER_CHECK_EXT(XV, videoproto) 16554 16555# Obtain compiler/linker options for the driver dependencies 16556 16557pkg_failed=no 16558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 16559$as_echo_n "checking for XORG... " >&6; } 16560 16561if test -n "$XORG_CFLAGS"; then 16562 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 16563 elif test -n "$PKG_CONFIG"; then 16564 if test -n "$PKG_CONFIG" && \ 16565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\""; } >&5 16566 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5 16567 ac_status=$? 16568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16569 test $ac_status = 0; }; then 16570 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null` 16571 test "x$?" != "x0" && pkg_failed=yes 16572else 16573 pkg_failed=yes 16574fi 16575 else 16576 pkg_failed=untried 16577fi 16578if test -n "$XORG_LIBS"; then 16579 pkg_cv_XORG_LIBS="$XORG_LIBS" 16580 elif test -n "$PKG_CONFIG"; then 16581 if test -n "$PKG_CONFIG" && \ 16582 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\""; } >&5 16583 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5 16584 ac_status=$? 16585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16586 test $ac_status = 0; }; then 16587 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null` 16588 test "x$?" != "x0" && pkg_failed=yes 16589else 16590 pkg_failed=yes 16591fi 16592 else 16593 pkg_failed=untried 16594fi 16595 16596 16597 16598if test $pkg_failed = yes; then 16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16600$as_echo "no" >&6; } 16601 16602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16603 _pkg_short_errors_supported=yes 16604else 16605 _pkg_short_errors_supported=no 16606fi 16607 if test $_pkg_short_errors_supported = yes; then 16608 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>&1` 16609 else 16610 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>&1` 16611 fi 16612 # Put the nasty error message in config.log where it belongs 16613 echo "$XORG_PKG_ERRORS" >&5 16614 16615 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met: 16616 16617$XORG_PKG_ERRORS 16618 16619Consider adjusting the PKG_CONFIG_PATH environment variable if you 16620installed software in a non-standard prefix. 16621 16622Alternatively, you may set the environment variables XORG_CFLAGS 16623and XORG_LIBS to avoid the need to call pkg-config. 16624See the pkg-config man page for more details." "$LINENO" 5 16625elif test $pkg_failed = untried; then 16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16627$as_echo "no" >&6; } 16628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16630as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16631is in your PATH or set the PKG_CONFIG environment variable to the full 16632path to pkg-config. 16633 16634Alternatively, you may set the environment variables XORG_CFLAGS 16635and XORG_LIBS to avoid the need to call pkg-config. 16636See the pkg-config man page for more details. 16637 16638To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16639See \`config.log' for more details" "$LINENO" 5; } 16640else 16641 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 16642 XORG_LIBS=$pkg_cv_XORG_LIBS 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16644$as_echo "yes" >&6; } 16645 16646fi 16647 16648# Checks for libraries. 16649 16650# Check for xf1bpp & xf4bpp (removed in xorg-server 1.6 & later) 16651SAVE_CPPFLAGS="$CPPFLAGS" 16652CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 16653ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default" 16654if test "x$ac_cv_header_xf1bpp_h" = xyes; then : 16655 16656$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h 16657 16658fi 16659 16660 16661ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default" 16662if test "x$ac_cv_header_xf4bpp_h" = xyes; then : 16663 16664$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h 16665 16666fi 16667 16668 16669CPPFLAGS="$SAVE_CPPFLAGS" 16670 16671 16672 16673DRIVER_NAME=scfb 16674 16675 16676ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 16677 16678cat >confcache <<\_ACEOF 16679# This file is a shell script that caches the results of configure 16680# tests run on this system so they can be shared between configure 16681# scripts and configure runs, see configure's option --config-cache. 16682# It is not useful on other systems. If it contains results you don't 16683# want to keep, you may remove or edit it. 16684# 16685# config.status only pays attention to the cache file if you give it 16686# the --recheck option to rerun configure. 16687# 16688# `ac_cv_env_foo' variables (set or unset) will be overridden when 16689# loading this file, other *unset* `ac_cv_foo' will be assigned the 16690# following values. 16691 16692_ACEOF 16693 16694# The following way of writing the cache mishandles newlines in values, 16695# but we know of no workaround that is simple, portable, and efficient. 16696# So, we kill variables containing newlines. 16697# Ultrix sh set writes to stderr and can't be redirected directly, 16698# and sets the high bit in the cache file unless we assign to the vars. 16699( 16700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16701 eval ac_val=\$$ac_var 16702 case $ac_val in #( 16703 *${as_nl}*) 16704 case $ac_var in #( 16705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16706$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16707 esac 16708 case $ac_var in #( 16709 _ | IFS | as_nl) ;; #( 16710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16711 *) { eval $ac_var=; unset $ac_var;} ;; 16712 esac ;; 16713 esac 16714 done 16715 16716 (set) 2>&1 | 16717 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16718 *${as_nl}ac_space=\ *) 16719 # `set' does not quote correctly, so add quotes: double-quote 16720 # substitution turns \\\\ into \\, and sed turns \\ into \. 16721 sed -n \ 16722 "s/'/'\\\\''/g; 16723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16724 ;; #( 16725 *) 16726 # `set' quotes correctly as required by POSIX, so do not add quotes. 16727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16728 ;; 16729 esac | 16730 sort 16731) | 16732 sed ' 16733 /^ac_cv_env_/b end 16734 t clear 16735 :clear 16736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16737 t end 16738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16739 :end' >>confcache 16740if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16741 if test -w "$cache_file"; then 16742 if test "x$cache_file" != "x/dev/null"; then 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16744$as_echo "$as_me: updating cache $cache_file" >&6;} 16745 if test ! -f "$cache_file" || test -h "$cache_file"; then 16746 cat confcache >"$cache_file" 16747 else 16748 case $cache_file in #( 16749 */* | ?:*) 16750 mv -f confcache "$cache_file"$$ && 16751 mv -f "$cache_file"$$ "$cache_file" ;; #( 16752 *) 16753 mv -f confcache "$cache_file" ;; 16754 esac 16755 fi 16756 fi 16757 else 16758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16759$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16760 fi 16761fi 16762rm -f confcache 16763 16764test "x$prefix" = xNONE && prefix=$ac_default_prefix 16765# Let make expand exec_prefix. 16766test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16767 16768DEFS=-DHAVE_CONFIG_H 16769 16770ac_libobjs= 16771ac_ltlibobjs= 16772U= 16773for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16774 # 1. Remove the extension, and $U if already installed. 16775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16778 # will be set to the directory where LIBOBJS objects are built. 16779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16781done 16782LIBOBJS=$ac_libobjs 16783 16784LTLIBOBJS=$ac_ltlibobjs 16785 16786 16787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16788$as_echo_n "checking that generated files are newer than configure... " >&6; } 16789 if test -n "$am_sleep_pid"; then 16790 # Hide warnings about reused PIDs. 16791 wait $am_sleep_pid 2>/dev/null 16792 fi 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16794$as_echo "done" >&6; } 16795if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16796 as_fn_error $? "conditional \"AMDEP\" was never defined. 16797Usually this means the macro was only invoked conditionally." "$LINENO" 5 16798fi 16799if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16800 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16801Usually this means the macro was only invoked conditionally." "$LINENO" 5 16802fi 16803 if test -n "$EXEEXT"; then 16804 am__EXEEXT_TRUE= 16805 am__EXEEXT_FALSE='#' 16806else 16807 am__EXEEXT_TRUE='#' 16808 am__EXEEXT_FALSE= 16809fi 16810 16811if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16812 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16813Usually this means the macro was only invoked conditionally." "$LINENO" 5 16814fi 16815 16816: "${CONFIG_STATUS=./config.status}" 16817ac_write_fail=0 16818ac_clean_files_save=$ac_clean_files 16819ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16820{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16821$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16822as_write_fail=0 16823cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16824#! $SHELL 16825# Generated by $as_me. 16826# Run this file to recreate the current configuration. 16827# Compiler output produced by configure, useful for debugging 16828# configure, is in config.log if it exists. 16829 16830debug=false 16831ac_cs_recheck=false 16832ac_cs_silent=false 16833 16834SHELL=\${CONFIG_SHELL-$SHELL} 16835export SHELL 16836_ASEOF 16837cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16838## -------------------- ## 16839## M4sh Initialization. ## 16840## -------------------- ## 16841 16842# Be more Bourne compatible 16843DUALCASE=1; export DUALCASE # for MKS sh 16844if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16845 emulate sh 16846 NULLCMD=: 16847 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16848 # is contrary to our usage. Disable this feature. 16849 alias -g '${1+"$@"}'='"$@"' 16850 setopt NO_GLOB_SUBST 16851else 16852 case `(set -o) 2>/dev/null` in #( 16853 *posix*) : 16854 set -o posix ;; #( 16855 *) : 16856 ;; 16857esac 16858fi 16859 16860 16861as_nl=' 16862' 16863export as_nl 16864# Printing a long string crashes Solaris 7 /usr/bin/printf. 16865as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16867as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16868# Prefer a ksh shell builtin over an external printf program on Solaris, 16869# but without wasting forks for bash or zsh. 16870if test -z "$BASH_VERSION$ZSH_VERSION" \ 16871 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16872 as_echo='print -r --' 16873 as_echo_n='print -rn --' 16874elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16875 as_echo='printf %s\n' 16876 as_echo_n='printf %s' 16877else 16878 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16879 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16880 as_echo_n='/usr/ucb/echo -n' 16881 else 16882 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16883 as_echo_n_body='eval 16884 arg=$1; 16885 case $arg in #( 16886 *"$as_nl"*) 16887 expr "X$arg" : "X\\(.*\\)$as_nl"; 16888 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16889 esac; 16890 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16891 ' 16892 export as_echo_n_body 16893 as_echo_n='sh -c $as_echo_n_body as_echo' 16894 fi 16895 export as_echo_body 16896 as_echo='sh -c $as_echo_body as_echo' 16897fi 16898 16899# The user is always right. 16900if test "${PATH_SEPARATOR+set}" != set; then 16901 PATH_SEPARATOR=: 16902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16903 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16904 PATH_SEPARATOR=';' 16905 } 16906fi 16907 16908 16909# IFS 16910# We need space, tab and new line, in precisely that order. Quoting is 16911# there to prevent editors from complaining about space-tab. 16912# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16913# splitting by setting IFS to empty value.) 16914IFS=" "" $as_nl" 16915 16916# Find who we are. Look in the path if we contain no directory separator. 16917as_myself= 16918case $0 in #(( 16919 *[\\/]* ) as_myself=$0 ;; 16920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16921for as_dir in $PATH 16922do 16923 IFS=$as_save_IFS 16924 test -z "$as_dir" && as_dir=. 16925 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16926 done 16927IFS=$as_save_IFS 16928 16929 ;; 16930esac 16931# We did not find ourselves, most probably we were run as `sh COMMAND' 16932# in which case we are not to be found in the path. 16933if test "x$as_myself" = x; then 16934 as_myself=$0 16935fi 16936if test ! -f "$as_myself"; then 16937 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16938 exit 1 16939fi 16940 16941# Unset variables that we do not need and which cause bugs (e.g. in 16942# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16943# suppresses any "Segmentation fault" message there. '((' could 16944# trigger a bug in pdksh 5.2.14. 16945for as_var in BASH_ENV ENV MAIL MAILPATH 16946do eval test x\${$as_var+set} = xset \ 16947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16948done 16949PS1='$ ' 16950PS2='> ' 16951PS4='+ ' 16952 16953# NLS nuisances. 16954LC_ALL=C 16955export LC_ALL 16956LANGUAGE=C 16957export LANGUAGE 16958 16959# CDPATH. 16960(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16961 16962 16963# as_fn_error STATUS ERROR [LINENO LOG_FD] 16964# ---------------------------------------- 16965# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16966# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16967# script with STATUS, using 1 if that was 0. 16968as_fn_error () 16969{ 16970 as_status=$1; test $as_status -eq 0 && as_status=1 16971 if test "$4"; then 16972 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16973 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16974 fi 16975 $as_echo "$as_me: error: $2" >&2 16976 as_fn_exit $as_status 16977} # as_fn_error 16978 16979 16980# as_fn_set_status STATUS 16981# ----------------------- 16982# Set $? to STATUS, without forking. 16983as_fn_set_status () 16984{ 16985 return $1 16986} # as_fn_set_status 16987 16988# as_fn_exit STATUS 16989# ----------------- 16990# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16991as_fn_exit () 16992{ 16993 set +e 16994 as_fn_set_status $1 16995 exit $1 16996} # as_fn_exit 16997 16998# as_fn_unset VAR 16999# --------------- 17000# Portably unset VAR. 17001as_fn_unset () 17002{ 17003 { eval $1=; unset $1;} 17004} 17005as_unset=as_fn_unset 17006# as_fn_append VAR VALUE 17007# ---------------------- 17008# Append the text in VALUE to the end of the definition contained in VAR. Take 17009# advantage of any shell optimizations that allow amortized linear growth over 17010# repeated appends, instead of the typical quadratic growth present in naive 17011# implementations. 17012if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17013 eval 'as_fn_append () 17014 { 17015 eval $1+=\$2 17016 }' 17017else 17018 as_fn_append () 17019 { 17020 eval $1=\$$1\$2 17021 } 17022fi # as_fn_append 17023 17024# as_fn_arith ARG... 17025# ------------------ 17026# Perform arithmetic evaluation on the ARGs, and store the result in the 17027# global $as_val. Take advantage of shells that can avoid forks. The arguments 17028# must be portable across $(()) and expr. 17029if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17030 eval 'as_fn_arith () 17031 { 17032 as_val=$(( $* )) 17033 }' 17034else 17035 as_fn_arith () 17036 { 17037 as_val=`expr "$@" || test $? -eq 1` 17038 } 17039fi # as_fn_arith 17040 17041 17042if expr a : '\(a\)' >/dev/null 2>&1 && 17043 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17044 as_expr=expr 17045else 17046 as_expr=false 17047fi 17048 17049if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17050 as_basename=basename 17051else 17052 as_basename=false 17053fi 17054 17055if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17056 as_dirname=dirname 17057else 17058 as_dirname=false 17059fi 17060 17061as_me=`$as_basename -- "$0" || 17062$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17063 X"$0" : 'X\(//\)$' \| \ 17064 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17065$as_echo X/"$0" | 17066 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17067 s//\1/ 17068 q 17069 } 17070 /^X\/\(\/\/\)$/{ 17071 s//\1/ 17072 q 17073 } 17074 /^X\/\(\/\).*/{ 17075 s//\1/ 17076 q 17077 } 17078 s/.*/./; q'` 17079 17080# Avoid depending upon Character Ranges. 17081as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17082as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17083as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17084as_cr_digits='0123456789' 17085as_cr_alnum=$as_cr_Letters$as_cr_digits 17086 17087ECHO_C= ECHO_N= ECHO_T= 17088case `echo -n x` in #((((( 17089-n*) 17090 case `echo 'xy\c'` in 17091 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17092 xy) ECHO_C='\c';; 17093 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17094 ECHO_T=' ';; 17095 esac;; 17096*) 17097 ECHO_N='-n';; 17098esac 17099 17100rm -f conf$$ conf$$.exe conf$$.file 17101if test -d conf$$.dir; then 17102 rm -f conf$$.dir/conf$$.file 17103else 17104 rm -f conf$$.dir 17105 mkdir conf$$.dir 2>/dev/null 17106fi 17107if (echo >conf$$.file) 2>/dev/null; then 17108 if ln -s conf$$.file conf$$ 2>/dev/null; then 17109 as_ln_s='ln -s' 17110 # ... but there are two gotchas: 17111 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17112 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17113 # In both cases, we have to default to `cp -pR'. 17114 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17115 as_ln_s='cp -pR' 17116 elif ln conf$$.file conf$$ 2>/dev/null; then 17117 as_ln_s=ln 17118 else 17119 as_ln_s='cp -pR' 17120 fi 17121else 17122 as_ln_s='cp -pR' 17123fi 17124rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17125rmdir conf$$.dir 2>/dev/null 17126 17127 17128# as_fn_mkdir_p 17129# ------------- 17130# Create "$as_dir" as a directory, including parents if necessary. 17131as_fn_mkdir_p () 17132{ 17133 17134 case $as_dir in #( 17135 -*) as_dir=./$as_dir;; 17136 esac 17137 test -d "$as_dir" || eval $as_mkdir_p || { 17138 as_dirs= 17139 while :; do 17140 case $as_dir in #( 17141 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17142 *) as_qdir=$as_dir;; 17143 esac 17144 as_dirs="'$as_qdir' $as_dirs" 17145 as_dir=`$as_dirname -- "$as_dir" || 17146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17147 X"$as_dir" : 'X\(//\)[^/]' \| \ 17148 X"$as_dir" : 'X\(//\)$' \| \ 17149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17150$as_echo X"$as_dir" | 17151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17152 s//\1/ 17153 q 17154 } 17155 /^X\(\/\/\)[^/].*/{ 17156 s//\1/ 17157 q 17158 } 17159 /^X\(\/\/\)$/{ 17160 s//\1/ 17161 q 17162 } 17163 /^X\(\/\).*/{ 17164 s//\1/ 17165 q 17166 } 17167 s/.*/./; q'` 17168 test -d "$as_dir" && break 17169 done 17170 test -z "$as_dirs" || eval "mkdir $as_dirs" 17171 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17172 17173 17174} # as_fn_mkdir_p 17175if mkdir -p . 2>/dev/null; then 17176 as_mkdir_p='mkdir -p "$as_dir"' 17177else 17178 test -d ./-p && rmdir ./-p 17179 as_mkdir_p=false 17180fi 17181 17182 17183# as_fn_executable_p FILE 17184# ----------------------- 17185# Test if FILE is an executable regular file. 17186as_fn_executable_p () 17187{ 17188 test -f "$1" && test -x "$1" 17189} # as_fn_executable_p 17190as_test_x='test -x' 17191as_executable_p=as_fn_executable_p 17192 17193# Sed expression to map a string onto a valid CPP name. 17194as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17195 17196# Sed expression to map a string onto a valid variable name. 17197as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17198 17199 17200exec 6>&1 17201## ----------------------------------- ## 17202## Main body of $CONFIG_STATUS script. ## 17203## ----------------------------------- ## 17204_ASEOF 17205test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17206 17207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17208# Save the log message, to keep $0 and so on meaningful, and to 17209# report actual input values of CONFIG_FILES etc. instead of their 17210# values after options handling. 17211ac_log=" 17212This file was extended by xf86-video-scfb $as_me 0.0.5, which was 17213generated by GNU Autoconf 2.69. Invocation command line was 17214 17215 CONFIG_FILES = $CONFIG_FILES 17216 CONFIG_HEADERS = $CONFIG_HEADERS 17217 CONFIG_LINKS = $CONFIG_LINKS 17218 CONFIG_COMMANDS = $CONFIG_COMMANDS 17219 $ $0 $@ 17220 17221on `(hostname || uname -n) 2>/dev/null | sed 1q` 17222" 17223 17224_ACEOF 17225 17226case $ac_config_files in *" 17227"*) set x $ac_config_files; shift; ac_config_files=$*;; 17228esac 17229 17230case $ac_config_headers in *" 17231"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17232esac 17233 17234 17235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17236# Files that config.status was made for. 17237config_files="$ac_config_files" 17238config_headers="$ac_config_headers" 17239config_commands="$ac_config_commands" 17240 17241_ACEOF 17242 17243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17244ac_cs_usage="\ 17245\`$as_me' instantiates files and other configuration actions 17246from templates according to the current configuration. Unless the files 17247and actions are specified as TAGs, all are instantiated by default. 17248 17249Usage: $0 [OPTION]... [TAG]... 17250 17251 -h, --help print this help, then exit 17252 -V, --version print version number and configuration settings, then exit 17253 --config print configuration, then exit 17254 -q, --quiet, --silent 17255 do not print progress messages 17256 -d, --debug don't remove temporary files 17257 --recheck update $as_me by reconfiguring in the same conditions 17258 --file=FILE[:TEMPLATE] 17259 instantiate the configuration file FILE 17260 --header=FILE[:TEMPLATE] 17261 instantiate the configuration header FILE 17262 17263Configuration files: 17264$config_files 17265 17266Configuration headers: 17267$config_headers 17268 17269Configuration commands: 17270$config_commands 17271 17272Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 17273 17274_ACEOF 17275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17276ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17277ac_cs_version="\\ 17278xf86-video-scfb config.status 0.0.5 17279configured by $0, generated by GNU Autoconf 2.69, 17280 with options \\"\$ac_cs_config\\" 17281 17282Copyright (C) 2012 Free Software Foundation, Inc. 17283This config.status script is free software; the Free Software Foundation 17284gives unlimited permission to copy, distribute and modify it." 17285 17286ac_pwd='$ac_pwd' 17287srcdir='$srcdir' 17288INSTALL='$INSTALL' 17289MKDIR_P='$MKDIR_P' 17290AWK='$AWK' 17291test -n "\$AWK" || AWK=awk 17292_ACEOF 17293 17294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17295# The default lists apply if the user does not specify any file. 17296ac_need_defaults=: 17297while test $# != 0 17298do 17299 case $1 in 17300 --*=?*) 17301 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17302 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17303 ac_shift=: 17304 ;; 17305 --*=) 17306 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17307 ac_optarg= 17308 ac_shift=: 17309 ;; 17310 *) 17311 ac_option=$1 17312 ac_optarg=$2 17313 ac_shift=shift 17314 ;; 17315 esac 17316 17317 case $ac_option in 17318 # Handling of the options. 17319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17320 ac_cs_recheck=: ;; 17321 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17322 $as_echo "$ac_cs_version"; exit ;; 17323 --config | --confi | --conf | --con | --co | --c ) 17324 $as_echo "$ac_cs_config"; exit ;; 17325 --debug | --debu | --deb | --de | --d | -d ) 17326 debug=: ;; 17327 --file | --fil | --fi | --f ) 17328 $ac_shift 17329 case $ac_optarg in 17330 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17331 '') as_fn_error $? "missing file argument" ;; 17332 esac 17333 as_fn_append CONFIG_FILES " '$ac_optarg'" 17334 ac_need_defaults=false;; 17335 --header | --heade | --head | --hea ) 17336 $ac_shift 17337 case $ac_optarg in 17338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17339 esac 17340 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17341 ac_need_defaults=false;; 17342 --he | --h) 17343 # Conflict between --help and --header 17344 as_fn_error $? "ambiguous option: \`$1' 17345Try \`$0 --help' for more information.";; 17346 --help | --hel | -h ) 17347 $as_echo "$ac_cs_usage"; exit ;; 17348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17349 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17350 ac_cs_silent=: ;; 17351 17352 # This is an error. 17353 -*) as_fn_error $? "unrecognized option: \`$1' 17354Try \`$0 --help' for more information." ;; 17355 17356 *) as_fn_append ac_config_targets " $1" 17357 ac_need_defaults=false ;; 17358 17359 esac 17360 shift 17361done 17362 17363ac_configure_extra_args= 17364 17365if $ac_cs_silent; then 17366 exec 6>/dev/null 17367 ac_configure_extra_args="$ac_configure_extra_args --silent" 17368fi 17369 17370_ACEOF 17371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17372if \$ac_cs_recheck; then 17373 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17374 shift 17375 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17376 CONFIG_SHELL='$SHELL' 17377 export CONFIG_SHELL 17378 exec "\$@" 17379fi 17380 17381_ACEOF 17382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17383exec 5>>config.log 17384{ 17385 echo 17386 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17387## Running $as_me. ## 17388_ASBOX 17389 $as_echo "$ac_log" 17390} >&5 17391 17392_ACEOF 17393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17394# 17395# INIT-COMMANDS 17396# 17397AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17398 17399 17400# The HP-UX ksh and POSIX shell print the target directory to stdout 17401# if CDPATH is set. 17402(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17403 17404sed_quote_subst='$sed_quote_subst' 17405double_quote_subst='$double_quote_subst' 17406delay_variable_subst='$delay_variable_subst' 17407enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17408macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17409macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17410enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17411pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17412enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17413SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17414ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17415PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17416host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17417host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17418host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17419build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17420build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17421build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17422SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17423Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17424GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17425EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17426FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17427LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17428NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17429LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17430max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17431ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17432exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17433lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17434lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17435lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17436lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17437lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17438reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17439reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17440OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17441deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17442file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17443file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17444want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17445DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17446sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17447AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17448AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17449archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17450STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17451RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17452old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17453old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17454old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17455lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17456CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17457CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17458compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17459GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17460lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17461lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17462lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17463lt_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"`' 17464nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17465lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17466objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17467MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17468lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17469lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17470lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17471lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17472lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17473need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17474MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17475DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17476NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17477LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17478OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17479OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17480libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17481shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17482extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17483archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17484enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17485export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17486whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17487compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17488old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17489old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17490archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17491archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17492module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17493module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17494with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17495allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17496no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17497hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17498hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17499hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17500hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17501hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17502hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17503hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17504inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17505link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17506always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17507export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17508exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17509include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17510prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17511postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17512file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17513variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17514need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17515need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17516version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17517runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17518shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17519shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17520libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17521library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17522soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17523install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17524postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17525postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17526finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17527finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17528hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17529sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17530sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17531hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17532enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17533enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17534enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17535old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17536striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17537 17538LTCC='$LTCC' 17539LTCFLAGS='$LTCFLAGS' 17540compiler='$compiler_DEFAULT' 17541 17542# A function that is used when there is no print builtin or printf. 17543func_fallback_echo () 17544{ 17545 eval 'cat <<_LTECHO_EOF 17546\$1 17547_LTECHO_EOF' 17548} 17549 17550# Quote evaled strings. 17551for var in SHELL \ 17552ECHO \ 17553PATH_SEPARATOR \ 17554SED \ 17555GREP \ 17556EGREP \ 17557FGREP \ 17558LD \ 17559NM \ 17560LN_S \ 17561lt_SP2NL \ 17562lt_NL2SP \ 17563reload_flag \ 17564OBJDUMP \ 17565deplibs_check_method \ 17566file_magic_cmd \ 17567file_magic_glob \ 17568want_nocaseglob \ 17569DLLTOOL \ 17570sharedlib_from_linklib_cmd \ 17571AR \ 17572AR_FLAGS \ 17573archiver_list_spec \ 17574STRIP \ 17575RANLIB \ 17576CC \ 17577CFLAGS \ 17578compiler \ 17579lt_cv_sys_global_symbol_pipe \ 17580lt_cv_sys_global_symbol_to_cdecl \ 17581lt_cv_sys_global_symbol_to_c_name_address \ 17582lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17583nm_file_list_spec \ 17584lt_prog_compiler_no_builtin_flag \ 17585lt_prog_compiler_pic \ 17586lt_prog_compiler_wl \ 17587lt_prog_compiler_static \ 17588lt_cv_prog_compiler_c_o \ 17589need_locks \ 17590MANIFEST_TOOL \ 17591DSYMUTIL \ 17592NMEDIT \ 17593LIPO \ 17594OTOOL \ 17595OTOOL64 \ 17596shrext_cmds \ 17597export_dynamic_flag_spec \ 17598whole_archive_flag_spec \ 17599compiler_needs_object \ 17600with_gnu_ld \ 17601allow_undefined_flag \ 17602no_undefined_flag \ 17603hardcode_libdir_flag_spec \ 17604hardcode_libdir_separator \ 17605exclude_expsyms \ 17606include_expsyms \ 17607file_list_spec \ 17608variables_saved_for_relink \ 17609libname_spec \ 17610library_names_spec \ 17611soname_spec \ 17612install_override_mode \ 17613finish_eval \ 17614old_striplib \ 17615striplib; do 17616 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17617 *[\\\\\\\`\\"\\\$]*) 17618 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17619 ;; 17620 *) 17621 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17622 ;; 17623 esac 17624done 17625 17626# Double-quote double-evaled strings. 17627for var in reload_cmds \ 17628old_postinstall_cmds \ 17629old_postuninstall_cmds \ 17630old_archive_cmds \ 17631extract_expsyms_cmds \ 17632old_archive_from_new_cmds \ 17633old_archive_from_expsyms_cmds \ 17634archive_cmds \ 17635archive_expsym_cmds \ 17636module_cmds \ 17637module_expsym_cmds \ 17638export_symbols_cmds \ 17639prelink_cmds \ 17640postlink_cmds \ 17641postinstall_cmds \ 17642postuninstall_cmds \ 17643finish_cmds \ 17644sys_lib_search_path_spec \ 17645sys_lib_dlsearch_path_spec; do 17646 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17647 *[\\\\\\\`\\"\\\$]*) 17648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17649 ;; 17650 *) 17651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17652 ;; 17653 esac 17654done 17655 17656ac_aux_dir='$ac_aux_dir' 17657xsi_shell='$xsi_shell' 17658lt_shell_append='$lt_shell_append' 17659 17660# See if we are running on zsh, and set the options which allow our 17661# commands through without removal of \ escapes INIT. 17662if test -n "\${ZSH_VERSION+set}" ; then 17663 setopt NO_GLOB_SUBST 17664fi 17665 17666 17667 PACKAGE='$PACKAGE' 17668 VERSION='$VERSION' 17669 TIMESTAMP='$TIMESTAMP' 17670 RM='$RM' 17671 ofile='$ofile' 17672 17673 17674 17675 17676_ACEOF 17677 17678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17679 17680# Handling of arguments. 17681for ac_config_target in $ac_config_targets 17682do 17683 case $ac_config_target in 17684 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17685 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17686 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17688 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17689 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 17690 17691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17692 esac 17693done 17694 17695 17696# If the user did not use the arguments to specify the items to instantiate, 17697# then the envvar interface is used. Set only those that are not. 17698# We use the long form for the default assignment because of an extremely 17699# bizarre bug on SunOS 4.1.3. 17700if $ac_need_defaults; then 17701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17704fi 17705 17706# Have a temporary directory for convenience. Make it in the build tree 17707# simply because there is no reason against having it here, and in addition, 17708# creating and moving files from /tmp can sometimes cause problems. 17709# Hook for its removal unless debugging. 17710# Note that there is a small window in which the directory will not be cleaned: 17711# after its creation but before its name has been assigned to `$tmp'. 17712$debug || 17713{ 17714 tmp= ac_tmp= 17715 trap 'exit_status=$? 17716 : "${ac_tmp:=$tmp}" 17717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17718' 0 17719 trap 'as_fn_exit 1' 1 2 13 15 17720} 17721# Create a (secure) tmp directory for tmp files. 17722 17723{ 17724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17725 test -d "$tmp" 17726} || 17727{ 17728 tmp=./conf$$-$RANDOM 17729 (umask 077 && mkdir "$tmp") 17730} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17731ac_tmp=$tmp 17732 17733# Set up the scripts for CONFIG_FILES section. 17734# No need to generate them if there are no CONFIG_FILES. 17735# This happens for instance with `./config.status config.h'. 17736if test -n "$CONFIG_FILES"; then 17737 17738 17739ac_cr=`echo X | tr X '\015'` 17740# On cygwin, bash can eat \r inside `` if the user requested igncr. 17741# But we know of no other shell where ac_cr would be empty at this 17742# point, so we can use a bashism as a fallback. 17743if test "x$ac_cr" = x; then 17744 eval ac_cr=\$\'\\r\' 17745fi 17746ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17747if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17748 ac_cs_awk_cr='\\r' 17749else 17750 ac_cs_awk_cr=$ac_cr 17751fi 17752 17753echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17754_ACEOF 17755 17756 17757{ 17758 echo "cat >conf$$subs.awk <<_ACEOF" && 17759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17760 echo "_ACEOF" 17761} >conf$$subs.sh || 17762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17763ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17764ac_delim='%!_!# ' 17765for ac_last_try in false false false false false :; do 17766 . ./conf$$subs.sh || 17767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17768 17769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17770 if test $ac_delim_n = $ac_delim_num; then 17771 break 17772 elif $ac_last_try; then 17773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17774 else 17775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17776 fi 17777done 17778rm -f conf$$subs.sh 17779 17780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17781cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17782_ACEOF 17783sed -n ' 17784h 17785s/^/S["/; s/!.*/"]=/ 17786p 17787g 17788s/^[^!]*!// 17789:repl 17790t repl 17791s/'"$ac_delim"'$// 17792t delim 17793:nl 17794h 17795s/\(.\{148\}\)..*/\1/ 17796t more1 17797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17798p 17799n 17800b repl 17801:more1 17802s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17803p 17804g 17805s/.\{148\}// 17806t nl 17807:delim 17808h 17809s/\(.\{148\}\)..*/\1/ 17810t more2 17811s/["\\]/\\&/g; s/^/"/; s/$/"/ 17812p 17813b 17814:more2 17815s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17816p 17817g 17818s/.\{148\}// 17819t delim 17820' <conf$$subs.awk | sed ' 17821/^[^""]/{ 17822 N 17823 s/\n// 17824} 17825' >>$CONFIG_STATUS || ac_write_fail=1 17826rm -f conf$$subs.awk 17827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17828_ACAWK 17829cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17830 for (key in S) S_is_set[key] = 1 17831 FS = "" 17832 17833} 17834{ 17835 line = $ 0 17836 nfields = split(line, field, "@") 17837 substed = 0 17838 len = length(field[1]) 17839 for (i = 2; i < nfields; i++) { 17840 key = field[i] 17841 keylen = length(key) 17842 if (S_is_set[key]) { 17843 value = S[key] 17844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17845 len += length(value) + length(field[++i]) 17846 substed = 1 17847 } else 17848 len += 1 + keylen 17849 } 17850 17851 print line 17852} 17853 17854_ACAWK 17855_ACEOF 17856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17859else 17860 cat 17861fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17863_ACEOF 17864 17865# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17866# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17867# trailing colons and then remove the whole line if VPATH becomes empty 17868# (actually we leave an empty line to preserve line numbers). 17869if test "x$srcdir" = x.; then 17870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17871h 17872s/// 17873s/^/:/ 17874s/[ ]*$/:/ 17875s/:\$(srcdir):/:/g 17876s/:\${srcdir}:/:/g 17877s/:@srcdir@:/:/g 17878s/^:*// 17879s/:*$// 17880x 17881s/\(=[ ]*\).*/\1/ 17882G 17883s/\n// 17884s/^[^=]*=[ ]*$// 17885}' 17886fi 17887 17888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17889fi # test -n "$CONFIG_FILES" 17890 17891# Set up the scripts for CONFIG_HEADERS section. 17892# No need to generate them if there are no CONFIG_HEADERS. 17893# This happens for instance with `./config.status Makefile'. 17894if test -n "$CONFIG_HEADERS"; then 17895cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17896BEGIN { 17897_ACEOF 17898 17899# Transform confdefs.h into an awk script `defines.awk', embedded as 17900# here-document in config.status, that substitutes the proper values into 17901# config.h.in to produce config.h. 17902 17903# Create a delimiter string that does not exist in confdefs.h, to ease 17904# handling of long lines. 17905ac_delim='%!_!# ' 17906for ac_last_try in false false :; do 17907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17908 if test -z "$ac_tt"; then 17909 break 17910 elif $ac_last_try; then 17911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17912 else 17913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17914 fi 17915done 17916 17917# For the awk script, D is an array of macro values keyed by name, 17918# likewise P contains macro parameters if any. Preserve backslash 17919# newline sequences. 17920 17921ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17922sed -n ' 17923s/.\{148\}/&'"$ac_delim"'/g 17924t rset 17925:rset 17926s/^[ ]*#[ ]*define[ ][ ]*/ / 17927t def 17928d 17929:def 17930s/\\$// 17931t bsnl 17932s/["\\]/\\&/g 17933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17934D["\1"]=" \3"/p 17935s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17936d 17937:bsnl 17938s/["\\]/\\&/g 17939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17940D["\1"]=" \3\\\\\\n"\\/p 17941t cont 17942s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17943t cont 17944d 17945:cont 17946n 17947s/.\{148\}/&'"$ac_delim"'/g 17948t clear 17949:clear 17950s/\\$// 17951t bsnlc 17952s/["\\]/\\&/g; s/^/"/; s/$/"/p 17953d 17954:bsnlc 17955s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17956b cont 17957' <confdefs.h | sed ' 17958s/'"$ac_delim"'/"\\\ 17959"/g' >>$CONFIG_STATUS || ac_write_fail=1 17960 17961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17962 for (key in D) D_is_set[key] = 1 17963 FS = "" 17964} 17965/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17966 line = \$ 0 17967 split(line, arg, " ") 17968 if (arg[1] == "#") { 17969 defundef = arg[2] 17970 mac1 = arg[3] 17971 } else { 17972 defundef = substr(arg[1], 2) 17973 mac1 = arg[2] 17974 } 17975 split(mac1, mac2, "(") #) 17976 macro = mac2[1] 17977 prefix = substr(line, 1, index(line, defundef) - 1) 17978 if (D_is_set[macro]) { 17979 # Preserve the white space surrounding the "#". 17980 print prefix "define", macro P[macro] D[macro] 17981 next 17982 } else { 17983 # Replace #undef with comments. This is necessary, for example, 17984 # in the case of _POSIX_SOURCE, which is predefined and required 17985 # on some systems where configure will not decide to define it. 17986 if (defundef == "undef") { 17987 print "/*", prefix defundef, macro, "*/" 17988 next 17989 } 17990 } 17991} 17992{ print } 17993_ACAWK 17994_ACEOF 17995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17997fi # test -n "$CONFIG_HEADERS" 17998 17999 18000eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18001shift 18002for ac_tag 18003do 18004 case $ac_tag in 18005 :[FHLC]) ac_mode=$ac_tag; continue;; 18006 esac 18007 case $ac_mode$ac_tag in 18008 :[FHL]*:*);; 18009 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18010 :[FH]-) ac_tag=-:-;; 18011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18012 esac 18013 ac_save_IFS=$IFS 18014 IFS=: 18015 set x $ac_tag 18016 IFS=$ac_save_IFS 18017 shift 18018 ac_file=$1 18019 shift 18020 18021 case $ac_mode in 18022 :L) ac_source=$1;; 18023 :[FH]) 18024 ac_file_inputs= 18025 for ac_f 18026 do 18027 case $ac_f in 18028 -) ac_f="$ac_tmp/stdin";; 18029 *) # Look for the file first in the build tree, then in the source tree 18030 # (if the path is not absolute). The absolute path cannot be DOS-style, 18031 # because $ac_f cannot contain `:'. 18032 test -f "$ac_f" || 18033 case $ac_f in 18034 [\\/$]*) false;; 18035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18036 esac || 18037 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18038 esac 18039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18040 as_fn_append ac_file_inputs " '$ac_f'" 18041 done 18042 18043 # Let's still pretend it is `configure' which instantiates (i.e., don't 18044 # use $as_me), people would be surprised to read: 18045 # /* config.h. Generated by config.status. */ 18046 configure_input='Generated from '` 18047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18048 `' by configure.' 18049 if test x"$ac_file" != x-; then 18050 configure_input="$ac_file. $configure_input" 18051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18052$as_echo "$as_me: creating $ac_file" >&6;} 18053 fi 18054 # Neutralize special characters interpreted by sed in replacement strings. 18055 case $configure_input in #( 18056 *\&* | *\|* | *\\* ) 18057 ac_sed_conf_input=`$as_echo "$configure_input" | 18058 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18059 *) ac_sed_conf_input=$configure_input;; 18060 esac 18061 18062 case $ac_tag in 18063 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18065 esac 18066 ;; 18067 esac 18068 18069 ac_dir=`$as_dirname -- "$ac_file" || 18070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18071 X"$ac_file" : 'X\(//\)[^/]' \| \ 18072 X"$ac_file" : 'X\(//\)$' \| \ 18073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18074$as_echo X"$ac_file" | 18075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18076 s//\1/ 18077 q 18078 } 18079 /^X\(\/\/\)[^/].*/{ 18080 s//\1/ 18081 q 18082 } 18083 /^X\(\/\/\)$/{ 18084 s//\1/ 18085 q 18086 } 18087 /^X\(\/\).*/{ 18088 s//\1/ 18089 q 18090 } 18091 s/.*/./; q'` 18092 as_dir="$ac_dir"; as_fn_mkdir_p 18093 ac_builddir=. 18094 18095case "$ac_dir" in 18096.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18097*) 18098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18099 # A ".." for each directory in $ac_dir_suffix. 18100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18101 case $ac_top_builddir_sub in 18102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18104 esac ;; 18105esac 18106ac_abs_top_builddir=$ac_pwd 18107ac_abs_builddir=$ac_pwd$ac_dir_suffix 18108# for backward compatibility: 18109ac_top_builddir=$ac_top_build_prefix 18110 18111case $srcdir in 18112 .) # We are building in place. 18113 ac_srcdir=. 18114 ac_top_srcdir=$ac_top_builddir_sub 18115 ac_abs_top_srcdir=$ac_pwd ;; 18116 [\\/]* | ?:[\\/]* ) # Absolute name. 18117 ac_srcdir=$srcdir$ac_dir_suffix; 18118 ac_top_srcdir=$srcdir 18119 ac_abs_top_srcdir=$srcdir ;; 18120 *) # Relative name. 18121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18122 ac_top_srcdir=$ac_top_build_prefix$srcdir 18123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18124esac 18125ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18126 18127 18128 case $ac_mode in 18129 :F) 18130 # 18131 # CONFIG_FILE 18132 # 18133 18134 case $INSTALL in 18135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18137 esac 18138 ac_MKDIR_P=$MKDIR_P 18139 case $MKDIR_P in 18140 [\\/$]* | ?:[\\/]* ) ;; 18141 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18142 esac 18143_ACEOF 18144 18145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18146# If the template does not know about datarootdir, expand it. 18147# FIXME: This hack should be removed a few years after 2.60. 18148ac_datarootdir_hack=; ac_datarootdir_seen= 18149ac_sed_dataroot=' 18150/datarootdir/ { 18151 p 18152 q 18153} 18154/@datadir@/p 18155/@docdir@/p 18156/@infodir@/p 18157/@localedir@/p 18158/@mandir@/p' 18159case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18160*datarootdir*) ac_datarootdir_seen=yes;; 18161*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18163$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18164_ACEOF 18165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18166 ac_datarootdir_hack=' 18167 s&@datadir@&$datadir&g 18168 s&@docdir@&$docdir&g 18169 s&@infodir@&$infodir&g 18170 s&@localedir@&$localedir&g 18171 s&@mandir@&$mandir&g 18172 s&\\\${datarootdir}&$datarootdir&g' ;; 18173esac 18174_ACEOF 18175 18176# Neutralize VPATH when `$srcdir' = `.'. 18177# Shell code in configure.ac might set extrasub. 18178# FIXME: do we really want to maintain this feature? 18179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18180ac_sed_extra="$ac_vpsub 18181$extrasub 18182_ACEOF 18183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18184:t 18185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18186s|@configure_input@|$ac_sed_conf_input|;t t 18187s&@top_builddir@&$ac_top_builddir_sub&;t t 18188s&@top_build_prefix@&$ac_top_build_prefix&;t t 18189s&@srcdir@&$ac_srcdir&;t t 18190s&@abs_srcdir@&$ac_abs_srcdir&;t t 18191s&@top_srcdir@&$ac_top_srcdir&;t t 18192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18193s&@builddir@&$ac_builddir&;t t 18194s&@abs_builddir@&$ac_abs_builddir&;t t 18195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18196s&@INSTALL@&$ac_INSTALL&;t t 18197s&@MKDIR_P@&$ac_MKDIR_P&;t t 18198$ac_datarootdir_hack 18199" 18200eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18202 18203test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18206 "$ac_tmp/out"`; test -z "$ac_out"; } && 18207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18208which seems to be undefined. Please make sure it is defined" >&5 18209$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18210which seems to be undefined. Please make sure it is defined" >&2;} 18211 18212 rm -f "$ac_tmp/stdin" 18213 case $ac_file in 18214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18216 esac \ 18217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18218 ;; 18219 :H) 18220 # 18221 # CONFIG_HEADER 18222 # 18223 if test x"$ac_file" != x-; then 18224 { 18225 $as_echo "/* $configure_input */" \ 18226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18227 } >"$ac_tmp/config.h" \ 18228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18231$as_echo "$as_me: $ac_file is unchanged" >&6;} 18232 else 18233 rm -f "$ac_file" 18234 mv "$ac_tmp/config.h" "$ac_file" \ 18235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18236 fi 18237 else 18238 $as_echo "/* $configure_input */" \ 18239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18240 || as_fn_error $? "could not create -" "$LINENO" 5 18241 fi 18242# Compute "$ac_file"'s index in $config_headers. 18243_am_arg="$ac_file" 18244_am_stamp_count=1 18245for _am_header in $config_headers :; do 18246 case $_am_header in 18247 $_am_arg | $_am_arg:* ) 18248 break ;; 18249 * ) 18250 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18251 esac 18252done 18253echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18254$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18255 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18256 X"$_am_arg" : 'X\(//\)$' \| \ 18257 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18258$as_echo X"$_am_arg" | 18259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18260 s//\1/ 18261 q 18262 } 18263 /^X\(\/\/\)[^/].*/{ 18264 s//\1/ 18265 q 18266 } 18267 /^X\(\/\/\)$/{ 18268 s//\1/ 18269 q 18270 } 18271 /^X\(\/\).*/{ 18272 s//\1/ 18273 q 18274 } 18275 s/.*/./; q'`/stamp-h$_am_stamp_count 18276 ;; 18277 18278 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18279$as_echo "$as_me: executing $ac_file commands" >&6;} 18280 ;; 18281 esac 18282 18283 18284 case $ac_file$ac_mode in 18285 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18286 # Autoconf 2.62 quotes --file arguments for eval, but not when files 18287 # are listed without --file. Let's play safe and only enable the eval 18288 # if we detect the quoting. 18289 case $CONFIG_FILES in 18290 *\'*) eval set x "$CONFIG_FILES" ;; 18291 *) set x $CONFIG_FILES ;; 18292 esac 18293 shift 18294 for mf 18295 do 18296 # Strip MF so we end up with the name of the file. 18297 mf=`echo "$mf" | sed -e 's/:.*$//'` 18298 # Check whether this is an Automake generated Makefile or not. 18299 # We used to match only the files named 'Makefile.in', but 18300 # some people rename them; so instead we look at the file content. 18301 # Grep'ing the first line is not enough: some people post-process 18302 # each Makefile.in and add a new line on top of each file to say so. 18303 # Grep'ing the whole file is not good either: AIX grep has a line 18304 # limit of 2048, but all sed's we know have understand at least 4000. 18305 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18306 dirpart=`$as_dirname -- "$mf" || 18307$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18308 X"$mf" : 'X\(//\)[^/]' \| \ 18309 X"$mf" : 'X\(//\)$' \| \ 18310 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18311$as_echo X"$mf" | 18312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18313 s//\1/ 18314 q 18315 } 18316 /^X\(\/\/\)[^/].*/{ 18317 s//\1/ 18318 q 18319 } 18320 /^X\(\/\/\)$/{ 18321 s//\1/ 18322 q 18323 } 18324 /^X\(\/\).*/{ 18325 s//\1/ 18326 q 18327 } 18328 s/.*/./; q'` 18329 else 18330 continue 18331 fi 18332 # Extract the definition of DEPDIR, am__include, and am__quote 18333 # from the Makefile without running 'make'. 18334 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18335 test -z "$DEPDIR" && continue 18336 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18337 test -z "am__include" && continue 18338 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18339 # Find all dependency output files, they are included files with 18340 # $(DEPDIR) in their names. We invoke sed twice because it is the 18341 # simplest approach to changing $(DEPDIR) to its actual value in the 18342 # expansion. 18343 for file in `sed -n " 18344 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18345 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18346 # Make sure the directory exists. 18347 test -f "$dirpart/$file" && continue 18348 fdir=`$as_dirname -- "$file" || 18349$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18350 X"$file" : 'X\(//\)[^/]' \| \ 18351 X"$file" : 'X\(//\)$' \| \ 18352 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18353$as_echo X"$file" | 18354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18355 s//\1/ 18356 q 18357 } 18358 /^X\(\/\/\)[^/].*/{ 18359 s//\1/ 18360 q 18361 } 18362 /^X\(\/\/\)$/{ 18363 s//\1/ 18364 q 18365 } 18366 /^X\(\/\).*/{ 18367 s//\1/ 18368 q 18369 } 18370 s/.*/./; q'` 18371 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18372 # echo "creating $dirpart/$file" 18373 echo '# dummy' > "$dirpart/$file" 18374 done 18375 done 18376} 18377 ;; 18378 "libtool":C) 18379 18380 # See if we are running on zsh, and set the options which allow our 18381 # commands through without removal of \ escapes. 18382 if test -n "${ZSH_VERSION+set}" ; then 18383 setopt NO_GLOB_SUBST 18384 fi 18385 18386 cfgfile="${ofile}T" 18387 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18388 $RM "$cfgfile" 18389 18390 cat <<_LT_EOF >> "$cfgfile" 18391#! $SHELL 18392 18393# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18394# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18396# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18397# 18398# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18399# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18400# Foundation, Inc. 18401# Written by Gordon Matzigkeit, 1996 18402# 18403# This file is part of GNU Libtool. 18404# 18405# GNU Libtool is free software; you can redistribute it and/or 18406# modify it under the terms of the GNU General Public License as 18407# published by the Free Software Foundation; either version 2 of 18408# the License, or (at your option) any later version. 18409# 18410# As a special exception to the GNU General Public License, 18411# if you distribute this file as part of a program or library that 18412# is built using GNU Libtool, you may include this file under the 18413# same distribution terms that you use for the rest of that program. 18414# 18415# GNU Libtool is distributed in the hope that it will be useful, 18416# but WITHOUT ANY WARRANTY; without even the implied warranty of 18417# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18418# GNU General Public License for more details. 18419# 18420# You should have received a copy of the GNU General Public License 18421# along with GNU Libtool; see the file COPYING. If not, a copy 18422# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18423# obtained by writing to the Free Software Foundation, Inc., 18424# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18425 18426 18427# The names of the tagged configurations supported by this script. 18428available_tags="" 18429 18430# ### BEGIN LIBTOOL CONFIG 18431 18432# Whether or not to build static libraries. 18433build_old_libs=$enable_static 18434 18435# Which release of libtool.m4 was used? 18436macro_version=$macro_version 18437macro_revision=$macro_revision 18438 18439# Whether or not to build shared libraries. 18440build_libtool_libs=$enable_shared 18441 18442# What type of objects to build. 18443pic_mode=$pic_mode 18444 18445# Whether or not to optimize for fast installation. 18446fast_install=$enable_fast_install 18447 18448# Shell to use when invoking shell scripts. 18449SHELL=$lt_SHELL 18450 18451# An echo program that protects backslashes. 18452ECHO=$lt_ECHO 18453 18454# The PATH separator for the build system. 18455PATH_SEPARATOR=$lt_PATH_SEPARATOR 18456 18457# The host system. 18458host_alias=$host_alias 18459host=$host 18460host_os=$host_os 18461 18462# The build system. 18463build_alias=$build_alias 18464build=$build 18465build_os=$build_os 18466 18467# A sed program that does not truncate output. 18468SED=$lt_SED 18469 18470# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18471Xsed="\$SED -e 1s/^X//" 18472 18473# A grep program that handles long lines. 18474GREP=$lt_GREP 18475 18476# An ERE matcher. 18477EGREP=$lt_EGREP 18478 18479# A literal string matcher. 18480FGREP=$lt_FGREP 18481 18482# A BSD- or MS-compatible name lister. 18483NM=$lt_NM 18484 18485# Whether we need soft or hard links. 18486LN_S=$lt_LN_S 18487 18488# What is the maximum length of a command? 18489max_cmd_len=$max_cmd_len 18490 18491# Object file suffix (normally "o"). 18492objext=$ac_objext 18493 18494# Executable file suffix (normally ""). 18495exeext=$exeext 18496 18497# whether the shell understands "unset". 18498lt_unset=$lt_unset 18499 18500# turn spaces into newlines. 18501SP2NL=$lt_lt_SP2NL 18502 18503# turn newlines into spaces. 18504NL2SP=$lt_lt_NL2SP 18505 18506# convert \$build file names to \$host format. 18507to_host_file_cmd=$lt_cv_to_host_file_cmd 18508 18509# convert \$build files to toolchain format. 18510to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18511 18512# An object symbol dumper. 18513OBJDUMP=$lt_OBJDUMP 18514 18515# Method to check whether dependent libraries are shared objects. 18516deplibs_check_method=$lt_deplibs_check_method 18517 18518# Command to use when deplibs_check_method = "file_magic". 18519file_magic_cmd=$lt_file_magic_cmd 18520 18521# How to find potential files when deplibs_check_method = "file_magic". 18522file_magic_glob=$lt_file_magic_glob 18523 18524# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18525want_nocaseglob=$lt_want_nocaseglob 18526 18527# DLL creation program. 18528DLLTOOL=$lt_DLLTOOL 18529 18530# Command to associate shared and link libraries. 18531sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18532 18533# The archiver. 18534AR=$lt_AR 18535 18536# Flags to create an archive. 18537AR_FLAGS=$lt_AR_FLAGS 18538 18539# How to feed a file listing to the archiver. 18540archiver_list_spec=$lt_archiver_list_spec 18541 18542# A symbol stripping program. 18543STRIP=$lt_STRIP 18544 18545# Commands used to install an old-style archive. 18546RANLIB=$lt_RANLIB 18547old_postinstall_cmds=$lt_old_postinstall_cmds 18548old_postuninstall_cmds=$lt_old_postuninstall_cmds 18549 18550# Whether to use a lock for old archive extraction. 18551lock_old_archive_extraction=$lock_old_archive_extraction 18552 18553# A C compiler. 18554LTCC=$lt_CC 18555 18556# LTCC compiler flags. 18557LTCFLAGS=$lt_CFLAGS 18558 18559# Take the output of nm and produce a listing of raw symbols and C names. 18560global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18561 18562# Transform the output of nm in a proper C declaration. 18563global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18564 18565# Transform the output of nm in a C name address pair. 18566global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18567 18568# Transform the output of nm in a C name address pair when lib prefix is needed. 18569global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18570 18571# Specify filename containing input files for \$NM. 18572nm_file_list_spec=$lt_nm_file_list_spec 18573 18574# The root where to search for dependent libraries,and in which our libraries should be installed. 18575lt_sysroot=$lt_sysroot 18576 18577# The name of the directory that contains temporary libtool files. 18578objdir=$objdir 18579 18580# Used to examine libraries when file_magic_cmd begins with "file". 18581MAGIC_CMD=$MAGIC_CMD 18582 18583# Must we lock files when doing compilation? 18584need_locks=$lt_need_locks 18585 18586# Manifest tool. 18587MANIFEST_TOOL=$lt_MANIFEST_TOOL 18588 18589# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18590DSYMUTIL=$lt_DSYMUTIL 18591 18592# Tool to change global to local symbols on Mac OS X. 18593NMEDIT=$lt_NMEDIT 18594 18595# Tool to manipulate fat objects and archives on Mac OS X. 18596LIPO=$lt_LIPO 18597 18598# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18599OTOOL=$lt_OTOOL 18600 18601# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18602OTOOL64=$lt_OTOOL64 18603 18604# Old archive suffix (normally "a"). 18605libext=$libext 18606 18607# Shared library suffix (normally ".so"). 18608shrext_cmds=$lt_shrext_cmds 18609 18610# The commands to extract the exported symbol list from a shared archive. 18611extract_expsyms_cmds=$lt_extract_expsyms_cmds 18612 18613# Variables whose values should be saved in libtool wrapper scripts and 18614# restored at link time. 18615variables_saved_for_relink=$lt_variables_saved_for_relink 18616 18617# Do we need the "lib" prefix for modules? 18618need_lib_prefix=$need_lib_prefix 18619 18620# Do we need a version for libraries? 18621need_version=$need_version 18622 18623# Library versioning type. 18624version_type=$version_type 18625 18626# Shared library runtime path variable. 18627runpath_var=$runpath_var 18628 18629# Shared library path variable. 18630shlibpath_var=$shlibpath_var 18631 18632# Is shlibpath searched before the hard-coded library search path? 18633shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18634 18635# Format of library name prefix. 18636libname_spec=$lt_libname_spec 18637 18638# List of archive names. First name is the real one, the rest are links. 18639# The last name is the one that the linker finds with -lNAME 18640library_names_spec=$lt_library_names_spec 18641 18642# The coded name of the library, if different from the real name. 18643soname_spec=$lt_soname_spec 18644 18645# Permission mode override for installation of shared libraries. 18646install_override_mode=$lt_install_override_mode 18647 18648# Command to use after installation of a shared archive. 18649postinstall_cmds=$lt_postinstall_cmds 18650 18651# Command to use after uninstallation of a shared archive. 18652postuninstall_cmds=$lt_postuninstall_cmds 18653 18654# Commands used to finish a libtool library installation in a directory. 18655finish_cmds=$lt_finish_cmds 18656 18657# As "finish_cmds", except a single script fragment to be evaled but 18658# not shown. 18659finish_eval=$lt_finish_eval 18660 18661# Whether we should hardcode library paths into libraries. 18662hardcode_into_libs=$hardcode_into_libs 18663 18664# Compile-time system search path for libraries. 18665sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18666 18667# Run-time system search path for libraries. 18668sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18669 18670# Whether dlopen is supported. 18671dlopen_support=$enable_dlopen 18672 18673# Whether dlopen of programs is supported. 18674dlopen_self=$enable_dlopen_self 18675 18676# Whether dlopen of statically linked programs is supported. 18677dlopen_self_static=$enable_dlopen_self_static 18678 18679# Commands to strip libraries. 18680old_striplib=$lt_old_striplib 18681striplib=$lt_striplib 18682 18683 18684# The linker used to build libraries. 18685LD=$lt_LD 18686 18687# How to create reloadable object files. 18688reload_flag=$lt_reload_flag 18689reload_cmds=$lt_reload_cmds 18690 18691# Commands used to build an old-style archive. 18692old_archive_cmds=$lt_old_archive_cmds 18693 18694# A language specific compiler. 18695CC=$lt_compiler 18696 18697# Is the compiler the GNU compiler? 18698with_gcc=$GCC 18699 18700# Compiler flag to turn off builtin functions. 18701no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18702 18703# Additional compiler flags for building library objects. 18704pic_flag=$lt_lt_prog_compiler_pic 18705 18706# How to pass a linker flag through the compiler. 18707wl=$lt_lt_prog_compiler_wl 18708 18709# Compiler flag to prevent dynamic linking. 18710link_static_flag=$lt_lt_prog_compiler_static 18711 18712# Does compiler simultaneously support -c and -o options? 18713compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18714 18715# Whether or not to add -lc for building shared libraries. 18716build_libtool_need_lc=$archive_cmds_need_lc 18717 18718# Whether or not to disallow shared libs when runtime libs are static. 18719allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18720 18721# Compiler flag to allow reflexive dlopens. 18722export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18723 18724# Compiler flag to generate shared objects directly from archives. 18725whole_archive_flag_spec=$lt_whole_archive_flag_spec 18726 18727# Whether the compiler copes with passing no objects directly. 18728compiler_needs_object=$lt_compiler_needs_object 18729 18730# Create an old-style archive from a shared archive. 18731old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18732 18733# Create a temporary old-style archive to link instead of a shared archive. 18734old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18735 18736# Commands used to build a shared archive. 18737archive_cmds=$lt_archive_cmds 18738archive_expsym_cmds=$lt_archive_expsym_cmds 18739 18740# Commands used to build a loadable module if different from building 18741# a shared archive. 18742module_cmds=$lt_module_cmds 18743module_expsym_cmds=$lt_module_expsym_cmds 18744 18745# Whether we are building with GNU ld or not. 18746with_gnu_ld=$lt_with_gnu_ld 18747 18748# Flag that allows shared libraries with undefined symbols to be built. 18749allow_undefined_flag=$lt_allow_undefined_flag 18750 18751# Flag that enforces no undefined symbols. 18752no_undefined_flag=$lt_no_undefined_flag 18753 18754# Flag to hardcode \$libdir into a binary during linking. 18755# This must work even if \$libdir does not exist 18756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18757 18758# Whether we need a single "-rpath" flag with a separated argument. 18759hardcode_libdir_separator=$lt_hardcode_libdir_separator 18760 18761# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18762# DIR into the resulting binary. 18763hardcode_direct=$hardcode_direct 18764 18765# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18766# DIR into the resulting binary and the resulting library dependency is 18767# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18768# library is relocated. 18769hardcode_direct_absolute=$hardcode_direct_absolute 18770 18771# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18772# into the resulting binary. 18773hardcode_minus_L=$hardcode_minus_L 18774 18775# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18776# into the resulting binary. 18777hardcode_shlibpath_var=$hardcode_shlibpath_var 18778 18779# Set to "yes" if building a shared library automatically hardcodes DIR 18780# into the library and all subsequent libraries and executables linked 18781# against it. 18782hardcode_automatic=$hardcode_automatic 18783 18784# Set to yes if linker adds runtime paths of dependent libraries 18785# to runtime path list. 18786inherit_rpath=$inherit_rpath 18787 18788# Whether libtool must link a program against all its dependency libraries. 18789link_all_deplibs=$link_all_deplibs 18790 18791# Set to "yes" if exported symbols are required. 18792always_export_symbols=$always_export_symbols 18793 18794# The commands to list exported symbols. 18795export_symbols_cmds=$lt_export_symbols_cmds 18796 18797# Symbols that should not be listed in the preloaded symbols. 18798exclude_expsyms=$lt_exclude_expsyms 18799 18800# Symbols that must always be exported. 18801include_expsyms=$lt_include_expsyms 18802 18803# Commands necessary for linking programs (against libraries) with templates. 18804prelink_cmds=$lt_prelink_cmds 18805 18806# Commands necessary for finishing linking programs. 18807postlink_cmds=$lt_postlink_cmds 18808 18809# Specify filename containing input files. 18810file_list_spec=$lt_file_list_spec 18811 18812# How to hardcode a shared library path into an executable. 18813hardcode_action=$hardcode_action 18814 18815# ### END LIBTOOL CONFIG 18816 18817_LT_EOF 18818 18819 case $host_os in 18820 aix3*) 18821 cat <<\_LT_EOF >> "$cfgfile" 18822# AIX sometimes has problems with the GCC collect2 program. For some 18823# reason, if we set the COLLECT_NAMES environment variable, the problems 18824# vanish in a puff of smoke. 18825if test "X${COLLECT_NAMES+set}" != Xset; then 18826 COLLECT_NAMES= 18827 export COLLECT_NAMES 18828fi 18829_LT_EOF 18830 ;; 18831 esac 18832 18833 18834ltmain="$ac_aux_dir/ltmain.sh" 18835 18836 18837 # We use sed instead of cat because bash on DJGPP gets confused if 18838 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18839 # text mode, it properly converts lines to CR/LF. This bash problem 18840 # is reportedly fixed, but why not run on old versions too? 18841 sed '$q' "$ltmain" >> "$cfgfile" \ 18842 || (rm -f "$cfgfile"; exit 1) 18843 18844 if test x"$xsi_shell" = xyes; then 18845 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18846func_dirname ()\ 18847{\ 18848\ case ${1} in\ 18849\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18850\ * ) func_dirname_result="${3}" ;;\ 18851\ esac\ 18852} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18853 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18855test 0 -eq $? || _lt_function_replace_fail=: 18856 18857 18858 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18859func_basename ()\ 18860{\ 18861\ func_basename_result="${1##*/}"\ 18862} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18863 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18865test 0 -eq $? || _lt_function_replace_fail=: 18866 18867 18868 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18869func_dirname_and_basename ()\ 18870{\ 18871\ case ${1} in\ 18872\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18873\ * ) func_dirname_result="${3}" ;;\ 18874\ esac\ 18875\ func_basename_result="${1##*/}"\ 18876} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18877 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18879test 0 -eq $? || _lt_function_replace_fail=: 18880 18881 18882 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18883func_stripname ()\ 18884{\ 18885\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18886\ # positional parameters, so assign one to ordinary parameter first.\ 18887\ func_stripname_result=${3}\ 18888\ func_stripname_result=${func_stripname_result#"${1}"}\ 18889\ func_stripname_result=${func_stripname_result%"${2}"}\ 18890} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18891 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18893test 0 -eq $? || _lt_function_replace_fail=: 18894 18895 18896 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18897func_split_long_opt ()\ 18898{\ 18899\ func_split_long_opt_name=${1%%=*}\ 18900\ func_split_long_opt_arg=${1#*=}\ 18901} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18902 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18904test 0 -eq $? || _lt_function_replace_fail=: 18905 18906 18907 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18908func_split_short_opt ()\ 18909{\ 18910\ func_split_short_opt_arg=${1#??}\ 18911\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18912} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18913 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18915test 0 -eq $? || _lt_function_replace_fail=: 18916 18917 18918 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18919func_lo2o ()\ 18920{\ 18921\ case ${1} in\ 18922\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18923\ *) func_lo2o_result=${1} ;;\ 18924\ esac\ 18925} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18926 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18928test 0 -eq $? || _lt_function_replace_fail=: 18929 18930 18931 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18932func_xform ()\ 18933{\ 18934 func_xform_result=${1%.*}.lo\ 18935} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18938test 0 -eq $? || _lt_function_replace_fail=: 18939 18940 18941 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18942func_arith ()\ 18943{\ 18944 func_arith_result=$(( $* ))\ 18945} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18946 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18948test 0 -eq $? || _lt_function_replace_fail=: 18949 18950 18951 sed -e '/^func_len ()$/,/^} # func_len /c\ 18952func_len ()\ 18953{\ 18954 func_len_result=${#1}\ 18955} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18956 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18958test 0 -eq $? || _lt_function_replace_fail=: 18959 18960fi 18961 18962if test x"$lt_shell_append" = xyes; then 18963 sed -e '/^func_append ()$/,/^} # func_append /c\ 18964func_append ()\ 18965{\ 18966 eval "${1}+=\\${2}"\ 18967} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18968 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18970test 0 -eq $? || _lt_function_replace_fail=: 18971 18972 18973 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18974func_append_quoted ()\ 18975{\ 18976\ func_quote_for_eval "${2}"\ 18977\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18978} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18979 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18981test 0 -eq $? || _lt_function_replace_fail=: 18982 18983 18984 # Save a `func_append' function call where possible by direct use of '+=' 18985 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18986 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18988 test 0 -eq $? || _lt_function_replace_fail=: 18989else 18990 # Save a `func_append' function call even when '+=' is not available 18991 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18992 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18994 test 0 -eq $? || _lt_function_replace_fail=: 18995fi 18996 18997if test x"$_lt_function_replace_fail" = x":"; then 18998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18999$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19000fi 19001 19002 19003 mv -f "$cfgfile" "$ofile" || 19004 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19005 chmod +x "$ofile" 19006 19007 ;; 19008 19009 esac 19010done # for ac_tag 19011 19012 19013as_fn_exit 0 19014_ACEOF 19015ac_clean_files=$ac_clean_files_save 19016 19017test $ac_write_fail = 0 || 19018 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19019 19020 19021# configure is writing to config.log, and then calls config.status. 19022# config.status does its own redirection, appending to config.log. 19023# Unfortunately, on DOS this fails, as config.log is still kept open 19024# by configure, so config.status won't be able to write to it; its 19025# output is simply discarded. So we exec the FD to /dev/null, 19026# effectively closing config.log, so it can be properly (re)opened and 19027# appended to by config.status. When coming back to configure, we 19028# need to make the FD available again. 19029if test "$no_create" != yes; then 19030 ac_cs_success=: 19031 ac_config_status_args= 19032 test "$silent" = yes && 19033 ac_config_status_args="$ac_config_status_args --quiet" 19034 exec 5>/dev/null 19035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19036 exec 5>>config.log 19037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19038 # would make configure fail if this is the last instruction. 19039 $ac_cs_success || as_fn_exit 1 19040fi 19041if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19043$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19044fi 19045 19046