configure revision b9867631
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXrender 0.9.9. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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='libXrender' 593PACKAGE_TARNAME='libXrender' 594PACKAGE_VERSION='0.9.9' 595PACKAGE_STRING='libXrender 0.9.9' 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 640RENDER_LIBS 641RENDER_CFLAGS 642RENDER_VERSION 643XTMALLOC_ZERO_CFLAGS 644XMALLOC_ZERO_CFLAGS 645MALLOC_ZERO_CFLAGS 646MAN_SUBSTS 647XORG_MAN_PAGE 648ADMIN_MAN_DIR 649DRIVER_MAN_DIR 650MISC_MAN_DIR 651FILE_MAN_DIR 652LIB_MAN_DIR 653APP_MAN_DIR 654ADMIN_MAN_SUFFIX 655DRIVER_MAN_SUFFIX 656MISC_MAN_SUFFIX 657FILE_MAN_SUFFIX 658LIB_MAN_SUFFIX 659APP_MAN_SUFFIX 660INSTALL_CMD 661PKG_CONFIG 662CHANGELOG_CMD 663STRICT_CFLAGS 664CWARNFLAGS 665BASE_CFLAGS 666CPP 667OTOOL64 668OTOOL 669LIPO 670NMEDIT 671DSYMUTIL 672MANIFEST_TOOL 673RANLIB 674ac_ct_AR 675AR 676DLLTOOL 677OBJDUMP 678LN_S 679NM 680ac_ct_DUMPBIN 681DUMPBIN 682LD 683FGREP 684EGREP 685GREP 686SED 687am__fastdepCC_FALSE 688am__fastdepCC_TRUE 689CCDEPMODE 690am__nodep 691AMDEPBACKSLASH 692AMDEP_FALSE 693AMDEP_TRUE 694am__quote 695am__include 696DEPDIR 697OBJEXT 698EXEEXT 699ac_ct_CC 700CPPFLAGS 701LDFLAGS 702CFLAGS 703CC 704host_os 705host_vendor 706host_cpu 707host 708build_os 709build_vendor 710build_cpu 711build 712LIBTOOL 713AM_BACKSLASH 714AM_DEFAULT_VERBOSITY 715AM_DEFAULT_V 716AM_V 717am__untar 718am__tar 719AMTAR 720am__leading_dot 721SET_MAKE 722AWK 723mkdir_p 724MKDIR_P 725INSTALL_STRIP_PROGRAM 726STRIP 727install_sh 728MAKEINFO 729AUTOHEADER 730AUTOMAKE 731AUTOCONF 732ACLOCAL 733VERSION 734PACKAGE 735CYGPATH_W 736am__isrc 737INSTALL_DATA 738INSTALL_SCRIPT 739INSTALL_PROGRAM 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_silent_rules 782enable_shared 783enable_static 784with_pic 785enable_fast_install 786enable_dependency_tracking 787with_gnu_ld 788with_sysroot 789enable_libtool_lock 790enable_selective_werror 791enable_strict_compilation 792enable_malloc0returnsnull 793' 794 ac_precious_vars='build_alias 795host_alias 796target_alias 797CC 798CFLAGS 799LDFLAGS 800LIBS 801CPPFLAGS 802CPP 803PKG_CONFIG 804RENDER_CFLAGS 805RENDER_LIBS' 806 807 808# Initialize some variables set by options. 809ac_init_help= 810ac_init_version=false 811ac_unrecognized_opts= 812ac_unrecognized_sep= 813# The variables have the same names as the options, with 814# dashes changed to underlines. 815cache_file=/dev/null 816exec_prefix=NONE 817no_create= 818no_recursion= 819prefix=NONE 820program_prefix=NONE 821program_suffix=NONE 822program_transform_name=s,x,x, 823silent= 824site= 825srcdir= 826verbose= 827x_includes=NONE 828x_libraries=NONE 829 830# Installation directory options. 831# These are left unexpanded so users can "make install exec_prefix=/foo" 832# and all the variables that are supposed to be based on exec_prefix 833# by default will actually change. 834# Use braces instead of parens because sh, perl, etc. also accept them. 835# (The list follows the same order as the GNU Coding Standards.) 836bindir='${exec_prefix}/bin' 837sbindir='${exec_prefix}/sbin' 838libexecdir='${exec_prefix}/libexec' 839datarootdir='${prefix}/share' 840datadir='${datarootdir}' 841sysconfdir='${prefix}/etc' 842sharedstatedir='${prefix}/com' 843localstatedir='${prefix}/var' 844includedir='${prefix}/include' 845oldincludedir='/usr/include' 846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 847infodir='${datarootdir}/info' 848htmldir='${docdir}' 849dvidir='${docdir}' 850pdfdir='${docdir}' 851psdir='${docdir}' 852libdir='${exec_prefix}/lib' 853localedir='${datarootdir}/locale' 854mandir='${datarootdir}/man' 855 856ac_prev= 857ac_dashdash= 858for ac_option 859do 860 # If the previous option needs an argument, assign it. 861 if test -n "$ac_prev"; then 862 eval $ac_prev=\$ac_option 863 ac_prev= 864 continue 865 fi 866 867 case $ac_option in 868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 869 *=) ac_optarg= ;; 870 *) ac_optarg=yes ;; 871 esac 872 873 # Accept the important Cygnus configure options, so we can diagnose typos. 874 875 case $ac_dashdash$ac_option in 876 --) 877 ac_dashdash=yes ;; 878 879 -bindir | --bindir | --bindi | --bind | --bin | --bi) 880 ac_prev=bindir ;; 881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 882 bindir=$ac_optarg ;; 883 884 -build | --build | --buil | --bui | --bu) 885 ac_prev=build_alias ;; 886 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 887 build_alias=$ac_optarg ;; 888 889 -cache-file | --cache-file | --cache-fil | --cache-fi \ 890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 891 ac_prev=cache_file ;; 892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 894 cache_file=$ac_optarg ;; 895 896 --config-cache | -C) 897 cache_file=config.cache ;; 898 899 -datadir | --datadir | --datadi | --datad) 900 ac_prev=datadir ;; 901 -datadir=* | --datadir=* | --datadi=* | --datad=*) 902 datadir=$ac_optarg ;; 903 904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 905 | --dataroo | --dataro | --datar) 906 ac_prev=datarootdir ;; 907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 909 datarootdir=$ac_optarg ;; 910 911 -disable-* | --disable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=\$ac_optarg ;; 952 953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 955 | --exec | --exe | --ex) 956 ac_prev=exec_prefix ;; 957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 959 | --exec=* | --exe=* | --ex=*) 960 exec_prefix=$ac_optarg ;; 961 962 -gas | --gas | --ga | --g) 963 # Obsolete; use --with-gas. 964 with_gas=yes ;; 965 966 -help | --help | --hel | --he | -h) 967 ac_init_help=long ;; 968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 969 ac_init_help=recursive ;; 970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 971 ac_init_help=short ;; 972 973 -host | --host | --hos | --ho) 974 ac_prev=host_alias ;; 975 -host=* | --host=* | --hos=* | --ho=*) 976 host_alias=$ac_optarg ;; 977 978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 979 ac_prev=htmldir ;; 980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 981 | --ht=*) 982 htmldir=$ac_optarg ;; 983 984 -includedir | --includedir | --includedi | --included | --include \ 985 | --includ | --inclu | --incl | --inc) 986 ac_prev=includedir ;; 987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 988 | --includ=* | --inclu=* | --incl=* | --inc=*) 989 includedir=$ac_optarg ;; 990 991 -infodir | --infodir | --infodi | --infod | --info | --inf) 992 ac_prev=infodir ;; 993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 994 infodir=$ac_optarg ;; 995 996 -libdir | --libdir | --libdi | --libd) 997 ac_prev=libdir ;; 998 -libdir=* | --libdir=* | --libdi=* | --libd=*) 999 libdir=$ac_optarg ;; 1000 1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1002 | --libexe | --libex | --libe) 1003 ac_prev=libexecdir ;; 1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1005 | --libexe=* | --libex=* | --libe=*) 1006 libexecdir=$ac_optarg ;; 1007 1008 -localedir | --localedir | --localedi | --localed | --locale) 1009 ac_prev=localedir ;; 1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1011 localedir=$ac_optarg ;; 1012 1013 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1014 | --localstate | --localstat | --localsta | --localst | --locals) 1015 ac_prev=localstatedir ;; 1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1018 localstatedir=$ac_optarg ;; 1019 1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1021 ac_prev=mandir ;; 1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1023 mandir=$ac_optarg ;; 1024 1025 -nfp | --nfp | --nf) 1026 # Obsolete; use --without-fp. 1027 with_fp=no ;; 1028 1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1030 | --no-cr | --no-c | -n) 1031 no_create=yes ;; 1032 1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1035 no_recursion=yes ;; 1036 1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1039 | --oldin | --oldi | --old | --ol | --o) 1040 ac_prev=oldincludedir ;; 1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1044 oldincludedir=$ac_optarg ;; 1045 1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1047 ac_prev=prefix ;; 1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1049 prefix=$ac_optarg ;; 1050 1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1052 | --program-pre | --program-pr | --program-p) 1053 ac_prev=program_prefix ;; 1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1056 program_prefix=$ac_optarg ;; 1057 1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1059 | --program-suf | --program-su | --program-s) 1060 ac_prev=program_suffix ;; 1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1063 program_suffix=$ac_optarg ;; 1064 1065 -program-transform-name | --program-transform-name \ 1066 | --program-transform-nam | --program-transform-na \ 1067 | --program-transform-n | --program-transform- \ 1068 | --program-transform | --program-transfor \ 1069 | --program-transfo | --program-transf \ 1070 | --program-trans | --program-tran \ 1071 | --progr-tra | --program-tr | --program-t) 1072 ac_prev=program_transform_name ;; 1073 -program-transform-name=* | --program-transform-name=* \ 1074 | --program-transform-nam=* | --program-transform-na=* \ 1075 | --program-transform-n=* | --program-transform-=* \ 1076 | --program-transform=* | --program-transfor=* \ 1077 | --program-transfo=* | --program-transf=* \ 1078 | --program-trans=* | --program-tran=* \ 1079 | --progr-tra=* | --program-tr=* | --program-t=*) 1080 program_transform_name=$ac_optarg ;; 1081 1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1083 ac_prev=pdfdir ;; 1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1085 pdfdir=$ac_optarg ;; 1086 1087 -psdir | --psdir | --psdi | --psd | --ps) 1088 ac_prev=psdir ;; 1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1090 psdir=$ac_optarg ;; 1091 1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1093 | -silent | --silent | --silen | --sile | --sil) 1094 silent=yes ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: $ac_useropt" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166"with_$ac_useropt" 1167"*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1192Try \`$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214done 1215 1216if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219fi 1220 1221if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227fi 1228 1229# Check all directory arguments for consistency. 1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir 1234do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248done 1249 1250# There might be people who depend on the old broken behavior: `$host' 1251# used to hold the argument of --host etc. 1252# FIXME: To remove some day. 1253build=$build_alias 1254host=$host_alias 1255target=$target_alias 1256 1257# FIXME: To remove some day. 1258if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 elif test "x$build_alias" != "x$host_alias"; then 1262 cross_compiling=yes 1263 fi 1264fi 1265 1266ac_tool_prefix= 1267test -n "$host_alias" && ac_tool_prefix=$host_alias- 1268 1269test "$silent" = yes && exec 6>/dev/null 1270 1271 1272ac_pwd=`pwd` && test -n "$ac_pwd" && 1273ac_ls_di=`ls -di .` && 1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1275 as_fn_error $? "working directory cannot be determined" 1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1277 as_fn_error $? "pwd does not report name of working directory" 1278 1279 1280# Find the source files, if location was not specified. 1281if test -z "$srcdir"; then 1282 ac_srcdir_defaulted=yes 1283 # Try the directory containing this script, then the parent directory. 1284 ac_confdir=`$as_dirname -- "$as_myself" || 1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286 X"$as_myself" : 'X\(//\)[^/]' \| \ 1287 X"$as_myself" : 'X\(//\)$' \| \ 1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1289$as_echo X"$as_myself" | 1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)[^/].*/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\).*/{ 1303 s//\1/ 1304 q 1305 } 1306 s/.*/./; q'` 1307 srcdir=$ac_confdir 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 srcdir=.. 1310 fi 1311else 1312 ac_srcdir_defaulted=no 1313fi 1314if test ! -r "$srcdir/$ac_unique_file"; then 1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317fi 1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1319ac_abs_confdir=`( 1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321 pwd)` 1322# When building in place, set srcdir=. 1323if test "$ac_abs_confdir" = "$ac_pwd"; then 1324 srcdir=. 1325fi 1326# Remove unnecessary trailing slashes from srcdir. 1327# Double slashes in file names in object file debugging info 1328# mess up M-x gdb in Emacs. 1329case $srcdir in 1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331esac 1332for ac_var in $ac_precious_vars; do 1333 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_env_${ac_var}_value=\$${ac_var} 1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337done 1338 1339# 1340# Report the --help message. 1341# 1342if test "$ac_init_help" = "long"; then 1343 # Omit some internal or obsolete options to make the list less imposing. 1344 # This message is too long to be a string in the A/UX 3.1 sh. 1345 cat <<_ACEOF 1346\`configure' configures libXrender 0.9.9 to adapt to many kinds of systems. 1347 1348Usage: $0 [OPTION]... [VAR=VALUE]... 1349 1350To assign environment variables (e.g., CC, CFLAGS...), specify them as 1351VAR=VALUE. See below for descriptions of some of the useful variables. 1352 1353Defaults for the options are specified in brackets. 1354 1355Configuration: 1356 -h, --help display this help and exit 1357 --help=short display options specific to this package 1358 --help=recursive display the short help of all the included packages 1359 -V, --version display version information and exit 1360 -q, --quiet, --silent do not print \`checking ...' messages 1361 --cache-file=FILE cache test results in FILE [disabled] 1362 -C, --config-cache alias for \`--cache-file=config.cache' 1363 -n, --no-create do not create output files 1364 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1365 1366Installation directories: 1367 --prefix=PREFIX install architecture-independent files in PREFIX 1368 [$ac_default_prefix] 1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370 [PREFIX] 1371 1372By default, \`make install' will install all the files in 1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1374an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1375for instance \`--prefix=\$HOME'. 1376 1377For better control, use the options below. 1378 1379Fine tuning of the installation directories: 1380 --bindir=DIR user executables [EPREFIX/bin] 1381 --sbindir=DIR system admin executables [EPREFIX/sbin] 1382 --libexecdir=DIR program executables [EPREFIX/libexec] 1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrender] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399_ACEOF 1400 1401 cat <<\_ACEOF 1402 1403Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411_ACEOF 1412fi 1413 1414if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of libXrender 0.9.9:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-silent-rules less verbose build output (undo: "make V=1") 1425 --disable-silent-rules verbose build output (undo: "make V=0") 1426 --enable-shared[=PKGS] build shared libraries [default=yes] 1427 --enable-static[=PKGS] build static libraries [default=yes] 1428 --enable-fast-install[=PKGS] 1429 optimize for fast installation [default=yes] 1430 --enable-dependency-tracking 1431 do not reject slow dependency extractors 1432 --disable-dependency-tracking 1433 speeds up one-time build 1434 --disable-libtool-lock avoid locking (might break parallel builds) 1435 --disable-selective-werror 1436 Turn off selective compiler errors. (default: 1437 enabled) 1438 --enable-strict-compilation 1439 Enable all warnings from compiler and make them 1440 errors (default: disabled) 1441 --enable-malloc0returnsnull 1442 malloc(0) returns NULL (default: auto) 1443 1444Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1448 both] 1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1450 --with-sysroot=DIR Search for dependent libraries within DIR 1451 (or the compiler's sysroot if not specified). 1452 1453Some influential environment variables: 1454 CC C compiler command 1455 CFLAGS C compiler flags 1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1457 nonstandard directory <lib dir> 1458 LIBS libraries to pass to the linker, e.g. -l<library> 1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1460 you have headers in a nonstandard directory <include dir> 1461 CPP C preprocessor 1462 PKG_CONFIG path to pkg-config utility 1463 RENDER_CFLAGS 1464 C compiler flags for RENDER, overriding pkg-config 1465 RENDER_LIBS linker flags for RENDER, overriding pkg-config 1466 1467Use these variables to override the choices made by `configure' or to help 1468it to find libraries and programs with nonstandard names/locations. 1469 1470Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1471_ACEOF 1472ac_status=$? 1473fi 1474 1475if test "$ac_init_help" = "recursive"; then 1476 # If there are subdirs, report their specific --help. 1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1478 test -d "$ac_dir" || 1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1480 continue 1481 ac_builddir=. 1482 1483case "$ac_dir" in 1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485*) 1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1487 # A ".." for each directory in $ac_dir_suffix. 1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1489 case $ac_top_builddir_sub in 1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1492 esac ;; 1493esac 1494ac_abs_top_builddir=$ac_pwd 1495ac_abs_builddir=$ac_pwd$ac_dir_suffix 1496# for backward compatibility: 1497ac_top_builddir=$ac_top_build_prefix 1498 1499case $srcdir in 1500 .) # We are building in place. 1501 ac_srcdir=. 1502 ac_top_srcdir=$ac_top_builddir_sub 1503 ac_abs_top_srcdir=$ac_pwd ;; 1504 [\\/]* | ?:[\\/]* ) # Absolute name. 1505 ac_srcdir=$srcdir$ac_dir_suffix; 1506 ac_top_srcdir=$srcdir 1507 ac_abs_top_srcdir=$srcdir ;; 1508 *) # Relative name. 1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1510 ac_top_srcdir=$ac_top_build_prefix$srcdir 1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1512esac 1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1514 1515 cd "$ac_dir" || { ac_status=$?; continue; } 1516 # Check for guested configure. 1517 if test -f "$ac_srcdir/configure.gnu"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1520 elif test -f "$ac_srcdir/configure"; then 1521 echo && 1522 $SHELL "$ac_srcdir/configure" --help=recursive 1523 else 1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1525 fi || ac_status=$? 1526 cd "$ac_pwd" || { ac_status=$?; break; } 1527 done 1528fi 1529 1530test -n "$ac_init_help" && exit $ac_status 1531if $ac_init_version; then 1532 cat <<\_ACEOF 1533libXrender configure 0.9.9 1534generated by GNU Autoconf 2.69 1535 1536Copyright (C) 2012 Free Software Foundation, Inc. 1537This configure script is free software; the Free Software Foundation 1538gives unlimited permission to copy, distribute and modify it. 1539_ACEOF 1540 exit 1541fi 1542 1543## ------------------------ ## 1544## Autoconf initialization. ## 1545## ------------------------ ## 1546 1547# ac_fn_c_try_compile LINENO 1548# -------------------------- 1549# Try to compile conftest.$ac_ext, and return whether this succeeded. 1550ac_fn_c_try_compile () 1551{ 1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1553 rm -f conftest.$ac_objext 1554 if { { ac_try="$ac_compile" 1555case "(($ac_try" in 1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1557 *) ac_try_echo=$ac_try;; 1558esac 1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1560$as_echo "$ac_try_echo"; } >&5 1561 (eval "$ac_compile") 2>conftest.err 1562 ac_status=$? 1563 if test -s conftest.err; then 1564 grep -v '^ *+' conftest.err >conftest.er1 1565 cat conftest.er1 >&5 1566 mv -f conftest.er1 conftest.err 1567 fi 1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1569 test $ac_status = 0; } && { 1570 test -z "$ac_c_werror_flag" || 1571 test ! -s conftest.err 1572 } && test -s conftest.$ac_objext; then : 1573 ac_retval=0 1574else 1575 $as_echo "$as_me: failed program was:" >&5 1576sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=1 1579fi 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 as_fn_set_status $ac_retval 1582 1583} # ac_fn_c_try_compile 1584 1585# ac_fn_c_try_link LINENO 1586# ----------------------- 1587# Try to link conftest.$ac_ext, and return whether this succeeded. 1588ac_fn_c_try_link () 1589{ 1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591 rm -f conftest.$ac_objext conftest$ac_exeext 1592 if { { ac_try="$ac_link" 1593case "(($ac_try" in 1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1595 *) ac_try_echo=$ac_try;; 1596esac 1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1598$as_echo "$ac_try_echo"; } >&5 1599 (eval "$ac_link") 2>conftest.err 1600 ac_status=$? 1601 if test -s conftest.err; then 1602 grep -v '^ *+' conftest.err >conftest.er1 1603 cat conftest.er1 >&5 1604 mv -f conftest.er1 conftest.err 1605 fi 1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607 test $ac_status = 0; } && { 1608 test -z "$ac_c_werror_flag" || 1609 test ! -s conftest.err 1610 } && test -s conftest$ac_exeext && { 1611 test "$cross_compiling" = yes || 1612 test -x conftest$ac_exeext 1613 }; then : 1614 ac_retval=0 1615else 1616 $as_echo "$as_me: failed program was:" >&5 1617sed 's/^/| /' conftest.$ac_ext >&5 1618 1619 ac_retval=1 1620fi 1621 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1622 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1623 # interfere with the next link command; also delete a directory that is 1624 # left behind by Apple's compiler. We do this before executing the actions. 1625 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 as_fn_set_status $ac_retval 1628 1629} # ac_fn_c_try_link 1630 1631# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1632# ------------------------------------------------------- 1633# Tests whether HEADER exists and can be compiled using the include files in 1634# INCLUDES, setting the cache variable VAR accordingly. 1635ac_fn_c_check_header_compile () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1639$as_echo_n "checking for $2... " >&6; } 1640if eval \${$3+:} false; then : 1641 $as_echo_n "(cached) " >&6 1642else 1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1644/* end confdefs.h. */ 1645$4 1646#include <$2> 1647_ACEOF 1648if ac_fn_c_try_compile "$LINENO"; then : 1649 eval "$3=yes" 1650else 1651 eval "$3=no" 1652fi 1653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1654fi 1655eval ac_res=\$$3 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1657$as_echo "$ac_res" >&6; } 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 1660} # ac_fn_c_check_header_compile 1661 1662# ac_fn_c_try_cpp LINENO 1663# ---------------------- 1664# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1665ac_fn_c_try_cpp () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 if { { ac_try="$ac_cpp conftest.$ac_ext" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1676 ac_status=$? 1677 if test -s conftest.err; then 1678 grep -v '^ *+' conftest.err >conftest.er1 1679 cat conftest.er1 >&5 1680 mv -f conftest.er1 conftest.err 1681 fi 1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; } > conftest.i && { 1684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1685 test ! -s conftest.err 1686 }; then : 1687 ac_retval=0 1688else 1689 $as_echo "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 1693fi 1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1695 as_fn_set_status $ac_retval 1696 1697} # ac_fn_c_try_cpp 1698 1699# ac_fn_c_try_run LINENO 1700# ---------------------- 1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1702# that executables *can* be run. 1703ac_fn_c_try_run () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 if { { ac_try="$ac_link" 1707case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710esac 1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712$as_echo "$ac_try_echo"; } >&5 1713 (eval "$ac_link") 2>&5 1714 ac_status=$? 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1717 { { case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_try") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; }; }; then : 1727 ac_retval=0 1728else 1729 $as_echo "$as_me: program exited with status $ac_status" >&5 1730 $as_echo "$as_me: failed program was:" >&5 1731sed 's/^/| /' conftest.$ac_ext >&5 1732 1733 ac_retval=$ac_status 1734fi 1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 as_fn_set_status $ac_retval 1738 1739} # ac_fn_c_try_run 1740 1741# ac_fn_c_check_func LINENO FUNC VAR 1742# ---------------------------------- 1743# Tests whether FUNC exists, setting the cache variable VAR accordingly 1744ac_fn_c_check_func () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1748$as_echo_n "checking for $2... " >&6; } 1749if eval \${$3+:} false; then : 1750 $as_echo_n "(cached) " >&6 1751else 1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1755 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1756#define $2 innocuous_$2 1757 1758/* System header to define __stub macros and hopefully few prototypes, 1759 which can conflict with char $2 (); below. 1760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1761 <limits.h> exists even on freestanding compilers. */ 1762 1763#ifdef __STDC__ 1764# include <limits.h> 1765#else 1766# include <assert.h> 1767#endif 1768 1769#undef $2 1770 1771/* Override any GCC internal prototype to avoid an error. 1772 Use char because int might match the return type of a GCC 1773 builtin and then its argument prototype would still apply. */ 1774#ifdef __cplusplus 1775extern "C" 1776#endif 1777char $2 (); 1778/* The GNU C library defines this for functions which it implements 1779 to always fail with ENOSYS. Some functions are actually named 1780 something starting with __ and the normal name is an alias. */ 1781#if defined __stub_$2 || defined __stub___$2 1782choke me 1783#endif 1784 1785int 1786main () 1787{ 1788return $2 (); 1789 ; 1790 return 0; 1791} 1792_ACEOF 1793if ac_fn_c_try_link "$LINENO"; then : 1794 eval "$3=yes" 1795else 1796 eval "$3=no" 1797fi 1798rm -f core conftest.err conftest.$ac_objext \ 1799 conftest$ac_exeext conftest.$ac_ext 1800fi 1801eval ac_res=\$$3 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1803$as_echo "$ac_res" >&6; } 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 1806} # ac_fn_c_check_func 1807 1808# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1809# --------------------------------------------- 1810# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1811# accordingly. 1812ac_fn_c_check_decl () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 as_decl_name=`echo $2|sed 's/ *(.*//'` 1816 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1818$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1819if eval \${$3+:} false; then : 1820 $as_echo_n "(cached) " >&6 1821else 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824$4 1825int 1826main () 1827{ 1828#ifndef $as_decl_name 1829#ifdef __cplusplus 1830 (void) $as_decl_use; 1831#else 1832 (void) $as_decl_name; 1833#endif 1834#endif 1835 1836 ; 1837 return 0; 1838} 1839_ACEOF 1840if ac_fn_c_try_compile "$LINENO"; then : 1841 eval "$3=yes" 1842else 1843 eval "$3=no" 1844fi 1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1846fi 1847eval ac_res=\$$3 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849$as_echo "$ac_res" >&6; } 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 1852} # ac_fn_c_check_decl 1853cat >config.log <<_ACEOF 1854This file contains any messages produced by compilers while 1855running configure, to aid debugging if configure makes a mistake. 1856 1857It was created by libXrender $as_me 0.9.9, which was 1858generated by GNU Autoconf 2.69. Invocation command line was 1859 1860 $ $0 $@ 1861 1862_ACEOF 1863exec 5>>config.log 1864{ 1865cat <<_ASUNAME 1866## --------- ## 1867## Platform. ## 1868## --------- ## 1869 1870hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1871uname -m = `(uname -m) 2>/dev/null || echo unknown` 1872uname -r = `(uname -r) 2>/dev/null || echo unknown` 1873uname -s = `(uname -s) 2>/dev/null || echo unknown` 1874uname -v = `(uname -v) 2>/dev/null || echo unknown` 1875 1876/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1877/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1878 1879/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1880/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1881/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1882/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1883/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1884/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1885/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1886 1887_ASUNAME 1888 1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1890for as_dir in $PATH 1891do 1892 IFS=$as_save_IFS 1893 test -z "$as_dir" && as_dir=. 1894 $as_echo "PATH: $as_dir" 1895 done 1896IFS=$as_save_IFS 1897 1898} >&5 1899 1900cat >&5 <<_ACEOF 1901 1902 1903## ----------- ## 1904## Core tests. ## 1905## ----------- ## 1906 1907_ACEOF 1908 1909 1910# Keep a trace of the command line. 1911# Strip out --no-create and --no-recursion so they do not pile up. 1912# Strip out --silent because we don't want to record it for future runs. 1913# Also quote any args containing shell meta-characters. 1914# Make two passes to allow for proper duplicate-argument suppression. 1915ac_configure_args= 1916ac_configure_args0= 1917ac_configure_args1= 1918ac_must_keep_next=false 1919for ac_pass in 1 2 1920do 1921 for ac_arg 1922 do 1923 case $ac_arg in 1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1926 | -silent | --silent | --silen | --sile | --sil) 1927 continue ;; 1928 *\'*) 1929 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1930 esac 1931 case $ac_pass in 1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1933 2) 1934 as_fn_append ac_configure_args1 " '$ac_arg'" 1935 if test $ac_must_keep_next = true; then 1936 ac_must_keep_next=false # Got value, back to normal. 1937 else 1938 case $ac_arg in 1939 *=* | --config-cache | -C | -disable-* | --disable-* \ 1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1942 | -with-* | --with-* | -without-* | --without-* | --x) 1943 case "$ac_configure_args0 " in 1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1945 esac 1946 ;; 1947 -* ) ac_must_keep_next=true ;; 1948 esac 1949 fi 1950 as_fn_append ac_configure_args " '$ac_arg'" 1951 ;; 1952 esac 1953 done 1954done 1955{ ac_configure_args0=; unset ac_configure_args0;} 1956{ ac_configure_args1=; unset ac_configure_args1;} 1957 1958# When interrupted or exit'd, cleanup temporary files, and complete 1959# config.log. We remove comments because anyway the quotes in there 1960# would cause problems or look ugly. 1961# WARNING: Use '\'' to represent an apostrophe within the trap. 1962# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1963trap 'exit_status=$? 1964 # Save into config.log some information that might help in debugging. 1965 { 1966 echo 1967 1968 $as_echo "## ---------------- ## 1969## Cache variables. ## 1970## ---------------- ##" 1971 echo 1972 # The following way of writing the cache mishandles newlines in values, 1973( 1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1975 eval ac_val=\$$ac_var 1976 case $ac_val in #( 1977 *${as_nl}*) 1978 case $ac_var in #( 1979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1980$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1981 esac 1982 case $ac_var in #( 1983 _ | IFS | as_nl) ;; #( 1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1985 *) { eval $ac_var=; unset $ac_var;} ;; 1986 esac ;; 1987 esac 1988 done 1989 (set) 2>&1 | 1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1991 *${as_nl}ac_space=\ *) 1992 sed -n \ 1993 "s/'\''/'\''\\\\'\'''\''/g; 1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1995 ;; #( 1996 *) 1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1998 ;; 1999 esac | 2000 sort 2001) 2002 echo 2003 2004 $as_echo "## ----------------- ## 2005## Output variables. ## 2006## ----------------- ##" 2007 echo 2008 for ac_var in $ac_subst_vars 2009 do 2010 eval ac_val=\$$ac_var 2011 case $ac_val in 2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2013 esac 2014 $as_echo "$ac_var='\''$ac_val'\''" 2015 done | sort 2016 echo 2017 2018 if test -n "$ac_subst_files"; then 2019 $as_echo "## ------------------- ## 2020## File substitutions. ## 2021## ------------------- ##" 2022 echo 2023 for ac_var in $ac_subst_files 2024 do 2025 eval ac_val=\$$ac_var 2026 case $ac_val in 2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2028 esac 2029 $as_echo "$ac_var='\''$ac_val'\''" 2030 done | sort 2031 echo 2032 fi 2033 2034 if test -s confdefs.h; then 2035 $as_echo "## ----------- ## 2036## confdefs.h. ## 2037## ----------- ##" 2038 echo 2039 cat confdefs.h 2040 echo 2041 fi 2042 test "$ac_signal" != 0 && 2043 $as_echo "$as_me: caught signal $ac_signal" 2044 $as_echo "$as_me: exit $exit_status" 2045 } >&5 2046 rm -f core *.core core.conftest.* && 2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2048 exit $exit_status 2049' 0 2050for ac_signal in 1 2 13 15; do 2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2052done 2053ac_signal=0 2054 2055# confdefs.h avoids OS command line length limits that DEFS can exceed. 2056rm -f -r conftest* confdefs.h 2057 2058$as_echo "/* confdefs.h */" > confdefs.h 2059 2060# Predefined preprocessor variables. 2061 2062cat >>confdefs.h <<_ACEOF 2063#define PACKAGE_NAME "$PACKAGE_NAME" 2064_ACEOF 2065 2066cat >>confdefs.h <<_ACEOF 2067#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2068_ACEOF 2069 2070cat >>confdefs.h <<_ACEOF 2071#define PACKAGE_VERSION "$PACKAGE_VERSION" 2072_ACEOF 2073 2074cat >>confdefs.h <<_ACEOF 2075#define PACKAGE_STRING "$PACKAGE_STRING" 2076_ACEOF 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2080_ACEOF 2081 2082cat >>confdefs.h <<_ACEOF 2083#define PACKAGE_URL "$PACKAGE_URL" 2084_ACEOF 2085 2086 2087# Let the site file select an alternate cache file if it wants to. 2088# Prefer an explicitly selected file to automatically selected ones. 2089ac_site_file1=NONE 2090ac_site_file2=NONE 2091if test -n "$CONFIG_SITE"; then 2092 # We do not want a PATH search for config.site. 2093 case $CONFIG_SITE in #(( 2094 -*) ac_site_file1=./$CONFIG_SITE;; 2095 */*) ac_site_file1=$CONFIG_SITE;; 2096 *) ac_site_file1=./$CONFIG_SITE;; 2097 esac 2098elif test "x$prefix" != xNONE; then 2099 ac_site_file1=$prefix/share/config.site 2100 ac_site_file2=$prefix/etc/config.site 2101else 2102 ac_site_file1=$ac_default_prefix/share/config.site 2103 ac_site_file2=$ac_default_prefix/etc/config.site 2104fi 2105for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2106do 2107 test "x$ac_site_file" = xNONE && continue 2108 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2110$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2111 sed 's/^/| /' "$ac_site_file" >&5 2112 . "$ac_site_file" \ 2113 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2115as_fn_error $? "failed to load site script $ac_site_file 2116See \`config.log' for more details" "$LINENO" 5; } 2117 fi 2118done 2119 2120if test -r "$cache_file"; then 2121 # Some versions of bash will fail to source /dev/null (special files 2122 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2123 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2125$as_echo "$as_me: loading cache $cache_file" >&6;} 2126 case $cache_file in 2127 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2128 *) . "./$cache_file";; 2129 esac 2130 fi 2131else 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2133$as_echo "$as_me: creating cache $cache_file" >&6;} 2134 >$cache_file 2135fi 2136 2137# Check that the precious variables saved in the cache have kept the same 2138# value. 2139ac_cache_corrupted=false 2140for ac_var in $ac_precious_vars; do 2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2142 eval ac_new_set=\$ac_env_${ac_var}_set 2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2144 eval ac_new_val=\$ac_env_${ac_var}_value 2145 case $ac_old_set,$ac_new_set in 2146 set,) 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2148$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2149 ac_cache_corrupted=: ;; 2150 ,set) 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2152$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2153 ac_cache_corrupted=: ;; 2154 ,);; 2155 *) 2156 if test "x$ac_old_val" != "x$ac_new_val"; then 2157 # differences in whitespace do not lead to failure. 2158 ac_old_val_w=`echo x $ac_old_val` 2159 ac_new_val_w=`echo x $ac_new_val` 2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2162$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2163 ac_cache_corrupted=: 2164 else 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2166$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2167 eval $ac_var=\$ac_old_val 2168 fi 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2170$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2172$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2173 fi;; 2174 esac 2175 # Pass precious variables to config.status. 2176 if test "$ac_new_set" = set; then 2177 case $ac_new_val in 2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2179 *) ac_arg=$ac_var=$ac_new_val ;; 2180 esac 2181 case " $ac_configure_args " in 2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2184 esac 2185 fi 2186done 2187if $ac_cache_corrupted; then 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2191$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2192 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2193fi 2194## -------------------- ## 2195## Main body of script. ## 2196## -------------------- ## 2197 2198ac_ext=c 2199ac_cpp='$CPP $CPPFLAGS' 2200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2202ac_compiler_gnu=$ac_cv_c_compiler_gnu 2203 2204 2205 2206ac_config_headers="$ac_config_headers config.h" 2207 2208 2209# Initialize Automake 2210am__api_version='1.15' 2211 2212ac_aux_dir= 2213for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2214 if test -f "$ac_dir/install-sh"; then 2215 ac_aux_dir=$ac_dir 2216 ac_install_sh="$ac_aux_dir/install-sh -c" 2217 break 2218 elif test -f "$ac_dir/install.sh"; then 2219 ac_aux_dir=$ac_dir 2220 ac_install_sh="$ac_aux_dir/install.sh -c" 2221 break 2222 elif test -f "$ac_dir/shtool"; then 2223 ac_aux_dir=$ac_dir 2224 ac_install_sh="$ac_aux_dir/shtool install -c" 2225 break 2226 fi 2227done 2228if test -z "$ac_aux_dir"; then 2229 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2230fi 2231 2232# These three variables are undocumented and unsupported, 2233# and are intended to be withdrawn in a future Autoconf release. 2234# They can cause serious problems if a builder's source tree is in a directory 2235# whose full name contains unusual characters. 2236ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2237ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2238ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2239 2240 2241# Find a good install program. We prefer a C program (faster), 2242# so one script is as good as another. But avoid the broken or 2243# incompatible versions: 2244# SysV /etc/install, /usr/sbin/install 2245# SunOS /usr/etc/install 2246# IRIX /sbin/install 2247# AIX /bin/install 2248# AmigaOS /C/install, which installs bootblocks on floppy discs 2249# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2250# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2251# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2252# OS/2's system install, which has a completely different semantic 2253# ./install, which can be erroneously created by make from ./install.sh. 2254# Reject install programs that cannot install multiple files. 2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2256$as_echo_n "checking for a BSD-compatible install... " >&6; } 2257if test -z "$INSTALL"; then 2258if ${ac_cv_path_install+:} false; then : 2259 $as_echo_n "(cached) " >&6 2260else 2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2262for as_dir in $PATH 2263do 2264 IFS=$as_save_IFS 2265 test -z "$as_dir" && as_dir=. 2266 # Account for people who put trailing slashes in PATH elements. 2267case $as_dir/ in #(( 2268 ./ | .// | /[cC]/* | \ 2269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2270 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2271 /usr/ucb/* ) ;; 2272 *) 2273 # OSF1 and SCO ODT 3.0 have their own names for install. 2274 # Don't use installbsd from OSF since it installs stuff as root 2275 # by default. 2276 for ac_prog in ginstall scoinst install; do 2277 for ac_exec_ext in '' $ac_executable_extensions; do 2278 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2279 if test $ac_prog = install && 2280 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2281 # AIX install. It has an incompatible calling convention. 2282 : 2283 elif test $ac_prog = install && 2284 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2285 # program-specific install script used by HP pwplus--don't use. 2286 : 2287 else 2288 rm -rf conftest.one conftest.two conftest.dir 2289 echo one > conftest.one 2290 echo two > conftest.two 2291 mkdir conftest.dir 2292 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2293 test -s conftest.one && test -s conftest.two && 2294 test -s conftest.dir/conftest.one && 2295 test -s conftest.dir/conftest.two 2296 then 2297 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2298 break 3 2299 fi 2300 fi 2301 fi 2302 done 2303 done 2304 ;; 2305esac 2306 2307 done 2308IFS=$as_save_IFS 2309 2310rm -rf conftest.one conftest.two conftest.dir 2311 2312fi 2313 if test "${ac_cv_path_install+set}" = set; then 2314 INSTALL=$ac_cv_path_install 2315 else 2316 # As a last resort, use the slow shell script. Don't cache a 2317 # value for INSTALL within a source directory, because that will 2318 # break other packages using the cache if that directory is 2319 # removed, or if the value is a relative name. 2320 INSTALL=$ac_install_sh 2321 fi 2322fi 2323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2324$as_echo "$INSTALL" >&6; } 2325 2326# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2327# It thinks the first close brace ends the variable substitution. 2328test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2329 2330test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2331 2332test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2333 2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2335$as_echo_n "checking whether build environment is sane... " >&6; } 2336# Reject unsafe characters in $srcdir or the absolute working directory 2337# name. Accept space and tab only in the latter. 2338am_lf=' 2339' 2340case `pwd` in 2341 *[\\\"\#\$\&\'\`$am_lf]*) 2342 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2343esac 2344case $srcdir in 2345 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2346 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2347esac 2348 2349# Do 'set' in a subshell so we don't clobber the current shell's 2350# arguments. Must try -L first in case configure is actually a 2351# symlink; some systems play weird games with the mod time of symlinks 2352# (eg FreeBSD returns the mod time of the symlink's containing 2353# directory). 2354if ( 2355 am_has_slept=no 2356 for am_try in 1 2; do 2357 echo "timestamp, slept: $am_has_slept" > conftest.file 2358 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2359 if test "$*" = "X"; then 2360 # -L didn't work. 2361 set X `ls -t "$srcdir/configure" conftest.file` 2362 fi 2363 if test "$*" != "X $srcdir/configure conftest.file" \ 2364 && test "$*" != "X conftest.file $srcdir/configure"; then 2365 2366 # If neither matched, then we have a broken ls. This can happen 2367 # if, for instance, CONFIG_SHELL is bash and it inherits a 2368 # broken ls alias from the environment. This has actually 2369 # happened. Such a system could not be considered "sane". 2370 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2371 alias in your environment" "$LINENO" 5 2372 fi 2373 if test "$2" = conftest.file || test $am_try -eq 2; then 2374 break 2375 fi 2376 # Just in case. 2377 sleep 1 2378 am_has_slept=yes 2379 done 2380 test "$2" = conftest.file 2381 ) 2382then 2383 # Ok. 2384 : 2385else 2386 as_fn_error $? "newly created file is older than distributed files! 2387Check your system clock" "$LINENO" 5 2388fi 2389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2390$as_echo "yes" >&6; } 2391# If we didn't sleep, we still need to ensure time stamps of config.status and 2392# generated files are strictly newer. 2393am_sleep_pid= 2394if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2395 ( sleep 1 ) & 2396 am_sleep_pid=$! 2397fi 2398 2399rm -f conftest.file 2400 2401test "$program_prefix" != NONE && 2402 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2403# Use a double $ so make ignores it. 2404test "$program_suffix" != NONE && 2405 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2406# Double any \ or $. 2407# By default was `s,x,x', remove it if useless. 2408ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2409program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2410 2411# Expand $ac_aux_dir to an absolute path. 2412am_aux_dir=`cd "$ac_aux_dir" && pwd` 2413 2414if test x"${MISSING+set}" != xset; then 2415 case $am_aux_dir in 2416 *\ * | *\ *) 2417 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2418 *) 2419 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2420 esac 2421fi 2422# Use eval to expand $SHELL 2423if eval "$MISSING --is-lightweight"; then 2424 am_missing_run="$MISSING " 2425else 2426 am_missing_run= 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2428$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2429fi 2430 2431if test x"${install_sh+set}" != xset; then 2432 case $am_aux_dir in 2433 *\ * | *\ *) 2434 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2435 *) 2436 install_sh="\${SHELL} $am_aux_dir/install-sh" 2437 esac 2438fi 2439 2440# Installed binaries are usually stripped using 'strip' when the user 2441# run "make install-strip". However 'strip' might not be the right 2442# tool to use in cross-compilation environments, therefore Automake 2443# will honor the 'STRIP' environment variable to overrule this program. 2444if test "$cross_compiling" != no; then 2445 if test -n "$ac_tool_prefix"; then 2446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2447set dummy ${ac_tool_prefix}strip; ac_word=$2 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2449$as_echo_n "checking for $ac_word... " >&6; } 2450if ${ac_cv_prog_STRIP+:} false; then : 2451 $as_echo_n "(cached) " >&6 2452else 2453 if test -n "$STRIP"; then 2454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2455else 2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457for as_dir in $PATH 2458do 2459 IFS=$as_save_IFS 2460 test -z "$as_dir" && as_dir=. 2461 for ac_exec_ext in '' $ac_executable_extensions; do 2462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2463 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2465 break 2 2466 fi 2467done 2468 done 2469IFS=$as_save_IFS 2470 2471fi 2472fi 2473STRIP=$ac_cv_prog_STRIP 2474if test -n "$STRIP"; then 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2476$as_echo "$STRIP" >&6; } 2477else 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2479$as_echo "no" >&6; } 2480fi 2481 2482 2483fi 2484if test -z "$ac_cv_prog_STRIP"; then 2485 ac_ct_STRIP=$STRIP 2486 # Extract the first word of "strip", so it can be a program name with args. 2487set dummy strip; ac_word=$2 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2489$as_echo_n "checking for $ac_word... " >&6; } 2490if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2491 $as_echo_n "(cached) " >&6 2492else 2493 if test -n "$ac_ct_STRIP"; then 2494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2495else 2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 for ac_exec_ext in '' $ac_executable_extensions; do 2502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2503 ac_cv_prog_ac_ct_STRIP="strip" 2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2505 break 2 2506 fi 2507done 2508 done 2509IFS=$as_save_IFS 2510 2511fi 2512fi 2513ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2514if test -n "$ac_ct_STRIP"; then 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2516$as_echo "$ac_ct_STRIP" >&6; } 2517else 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2519$as_echo "no" >&6; } 2520fi 2521 2522 if test "x$ac_ct_STRIP" = x; then 2523 STRIP=":" 2524 else 2525 case $cross_compiling:$ac_tool_warned in 2526yes:) 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2529ac_tool_warned=yes ;; 2530esac 2531 STRIP=$ac_ct_STRIP 2532 fi 2533else 2534 STRIP="$ac_cv_prog_STRIP" 2535fi 2536 2537fi 2538INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2539 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2541$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2542if test -z "$MKDIR_P"; then 2543 if ${ac_cv_path_mkdir+:} false; then : 2544 $as_echo_n "(cached) " >&6 2545else 2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2548do 2549 IFS=$as_save_IFS 2550 test -z "$as_dir" && as_dir=. 2551 for ac_prog in mkdir gmkdir; do 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2554 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2555 'mkdir (GNU coreutils) '* | \ 2556 'mkdir (coreutils) '* | \ 2557 'mkdir (fileutils) '4.1*) 2558 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2559 break 3;; 2560 esac 2561 done 2562 done 2563 done 2564IFS=$as_save_IFS 2565 2566fi 2567 2568 test -d ./--version && rmdir ./--version 2569 if test "${ac_cv_path_mkdir+set}" = set; then 2570 MKDIR_P="$ac_cv_path_mkdir -p" 2571 else 2572 # As a last resort, use the slow shell script. Don't cache a 2573 # value for MKDIR_P within a source directory, because that will 2574 # break other packages using the cache if that directory is 2575 # removed, or if the value is a relative name. 2576 MKDIR_P="$ac_install_sh -d" 2577 fi 2578fi 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2580$as_echo "$MKDIR_P" >&6; } 2581 2582for ac_prog in gawk mawk nawk awk 2583do 2584 # Extract the first word of "$ac_prog", so it can be a program name with args. 2585set dummy $ac_prog; ac_word=$2 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2587$as_echo_n "checking for $ac_word... " >&6; } 2588if ${ac_cv_prog_AWK+:} false; then : 2589 $as_echo_n "(cached) " >&6 2590else 2591 if test -n "$AWK"; then 2592 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2593else 2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2595for as_dir in $PATH 2596do 2597 IFS=$as_save_IFS 2598 test -z "$as_dir" && as_dir=. 2599 for ac_exec_ext in '' $ac_executable_extensions; do 2600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2601 ac_cv_prog_AWK="$ac_prog" 2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2603 break 2 2604 fi 2605done 2606 done 2607IFS=$as_save_IFS 2608 2609fi 2610fi 2611AWK=$ac_cv_prog_AWK 2612if test -n "$AWK"; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2614$as_echo "$AWK" >&6; } 2615else 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2617$as_echo "no" >&6; } 2618fi 2619 2620 2621 test -n "$AWK" && break 2622done 2623 2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2625$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2626set x ${MAKE-make} 2627ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2628if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2629 $as_echo_n "(cached) " >&6 2630else 2631 cat >conftest.make <<\_ACEOF 2632SHELL = /bin/sh 2633all: 2634 @echo '@@@%%%=$(MAKE)=@@@%%%' 2635_ACEOF 2636# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2637case `${MAKE-make} -f conftest.make 2>/dev/null` in 2638 *@@@%%%=?*=@@@%%%*) 2639 eval ac_cv_prog_make_${ac_make}_set=yes;; 2640 *) 2641 eval ac_cv_prog_make_${ac_make}_set=no;; 2642esac 2643rm -f conftest.make 2644fi 2645if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2647$as_echo "yes" >&6; } 2648 SET_MAKE= 2649else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651$as_echo "no" >&6; } 2652 SET_MAKE="MAKE=${MAKE-make}" 2653fi 2654 2655rm -rf .tst 2>/dev/null 2656mkdir .tst 2>/dev/null 2657if test -d .tst; then 2658 am__leading_dot=. 2659else 2660 am__leading_dot=_ 2661fi 2662rmdir .tst 2>/dev/null 2663 2664# Check whether --enable-silent-rules was given. 2665if test "${enable_silent_rules+set}" = set; then : 2666 enableval=$enable_silent_rules; 2667fi 2668 2669case $enable_silent_rules in # ((( 2670 yes) AM_DEFAULT_VERBOSITY=0;; 2671 no) AM_DEFAULT_VERBOSITY=1;; 2672 *) AM_DEFAULT_VERBOSITY=1;; 2673esac 2674am_make=${MAKE-make} 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2676$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2677if ${am_cv_make_support_nested_variables+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 if $as_echo 'TRUE=$(BAR$(V)) 2681BAR0=false 2682BAR1=true 2683V=1 2684am__doit: 2685 @$(TRUE) 2686.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2687 am_cv_make_support_nested_variables=yes 2688else 2689 am_cv_make_support_nested_variables=no 2690fi 2691fi 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2693$as_echo "$am_cv_make_support_nested_variables" >&6; } 2694if test $am_cv_make_support_nested_variables = yes; then 2695 AM_V='$(V)' 2696 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2697else 2698 AM_V=$AM_DEFAULT_VERBOSITY 2699 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2700fi 2701AM_BACKSLASH='\' 2702 2703if test "`cd $srcdir && pwd`" != "`pwd`"; then 2704 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2705 # is not polluted with repeated "-I." 2706 am__isrc=' -I$(srcdir)' 2707 # test to see if srcdir already configured 2708 if test -f $srcdir/config.status; then 2709 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2710 fi 2711fi 2712 2713# test whether we have cygpath 2714if test -z "$CYGPATH_W"; then 2715 if (cygpath --version) >/dev/null 2>/dev/null; then 2716 CYGPATH_W='cygpath -w' 2717 else 2718 CYGPATH_W=echo 2719 fi 2720fi 2721 2722 2723# Define the identity of the package. 2724 PACKAGE='libXrender' 2725 VERSION='0.9.9' 2726 2727 2728cat >>confdefs.h <<_ACEOF 2729#define PACKAGE "$PACKAGE" 2730_ACEOF 2731 2732 2733cat >>confdefs.h <<_ACEOF 2734#define VERSION "$VERSION" 2735_ACEOF 2736 2737# Some tools Automake needs. 2738 2739ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2740 2741 2742AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2743 2744 2745AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2746 2747 2748AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2749 2750 2751MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2752 2753# For better backward compatibility. To be removed once Automake 1.9.x 2754# dies out for good. For more background, see: 2755# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2756# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2757mkdir_p='$(MKDIR_P)' 2758 2759# We need awk for the "check" target (and possibly the TAP driver). The 2760# system "awk" is bad on some platforms. 2761# Always define AMTAR for backward compatibility. Yes, it's still used 2762# in the wild :-( We should find a proper way to deprecate it ... 2763AMTAR='$${TAR-tar}' 2764 2765 2766# We'll loop over all known methods to create a tar archive until one works. 2767_am_tools='gnutar pax cpio none' 2768 2769am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2770 2771 2772 2773 2774 2775 2776# POSIX will say in a future version that running "rm -f" with no argument 2777# is OK; and we want to be able to make that assumption in our Makefile 2778# recipes. So use an aggressive probe to check that the usage we want is 2779# actually supported "in the wild" to an acceptable degree. 2780# See automake bug#10828. 2781# To make any issue more visible, cause the running configure to be aborted 2782# by default if the 'rm' program in use doesn't match our expectations; the 2783# user can still override this though. 2784if rm -f && rm -fr && rm -rf; then : OK; else 2785 cat >&2 <<'END' 2786Oops! 2787 2788Your 'rm' program seems unable to run without file operands specified 2789on the command line, even when the '-f' option is present. This is contrary 2790to the behaviour of most rm programs out there, and not conforming with 2791the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2792 2793Please tell bug-automake@gnu.org about your system, including the value 2794of your $PATH and any error possibly output before this message. This 2795can help us improve future automake versions. 2796 2797END 2798 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2799 echo 'Configuration will proceed anyway, since you have set the' >&2 2800 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2801 echo >&2 2802 else 2803 cat >&2 <<'END' 2804Aborting the configuration process, to ensure you take notice of the issue. 2805 2806You can download and install GNU coreutils to get an 'rm' implementation 2807that behaves properly: <http://www.gnu.org/software/coreutils/>. 2808 2809If you want to complete the configuration process using your problematic 2810'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2811to "yes", and re-run configure. 2812 2813END 2814 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2815 fi 2816fi 2817 2818 2819# Initialize libtool 2820case `pwd` in 2821 *\ * | *\ *) 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2823$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2824esac 2825 2826 2827 2828macro_version='2.4.2' 2829macro_revision='1.3337' 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843ltmain="$ac_aux_dir/ltmain.sh" 2844 2845# Make sure we can run config.sub. 2846$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2847 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2848 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2850$as_echo_n "checking build system type... " >&6; } 2851if ${ac_cv_build+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 ac_build_alias=$build_alias 2855test "x$ac_build_alias" = x && 2856 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2857test "x$ac_build_alias" = x && 2858 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2859ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2861 2862fi 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2864$as_echo "$ac_cv_build" >&6; } 2865case $ac_cv_build in 2866*-*-*) ;; 2867*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2868esac 2869build=$ac_cv_build 2870ac_save_IFS=$IFS; IFS='-' 2871set x $ac_cv_build 2872shift 2873build_cpu=$1 2874build_vendor=$2 2875shift; shift 2876# Remember, the first character of IFS is used to create $*, 2877# except with old shells: 2878build_os=$* 2879IFS=$ac_save_IFS 2880case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2881 2882 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2884$as_echo_n "checking host system type... " >&6; } 2885if ${ac_cv_host+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887else 2888 if test "x$host_alias" = x; then 2889 ac_cv_host=$ac_cv_build 2890else 2891 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2892 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2893fi 2894 2895fi 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2897$as_echo "$ac_cv_host" >&6; } 2898case $ac_cv_host in 2899*-*-*) ;; 2900*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2901esac 2902host=$ac_cv_host 2903ac_save_IFS=$IFS; IFS='-' 2904set x $ac_cv_host 2905shift 2906host_cpu=$1 2907host_vendor=$2 2908shift; shift 2909# Remember, the first character of IFS is used to create $*, 2910# except with old shells: 2911host_os=$* 2912IFS=$ac_save_IFS 2913case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2914 2915 2916# Backslashify metacharacters that are still active within 2917# double-quoted strings. 2918sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2919 2920# Same as above, but do not quote variable references. 2921double_quote_subst='s/\(["`\\]\)/\\\1/g' 2922 2923# Sed substitution to delay expansion of an escaped shell variable in a 2924# double_quote_subst'ed string. 2925delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2926 2927# Sed substitution to delay expansion of an escaped single quote. 2928delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2929 2930# Sed substitution to avoid accidental globbing in evaled expressions 2931no_glob_subst='s/\*/\\\*/g' 2932 2933ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2934ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2935ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2936 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2938$as_echo_n "checking how to print strings... " >&6; } 2939# Test print first, because it will be a builtin if present. 2940if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2941 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2942 ECHO='print -r --' 2943elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2944 ECHO='printf %s\n' 2945else 2946 # Use this function as a fallback that always works. 2947 func_fallback_echo () 2948 { 2949 eval 'cat <<_LTECHO_EOF 2950$1 2951_LTECHO_EOF' 2952 } 2953 ECHO='func_fallback_echo' 2954fi 2955 2956# func_echo_all arg... 2957# Invoke $ECHO with all args, space-separated. 2958func_echo_all () 2959{ 2960 $ECHO "" 2961} 2962 2963case "$ECHO" in 2964 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2965$as_echo "printf" >&6; } ;; 2966 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2967$as_echo "print -r" >&6; } ;; 2968 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2969$as_echo "cat" >&6; } ;; 2970esac 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985DEPDIR="${am__leading_dot}deps" 2986 2987ac_config_commands="$ac_config_commands depfiles" 2988 2989 2990am_make=${MAKE-make} 2991cat > confinc << 'END' 2992am__doit: 2993 @echo this is the am__doit target 2994.PHONY: am__doit 2995END 2996# If we don't find an include directive, just comment out the code. 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2998$as_echo_n "checking for style of include used by $am_make... " >&6; } 2999am__include="#" 3000am__quote= 3001_am_result=none 3002# First try GNU make style include. 3003echo "include confinc" > confmf 3004# Ignore all kinds of additional output from 'make'. 3005case `$am_make -s -f confmf 2> /dev/null` in #( 3006*the\ am__doit\ target*) 3007 am__include=include 3008 am__quote= 3009 _am_result=GNU 3010 ;; 3011esac 3012# Now try BSD make style include. 3013if test "$am__include" = "#"; then 3014 echo '.include "confinc"' > confmf 3015 case `$am_make -s -f confmf 2> /dev/null` in #( 3016 *the\ am__doit\ target*) 3017 am__include=.include 3018 am__quote="\"" 3019 _am_result=BSD 3020 ;; 3021 esac 3022fi 3023 3024 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3026$as_echo "$_am_result" >&6; } 3027rm -f confinc confmf 3028 3029# Check whether --enable-dependency-tracking was given. 3030if test "${enable_dependency_tracking+set}" = set; then : 3031 enableval=$enable_dependency_tracking; 3032fi 3033 3034if test "x$enable_dependency_tracking" != xno; then 3035 am_depcomp="$ac_aux_dir/depcomp" 3036 AMDEPBACKSLASH='\' 3037 am__nodep='_no' 3038fi 3039 if test "x$enable_dependency_tracking" != xno; then 3040 AMDEP_TRUE= 3041 AMDEP_FALSE='#' 3042else 3043 AMDEP_TRUE='#' 3044 AMDEP_FALSE= 3045fi 3046 3047 3048ac_ext=c 3049ac_cpp='$CPP $CPPFLAGS' 3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3052ac_compiler_gnu=$ac_cv_c_compiler_gnu 3053if test -n "$ac_tool_prefix"; then 3054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3055set dummy ${ac_tool_prefix}gcc; ac_word=$2 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057$as_echo_n "checking for $ac_word... " >&6; } 3058if ${ac_cv_prog_CC+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 if test -n "$CC"; then 3062 ac_cv_prog_CC="$CC" # Let the user override the test. 3063else 3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065for as_dir in $PATH 3066do 3067 IFS=$as_save_IFS 3068 test -z "$as_dir" && as_dir=. 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3071 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076 done 3077IFS=$as_save_IFS 3078 3079fi 3080fi 3081CC=$ac_cv_prog_CC 3082if test -n "$CC"; then 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3084$as_echo "$CC" >&6; } 3085else 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3087$as_echo "no" >&6; } 3088fi 3089 3090 3091fi 3092if test -z "$ac_cv_prog_CC"; then 3093 ac_ct_CC=$CC 3094 # Extract the first word of "gcc", so it can be a program name with args. 3095set dummy gcc; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_ac_ct_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$ac_ct_CC"; then 3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_ac_ct_CC="gcc" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121ac_ct_CC=$ac_cv_prog_ac_ct_CC 3122if test -n "$ac_ct_CC"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3124$as_echo "$ac_ct_CC" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 if test "x$ac_ct_CC" = x; then 3131 CC="" 3132 else 3133 case $cross_compiling:$ac_tool_warned in 3134yes:) 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3137ac_tool_warned=yes ;; 3138esac 3139 CC=$ac_ct_CC 3140 fi 3141else 3142 CC="$ac_cv_prog_CC" 3143fi 3144 3145if test -z "$CC"; then 3146 if test -n "$ac_tool_prefix"; then 3147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3148set dummy ${ac_tool_prefix}cc; ac_word=$2 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3150$as_echo_n "checking for $ac_word... " >&6; } 3151if ${ac_cv_prog_CC+:} false; then : 3152 $as_echo_n "(cached) " >&6 3153else 3154 if test -n "$CC"; then 3155 ac_cv_prog_CC="$CC" # Let the user override the test. 3156else 3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3158for as_dir in $PATH 3159do 3160 IFS=$as_save_IFS 3161 test -z "$as_dir" && as_dir=. 3162 for ac_exec_ext in '' $ac_executable_extensions; do 3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3164 ac_cv_prog_CC="${ac_tool_prefix}cc" 3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3166 break 2 3167 fi 3168done 3169 done 3170IFS=$as_save_IFS 3171 3172fi 3173fi 3174CC=$ac_cv_prog_CC 3175if test -n "$CC"; then 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3177$as_echo "$CC" >&6; } 3178else 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3180$as_echo "no" >&6; } 3181fi 3182 3183 3184 fi 3185fi 3186if test -z "$CC"; then 3187 # Extract the first word of "cc", so it can be a program name with args. 3188set dummy cc; ac_word=$2 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190$as_echo_n "checking for $ac_word... " >&6; } 3191if ${ac_cv_prog_CC+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 if test -n "$CC"; then 3195 ac_cv_prog_CC="$CC" # Let the user override the test. 3196else 3197 ac_prog_rejected=no 3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3199for as_dir in $PATH 3200do 3201 IFS=$as_save_IFS 3202 test -z "$as_dir" && as_dir=. 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3205 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3206 ac_prog_rejected=yes 3207 continue 3208 fi 3209 ac_cv_prog_CC="cc" 3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3211 break 2 3212 fi 3213done 3214 done 3215IFS=$as_save_IFS 3216 3217if test $ac_prog_rejected = yes; then 3218 # We found a bogon in the path, so make sure we never use it. 3219 set dummy $ac_cv_prog_CC 3220 shift 3221 if test $# != 0; then 3222 # We chose a different compiler from the bogus one. 3223 # However, it has the same basename, so the bogon will be chosen 3224 # first if we set CC to just the basename; use the full file name. 3225 shift 3226 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3227 fi 3228fi 3229fi 3230fi 3231CC=$ac_cv_prog_CC 3232if test -n "$CC"; then 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3234$as_echo "$CC" >&6; } 3235else 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3237$as_echo "no" >&6; } 3238fi 3239 3240 3241fi 3242if test -z "$CC"; then 3243 if test -n "$ac_tool_prefix"; then 3244 for ac_prog in cl.exe 3245 do 3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3247set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3249$as_echo_n "checking for $ac_word... " >&6; } 3250if ${ac_cv_prog_CC+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 if test -n "$CC"; then 3254 ac_cv_prog_CC="$CC" # Let the user override the test. 3255else 3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3257for as_dir in $PATH 3258do 3259 IFS=$as_save_IFS 3260 test -z "$as_dir" && as_dir=. 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3265 break 2 3266 fi 3267done 3268 done 3269IFS=$as_save_IFS 3270 3271fi 3272fi 3273CC=$ac_cv_prog_CC 3274if test -n "$CC"; then 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3276$as_echo "$CC" >&6; } 3277else 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280fi 3281 3282 3283 test -n "$CC" && break 3284 done 3285fi 3286if test -z "$CC"; then 3287 ac_ct_CC=$CC 3288 for ac_prog in cl.exe 3289do 3290 # Extract the first word of "$ac_prog", so it can be a program name with args. 3291set dummy $ac_prog; ac_word=$2 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3293$as_echo_n "checking for $ac_word... " >&6; } 3294if ${ac_cv_prog_ac_ct_CC+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296else 3297 if test -n "$ac_ct_CC"; then 3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3299else 3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH 3302do 3303 IFS=$as_save_IFS 3304 test -z "$as_dir" && as_dir=. 3305 for ac_exec_ext in '' $ac_executable_extensions; do 3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3307 ac_cv_prog_ac_ct_CC="$ac_prog" 3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3309 break 2 3310 fi 3311done 3312 done 3313IFS=$as_save_IFS 3314 3315fi 3316fi 3317ac_ct_CC=$ac_cv_prog_ac_ct_CC 3318if test -n "$ac_ct_CC"; then 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3320$as_echo "$ac_ct_CC" >&6; } 3321else 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3323$as_echo "no" >&6; } 3324fi 3325 3326 3327 test -n "$ac_ct_CC" && break 3328done 3329 3330 if test "x$ac_ct_CC" = x; then 3331 CC="" 3332 else 3333 case $cross_compiling:$ac_tool_warned in 3334yes:) 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3337ac_tool_warned=yes ;; 3338esac 3339 CC=$ac_ct_CC 3340 fi 3341fi 3342 3343fi 3344 3345 3346test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3348as_fn_error $? "no acceptable C compiler found in \$PATH 3349See \`config.log' for more details" "$LINENO" 5; } 3350 3351# Provide some information about the compiler. 3352$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3353set X $ac_compile 3354ac_compiler=$2 3355for ac_option in --version -v -V -qversion; do 3356 { { ac_try="$ac_compiler $ac_option >&5" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3362$as_echo "$ac_try_echo"; } >&5 3363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3364 ac_status=$? 3365 if test -s conftest.err; then 3366 sed '10a\ 3367... rest of stderr output deleted ... 3368 10q' conftest.err >conftest.er1 3369 cat conftest.er1 >&5 3370 fi 3371 rm -f conftest.er1 conftest.err 3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3373 test $ac_status = 0; } 3374done 3375 3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377/* end confdefs.h. */ 3378 3379int 3380main () 3381{ 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387ac_clean_files_save=$ac_clean_files 3388ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3389# Try to create an executable without -o first, disregard a.out. 3390# It will help us diagnose broken compilers, and finding out an intuition 3391# of exeext. 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3393$as_echo_n "checking whether the C compiler works... " >&6; } 3394ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3395 3396# The possible output files: 3397ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3398 3399ac_rmfiles= 3400for ac_file in $ac_files 3401do 3402 case $ac_file in 3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3404 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3405 esac 3406done 3407rm -f $ac_rmfiles 3408 3409if { { ac_try="$ac_link_default" 3410case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413esac 3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3415$as_echo "$ac_try_echo"; } >&5 3416 (eval "$ac_link_default") 2>&5 3417 ac_status=$? 3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3419 test $ac_status = 0; }; then : 3420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3421# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3422# in a Makefile. We should not override ac_cv_exeext if it was cached, 3423# so that the user can short-circuit this test for compilers unknown to 3424# Autoconf. 3425for ac_file in $ac_files '' 3426do 3427 test -f "$ac_file" || continue 3428 case $ac_file in 3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3430 ;; 3431 [ab].out ) 3432 # We found the default executable, but exeext='' is most 3433 # certainly right. 3434 break;; 3435 *.* ) 3436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3437 then :; else 3438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3439 fi 3440 # We set ac_cv_exeext here because the later test for it is not 3441 # safe: cross compilers may not add the suffix if given an `-o' 3442 # argument, so we may need to know it at that point already. 3443 # Even if this section looks crufty: it has the advantage of 3444 # actually working. 3445 break;; 3446 * ) 3447 break;; 3448 esac 3449done 3450test "$ac_cv_exeext" = no && ac_cv_exeext= 3451 3452else 3453 ac_file='' 3454fi 3455if test -z "$ac_file"; then : 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3457$as_echo "no" >&6; } 3458$as_echo "$as_me: failed program was:" >&5 3459sed 's/^/| /' conftest.$ac_ext >&5 3460 3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3463as_fn_error 77 "C compiler cannot create executables 3464See \`config.log' for more details" "$LINENO" 5; } 3465else 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3467$as_echo "yes" >&6; } 3468fi 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3470$as_echo_n "checking for C compiler default output file name... " >&6; } 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3472$as_echo "$ac_file" >&6; } 3473ac_exeext=$ac_cv_exeext 3474 3475rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3476ac_clean_files=$ac_clean_files_save 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3478$as_echo_n "checking for suffix of executables... " >&6; } 3479if { { ac_try="$ac_link" 3480case "(($ac_try" in 3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *) ac_try_echo=$ac_try;; 3483esac 3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3485$as_echo "$ac_try_echo"; } >&5 3486 (eval "$ac_link") 2>&5 3487 ac_status=$? 3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3489 test $ac_status = 0; }; then : 3490 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3491# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3492# work properly (i.e., refer to `conftest.exe'), while it won't with 3493# `rm'. 3494for ac_file in conftest.exe conftest conftest.*; do 3495 test -f "$ac_file" || continue 3496 case $ac_file in 3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3499 break;; 3500 * ) break;; 3501 esac 3502done 3503else 3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3506as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3507See \`config.log' for more details" "$LINENO" 5; } 3508fi 3509rm -f conftest conftest$ac_cv_exeext 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3511$as_echo "$ac_cv_exeext" >&6; } 3512 3513rm -f conftest.$ac_ext 3514EXEEXT=$ac_cv_exeext 3515ac_exeext=$EXEEXT 3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518#include <stdio.h> 3519int 3520main () 3521{ 3522FILE *f = fopen ("conftest.out", "w"); 3523 return ferror (f) || fclose (f) != 0; 3524 3525 ; 3526 return 0; 3527} 3528_ACEOF 3529ac_clean_files="$ac_clean_files conftest.out" 3530# Check that the compiler produces executables we can run. If not, either 3531# the compiler is broken, or we cross compile. 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3533$as_echo_n "checking whether we are cross compiling... " >&6; } 3534if test "$cross_compiling" != yes; then 3535 { { ac_try="$ac_link" 3536case "(($ac_try" in 3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3538 *) ac_try_echo=$ac_try;; 3539esac 3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3541$as_echo "$ac_try_echo"; } >&5 3542 (eval "$ac_link") 2>&5 3543 ac_status=$? 3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3545 test $ac_status = 0; } 3546 if { ac_try='./conftest$ac_cv_exeext' 3547 { { case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3552$as_echo "$ac_try_echo"; } >&5 3553 (eval "$ac_try") 2>&5 3554 ac_status=$? 3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3556 test $ac_status = 0; }; }; then 3557 cross_compiling=no 3558 else 3559 if test "$cross_compiling" = maybe; then 3560 cross_compiling=yes 3561 else 3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3564as_fn_error $? "cannot run C compiled programs. 3565If you meant to cross compile, use \`--host'. 3566See \`config.log' for more details" "$LINENO" 5; } 3567 fi 3568 fi 3569fi 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3571$as_echo "$cross_compiling" >&6; } 3572 3573rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3574ac_clean_files=$ac_clean_files_save 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3576$as_echo_n "checking for suffix of object files... " >&6; } 3577if ${ac_cv_objext+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3581/* end confdefs.h. */ 3582 3583int 3584main () 3585{ 3586 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591rm -f conftest.o conftest.obj 3592if { { ac_try="$ac_compile" 3593case "(($ac_try" in 3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3595 *) ac_try_echo=$ac_try;; 3596esac 3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3598$as_echo "$ac_try_echo"; } >&5 3599 (eval "$ac_compile") 2>&5 3600 ac_status=$? 3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3602 test $ac_status = 0; }; then : 3603 for ac_file in conftest.o conftest.obj conftest.*; do 3604 test -f "$ac_file" || continue; 3605 case $ac_file in 3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3608 break;; 3609 esac 3610done 3611else 3612 $as_echo "$as_me: failed program was:" >&5 3613sed 's/^/| /' conftest.$ac_ext >&5 3614 3615{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3617as_fn_error $? "cannot compute suffix of object files: cannot compile 3618See \`config.log' for more details" "$LINENO" 5; } 3619fi 3620rm -f conftest.$ac_cv_objext conftest.$ac_ext 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3623$as_echo "$ac_cv_objext" >&6; } 3624OBJEXT=$ac_cv_objext 3625ac_objext=$OBJEXT 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3627$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3628if ${ac_cv_c_compiler_gnu+:} false; then : 3629 $as_echo_n "(cached) " >&6 3630else 3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3632/* end confdefs.h. */ 3633 3634int 3635main () 3636{ 3637#ifndef __GNUC__ 3638 choke me 3639#endif 3640 3641 ; 3642 return 0; 3643} 3644_ACEOF 3645if ac_fn_c_try_compile "$LINENO"; then : 3646 ac_compiler_gnu=yes 3647else 3648 ac_compiler_gnu=no 3649fi 3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3651ac_cv_c_compiler_gnu=$ac_compiler_gnu 3652 3653fi 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3655$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3656if test $ac_compiler_gnu = yes; then 3657 GCC=yes 3658else 3659 GCC= 3660fi 3661ac_test_CFLAGS=${CFLAGS+set} 3662ac_save_CFLAGS=$CFLAGS 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3664$as_echo_n "checking whether $CC accepts -g... " >&6; } 3665if ${ac_cv_prog_cc_g+:} false; then : 3666 $as_echo_n "(cached) " >&6 3667else 3668 ac_save_c_werror_flag=$ac_c_werror_flag 3669 ac_c_werror_flag=yes 3670 ac_cv_prog_cc_g=no 3671 CFLAGS="-g" 3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674 3675int 3676main () 3677{ 3678 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683if ac_fn_c_try_compile "$LINENO"; then : 3684 ac_cv_prog_cc_g=yes 3685else 3686 CFLAGS="" 3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3688/* end confdefs.h. */ 3689 3690int 3691main () 3692{ 3693 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698if ac_fn_c_try_compile "$LINENO"; then : 3699 3700else 3701 ac_c_werror_flag=$ac_save_c_werror_flag 3702 CFLAGS="-g" 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705 3706int 3707main () 3708{ 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714if ac_fn_c_try_compile "$LINENO"; then : 3715 ac_cv_prog_cc_g=yes 3716fi 3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718fi 3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3720fi 3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3722 ac_c_werror_flag=$ac_save_c_werror_flag 3723fi 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3725$as_echo "$ac_cv_prog_cc_g" >&6; } 3726if test "$ac_test_CFLAGS" = set; then 3727 CFLAGS=$ac_save_CFLAGS 3728elif test $ac_cv_prog_cc_g = yes; then 3729 if test "$GCC" = yes; then 3730 CFLAGS="-g -O2" 3731 else 3732 CFLAGS="-g" 3733 fi 3734else 3735 if test "$GCC" = yes; then 3736 CFLAGS="-O2" 3737 else 3738 CFLAGS= 3739 fi 3740fi 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3742$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3743if ${ac_cv_prog_cc_c89+:} false; then : 3744 $as_echo_n "(cached) " >&6 3745else 3746 ac_cv_prog_cc_c89=no 3747ac_save_CC=$CC 3748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749/* end confdefs.h. */ 3750#include <stdarg.h> 3751#include <stdio.h> 3752struct stat; 3753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3754struct buf { int x; }; 3755FILE * (*rcsopen) (struct buf *, struct stat *, int); 3756static char *e (p, i) 3757 char **p; 3758 int i; 3759{ 3760 return p[i]; 3761} 3762static char *f (char * (*g) (char **, int), char **p, ...) 3763{ 3764 char *s; 3765 va_list v; 3766 va_start (v,p); 3767 s = g (p, va_arg (v,int)); 3768 va_end (v); 3769 return s; 3770} 3771 3772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3773 function prototypes and stuff, but not '\xHH' hex character constants. 3774 These don't provoke an error unfortunately, instead are silently treated 3775 as 'x'. The following induces an error, until -std is added to get 3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3777 array size at least. It's necessary to write '\x00'==0 to get something 3778 that's true only with -std. */ 3779int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3780 3781/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3782 inside strings and character constants. */ 3783#define FOO(x) 'x' 3784int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3785 3786int test (int i, double x); 3787struct s1 {int (*f) (int a);}; 3788struct s2 {int (*f) (double a);}; 3789int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3790int argc; 3791char **argv; 3792int 3793main () 3794{ 3795return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3802do 3803 CC="$ac_save_CC $ac_arg" 3804 if ac_fn_c_try_compile "$LINENO"; then : 3805 ac_cv_prog_cc_c89=$ac_arg 3806fi 3807rm -f core conftest.err conftest.$ac_objext 3808 test "x$ac_cv_prog_cc_c89" != "xno" && break 3809done 3810rm -f conftest.$ac_ext 3811CC=$ac_save_CC 3812 3813fi 3814# AC_CACHE_VAL 3815case "x$ac_cv_prog_cc_c89" in 3816 x) 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3818$as_echo "none needed" >&6; } ;; 3819 xno) 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3821$as_echo "unsupported" >&6; } ;; 3822 *) 3823 CC="$CC $ac_cv_prog_cc_c89" 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3825$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3826esac 3827if test "x$ac_cv_prog_cc_c89" != xno; then : 3828 3829fi 3830 3831ac_ext=c 3832ac_cpp='$CPP $CPPFLAGS' 3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836 3837ac_ext=c 3838ac_cpp='$CPP $CPPFLAGS' 3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3841ac_compiler_gnu=$ac_cv_c_compiler_gnu 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3843$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3844if ${am_cv_prog_cc_c_o+:} false; then : 3845 $as_echo_n "(cached) " >&6 3846else 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849 3850int 3851main () 3852{ 3853 3854 ; 3855 return 0; 3856} 3857_ACEOF 3858 # Make sure it works both with $CC and with simple cc. 3859 # Following AC_PROG_CC_C_O, we do the test twice because some 3860 # compilers refuse to overwrite an existing .o file with -o, 3861 # though they will create one. 3862 am_cv_prog_cc_c_o=yes 3863 for am_i in 1 2; do 3864 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3865 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3866 ac_status=$? 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); } \ 3869 && test -f conftest2.$ac_objext; then 3870 : OK 3871 else 3872 am_cv_prog_cc_c_o=no 3873 break 3874 fi 3875 done 3876 rm -f core conftest* 3877 unset am_i 3878fi 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3880$as_echo "$am_cv_prog_cc_c_o" >&6; } 3881if test "$am_cv_prog_cc_c_o" != yes; then 3882 # Losing compiler, so override with the script. 3883 # FIXME: It is wrong to rewrite CC. 3884 # But if we don't then we get into trouble of one sort or another. 3885 # A longer-term fix would be to have automake use am__CC in this case, 3886 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3887 CC="$am_aux_dir/compile $CC" 3888fi 3889ac_ext=c 3890ac_cpp='$CPP $CPPFLAGS' 3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3893ac_compiler_gnu=$ac_cv_c_compiler_gnu 3894 3895 3896depcc="$CC" am_compiler_list= 3897 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3899$as_echo_n "checking dependency style of $depcc... " >&6; } 3900if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3901 $as_echo_n "(cached) " >&6 3902else 3903 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3904 # We make a subdir and do the tests there. Otherwise we can end up 3905 # making bogus files that we don't know about and never remove. For 3906 # instance it was reported that on HP-UX the gcc test will end up 3907 # making a dummy file named 'D' -- because '-MD' means "put the output 3908 # in D". 3909 rm -rf conftest.dir 3910 mkdir conftest.dir 3911 # Copy depcomp to subdir because otherwise we won't find it if we're 3912 # using a relative directory. 3913 cp "$am_depcomp" conftest.dir 3914 cd conftest.dir 3915 # We will build objects and dependencies in a subdirectory because 3916 # it helps to detect inapplicable dependency modes. For instance 3917 # both Tru64's cc and ICC support -MD to output dependencies as a 3918 # side effect of compilation, but ICC will put the dependencies in 3919 # the current directory while Tru64 will put them in the object 3920 # directory. 3921 mkdir sub 3922 3923 am_cv_CC_dependencies_compiler_type=none 3924 if test "$am_compiler_list" = ""; then 3925 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3926 fi 3927 am__universal=false 3928 case " $depcc " in #( 3929 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3930 esac 3931 3932 for depmode in $am_compiler_list; do 3933 # Setup a source with many dependencies, because some compilers 3934 # like to wrap large dependency lists on column 80 (with \), and 3935 # we should not choose a depcomp mode which is confused by this. 3936 # 3937 # We need to recreate these files for each test, as the compiler may 3938 # overwrite some of them when testing with obscure command lines. 3939 # This happens at least with the AIX C compiler. 3940 : > sub/conftest.c 3941 for i in 1 2 3 4 5 6; do 3942 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3943 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3944 # Solaris 10 /bin/sh. 3945 echo '/* dummy */' > sub/conftst$i.h 3946 done 3947 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3948 3949 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3950 # mode. It turns out that the SunPro C++ compiler does not properly 3951 # handle '-M -o', and we need to detect this. Also, some Intel 3952 # versions had trouble with output in subdirs. 3953 am__obj=sub/conftest.${OBJEXT-o} 3954 am__minus_obj="-o $am__obj" 3955 case $depmode in 3956 gcc) 3957 # This depmode causes a compiler race in universal mode. 3958 test "$am__universal" = false || continue 3959 ;; 3960 nosideeffect) 3961 # After this tag, mechanisms are not by side-effect, so they'll 3962 # only be used when explicitly requested. 3963 if test "x$enable_dependency_tracking" = xyes; then 3964 continue 3965 else 3966 break 3967 fi 3968 ;; 3969 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3970 # This compiler won't grok '-c -o', but also, the minuso test has 3971 # not run yet. These depmodes are late enough in the game, and 3972 # so weak that their functioning should not be impacted. 3973 am__obj=conftest.${OBJEXT-o} 3974 am__minus_obj= 3975 ;; 3976 none) break ;; 3977 esac 3978 if depmode=$depmode \ 3979 source=sub/conftest.c object=$am__obj \ 3980 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3981 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3982 >/dev/null 2>conftest.err && 3983 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3984 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3985 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3986 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3987 # icc doesn't choke on unknown options, it will just issue warnings 3988 # or remarks (even with -Werror). So we grep stderr for any message 3989 # that says an option was ignored or not supported. 3990 # When given -MP, icc 7.0 and 7.1 complain thusly: 3991 # icc: Command line warning: ignoring option '-M'; no argument required 3992 # The diagnosis changed in icc 8.0: 3993 # icc: Command line remark: option '-MP' not supported 3994 if (grep 'ignoring option' conftest.err || 3995 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3996 am_cv_CC_dependencies_compiler_type=$depmode 3997 break 3998 fi 3999 fi 4000 done 4001 4002 cd .. 4003 rm -rf conftest.dir 4004else 4005 am_cv_CC_dependencies_compiler_type=none 4006fi 4007 4008fi 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4010$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4011CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4012 4013 if 4014 test "x$enable_dependency_tracking" != xno \ 4015 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4016 am__fastdepCC_TRUE= 4017 am__fastdepCC_FALSE='#' 4018else 4019 am__fastdepCC_TRUE='#' 4020 am__fastdepCC_FALSE= 4021fi 4022 4023 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4025$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4026if ${ac_cv_path_SED+:} false; then : 4027 $as_echo_n "(cached) " >&6 4028else 4029 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4030 for ac_i in 1 2 3 4 5 6 7; do 4031 ac_script="$ac_script$as_nl$ac_script" 4032 done 4033 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4034 { ac_script=; unset ac_script;} 4035 if test -z "$SED"; then 4036 ac_path_SED_found=false 4037 # Loop through the user's path and test for each of PROGNAME-LIST 4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4039for as_dir in $PATH 4040do 4041 IFS=$as_save_IFS 4042 test -z "$as_dir" && as_dir=. 4043 for ac_prog in sed gsed; do 4044 for ac_exec_ext in '' $ac_executable_extensions; do 4045 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4046 as_fn_executable_p "$ac_path_SED" || continue 4047# Check for GNU ac_path_SED and select it if it is found. 4048 # Check for GNU $ac_path_SED 4049case `"$ac_path_SED" --version 2>&1` in 4050*GNU*) 4051 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4052*) 4053 ac_count=0 4054 $as_echo_n 0123456789 >"conftest.in" 4055 while : 4056 do 4057 cat "conftest.in" "conftest.in" >"conftest.tmp" 4058 mv "conftest.tmp" "conftest.in" 4059 cp "conftest.in" "conftest.nl" 4060 $as_echo '' >> "conftest.nl" 4061 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4063 as_fn_arith $ac_count + 1 && ac_count=$as_val 4064 if test $ac_count -gt ${ac_path_SED_max-0}; then 4065 # Best one so far, save it but keep looking for a better one 4066 ac_cv_path_SED="$ac_path_SED" 4067 ac_path_SED_max=$ac_count 4068 fi 4069 # 10*(2^10) chars as input seems more than enough 4070 test $ac_count -gt 10 && break 4071 done 4072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4073esac 4074 4075 $ac_path_SED_found && break 3 4076 done 4077 done 4078 done 4079IFS=$as_save_IFS 4080 if test -z "$ac_cv_path_SED"; then 4081 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4082 fi 4083else 4084 ac_cv_path_SED=$SED 4085fi 4086 4087fi 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4089$as_echo "$ac_cv_path_SED" >&6; } 4090 SED="$ac_cv_path_SED" 4091 rm -f conftest.sed 4092 4093test -z "$SED" && SED=sed 4094Xsed="$SED -e 1s/^X//" 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4107$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4108if ${ac_cv_path_GREP+:} false; then : 4109 $as_echo_n "(cached) " >&6 4110else 4111 if test -z "$GREP"; then 4112 ac_path_GREP_found=false 4113 # Loop through the user's path and test for each of PROGNAME-LIST 4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4115for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4116do 4117 IFS=$as_save_IFS 4118 test -z "$as_dir" && as_dir=. 4119 for ac_prog in grep ggrep; do 4120 for ac_exec_ext in '' $ac_executable_extensions; do 4121 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4122 as_fn_executable_p "$ac_path_GREP" || continue 4123# Check for GNU ac_path_GREP and select it if it is found. 4124 # Check for GNU $ac_path_GREP 4125case `"$ac_path_GREP" --version 2>&1` in 4126*GNU*) 4127 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4128*) 4129 ac_count=0 4130 $as_echo_n 0123456789 >"conftest.in" 4131 while : 4132 do 4133 cat "conftest.in" "conftest.in" >"conftest.tmp" 4134 mv "conftest.tmp" "conftest.in" 4135 cp "conftest.in" "conftest.nl" 4136 $as_echo 'GREP' >> "conftest.nl" 4137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4139 as_fn_arith $ac_count + 1 && ac_count=$as_val 4140 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4141 # Best one so far, save it but keep looking for a better one 4142 ac_cv_path_GREP="$ac_path_GREP" 4143 ac_path_GREP_max=$ac_count 4144 fi 4145 # 10*(2^10) chars as input seems more than enough 4146 test $ac_count -gt 10 && break 4147 done 4148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4149esac 4150 4151 $ac_path_GREP_found && break 3 4152 done 4153 done 4154 done 4155IFS=$as_save_IFS 4156 if test -z "$ac_cv_path_GREP"; then 4157 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4158 fi 4159else 4160 ac_cv_path_GREP=$GREP 4161fi 4162 4163fi 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4165$as_echo "$ac_cv_path_GREP" >&6; } 4166 GREP="$ac_cv_path_GREP" 4167 4168 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4170$as_echo_n "checking for egrep... " >&6; } 4171if ${ac_cv_path_EGREP+:} false; then : 4172 $as_echo_n "(cached) " >&6 4173else 4174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4175 then ac_cv_path_EGREP="$GREP -E" 4176 else 4177 if test -z "$EGREP"; then 4178 ac_path_EGREP_found=false 4179 # Loop through the user's path and test for each of PROGNAME-LIST 4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4181for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4182do 4183 IFS=$as_save_IFS 4184 test -z "$as_dir" && as_dir=. 4185 for ac_prog in egrep; do 4186 for ac_exec_ext in '' $ac_executable_extensions; do 4187 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4188 as_fn_executable_p "$ac_path_EGREP" || continue 4189# Check for GNU ac_path_EGREP and select it if it is found. 4190 # Check for GNU $ac_path_EGREP 4191case `"$ac_path_EGREP" --version 2>&1` in 4192*GNU*) 4193 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4194*) 4195 ac_count=0 4196 $as_echo_n 0123456789 >"conftest.in" 4197 while : 4198 do 4199 cat "conftest.in" "conftest.in" >"conftest.tmp" 4200 mv "conftest.tmp" "conftest.in" 4201 cp "conftest.in" "conftest.nl" 4202 $as_echo 'EGREP' >> "conftest.nl" 4203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4205 as_fn_arith $ac_count + 1 && ac_count=$as_val 4206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4207 # Best one so far, save it but keep looking for a better one 4208 ac_cv_path_EGREP="$ac_path_EGREP" 4209 ac_path_EGREP_max=$ac_count 4210 fi 4211 # 10*(2^10) chars as input seems more than enough 4212 test $ac_count -gt 10 && break 4213 done 4214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4215esac 4216 4217 $ac_path_EGREP_found && break 3 4218 done 4219 done 4220 done 4221IFS=$as_save_IFS 4222 if test -z "$ac_cv_path_EGREP"; then 4223 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4224 fi 4225else 4226 ac_cv_path_EGREP=$EGREP 4227fi 4228 4229 fi 4230fi 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4232$as_echo "$ac_cv_path_EGREP" >&6; } 4233 EGREP="$ac_cv_path_EGREP" 4234 4235 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4237$as_echo_n "checking for fgrep... " >&6; } 4238if ${ac_cv_path_FGREP+:} false; then : 4239 $as_echo_n "(cached) " >&6 4240else 4241 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4242 then ac_cv_path_FGREP="$GREP -F" 4243 else 4244 if test -z "$FGREP"; then 4245 ac_path_FGREP_found=false 4246 # Loop through the user's path and test for each of PROGNAME-LIST 4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4249do 4250 IFS=$as_save_IFS 4251 test -z "$as_dir" && as_dir=. 4252 for ac_prog in fgrep; do 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4255 as_fn_executable_p "$ac_path_FGREP" || continue 4256# Check for GNU ac_path_FGREP and select it if it is found. 4257 # Check for GNU $ac_path_FGREP 4258case `"$ac_path_FGREP" --version 2>&1` in 4259*GNU*) 4260 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4261*) 4262 ac_count=0 4263 $as_echo_n 0123456789 >"conftest.in" 4264 while : 4265 do 4266 cat "conftest.in" "conftest.in" >"conftest.tmp" 4267 mv "conftest.tmp" "conftest.in" 4268 cp "conftest.in" "conftest.nl" 4269 $as_echo 'FGREP' >> "conftest.nl" 4270 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4272 as_fn_arith $ac_count + 1 && ac_count=$as_val 4273 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4274 # Best one so far, save it but keep looking for a better one 4275 ac_cv_path_FGREP="$ac_path_FGREP" 4276 ac_path_FGREP_max=$ac_count 4277 fi 4278 # 10*(2^10) chars as input seems more than enough 4279 test $ac_count -gt 10 && break 4280 done 4281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4282esac 4283 4284 $ac_path_FGREP_found && break 3 4285 done 4286 done 4287 done 4288IFS=$as_save_IFS 4289 if test -z "$ac_cv_path_FGREP"; then 4290 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4291 fi 4292else 4293 ac_cv_path_FGREP=$FGREP 4294fi 4295 4296 fi 4297fi 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4299$as_echo "$ac_cv_path_FGREP" >&6; } 4300 FGREP="$ac_cv_path_FGREP" 4301 4302 4303test -z "$GREP" && GREP=grep 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323# Check whether --with-gnu-ld was given. 4324if test "${with_gnu_ld+set}" = set; then : 4325 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4326else 4327 with_gnu_ld=no 4328fi 4329 4330ac_prog=ld 4331if test "$GCC" = yes; then 4332 # Check if gcc -print-prog-name=ld gives a path. 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4334$as_echo_n "checking for ld used by $CC... " >&6; } 4335 case $host in 4336 *-*-mingw*) 4337 # gcc leaves a trailing carriage return which upsets mingw 4338 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4339 *) 4340 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4341 esac 4342 case $ac_prog in 4343 # Accept absolute paths. 4344 [\\/]* | ?:[\\/]*) 4345 re_direlt='/[^/][^/]*/\.\./' 4346 # Canonicalize the pathname of ld 4347 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4348 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4349 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4350 done 4351 test -z "$LD" && LD="$ac_prog" 4352 ;; 4353 "") 4354 # If it fails, then pretend we aren't using GCC. 4355 ac_prog=ld 4356 ;; 4357 *) 4358 # If it is relative, then search for the first ld in PATH. 4359 with_gnu_ld=unknown 4360 ;; 4361 esac 4362elif test "$with_gnu_ld" = yes; then 4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4364$as_echo_n "checking for GNU ld... " >&6; } 4365else 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4367$as_echo_n "checking for non-GNU ld... " >&6; } 4368fi 4369if ${lt_cv_path_LD+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 if test -z "$LD"; then 4373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4374 for ac_dir in $PATH; do 4375 IFS="$lt_save_ifs" 4376 test -z "$ac_dir" && ac_dir=. 4377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4378 lt_cv_path_LD="$ac_dir/$ac_prog" 4379 # Check to see if the program is GNU ld. I'd rather use --version, 4380 # but apparently some variants of GNU ld only accept -v. 4381 # Break only if it was the GNU/non-GNU ld that we prefer. 4382 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4383 *GNU* | *'with BFD'*) 4384 test "$with_gnu_ld" != no && break 4385 ;; 4386 *) 4387 test "$with_gnu_ld" != yes && break 4388 ;; 4389 esac 4390 fi 4391 done 4392 IFS="$lt_save_ifs" 4393else 4394 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4395fi 4396fi 4397 4398LD="$lt_cv_path_LD" 4399if test -n "$LD"; then 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4401$as_echo "$LD" >&6; } 4402else 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4404$as_echo "no" >&6; } 4405fi 4406test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4408$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4409if ${lt_cv_prog_gnu_ld+:} false; then : 4410 $as_echo_n "(cached) " >&6 4411else 4412 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4413case `$LD -v 2>&1 </dev/null` in 4414*GNU* | *'with BFD'*) 4415 lt_cv_prog_gnu_ld=yes 4416 ;; 4417*) 4418 lt_cv_prog_gnu_ld=no 4419 ;; 4420esac 4421fi 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4423$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4424with_gnu_ld=$lt_cv_prog_gnu_ld 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4435$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4436if ${lt_cv_path_NM+:} false; then : 4437 $as_echo_n "(cached) " >&6 4438else 4439 if test -n "$NM"; then 4440 # Let the user override the test. 4441 lt_cv_path_NM="$NM" 4442else 4443 lt_nm_to_check="${ac_tool_prefix}nm" 4444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4445 lt_nm_to_check="$lt_nm_to_check nm" 4446 fi 4447 for lt_tmp_nm in $lt_nm_to_check; do 4448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4450 IFS="$lt_save_ifs" 4451 test -z "$ac_dir" && ac_dir=. 4452 tmp_nm="$ac_dir/$lt_tmp_nm" 4453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4454 # Check to see if the nm accepts a BSD-compat flag. 4455 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4456 # nm: unknown option "B" ignored 4457 # Tru64's nm complains that /dev/null is an invalid object file 4458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4459 */dev/null* | *'Invalid file or object type'*) 4460 lt_cv_path_NM="$tmp_nm -B" 4461 break 4462 ;; 4463 *) 4464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4465 */dev/null*) 4466 lt_cv_path_NM="$tmp_nm -p" 4467 break 4468 ;; 4469 *) 4470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4471 continue # so that we can try to find one that supports BSD flags 4472 ;; 4473 esac 4474 ;; 4475 esac 4476 fi 4477 done 4478 IFS="$lt_save_ifs" 4479 done 4480 : ${lt_cv_path_NM=no} 4481fi 4482fi 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4484$as_echo "$lt_cv_path_NM" >&6; } 4485if test "$lt_cv_path_NM" != "no"; then 4486 NM="$lt_cv_path_NM" 4487else 4488 # Didn't find any BSD compatible name lister, look for dumpbin. 4489 if test -n "$DUMPBIN"; then : 4490 # Let the user override the test. 4491 else 4492 if test -n "$ac_tool_prefix"; then 4493 for ac_prog in dumpbin "link -dump" 4494 do 4495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4496set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4498$as_echo_n "checking for $ac_word... " >&6; } 4499if ${ac_cv_prog_DUMPBIN+:} false; then : 4500 $as_echo_n "(cached) " >&6 4501else 4502 if test -n "$DUMPBIN"; then 4503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4504else 4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4506for as_dir in $PATH 4507do 4508 IFS=$as_save_IFS 4509 test -z "$as_dir" && as_dir=. 4510 for ac_exec_ext in '' $ac_executable_extensions; do 4511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4514 break 2 4515 fi 4516done 4517 done 4518IFS=$as_save_IFS 4519 4520fi 4521fi 4522DUMPBIN=$ac_cv_prog_DUMPBIN 4523if test -n "$DUMPBIN"; then 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4525$as_echo "$DUMPBIN" >&6; } 4526else 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4528$as_echo "no" >&6; } 4529fi 4530 4531 4532 test -n "$DUMPBIN" && break 4533 done 4534fi 4535if test -z "$DUMPBIN"; then 4536 ac_ct_DUMPBIN=$DUMPBIN 4537 for ac_prog in dumpbin "link -dump" 4538do 4539 # Extract the first word of "$ac_prog", so it can be a program name with args. 4540set dummy $ac_prog; ac_word=$2 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4542$as_echo_n "checking for $ac_word... " >&6; } 4543if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if test -n "$ac_ct_DUMPBIN"; then 4547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4548else 4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4550for as_dir in $PATH 4551do 4552 IFS=$as_save_IFS 4553 test -z "$as_dir" && as_dir=. 4554 for ac_exec_ext in '' $ac_executable_extensions; do 4555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4558 break 2 4559 fi 4560done 4561 done 4562IFS=$as_save_IFS 4563 4564fi 4565fi 4566ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4567if test -n "$ac_ct_DUMPBIN"; then 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4569$as_echo "$ac_ct_DUMPBIN" >&6; } 4570else 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4572$as_echo "no" >&6; } 4573fi 4574 4575 4576 test -n "$ac_ct_DUMPBIN" && break 4577done 4578 4579 if test "x$ac_ct_DUMPBIN" = x; then 4580 DUMPBIN=":" 4581 else 4582 case $cross_compiling:$ac_tool_warned in 4583yes:) 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4586ac_tool_warned=yes ;; 4587esac 4588 DUMPBIN=$ac_ct_DUMPBIN 4589 fi 4590fi 4591 4592 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4593 *COFF*) 4594 DUMPBIN="$DUMPBIN -symbols" 4595 ;; 4596 *) 4597 DUMPBIN=: 4598 ;; 4599 esac 4600 fi 4601 4602 if test "$DUMPBIN" != ":"; then 4603 NM="$DUMPBIN" 4604 fi 4605fi 4606test -z "$NM" && NM=nm 4607 4608 4609 4610 4611 4612 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4614$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4615if ${lt_cv_nm_interface+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617else 4618 lt_cv_nm_interface="BSD nm" 4619 echo "int some_variable = 0;" > conftest.$ac_ext 4620 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4621 (eval "$ac_compile" 2>conftest.err) 4622 cat conftest.err >&5 4623 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4624 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4625 cat conftest.err >&5 4626 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4627 cat conftest.out >&5 4628 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4629 lt_cv_nm_interface="MS dumpbin" 4630 fi 4631 rm -f conftest* 4632fi 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4634$as_echo "$lt_cv_nm_interface" >&6; } 4635 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4637$as_echo_n "checking whether ln -s works... " >&6; } 4638LN_S=$as_ln_s 4639if test "$LN_S" = "ln -s"; then 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4641$as_echo "yes" >&6; } 4642else 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4644$as_echo "no, using $LN_S" >&6; } 4645fi 4646 4647# find the maximum length of command line arguments 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4649$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4650if ${lt_cv_sys_max_cmd_len+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 i=0 4654 teststring="ABCD" 4655 4656 case $build_os in 4657 msdosdjgpp*) 4658 # On DJGPP, this test can blow up pretty badly due to problems in libc 4659 # (any single argument exceeding 2000 bytes causes a buffer overrun 4660 # during glob expansion). Even if it were fixed, the result of this 4661 # check would be larger than it should be. 4662 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4663 ;; 4664 4665 gnu*) 4666 # Under GNU Hurd, this test is not required because there is 4667 # no limit to the length of command line arguments. 4668 # Libtool will interpret -1 as no limit whatsoever 4669 lt_cv_sys_max_cmd_len=-1; 4670 ;; 4671 4672 cygwin* | mingw* | cegcc*) 4673 # On Win9x/ME, this test blows up -- it succeeds, but takes 4674 # about 5 minutes as the teststring grows exponentially. 4675 # Worse, since 9x/ME are not pre-emptively multitasking, 4676 # you end up with a "frozen" computer, even though with patience 4677 # the test eventually succeeds (with a max line length of 256k). 4678 # Instead, let's just punt: use the minimum linelength reported by 4679 # all of the supported platforms: 8192 (on NT/2K/XP). 4680 lt_cv_sys_max_cmd_len=8192; 4681 ;; 4682 4683 mint*) 4684 # On MiNT this can take a long time and run out of memory. 4685 lt_cv_sys_max_cmd_len=8192; 4686 ;; 4687 4688 amigaos*) 4689 # On AmigaOS with pdksh, this test takes hours, literally. 4690 # So we just punt and use a minimum line length of 8192. 4691 lt_cv_sys_max_cmd_len=8192; 4692 ;; 4693 4694 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4695 # This has been around since 386BSD, at least. Likely further. 4696 if test -x /sbin/sysctl; then 4697 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4698 elif test -x /usr/sbin/sysctl; then 4699 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4700 else 4701 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4702 fi 4703 # And add a safety zone 4704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4706 ;; 4707 4708 interix*) 4709 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4710 lt_cv_sys_max_cmd_len=196608 4711 ;; 4712 4713 os2*) 4714 # The test takes a long time on OS/2. 4715 lt_cv_sys_max_cmd_len=8192 4716 ;; 4717 4718 osf*) 4719 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4720 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4721 # nice to cause kernel panics so lets avoid the loop below. 4722 # First set a reasonable default. 4723 lt_cv_sys_max_cmd_len=16384 4724 # 4725 if test -x /sbin/sysconfig; then 4726 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4727 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4728 esac 4729 fi 4730 ;; 4731 sco3.2v5*) 4732 lt_cv_sys_max_cmd_len=102400 4733 ;; 4734 sysv5* | sco5v6* | sysv4.2uw2*) 4735 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4736 if test -n "$kargmax"; then 4737 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4738 else 4739 lt_cv_sys_max_cmd_len=32768 4740 fi 4741 ;; 4742 *) 4743 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4744 if test -n "$lt_cv_sys_max_cmd_len"; then 4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4747 else 4748 # Make teststring a little bigger before we do anything with it. 4749 # a 1K string should be a reasonable start. 4750 for i in 1 2 3 4 5 6 7 8 ; do 4751 teststring=$teststring$teststring 4752 done 4753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4754 # If test is not a shell built-in, we'll probably end up computing a 4755 # maximum length that is only half of the actual maximum length, but 4756 # we can't tell. 4757 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4758 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4759 test $i != 17 # 1/2 MB should be enough 4760 do 4761 i=`expr $i + 1` 4762 teststring=$teststring$teststring 4763 done 4764 # Only check the string length outside the loop. 4765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4766 teststring= 4767 # Add a significant safety factor because C++ compilers can tack on 4768 # massive amounts of additional arguments before passing them to the 4769 # linker. It appears as though 1/2 is a usable value. 4770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4771 fi 4772 ;; 4773 esac 4774 4775fi 4776 4777if test -n $lt_cv_sys_max_cmd_len ; then 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4779$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4780else 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4782$as_echo "none" >&6; } 4783fi 4784max_cmd_len=$lt_cv_sys_max_cmd_len 4785 4786 4787 4788 4789 4790 4791: ${CP="cp -f"} 4792: ${MV="mv -f"} 4793: ${RM="rm -f"} 4794 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4796$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4797# Try some XSI features 4798xsi_shell=no 4799( _lt_dummy="a/b/c" 4800 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4801 = c,a/b,b/c, \ 4802 && eval 'test $(( 1 + 1 )) -eq 2 \ 4803 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4804 && xsi_shell=yes 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4806$as_echo "$xsi_shell" >&6; } 4807 4808 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4810$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4811lt_shell_append=no 4812( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4813 >/dev/null 2>&1 \ 4814 && lt_shell_append=yes 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4816$as_echo "$lt_shell_append" >&6; } 4817 4818 4819if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4820 lt_unset=unset 4821else 4822 lt_unset=false 4823fi 4824 4825 4826 4827 4828 4829# test EBCDIC or ASCII 4830case `echo X|tr X '\101'` in 4831 A) # ASCII based system 4832 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4833 lt_SP2NL='tr \040 \012' 4834 lt_NL2SP='tr \015\012 \040\040' 4835 ;; 4836 *) # EBCDIC based system 4837 lt_SP2NL='tr \100 \n' 4838 lt_NL2SP='tr \r\n \100\100' 4839 ;; 4840esac 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4851$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4852if ${lt_cv_to_host_file_cmd+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 case $host in 4856 *-*-mingw* ) 4857 case $build in 4858 *-*-mingw* ) # actually msys 4859 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4860 ;; 4861 *-*-cygwin* ) 4862 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4863 ;; 4864 * ) # otherwise, assume *nix 4865 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4866 ;; 4867 esac 4868 ;; 4869 *-*-cygwin* ) 4870 case $build in 4871 *-*-mingw* ) # actually msys 4872 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4873 ;; 4874 *-*-cygwin* ) 4875 lt_cv_to_host_file_cmd=func_convert_file_noop 4876 ;; 4877 * ) # otherwise, assume *nix 4878 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4879 ;; 4880 esac 4881 ;; 4882 * ) # unhandled hosts (and "normal" native builds) 4883 lt_cv_to_host_file_cmd=func_convert_file_noop 4884 ;; 4885esac 4886 4887fi 4888 4889to_host_file_cmd=$lt_cv_to_host_file_cmd 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4891$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4892 4893 4894 4895 4896 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4898$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4899if ${lt_cv_to_tool_file_cmd+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901else 4902 #assume ordinary cross tools, or native build. 4903lt_cv_to_tool_file_cmd=func_convert_file_noop 4904case $host in 4905 *-*-mingw* ) 4906 case $build in 4907 *-*-mingw* ) # actually msys 4908 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4909 ;; 4910 esac 4911 ;; 4912esac 4913 4914fi 4915 4916to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4918$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4919 4920 4921 4922 4923 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4925$as_echo_n "checking for $LD option to reload object files... " >&6; } 4926if ${lt_cv_ld_reload_flag+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 lt_cv_ld_reload_flag='-r' 4930fi 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4932$as_echo "$lt_cv_ld_reload_flag" >&6; } 4933reload_flag=$lt_cv_ld_reload_flag 4934case $reload_flag in 4935"" | " "*) ;; 4936*) reload_flag=" $reload_flag" ;; 4937esac 4938reload_cmds='$LD$reload_flag -o $output$reload_objs' 4939case $host_os in 4940 cygwin* | mingw* | pw32* | cegcc*) 4941 if test "$GCC" != yes; then 4942 reload_cmds=false 4943 fi 4944 ;; 4945 darwin*) 4946 if test "$GCC" = yes; then 4947 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4948 else 4949 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4950 fi 4951 ;; 4952esac 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962if test -n "$ac_tool_prefix"; then 4963 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4964set dummy ${ac_tool_prefix}objdump; ac_word=$2 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4966$as_echo_n "checking for $ac_word... " >&6; } 4967if ${ac_cv_prog_OBJDUMP+:} false; then : 4968 $as_echo_n "(cached) " >&6 4969else 4970 if test -n "$OBJDUMP"; then 4971 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4972else 4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4974for as_dir in $PATH 4975do 4976 IFS=$as_save_IFS 4977 test -z "$as_dir" && as_dir=. 4978 for ac_exec_ext in '' $ac_executable_extensions; do 4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4980 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4982 break 2 4983 fi 4984done 4985 done 4986IFS=$as_save_IFS 4987 4988fi 4989fi 4990OBJDUMP=$ac_cv_prog_OBJDUMP 4991if test -n "$OBJDUMP"; then 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4993$as_echo "$OBJDUMP" >&6; } 4994else 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4996$as_echo "no" >&6; } 4997fi 4998 4999 5000fi 5001if test -z "$ac_cv_prog_OBJDUMP"; then 5002 ac_ct_OBJDUMP=$OBJDUMP 5003 # Extract the first word of "objdump", so it can be a program name with args. 5004set dummy objdump; ac_word=$2 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5006$as_echo_n "checking for $ac_word... " >&6; } 5007if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5008 $as_echo_n "(cached) " >&6 5009else 5010 if test -n "$ac_ct_OBJDUMP"; then 5011 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5012else 5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5014for as_dir in $PATH 5015do 5016 IFS=$as_save_IFS 5017 test -z "$as_dir" && as_dir=. 5018 for ac_exec_ext in '' $ac_executable_extensions; do 5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5020 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5022 break 2 5023 fi 5024done 5025 done 5026IFS=$as_save_IFS 5027 5028fi 5029fi 5030ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5031if test -n "$ac_ct_OBJDUMP"; then 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5033$as_echo "$ac_ct_OBJDUMP" >&6; } 5034else 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5036$as_echo "no" >&6; } 5037fi 5038 5039 if test "x$ac_ct_OBJDUMP" = x; then 5040 OBJDUMP="false" 5041 else 5042 case $cross_compiling:$ac_tool_warned in 5043yes:) 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5046ac_tool_warned=yes ;; 5047esac 5048 OBJDUMP=$ac_ct_OBJDUMP 5049 fi 5050else 5051 OBJDUMP="$ac_cv_prog_OBJDUMP" 5052fi 5053 5054test -z "$OBJDUMP" && OBJDUMP=objdump 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5065$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5066if ${lt_cv_deplibs_check_method+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 lt_cv_file_magic_cmd='$MAGIC_CMD' 5070lt_cv_file_magic_test_file= 5071lt_cv_deplibs_check_method='unknown' 5072# Need to set the preceding variable on all platforms that support 5073# interlibrary dependencies. 5074# 'none' -- dependencies not supported. 5075# `unknown' -- same as none, but documents that we really don't know. 5076# 'pass_all' -- all dependencies passed with no checks. 5077# 'test_compile' -- check by making test program. 5078# 'file_magic [[regex]]' -- check by looking for files in library path 5079# which responds to the $file_magic_cmd with a given extended regex. 5080# If you have `file' or equivalent on your system and you're not sure 5081# whether `pass_all' will *always* work, you probably want this one. 5082 5083case $host_os in 5084aix[4-9]*) 5085 lt_cv_deplibs_check_method=pass_all 5086 ;; 5087 5088beos*) 5089 lt_cv_deplibs_check_method=pass_all 5090 ;; 5091 5092bsdi[45]*) 5093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5094 lt_cv_file_magic_cmd='/usr/bin/file -L' 5095 lt_cv_file_magic_test_file=/shlib/libc.so 5096 ;; 5097 5098cygwin*) 5099 # func_win32_libid is a shell function defined in ltmain.sh 5100 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5101 lt_cv_file_magic_cmd='func_win32_libid' 5102 ;; 5103 5104mingw* | pw32*) 5105 # Base MSYS/MinGW do not provide the 'file' command needed by 5106 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5107 # unless we find 'file', for example because we are cross-compiling. 5108 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5109 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5111 lt_cv_file_magic_cmd='func_win32_libid' 5112 else 5113 # Keep this pattern in sync with the one in func_win32_libid. 5114 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5115 lt_cv_file_magic_cmd='$OBJDUMP -f' 5116 fi 5117 ;; 5118 5119cegcc*) 5120 # use the weaker test based on 'objdump'. See mingw*. 5121 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5122 lt_cv_file_magic_cmd='$OBJDUMP -f' 5123 ;; 5124 5125darwin* | rhapsody*) 5126 lt_cv_deplibs_check_method=pass_all 5127 ;; 5128 5129freebsd* | dragonfly*) 5130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5131 case $host_cpu in 5132 i*86 ) 5133 # Not sure whether the presence of OpenBSD here was a mistake. 5134 # Let's accept both of them until this is cleared up. 5135 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5136 lt_cv_file_magic_cmd=/usr/bin/file 5137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5138 ;; 5139 esac 5140 else 5141 lt_cv_deplibs_check_method=pass_all 5142 fi 5143 ;; 5144 5145gnu*) 5146 lt_cv_deplibs_check_method=pass_all 5147 ;; 5148 5149haiku*) 5150 lt_cv_deplibs_check_method=pass_all 5151 ;; 5152 5153hpux10.20* | hpux11*) 5154 lt_cv_file_magic_cmd=/usr/bin/file 5155 case $host_cpu in 5156 ia64*) 5157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5158 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5159 ;; 5160 hppa*64*) 5161 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]' 5162 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5163 ;; 5164 *) 5165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5166 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5167 ;; 5168 esac 5169 ;; 5170 5171interix[3-9]*) 5172 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5174 ;; 5175 5176irix5* | irix6* | nonstopux*) 5177 case $LD in 5178 *-32|*"-32 ") libmagic=32-bit;; 5179 *-n32|*"-n32 ") libmagic=N32;; 5180 *-64|*"-64 ") libmagic=64-bit;; 5181 *) libmagic=never-match;; 5182 esac 5183 lt_cv_deplibs_check_method=pass_all 5184 ;; 5185 5186# This must be glibc/ELF. 5187linux* | k*bsd*-gnu | kopensolaris*-gnu) 5188 lt_cv_deplibs_check_method=pass_all 5189 ;; 5190 5191netbsd*) 5192 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5194 else 5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5196 fi 5197 ;; 5198 5199newos6*) 5200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5201 lt_cv_file_magic_cmd=/usr/bin/file 5202 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5203 ;; 5204 5205*nto* | *qnx*) 5206 lt_cv_deplibs_check_method=pass_all 5207 ;; 5208 5209openbsd*) 5210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5212 else 5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5214 fi 5215 ;; 5216 5217osf3* | osf4* | osf5*) 5218 lt_cv_deplibs_check_method=pass_all 5219 ;; 5220 5221rdos*) 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225solaris*) 5226 lt_cv_deplibs_check_method=pass_all 5227 ;; 5228 5229sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5230 lt_cv_deplibs_check_method=pass_all 5231 ;; 5232 5233sysv4 | sysv4.3*) 5234 case $host_vendor in 5235 motorola) 5236 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]' 5237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5238 ;; 5239 ncr) 5240 lt_cv_deplibs_check_method=pass_all 5241 ;; 5242 sequent) 5243 lt_cv_file_magic_cmd='/bin/file' 5244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5245 ;; 5246 sni) 5247 lt_cv_file_magic_cmd='/bin/file' 5248 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5249 lt_cv_file_magic_test_file=/lib/libc.so 5250 ;; 5251 siemens) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 pc) 5255 lt_cv_deplibs_check_method=pass_all 5256 ;; 5257 esac 5258 ;; 5259 5260tpf*) 5261 lt_cv_deplibs_check_method=pass_all 5262 ;; 5263esac 5264 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5267$as_echo "$lt_cv_deplibs_check_method" >&6; } 5268 5269file_magic_glob= 5270want_nocaseglob=no 5271if test "$build" = "$host"; then 5272 case $host_os in 5273 mingw* | pw32*) 5274 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5275 want_nocaseglob=yes 5276 else 5277 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5278 fi 5279 ;; 5280 esac 5281fi 5282 5283file_magic_cmd=$lt_cv_file_magic_cmd 5284deplibs_check_method=$lt_cv_deplibs_check_method 5285test -z "$deplibs_check_method" && deplibs_check_method=unknown 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308if test -n "$ac_tool_prefix"; then 5309 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5310set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5312$as_echo_n "checking for $ac_word... " >&6; } 5313if ${ac_cv_prog_DLLTOOL+:} false; then : 5314 $as_echo_n "(cached) " >&6 5315else 5316 if test -n "$DLLTOOL"; then 5317 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5318else 5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5320for as_dir in $PATH 5321do 5322 IFS=$as_save_IFS 5323 test -z "$as_dir" && as_dir=. 5324 for ac_exec_ext in '' $ac_executable_extensions; do 5325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5326 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5328 break 2 5329 fi 5330done 5331 done 5332IFS=$as_save_IFS 5333 5334fi 5335fi 5336DLLTOOL=$ac_cv_prog_DLLTOOL 5337if test -n "$DLLTOOL"; then 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5339$as_echo "$DLLTOOL" >&6; } 5340else 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5342$as_echo "no" >&6; } 5343fi 5344 5345 5346fi 5347if test -z "$ac_cv_prog_DLLTOOL"; then 5348 ac_ct_DLLTOOL=$DLLTOOL 5349 # Extract the first word of "dlltool", so it can be a program name with args. 5350set dummy dlltool; ac_word=$2 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5352$as_echo_n "checking for $ac_word... " >&6; } 5353if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 if test -n "$ac_ct_DLLTOOL"; then 5357 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5358else 5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5360for as_dir in $PATH 5361do 5362 IFS=$as_save_IFS 5363 test -z "$as_dir" && as_dir=. 5364 for ac_exec_ext in '' $ac_executable_extensions; do 5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5366 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5368 break 2 5369 fi 5370done 5371 done 5372IFS=$as_save_IFS 5373 5374fi 5375fi 5376ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5377if test -n "$ac_ct_DLLTOOL"; then 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5379$as_echo "$ac_ct_DLLTOOL" >&6; } 5380else 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5382$as_echo "no" >&6; } 5383fi 5384 5385 if test "x$ac_ct_DLLTOOL" = x; then 5386 DLLTOOL="false" 5387 else 5388 case $cross_compiling:$ac_tool_warned in 5389yes:) 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5392ac_tool_warned=yes ;; 5393esac 5394 DLLTOOL=$ac_ct_DLLTOOL 5395 fi 5396else 5397 DLLTOOL="$ac_cv_prog_DLLTOOL" 5398fi 5399 5400test -z "$DLLTOOL" && DLLTOOL=dlltool 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5412$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5413if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 lt_cv_sharedlib_from_linklib_cmd='unknown' 5417 5418case $host_os in 5419cygwin* | mingw* | pw32* | cegcc*) 5420 # two different shell functions defined in ltmain.sh 5421 # decide which to use based on capabilities of $DLLTOOL 5422 case `$DLLTOOL --help 2>&1` in 5423 *--identify-strict*) 5424 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5425 ;; 5426 *) 5427 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5428 ;; 5429 esac 5430 ;; 5431*) 5432 # fallback: assume linklib IS sharedlib 5433 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5434 ;; 5435esac 5436 5437fi 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5439$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5440sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5441test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5442 5443 5444 5445 5446 5447 5448 5449 5450if test -n "$ac_tool_prefix"; then 5451 for ac_prog in ar 5452 do 5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5454set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5456$as_echo_n "checking for $ac_word... " >&6; } 5457if ${ac_cv_prog_AR+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 if test -n "$AR"; then 5461 ac_cv_prog_AR="$AR" # Let the user override the test. 5462else 5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5464for as_dir in $PATH 5465do 5466 IFS=$as_save_IFS 5467 test -z "$as_dir" && as_dir=. 5468 for ac_exec_ext in '' $ac_executable_extensions; do 5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5470 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5472 break 2 5473 fi 5474done 5475 done 5476IFS=$as_save_IFS 5477 5478fi 5479fi 5480AR=$ac_cv_prog_AR 5481if test -n "$AR"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5483$as_echo "$AR" >&6; } 5484else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486$as_echo "no" >&6; } 5487fi 5488 5489 5490 test -n "$AR" && break 5491 done 5492fi 5493if test -z "$AR"; then 5494 ac_ct_AR=$AR 5495 for ac_prog in ar 5496do 5497 # Extract the first word of "$ac_prog", so it can be a program name with args. 5498set dummy $ac_prog; ac_word=$2 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5500$as_echo_n "checking for $ac_word... " >&6; } 5501if ${ac_cv_prog_ac_ct_AR+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 if test -n "$ac_ct_AR"; then 5505 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5506else 5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5508for as_dir in $PATH 5509do 5510 IFS=$as_save_IFS 5511 test -z "$as_dir" && as_dir=. 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5514 ac_cv_prog_ac_ct_AR="$ac_prog" 5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5516 break 2 5517 fi 5518done 5519 done 5520IFS=$as_save_IFS 5521 5522fi 5523fi 5524ac_ct_AR=$ac_cv_prog_ac_ct_AR 5525if test -n "$ac_ct_AR"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5527$as_echo "$ac_ct_AR" >&6; } 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530$as_echo "no" >&6; } 5531fi 5532 5533 5534 test -n "$ac_ct_AR" && break 5535done 5536 5537 if test "x$ac_ct_AR" = x; then 5538 AR="false" 5539 else 5540 case $cross_compiling:$ac_tool_warned in 5541yes:) 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5544ac_tool_warned=yes ;; 5545esac 5546 AR=$ac_ct_AR 5547 fi 5548fi 5549 5550: ${AR=ar} 5551: ${AR_FLAGS=cru} 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5564$as_echo_n "checking for archiver @FILE support... " >&6; } 5565if ${lt_cv_ar_at_file+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567else 5568 lt_cv_ar_at_file=no 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571 5572int 5573main () 5574{ 5575 5576 ; 5577 return 0; 5578} 5579_ACEOF 5580if ac_fn_c_try_compile "$LINENO"; then : 5581 echo conftest.$ac_objext > conftest.lst 5582 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5584 (eval $lt_ar_try) 2>&5 5585 ac_status=$? 5586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5587 test $ac_status = 0; } 5588 if test "$ac_status" -eq 0; then 5589 # Ensure the archiver fails upon bogus file names. 5590 rm -f conftest.$ac_objext libconftest.a 5591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5592 (eval $lt_ar_try) 2>&5 5593 ac_status=$? 5594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5595 test $ac_status = 0; } 5596 if test "$ac_status" -ne 0; then 5597 lt_cv_ar_at_file=@ 5598 fi 5599 fi 5600 rm -f conftest.* libconftest.a 5601 5602fi 5603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5604 5605fi 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5607$as_echo "$lt_cv_ar_at_file" >&6; } 5608 5609if test "x$lt_cv_ar_at_file" = xno; then 5610 archiver_list_spec= 5611else 5612 archiver_list_spec=$lt_cv_ar_at_file 5613fi 5614 5615 5616 5617 5618 5619 5620 5621if test -n "$ac_tool_prefix"; then 5622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5623set dummy ${ac_tool_prefix}strip; ac_word=$2 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5625$as_echo_n "checking for $ac_word... " >&6; } 5626if ${ac_cv_prog_STRIP+:} false; then : 5627 $as_echo_n "(cached) " >&6 5628else 5629 if test -n "$STRIP"; then 5630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5631else 5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5633for as_dir in $PATH 5634do 5635 IFS=$as_save_IFS 5636 test -z "$as_dir" && as_dir=. 5637 for ac_exec_ext in '' $ac_executable_extensions; do 5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5639 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5641 break 2 5642 fi 5643done 5644 done 5645IFS=$as_save_IFS 5646 5647fi 5648fi 5649STRIP=$ac_cv_prog_STRIP 5650if test -n "$STRIP"; then 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5652$as_echo "$STRIP" >&6; } 5653else 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5655$as_echo "no" >&6; } 5656fi 5657 5658 5659fi 5660if test -z "$ac_cv_prog_STRIP"; then 5661 ac_ct_STRIP=$STRIP 5662 # Extract the first word of "strip", so it can be a program name with args. 5663set dummy strip; ac_word=$2 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5665$as_echo_n "checking for $ac_word... " >&6; } 5666if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 if test -n "$ac_ct_STRIP"; then 5670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5671else 5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5673for as_dir in $PATH 5674do 5675 IFS=$as_save_IFS 5676 test -z "$as_dir" && as_dir=. 5677 for ac_exec_ext in '' $ac_executable_extensions; do 5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5679 ac_cv_prog_ac_ct_STRIP="strip" 5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5681 break 2 5682 fi 5683done 5684 done 5685IFS=$as_save_IFS 5686 5687fi 5688fi 5689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5690if test -n "$ac_ct_STRIP"; then 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5692$as_echo "$ac_ct_STRIP" >&6; } 5693else 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5695$as_echo "no" >&6; } 5696fi 5697 5698 if test "x$ac_ct_STRIP" = x; then 5699 STRIP=":" 5700 else 5701 case $cross_compiling:$ac_tool_warned in 5702yes:) 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5705ac_tool_warned=yes ;; 5706esac 5707 STRIP=$ac_ct_STRIP 5708 fi 5709else 5710 STRIP="$ac_cv_prog_STRIP" 5711fi 5712 5713test -z "$STRIP" && STRIP=: 5714 5715 5716 5717 5718 5719 5720if test -n "$ac_tool_prefix"; then 5721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5722set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5724$as_echo_n "checking for $ac_word... " >&6; } 5725if ${ac_cv_prog_RANLIB+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 if test -n "$RANLIB"; then 5729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5730else 5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5732for as_dir in $PATH 5733do 5734 IFS=$as_save_IFS 5735 test -z "$as_dir" && as_dir=. 5736 for ac_exec_ext in '' $ac_executable_extensions; do 5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5740 break 2 5741 fi 5742done 5743 done 5744IFS=$as_save_IFS 5745 5746fi 5747fi 5748RANLIB=$ac_cv_prog_RANLIB 5749if test -n "$RANLIB"; then 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5751$as_echo "$RANLIB" >&6; } 5752else 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5754$as_echo "no" >&6; } 5755fi 5756 5757 5758fi 5759if test -z "$ac_cv_prog_RANLIB"; then 5760 ac_ct_RANLIB=$RANLIB 5761 # Extract the first word of "ranlib", so it can be a program name with args. 5762set dummy ranlib; ac_word=$2 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5764$as_echo_n "checking for $ac_word... " >&6; } 5765if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 if test -n "$ac_ct_RANLIB"; then 5769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5770else 5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5772for as_dir in $PATH 5773do 5774 IFS=$as_save_IFS 5775 test -z "$as_dir" && as_dir=. 5776 for ac_exec_ext in '' $ac_executable_extensions; do 5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5778 ac_cv_prog_ac_ct_RANLIB="ranlib" 5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5780 break 2 5781 fi 5782done 5783 done 5784IFS=$as_save_IFS 5785 5786fi 5787fi 5788ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5789if test -n "$ac_ct_RANLIB"; then 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5791$as_echo "$ac_ct_RANLIB" >&6; } 5792else 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5794$as_echo "no" >&6; } 5795fi 5796 5797 if test "x$ac_ct_RANLIB" = x; then 5798 RANLIB=":" 5799 else 5800 case $cross_compiling:$ac_tool_warned in 5801yes:) 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5804ac_tool_warned=yes ;; 5805esac 5806 RANLIB=$ac_ct_RANLIB 5807 fi 5808else 5809 RANLIB="$ac_cv_prog_RANLIB" 5810fi 5811 5812test -z "$RANLIB" && RANLIB=: 5813 5814 5815 5816 5817 5818 5819# Determine commands to create old-style static archives. 5820old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5821old_postinstall_cmds='chmod 644 $oldlib' 5822old_postuninstall_cmds= 5823 5824if test -n "$RANLIB"; then 5825 case $host_os in 5826 openbsd*) 5827 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5828 ;; 5829 *) 5830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5831 ;; 5832 esac 5833 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5834fi 5835 5836case $host_os in 5837 darwin*) 5838 lock_old_archive_extraction=yes ;; 5839 *) 5840 lock_old_archive_extraction=no ;; 5841esac 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881# If no C compiler was specified, use CC. 5882LTCC=${LTCC-"$CC"} 5883 5884# If no C compiler flags were specified, use CFLAGS. 5885LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5886 5887# Allow CC to be a program name with arguments. 5888compiler=$CC 5889 5890 5891# Check for command to grab the raw symbol name followed by C symbol from nm. 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5893$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5894if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 5898# These are sane defaults that work on at least a few old systems. 5899# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5900 5901# Character class describing NM global symbol codes. 5902symcode='[BCDEGRST]' 5903 5904# Regexp to match symbols that can be accessed directly from C. 5905sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5906 5907# Define system-specific variables. 5908case $host_os in 5909aix*) 5910 symcode='[BCDT]' 5911 ;; 5912cygwin* | mingw* | pw32* | cegcc*) 5913 symcode='[ABCDGISTW]' 5914 ;; 5915hpux*) 5916 if test "$host_cpu" = ia64; then 5917 symcode='[ABCDEGRST]' 5918 fi 5919 ;; 5920irix* | nonstopux*) 5921 symcode='[BCDEGRST]' 5922 ;; 5923osf*) 5924 symcode='[BCDEGQRST]' 5925 ;; 5926solaris*) 5927 symcode='[BDRT]' 5928 ;; 5929sco3.2v5*) 5930 symcode='[DT]' 5931 ;; 5932sysv4.2uw2*) 5933 symcode='[DT]' 5934 ;; 5935sysv5* | sco5v6* | unixware* | OpenUNIX*) 5936 symcode='[ABDT]' 5937 ;; 5938sysv4) 5939 symcode='[DFNSTU]' 5940 ;; 5941esac 5942 5943# If we're using GNU nm, then use its standard symbol codes. 5944case `$NM -V 2>&1` in 5945*GNU* | *'with BFD'*) 5946 symcode='[ABCDGIRSTW]' ;; 5947esac 5948 5949# Transform an extracted symbol line into a proper C declaration. 5950# Some systems (esp. on ia64) link data and code symbols differently, 5951# so use this general approach. 5952lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5953 5954# Transform an extracted symbol line into symbol name and symbol address 5955lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5956lt_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'" 5957 5958# Handle CRLF in mingw tool chain 5959opt_cr= 5960case $build_os in 5961mingw*) 5962 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5963 ;; 5964esac 5965 5966# Try without a prefix underscore, then with it. 5967for ac_symprfx in "" "_"; do 5968 5969 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5970 symxfrm="\\1 $ac_symprfx\\2 \\2" 5971 5972 # Write the raw and C identifiers. 5973 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5974 # Fake it for dumpbin and say T for any non-static function 5975 # and D for any global variable. 5976 # Also find C++ and __fastcall symbols from MSVC++, 5977 # which start with @ or ?. 5978 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5979" {last_section=section; section=\$ 3};"\ 5980" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5981" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5982" \$ 0!~/External *\|/{next};"\ 5983" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5984" {if(hide[section]) next};"\ 5985" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5986" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5987" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5988" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5989" ' prfx=^$ac_symprfx" 5990 else 5991 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5992 fi 5993 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5994 5995 # Check to see that the pipe works correctly. 5996 pipe_works=no 5997 5998 rm -f conftest* 5999 cat > conftest.$ac_ext <<_LT_EOF 6000#ifdef __cplusplus 6001extern "C" { 6002#endif 6003char nm_test_var; 6004void nm_test_func(void); 6005void nm_test_func(void){} 6006#ifdef __cplusplus 6007} 6008#endif 6009int main(){nm_test_var='a';nm_test_func();return(0);} 6010_LT_EOF 6011 6012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6013 (eval $ac_compile) 2>&5 6014 ac_status=$? 6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6016 test $ac_status = 0; }; then 6017 # Now try to grab the symbols. 6018 nlist=conftest.nm 6019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6020 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6021 ac_status=$? 6022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6023 test $ac_status = 0; } && test -s "$nlist"; then 6024 # Try sorting and uniquifying the output. 6025 if sort "$nlist" | uniq > "$nlist"T; then 6026 mv -f "$nlist"T "$nlist" 6027 else 6028 rm -f "$nlist"T 6029 fi 6030 6031 # Make sure that we snagged all the symbols we need. 6032 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6033 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6034 cat <<_LT_EOF > conftest.$ac_ext 6035/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6036#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6037/* DATA imports from DLLs on WIN32 con't be const, because runtime 6038 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6039# define LT_DLSYM_CONST 6040#elif defined(__osf__) 6041/* This system does not cope well with relocations in const data. */ 6042# define LT_DLSYM_CONST 6043#else 6044# define LT_DLSYM_CONST const 6045#endif 6046 6047#ifdef __cplusplus 6048extern "C" { 6049#endif 6050 6051_LT_EOF 6052 # Now generate the symbol file. 6053 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6054 6055 cat <<_LT_EOF >> conftest.$ac_ext 6056 6057/* The mapping between symbol names and symbols. */ 6058LT_DLSYM_CONST struct { 6059 const char *name; 6060 void *address; 6061} 6062lt__PROGRAM__LTX_preloaded_symbols[] = 6063{ 6064 { "@PROGRAM@", (void *) 0 }, 6065_LT_EOF 6066 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6067 cat <<\_LT_EOF >> conftest.$ac_ext 6068 {0, (void *) 0} 6069}; 6070 6071/* This works around a problem in FreeBSD linker */ 6072#ifdef FREEBSD_WORKAROUND 6073static const void *lt_preloaded_setup() { 6074 return lt__PROGRAM__LTX_preloaded_symbols; 6075} 6076#endif 6077 6078#ifdef __cplusplus 6079} 6080#endif 6081_LT_EOF 6082 # Now try linking the two files. 6083 mv conftest.$ac_objext conftstm.$ac_objext 6084 lt_globsym_save_LIBS=$LIBS 6085 lt_globsym_save_CFLAGS=$CFLAGS 6086 LIBS="conftstm.$ac_objext" 6087 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6089 (eval $ac_link) 2>&5 6090 ac_status=$? 6091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6092 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6093 pipe_works=yes 6094 fi 6095 LIBS=$lt_globsym_save_LIBS 6096 CFLAGS=$lt_globsym_save_CFLAGS 6097 else 6098 echo "cannot find nm_test_func in $nlist" >&5 6099 fi 6100 else 6101 echo "cannot find nm_test_var in $nlist" >&5 6102 fi 6103 else 6104 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6105 fi 6106 else 6107 echo "$progname: failed program was:" >&5 6108 cat conftest.$ac_ext >&5 6109 fi 6110 rm -rf conftest* conftst* 6111 6112 # Do not use the global_symbol_pipe unless it works. 6113 if test "$pipe_works" = yes; then 6114 break 6115 else 6116 lt_cv_sys_global_symbol_pipe= 6117 fi 6118done 6119 6120fi 6121 6122if test -z "$lt_cv_sys_global_symbol_pipe"; then 6123 lt_cv_sys_global_symbol_to_cdecl= 6124fi 6125if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6127$as_echo "failed" >&6; } 6128else 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6130$as_echo "ok" >&6; } 6131fi 6132 6133# Response file support. 6134if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6135 nm_file_list_spec='@' 6136elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6137 nm_file_list_spec='@' 6138fi 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6167$as_echo_n "checking for sysroot... " >&6; } 6168 6169# Check whether --with-sysroot was given. 6170if test "${with_sysroot+set}" = set; then : 6171 withval=$with_sysroot; 6172else 6173 with_sysroot=no 6174fi 6175 6176 6177lt_sysroot= 6178case ${with_sysroot} in #( 6179 yes) 6180 if test "$GCC" = yes; then 6181 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6182 fi 6183 ;; #( 6184 /*) 6185 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6186 ;; #( 6187 no|'') 6188 ;; #( 6189 *) 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6191$as_echo "${with_sysroot}" >&6; } 6192 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6193 ;; 6194esac 6195 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6197$as_echo "${lt_sysroot:-no}" >&6; } 6198 6199 6200 6201 6202 6203# Check whether --enable-libtool-lock was given. 6204if test "${enable_libtool_lock+set}" = set; then : 6205 enableval=$enable_libtool_lock; 6206fi 6207 6208test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6209 6210# Some flags need to be propagated to the compiler or linker for good 6211# libtool support. 6212case $host in 6213ia64-*-hpux*) 6214 # Find out which ABI we are using. 6215 echo 'int i;' > conftest.$ac_ext 6216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6217 (eval $ac_compile) 2>&5 6218 ac_status=$? 6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6220 test $ac_status = 0; }; then 6221 case `/usr/bin/file conftest.$ac_objext` in 6222 *ELF-32*) 6223 HPUX_IA64_MODE="32" 6224 ;; 6225 *ELF-64*) 6226 HPUX_IA64_MODE="64" 6227 ;; 6228 esac 6229 fi 6230 rm -rf conftest* 6231 ;; 6232*-*-irix6*) 6233 # Find out which ABI we are using. 6234 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6236 (eval $ac_compile) 2>&5 6237 ac_status=$? 6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6239 test $ac_status = 0; }; then 6240 if test "$lt_cv_prog_gnu_ld" = yes; then 6241 case `/usr/bin/file conftest.$ac_objext` in 6242 *32-bit*) 6243 LD="${LD-ld} -melf32bsmip" 6244 ;; 6245 *N32*) 6246 LD="${LD-ld} -melf32bmipn32" 6247 ;; 6248 *64-bit*) 6249 LD="${LD-ld} -melf64bmip" 6250 ;; 6251 esac 6252 else 6253 case `/usr/bin/file conftest.$ac_objext` in 6254 *32-bit*) 6255 LD="${LD-ld} -32" 6256 ;; 6257 *N32*) 6258 LD="${LD-ld} -n32" 6259 ;; 6260 *64-bit*) 6261 LD="${LD-ld} -64" 6262 ;; 6263 esac 6264 fi 6265 fi 6266 rm -rf conftest* 6267 ;; 6268 6269x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6270s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6271 # Find out which ABI we are using. 6272 echo 'int i;' > conftest.$ac_ext 6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6274 (eval $ac_compile) 2>&5 6275 ac_status=$? 6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6277 test $ac_status = 0; }; then 6278 case `/usr/bin/file conftest.o` in 6279 *32-bit*) 6280 case $host in 6281 x86_64-*kfreebsd*-gnu) 6282 LD="${LD-ld} -m elf_i386_fbsd" 6283 ;; 6284 x86_64-*linux*) 6285 LD="${LD-ld} -m elf_i386" 6286 ;; 6287 ppc64-*linux*|powerpc64-*linux*) 6288 LD="${LD-ld} -m elf32ppclinux" 6289 ;; 6290 s390x-*linux*) 6291 LD="${LD-ld} -m elf_s390" 6292 ;; 6293 sparc64-*linux*) 6294 LD="${LD-ld} -m elf32_sparc" 6295 ;; 6296 esac 6297 ;; 6298 *64-bit*) 6299 case $host in 6300 x86_64-*kfreebsd*-gnu) 6301 LD="${LD-ld} -m elf_x86_64_fbsd" 6302 ;; 6303 x86_64-*linux*) 6304 LD="${LD-ld} -m elf_x86_64" 6305 ;; 6306 ppc*-*linux*|powerpc*-*linux*) 6307 LD="${LD-ld} -m elf64ppc" 6308 ;; 6309 s390*-*linux*|s390*-*tpf*) 6310 LD="${LD-ld} -m elf64_s390" 6311 ;; 6312 sparc*-*linux*) 6313 LD="${LD-ld} -m elf64_sparc" 6314 ;; 6315 esac 6316 ;; 6317 esac 6318 fi 6319 rm -rf conftest* 6320 ;; 6321 6322*-*-sco3.2v5*) 6323 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6324 SAVE_CFLAGS="$CFLAGS" 6325 CFLAGS="$CFLAGS -belf" 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6327$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6328if ${lt_cv_cc_needs_belf+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330else 6331 ac_ext=c 6332ac_cpp='$CPP $CPPFLAGS' 6333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6335ac_compiler_gnu=$ac_cv_c_compiler_gnu 6336 6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6338/* end confdefs.h. */ 6339 6340int 6341main () 6342{ 6343 6344 ; 6345 return 0; 6346} 6347_ACEOF 6348if ac_fn_c_try_link "$LINENO"; then : 6349 lt_cv_cc_needs_belf=yes 6350else 6351 lt_cv_cc_needs_belf=no 6352fi 6353rm -f core conftest.err conftest.$ac_objext \ 6354 conftest$ac_exeext conftest.$ac_ext 6355 ac_ext=c 6356ac_cpp='$CPP $CPPFLAGS' 6357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6359ac_compiler_gnu=$ac_cv_c_compiler_gnu 6360 6361fi 6362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6363$as_echo "$lt_cv_cc_needs_belf" >&6; } 6364 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6365 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6366 CFLAGS="$SAVE_CFLAGS" 6367 fi 6368 ;; 6369*-*solaris*) 6370 # Find out which ABI we are using. 6371 echo 'int i;' > conftest.$ac_ext 6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6373 (eval $ac_compile) 2>&5 6374 ac_status=$? 6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6376 test $ac_status = 0; }; then 6377 case `/usr/bin/file conftest.o` in 6378 *64-bit*) 6379 case $lt_cv_prog_gnu_ld in 6380 yes*) 6381 case $host in 6382 i?86-*-solaris*) 6383 LD="${LD-ld} -m elf_x86_64" 6384 ;; 6385 sparc*-*-solaris*) 6386 LD="${LD-ld} -m elf64_sparc" 6387 ;; 6388 esac 6389 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6390 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6391 LD="${LD-ld}_sol2" 6392 fi 6393 ;; 6394 *) 6395 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6396 LD="${LD-ld} -64" 6397 fi 6398 ;; 6399 esac 6400 ;; 6401 esac 6402 fi 6403 rm -rf conftest* 6404 ;; 6405esac 6406 6407need_locks="$enable_libtool_lock" 6408 6409if test -n "$ac_tool_prefix"; then 6410 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6411set dummy ${ac_tool_prefix}mt; ac_word=$2 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6413$as_echo_n "checking for $ac_word... " >&6; } 6414if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 if test -n "$MANIFEST_TOOL"; then 6418 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6419else 6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6421for as_dir in $PATH 6422do 6423 IFS=$as_save_IFS 6424 test -z "$as_dir" && as_dir=. 6425 for ac_exec_ext in '' $ac_executable_extensions; do 6426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6427 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6429 break 2 6430 fi 6431done 6432 done 6433IFS=$as_save_IFS 6434 6435fi 6436fi 6437MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6438if test -n "$MANIFEST_TOOL"; then 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6440$as_echo "$MANIFEST_TOOL" >&6; } 6441else 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6443$as_echo "no" >&6; } 6444fi 6445 6446 6447fi 6448if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6449 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6450 # Extract the first word of "mt", so it can be a program name with args. 6451set dummy mt; ac_word=$2 6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6453$as_echo_n "checking for $ac_word... " >&6; } 6454if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6455 $as_echo_n "(cached) " >&6 6456else 6457 if test -n "$ac_ct_MANIFEST_TOOL"; then 6458 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6459else 6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6461for as_dir in $PATH 6462do 6463 IFS=$as_save_IFS 6464 test -z "$as_dir" && as_dir=. 6465 for ac_exec_ext in '' $ac_executable_extensions; do 6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6467 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6469 break 2 6470 fi 6471done 6472 done 6473IFS=$as_save_IFS 6474 6475fi 6476fi 6477ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6478if test -n "$ac_ct_MANIFEST_TOOL"; then 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6480$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6481else 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6483$as_echo "no" >&6; } 6484fi 6485 6486 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6487 MANIFEST_TOOL=":" 6488 else 6489 case $cross_compiling:$ac_tool_warned in 6490yes:) 6491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6493ac_tool_warned=yes ;; 6494esac 6495 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6496 fi 6497else 6498 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6499fi 6500 6501test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6503$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6504if ${lt_cv_path_mainfest_tool+:} false; then : 6505 $as_echo_n "(cached) " >&6 6506else 6507 lt_cv_path_mainfest_tool=no 6508 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6509 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6510 cat conftest.err >&5 6511 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6512 lt_cv_path_mainfest_tool=yes 6513 fi 6514 rm -f conftest* 6515fi 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6517$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6518if test "x$lt_cv_path_mainfest_tool" != xyes; then 6519 MANIFEST_TOOL=: 6520fi 6521 6522 6523 6524 6525 6526 6527 case $host_os in 6528 rhapsody* | darwin*) 6529 if test -n "$ac_tool_prefix"; then 6530 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6531set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6533$as_echo_n "checking for $ac_word... " >&6; } 6534if ${ac_cv_prog_DSYMUTIL+:} false; then : 6535 $as_echo_n "(cached) " >&6 6536else 6537 if test -n "$DSYMUTIL"; then 6538 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6539else 6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6541for as_dir in $PATH 6542do 6543 IFS=$as_save_IFS 6544 test -z "$as_dir" && as_dir=. 6545 for ac_exec_ext in '' $ac_executable_extensions; do 6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6547 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6549 break 2 6550 fi 6551done 6552 done 6553IFS=$as_save_IFS 6554 6555fi 6556fi 6557DSYMUTIL=$ac_cv_prog_DSYMUTIL 6558if test -n "$DSYMUTIL"; then 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6560$as_echo "$DSYMUTIL" >&6; } 6561else 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6563$as_echo "no" >&6; } 6564fi 6565 6566 6567fi 6568if test -z "$ac_cv_prog_DSYMUTIL"; then 6569 ac_ct_DSYMUTIL=$DSYMUTIL 6570 # Extract the first word of "dsymutil", so it can be a program name with args. 6571set dummy dsymutil; ac_word=$2 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6573$as_echo_n "checking for $ac_word... " >&6; } 6574if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576else 6577 if test -n "$ac_ct_DSYMUTIL"; then 6578 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6579else 6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6581for as_dir in $PATH 6582do 6583 IFS=$as_save_IFS 6584 test -z "$as_dir" && as_dir=. 6585 for ac_exec_ext in '' $ac_executable_extensions; do 6586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6587 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6589 break 2 6590 fi 6591done 6592 done 6593IFS=$as_save_IFS 6594 6595fi 6596fi 6597ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6598if test -n "$ac_ct_DSYMUTIL"; then 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6600$as_echo "$ac_ct_DSYMUTIL" >&6; } 6601else 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6603$as_echo "no" >&6; } 6604fi 6605 6606 if test "x$ac_ct_DSYMUTIL" = x; then 6607 DSYMUTIL=":" 6608 else 6609 case $cross_compiling:$ac_tool_warned in 6610yes:) 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6613ac_tool_warned=yes ;; 6614esac 6615 DSYMUTIL=$ac_ct_DSYMUTIL 6616 fi 6617else 6618 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6619fi 6620 6621 if test -n "$ac_tool_prefix"; then 6622 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6623set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6625$as_echo_n "checking for $ac_word... " >&6; } 6626if ${ac_cv_prog_NMEDIT+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 if test -n "$NMEDIT"; then 6630 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6631else 6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633for as_dir in $PATH 6634do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_exec_ext in '' $ac_executable_extensions; do 6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6639 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6641 break 2 6642 fi 6643done 6644 done 6645IFS=$as_save_IFS 6646 6647fi 6648fi 6649NMEDIT=$ac_cv_prog_NMEDIT 6650if test -n "$NMEDIT"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6652$as_echo "$NMEDIT" >&6; } 6653else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655$as_echo "no" >&6; } 6656fi 6657 6658 6659fi 6660if test -z "$ac_cv_prog_NMEDIT"; then 6661 ac_ct_NMEDIT=$NMEDIT 6662 # Extract the first word of "nmedit", so it can be a program name with args. 6663set dummy nmedit; ac_word=$2 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6665$as_echo_n "checking for $ac_word... " >&6; } 6666if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 if test -n "$ac_ct_NMEDIT"; then 6670 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6671else 6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6673for as_dir in $PATH 6674do 6675 IFS=$as_save_IFS 6676 test -z "$as_dir" && as_dir=. 6677 for ac_exec_ext in '' $ac_executable_extensions; do 6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6679 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6681 break 2 6682 fi 6683done 6684 done 6685IFS=$as_save_IFS 6686 6687fi 6688fi 6689ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6690if test -n "$ac_ct_NMEDIT"; then 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6692$as_echo "$ac_ct_NMEDIT" >&6; } 6693else 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6695$as_echo "no" >&6; } 6696fi 6697 6698 if test "x$ac_ct_NMEDIT" = x; then 6699 NMEDIT=":" 6700 else 6701 case $cross_compiling:$ac_tool_warned in 6702yes:) 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6705ac_tool_warned=yes ;; 6706esac 6707 NMEDIT=$ac_ct_NMEDIT 6708 fi 6709else 6710 NMEDIT="$ac_cv_prog_NMEDIT" 6711fi 6712 6713 if test -n "$ac_tool_prefix"; then 6714 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6715set dummy ${ac_tool_prefix}lipo; ac_word=$2 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6717$as_echo_n "checking for $ac_word... " >&6; } 6718if ${ac_cv_prog_LIPO+:} false; then : 6719 $as_echo_n "(cached) " >&6 6720else 6721 if test -n "$LIPO"; then 6722 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6723else 6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6725for as_dir in $PATH 6726do 6727 IFS=$as_save_IFS 6728 test -z "$as_dir" && as_dir=. 6729 for ac_exec_ext in '' $ac_executable_extensions; do 6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6731 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6733 break 2 6734 fi 6735done 6736 done 6737IFS=$as_save_IFS 6738 6739fi 6740fi 6741LIPO=$ac_cv_prog_LIPO 6742if test -n "$LIPO"; then 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6744$as_echo "$LIPO" >&6; } 6745else 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6747$as_echo "no" >&6; } 6748fi 6749 6750 6751fi 6752if test -z "$ac_cv_prog_LIPO"; then 6753 ac_ct_LIPO=$LIPO 6754 # Extract the first word of "lipo", so it can be a program name with args. 6755set dummy lipo; ac_word=$2 6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6757$as_echo_n "checking for $ac_word... " >&6; } 6758if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6759 $as_echo_n "(cached) " >&6 6760else 6761 if test -n "$ac_ct_LIPO"; then 6762 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6763else 6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6765for as_dir in $PATH 6766do 6767 IFS=$as_save_IFS 6768 test -z "$as_dir" && as_dir=. 6769 for ac_exec_ext in '' $ac_executable_extensions; do 6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6771 ac_cv_prog_ac_ct_LIPO="lipo" 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6773 break 2 6774 fi 6775done 6776 done 6777IFS=$as_save_IFS 6778 6779fi 6780fi 6781ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6782if test -n "$ac_ct_LIPO"; then 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6784$as_echo "$ac_ct_LIPO" >&6; } 6785else 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6787$as_echo "no" >&6; } 6788fi 6789 6790 if test "x$ac_ct_LIPO" = x; then 6791 LIPO=":" 6792 else 6793 case $cross_compiling:$ac_tool_warned in 6794yes:) 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6797ac_tool_warned=yes ;; 6798esac 6799 LIPO=$ac_ct_LIPO 6800 fi 6801else 6802 LIPO="$ac_cv_prog_LIPO" 6803fi 6804 6805 if test -n "$ac_tool_prefix"; then 6806 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6807set dummy ${ac_tool_prefix}otool; ac_word=$2 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6809$as_echo_n "checking for $ac_word... " >&6; } 6810if ${ac_cv_prog_OTOOL+:} false; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 if test -n "$OTOOL"; then 6814 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6815else 6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817for as_dir in $PATH 6818do 6819 IFS=$as_save_IFS 6820 test -z "$as_dir" && as_dir=. 6821 for ac_exec_ext in '' $ac_executable_extensions; do 6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6823 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6825 break 2 6826 fi 6827done 6828 done 6829IFS=$as_save_IFS 6830 6831fi 6832fi 6833OTOOL=$ac_cv_prog_OTOOL 6834if test -n "$OTOOL"; then 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6836$as_echo "$OTOOL" >&6; } 6837else 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6839$as_echo "no" >&6; } 6840fi 6841 6842 6843fi 6844if test -z "$ac_cv_prog_OTOOL"; then 6845 ac_ct_OTOOL=$OTOOL 6846 # Extract the first word of "otool", so it can be a program name with args. 6847set dummy otool; ac_word=$2 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6849$as_echo_n "checking for $ac_word... " >&6; } 6850if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 if test -n "$ac_ct_OTOOL"; then 6854 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6855else 6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6857for as_dir in $PATH 6858do 6859 IFS=$as_save_IFS 6860 test -z "$as_dir" && as_dir=. 6861 for ac_exec_ext in '' $ac_executable_extensions; do 6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6863 ac_cv_prog_ac_ct_OTOOL="otool" 6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6865 break 2 6866 fi 6867done 6868 done 6869IFS=$as_save_IFS 6870 6871fi 6872fi 6873ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6874if test -n "$ac_ct_OTOOL"; then 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6876$as_echo "$ac_ct_OTOOL" >&6; } 6877else 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6879$as_echo "no" >&6; } 6880fi 6881 6882 if test "x$ac_ct_OTOOL" = x; then 6883 OTOOL=":" 6884 else 6885 case $cross_compiling:$ac_tool_warned in 6886yes:) 6887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6889ac_tool_warned=yes ;; 6890esac 6891 OTOOL=$ac_ct_OTOOL 6892 fi 6893else 6894 OTOOL="$ac_cv_prog_OTOOL" 6895fi 6896 6897 if test -n "$ac_tool_prefix"; then 6898 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6899set dummy ${ac_tool_prefix}otool64; ac_word=$2 6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6901$as_echo_n "checking for $ac_word... " >&6; } 6902if ${ac_cv_prog_OTOOL64+:} false; then : 6903 $as_echo_n "(cached) " >&6 6904else 6905 if test -n "$OTOOL64"; then 6906 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6907else 6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6909for as_dir in $PATH 6910do 6911 IFS=$as_save_IFS 6912 test -z "$as_dir" && as_dir=. 6913 for ac_exec_ext in '' $ac_executable_extensions; do 6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6915 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6917 break 2 6918 fi 6919done 6920 done 6921IFS=$as_save_IFS 6922 6923fi 6924fi 6925OTOOL64=$ac_cv_prog_OTOOL64 6926if test -n "$OTOOL64"; then 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6928$as_echo "$OTOOL64" >&6; } 6929else 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6931$as_echo "no" >&6; } 6932fi 6933 6934 6935fi 6936if test -z "$ac_cv_prog_OTOOL64"; then 6937 ac_ct_OTOOL64=$OTOOL64 6938 # Extract the first word of "otool64", so it can be a program name with args. 6939set dummy otool64; ac_word=$2 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941$as_echo_n "checking for $ac_word... " >&6; } 6942if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 if test -n "$ac_ct_OTOOL64"; then 6946 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6947else 6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6949for as_dir in $PATH 6950do 6951 IFS=$as_save_IFS 6952 test -z "$as_dir" && as_dir=. 6953 for ac_exec_ext in '' $ac_executable_extensions; do 6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6955 ac_cv_prog_ac_ct_OTOOL64="otool64" 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6957 break 2 6958 fi 6959done 6960 done 6961IFS=$as_save_IFS 6962 6963fi 6964fi 6965ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6966if test -n "$ac_ct_OTOOL64"; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6968$as_echo "$ac_ct_OTOOL64" >&6; } 6969else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971$as_echo "no" >&6; } 6972fi 6973 6974 if test "x$ac_ct_OTOOL64" = x; then 6975 OTOOL64=":" 6976 else 6977 case $cross_compiling:$ac_tool_warned in 6978yes:) 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6981ac_tool_warned=yes ;; 6982esac 6983 OTOOL64=$ac_ct_OTOOL64 6984 fi 6985else 6986 OTOOL64="$ac_cv_prog_OTOOL64" 6987fi 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7016$as_echo_n "checking for -single_module linker flag... " >&6; } 7017if ${lt_cv_apple_cc_single_mod+:} false; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 lt_cv_apple_cc_single_mod=no 7021 if test -z "${LT_MULTI_MODULE}"; then 7022 # By default we will add the -single_module flag. You can override 7023 # by either setting the environment variable LT_MULTI_MODULE 7024 # non-empty at configure time, or by adding -multi_module to the 7025 # link flags. 7026 rm -rf libconftest.dylib* 7027 echo "int foo(void){return 1;}" > conftest.c 7028 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7029-dynamiclib -Wl,-single_module conftest.c" >&5 7030 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7031 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7032 _lt_result=$? 7033 # If there is a non-empty error log, and "single_module" 7034 # appears in it, assume the flag caused a linker warning 7035 if test -s conftest.err && $GREP single_module conftest.err; then 7036 cat conftest.err >&5 7037 # Otherwise, if the output was created with a 0 exit code from 7038 # the compiler, it worked. 7039 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7040 lt_cv_apple_cc_single_mod=yes 7041 else 7042 cat conftest.err >&5 7043 fi 7044 rm -rf libconftest.dylib* 7045 rm -f conftest.* 7046 fi 7047fi 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7049$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7050 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7052$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7053if ${lt_cv_ld_exported_symbols_list+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 lt_cv_ld_exported_symbols_list=no 7057 save_LDFLAGS=$LDFLAGS 7058 echo "_main" > conftest.sym 7059 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062 7063int 7064main () 7065{ 7066 7067 ; 7068 return 0; 7069} 7070_ACEOF 7071if ac_fn_c_try_link "$LINENO"; then : 7072 lt_cv_ld_exported_symbols_list=yes 7073else 7074 lt_cv_ld_exported_symbols_list=no 7075fi 7076rm -f core conftest.err conftest.$ac_objext \ 7077 conftest$ac_exeext conftest.$ac_ext 7078 LDFLAGS="$save_LDFLAGS" 7079 7080fi 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7082$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7083 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7085$as_echo_n "checking for -force_load linker flag... " >&6; } 7086if ${lt_cv_ld_force_load+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 lt_cv_ld_force_load=no 7090 cat > conftest.c << _LT_EOF 7091int forced_loaded() { return 2;} 7092_LT_EOF 7093 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7094 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7095 echo "$AR cru libconftest.a conftest.o" >&5 7096 $AR cru libconftest.a conftest.o 2>&5 7097 echo "$RANLIB libconftest.a" >&5 7098 $RANLIB libconftest.a 2>&5 7099 cat > conftest.c << _LT_EOF 7100int main() { return 0;} 7101_LT_EOF 7102 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7103 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7104 _lt_result=$? 7105 if test -s conftest.err && $GREP force_load conftest.err; then 7106 cat conftest.err >&5 7107 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7108 lt_cv_ld_force_load=yes 7109 else 7110 cat conftest.err >&5 7111 fi 7112 rm -f conftest.err libconftest.a conftest conftest.c 7113 rm -rf conftest.dSYM 7114 7115fi 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7117$as_echo "$lt_cv_ld_force_load" >&6; } 7118 case $host_os in 7119 rhapsody* | darwin1.[012]) 7120 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7121 darwin1.*) 7122 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7123 darwin*) # darwin 5.x on 7124 # if running on 10.5 or later, the deployment target defaults 7125 # to the OS version, if on x86, and 10.4, the deployment 7126 # target defaults to 10.4. Don't you love it? 7127 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7128 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7129 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7130 10.[012]*) 7131 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7132 10.*) 7133 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7134 esac 7135 ;; 7136 esac 7137 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7138 _lt_dar_single_mod='$single_module' 7139 fi 7140 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7141 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7142 else 7143 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7144 fi 7145 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7146 _lt_dsymutil='~$DSYMUTIL $lib || :' 7147 else 7148 _lt_dsymutil= 7149 fi 7150 ;; 7151 esac 7152 7153ac_ext=c 7154ac_cpp='$CPP $CPPFLAGS' 7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7157ac_compiler_gnu=$ac_cv_c_compiler_gnu 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7159$as_echo_n "checking how to run the C preprocessor... " >&6; } 7160# On Suns, sometimes $CPP names a directory. 7161if test -n "$CPP" && test -d "$CPP"; then 7162 CPP= 7163fi 7164if test -z "$CPP"; then 7165 if ${ac_cv_prog_CPP+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 # Double quotes because CPP needs to be expanded 7169 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7170 do 7171 ac_preproc_ok=false 7172for ac_c_preproc_warn_flag in '' yes 7173do 7174 # Use a header file that comes with gcc, so configuring glibc 7175 # with a fresh cross-compiler works. 7176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7177 # <limits.h> exists even on freestanding compilers. 7178 # On the NeXT, cc -E runs the code through the compiler's parser, 7179 # not just through cpp. "Syntax error" is here to catch this case. 7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7181/* end confdefs.h. */ 7182#ifdef __STDC__ 7183# include <limits.h> 7184#else 7185# include <assert.h> 7186#endif 7187 Syntax error 7188_ACEOF 7189if ac_fn_c_try_cpp "$LINENO"; then : 7190 7191else 7192 # Broken: fails on valid input. 7193continue 7194fi 7195rm -f conftest.err conftest.i conftest.$ac_ext 7196 7197 # OK, works on sane cases. Now check whether nonexistent headers 7198 # can be detected and how. 7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7200/* end confdefs.h. */ 7201#include <ac_nonexistent.h> 7202_ACEOF 7203if ac_fn_c_try_cpp "$LINENO"; then : 7204 # Broken: success on invalid input. 7205continue 7206else 7207 # Passes both tests. 7208ac_preproc_ok=: 7209break 7210fi 7211rm -f conftest.err conftest.i conftest.$ac_ext 7212 7213done 7214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7215rm -f conftest.i conftest.err conftest.$ac_ext 7216if $ac_preproc_ok; then : 7217 break 7218fi 7219 7220 done 7221 ac_cv_prog_CPP=$CPP 7222 7223fi 7224 CPP=$ac_cv_prog_CPP 7225else 7226 ac_cv_prog_CPP=$CPP 7227fi 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7229$as_echo "$CPP" >&6; } 7230ac_preproc_ok=false 7231for ac_c_preproc_warn_flag in '' yes 7232do 7233 # Use a header file that comes with gcc, so configuring glibc 7234 # with a fresh cross-compiler works. 7235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7236 # <limits.h> exists even on freestanding compilers. 7237 # On the NeXT, cc -E runs the code through the compiler's parser, 7238 # not just through cpp. "Syntax error" is here to catch this case. 7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7240/* end confdefs.h. */ 7241#ifdef __STDC__ 7242# include <limits.h> 7243#else 7244# include <assert.h> 7245#endif 7246 Syntax error 7247_ACEOF 7248if ac_fn_c_try_cpp "$LINENO"; then : 7249 7250else 7251 # Broken: fails on valid input. 7252continue 7253fi 7254rm -f conftest.err conftest.i conftest.$ac_ext 7255 7256 # OK, works on sane cases. Now check whether nonexistent headers 7257 # can be detected and how. 7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259/* end confdefs.h. */ 7260#include <ac_nonexistent.h> 7261_ACEOF 7262if ac_fn_c_try_cpp "$LINENO"; then : 7263 # Broken: success on invalid input. 7264continue 7265else 7266 # Passes both tests. 7267ac_preproc_ok=: 7268break 7269fi 7270rm -f conftest.err conftest.i conftest.$ac_ext 7271 7272done 7273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7274rm -f conftest.i conftest.err conftest.$ac_ext 7275if $ac_preproc_ok; then : 7276 7277else 7278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7280as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7281See \`config.log' for more details" "$LINENO" 5; } 7282fi 7283 7284ac_ext=c 7285ac_cpp='$CPP $CPPFLAGS' 7286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7288ac_compiler_gnu=$ac_cv_c_compiler_gnu 7289 7290 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7292$as_echo_n "checking for ANSI C header files... " >&6; } 7293if ${ac_cv_header_stdc+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295else 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298#include <stdlib.h> 7299#include <stdarg.h> 7300#include <string.h> 7301#include <float.h> 7302 7303int 7304main () 7305{ 7306 7307 ; 7308 return 0; 7309} 7310_ACEOF 7311if ac_fn_c_try_compile "$LINENO"; then : 7312 ac_cv_header_stdc=yes 7313else 7314 ac_cv_header_stdc=no 7315fi 7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7317 7318if test $ac_cv_header_stdc = yes; then 7319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321/* end confdefs.h. */ 7322#include <string.h> 7323 7324_ACEOF 7325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7326 $EGREP "memchr" >/dev/null 2>&1; then : 7327 7328else 7329 ac_cv_header_stdc=no 7330fi 7331rm -f conftest* 7332 7333fi 7334 7335if test $ac_cv_header_stdc = yes; then 7336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339#include <stdlib.h> 7340 7341_ACEOF 7342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7343 $EGREP "free" >/dev/null 2>&1; then : 7344 7345else 7346 ac_cv_header_stdc=no 7347fi 7348rm -f conftest* 7349 7350fi 7351 7352if test $ac_cv_header_stdc = yes; then 7353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7354 if test "$cross_compiling" = yes; then : 7355 : 7356else 7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7358/* end confdefs.h. */ 7359#include <ctype.h> 7360#include <stdlib.h> 7361#if ((' ' & 0x0FF) == 0x020) 7362# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7363# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7364#else 7365# define ISLOWER(c) \ 7366 (('a' <= (c) && (c) <= 'i') \ 7367 || ('j' <= (c) && (c) <= 'r') \ 7368 || ('s' <= (c) && (c) <= 'z')) 7369# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7370#endif 7371 7372#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7373int 7374main () 7375{ 7376 int i; 7377 for (i = 0; i < 256; i++) 7378 if (XOR (islower (i), ISLOWER (i)) 7379 || toupper (i) != TOUPPER (i)) 7380 return 2; 7381 return 0; 7382} 7383_ACEOF 7384if ac_fn_c_try_run "$LINENO"; then : 7385 7386else 7387 ac_cv_header_stdc=no 7388fi 7389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7390 conftest.$ac_objext conftest.beam conftest.$ac_ext 7391fi 7392 7393fi 7394fi 7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7396$as_echo "$ac_cv_header_stdc" >&6; } 7397if test $ac_cv_header_stdc = yes; then 7398 7399$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7400 7401fi 7402 7403# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7404for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7405 inttypes.h stdint.h unistd.h 7406do : 7407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7408ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7409" 7410if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7411 cat >>confdefs.h <<_ACEOF 7412#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7413_ACEOF 7414 7415fi 7416 7417done 7418 7419 7420for ac_header in dlfcn.h 7421do : 7422 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7423" 7424if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7425 cat >>confdefs.h <<_ACEOF 7426#define HAVE_DLFCN_H 1 7427_ACEOF 7428 7429fi 7430 7431done 7432 7433 7434 7435 7436 7437# Set options 7438 7439 7440 7441 enable_dlopen=no 7442 7443 7444 enable_win32_dll=no 7445 7446 7447 # Check whether --enable-shared was given. 7448if test "${enable_shared+set}" = set; then : 7449 enableval=$enable_shared; p=${PACKAGE-default} 7450 case $enableval in 7451 yes) enable_shared=yes ;; 7452 no) enable_shared=no ;; 7453 *) 7454 enable_shared=no 7455 # Look at the argument we got. We use all the common list separators. 7456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7457 for pkg in $enableval; do 7458 IFS="$lt_save_ifs" 7459 if test "X$pkg" = "X$p"; then 7460 enable_shared=yes 7461 fi 7462 done 7463 IFS="$lt_save_ifs" 7464 ;; 7465 esac 7466else 7467 enable_shared=yes 7468fi 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 # Check whether --enable-static was given. 7479if test "${enable_static+set}" = set; then : 7480 enableval=$enable_static; p=${PACKAGE-default} 7481 case $enableval in 7482 yes) enable_static=yes ;; 7483 no) enable_static=no ;; 7484 *) 7485 enable_static=no 7486 # Look at the argument we got. We use all the common list separators. 7487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7488 for pkg in $enableval; do 7489 IFS="$lt_save_ifs" 7490 if test "X$pkg" = "X$p"; then 7491 enable_static=yes 7492 fi 7493 done 7494 IFS="$lt_save_ifs" 7495 ;; 7496 esac 7497else 7498 enable_static=yes 7499fi 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510# Check whether --with-pic was given. 7511if test "${with_pic+set}" = set; then : 7512 withval=$with_pic; lt_p=${PACKAGE-default} 7513 case $withval in 7514 yes|no) pic_mode=$withval ;; 7515 *) 7516 pic_mode=default 7517 # Look at the argument we got. We use all the common list separators. 7518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7519 for lt_pkg in $withval; do 7520 IFS="$lt_save_ifs" 7521 if test "X$lt_pkg" = "X$lt_p"; then 7522 pic_mode=yes 7523 fi 7524 done 7525 IFS="$lt_save_ifs" 7526 ;; 7527 esac 7528else 7529 pic_mode=default 7530fi 7531 7532 7533test -z "$pic_mode" && pic_mode=default 7534 7535 7536 7537 7538 7539 7540 7541 # Check whether --enable-fast-install was given. 7542if test "${enable_fast_install+set}" = set; then : 7543 enableval=$enable_fast_install; p=${PACKAGE-default} 7544 case $enableval in 7545 yes) enable_fast_install=yes ;; 7546 no) enable_fast_install=no ;; 7547 *) 7548 enable_fast_install=no 7549 # Look at the argument we got. We use all the common list separators. 7550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7551 for pkg in $enableval; do 7552 IFS="$lt_save_ifs" 7553 if test "X$pkg" = "X$p"; then 7554 enable_fast_install=yes 7555 fi 7556 done 7557 IFS="$lt_save_ifs" 7558 ;; 7559 esac 7560else 7561 enable_fast_install=yes 7562fi 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574# This can be used to rebuild libtool when needed 7575LIBTOOL_DEPS="$ltmain" 7576 7577# Always use our own libtool. 7578LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609test -z "$LN_S" && LN_S="ln -s" 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624if test -n "${ZSH_VERSION+set}" ; then 7625 setopt NO_GLOB_SUBST 7626fi 7627 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7629$as_echo_n "checking for objdir... " >&6; } 7630if ${lt_cv_objdir+:} false; then : 7631 $as_echo_n "(cached) " >&6 7632else 7633 rm -f .libs 2>/dev/null 7634mkdir .libs 2>/dev/null 7635if test -d .libs; then 7636 lt_cv_objdir=.libs 7637else 7638 # MS-DOS does not allow filenames that begin with a dot. 7639 lt_cv_objdir=_libs 7640fi 7641rmdir .libs 2>/dev/null 7642fi 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7644$as_echo "$lt_cv_objdir" >&6; } 7645objdir=$lt_cv_objdir 7646 7647 7648 7649 7650 7651cat >>confdefs.h <<_ACEOF 7652#define LT_OBJDIR "$lt_cv_objdir/" 7653_ACEOF 7654 7655 7656 7657 7658case $host_os in 7659aix3*) 7660 # AIX sometimes has problems with the GCC collect2 program. For some 7661 # reason, if we set the COLLECT_NAMES environment variable, the problems 7662 # vanish in a puff of smoke. 7663 if test "X${COLLECT_NAMES+set}" != Xset; then 7664 COLLECT_NAMES= 7665 export COLLECT_NAMES 7666 fi 7667 ;; 7668esac 7669 7670# Global variables: 7671ofile=libtool 7672can_build_shared=yes 7673 7674# All known linkers require a `.a' archive for static linking (except MSVC, 7675# which needs '.lib'). 7676libext=a 7677 7678with_gnu_ld="$lt_cv_prog_gnu_ld" 7679 7680old_CC="$CC" 7681old_CFLAGS="$CFLAGS" 7682 7683# Set sane defaults for various variables 7684test -z "$CC" && CC=cc 7685test -z "$LTCC" && LTCC=$CC 7686test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7687test -z "$LD" && LD=ld 7688test -z "$ac_objext" && ac_objext=o 7689 7690for cc_temp in $compiler""; do 7691 case $cc_temp in 7692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7694 \-*) ;; 7695 *) break;; 7696 esac 7697done 7698cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7699 7700 7701# Only perform the check for file, if the check method requires it 7702test -z "$MAGIC_CMD" && MAGIC_CMD=file 7703case $deplibs_check_method in 7704file_magic*) 7705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7707$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7708if ${lt_cv_path_MAGIC_CMD+:} false; then : 7709 $as_echo_n "(cached) " >&6 7710else 7711 case $MAGIC_CMD in 7712[\\/*] | ?:[\\/]*) 7713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7714 ;; 7715*) 7716 lt_save_MAGIC_CMD="$MAGIC_CMD" 7717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7719 for ac_dir in $ac_dummy; do 7720 IFS="$lt_save_ifs" 7721 test -z "$ac_dir" && ac_dir=. 7722 if test -f $ac_dir/${ac_tool_prefix}file; then 7723 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7724 if test -n "$file_magic_test_file"; then 7725 case $deplibs_check_method in 7726 "file_magic "*) 7727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7730 $EGREP "$file_magic_regex" > /dev/null; then 7731 : 7732 else 7733 cat <<_LT_EOF 1>&2 7734 7735*** Warning: the command libtool uses to detect shared libraries, 7736*** $file_magic_cmd, produces output that libtool cannot recognize. 7737*** The result is that libtool may fail to recognize shared libraries 7738*** as such. This will affect the creation of libtool libraries that 7739*** depend on shared libraries, but programs linked with such libtool 7740*** libraries will work regardless of this problem. Nevertheless, you 7741*** may want to report the problem to your system manager and/or to 7742*** bug-libtool@gnu.org 7743 7744_LT_EOF 7745 fi ;; 7746 esac 7747 fi 7748 break 7749 fi 7750 done 7751 IFS="$lt_save_ifs" 7752 MAGIC_CMD="$lt_save_MAGIC_CMD" 7753 ;; 7754esac 7755fi 7756 7757MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7758if test -n "$MAGIC_CMD"; then 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7760$as_echo "$MAGIC_CMD" >&6; } 7761else 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7763$as_echo "no" >&6; } 7764fi 7765 7766 7767 7768 7769 7770if test -z "$lt_cv_path_MAGIC_CMD"; then 7771 if test -n "$ac_tool_prefix"; then 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7773$as_echo_n "checking for file... " >&6; } 7774if ${lt_cv_path_MAGIC_CMD+:} false; then : 7775 $as_echo_n "(cached) " >&6 7776else 7777 case $MAGIC_CMD in 7778[\\/*] | ?:[\\/]*) 7779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7780 ;; 7781*) 7782 lt_save_MAGIC_CMD="$MAGIC_CMD" 7783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7785 for ac_dir in $ac_dummy; do 7786 IFS="$lt_save_ifs" 7787 test -z "$ac_dir" && ac_dir=. 7788 if test -f $ac_dir/file; then 7789 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7790 if test -n "$file_magic_test_file"; then 7791 case $deplibs_check_method in 7792 "file_magic "*) 7793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7796 $EGREP "$file_magic_regex" > /dev/null; then 7797 : 7798 else 7799 cat <<_LT_EOF 1>&2 7800 7801*** Warning: the command libtool uses to detect shared libraries, 7802*** $file_magic_cmd, produces output that libtool cannot recognize. 7803*** The result is that libtool may fail to recognize shared libraries 7804*** as such. This will affect the creation of libtool libraries that 7805*** depend on shared libraries, but programs linked with such libtool 7806*** libraries will work regardless of this problem. Nevertheless, you 7807*** may want to report the problem to your system manager and/or to 7808*** bug-libtool@gnu.org 7809 7810_LT_EOF 7811 fi ;; 7812 esac 7813 fi 7814 break 7815 fi 7816 done 7817 IFS="$lt_save_ifs" 7818 MAGIC_CMD="$lt_save_MAGIC_CMD" 7819 ;; 7820esac 7821fi 7822 7823MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7824if test -n "$MAGIC_CMD"; then 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7826$as_echo "$MAGIC_CMD" >&6; } 7827else 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7829$as_echo "no" >&6; } 7830fi 7831 7832 7833 else 7834 MAGIC_CMD=: 7835 fi 7836fi 7837 7838 fi 7839 ;; 7840esac 7841 7842# Use C for the default configuration in the libtool script 7843 7844lt_save_CC="$CC" 7845ac_ext=c 7846ac_cpp='$CPP $CPPFLAGS' 7847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7849ac_compiler_gnu=$ac_cv_c_compiler_gnu 7850 7851 7852# Source file extension for C test sources. 7853ac_ext=c 7854 7855# Object file extension for compiled C test sources. 7856objext=o 7857objext=$objext 7858 7859# Code to be used in simple compile tests 7860lt_simple_compile_test_code="int some_variable = 0;" 7861 7862# Code to be used in simple link tests 7863lt_simple_link_test_code='int main(){return(0);}' 7864 7865 7866 7867 7868 7869 7870 7871# If no C compiler was specified, use CC. 7872LTCC=${LTCC-"$CC"} 7873 7874# If no C compiler flags were specified, use CFLAGS. 7875LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7876 7877# Allow CC to be a program name with arguments. 7878compiler=$CC 7879 7880# Save the default compiler, since it gets overwritten when the other 7881# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7882compiler_DEFAULT=$CC 7883 7884# save warnings/boilerplate of simple test code 7885ac_outfile=conftest.$ac_objext 7886echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7887eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7888_lt_compiler_boilerplate=`cat conftest.err` 7889$RM conftest* 7890 7891ac_outfile=conftest.$ac_objext 7892echo "$lt_simple_link_test_code" >conftest.$ac_ext 7893eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7894_lt_linker_boilerplate=`cat conftest.err` 7895$RM -r conftest* 7896 7897 7898if test -n "$compiler"; then 7899 7900lt_prog_compiler_no_builtin_flag= 7901 7902if test "$GCC" = yes; then 7903 case $cc_basename in 7904 nvcc*) 7905 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7906 *) 7907 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7908 esac 7909 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7911$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7912if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 lt_cv_prog_compiler_rtti_exceptions=no 7916 ac_outfile=conftest.$ac_objext 7917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7918 lt_compiler_flag="-fno-rtti -fno-exceptions" 7919 # Insert the option either (1) after the last *FLAGS variable, or 7920 # (2) before a word containing "conftest.", or (3) at the end. 7921 # Note that $ac_compile itself does not contain backslashes and begins 7922 # with a dollar sign (not a hyphen), so the echo should work correctly. 7923 # The option is referenced via a variable to avoid confusing sed. 7924 lt_compile=`echo "$ac_compile" | $SED \ 7925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7927 -e 's:$: $lt_compiler_flag:'` 7928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7929 (eval "$lt_compile" 2>conftest.err) 7930 ac_status=$? 7931 cat conftest.err >&5 7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7933 if (exit $ac_status) && test -s "$ac_outfile"; then 7934 # The compiler can only warn and ignore the option if not recognized 7935 # So say no if there are warnings other than the usual output. 7936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7939 lt_cv_prog_compiler_rtti_exceptions=yes 7940 fi 7941 fi 7942 $RM conftest* 7943 7944fi 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7946$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7947 7948if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7949 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7950else 7951 : 7952fi 7953 7954fi 7955 7956 7957 7958 7959 7960 7961 lt_prog_compiler_wl= 7962lt_prog_compiler_pic= 7963lt_prog_compiler_static= 7964 7965 7966 if test "$GCC" = yes; then 7967 lt_prog_compiler_wl='-Wl,' 7968 lt_prog_compiler_static='-static' 7969 7970 case $host_os in 7971 aix*) 7972 # All AIX code is PIC. 7973 if test "$host_cpu" = ia64; then 7974 # AIX 5 now supports IA64 processor 7975 lt_prog_compiler_static='-Bstatic' 7976 fi 7977 ;; 7978 7979 amigaos*) 7980 case $host_cpu in 7981 powerpc) 7982 # see comment about AmigaOS4 .so support 7983 lt_prog_compiler_pic='-fPIC' 7984 ;; 7985 m68k) 7986 # FIXME: we need at least 68020 code to build shared libraries, but 7987 # adding the `-m68020' flag to GCC prevents building anything better, 7988 # like `-m68040'. 7989 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7990 ;; 7991 esac 7992 ;; 7993 7994 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7995 # PIC is the default for these OSes. 7996 ;; 7997 7998 mingw* | cygwin* | pw32* | os2* | cegcc*) 7999 # This hack is so that the source file can tell whether it is being 8000 # built for inclusion in a dll (and should export symbols for example). 8001 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8002 # (--disable-auto-import) libraries 8003 lt_prog_compiler_pic='-DDLL_EXPORT' 8004 ;; 8005 8006 darwin* | rhapsody*) 8007 # PIC is the default on this platform 8008 # Common symbols not allowed in MH_DYLIB files 8009 lt_prog_compiler_pic='-fno-common' 8010 ;; 8011 8012 haiku*) 8013 # PIC is the default for Haiku. 8014 # The "-static" flag exists, but is broken. 8015 lt_prog_compiler_static= 8016 ;; 8017 8018 hpux*) 8019 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8020 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8021 # sets the default TLS model and affects inlining. 8022 case $host_cpu in 8023 hppa*64*) 8024 # +Z the default 8025 ;; 8026 *) 8027 lt_prog_compiler_pic='-fPIC' 8028 ;; 8029 esac 8030 ;; 8031 8032 interix[3-9]*) 8033 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8034 # Instead, we relocate shared libraries at runtime. 8035 ;; 8036 8037 msdosdjgpp*) 8038 # Just because we use GCC doesn't mean we suddenly get shared libraries 8039 # on systems that don't support them. 8040 lt_prog_compiler_can_build_shared=no 8041 enable_shared=no 8042 ;; 8043 8044 *nto* | *qnx*) 8045 # QNX uses GNU C++, but need to define -shared option too, otherwise 8046 # it will coredump. 8047 lt_prog_compiler_pic='-fPIC -shared' 8048 ;; 8049 8050 sysv4*MP*) 8051 if test -d /usr/nec; then 8052 lt_prog_compiler_pic=-Kconform_pic 8053 fi 8054 ;; 8055 8056 *) 8057 lt_prog_compiler_pic='-fPIC' 8058 ;; 8059 esac 8060 8061 case $cc_basename in 8062 nvcc*) # Cuda Compiler Driver 2.2 8063 lt_prog_compiler_wl='-Xlinker ' 8064 if test -n "$lt_prog_compiler_pic"; then 8065 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8066 fi 8067 ;; 8068 esac 8069 else 8070 # PORTME Check for flag to pass linker flags through the system compiler. 8071 case $host_os in 8072 aix*) 8073 lt_prog_compiler_wl='-Wl,' 8074 if test "$host_cpu" = ia64; then 8075 # AIX 5 now supports IA64 processor 8076 lt_prog_compiler_static='-Bstatic' 8077 else 8078 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8079 fi 8080 ;; 8081 8082 mingw* | cygwin* | pw32* | os2* | cegcc*) 8083 # This hack is so that the source file can tell whether it is being 8084 # built for inclusion in a dll (and should export symbols for example). 8085 lt_prog_compiler_pic='-DDLL_EXPORT' 8086 ;; 8087 8088 hpux9* | hpux10* | hpux11*) 8089 lt_prog_compiler_wl='-Wl,' 8090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8091 # not for PA HP-UX. 8092 case $host_cpu in 8093 hppa*64*|ia64*) 8094 # +Z the default 8095 ;; 8096 *) 8097 lt_prog_compiler_pic='+Z' 8098 ;; 8099 esac 8100 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8101 lt_prog_compiler_static='${wl}-a ${wl}archive' 8102 ;; 8103 8104 irix5* | irix6* | nonstopux*) 8105 lt_prog_compiler_wl='-Wl,' 8106 # PIC (with -KPIC) is the default. 8107 lt_prog_compiler_static='-non_shared' 8108 ;; 8109 8110 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8111 case $cc_basename in 8112 # old Intel for x86_64 which still supported -KPIC. 8113 ecc*) 8114 lt_prog_compiler_wl='-Wl,' 8115 lt_prog_compiler_pic='-KPIC' 8116 lt_prog_compiler_static='-static' 8117 ;; 8118 # icc used to be incompatible with GCC. 8119 # ICC 10 doesn't accept -KPIC any more. 8120 icc* | ifort*) 8121 lt_prog_compiler_wl='-Wl,' 8122 lt_prog_compiler_pic='-fPIC' 8123 lt_prog_compiler_static='-static' 8124 ;; 8125 # Lahey Fortran 8.1. 8126 lf95*) 8127 lt_prog_compiler_wl='-Wl,' 8128 lt_prog_compiler_pic='--shared' 8129 lt_prog_compiler_static='--static' 8130 ;; 8131 nagfor*) 8132 # NAG Fortran compiler 8133 lt_prog_compiler_wl='-Wl,-Wl,,' 8134 lt_prog_compiler_pic='-PIC' 8135 lt_prog_compiler_static='-Bstatic' 8136 ;; 8137 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8138 # Portland Group compilers (*not* the Pentium gcc compiler, 8139 # which looks to be a dead project) 8140 lt_prog_compiler_wl='-Wl,' 8141 lt_prog_compiler_pic='-fpic' 8142 lt_prog_compiler_static='-Bstatic' 8143 ;; 8144 ccc*) 8145 lt_prog_compiler_wl='-Wl,' 8146 # All Alpha code is PIC. 8147 lt_prog_compiler_static='-non_shared' 8148 ;; 8149 xl* | bgxl* | bgf* | mpixl*) 8150 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8151 lt_prog_compiler_wl='-Wl,' 8152 lt_prog_compiler_pic='-qpic' 8153 lt_prog_compiler_static='-qstaticlink' 8154 ;; 8155 *) 8156 case `$CC -V 2>&1 | sed 5q` in 8157 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8158 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8159 lt_prog_compiler_pic='-KPIC' 8160 lt_prog_compiler_static='-Bstatic' 8161 lt_prog_compiler_wl='' 8162 ;; 8163 *Sun\ F* | *Sun*Fortran*) 8164 lt_prog_compiler_pic='-KPIC' 8165 lt_prog_compiler_static='-Bstatic' 8166 lt_prog_compiler_wl='-Qoption ld ' 8167 ;; 8168 *Sun\ C*) 8169 # Sun C 5.9 8170 lt_prog_compiler_pic='-KPIC' 8171 lt_prog_compiler_static='-Bstatic' 8172 lt_prog_compiler_wl='-Wl,' 8173 ;; 8174 *Intel*\ [CF]*Compiler*) 8175 lt_prog_compiler_wl='-Wl,' 8176 lt_prog_compiler_pic='-fPIC' 8177 lt_prog_compiler_static='-static' 8178 ;; 8179 *Portland\ Group*) 8180 lt_prog_compiler_wl='-Wl,' 8181 lt_prog_compiler_pic='-fpic' 8182 lt_prog_compiler_static='-Bstatic' 8183 ;; 8184 esac 8185 ;; 8186 esac 8187 ;; 8188 8189 newsos6) 8190 lt_prog_compiler_pic='-KPIC' 8191 lt_prog_compiler_static='-Bstatic' 8192 ;; 8193 8194 *nto* | *qnx*) 8195 # QNX uses GNU C++, but need to define -shared option too, otherwise 8196 # it will coredump. 8197 lt_prog_compiler_pic='-fPIC -shared' 8198 ;; 8199 8200 osf3* | osf4* | osf5*) 8201 lt_prog_compiler_wl='-Wl,' 8202 # All OSF/1 code is PIC. 8203 lt_prog_compiler_static='-non_shared' 8204 ;; 8205 8206 rdos*) 8207 lt_prog_compiler_static='-non_shared' 8208 ;; 8209 8210 solaris*) 8211 lt_prog_compiler_pic='-KPIC' 8212 lt_prog_compiler_static='-Bstatic' 8213 case $cc_basename in 8214 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8215 lt_prog_compiler_wl='-Qoption ld ';; 8216 *) 8217 lt_prog_compiler_wl='-Wl,';; 8218 esac 8219 ;; 8220 8221 sunos4*) 8222 lt_prog_compiler_wl='-Qoption ld ' 8223 lt_prog_compiler_pic='-PIC' 8224 lt_prog_compiler_static='-Bstatic' 8225 ;; 8226 8227 sysv4 | sysv4.2uw2* | sysv4.3*) 8228 lt_prog_compiler_wl='-Wl,' 8229 lt_prog_compiler_pic='-KPIC' 8230 lt_prog_compiler_static='-Bstatic' 8231 ;; 8232 8233 sysv4*MP*) 8234 if test -d /usr/nec ;then 8235 lt_prog_compiler_pic='-Kconform_pic' 8236 lt_prog_compiler_static='-Bstatic' 8237 fi 8238 ;; 8239 8240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8241 lt_prog_compiler_wl='-Wl,' 8242 lt_prog_compiler_pic='-KPIC' 8243 lt_prog_compiler_static='-Bstatic' 8244 ;; 8245 8246 unicos*) 8247 lt_prog_compiler_wl='-Wl,' 8248 lt_prog_compiler_can_build_shared=no 8249 ;; 8250 8251 uts4*) 8252 lt_prog_compiler_pic='-pic' 8253 lt_prog_compiler_static='-Bstatic' 8254 ;; 8255 8256 *) 8257 lt_prog_compiler_can_build_shared=no 8258 ;; 8259 esac 8260 fi 8261 8262case $host_os in 8263 # For platforms which do not support PIC, -DPIC is meaningless: 8264 *djgpp*) 8265 lt_prog_compiler_pic= 8266 ;; 8267 *) 8268 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8269 ;; 8270esac 8271 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8273$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8274if ${lt_cv_prog_compiler_pic+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276else 8277 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8278fi 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8280$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8281lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8282 8283# 8284# Check to make sure the PIC flag actually works. 8285# 8286if test -n "$lt_prog_compiler_pic"; then 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8288$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8289if ${lt_cv_prog_compiler_pic_works+:} false; then : 8290 $as_echo_n "(cached) " >&6 8291else 8292 lt_cv_prog_compiler_pic_works=no 8293 ac_outfile=conftest.$ac_objext 8294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8295 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8296 # Insert the option either (1) after the last *FLAGS variable, or 8297 # (2) before a word containing "conftest.", or (3) at the end. 8298 # Note that $ac_compile itself does not contain backslashes and begins 8299 # with a dollar sign (not a hyphen), so the echo should work correctly. 8300 # The option is referenced via a variable to avoid confusing sed. 8301 lt_compile=`echo "$ac_compile" | $SED \ 8302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8304 -e 's:$: $lt_compiler_flag:'` 8305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8306 (eval "$lt_compile" 2>conftest.err) 8307 ac_status=$? 8308 cat conftest.err >&5 8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8310 if (exit $ac_status) && test -s "$ac_outfile"; then 8311 # The compiler can only warn and ignore the option if not recognized 8312 # So say no if there are warnings other than the usual output. 8313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8315 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8316 lt_cv_prog_compiler_pic_works=yes 8317 fi 8318 fi 8319 $RM conftest* 8320 8321fi 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8323$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8324 8325if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8326 case $lt_prog_compiler_pic in 8327 "" | " "*) ;; 8328 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8329 esac 8330else 8331 lt_prog_compiler_pic= 8332 lt_prog_compiler_can_build_shared=no 8333fi 8334 8335fi 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347# 8348# Check to make sure the static flag actually works. 8349# 8350wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8352$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8353if ${lt_cv_prog_compiler_static_works+:} false; then : 8354 $as_echo_n "(cached) " >&6 8355else 8356 lt_cv_prog_compiler_static_works=no 8357 save_LDFLAGS="$LDFLAGS" 8358 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8359 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8361 # The linker can only warn and ignore the option if not recognized 8362 # So say no if there are warnings 8363 if test -s conftest.err; then 8364 # Append any errors to the config.log. 8365 cat conftest.err 1>&5 8366 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8368 if diff conftest.exp conftest.er2 >/dev/null; then 8369 lt_cv_prog_compiler_static_works=yes 8370 fi 8371 else 8372 lt_cv_prog_compiler_static_works=yes 8373 fi 8374 fi 8375 $RM -r conftest* 8376 LDFLAGS="$save_LDFLAGS" 8377 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8380$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8381 8382if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8383 : 8384else 8385 lt_prog_compiler_static= 8386fi 8387 8388 8389 8390 8391 8392 8393 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8395$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8396if ${lt_cv_prog_compiler_c_o+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 lt_cv_prog_compiler_c_o=no 8400 $RM -r conftest 2>/dev/null 8401 mkdir conftest 8402 cd conftest 8403 mkdir out 8404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8405 8406 lt_compiler_flag="-o out/conftest2.$ac_objext" 8407 # Insert the option either (1) after the last *FLAGS variable, or 8408 # (2) before a word containing "conftest.", or (3) at the end. 8409 # Note that $ac_compile itself does not contain backslashes and begins 8410 # with a dollar sign (not a hyphen), so the echo should work correctly. 8411 lt_compile=`echo "$ac_compile" | $SED \ 8412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8414 -e 's:$: $lt_compiler_flag:'` 8415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8416 (eval "$lt_compile" 2>out/conftest.err) 8417 ac_status=$? 8418 cat out/conftest.err >&5 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8421 then 8422 # The compiler can only warn and ignore the option if not recognized 8423 # So say no if there are warnings 8424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8427 lt_cv_prog_compiler_c_o=yes 8428 fi 8429 fi 8430 chmod u+w . 2>&5 8431 $RM conftest* 8432 # SGI C++ compiler will create directory out/ii_files/ for 8433 # template instantiation 8434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8435 $RM out/* && rmdir out 8436 cd .. 8437 $RM -r conftest 8438 $RM conftest* 8439 8440fi 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8442$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8443 8444 8445 8446 8447 8448 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8450$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8451if ${lt_cv_prog_compiler_c_o+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453else 8454 lt_cv_prog_compiler_c_o=no 8455 $RM -r conftest 2>/dev/null 8456 mkdir conftest 8457 cd conftest 8458 mkdir out 8459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8460 8461 lt_compiler_flag="-o out/conftest2.$ac_objext" 8462 # Insert the option either (1) after the last *FLAGS variable, or 8463 # (2) before a word containing "conftest.", or (3) at the end. 8464 # Note that $ac_compile itself does not contain backslashes and begins 8465 # with a dollar sign (not a hyphen), so the echo should work correctly. 8466 lt_compile=`echo "$ac_compile" | $SED \ 8467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8469 -e 's:$: $lt_compiler_flag:'` 8470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8471 (eval "$lt_compile" 2>out/conftest.err) 8472 ac_status=$? 8473 cat out/conftest.err >&5 8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8475 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8476 then 8477 # The compiler can only warn and ignore the option if not recognized 8478 # So say no if there are warnings 8479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8482 lt_cv_prog_compiler_c_o=yes 8483 fi 8484 fi 8485 chmod u+w . 2>&5 8486 $RM conftest* 8487 # SGI C++ compiler will create directory out/ii_files/ for 8488 # template instantiation 8489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8490 $RM out/* && rmdir out 8491 cd .. 8492 $RM -r conftest 8493 $RM conftest* 8494 8495fi 8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8497$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8498 8499 8500 8501 8502hard_links="nottested" 8503if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8504 # do not overwrite the value of need_locks provided by the user 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8506$as_echo_n "checking if we can lock with hard links... " >&6; } 8507 hard_links=yes 8508 $RM conftest* 8509 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8510 touch conftest.a 8511 ln conftest.a conftest.b 2>&5 || hard_links=no 8512 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8514$as_echo "$hard_links" >&6; } 8515 if test "$hard_links" = no; then 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8517$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8518 need_locks=warn 8519 fi 8520else 8521 need_locks=no 8522fi 8523 8524 8525 8526 8527 8528 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8530$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8531 8532 runpath_var= 8533 allow_undefined_flag= 8534 always_export_symbols=no 8535 archive_cmds= 8536 archive_expsym_cmds= 8537 compiler_needs_object=no 8538 enable_shared_with_static_runtimes=no 8539 export_dynamic_flag_spec= 8540 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8541 hardcode_automatic=no 8542 hardcode_direct=no 8543 hardcode_direct_absolute=no 8544 hardcode_libdir_flag_spec= 8545 hardcode_libdir_separator= 8546 hardcode_minus_L=no 8547 hardcode_shlibpath_var=unsupported 8548 inherit_rpath=no 8549 link_all_deplibs=unknown 8550 module_cmds= 8551 module_expsym_cmds= 8552 old_archive_from_new_cmds= 8553 old_archive_from_expsyms_cmds= 8554 thread_safe_flag_spec= 8555 whole_archive_flag_spec= 8556 # include_expsyms should be a list of space-separated symbols to be *always* 8557 # included in the symbol list 8558 include_expsyms= 8559 # exclude_expsyms can be an extended regexp of symbols to exclude 8560 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8561 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8562 # as well as any symbol that contains `d'. 8563 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8565 # platforms (ab)use it in PIC code, but their linkers get confused if 8566 # the symbol is explicitly referenced. Since portable code cannot 8567 # rely on this symbol name, it's probably fine to never include it in 8568 # preloaded symbol tables. 8569 # Exclude shared library initialization/finalization symbols. 8570 extract_expsyms_cmds= 8571 8572 case $host_os in 8573 cygwin* | mingw* | pw32* | cegcc*) 8574 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8575 # When not using gcc, we currently assume that we are using 8576 # Microsoft Visual C++. 8577 if test "$GCC" != yes; then 8578 with_gnu_ld=no 8579 fi 8580 ;; 8581 interix*) 8582 # we just hope/assume this is gcc and not c89 (= MSVC++) 8583 with_gnu_ld=yes 8584 ;; 8585 openbsd*) 8586 with_gnu_ld=no 8587 ;; 8588 esac 8589 8590 ld_shlibs=yes 8591 8592 # On some targets, GNU ld is compatible enough with the native linker 8593 # that we're better off using the native interface for both. 8594 lt_use_gnu_ld_interface=no 8595 if test "$with_gnu_ld" = yes; then 8596 case $host_os in 8597 aix*) 8598 # The AIX port of GNU ld has always aspired to compatibility 8599 # with the native linker. However, as the warning in the GNU ld 8600 # block says, versions before 2.19.5* couldn't really create working 8601 # shared libraries, regardless of the interface used. 8602 case `$LD -v 2>&1` in 8603 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8604 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8605 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8606 *) 8607 lt_use_gnu_ld_interface=yes 8608 ;; 8609 esac 8610 ;; 8611 *) 8612 lt_use_gnu_ld_interface=yes 8613 ;; 8614 esac 8615 fi 8616 8617 if test "$lt_use_gnu_ld_interface" = yes; then 8618 # If archive_cmds runs LD, not CC, wlarc should be empty 8619 wlarc='${wl}' 8620 8621 # Set some defaults for GNU ld with shared library support. These 8622 # are reset later if shared libraries are not supported. Putting them 8623 # here allows them to be overridden if necessary. 8624 runpath_var=LD_RUN_PATH 8625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8626 export_dynamic_flag_spec='${wl}--export-dynamic' 8627 # ancient GNU ld didn't support --whole-archive et. al. 8628 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8629 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8630 else 8631 whole_archive_flag_spec= 8632 fi 8633 supports_anon_versioning=no 8634 case `$LD -v 2>&1` in 8635 *GNU\ gold*) supports_anon_versioning=yes ;; 8636 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8637 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8638 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8639 *\ 2.11.*) ;; # other 2.11 versions 8640 *) supports_anon_versioning=yes ;; 8641 esac 8642 8643 # See if GNU ld supports shared libraries. 8644 case $host_os in 8645 aix[3-9]*) 8646 # On AIX/PPC, the GNU linker is very broken 8647 if test "$host_cpu" != ia64; then 8648 ld_shlibs=no 8649 cat <<_LT_EOF 1>&2 8650 8651*** Warning: the GNU linker, at least up to release 2.19, is reported 8652*** to be unable to reliably create shared libraries on AIX. 8653*** Therefore, libtool is disabling shared libraries support. If you 8654*** really care for shared libraries, you may want to install binutils 8655*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8656*** You will then need to restart the configuration process. 8657 8658_LT_EOF 8659 fi 8660 ;; 8661 8662 amigaos*) 8663 case $host_cpu in 8664 powerpc) 8665 # see comment about AmigaOS4 .so support 8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8667 archive_expsym_cmds='' 8668 ;; 8669 m68k) 8670 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)' 8671 hardcode_libdir_flag_spec='-L$libdir' 8672 hardcode_minus_L=yes 8673 ;; 8674 esac 8675 ;; 8676 8677 beos*) 8678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8679 allow_undefined_flag=unsupported 8680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8681 # support --undefined. This deserves some investigation. FIXME 8682 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8683 else 8684 ld_shlibs=no 8685 fi 8686 ;; 8687 8688 cygwin* | mingw* | pw32* | cegcc*) 8689 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8690 # as there is no search path for DLLs. 8691 hardcode_libdir_flag_spec='-L$libdir' 8692 export_dynamic_flag_spec='${wl}--export-all-symbols' 8693 allow_undefined_flag=unsupported 8694 always_export_symbols=no 8695 enable_shared_with_static_runtimes=yes 8696 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' 8697 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8698 8699 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8701 # If the export-symbols file already is a .def file (1st line 8702 # is EXPORTS), use it as is; otherwise, prepend... 8703 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8704 cp $export_symbols $output_objdir/$soname.def; 8705 else 8706 echo EXPORTS > $output_objdir/$soname.def; 8707 cat $export_symbols >> $output_objdir/$soname.def; 8708 fi~ 8709 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8710 else 8711 ld_shlibs=no 8712 fi 8713 ;; 8714 8715 haiku*) 8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8717 link_all_deplibs=yes 8718 ;; 8719 8720 interix[3-9]*) 8721 hardcode_direct=no 8722 hardcode_shlibpath_var=no 8723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8724 export_dynamic_flag_spec='${wl}-E' 8725 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8726 # Instead, shared libraries are loaded at an image base (0x10000000 by 8727 # default) and relocated if they conflict, which is a slow very memory 8728 # consuming and fragmenting process. To avoid this, we pick a random, 8729 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8730 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8732 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' 8733 ;; 8734 8735 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8736 tmp_diet=no 8737 if test "$host_os" = linux-dietlibc; then 8738 case $cc_basename in 8739 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8740 esac 8741 fi 8742 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8743 && test "$tmp_diet" = no 8744 then 8745 tmp_addflag=' $pic_flag' 8746 tmp_sharedflag='-shared' 8747 case $cc_basename,$host_cpu in 8748 pgcc*) # Portland Group C compiler 8749 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' 8750 tmp_addflag=' $pic_flag' 8751 ;; 8752 pgf77* | pgf90* | pgf95* | pgfortran*) 8753 # Portland Group f77 and f90 compilers 8754 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' 8755 tmp_addflag=' $pic_flag -Mnomain' ;; 8756 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8757 tmp_addflag=' -i_dynamic' ;; 8758 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8759 tmp_addflag=' -i_dynamic -nofor_main' ;; 8760 ifc* | ifort*) # Intel Fortran compiler 8761 tmp_addflag=' -nofor_main' ;; 8762 lf95*) # Lahey Fortran 8.1 8763 whole_archive_flag_spec= 8764 tmp_sharedflag='--shared' ;; 8765 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8766 tmp_sharedflag='-qmkshrobj' 8767 tmp_addflag= ;; 8768 nvcc*) # Cuda Compiler Driver 2.2 8769 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' 8770 compiler_needs_object=yes 8771 ;; 8772 esac 8773 case `$CC -V 2>&1 | sed 5q` in 8774 *Sun\ C*) # Sun C 5.9 8775 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' 8776 compiler_needs_object=yes 8777 tmp_sharedflag='-G' ;; 8778 *Sun\ F*) # Sun Fortran 8.3 8779 tmp_sharedflag='-G' ;; 8780 esac 8781 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8782 8783 if test "x$supports_anon_versioning" = xyes; then 8784 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8786 echo "local: *; };" >> $output_objdir/$libname.ver~ 8787 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8788 fi 8789 8790 case $cc_basename in 8791 xlf* | bgf* | bgxlf* | mpixlf*) 8792 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8793 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8795 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8796 if test "x$supports_anon_versioning" = xyes; then 8797 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8799 echo "local: *; };" >> $output_objdir/$libname.ver~ 8800 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8801 fi 8802 ;; 8803 esac 8804 else 8805 ld_shlibs=no 8806 fi 8807 ;; 8808 8809 netbsd*) 8810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8811 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8812 wlarc= 8813 else 8814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8815 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8816 fi 8817 ;; 8818 8819 solaris*) 8820 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8821 ld_shlibs=no 8822 cat <<_LT_EOF 1>&2 8823 8824*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8825*** create shared libraries on Solaris systems. Therefore, libtool 8826*** is disabling shared libraries support. We urge you to upgrade GNU 8827*** binutils to release 2.9.1 or newer. Another option is to modify 8828*** your PATH or compiler configuration so that the native linker is 8829*** used, and then restart. 8830 8831_LT_EOF 8832 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8833 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8834 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8835 else 8836 ld_shlibs=no 8837 fi 8838 ;; 8839 8840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8841 case `$LD -v 2>&1` in 8842 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8843 ld_shlibs=no 8844 cat <<_LT_EOF 1>&2 8845 8846*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8847*** reliably create shared libraries on SCO systems. Therefore, libtool 8848*** is disabling shared libraries support. We urge you to upgrade GNU 8849*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8850*** your PATH or compiler configuration so that the native linker is 8851*** used, and then restart. 8852 8853_LT_EOF 8854 ;; 8855 *) 8856 # For security reasons, it is highly recommended that you always 8857 # use absolute paths for naming shared libraries, and exclude the 8858 # DT_RUNPATH tag from executables and libraries. But doing so 8859 # requires that you compile everything twice, which is a pain. 8860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8864 else 8865 ld_shlibs=no 8866 fi 8867 ;; 8868 esac 8869 ;; 8870 8871 sunos4*) 8872 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8873 wlarc= 8874 hardcode_direct=yes 8875 hardcode_shlibpath_var=no 8876 ;; 8877 8878 *) 8879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8881 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8882 else 8883 ld_shlibs=no 8884 fi 8885 ;; 8886 esac 8887 8888 if test "$ld_shlibs" = no; then 8889 runpath_var= 8890 hardcode_libdir_flag_spec= 8891 export_dynamic_flag_spec= 8892 whole_archive_flag_spec= 8893 fi 8894 else 8895 # PORTME fill in a description of your system's linker (not GNU ld) 8896 case $host_os in 8897 aix3*) 8898 allow_undefined_flag=unsupported 8899 always_export_symbols=yes 8900 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' 8901 # Note: this linker hardcodes the directories in LIBPATH if there 8902 # are no directories specified by -L. 8903 hardcode_minus_L=yes 8904 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8905 # Neither direct hardcoding nor static linking is supported with a 8906 # broken collect2. 8907 hardcode_direct=unsupported 8908 fi 8909 ;; 8910 8911 aix[4-9]*) 8912 if test "$host_cpu" = ia64; then 8913 # On IA64, the linker does run time linking by default, so we don't 8914 # have to do anything special. 8915 aix_use_runtimelinking=no 8916 exp_sym_flag='-Bexport' 8917 no_entry_flag="" 8918 else 8919 # If we're using GNU nm, then we don't want the "-C" option. 8920 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8921 # Also, AIX nm treats weak defined symbols like other global 8922 # defined symbols, whereas GNU nm marks them as "W". 8923 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8924 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' 8925 else 8926 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' 8927 fi 8928 aix_use_runtimelinking=no 8929 8930 # Test if we are trying to use run time linking or normal 8931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8932 # need to do runtime linking. 8933 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8934 for ld_flag in $LDFLAGS; do 8935 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8936 aix_use_runtimelinking=yes 8937 break 8938 fi 8939 done 8940 ;; 8941 esac 8942 8943 exp_sym_flag='-bexport' 8944 no_entry_flag='-bnoentry' 8945 fi 8946 8947 # When large executables or shared objects are built, AIX ld can 8948 # have problems creating the table of contents. If linking a library 8949 # or program results in "error TOC overflow" add -mminimal-toc to 8950 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8951 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8952 8953 archive_cmds='' 8954 hardcode_direct=yes 8955 hardcode_direct_absolute=yes 8956 hardcode_libdir_separator=':' 8957 link_all_deplibs=yes 8958 file_list_spec='${wl}-f,' 8959 8960 if test "$GCC" = yes; then 8961 case $host_os in aix4.[012]|aix4.[012].*) 8962 # We only want to do this on AIX 4.2 and lower, the check 8963 # below for broken collect2 doesn't work under 4.3+ 8964 collect2name=`${CC} -print-prog-name=collect2` 8965 if test -f "$collect2name" && 8966 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8967 then 8968 # We have reworked collect2 8969 : 8970 else 8971 # We have old collect2 8972 hardcode_direct=unsupported 8973 # It fails to find uninstalled libraries when the uninstalled 8974 # path is not listed in the libpath. Setting hardcode_minus_L 8975 # to unsupported forces relinking 8976 hardcode_minus_L=yes 8977 hardcode_libdir_flag_spec='-L$libdir' 8978 hardcode_libdir_separator= 8979 fi 8980 ;; 8981 esac 8982 shared_flag='-shared' 8983 if test "$aix_use_runtimelinking" = yes; then 8984 shared_flag="$shared_flag "'${wl}-G' 8985 fi 8986 else 8987 # not using gcc 8988 if test "$host_cpu" = ia64; then 8989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8990 # chokes on -Wl,-G. The following line is correct: 8991 shared_flag='-G' 8992 else 8993 if test "$aix_use_runtimelinking" = yes; then 8994 shared_flag='${wl}-G' 8995 else 8996 shared_flag='${wl}-bM:SRE' 8997 fi 8998 fi 8999 fi 9000 9001 export_dynamic_flag_spec='${wl}-bexpall' 9002 # It seems that -bexpall does not export symbols beginning with 9003 # underscore (_), so it is better to generate a list of symbols to export. 9004 always_export_symbols=yes 9005 if test "$aix_use_runtimelinking" = yes; then 9006 # Warning - without using the other runtime loading flags (-brtl), 9007 # -berok will link without error, but may produce a broken library. 9008 allow_undefined_flag='-berok' 9009 # Determine the default libpath from the value encoded in an 9010 # empty executable. 9011 if test "${lt_cv_aix_libpath+set}" = set; then 9012 aix_libpath=$lt_cv_aix_libpath 9013else 9014 if ${lt_cv_aix_libpath_+:} false; then : 9015 $as_echo_n "(cached) " >&6 9016else 9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9018/* end confdefs.h. */ 9019 9020int 9021main () 9022{ 9023 9024 ; 9025 return 0; 9026} 9027_ACEOF 9028if ac_fn_c_try_link "$LINENO"; then : 9029 9030 lt_aix_libpath_sed=' 9031 /Import File Strings/,/^$/ { 9032 /^0/ { 9033 s/^0 *\([^ ]*\) *$/\1/ 9034 p 9035 } 9036 }' 9037 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9038 # Check for a 64-bit object if we didn't find anything. 9039 if test -z "$lt_cv_aix_libpath_"; then 9040 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9041 fi 9042fi 9043rm -f core conftest.err conftest.$ac_objext \ 9044 conftest$ac_exeext conftest.$ac_ext 9045 if test -z "$lt_cv_aix_libpath_"; then 9046 lt_cv_aix_libpath_="/usr/lib:/lib" 9047 fi 9048 9049fi 9050 9051 aix_libpath=$lt_cv_aix_libpath_ 9052fi 9053 9054 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9055 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" 9056 else 9057 if test "$host_cpu" = ia64; then 9058 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9059 allow_undefined_flag="-z nodefs" 9060 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" 9061 else 9062 # Determine the default libpath from the value encoded in an 9063 # empty executable. 9064 if test "${lt_cv_aix_libpath+set}" = set; then 9065 aix_libpath=$lt_cv_aix_libpath 9066else 9067 if ${lt_cv_aix_libpath_+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071/* end confdefs.h. */ 9072 9073int 9074main () 9075{ 9076 9077 ; 9078 return 0; 9079} 9080_ACEOF 9081if ac_fn_c_try_link "$LINENO"; then : 9082 9083 lt_aix_libpath_sed=' 9084 /Import File Strings/,/^$/ { 9085 /^0/ { 9086 s/^0 *\([^ ]*\) *$/\1/ 9087 p 9088 } 9089 }' 9090 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9091 # Check for a 64-bit object if we didn't find anything. 9092 if test -z "$lt_cv_aix_libpath_"; then 9093 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9094 fi 9095fi 9096rm -f core conftest.err conftest.$ac_objext \ 9097 conftest$ac_exeext conftest.$ac_ext 9098 if test -z "$lt_cv_aix_libpath_"; then 9099 lt_cv_aix_libpath_="/usr/lib:/lib" 9100 fi 9101 9102fi 9103 9104 aix_libpath=$lt_cv_aix_libpath_ 9105fi 9106 9107 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9108 # Warning - without using the other run time loading flags, 9109 # -berok will link without error, but may produce a broken library. 9110 no_undefined_flag=' ${wl}-bernotok' 9111 allow_undefined_flag=' ${wl}-berok' 9112 if test "$with_gnu_ld" = yes; then 9113 # We only use this code for GNU lds that support --whole-archive. 9114 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9115 else 9116 # Exported symbols can be pulled into shared objects from archives 9117 whole_archive_flag_spec='$convenience' 9118 fi 9119 archive_cmds_need_lc=yes 9120 # This is similar to how AIX traditionally builds its shared libraries. 9121 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' 9122 fi 9123 fi 9124 ;; 9125 9126 amigaos*) 9127 case $host_cpu in 9128 powerpc) 9129 # see comment about AmigaOS4 .so support 9130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9131 archive_expsym_cmds='' 9132 ;; 9133 m68k) 9134 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)' 9135 hardcode_libdir_flag_spec='-L$libdir' 9136 hardcode_minus_L=yes 9137 ;; 9138 esac 9139 ;; 9140 9141 bsdi[45]*) 9142 export_dynamic_flag_spec=-rdynamic 9143 ;; 9144 9145 cygwin* | mingw* | pw32* | cegcc*) 9146 # When not using gcc, we currently assume that we are using 9147 # Microsoft Visual C++. 9148 # hardcode_libdir_flag_spec is actually meaningless, as there is 9149 # no search path for DLLs. 9150 case $cc_basename in 9151 cl*) 9152 # Native MSVC 9153 hardcode_libdir_flag_spec=' ' 9154 allow_undefined_flag=unsupported 9155 always_export_symbols=yes 9156 file_list_spec='@' 9157 # Tell ltmain to make .lib files, not .a files. 9158 libext=lib 9159 # Tell ltmain to make .dll files, not .so files. 9160 shrext_cmds=".dll" 9161 # FIXME: Setting linknames here is a bad hack. 9162 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9163 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9164 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9165 else 9166 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9167 fi~ 9168 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9169 linknames=' 9170 # The linker will not automatically build a static lib if we build a DLL. 9171 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9172 enable_shared_with_static_runtimes=yes 9173 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9175 # Don't use ranlib 9176 old_postinstall_cmds='chmod 644 $oldlib' 9177 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9178 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9179 case $lt_outputfile in 9180 *.exe|*.EXE) ;; 9181 *) 9182 lt_outputfile="$lt_outputfile.exe" 9183 lt_tool_outputfile="$lt_tool_outputfile.exe" 9184 ;; 9185 esac~ 9186 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9187 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9188 $RM "$lt_outputfile.manifest"; 9189 fi' 9190 ;; 9191 *) 9192 # Assume MSVC wrapper 9193 hardcode_libdir_flag_spec=' ' 9194 allow_undefined_flag=unsupported 9195 # Tell ltmain to make .lib files, not .a files. 9196 libext=lib 9197 # Tell ltmain to make .dll files, not .so files. 9198 shrext_cmds=".dll" 9199 # FIXME: Setting linknames here is a bad hack. 9200 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9201 # The linker will automatically build a .lib file if we build a DLL. 9202 old_archive_from_new_cmds='true' 9203 # FIXME: Should let the user specify the lib program. 9204 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9205 enable_shared_with_static_runtimes=yes 9206 ;; 9207 esac 9208 ;; 9209 9210 darwin* | rhapsody*) 9211 9212 9213 archive_cmds_need_lc=no 9214 hardcode_direct=no 9215 hardcode_automatic=yes 9216 hardcode_shlibpath_var=unsupported 9217 if test "$lt_cv_ld_force_load" = "yes"; then 9218 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\"`' 9219 9220 else 9221 whole_archive_flag_spec='' 9222 fi 9223 link_all_deplibs=yes 9224 allow_undefined_flag="$_lt_dar_allow_undefined" 9225 case $cc_basename in 9226 ifort*) _lt_dar_can_shared=yes ;; 9227 *) _lt_dar_can_shared=$GCC ;; 9228 esac 9229 if test "$_lt_dar_can_shared" = "yes"; then 9230 output_verbose_link_cmd=func_echo_all 9231 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9232 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9233 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}" 9234 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}" 9235 9236 else 9237 ld_shlibs=no 9238 fi 9239 9240 ;; 9241 9242 dgux*) 9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9244 hardcode_libdir_flag_spec='-L$libdir' 9245 hardcode_shlibpath_var=no 9246 ;; 9247 9248 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9249 # support. Future versions do this automatically, but an explicit c++rt0.o 9250 # does not break anything, and helps significantly (at the cost of a little 9251 # extra space). 9252 freebsd2.2*) 9253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9254 hardcode_libdir_flag_spec='-R$libdir' 9255 hardcode_direct=yes 9256 hardcode_shlibpath_var=no 9257 ;; 9258 9259 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9260 freebsd2.*) 9261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9262 hardcode_direct=yes 9263 hardcode_minus_L=yes 9264 hardcode_shlibpath_var=no 9265 ;; 9266 9267 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9268 freebsd* | dragonfly*) 9269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9270 hardcode_libdir_flag_spec='-R$libdir' 9271 hardcode_direct=yes 9272 hardcode_shlibpath_var=no 9273 ;; 9274 9275 hpux9*) 9276 if test "$GCC" = yes; then 9277 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' 9278 else 9279 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' 9280 fi 9281 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9282 hardcode_libdir_separator=: 9283 hardcode_direct=yes 9284 9285 # hardcode_minus_L: Not really in the search PATH, 9286 # but as the default location of the library. 9287 hardcode_minus_L=yes 9288 export_dynamic_flag_spec='${wl}-E' 9289 ;; 9290 9291 hpux10*) 9292 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9293 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9294 else 9295 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9296 fi 9297 if test "$with_gnu_ld" = no; then 9298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9299 hardcode_libdir_separator=: 9300 hardcode_direct=yes 9301 hardcode_direct_absolute=yes 9302 export_dynamic_flag_spec='${wl}-E' 9303 # hardcode_minus_L: Not really in the search PATH, 9304 # but as the default location of the library. 9305 hardcode_minus_L=yes 9306 fi 9307 ;; 9308 9309 hpux11*) 9310 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9311 case $host_cpu in 9312 hppa*64*) 9313 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9314 ;; 9315 ia64*) 9316 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9317 ;; 9318 *) 9319 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9320 ;; 9321 esac 9322 else 9323 case $host_cpu in 9324 hppa*64*) 9325 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9326 ;; 9327 ia64*) 9328 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9329 ;; 9330 *) 9331 9332 # Older versions of the 11.00 compiler do not understand -b yet 9333 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9335$as_echo_n "checking if $CC understands -b... " >&6; } 9336if ${lt_cv_prog_compiler__b+:} false; then : 9337 $as_echo_n "(cached) " >&6 9338else 9339 lt_cv_prog_compiler__b=no 9340 save_LDFLAGS="$LDFLAGS" 9341 LDFLAGS="$LDFLAGS -b" 9342 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9343 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9344 # The linker can only warn and ignore the option if not recognized 9345 # So say no if there are warnings 9346 if test -s conftest.err; then 9347 # Append any errors to the config.log. 9348 cat conftest.err 1>&5 9349 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9351 if diff conftest.exp conftest.er2 >/dev/null; then 9352 lt_cv_prog_compiler__b=yes 9353 fi 9354 else 9355 lt_cv_prog_compiler__b=yes 9356 fi 9357 fi 9358 $RM -r conftest* 9359 LDFLAGS="$save_LDFLAGS" 9360 9361fi 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9363$as_echo "$lt_cv_prog_compiler__b" >&6; } 9364 9365if test x"$lt_cv_prog_compiler__b" = xyes; then 9366 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9367else 9368 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9369fi 9370 9371 ;; 9372 esac 9373 fi 9374 if test "$with_gnu_ld" = no; then 9375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9376 hardcode_libdir_separator=: 9377 9378 case $host_cpu in 9379 hppa*64*|ia64*) 9380 hardcode_direct=no 9381 hardcode_shlibpath_var=no 9382 ;; 9383 *) 9384 hardcode_direct=yes 9385 hardcode_direct_absolute=yes 9386 export_dynamic_flag_spec='${wl}-E' 9387 9388 # hardcode_minus_L: Not really in the search PATH, 9389 # but as the default location of the library. 9390 hardcode_minus_L=yes 9391 ;; 9392 esac 9393 fi 9394 ;; 9395 9396 irix5* | irix6* | nonstopux*) 9397 if test "$GCC" = yes; then 9398 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' 9399 # Try to use the -exported_symbol ld option, if it does not 9400 # work, assume that -exports_file does not work either and 9401 # implicitly export all symbols. 9402 # This should be the same for all languages, so no per-tag cache variable. 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9404$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9405if ${lt_cv_irix_exported_symbol+:} false; then : 9406 $as_echo_n "(cached) " >&6 9407else 9408 save_LDFLAGS="$LDFLAGS" 9409 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9411/* end confdefs.h. */ 9412int foo (void) { return 0; } 9413_ACEOF 9414if ac_fn_c_try_link "$LINENO"; then : 9415 lt_cv_irix_exported_symbol=yes 9416else 9417 lt_cv_irix_exported_symbol=no 9418fi 9419rm -f core conftest.err conftest.$ac_objext \ 9420 conftest$ac_exeext conftest.$ac_ext 9421 LDFLAGS="$save_LDFLAGS" 9422fi 9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9424$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9425 if test "$lt_cv_irix_exported_symbol" = yes; then 9426 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' 9427 fi 9428 else 9429 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' 9430 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' 9431 fi 9432 archive_cmds_need_lc='no' 9433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9434 hardcode_libdir_separator=: 9435 inherit_rpath=yes 9436 link_all_deplibs=yes 9437 ;; 9438 9439 netbsd*) 9440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9442 else 9443 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9444 fi 9445 hardcode_libdir_flag_spec='-R$libdir' 9446 hardcode_direct=yes 9447 hardcode_shlibpath_var=no 9448 ;; 9449 9450 newsos6) 9451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9452 hardcode_direct=yes 9453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9454 hardcode_libdir_separator=: 9455 hardcode_shlibpath_var=no 9456 ;; 9457 9458 *nto* | *qnx*) 9459 ;; 9460 9461 openbsd*) 9462 if test -f /usr/libexec/ld.so; then 9463 hardcode_direct=yes 9464 hardcode_shlibpath_var=no 9465 hardcode_direct_absolute=yes 9466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9468 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9469 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9470 export_dynamic_flag_spec='${wl}-E' 9471 else 9472 case $host_os in 9473 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9475 hardcode_libdir_flag_spec='-R$libdir' 9476 ;; 9477 *) 9478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9479 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9480 ;; 9481 esac 9482 fi 9483 else 9484 ld_shlibs=no 9485 fi 9486 ;; 9487 9488 os2*) 9489 hardcode_libdir_flag_spec='-L$libdir' 9490 hardcode_minus_L=yes 9491 allow_undefined_flag=unsupported 9492 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' 9493 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9494 ;; 9495 9496 osf3*) 9497 if test "$GCC" = yes; then 9498 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9499 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' 9500 else 9501 allow_undefined_flag=' -expect_unresolved \*' 9502 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' 9503 fi 9504 archive_cmds_need_lc='no' 9505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9506 hardcode_libdir_separator=: 9507 ;; 9508 9509 osf4* | osf5*) # as osf3* with the addition of -msym flag 9510 if test "$GCC" = yes; then 9511 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9512 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' 9513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9514 else 9515 allow_undefined_flag=' -expect_unresolved \*' 9516 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' 9517 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~ 9518 $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' 9519 9520 # Both c and cxx compiler support -rpath directly 9521 hardcode_libdir_flag_spec='-rpath $libdir' 9522 fi 9523 archive_cmds_need_lc='no' 9524 hardcode_libdir_separator=: 9525 ;; 9526 9527 solaris*) 9528 no_undefined_flag=' -z defs' 9529 if test "$GCC" = yes; then 9530 wlarc='${wl}' 9531 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9532 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9533 $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' 9534 else 9535 case `$CC -V 2>&1` in 9536 *"Compilers 5.0"*) 9537 wlarc='' 9538 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9541 ;; 9542 *) 9543 wlarc='${wl}' 9544 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9545 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9546 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9547 ;; 9548 esac 9549 fi 9550 hardcode_libdir_flag_spec='-R$libdir' 9551 hardcode_shlibpath_var=no 9552 case $host_os in 9553 solaris2.[0-5] | solaris2.[0-5].*) ;; 9554 *) 9555 # The compiler driver will combine and reorder linker options, 9556 # but understands `-z linker_flag'. GCC discards it without `$wl', 9557 # but is careful enough not to reorder. 9558 # Supported since Solaris 2.6 (maybe 2.5.1?) 9559 if test "$GCC" = yes; then 9560 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9561 else 9562 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9563 fi 9564 ;; 9565 esac 9566 link_all_deplibs=yes 9567 ;; 9568 9569 sunos4*) 9570 if test "x$host_vendor" = xsequent; then 9571 # Use $CC to link under sequent, because it throws in some extra .o 9572 # files that make .init and .fini sections work. 9573 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9574 else 9575 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9576 fi 9577 hardcode_libdir_flag_spec='-L$libdir' 9578 hardcode_direct=yes 9579 hardcode_minus_L=yes 9580 hardcode_shlibpath_var=no 9581 ;; 9582 9583 sysv4) 9584 case $host_vendor in 9585 sni) 9586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9587 hardcode_direct=yes # is this really true??? 9588 ;; 9589 siemens) 9590 ## LD is ld it makes a PLAMLIB 9591 ## CC just makes a GrossModule. 9592 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9593 reload_cmds='$CC -r -o $output$reload_objs' 9594 hardcode_direct=no 9595 ;; 9596 motorola) 9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9598 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9599 ;; 9600 esac 9601 runpath_var='LD_RUN_PATH' 9602 hardcode_shlibpath_var=no 9603 ;; 9604 9605 sysv4.3*) 9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9607 hardcode_shlibpath_var=no 9608 export_dynamic_flag_spec='-Bexport' 9609 ;; 9610 9611 sysv4*MP*) 9612 if test -d /usr/nec; then 9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9614 hardcode_shlibpath_var=no 9615 runpath_var=LD_RUN_PATH 9616 hardcode_runpath_var=yes 9617 ld_shlibs=yes 9618 fi 9619 ;; 9620 9621 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9622 no_undefined_flag='${wl}-z,text' 9623 archive_cmds_need_lc=no 9624 hardcode_shlibpath_var=no 9625 runpath_var='LD_RUN_PATH' 9626 9627 if test "$GCC" = yes; then 9628 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9629 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9630 else 9631 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9632 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9633 fi 9634 ;; 9635 9636 sysv5* | sco3.2v5* | sco5v6*) 9637 # Note: We can NOT use -z defs as we might desire, because we do not 9638 # link with -lc, and that would cause any symbols used from libc to 9639 # always be unresolved, which means just about no library would 9640 # ever link correctly. If we're not using GNU ld we use -z text 9641 # though, which does catch some bad symbols but isn't as heavy-handed 9642 # as -z defs. 9643 no_undefined_flag='${wl}-z,text' 9644 allow_undefined_flag='${wl}-z,nodefs' 9645 archive_cmds_need_lc=no 9646 hardcode_shlibpath_var=no 9647 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9648 hardcode_libdir_separator=':' 9649 link_all_deplibs=yes 9650 export_dynamic_flag_spec='${wl}-Bexport' 9651 runpath_var='LD_RUN_PATH' 9652 9653 if test "$GCC" = yes; then 9654 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9655 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9656 else 9657 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9658 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9659 fi 9660 ;; 9661 9662 uts4*) 9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9664 hardcode_libdir_flag_spec='-L$libdir' 9665 hardcode_shlibpath_var=no 9666 ;; 9667 9668 *) 9669 ld_shlibs=no 9670 ;; 9671 esac 9672 9673 if test x$host_vendor = xsni; then 9674 case $host in 9675 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9676 export_dynamic_flag_spec='${wl}-Blargedynsym' 9677 ;; 9678 esac 9679 fi 9680 fi 9681 9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9683$as_echo "$ld_shlibs" >&6; } 9684test "$ld_shlibs" = no && can_build_shared=no 9685 9686with_gnu_ld=$with_gnu_ld 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702# 9703# Do we need to explicitly link libc? 9704# 9705case "x$archive_cmds_need_lc" in 9706x|xyes) 9707 # Assume -lc should be added 9708 archive_cmds_need_lc=yes 9709 9710 if test "$enable_shared" = yes && test "$GCC" = yes; then 9711 case $archive_cmds in 9712 *'~'*) 9713 # FIXME: we may have to deal with multi-command sequences. 9714 ;; 9715 '$CC '*) 9716 # Test whether the compiler implicitly links with -lc since on some 9717 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9718 # to ld, don't add -lc before -lgcc. 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9720$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9721if ${lt_cv_archive_cmds_need_lc+:} false; then : 9722 $as_echo_n "(cached) " >&6 9723else 9724 $RM conftest* 9725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9726 9727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9728 (eval $ac_compile) 2>&5 9729 ac_status=$? 9730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9731 test $ac_status = 0; } 2>conftest.err; then 9732 soname=conftest 9733 lib=conftest 9734 libobjs=conftest.$ac_objext 9735 deplibs= 9736 wl=$lt_prog_compiler_wl 9737 pic_flag=$lt_prog_compiler_pic 9738 compiler_flags=-v 9739 linker_flags=-v 9740 verstring= 9741 output_objdir=. 9742 libname=conftest 9743 lt_save_allow_undefined_flag=$allow_undefined_flag 9744 allow_undefined_flag= 9745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9746 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9747 ac_status=$? 9748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9749 test $ac_status = 0; } 9750 then 9751 lt_cv_archive_cmds_need_lc=no 9752 else 9753 lt_cv_archive_cmds_need_lc=yes 9754 fi 9755 allow_undefined_flag=$lt_save_allow_undefined_flag 9756 else 9757 cat conftest.err 1>&5 9758 fi 9759 $RM conftest* 9760 9761fi 9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9763$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9764 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9765 ;; 9766 esac 9767 fi 9768 ;; 9769esac 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9923$as_echo_n "checking dynamic linker characteristics... " >&6; } 9924 9925if test "$GCC" = yes; then 9926 case $host_os in 9927 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9928 *) lt_awk_arg="/^libraries:/" ;; 9929 esac 9930 case $host_os in 9931 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9932 *) lt_sed_strip_eq="s,=/,/,g" ;; 9933 esac 9934 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9935 case $lt_search_path_spec in 9936 *\;*) 9937 # if the path contains ";" then we assume it to be the separator 9938 # otherwise default to the standard path separator (i.e. ":") - it is 9939 # assumed that no part of a normal pathname contains ";" but that should 9940 # okay in the real world where ";" in dirpaths is itself problematic. 9941 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9942 ;; 9943 *) 9944 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9945 ;; 9946 esac 9947 # Ok, now we have the path, separated by spaces, we can step through it 9948 # and add multilib dir if necessary. 9949 lt_tmp_lt_search_path_spec= 9950 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9951 for lt_sys_path in $lt_search_path_spec; do 9952 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9953 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9954 else 9955 test -d "$lt_sys_path" && \ 9956 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9957 fi 9958 done 9959 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9960BEGIN {RS=" "; FS="/|\n";} { 9961 lt_foo=""; 9962 lt_count=0; 9963 for (lt_i = NF; lt_i > 0; lt_i--) { 9964 if ($lt_i != "" && $lt_i != ".") { 9965 if ($lt_i == "..") { 9966 lt_count++; 9967 } else { 9968 if (lt_count == 0) { 9969 lt_foo="/" $lt_i lt_foo; 9970 } else { 9971 lt_count--; 9972 } 9973 } 9974 } 9975 } 9976 if (lt_foo != "") { lt_freq[lt_foo]++; } 9977 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9978}'` 9979 # AWK program above erroneously prepends '/' to C:/dos/paths 9980 # for these hosts. 9981 case $host_os in 9982 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9983 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9984 esac 9985 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9986else 9987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9988fi 9989library_names_spec= 9990libname_spec='lib$name' 9991soname_spec= 9992shrext_cmds=".so" 9993postinstall_cmds= 9994postuninstall_cmds= 9995finish_cmds= 9996finish_eval= 9997shlibpath_var= 9998shlibpath_overrides_runpath=unknown 9999version_type=none 10000dynamic_linker="$host_os ld.so" 10001sys_lib_dlsearch_path_spec="/lib /usr/lib" 10002need_lib_prefix=unknown 10003hardcode_into_libs=no 10004 10005# when you set need_version to no, make sure it does not cause -set_version 10006# flags to be left without arguments 10007need_version=unknown 10008 10009case $host_os in 10010aix3*) 10011 version_type=linux # correct to gnu/linux during the next big refactor 10012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10013 shlibpath_var=LIBPATH 10014 10015 # AIX 3 has no versioning support, so we append a major version to the name. 10016 soname_spec='${libname}${release}${shared_ext}$major' 10017 ;; 10018 10019aix[4-9]*) 10020 version_type=linux # correct to gnu/linux during the next big refactor 10021 need_lib_prefix=no 10022 need_version=no 10023 hardcode_into_libs=yes 10024 if test "$host_cpu" = ia64; then 10025 # AIX 5 supports IA64 10026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10027 shlibpath_var=LD_LIBRARY_PATH 10028 else 10029 # With GCC up to 2.95.x, collect2 would create an import file 10030 # for dependence libraries. The import file would start with 10031 # the line `#! .'. This would cause the generated library to 10032 # depend on `.', always an invalid library. This was fixed in 10033 # development snapshots of GCC prior to 3.0. 10034 case $host_os in 10035 aix4 | aix4.[01] | aix4.[01].*) 10036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10037 echo ' yes ' 10038 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10039 : 10040 else 10041 can_build_shared=no 10042 fi 10043 ;; 10044 esac 10045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10046 # soname into executable. Probably we can add versioning support to 10047 # collect2, so additional links can be useful in future. 10048 if test "$aix_use_runtimelinking" = yes; then 10049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10050 # instead of lib<name>.a to let people know that these are not 10051 # typical AIX shared libraries. 10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10053 else 10054 # We preserve .a as extension for shared libraries through AIX4.2 10055 # and later when we are not doing run time linking. 10056 library_names_spec='${libname}${release}.a $libname.a' 10057 soname_spec='${libname}${release}${shared_ext}$major' 10058 fi 10059 shlibpath_var=LIBPATH 10060 fi 10061 ;; 10062 10063amigaos*) 10064 case $host_cpu in 10065 powerpc) 10066 # Since July 2007 AmigaOS4 officially supports .so libraries. 10067 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10069 ;; 10070 m68k) 10071 library_names_spec='$libname.ixlibrary $libname.a' 10072 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10073 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' 10074 ;; 10075 esac 10076 ;; 10077 10078beos*) 10079 library_names_spec='${libname}${shared_ext}' 10080 dynamic_linker="$host_os ld.so" 10081 shlibpath_var=LIBRARY_PATH 10082 ;; 10083 10084bsdi[45]*) 10085 version_type=linux # correct to gnu/linux during the next big refactor 10086 need_version=no 10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10088 soname_spec='${libname}${release}${shared_ext}$major' 10089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10090 shlibpath_var=LD_LIBRARY_PATH 10091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10093 # the default ld.so.conf also contains /usr/contrib/lib and 10094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10095 # libtool to hard-code these into programs 10096 ;; 10097 10098cygwin* | mingw* | pw32* | cegcc*) 10099 version_type=windows 10100 shrext_cmds=".dll" 10101 need_version=no 10102 need_lib_prefix=no 10103 10104 case $GCC,$cc_basename in 10105 yes,*) 10106 # gcc 10107 library_names_spec='$libname.dll.a' 10108 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10109 postinstall_cmds='base_file=`basename \${file}`~ 10110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10111 dldir=$destdir/`dirname \$dlpath`~ 10112 test -d \$dldir || mkdir -p \$dldir~ 10113 $install_prog $dir/$dlname \$dldir/$dlname~ 10114 chmod a+x \$dldir/$dlname~ 10115 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10116 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10117 fi' 10118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10119 dlpath=$dir/\$dldll~ 10120 $RM \$dlpath' 10121 shlibpath_overrides_runpath=yes 10122 10123 case $host_os in 10124 cygwin*) 10125 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10126 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10127 10128 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10129 ;; 10130 mingw* | cegcc*) 10131 # MinGW DLLs use traditional 'lib' prefix 10132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10133 ;; 10134 pw32*) 10135 # pw32 DLLs use 'pw' prefix rather than 'lib' 10136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10137 ;; 10138 esac 10139 dynamic_linker='Win32 ld.exe' 10140 ;; 10141 10142 *,cl*) 10143 # Native MSVC 10144 libname_spec='$name' 10145 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10146 library_names_spec='${libname}.dll.lib' 10147 10148 case $build_os in 10149 mingw*) 10150 sys_lib_search_path_spec= 10151 lt_save_ifs=$IFS 10152 IFS=';' 10153 for lt_path in $LIB 10154 do 10155 IFS=$lt_save_ifs 10156 # Let DOS variable expansion print the short 8.3 style file name. 10157 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10158 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10159 done 10160 IFS=$lt_save_ifs 10161 # Convert to MSYS style. 10162 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10163 ;; 10164 cygwin*) 10165 # Convert to unix form, then to dos form, then back to unix form 10166 # but this time dos style (no spaces!) so that the unix form looks 10167 # like /cygdrive/c/PROGRA~1:/cygdr... 10168 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10169 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10170 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10171 ;; 10172 *) 10173 sys_lib_search_path_spec="$LIB" 10174 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10175 # It is most probably a Windows format PATH. 10176 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10177 else 10178 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10179 fi 10180 # FIXME: find the short name or the path components, as spaces are 10181 # common. (e.g. "Program Files" -> "PROGRA~1") 10182 ;; 10183 esac 10184 10185 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10186 postinstall_cmds='base_file=`basename \${file}`~ 10187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10188 dldir=$destdir/`dirname \$dlpath`~ 10189 test -d \$dldir || mkdir -p \$dldir~ 10190 $install_prog $dir/$dlname \$dldir/$dlname' 10191 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10192 dlpath=$dir/\$dldll~ 10193 $RM \$dlpath' 10194 shlibpath_overrides_runpath=yes 10195 dynamic_linker='Win32 link.exe' 10196 ;; 10197 10198 *) 10199 # Assume MSVC wrapper 10200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10201 dynamic_linker='Win32 ld.exe' 10202 ;; 10203 esac 10204 # FIXME: first we should search . and the directory the executable is in 10205 shlibpath_var=PATH 10206 ;; 10207 10208darwin* | rhapsody*) 10209 dynamic_linker="$host_os dyld" 10210 version_type=darwin 10211 need_lib_prefix=no 10212 need_version=no 10213 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10214 soname_spec='${libname}${release}${major}$shared_ext' 10215 shlibpath_overrides_runpath=yes 10216 shlibpath_var=DYLD_LIBRARY_PATH 10217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10218 10219 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10220 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10221 ;; 10222 10223dgux*) 10224 version_type=linux # correct to gnu/linux during the next big refactor 10225 need_lib_prefix=no 10226 need_version=no 10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10228 soname_spec='${libname}${release}${shared_ext}$major' 10229 shlibpath_var=LD_LIBRARY_PATH 10230 ;; 10231 10232freebsd* | dragonfly*) 10233 # DragonFly does not have aout. When/if they implement a new 10234 # versioning mechanism, adjust this. 10235 if test -x /usr/bin/objformat; then 10236 objformat=`/usr/bin/objformat` 10237 else 10238 case $host_os in 10239 freebsd[23].*) objformat=aout ;; 10240 *) objformat=elf ;; 10241 esac 10242 fi 10243 version_type=freebsd-$objformat 10244 case $version_type in 10245 freebsd-elf*) 10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10247 need_version=no 10248 need_lib_prefix=no 10249 ;; 10250 freebsd-*) 10251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10252 need_version=yes 10253 ;; 10254 esac 10255 shlibpath_var=LD_LIBRARY_PATH 10256 case $host_os in 10257 freebsd2.*) 10258 shlibpath_overrides_runpath=yes 10259 ;; 10260 freebsd3.[01]* | freebsdelf3.[01]*) 10261 shlibpath_overrides_runpath=yes 10262 hardcode_into_libs=yes 10263 ;; 10264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10266 shlibpath_overrides_runpath=no 10267 hardcode_into_libs=yes 10268 ;; 10269 *) # from 4.6 on, and DragonFly 10270 shlibpath_overrides_runpath=yes 10271 hardcode_into_libs=yes 10272 ;; 10273 esac 10274 ;; 10275 10276gnu*) 10277 version_type=linux # correct to gnu/linux during the next big refactor 10278 need_lib_prefix=no 10279 need_version=no 10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10281 soname_spec='${libname}${release}${shared_ext}$major' 10282 shlibpath_var=LD_LIBRARY_PATH 10283 shlibpath_overrides_runpath=no 10284 hardcode_into_libs=yes 10285 ;; 10286 10287haiku*) 10288 version_type=linux # correct to gnu/linux during the next big refactor 10289 need_lib_prefix=no 10290 need_version=no 10291 dynamic_linker="$host_os runtime_loader" 10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10293 soname_spec='${libname}${release}${shared_ext}$major' 10294 shlibpath_var=LIBRARY_PATH 10295 shlibpath_overrides_runpath=yes 10296 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10297 hardcode_into_libs=yes 10298 ;; 10299 10300hpux9* | hpux10* | hpux11*) 10301 # Give a soname corresponding to the major version so that dld.sl refuses to 10302 # link against other versions. 10303 version_type=sunos 10304 need_lib_prefix=no 10305 need_version=no 10306 case $host_cpu in 10307 ia64*) 10308 shrext_cmds='.so' 10309 hardcode_into_libs=yes 10310 dynamic_linker="$host_os dld.so" 10311 shlibpath_var=LD_LIBRARY_PATH 10312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10314 soname_spec='${libname}${release}${shared_ext}$major' 10315 if test "X$HPUX_IA64_MODE" = X32; then 10316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10317 else 10318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10319 fi 10320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10321 ;; 10322 hppa*64*) 10323 shrext_cmds='.sl' 10324 hardcode_into_libs=yes 10325 dynamic_linker="$host_os dld.sl" 10326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10329 soname_spec='${libname}${release}${shared_ext}$major' 10330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10332 ;; 10333 *) 10334 shrext_cmds='.sl' 10335 dynamic_linker="$host_os dld.sl" 10336 shlibpath_var=SHLIB_PATH 10337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10339 soname_spec='${libname}${release}${shared_ext}$major' 10340 ;; 10341 esac 10342 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10343 postinstall_cmds='chmod 555 $lib' 10344 # or fails outright, so override atomically: 10345 install_override_mode=555 10346 ;; 10347 10348interix[3-9]*) 10349 version_type=linux # correct to gnu/linux during the next big refactor 10350 need_lib_prefix=no 10351 need_version=no 10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10353 soname_spec='${libname}${release}${shared_ext}$major' 10354 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10355 shlibpath_var=LD_LIBRARY_PATH 10356 shlibpath_overrides_runpath=no 10357 hardcode_into_libs=yes 10358 ;; 10359 10360irix5* | irix6* | nonstopux*) 10361 case $host_os in 10362 nonstopux*) version_type=nonstopux ;; 10363 *) 10364 if test "$lt_cv_prog_gnu_ld" = yes; then 10365 version_type=linux # correct to gnu/linux during the next big refactor 10366 else 10367 version_type=irix 10368 fi ;; 10369 esac 10370 need_lib_prefix=no 10371 need_version=no 10372 soname_spec='${libname}${release}${shared_ext}$major' 10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10374 case $host_os in 10375 irix5* | nonstopux*) 10376 libsuff= shlibsuff= 10377 ;; 10378 *) 10379 case $LD in # libtool.m4 will add one of these switches to LD 10380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10381 libsuff= shlibsuff= libmagic=32-bit;; 10382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10383 libsuff=32 shlibsuff=N32 libmagic=N32;; 10384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10385 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10386 *) libsuff= shlibsuff= libmagic=never-match;; 10387 esac 10388 ;; 10389 esac 10390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10391 shlibpath_overrides_runpath=no 10392 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10393 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10394 hardcode_into_libs=yes 10395 ;; 10396 10397# No shared lib support for Linux oldld, aout, or coff. 10398linux*oldld* | linux*aout* | linux*coff*) 10399 dynamic_linker=no 10400 ;; 10401 10402# This must be glibc/ELF. 10403linux* | k*bsd*-gnu | kopensolaris*-gnu) 10404 version_type=linux # correct to gnu/linux during the next big refactor 10405 need_lib_prefix=no 10406 need_version=no 10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10408 soname_spec='${libname}${release}${shared_ext}$major' 10409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10410 shlibpath_var=LD_LIBRARY_PATH 10411 shlibpath_overrides_runpath=no 10412 10413 # Some binutils ld are patched to set DT_RUNPATH 10414 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10415 $as_echo_n "(cached) " >&6 10416else 10417 lt_cv_shlibpath_overrides_runpath=no 10418 save_LDFLAGS=$LDFLAGS 10419 save_libdir=$libdir 10420 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10421 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10423/* end confdefs.h. */ 10424 10425int 10426main () 10427{ 10428 10429 ; 10430 return 0; 10431} 10432_ACEOF 10433if ac_fn_c_try_link "$LINENO"; then : 10434 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10435 lt_cv_shlibpath_overrides_runpath=yes 10436fi 10437fi 10438rm -f core conftest.err conftest.$ac_objext \ 10439 conftest$ac_exeext conftest.$ac_ext 10440 LDFLAGS=$save_LDFLAGS 10441 libdir=$save_libdir 10442 10443fi 10444 10445 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10446 10447 # This implies no fast_install, which is unacceptable. 10448 # Some rework will be needed to allow for fast_install 10449 # before this can be enabled. 10450 hardcode_into_libs=yes 10451 10452 # Append ld.so.conf contents to the search path 10453 if test -f /etc/ld.so.conf; then 10454 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' ' '` 10455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10456 fi 10457 10458 # We used to test for /lib/ld.so.1 and disable shared libraries on 10459 # powerpc, because MkLinux only supported shared libraries with the 10460 # GNU dynamic linker. Since this was broken with cross compilers, 10461 # most powerpc-linux boxes support dynamic linking these days and 10462 # people can always --disable-shared, the test was removed, and we 10463 # assume the GNU/Linux dynamic linker is in use. 10464 dynamic_linker='GNU/Linux ld.so' 10465 ;; 10466 10467netbsd*) 10468 version_type=sunos 10469 need_lib_prefix=no 10470 need_version=no 10471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10474 dynamic_linker='NetBSD (a.out) ld.so' 10475 else 10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10477 soname_spec='${libname}${release}${shared_ext}$major' 10478 dynamic_linker='NetBSD ld.elf_so' 10479 fi 10480 shlibpath_var=LD_LIBRARY_PATH 10481 shlibpath_overrides_runpath=yes 10482 hardcode_into_libs=yes 10483 ;; 10484 10485newsos6) 10486 version_type=linux # correct to gnu/linux during the next big refactor 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10488 shlibpath_var=LD_LIBRARY_PATH 10489 shlibpath_overrides_runpath=yes 10490 ;; 10491 10492*nto* | *qnx*) 10493 version_type=qnx 10494 need_lib_prefix=no 10495 need_version=no 10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10497 soname_spec='${libname}${release}${shared_ext}$major' 10498 shlibpath_var=LD_LIBRARY_PATH 10499 shlibpath_overrides_runpath=no 10500 hardcode_into_libs=yes 10501 dynamic_linker='ldqnx.so' 10502 ;; 10503 10504openbsd*) 10505 version_type=sunos 10506 sys_lib_dlsearch_path_spec="/usr/lib" 10507 need_lib_prefix=no 10508 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10509 case $host_os in 10510 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10511 *) need_version=no ;; 10512 esac 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10515 shlibpath_var=LD_LIBRARY_PATH 10516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10517 case $host_os in 10518 openbsd2.[89] | openbsd2.[89].*) 10519 shlibpath_overrides_runpath=no 10520 ;; 10521 *) 10522 shlibpath_overrides_runpath=yes 10523 ;; 10524 esac 10525 else 10526 shlibpath_overrides_runpath=yes 10527 fi 10528 ;; 10529 10530os2*) 10531 libname_spec='$name' 10532 shrext_cmds=".dll" 10533 need_lib_prefix=no 10534 library_names_spec='$libname${shared_ext} $libname.a' 10535 dynamic_linker='OS/2 ld.exe' 10536 shlibpath_var=LIBPATH 10537 ;; 10538 10539osf3* | osf4* | osf5*) 10540 version_type=osf 10541 need_lib_prefix=no 10542 need_version=no 10543 soname_spec='${libname}${release}${shared_ext}$major' 10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10545 shlibpath_var=LD_LIBRARY_PATH 10546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10548 ;; 10549 10550rdos*) 10551 dynamic_linker=no 10552 ;; 10553 10554solaris*) 10555 version_type=linux # correct to gnu/linux during the next big refactor 10556 need_lib_prefix=no 10557 need_version=no 10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10559 soname_spec='${libname}${release}${shared_ext}$major' 10560 shlibpath_var=LD_LIBRARY_PATH 10561 shlibpath_overrides_runpath=yes 10562 hardcode_into_libs=yes 10563 # ldd complains unless libraries are executable 10564 postinstall_cmds='chmod +x $lib' 10565 ;; 10566 10567sunos4*) 10568 version_type=sunos 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 shlibpath_overrides_runpath=yes 10573 if test "$with_gnu_ld" = yes; then 10574 need_lib_prefix=no 10575 fi 10576 need_version=yes 10577 ;; 10578 10579sysv4 | sysv4.3*) 10580 version_type=linux # correct to gnu/linux during the next big refactor 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10582 soname_spec='${libname}${release}${shared_ext}$major' 10583 shlibpath_var=LD_LIBRARY_PATH 10584 case $host_vendor in 10585 sni) 10586 shlibpath_overrides_runpath=no 10587 need_lib_prefix=no 10588 runpath_var=LD_RUN_PATH 10589 ;; 10590 siemens) 10591 need_lib_prefix=no 10592 ;; 10593 motorola) 10594 need_lib_prefix=no 10595 need_version=no 10596 shlibpath_overrides_runpath=no 10597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10598 ;; 10599 esac 10600 ;; 10601 10602sysv4*MP*) 10603 if test -d /usr/nec ;then 10604 version_type=linux # correct to gnu/linux during the next big refactor 10605 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10606 soname_spec='$libname${shared_ext}.$major' 10607 shlibpath_var=LD_LIBRARY_PATH 10608 fi 10609 ;; 10610 10611sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10612 version_type=freebsd-elf 10613 need_lib_prefix=no 10614 need_version=no 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10616 soname_spec='${libname}${release}${shared_ext}$major' 10617 shlibpath_var=LD_LIBRARY_PATH 10618 shlibpath_overrides_runpath=yes 10619 hardcode_into_libs=yes 10620 if test "$with_gnu_ld" = yes; then 10621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10622 else 10623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10624 case $host_os in 10625 sco3.2v5*) 10626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10627 ;; 10628 esac 10629 fi 10630 sys_lib_dlsearch_path_spec='/usr/lib' 10631 ;; 10632 10633tpf*) 10634 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10635 version_type=linux # correct to gnu/linux during the next big refactor 10636 need_lib_prefix=no 10637 need_version=no 10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10639 shlibpath_var=LD_LIBRARY_PATH 10640 shlibpath_overrides_runpath=no 10641 hardcode_into_libs=yes 10642 ;; 10643 10644uts4*) 10645 version_type=linux # correct to gnu/linux during the next big refactor 10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10647 soname_spec='${libname}${release}${shared_ext}$major' 10648 shlibpath_var=LD_LIBRARY_PATH 10649 ;; 10650 10651*) 10652 dynamic_linker=no 10653 ;; 10654esac 10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10656$as_echo "$dynamic_linker" >&6; } 10657test "$dynamic_linker" = no && can_build_shared=no 10658 10659variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10660if test "$GCC" = yes; then 10661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10662fi 10663 10664if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10665 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10666fi 10667if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10668 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10669fi 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10763$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10764hardcode_action= 10765if test -n "$hardcode_libdir_flag_spec" || 10766 test -n "$runpath_var" || 10767 test "X$hardcode_automatic" = "Xyes" ; then 10768 10769 # We can hardcode non-existent directories. 10770 if test "$hardcode_direct" != no && 10771 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10772 # have to relink, otherwise we might link with an installed library 10773 # when we should be linking with a yet-to-be-installed one 10774 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10775 test "$hardcode_minus_L" != no; then 10776 # Linking always hardcodes the temporary library directory. 10777 hardcode_action=relink 10778 else 10779 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10780 hardcode_action=immediate 10781 fi 10782else 10783 # We cannot hardcode anything, or else we can only hardcode existing 10784 # directories. 10785 hardcode_action=unsupported 10786fi 10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10788$as_echo "$hardcode_action" >&6; } 10789 10790if test "$hardcode_action" = relink || 10791 test "$inherit_rpath" = yes; then 10792 # Fast installation is not supported 10793 enable_fast_install=no 10794elif test "$shlibpath_overrides_runpath" = yes || 10795 test "$enable_shared" = no; then 10796 # Fast installation is not necessary 10797 enable_fast_install=needless 10798fi 10799 10800 10801 10802 10803 10804 10805 if test "x$enable_dlopen" != xyes; then 10806 enable_dlopen=unknown 10807 enable_dlopen_self=unknown 10808 enable_dlopen_self_static=unknown 10809else 10810 lt_cv_dlopen=no 10811 lt_cv_dlopen_libs= 10812 10813 case $host_os in 10814 beos*) 10815 lt_cv_dlopen="load_add_on" 10816 lt_cv_dlopen_libs= 10817 lt_cv_dlopen_self=yes 10818 ;; 10819 10820 mingw* | pw32* | cegcc*) 10821 lt_cv_dlopen="LoadLibrary" 10822 lt_cv_dlopen_libs= 10823 ;; 10824 10825 cygwin*) 10826 lt_cv_dlopen="dlopen" 10827 lt_cv_dlopen_libs= 10828 ;; 10829 10830 darwin*) 10831 # if libdl is installed we need to link against it 10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10833$as_echo_n "checking for dlopen in -ldl... " >&6; } 10834if ${ac_cv_lib_dl_dlopen+:} false; then : 10835 $as_echo_n "(cached) " >&6 10836else 10837 ac_check_lib_save_LIBS=$LIBS 10838LIBS="-ldl $LIBS" 10839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10840/* end confdefs.h. */ 10841 10842/* Override any GCC internal prototype to avoid an error. 10843 Use char because int might match the return type of a GCC 10844 builtin and then its argument prototype would still apply. */ 10845#ifdef __cplusplus 10846extern "C" 10847#endif 10848char dlopen (); 10849int 10850main () 10851{ 10852return dlopen (); 10853 ; 10854 return 0; 10855} 10856_ACEOF 10857if ac_fn_c_try_link "$LINENO"; then : 10858 ac_cv_lib_dl_dlopen=yes 10859else 10860 ac_cv_lib_dl_dlopen=no 10861fi 10862rm -f core conftest.err conftest.$ac_objext \ 10863 conftest$ac_exeext conftest.$ac_ext 10864LIBS=$ac_check_lib_save_LIBS 10865fi 10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10867$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10868if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10870else 10871 10872 lt_cv_dlopen="dyld" 10873 lt_cv_dlopen_libs= 10874 lt_cv_dlopen_self=yes 10875 10876fi 10877 10878 ;; 10879 10880 *) 10881 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10882if test "x$ac_cv_func_shl_load" = xyes; then : 10883 lt_cv_dlopen="shl_load" 10884else 10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10886$as_echo_n "checking for shl_load in -ldld... " >&6; } 10887if ${ac_cv_lib_dld_shl_load+:} false; then : 10888 $as_echo_n "(cached) " >&6 10889else 10890 ac_check_lib_save_LIBS=$LIBS 10891LIBS="-ldld $LIBS" 10892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10893/* end confdefs.h. */ 10894 10895/* Override any GCC internal prototype to avoid an error. 10896 Use char because int might match the return type of a GCC 10897 builtin and then its argument prototype would still apply. */ 10898#ifdef __cplusplus 10899extern "C" 10900#endif 10901char shl_load (); 10902int 10903main () 10904{ 10905return shl_load (); 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910if ac_fn_c_try_link "$LINENO"; then : 10911 ac_cv_lib_dld_shl_load=yes 10912else 10913 ac_cv_lib_dld_shl_load=no 10914fi 10915rm -f core conftest.err conftest.$ac_objext \ 10916 conftest$ac_exeext conftest.$ac_ext 10917LIBS=$ac_check_lib_save_LIBS 10918fi 10919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10920$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10921if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10923else 10924 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10925if test "x$ac_cv_func_dlopen" = xyes; then : 10926 lt_cv_dlopen="dlopen" 10927else 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10929$as_echo_n "checking for dlopen in -ldl... " >&6; } 10930if ${ac_cv_lib_dl_dlopen+:} false; then : 10931 $as_echo_n "(cached) " >&6 10932else 10933 ac_check_lib_save_LIBS=$LIBS 10934LIBS="-ldl $LIBS" 10935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10936/* end confdefs.h. */ 10937 10938/* Override any GCC internal prototype to avoid an error. 10939 Use char because int might match the return type of a GCC 10940 builtin and then its argument prototype would still apply. */ 10941#ifdef __cplusplus 10942extern "C" 10943#endif 10944char dlopen (); 10945int 10946main () 10947{ 10948return dlopen (); 10949 ; 10950 return 0; 10951} 10952_ACEOF 10953if ac_fn_c_try_link "$LINENO"; then : 10954 ac_cv_lib_dl_dlopen=yes 10955else 10956 ac_cv_lib_dl_dlopen=no 10957fi 10958rm -f core conftest.err conftest.$ac_objext \ 10959 conftest$ac_exeext conftest.$ac_ext 10960LIBS=$ac_check_lib_save_LIBS 10961fi 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10963$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10964if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10966else 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10968$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10969if ${ac_cv_lib_svld_dlopen+:} false; then : 10970 $as_echo_n "(cached) " >&6 10971else 10972 ac_check_lib_save_LIBS=$LIBS 10973LIBS="-lsvld $LIBS" 10974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10975/* end confdefs.h. */ 10976 10977/* Override any GCC internal prototype to avoid an error. 10978 Use char because int might match the return type of a GCC 10979 builtin and then its argument prototype would still apply. */ 10980#ifdef __cplusplus 10981extern "C" 10982#endif 10983char dlopen (); 10984int 10985main () 10986{ 10987return dlopen (); 10988 ; 10989 return 0; 10990} 10991_ACEOF 10992if ac_fn_c_try_link "$LINENO"; then : 10993 ac_cv_lib_svld_dlopen=yes 10994else 10995 ac_cv_lib_svld_dlopen=no 10996fi 10997rm -f core conftest.err conftest.$ac_objext \ 10998 conftest$ac_exeext conftest.$ac_ext 10999LIBS=$ac_check_lib_save_LIBS 11000fi 11001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11002$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11003if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11005else 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11007$as_echo_n "checking for dld_link in -ldld... " >&6; } 11008if ${ac_cv_lib_dld_dld_link+:} false; then : 11009 $as_echo_n "(cached) " >&6 11010else 11011 ac_check_lib_save_LIBS=$LIBS 11012LIBS="-ldld $LIBS" 11013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11014/* end confdefs.h. */ 11015 11016/* Override any GCC internal prototype to avoid an error. 11017 Use char because int might match the return type of a GCC 11018 builtin and then its argument prototype would still apply. */ 11019#ifdef __cplusplus 11020extern "C" 11021#endif 11022char dld_link (); 11023int 11024main () 11025{ 11026return dld_link (); 11027 ; 11028 return 0; 11029} 11030_ACEOF 11031if ac_fn_c_try_link "$LINENO"; then : 11032 ac_cv_lib_dld_dld_link=yes 11033else 11034 ac_cv_lib_dld_dld_link=no 11035fi 11036rm -f core conftest.err conftest.$ac_objext \ 11037 conftest$ac_exeext conftest.$ac_ext 11038LIBS=$ac_check_lib_save_LIBS 11039fi 11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11041$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11042if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11043 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11044fi 11045 11046 11047fi 11048 11049 11050fi 11051 11052 11053fi 11054 11055 11056fi 11057 11058 11059fi 11060 11061 ;; 11062 esac 11063 11064 if test "x$lt_cv_dlopen" != xno; then 11065 enable_dlopen=yes 11066 else 11067 enable_dlopen=no 11068 fi 11069 11070 case $lt_cv_dlopen in 11071 dlopen) 11072 save_CPPFLAGS="$CPPFLAGS" 11073 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11074 11075 save_LDFLAGS="$LDFLAGS" 11076 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11077 11078 save_LIBS="$LIBS" 11079 LIBS="$lt_cv_dlopen_libs $LIBS" 11080 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11082$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11083if ${lt_cv_dlopen_self+:} false; then : 11084 $as_echo_n "(cached) " >&6 11085else 11086 if test "$cross_compiling" = yes; then : 11087 lt_cv_dlopen_self=cross 11088else 11089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11090 lt_status=$lt_dlunknown 11091 cat > conftest.$ac_ext <<_LT_EOF 11092#line $LINENO "configure" 11093#include "confdefs.h" 11094 11095#if HAVE_DLFCN_H 11096#include <dlfcn.h> 11097#endif 11098 11099#include <stdio.h> 11100 11101#ifdef RTLD_GLOBAL 11102# define LT_DLGLOBAL RTLD_GLOBAL 11103#else 11104# ifdef DL_GLOBAL 11105# define LT_DLGLOBAL DL_GLOBAL 11106# else 11107# define LT_DLGLOBAL 0 11108# endif 11109#endif 11110 11111/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11112 find out it does not work in some platform. */ 11113#ifndef LT_DLLAZY_OR_NOW 11114# ifdef RTLD_LAZY 11115# define LT_DLLAZY_OR_NOW RTLD_LAZY 11116# else 11117# ifdef DL_LAZY 11118# define LT_DLLAZY_OR_NOW DL_LAZY 11119# else 11120# ifdef RTLD_NOW 11121# define LT_DLLAZY_OR_NOW RTLD_NOW 11122# else 11123# ifdef DL_NOW 11124# define LT_DLLAZY_OR_NOW DL_NOW 11125# else 11126# define LT_DLLAZY_OR_NOW 0 11127# endif 11128# endif 11129# endif 11130# endif 11131#endif 11132 11133/* When -fvisbility=hidden is used, assume the code has been annotated 11134 correspondingly for the symbols needed. */ 11135#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11136int fnord () __attribute__((visibility("default"))); 11137#endif 11138 11139int fnord () { return 42; } 11140int main () 11141{ 11142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11143 int status = $lt_dlunknown; 11144 11145 if (self) 11146 { 11147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11148 else 11149 { 11150 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11151 else puts (dlerror ()); 11152 } 11153 /* dlclose (self); */ 11154 } 11155 else 11156 puts (dlerror ()); 11157 11158 return status; 11159} 11160_LT_EOF 11161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11162 (eval $ac_link) 2>&5 11163 ac_status=$? 11164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11165 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11166 (./conftest; exit; ) >&5 2>/dev/null 11167 lt_status=$? 11168 case x$lt_status in 11169 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11170 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11171 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11172 esac 11173 else : 11174 # compilation failed 11175 lt_cv_dlopen_self=no 11176 fi 11177fi 11178rm -fr conftest* 11179 11180 11181fi 11182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11183$as_echo "$lt_cv_dlopen_self" >&6; } 11184 11185 if test "x$lt_cv_dlopen_self" = xyes; then 11186 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11188$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11189if ${lt_cv_dlopen_self_static+:} false; then : 11190 $as_echo_n "(cached) " >&6 11191else 11192 if test "$cross_compiling" = yes; then : 11193 lt_cv_dlopen_self_static=cross 11194else 11195 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11196 lt_status=$lt_dlunknown 11197 cat > conftest.$ac_ext <<_LT_EOF 11198#line $LINENO "configure" 11199#include "confdefs.h" 11200 11201#if HAVE_DLFCN_H 11202#include <dlfcn.h> 11203#endif 11204 11205#include <stdio.h> 11206 11207#ifdef RTLD_GLOBAL 11208# define LT_DLGLOBAL RTLD_GLOBAL 11209#else 11210# ifdef DL_GLOBAL 11211# define LT_DLGLOBAL DL_GLOBAL 11212# else 11213# define LT_DLGLOBAL 0 11214# endif 11215#endif 11216 11217/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11218 find out it does not work in some platform. */ 11219#ifndef LT_DLLAZY_OR_NOW 11220# ifdef RTLD_LAZY 11221# define LT_DLLAZY_OR_NOW RTLD_LAZY 11222# else 11223# ifdef DL_LAZY 11224# define LT_DLLAZY_OR_NOW DL_LAZY 11225# else 11226# ifdef RTLD_NOW 11227# define LT_DLLAZY_OR_NOW RTLD_NOW 11228# else 11229# ifdef DL_NOW 11230# define LT_DLLAZY_OR_NOW DL_NOW 11231# else 11232# define LT_DLLAZY_OR_NOW 0 11233# endif 11234# endif 11235# endif 11236# endif 11237#endif 11238 11239/* When -fvisbility=hidden is used, assume the code has been annotated 11240 correspondingly for the symbols needed. */ 11241#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11242int fnord () __attribute__((visibility("default"))); 11243#endif 11244 11245int fnord () { return 42; } 11246int main () 11247{ 11248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11249 int status = $lt_dlunknown; 11250 11251 if (self) 11252 { 11253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11254 else 11255 { 11256 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11257 else puts (dlerror ()); 11258 } 11259 /* dlclose (self); */ 11260 } 11261 else 11262 puts (dlerror ()); 11263 11264 return status; 11265} 11266_LT_EOF 11267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11268 (eval $ac_link) 2>&5 11269 ac_status=$? 11270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11271 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11272 (./conftest; exit; ) >&5 2>/dev/null 11273 lt_status=$? 11274 case x$lt_status in 11275 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11276 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11277 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11278 esac 11279 else : 11280 # compilation failed 11281 lt_cv_dlopen_self_static=no 11282 fi 11283fi 11284rm -fr conftest* 11285 11286 11287fi 11288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11289$as_echo "$lt_cv_dlopen_self_static" >&6; } 11290 fi 11291 11292 CPPFLAGS="$save_CPPFLAGS" 11293 LDFLAGS="$save_LDFLAGS" 11294 LIBS="$save_LIBS" 11295 ;; 11296 esac 11297 11298 case $lt_cv_dlopen_self in 11299 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11300 *) enable_dlopen_self=unknown ;; 11301 esac 11302 11303 case $lt_cv_dlopen_self_static in 11304 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11305 *) enable_dlopen_self_static=unknown ;; 11306 esac 11307fi 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325striplib= 11326old_striplib= 11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11328$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11329if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11330 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11331 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11333$as_echo "yes" >&6; } 11334else 11335# FIXME - insert some real tests, host_os isn't really good enough 11336 case $host_os in 11337 darwin*) 11338 if test -n "$STRIP" ; then 11339 striplib="$STRIP -x" 11340 old_striplib="$STRIP -S" 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11342$as_echo "yes" >&6; } 11343 else 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11345$as_echo "no" >&6; } 11346 fi 11347 ;; 11348 *) 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11350$as_echo "no" >&6; } 11351 ;; 11352 esac 11353fi 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 # Report which library types will actually be built 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11368$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11370$as_echo "$can_build_shared" >&6; } 11371 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11373$as_echo_n "checking whether to build shared libraries... " >&6; } 11374 test "$can_build_shared" = "no" && enable_shared=no 11375 11376 # On AIX, shared libraries and static libraries use the same namespace, and 11377 # are all built from PIC. 11378 case $host_os in 11379 aix3*) 11380 test "$enable_shared" = yes && enable_static=no 11381 if test -n "$RANLIB"; then 11382 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11383 postinstall_cmds='$RANLIB $lib' 11384 fi 11385 ;; 11386 11387 aix[4-9]*) 11388 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11389 test "$enable_shared" = yes && enable_static=no 11390 fi 11391 ;; 11392 esac 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11394$as_echo "$enable_shared" >&6; } 11395 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11397$as_echo_n "checking whether to build static libraries... " >&6; } 11398 # Make sure either enable_shared or enable_static is yes. 11399 test "$enable_shared" = yes || enable_static=yes 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11401$as_echo "$enable_static" >&6; } 11402 11403 11404 11405 11406fi 11407ac_ext=c 11408ac_cpp='$CPP $CPPFLAGS' 11409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11411ac_compiler_gnu=$ac_cv_c_compiler_gnu 11412 11413CC="$lt_save_CC" 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 ac_config_commands="$ac_config_commands libtool" 11430 11431 11432 11433 11434# Only expand once: 11435 11436 11437 11438# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11451$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11452if ${ac_cv_prog_cc_c99+:} false; then : 11453 $as_echo_n "(cached) " >&6 11454else 11455 ac_cv_prog_cc_c99=no 11456ac_save_CC=$CC 11457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11458/* end confdefs.h. */ 11459#include <stdarg.h> 11460#include <stdbool.h> 11461#include <stdlib.h> 11462#include <wchar.h> 11463#include <stdio.h> 11464 11465// Check varargs macros. These examples are taken from C99 6.10.3.5. 11466#define debug(...) fprintf (stderr, __VA_ARGS__) 11467#define showlist(...) puts (#__VA_ARGS__) 11468#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11469static void 11470test_varargs_macros (void) 11471{ 11472 int x = 1234; 11473 int y = 5678; 11474 debug ("Flag"); 11475 debug ("X = %d\n", x); 11476 showlist (The first, second, and third items.); 11477 report (x>y, "x is %d but y is %d", x, y); 11478} 11479 11480// Check long long types. 11481#define BIG64 18446744073709551615ull 11482#define BIG32 4294967295ul 11483#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11484#if !BIG_OK 11485 your preprocessor is broken; 11486#endif 11487#if BIG_OK 11488#else 11489 your preprocessor is broken; 11490#endif 11491static long long int bignum = -9223372036854775807LL; 11492static unsigned long long int ubignum = BIG64; 11493 11494struct incomplete_array 11495{ 11496 int datasize; 11497 double data[]; 11498}; 11499 11500struct named_init { 11501 int number; 11502 const wchar_t *name; 11503 double average; 11504}; 11505 11506typedef const char *ccp; 11507 11508static inline int 11509test_restrict (ccp restrict text) 11510{ 11511 // See if C++-style comments work. 11512 // Iterate through items via the restricted pointer. 11513 // Also check for declarations in for loops. 11514 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11515 continue; 11516 return 0; 11517} 11518 11519// Check varargs and va_copy. 11520static void 11521test_varargs (const char *format, ...) 11522{ 11523 va_list args; 11524 va_start (args, format); 11525 va_list args_copy; 11526 va_copy (args_copy, args); 11527 11528 const char *str; 11529 int number; 11530 float fnumber; 11531 11532 while (*format) 11533 { 11534 switch (*format++) 11535 { 11536 case 's': // string 11537 str = va_arg (args_copy, const char *); 11538 break; 11539 case 'd': // int 11540 number = va_arg (args_copy, int); 11541 break; 11542 case 'f': // float 11543 fnumber = va_arg (args_copy, double); 11544 break; 11545 default: 11546 break; 11547 } 11548 } 11549 va_end (args_copy); 11550 va_end (args); 11551} 11552 11553int 11554main () 11555{ 11556 11557 // Check bool. 11558 _Bool success = false; 11559 11560 // Check restrict. 11561 if (test_restrict ("String literal") == 0) 11562 success = true; 11563 char *restrict newvar = "Another string"; 11564 11565 // Check varargs. 11566 test_varargs ("s, d' f .", "string", 65, 34.234); 11567 test_varargs_macros (); 11568 11569 // Check flexible array members. 11570 struct incomplete_array *ia = 11571 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11572 ia->datasize = 10; 11573 for (int i = 0; i < ia->datasize; ++i) 11574 ia->data[i] = i * 1.234; 11575 11576 // Check named initializers. 11577 struct named_init ni = { 11578 .number = 34, 11579 .name = L"Test wide string", 11580 .average = 543.34343, 11581 }; 11582 11583 ni.number = 58; 11584 11585 int dynamic_array[ni.number]; 11586 dynamic_array[ni.number - 1] = 543; 11587 11588 // work around unused variable warnings 11589 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11590 || dynamic_array[ni.number - 1] != 543); 11591 11592 ; 11593 return 0; 11594} 11595_ACEOF 11596for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11597do 11598 CC="$ac_save_CC $ac_arg" 11599 if ac_fn_c_try_compile "$LINENO"; then : 11600 ac_cv_prog_cc_c99=$ac_arg 11601fi 11602rm -f core conftest.err conftest.$ac_objext 11603 test "x$ac_cv_prog_cc_c99" != "xno" && break 11604done 11605rm -f conftest.$ac_ext 11606CC=$ac_save_CC 11607 11608fi 11609# AC_CACHE_VAL 11610case "x$ac_cv_prog_cc_c99" in 11611 x) 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11613$as_echo "none needed" >&6; } ;; 11614 xno) 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11616$as_echo "unsupported" >&6; } ;; 11617 *) 11618 CC="$CC $ac_cv_prog_cc_c99" 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11620$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11621esac 11622if test "x$ac_cv_prog_cc_c99" != xno; then : 11623 11624fi 11625 11626 11627 11628 11629 11630 11631ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11632if test "x$ac_cv_have_decl___clang__" = xyes; then : 11633 CLANGCC="yes" 11634else 11635 CLANGCC="no" 11636fi 11637 11638ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11639if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11640 INTELCC="yes" 11641else 11642 INTELCC="no" 11643fi 11644 11645ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11646if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11647 SUNCC="yes" 11648else 11649 SUNCC="no" 11650fi 11651 11652 11653 11654 11655if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11656 if test -n "$ac_tool_prefix"; then 11657 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11658set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11660$as_echo_n "checking for $ac_word... " >&6; } 11661if ${ac_cv_path_PKG_CONFIG+:} false; then : 11662 $as_echo_n "(cached) " >&6 11663else 11664 case $PKG_CONFIG in 11665 [\\/]* | ?:[\\/]*) 11666 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11667 ;; 11668 *) 11669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11670for as_dir in $PATH 11671do 11672 IFS=$as_save_IFS 11673 test -z "$as_dir" && as_dir=. 11674 for ac_exec_ext in '' $ac_executable_extensions; do 11675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11676 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11678 break 2 11679 fi 11680done 11681 done 11682IFS=$as_save_IFS 11683 11684 ;; 11685esac 11686fi 11687PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11688if test -n "$PKG_CONFIG"; then 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11690$as_echo "$PKG_CONFIG" >&6; } 11691else 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11693$as_echo "no" >&6; } 11694fi 11695 11696 11697fi 11698if test -z "$ac_cv_path_PKG_CONFIG"; then 11699 ac_pt_PKG_CONFIG=$PKG_CONFIG 11700 # Extract the first word of "pkg-config", so it can be a program name with args. 11701set dummy pkg-config; ac_word=$2 11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11703$as_echo_n "checking for $ac_word... " >&6; } 11704if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11705 $as_echo_n "(cached) " >&6 11706else 11707 case $ac_pt_PKG_CONFIG in 11708 [\\/]* | ?:[\\/]*) 11709 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11710 ;; 11711 *) 11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11713for as_dir in $PATH 11714do 11715 IFS=$as_save_IFS 11716 test -z "$as_dir" && as_dir=. 11717 for ac_exec_ext in '' $ac_executable_extensions; do 11718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11719 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11721 break 2 11722 fi 11723done 11724 done 11725IFS=$as_save_IFS 11726 11727 ;; 11728esac 11729fi 11730ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11731if test -n "$ac_pt_PKG_CONFIG"; then 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11733$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11734else 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11736$as_echo "no" >&6; } 11737fi 11738 11739 if test "x$ac_pt_PKG_CONFIG" = x; then 11740 PKG_CONFIG="" 11741 else 11742 case $cross_compiling:$ac_tool_warned in 11743yes:) 11744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11746ac_tool_warned=yes ;; 11747esac 11748 PKG_CONFIG=$ac_pt_PKG_CONFIG 11749 fi 11750else 11751 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11752fi 11753 11754fi 11755if test -n "$PKG_CONFIG"; then 11756 _pkg_min_version=0.9.0 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11758$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11759 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11761$as_echo "yes" >&6; } 11762 else 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11764$as_echo "no" >&6; } 11765 PKG_CONFIG="" 11766 fi 11767 11768fi 11769 11770 11771 11772 11773 11774# Check whether --enable-selective-werror was given. 11775if test "${enable_selective_werror+set}" = set; then : 11776 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11777else 11778 SELECTIVE_WERROR=yes 11779fi 11780 11781 11782 11783 11784 11785# -v is too short to test reliably with XORG_TESTSET_CFLAG 11786if test "x$SUNCC" = "xyes"; then 11787 BASE_CFLAGS="-v" 11788else 11789 BASE_CFLAGS="" 11790fi 11791 11792# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806xorg_testset_save_CFLAGS="$CFLAGS" 11807 11808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11813 $as_echo_n "(cached) " >&6 11814else 11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11816/* end confdefs.h. */ 11817int i; 11818_ACEOF 11819if ac_fn_c_try_compile "$LINENO"; then : 11820 xorg_cv_cc_flag_unknown_warning_option=yes 11821else 11822 xorg_cv_cc_flag_unknown_warning_option=no 11823fi 11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11825fi 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11829 CFLAGS="$xorg_testset_save_CFLAGS" 11830fi 11831 11832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11835 fi 11836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11840 $as_echo_n "(cached) " >&6 11841else 11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11843/* end confdefs.h. */ 11844int i; 11845_ACEOF 11846if ac_fn_c_try_compile "$LINENO"; then : 11847 xorg_cv_cc_flag_unused_command_line_argument=yes 11848else 11849 xorg_cv_cc_flag_unused_command_line_argument=no 11850fi 11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11852fi 11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11856 CFLAGS="$xorg_testset_save_CFLAGS" 11857fi 11858 11859found="no" 11860 11861 if test $found = "no" ; then 11862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11864 fi 11865 11866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11868 fi 11869 11870 CFLAGS="$CFLAGS -Wall" 11871 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11873$as_echo_n "checking if $CC supports -Wall... " >&6; } 11874 cacheid=xorg_cv_cc_flag__Wall 11875 if eval \${$cacheid+:} false; then : 11876 $as_echo_n "(cached) " >&6 11877else 11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11879/* end confdefs.h. */ 11880int i; 11881int 11882main () 11883{ 11884 11885 ; 11886 return 0; 11887} 11888_ACEOF 11889if ac_fn_c_try_link "$LINENO"; then : 11890 eval $cacheid=yes 11891else 11892 eval $cacheid=no 11893fi 11894rm -f core conftest.err conftest.$ac_objext \ 11895 conftest$ac_exeext conftest.$ac_ext 11896fi 11897 11898 11899 CFLAGS="$xorg_testset_save_CFLAGS" 11900 11901 eval supported=\$$cacheid 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11903$as_echo "$supported" >&6; } 11904 if test "$supported" = "yes" ; then 11905 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11906 found="yes" 11907 fi 11908 fi 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924xorg_testset_save_CFLAGS="$CFLAGS" 11925 11926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11931 $as_echo_n "(cached) " >&6 11932else 11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11934/* end confdefs.h. */ 11935int i; 11936_ACEOF 11937if ac_fn_c_try_compile "$LINENO"; then : 11938 xorg_cv_cc_flag_unknown_warning_option=yes 11939else 11940 xorg_cv_cc_flag_unknown_warning_option=no 11941fi 11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11943fi 11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11947 CFLAGS="$xorg_testset_save_CFLAGS" 11948fi 11949 11950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11953 fi 11954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11961/* end confdefs.h. */ 11962int i; 11963_ACEOF 11964if ac_fn_c_try_compile "$LINENO"; then : 11965 xorg_cv_cc_flag_unused_command_line_argument=yes 11966else 11967 xorg_cv_cc_flag_unused_command_line_argument=no 11968fi 11969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11970fi 11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11974 CFLAGS="$xorg_testset_save_CFLAGS" 11975fi 11976 11977found="no" 11978 11979 if test $found = "no" ; then 11980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11982 fi 11983 11984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11986 fi 11987 11988 CFLAGS="$CFLAGS -Wpointer-arith" 11989 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11991$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11992 cacheid=xorg_cv_cc_flag__Wpointer_arith 11993 if eval \${$cacheid+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11997/* end confdefs.h. */ 11998int i; 11999int 12000main () 12001{ 12002 12003 ; 12004 return 0; 12005} 12006_ACEOF 12007if ac_fn_c_try_link "$LINENO"; then : 12008 eval $cacheid=yes 12009else 12010 eval $cacheid=no 12011fi 12012rm -f core conftest.err conftest.$ac_objext \ 12013 conftest$ac_exeext conftest.$ac_ext 12014fi 12015 12016 12017 CFLAGS="$xorg_testset_save_CFLAGS" 12018 12019 eval supported=\$$cacheid 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12021$as_echo "$supported" >&6; } 12022 if test "$supported" = "yes" ; then 12023 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12024 found="yes" 12025 fi 12026 fi 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042xorg_testset_save_CFLAGS="$CFLAGS" 12043 12044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12049 $as_echo_n "(cached) " >&6 12050else 12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12052/* end confdefs.h. */ 12053int i; 12054_ACEOF 12055if ac_fn_c_try_compile "$LINENO"; then : 12056 xorg_cv_cc_flag_unknown_warning_option=yes 12057else 12058 xorg_cv_cc_flag_unknown_warning_option=no 12059fi 12060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12061fi 12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12065 CFLAGS="$xorg_testset_save_CFLAGS" 12066fi 12067 12068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12071 fi 12072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12076 $as_echo_n "(cached) " >&6 12077else 12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079/* end confdefs.h. */ 12080int i; 12081_ACEOF 12082if ac_fn_c_try_compile "$LINENO"; then : 12083 xorg_cv_cc_flag_unused_command_line_argument=yes 12084else 12085 xorg_cv_cc_flag_unused_command_line_argument=no 12086fi 12087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12088fi 12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12092 CFLAGS="$xorg_testset_save_CFLAGS" 12093fi 12094 12095found="no" 12096 12097 if test $found = "no" ; then 12098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12100 fi 12101 12102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12104 fi 12105 12106 CFLAGS="$CFLAGS -Wmissing-declarations" 12107 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12109$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12110 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12111 if eval \${$cacheid+:} false; then : 12112 $as_echo_n "(cached) " >&6 12113else 12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115/* end confdefs.h. */ 12116int i; 12117int 12118main () 12119{ 12120 12121 ; 12122 return 0; 12123} 12124_ACEOF 12125if ac_fn_c_try_link "$LINENO"; then : 12126 eval $cacheid=yes 12127else 12128 eval $cacheid=no 12129fi 12130rm -f core conftest.err conftest.$ac_objext \ 12131 conftest$ac_exeext conftest.$ac_ext 12132fi 12133 12134 12135 CFLAGS="$xorg_testset_save_CFLAGS" 12136 12137 eval supported=\$$cacheid 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12139$as_echo "$supported" >&6; } 12140 if test "$supported" = "yes" ; then 12141 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12142 found="yes" 12143 fi 12144 fi 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160xorg_testset_save_CFLAGS="$CFLAGS" 12161 12162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12167 $as_echo_n "(cached) " >&6 12168else 12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12170/* end confdefs.h. */ 12171int i; 12172_ACEOF 12173if ac_fn_c_try_compile "$LINENO"; then : 12174 xorg_cv_cc_flag_unknown_warning_option=yes 12175else 12176 xorg_cv_cc_flag_unknown_warning_option=no 12177fi 12178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12179fi 12180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12183 CFLAGS="$xorg_testset_save_CFLAGS" 12184fi 12185 12186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12189 fi 12190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12194 $as_echo_n "(cached) " >&6 12195else 12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12197/* end confdefs.h. */ 12198int i; 12199_ACEOF 12200if ac_fn_c_try_compile "$LINENO"; then : 12201 xorg_cv_cc_flag_unused_command_line_argument=yes 12202else 12203 xorg_cv_cc_flag_unused_command_line_argument=no 12204fi 12205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12206fi 12207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12210 CFLAGS="$xorg_testset_save_CFLAGS" 12211fi 12212 12213found="no" 12214 12215 if test $found = "no" ; then 12216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12218 fi 12219 12220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12222 fi 12223 12224 CFLAGS="$CFLAGS -Wformat=2" 12225 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12227$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12228 cacheid=xorg_cv_cc_flag__Wformat_2 12229 if eval \${$cacheid+:} false; then : 12230 $as_echo_n "(cached) " >&6 12231else 12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12233/* end confdefs.h. */ 12234int i; 12235int 12236main () 12237{ 12238 12239 ; 12240 return 0; 12241} 12242_ACEOF 12243if ac_fn_c_try_link "$LINENO"; then : 12244 eval $cacheid=yes 12245else 12246 eval $cacheid=no 12247fi 12248rm -f core conftest.err conftest.$ac_objext \ 12249 conftest$ac_exeext conftest.$ac_ext 12250fi 12251 12252 12253 CFLAGS="$xorg_testset_save_CFLAGS" 12254 12255 eval supported=\$$cacheid 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12257$as_echo "$supported" >&6; } 12258 if test "$supported" = "yes" ; then 12259 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12260 found="yes" 12261 fi 12262 fi 12263 12264 if test $found = "no" ; then 12265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12267 fi 12268 12269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12271 fi 12272 12273 CFLAGS="$CFLAGS -Wformat" 12274 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12276$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12277 cacheid=xorg_cv_cc_flag__Wformat 12278 if eval \${$cacheid+:} false; then : 12279 $as_echo_n "(cached) " >&6 12280else 12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12282/* end confdefs.h. */ 12283int i; 12284int 12285main () 12286{ 12287 12288 ; 12289 return 0; 12290} 12291_ACEOF 12292if ac_fn_c_try_link "$LINENO"; then : 12293 eval $cacheid=yes 12294else 12295 eval $cacheid=no 12296fi 12297rm -f core conftest.err conftest.$ac_objext \ 12298 conftest$ac_exeext conftest.$ac_ext 12299fi 12300 12301 12302 CFLAGS="$xorg_testset_save_CFLAGS" 12303 12304 eval supported=\$$cacheid 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12306$as_echo "$supported" >&6; } 12307 if test "$supported" = "yes" ; then 12308 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12309 found="yes" 12310 fi 12311 fi 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329xorg_testset_save_CFLAGS="$CFLAGS" 12330 12331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12336 $as_echo_n "(cached) " >&6 12337else 12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12339/* end confdefs.h. */ 12340int i; 12341_ACEOF 12342if ac_fn_c_try_compile "$LINENO"; then : 12343 xorg_cv_cc_flag_unknown_warning_option=yes 12344else 12345 xorg_cv_cc_flag_unknown_warning_option=no 12346fi 12347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12348fi 12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12352 CFLAGS="$xorg_testset_save_CFLAGS" 12353fi 12354 12355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12358 fi 12359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12363 $as_echo_n "(cached) " >&6 12364else 12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12366/* end confdefs.h. */ 12367int i; 12368_ACEOF 12369if ac_fn_c_try_compile "$LINENO"; then : 12370 xorg_cv_cc_flag_unused_command_line_argument=yes 12371else 12372 xorg_cv_cc_flag_unused_command_line_argument=no 12373fi 12374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12375fi 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12379 CFLAGS="$xorg_testset_save_CFLAGS" 12380fi 12381 12382found="no" 12383 12384 if test $found = "no" ; then 12385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12387 fi 12388 12389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12391 fi 12392 12393 CFLAGS="$CFLAGS -Wstrict-prototypes" 12394 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12396$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12397 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12398 if eval \${$cacheid+:} false; then : 12399 $as_echo_n "(cached) " >&6 12400else 12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12402/* end confdefs.h. */ 12403int i; 12404int 12405main () 12406{ 12407 12408 ; 12409 return 0; 12410} 12411_ACEOF 12412if ac_fn_c_try_link "$LINENO"; then : 12413 eval $cacheid=yes 12414else 12415 eval $cacheid=no 12416fi 12417rm -f core conftest.err conftest.$ac_objext \ 12418 conftest$ac_exeext conftest.$ac_ext 12419fi 12420 12421 12422 CFLAGS="$xorg_testset_save_CFLAGS" 12423 12424 eval supported=\$$cacheid 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12426$as_echo "$supported" >&6; } 12427 if test "$supported" = "yes" ; then 12428 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12429 found="yes" 12430 fi 12431 fi 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447xorg_testset_save_CFLAGS="$CFLAGS" 12448 12449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12454 $as_echo_n "(cached) " >&6 12455else 12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12457/* end confdefs.h. */ 12458int i; 12459_ACEOF 12460if ac_fn_c_try_compile "$LINENO"; then : 12461 xorg_cv_cc_flag_unknown_warning_option=yes 12462else 12463 xorg_cv_cc_flag_unknown_warning_option=no 12464fi 12465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12466fi 12467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12470 CFLAGS="$xorg_testset_save_CFLAGS" 12471fi 12472 12473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12476 fi 12477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12481 $as_echo_n "(cached) " >&6 12482else 12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12484/* end confdefs.h. */ 12485int i; 12486_ACEOF 12487if ac_fn_c_try_compile "$LINENO"; then : 12488 xorg_cv_cc_flag_unused_command_line_argument=yes 12489else 12490 xorg_cv_cc_flag_unused_command_line_argument=no 12491fi 12492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12493fi 12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12497 CFLAGS="$xorg_testset_save_CFLAGS" 12498fi 12499 12500found="no" 12501 12502 if test $found = "no" ; then 12503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12505 fi 12506 12507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12509 fi 12510 12511 CFLAGS="$CFLAGS -Wmissing-prototypes" 12512 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12514$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12515 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12516 if eval \${$cacheid+:} false; then : 12517 $as_echo_n "(cached) " >&6 12518else 12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521int i; 12522int 12523main () 12524{ 12525 12526 ; 12527 return 0; 12528} 12529_ACEOF 12530if ac_fn_c_try_link "$LINENO"; then : 12531 eval $cacheid=yes 12532else 12533 eval $cacheid=no 12534fi 12535rm -f core conftest.err conftest.$ac_objext \ 12536 conftest$ac_exeext conftest.$ac_ext 12537fi 12538 12539 12540 CFLAGS="$xorg_testset_save_CFLAGS" 12541 12542 eval supported=\$$cacheid 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12544$as_echo "$supported" >&6; } 12545 if test "$supported" = "yes" ; then 12546 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12547 found="yes" 12548 fi 12549 fi 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565xorg_testset_save_CFLAGS="$CFLAGS" 12566 12567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12572 $as_echo_n "(cached) " >&6 12573else 12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12575/* end confdefs.h. */ 12576int i; 12577_ACEOF 12578if ac_fn_c_try_compile "$LINENO"; then : 12579 xorg_cv_cc_flag_unknown_warning_option=yes 12580else 12581 xorg_cv_cc_flag_unknown_warning_option=no 12582fi 12583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12584fi 12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12588 CFLAGS="$xorg_testset_save_CFLAGS" 12589fi 12590 12591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12594 fi 12595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12599 $as_echo_n "(cached) " >&6 12600else 12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602/* end confdefs.h. */ 12603int i; 12604_ACEOF 12605if ac_fn_c_try_compile "$LINENO"; then : 12606 xorg_cv_cc_flag_unused_command_line_argument=yes 12607else 12608 xorg_cv_cc_flag_unused_command_line_argument=no 12609fi 12610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12611fi 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12615 CFLAGS="$xorg_testset_save_CFLAGS" 12616fi 12617 12618found="no" 12619 12620 if test $found = "no" ; then 12621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12623 fi 12624 12625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12627 fi 12628 12629 CFLAGS="$CFLAGS -Wnested-externs" 12630 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12632$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12633 cacheid=xorg_cv_cc_flag__Wnested_externs 12634 if eval \${$cacheid+:} false; then : 12635 $as_echo_n "(cached) " >&6 12636else 12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12638/* end confdefs.h. */ 12639int i; 12640int 12641main () 12642{ 12643 12644 ; 12645 return 0; 12646} 12647_ACEOF 12648if ac_fn_c_try_link "$LINENO"; then : 12649 eval $cacheid=yes 12650else 12651 eval $cacheid=no 12652fi 12653rm -f core conftest.err conftest.$ac_objext \ 12654 conftest$ac_exeext conftest.$ac_ext 12655fi 12656 12657 12658 CFLAGS="$xorg_testset_save_CFLAGS" 12659 12660 eval supported=\$$cacheid 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12662$as_echo "$supported" >&6; } 12663 if test "$supported" = "yes" ; then 12664 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12665 found="yes" 12666 fi 12667 fi 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683xorg_testset_save_CFLAGS="$CFLAGS" 12684 12685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12690 $as_echo_n "(cached) " >&6 12691else 12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12693/* end confdefs.h. */ 12694int i; 12695_ACEOF 12696if ac_fn_c_try_compile "$LINENO"; then : 12697 xorg_cv_cc_flag_unknown_warning_option=yes 12698else 12699 xorg_cv_cc_flag_unknown_warning_option=no 12700fi 12701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12702fi 12703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12706 CFLAGS="$xorg_testset_save_CFLAGS" 12707fi 12708 12709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12712 fi 12713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12717 $as_echo_n "(cached) " >&6 12718else 12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12720/* end confdefs.h. */ 12721int i; 12722_ACEOF 12723if ac_fn_c_try_compile "$LINENO"; then : 12724 xorg_cv_cc_flag_unused_command_line_argument=yes 12725else 12726 xorg_cv_cc_flag_unused_command_line_argument=no 12727fi 12728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12729fi 12730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12733 CFLAGS="$xorg_testset_save_CFLAGS" 12734fi 12735 12736found="no" 12737 12738 if test $found = "no" ; then 12739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12741 fi 12742 12743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12745 fi 12746 12747 CFLAGS="$CFLAGS -Wbad-function-cast" 12748 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12750$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12751 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12752 if eval \${$cacheid+:} false; then : 12753 $as_echo_n "(cached) " >&6 12754else 12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12756/* end confdefs.h. */ 12757int i; 12758int 12759main () 12760{ 12761 12762 ; 12763 return 0; 12764} 12765_ACEOF 12766if ac_fn_c_try_link "$LINENO"; then : 12767 eval $cacheid=yes 12768else 12769 eval $cacheid=no 12770fi 12771rm -f core conftest.err conftest.$ac_objext \ 12772 conftest$ac_exeext conftest.$ac_ext 12773fi 12774 12775 12776 CFLAGS="$xorg_testset_save_CFLAGS" 12777 12778 eval supported=\$$cacheid 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12780$as_echo "$supported" >&6; } 12781 if test "$supported" = "yes" ; then 12782 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12783 found="yes" 12784 fi 12785 fi 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801xorg_testset_save_CFLAGS="$CFLAGS" 12802 12803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12808 $as_echo_n "(cached) " >&6 12809else 12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12811/* end confdefs.h. */ 12812int i; 12813_ACEOF 12814if ac_fn_c_try_compile "$LINENO"; then : 12815 xorg_cv_cc_flag_unknown_warning_option=yes 12816else 12817 xorg_cv_cc_flag_unknown_warning_option=no 12818fi 12819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12820fi 12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12824 CFLAGS="$xorg_testset_save_CFLAGS" 12825fi 12826 12827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12830 fi 12831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12835 $as_echo_n "(cached) " >&6 12836else 12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12838/* end confdefs.h. */ 12839int i; 12840_ACEOF 12841if ac_fn_c_try_compile "$LINENO"; then : 12842 xorg_cv_cc_flag_unused_command_line_argument=yes 12843else 12844 xorg_cv_cc_flag_unused_command_line_argument=no 12845fi 12846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12847fi 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12851 CFLAGS="$xorg_testset_save_CFLAGS" 12852fi 12853 12854found="no" 12855 12856 if test $found = "no" ; then 12857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12859 fi 12860 12861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12863 fi 12864 12865 CFLAGS="$CFLAGS -Wold-style-definition" 12866 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12868$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12869 cacheid=xorg_cv_cc_flag__Wold_style_definition 12870 if eval \${$cacheid+:} false; then : 12871 $as_echo_n "(cached) " >&6 12872else 12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12874/* end confdefs.h. */ 12875int i; 12876int 12877main () 12878{ 12879 12880 ; 12881 return 0; 12882} 12883_ACEOF 12884if ac_fn_c_try_link "$LINENO"; then : 12885 eval $cacheid=yes 12886else 12887 eval $cacheid=no 12888fi 12889rm -f core conftest.err conftest.$ac_objext \ 12890 conftest$ac_exeext conftest.$ac_ext 12891fi 12892 12893 12894 CFLAGS="$xorg_testset_save_CFLAGS" 12895 12896 eval supported=\$$cacheid 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12898$as_echo "$supported" >&6; } 12899 if test "$supported" = "yes" ; then 12900 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12901 found="yes" 12902 fi 12903 fi 12904 12905 if test $found = "no" ; then 12906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12908 fi 12909 12910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12912 fi 12913 12914 CFLAGS="$CFLAGS -fd" 12915 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 12917$as_echo_n "checking if $CC supports -fd... " >&6; } 12918 cacheid=xorg_cv_cc_flag__fd 12919 if eval \${$cacheid+:} false; then : 12920 $as_echo_n "(cached) " >&6 12921else 12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12923/* end confdefs.h. */ 12924int i; 12925int 12926main () 12927{ 12928 12929 ; 12930 return 0; 12931} 12932_ACEOF 12933if ac_fn_c_try_link "$LINENO"; then : 12934 eval $cacheid=yes 12935else 12936 eval $cacheid=no 12937fi 12938rm -f core conftest.err conftest.$ac_objext \ 12939 conftest$ac_exeext conftest.$ac_ext 12940fi 12941 12942 12943 CFLAGS="$xorg_testset_save_CFLAGS" 12944 12945 eval supported=\$$cacheid 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12947$as_echo "$supported" >&6; } 12948 if test "$supported" = "yes" ; then 12949 BASE_CFLAGS="$BASE_CFLAGS -fd" 12950 found="yes" 12951 fi 12952 fi 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968xorg_testset_save_CFLAGS="$CFLAGS" 12969 12970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979int i; 12980_ACEOF 12981if ac_fn_c_try_compile "$LINENO"; then : 12982 xorg_cv_cc_flag_unknown_warning_option=yes 12983else 12984 xorg_cv_cc_flag_unknown_warning_option=no 12985fi 12986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12987fi 12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12991 CFLAGS="$xorg_testset_save_CFLAGS" 12992fi 12993 12994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12997 fi 12998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13002 $as_echo_n "(cached) " >&6 13003else 13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13005/* end confdefs.h. */ 13006int i; 13007_ACEOF 13008if ac_fn_c_try_compile "$LINENO"; then : 13009 xorg_cv_cc_flag_unused_command_line_argument=yes 13010else 13011 xorg_cv_cc_flag_unused_command_line_argument=no 13012fi 13013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13014fi 13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13018 CFLAGS="$xorg_testset_save_CFLAGS" 13019fi 13020 13021found="no" 13022 13023 if test $found = "no" ; then 13024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13026 fi 13027 13028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13030 fi 13031 13032 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13033 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13035$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13036 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13037 if eval \${$cacheid+:} false; then : 13038 $as_echo_n "(cached) " >&6 13039else 13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13041/* end confdefs.h. */ 13042int i; 13043int 13044main () 13045{ 13046 13047 ; 13048 return 0; 13049} 13050_ACEOF 13051if ac_fn_c_try_link "$LINENO"; then : 13052 eval $cacheid=yes 13053else 13054 eval $cacheid=no 13055fi 13056rm -f core conftest.err conftest.$ac_objext \ 13057 conftest$ac_exeext conftest.$ac_ext 13058fi 13059 13060 13061 CFLAGS="$xorg_testset_save_CFLAGS" 13062 13063 eval supported=\$$cacheid 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13065$as_echo "$supported" >&6; } 13066 if test "$supported" = "yes" ; then 13067 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13068 found="yes" 13069 fi 13070 fi 13071 13072 13073 13074 13075 13076# This chunk adds additional warnings that could catch undesired effects. 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090xorg_testset_save_CFLAGS="$CFLAGS" 13091 13092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13097 $as_echo_n "(cached) " >&6 13098else 13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100/* end confdefs.h. */ 13101int i; 13102_ACEOF 13103if ac_fn_c_try_compile "$LINENO"; then : 13104 xorg_cv_cc_flag_unknown_warning_option=yes 13105else 13106 xorg_cv_cc_flag_unknown_warning_option=no 13107fi 13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13109fi 13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13113 CFLAGS="$xorg_testset_save_CFLAGS" 13114fi 13115 13116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13119 fi 13120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13124 $as_echo_n "(cached) " >&6 13125else 13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13127/* end confdefs.h. */ 13128int i; 13129_ACEOF 13130if ac_fn_c_try_compile "$LINENO"; then : 13131 xorg_cv_cc_flag_unused_command_line_argument=yes 13132else 13133 xorg_cv_cc_flag_unused_command_line_argument=no 13134fi 13135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13136fi 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13140 CFLAGS="$xorg_testset_save_CFLAGS" 13141fi 13142 13143found="no" 13144 13145 if test $found = "no" ; then 13146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13148 fi 13149 13150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13152 fi 13153 13154 CFLAGS="$CFLAGS -Wunused" 13155 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13157$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13158 cacheid=xorg_cv_cc_flag__Wunused 13159 if eval \${$cacheid+:} false; then : 13160 $as_echo_n "(cached) " >&6 13161else 13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13163/* end confdefs.h. */ 13164int i; 13165int 13166main () 13167{ 13168 13169 ; 13170 return 0; 13171} 13172_ACEOF 13173if ac_fn_c_try_link "$LINENO"; then : 13174 eval $cacheid=yes 13175else 13176 eval $cacheid=no 13177fi 13178rm -f core conftest.err conftest.$ac_objext \ 13179 conftest$ac_exeext conftest.$ac_ext 13180fi 13181 13182 13183 CFLAGS="$xorg_testset_save_CFLAGS" 13184 13185 eval supported=\$$cacheid 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13187$as_echo "$supported" >&6; } 13188 if test "$supported" = "yes" ; then 13189 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13190 found="yes" 13191 fi 13192 fi 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208xorg_testset_save_CFLAGS="$CFLAGS" 13209 13210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13215 $as_echo_n "(cached) " >&6 13216else 13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13218/* end confdefs.h. */ 13219int i; 13220_ACEOF 13221if ac_fn_c_try_compile "$LINENO"; then : 13222 xorg_cv_cc_flag_unknown_warning_option=yes 13223else 13224 xorg_cv_cc_flag_unknown_warning_option=no 13225fi 13226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13227fi 13228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13231 CFLAGS="$xorg_testset_save_CFLAGS" 13232fi 13233 13234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13237 fi 13238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13242 $as_echo_n "(cached) " >&6 13243else 13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13245/* end confdefs.h. */ 13246int i; 13247_ACEOF 13248if ac_fn_c_try_compile "$LINENO"; then : 13249 xorg_cv_cc_flag_unused_command_line_argument=yes 13250else 13251 xorg_cv_cc_flag_unused_command_line_argument=no 13252fi 13253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13254fi 13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13258 CFLAGS="$xorg_testset_save_CFLAGS" 13259fi 13260 13261found="no" 13262 13263 if test $found = "no" ; then 13264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13266 fi 13267 13268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13270 fi 13271 13272 CFLAGS="$CFLAGS -Wuninitialized" 13273 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13275$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13276 cacheid=xorg_cv_cc_flag__Wuninitialized 13277 if eval \${$cacheid+:} false; then : 13278 $as_echo_n "(cached) " >&6 13279else 13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13281/* end confdefs.h. */ 13282int i; 13283int 13284main () 13285{ 13286 13287 ; 13288 return 0; 13289} 13290_ACEOF 13291if ac_fn_c_try_link "$LINENO"; then : 13292 eval $cacheid=yes 13293else 13294 eval $cacheid=no 13295fi 13296rm -f core conftest.err conftest.$ac_objext \ 13297 conftest$ac_exeext conftest.$ac_ext 13298fi 13299 13300 13301 CFLAGS="$xorg_testset_save_CFLAGS" 13302 13303 eval supported=\$$cacheid 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13305$as_echo "$supported" >&6; } 13306 if test "$supported" = "yes" ; then 13307 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13308 found="yes" 13309 fi 13310 fi 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326xorg_testset_save_CFLAGS="$CFLAGS" 13327 13328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13333 $as_echo_n "(cached) " >&6 13334else 13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13336/* end confdefs.h. */ 13337int i; 13338_ACEOF 13339if ac_fn_c_try_compile "$LINENO"; then : 13340 xorg_cv_cc_flag_unknown_warning_option=yes 13341else 13342 xorg_cv_cc_flag_unknown_warning_option=no 13343fi 13344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13345fi 13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13349 CFLAGS="$xorg_testset_save_CFLAGS" 13350fi 13351 13352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13355 fi 13356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13360 $as_echo_n "(cached) " >&6 13361else 13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13363/* end confdefs.h. */ 13364int i; 13365_ACEOF 13366if ac_fn_c_try_compile "$LINENO"; then : 13367 xorg_cv_cc_flag_unused_command_line_argument=yes 13368else 13369 xorg_cv_cc_flag_unused_command_line_argument=no 13370fi 13371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13372fi 13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13376 CFLAGS="$xorg_testset_save_CFLAGS" 13377fi 13378 13379found="no" 13380 13381 if test $found = "no" ; then 13382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13384 fi 13385 13386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13388 fi 13389 13390 CFLAGS="$CFLAGS -Wshadow" 13391 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13393$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13394 cacheid=xorg_cv_cc_flag__Wshadow 13395 if eval \${$cacheid+:} false; then : 13396 $as_echo_n "(cached) " >&6 13397else 13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13399/* end confdefs.h. */ 13400int i; 13401int 13402main () 13403{ 13404 13405 ; 13406 return 0; 13407} 13408_ACEOF 13409if ac_fn_c_try_link "$LINENO"; then : 13410 eval $cacheid=yes 13411else 13412 eval $cacheid=no 13413fi 13414rm -f core conftest.err conftest.$ac_objext \ 13415 conftest$ac_exeext conftest.$ac_ext 13416fi 13417 13418 13419 CFLAGS="$xorg_testset_save_CFLAGS" 13420 13421 eval supported=\$$cacheid 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13423$as_echo "$supported" >&6; } 13424 if test "$supported" = "yes" ; then 13425 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13426 found="yes" 13427 fi 13428 fi 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444xorg_testset_save_CFLAGS="$CFLAGS" 13445 13446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13451 $as_echo_n "(cached) " >&6 13452else 13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13454/* end confdefs.h. */ 13455int i; 13456_ACEOF 13457if ac_fn_c_try_compile "$LINENO"; then : 13458 xorg_cv_cc_flag_unknown_warning_option=yes 13459else 13460 xorg_cv_cc_flag_unknown_warning_option=no 13461fi 13462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13463fi 13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13467 CFLAGS="$xorg_testset_save_CFLAGS" 13468fi 13469 13470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13473 fi 13474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13478 $as_echo_n "(cached) " >&6 13479else 13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13481/* end confdefs.h. */ 13482int i; 13483_ACEOF 13484if ac_fn_c_try_compile "$LINENO"; then : 13485 xorg_cv_cc_flag_unused_command_line_argument=yes 13486else 13487 xorg_cv_cc_flag_unused_command_line_argument=no 13488fi 13489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13490fi 13491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13494 CFLAGS="$xorg_testset_save_CFLAGS" 13495fi 13496 13497found="no" 13498 13499 if test $found = "no" ; then 13500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13502 fi 13503 13504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13506 fi 13507 13508 CFLAGS="$CFLAGS -Wmissing-noreturn" 13509 13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13511$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13512 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13513 if eval \${$cacheid+:} false; then : 13514 $as_echo_n "(cached) " >&6 13515else 13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13517/* end confdefs.h. */ 13518int i; 13519int 13520main () 13521{ 13522 13523 ; 13524 return 0; 13525} 13526_ACEOF 13527if ac_fn_c_try_link "$LINENO"; then : 13528 eval $cacheid=yes 13529else 13530 eval $cacheid=no 13531fi 13532rm -f core conftest.err conftest.$ac_objext \ 13533 conftest$ac_exeext conftest.$ac_ext 13534fi 13535 13536 13537 CFLAGS="$xorg_testset_save_CFLAGS" 13538 13539 eval supported=\$$cacheid 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13541$as_echo "$supported" >&6; } 13542 if test "$supported" = "yes" ; then 13543 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13544 found="yes" 13545 fi 13546 fi 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562xorg_testset_save_CFLAGS="$CFLAGS" 13563 13564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13569 $as_echo_n "(cached) " >&6 13570else 13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572/* end confdefs.h. */ 13573int i; 13574_ACEOF 13575if ac_fn_c_try_compile "$LINENO"; then : 13576 xorg_cv_cc_flag_unknown_warning_option=yes 13577else 13578 xorg_cv_cc_flag_unknown_warning_option=no 13579fi 13580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13581fi 13582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13585 CFLAGS="$xorg_testset_save_CFLAGS" 13586fi 13587 13588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13591 fi 13592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13596 $as_echo_n "(cached) " >&6 13597else 13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13599/* end confdefs.h. */ 13600int i; 13601_ACEOF 13602if ac_fn_c_try_compile "$LINENO"; then : 13603 xorg_cv_cc_flag_unused_command_line_argument=yes 13604else 13605 xorg_cv_cc_flag_unused_command_line_argument=no 13606fi 13607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13608fi 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13612 CFLAGS="$xorg_testset_save_CFLAGS" 13613fi 13614 13615found="no" 13616 13617 if test $found = "no" ; then 13618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13620 fi 13621 13622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13624 fi 13625 13626 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13627 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13629$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13630 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13631 if eval \${$cacheid+:} false; then : 13632 $as_echo_n "(cached) " >&6 13633else 13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13635/* end confdefs.h. */ 13636int i; 13637int 13638main () 13639{ 13640 13641 ; 13642 return 0; 13643} 13644_ACEOF 13645if ac_fn_c_try_link "$LINENO"; then : 13646 eval $cacheid=yes 13647else 13648 eval $cacheid=no 13649fi 13650rm -f core conftest.err conftest.$ac_objext \ 13651 conftest$ac_exeext conftest.$ac_ext 13652fi 13653 13654 13655 CFLAGS="$xorg_testset_save_CFLAGS" 13656 13657 eval supported=\$$cacheid 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13659$as_echo "$supported" >&6; } 13660 if test "$supported" = "yes" ; then 13661 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13662 found="yes" 13663 fi 13664 fi 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680xorg_testset_save_CFLAGS="$CFLAGS" 13681 13682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691int i; 13692_ACEOF 13693if ac_fn_c_try_compile "$LINENO"; then : 13694 xorg_cv_cc_flag_unknown_warning_option=yes 13695else 13696 xorg_cv_cc_flag_unknown_warning_option=no 13697fi 13698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13699fi 13700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13703 CFLAGS="$xorg_testset_save_CFLAGS" 13704fi 13705 13706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13709 fi 13710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13714 $as_echo_n "(cached) " >&6 13715else 13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13717/* end confdefs.h. */ 13718int i; 13719_ACEOF 13720if ac_fn_c_try_compile "$LINENO"; then : 13721 xorg_cv_cc_flag_unused_command_line_argument=yes 13722else 13723 xorg_cv_cc_flag_unused_command_line_argument=no 13724fi 13725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13726fi 13727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13730 CFLAGS="$xorg_testset_save_CFLAGS" 13731fi 13732 13733found="no" 13734 13735 if test $found = "no" ; then 13736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13738 fi 13739 13740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13742 fi 13743 13744 CFLAGS="$CFLAGS -Wredundant-decls" 13745 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13747$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13748 cacheid=xorg_cv_cc_flag__Wredundant_decls 13749 if eval \${$cacheid+:} false; then : 13750 $as_echo_n "(cached) " >&6 13751else 13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13753/* end confdefs.h. */ 13754int i; 13755int 13756main () 13757{ 13758 13759 ; 13760 return 0; 13761} 13762_ACEOF 13763if ac_fn_c_try_link "$LINENO"; then : 13764 eval $cacheid=yes 13765else 13766 eval $cacheid=no 13767fi 13768rm -f core conftest.err conftest.$ac_objext \ 13769 conftest$ac_exeext conftest.$ac_ext 13770fi 13771 13772 13773 CFLAGS="$xorg_testset_save_CFLAGS" 13774 13775 eval supported=\$$cacheid 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13777$as_echo "$supported" >&6; } 13778 if test "$supported" = "yes" ; then 13779 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13780 found="yes" 13781 fi 13782 fi 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798xorg_testset_save_CFLAGS="$CFLAGS" 13799 13800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809int i; 13810_ACEOF 13811if ac_fn_c_try_compile "$LINENO"; then : 13812 xorg_cv_cc_flag_unknown_warning_option=yes 13813else 13814 xorg_cv_cc_flag_unknown_warning_option=no 13815fi 13816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13817fi 13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13821 CFLAGS="$xorg_testset_save_CFLAGS" 13822fi 13823 13824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13827 fi 13828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13832 $as_echo_n "(cached) " >&6 13833else 13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13835/* end confdefs.h. */ 13836int i; 13837_ACEOF 13838if ac_fn_c_try_compile "$LINENO"; then : 13839 xorg_cv_cc_flag_unused_command_line_argument=yes 13840else 13841 xorg_cv_cc_flag_unused_command_line_argument=no 13842fi 13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13844fi 13845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13848 CFLAGS="$xorg_testset_save_CFLAGS" 13849fi 13850 13851found="no" 13852 13853 if test $found = "no" ; then 13854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13856 fi 13857 13858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13860 fi 13861 13862 CFLAGS="$CFLAGS -Wlogical-op" 13863 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 13865$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 13866 cacheid=xorg_cv_cc_flag__Wlogical_op 13867 if eval \${$cacheid+:} false; then : 13868 $as_echo_n "(cached) " >&6 13869else 13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13871/* end confdefs.h. */ 13872int i; 13873int 13874main () 13875{ 13876 13877 ; 13878 return 0; 13879} 13880_ACEOF 13881if ac_fn_c_try_link "$LINENO"; then : 13882 eval $cacheid=yes 13883else 13884 eval $cacheid=no 13885fi 13886rm -f core conftest.err conftest.$ac_objext \ 13887 conftest$ac_exeext conftest.$ac_ext 13888fi 13889 13890 13891 CFLAGS="$xorg_testset_save_CFLAGS" 13892 13893 eval supported=\$$cacheid 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13895$as_echo "$supported" >&6; } 13896 if test "$supported" = "yes" ; then 13897 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 13898 found="yes" 13899 fi 13900 fi 13901 13902 13903 13904# These are currently disabled because they are noisy. They will be enabled 13905# in the future once the codebase is sufficiently modernized to silence 13906# them. For now, I don't want them to drown out the other warnings. 13907# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13908# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13909# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 13910 13911# Turn some warnings into errors, so we don't accidently get successful builds 13912# when there are problems that should be fixed. 13913 13914if test "x$SELECTIVE_WERROR" = "xyes" ; then 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928xorg_testset_save_CFLAGS="$CFLAGS" 13929 13930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13938/* end confdefs.h. */ 13939int i; 13940_ACEOF 13941if ac_fn_c_try_compile "$LINENO"; then : 13942 xorg_cv_cc_flag_unknown_warning_option=yes 13943else 13944 xorg_cv_cc_flag_unknown_warning_option=no 13945fi 13946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13947fi 13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13951 CFLAGS="$xorg_testset_save_CFLAGS" 13952fi 13953 13954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13957 fi 13958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13962 $as_echo_n "(cached) " >&6 13963else 13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13965/* end confdefs.h. */ 13966int i; 13967_ACEOF 13968if ac_fn_c_try_compile "$LINENO"; then : 13969 xorg_cv_cc_flag_unused_command_line_argument=yes 13970else 13971 xorg_cv_cc_flag_unused_command_line_argument=no 13972fi 13973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13974fi 13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13978 CFLAGS="$xorg_testset_save_CFLAGS" 13979fi 13980 13981found="no" 13982 13983 if test $found = "no" ; then 13984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13986 fi 13987 13988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13990 fi 13991 13992 CFLAGS="$CFLAGS -Werror=implicit" 13993 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13995$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13996 cacheid=xorg_cv_cc_flag__Werror_implicit 13997 if eval \${$cacheid+:} false; then : 13998 $as_echo_n "(cached) " >&6 13999else 14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14001/* end confdefs.h. */ 14002int i; 14003int 14004main () 14005{ 14006 14007 ; 14008 return 0; 14009} 14010_ACEOF 14011if ac_fn_c_try_link "$LINENO"; then : 14012 eval $cacheid=yes 14013else 14014 eval $cacheid=no 14015fi 14016rm -f core conftest.err conftest.$ac_objext \ 14017 conftest$ac_exeext conftest.$ac_ext 14018fi 14019 14020 14021 CFLAGS="$xorg_testset_save_CFLAGS" 14022 14023 eval supported=\$$cacheid 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14025$as_echo "$supported" >&6; } 14026 if test "$supported" = "yes" ; then 14027 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14028 found="yes" 14029 fi 14030 fi 14031 14032 if test $found = "no" ; then 14033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14035 fi 14036 14037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14039 fi 14040 14041 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14042 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14044$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14045 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14046 if eval \${$cacheid+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050/* end confdefs.h. */ 14051int i; 14052int 14053main () 14054{ 14055 14056 ; 14057 return 0; 14058} 14059_ACEOF 14060if ac_fn_c_try_link "$LINENO"; then : 14061 eval $cacheid=yes 14062else 14063 eval $cacheid=no 14064fi 14065rm -f core conftest.err conftest.$ac_objext \ 14066 conftest$ac_exeext conftest.$ac_ext 14067fi 14068 14069 14070 CFLAGS="$xorg_testset_save_CFLAGS" 14071 14072 eval supported=\$$cacheid 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14074$as_echo "$supported" >&6; } 14075 if test "$supported" = "yes" ; then 14076 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14077 found="yes" 14078 fi 14079 fi 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095xorg_testset_save_CFLAGS="$CFLAGS" 14096 14097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14102 $as_echo_n "(cached) " >&6 14103else 14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14105/* end confdefs.h. */ 14106int i; 14107_ACEOF 14108if ac_fn_c_try_compile "$LINENO"; then : 14109 xorg_cv_cc_flag_unknown_warning_option=yes 14110else 14111 xorg_cv_cc_flag_unknown_warning_option=no 14112fi 14113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14114fi 14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14118 CFLAGS="$xorg_testset_save_CFLAGS" 14119fi 14120 14121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14124 fi 14125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14129 $as_echo_n "(cached) " >&6 14130else 14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14132/* end confdefs.h. */ 14133int i; 14134_ACEOF 14135if ac_fn_c_try_compile "$LINENO"; then : 14136 xorg_cv_cc_flag_unused_command_line_argument=yes 14137else 14138 xorg_cv_cc_flag_unused_command_line_argument=no 14139fi 14140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14141fi 14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14145 CFLAGS="$xorg_testset_save_CFLAGS" 14146fi 14147 14148found="no" 14149 14150 if test $found = "no" ; then 14151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14153 fi 14154 14155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14157 fi 14158 14159 CFLAGS="$CFLAGS -Werror=nonnull" 14160 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14162$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14163 cacheid=xorg_cv_cc_flag__Werror_nonnull 14164 if eval \${$cacheid+:} false; then : 14165 $as_echo_n "(cached) " >&6 14166else 14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14168/* end confdefs.h. */ 14169int i; 14170int 14171main () 14172{ 14173 14174 ; 14175 return 0; 14176} 14177_ACEOF 14178if ac_fn_c_try_link "$LINENO"; then : 14179 eval $cacheid=yes 14180else 14181 eval $cacheid=no 14182fi 14183rm -f core conftest.err conftest.$ac_objext \ 14184 conftest$ac_exeext conftest.$ac_ext 14185fi 14186 14187 14188 CFLAGS="$xorg_testset_save_CFLAGS" 14189 14190 eval supported=\$$cacheid 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14192$as_echo "$supported" >&6; } 14193 if test "$supported" = "yes" ; then 14194 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14195 found="yes" 14196 fi 14197 fi 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213xorg_testset_save_CFLAGS="$CFLAGS" 14214 14215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14220 $as_echo_n "(cached) " >&6 14221else 14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14223/* end confdefs.h. */ 14224int i; 14225_ACEOF 14226if ac_fn_c_try_compile "$LINENO"; then : 14227 xorg_cv_cc_flag_unknown_warning_option=yes 14228else 14229 xorg_cv_cc_flag_unknown_warning_option=no 14230fi 14231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14232fi 14233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14236 CFLAGS="$xorg_testset_save_CFLAGS" 14237fi 14238 14239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14242 fi 14243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14247 $as_echo_n "(cached) " >&6 14248else 14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14250/* end confdefs.h. */ 14251int i; 14252_ACEOF 14253if ac_fn_c_try_compile "$LINENO"; then : 14254 xorg_cv_cc_flag_unused_command_line_argument=yes 14255else 14256 xorg_cv_cc_flag_unused_command_line_argument=no 14257fi 14258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14259fi 14260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14263 CFLAGS="$xorg_testset_save_CFLAGS" 14264fi 14265 14266found="no" 14267 14268 if test $found = "no" ; then 14269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14271 fi 14272 14273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14275 fi 14276 14277 CFLAGS="$CFLAGS -Werror=init-self" 14278 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14280$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14281 cacheid=xorg_cv_cc_flag__Werror_init_self 14282 if eval \${$cacheid+:} false; then : 14283 $as_echo_n "(cached) " >&6 14284else 14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14286/* end confdefs.h. */ 14287int i; 14288int 14289main () 14290{ 14291 14292 ; 14293 return 0; 14294} 14295_ACEOF 14296if ac_fn_c_try_link "$LINENO"; then : 14297 eval $cacheid=yes 14298else 14299 eval $cacheid=no 14300fi 14301rm -f core conftest.err conftest.$ac_objext \ 14302 conftest$ac_exeext conftest.$ac_ext 14303fi 14304 14305 14306 CFLAGS="$xorg_testset_save_CFLAGS" 14307 14308 eval supported=\$$cacheid 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14310$as_echo "$supported" >&6; } 14311 if test "$supported" = "yes" ; then 14312 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14313 found="yes" 14314 fi 14315 fi 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331xorg_testset_save_CFLAGS="$CFLAGS" 14332 14333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14338 $as_echo_n "(cached) " >&6 14339else 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342int i; 14343_ACEOF 14344if ac_fn_c_try_compile "$LINENO"; then : 14345 xorg_cv_cc_flag_unknown_warning_option=yes 14346else 14347 xorg_cv_cc_flag_unknown_warning_option=no 14348fi 14349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14350fi 14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14354 CFLAGS="$xorg_testset_save_CFLAGS" 14355fi 14356 14357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14360 fi 14361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14365 $as_echo_n "(cached) " >&6 14366else 14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14368/* end confdefs.h. */ 14369int i; 14370_ACEOF 14371if ac_fn_c_try_compile "$LINENO"; then : 14372 xorg_cv_cc_flag_unused_command_line_argument=yes 14373else 14374 xorg_cv_cc_flag_unused_command_line_argument=no 14375fi 14376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14377fi 14378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14381 CFLAGS="$xorg_testset_save_CFLAGS" 14382fi 14383 14384found="no" 14385 14386 if test $found = "no" ; then 14387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14389 fi 14390 14391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14393 fi 14394 14395 CFLAGS="$CFLAGS -Werror=main" 14396 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14398$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14399 cacheid=xorg_cv_cc_flag__Werror_main 14400 if eval \${$cacheid+:} false; then : 14401 $as_echo_n "(cached) " >&6 14402else 14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14404/* end confdefs.h. */ 14405int i; 14406int 14407main () 14408{ 14409 14410 ; 14411 return 0; 14412} 14413_ACEOF 14414if ac_fn_c_try_link "$LINENO"; then : 14415 eval $cacheid=yes 14416else 14417 eval $cacheid=no 14418fi 14419rm -f core conftest.err conftest.$ac_objext \ 14420 conftest$ac_exeext conftest.$ac_ext 14421fi 14422 14423 14424 CFLAGS="$xorg_testset_save_CFLAGS" 14425 14426 eval supported=\$$cacheid 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14428$as_echo "$supported" >&6; } 14429 if test "$supported" = "yes" ; then 14430 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14431 found="yes" 14432 fi 14433 fi 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449xorg_testset_save_CFLAGS="$CFLAGS" 14450 14451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14456 $as_echo_n "(cached) " >&6 14457else 14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459/* end confdefs.h. */ 14460int i; 14461_ACEOF 14462if ac_fn_c_try_compile "$LINENO"; then : 14463 xorg_cv_cc_flag_unknown_warning_option=yes 14464else 14465 xorg_cv_cc_flag_unknown_warning_option=no 14466fi 14467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14468fi 14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14472 CFLAGS="$xorg_testset_save_CFLAGS" 14473fi 14474 14475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14478 fi 14479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14483 $as_echo_n "(cached) " >&6 14484else 14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14486/* end confdefs.h. */ 14487int i; 14488_ACEOF 14489if ac_fn_c_try_compile "$LINENO"; then : 14490 xorg_cv_cc_flag_unused_command_line_argument=yes 14491else 14492 xorg_cv_cc_flag_unused_command_line_argument=no 14493fi 14494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14495fi 14496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14499 CFLAGS="$xorg_testset_save_CFLAGS" 14500fi 14501 14502found="no" 14503 14504 if test $found = "no" ; then 14505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14507 fi 14508 14509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14511 fi 14512 14513 CFLAGS="$CFLAGS -Werror=missing-braces" 14514 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14516$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14517 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14518 if eval \${$cacheid+:} false; then : 14519 $as_echo_n "(cached) " >&6 14520else 14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522/* end confdefs.h. */ 14523int i; 14524int 14525main () 14526{ 14527 14528 ; 14529 return 0; 14530} 14531_ACEOF 14532if ac_fn_c_try_link "$LINENO"; then : 14533 eval $cacheid=yes 14534else 14535 eval $cacheid=no 14536fi 14537rm -f core conftest.err conftest.$ac_objext \ 14538 conftest$ac_exeext conftest.$ac_ext 14539fi 14540 14541 14542 CFLAGS="$xorg_testset_save_CFLAGS" 14543 14544 eval supported=\$$cacheid 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14546$as_echo "$supported" >&6; } 14547 if test "$supported" = "yes" ; then 14548 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14549 found="yes" 14550 fi 14551 fi 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567xorg_testset_save_CFLAGS="$CFLAGS" 14568 14569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578int i; 14579_ACEOF 14580if ac_fn_c_try_compile "$LINENO"; then : 14581 xorg_cv_cc_flag_unknown_warning_option=yes 14582else 14583 xorg_cv_cc_flag_unknown_warning_option=no 14584fi 14585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14586fi 14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14590 CFLAGS="$xorg_testset_save_CFLAGS" 14591fi 14592 14593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14596 fi 14597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14601 $as_echo_n "(cached) " >&6 14602else 14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14604/* end confdefs.h. */ 14605int i; 14606_ACEOF 14607if ac_fn_c_try_compile "$LINENO"; then : 14608 xorg_cv_cc_flag_unused_command_line_argument=yes 14609else 14610 xorg_cv_cc_flag_unused_command_line_argument=no 14611fi 14612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14613fi 14614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14617 CFLAGS="$xorg_testset_save_CFLAGS" 14618fi 14619 14620found="no" 14621 14622 if test $found = "no" ; then 14623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14625 fi 14626 14627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14629 fi 14630 14631 CFLAGS="$CFLAGS -Werror=sequence-point" 14632 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14634$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14635 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14636 if eval \${$cacheid+:} false; then : 14637 $as_echo_n "(cached) " >&6 14638else 14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14640/* end confdefs.h. */ 14641int i; 14642int 14643main () 14644{ 14645 14646 ; 14647 return 0; 14648} 14649_ACEOF 14650if ac_fn_c_try_link "$LINENO"; then : 14651 eval $cacheid=yes 14652else 14653 eval $cacheid=no 14654fi 14655rm -f core conftest.err conftest.$ac_objext \ 14656 conftest$ac_exeext conftest.$ac_ext 14657fi 14658 14659 14660 CFLAGS="$xorg_testset_save_CFLAGS" 14661 14662 eval supported=\$$cacheid 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14664$as_echo "$supported" >&6; } 14665 if test "$supported" = "yes" ; then 14666 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14667 found="yes" 14668 fi 14669 fi 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685xorg_testset_save_CFLAGS="$CFLAGS" 14686 14687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696int i; 14697_ACEOF 14698if ac_fn_c_try_compile "$LINENO"; then : 14699 xorg_cv_cc_flag_unknown_warning_option=yes 14700else 14701 xorg_cv_cc_flag_unknown_warning_option=no 14702fi 14703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14704fi 14705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14708 CFLAGS="$xorg_testset_save_CFLAGS" 14709fi 14710 14711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14714 fi 14715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14719 $as_echo_n "(cached) " >&6 14720else 14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14722/* end confdefs.h. */ 14723int i; 14724_ACEOF 14725if ac_fn_c_try_compile "$LINENO"; then : 14726 xorg_cv_cc_flag_unused_command_line_argument=yes 14727else 14728 xorg_cv_cc_flag_unused_command_line_argument=no 14729fi 14730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14731fi 14732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14735 CFLAGS="$xorg_testset_save_CFLAGS" 14736fi 14737 14738found="no" 14739 14740 if test $found = "no" ; then 14741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14743 fi 14744 14745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14747 fi 14748 14749 CFLAGS="$CFLAGS -Werror=return-type" 14750 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14752$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14753 cacheid=xorg_cv_cc_flag__Werror_return_type 14754 if eval \${$cacheid+:} false; then : 14755 $as_echo_n "(cached) " >&6 14756else 14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14758/* end confdefs.h. */ 14759int i; 14760int 14761main () 14762{ 14763 14764 ; 14765 return 0; 14766} 14767_ACEOF 14768if ac_fn_c_try_link "$LINENO"; then : 14769 eval $cacheid=yes 14770else 14771 eval $cacheid=no 14772fi 14773rm -f core conftest.err conftest.$ac_objext \ 14774 conftest$ac_exeext conftest.$ac_ext 14775fi 14776 14777 14778 CFLAGS="$xorg_testset_save_CFLAGS" 14779 14780 eval supported=\$$cacheid 14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14782$as_echo "$supported" >&6; } 14783 if test "$supported" = "yes" ; then 14784 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14785 found="yes" 14786 fi 14787 fi 14788 14789 if test $found = "no" ; then 14790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14792 fi 14793 14794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14796 fi 14797 14798 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14799 14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14801$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14802 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 14803 if eval \${$cacheid+:} false; then : 14804 $as_echo_n "(cached) " >&6 14805else 14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14807/* end confdefs.h. */ 14808int i; 14809int 14810main () 14811{ 14812 14813 ; 14814 return 0; 14815} 14816_ACEOF 14817if ac_fn_c_try_link "$LINENO"; then : 14818 eval $cacheid=yes 14819else 14820 eval $cacheid=no 14821fi 14822rm -f core conftest.err conftest.$ac_objext \ 14823 conftest$ac_exeext conftest.$ac_ext 14824fi 14825 14826 14827 CFLAGS="$xorg_testset_save_CFLAGS" 14828 14829 eval supported=\$$cacheid 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14831$as_echo "$supported" >&6; } 14832 if test "$supported" = "yes" ; then 14833 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14834 found="yes" 14835 fi 14836 fi 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852xorg_testset_save_CFLAGS="$CFLAGS" 14853 14854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14859 $as_echo_n "(cached) " >&6 14860else 14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14862/* end confdefs.h. */ 14863int i; 14864_ACEOF 14865if ac_fn_c_try_compile "$LINENO"; then : 14866 xorg_cv_cc_flag_unknown_warning_option=yes 14867else 14868 xorg_cv_cc_flag_unknown_warning_option=no 14869fi 14870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14871fi 14872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14875 CFLAGS="$xorg_testset_save_CFLAGS" 14876fi 14877 14878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14881 fi 14882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14886 $as_echo_n "(cached) " >&6 14887else 14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889/* end confdefs.h. */ 14890int i; 14891_ACEOF 14892if ac_fn_c_try_compile "$LINENO"; then : 14893 xorg_cv_cc_flag_unused_command_line_argument=yes 14894else 14895 xorg_cv_cc_flag_unused_command_line_argument=no 14896fi 14897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14898fi 14899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14902 CFLAGS="$xorg_testset_save_CFLAGS" 14903fi 14904 14905found="no" 14906 14907 if test $found = "no" ; then 14908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14910 fi 14911 14912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14914 fi 14915 14916 CFLAGS="$CFLAGS -Werror=trigraphs" 14917 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14919$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14920 cacheid=xorg_cv_cc_flag__Werror_trigraphs 14921 if eval \${$cacheid+:} false; then : 14922 $as_echo_n "(cached) " >&6 14923else 14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14925/* end confdefs.h. */ 14926int i; 14927int 14928main () 14929{ 14930 14931 ; 14932 return 0; 14933} 14934_ACEOF 14935if ac_fn_c_try_link "$LINENO"; then : 14936 eval $cacheid=yes 14937else 14938 eval $cacheid=no 14939fi 14940rm -f core conftest.err conftest.$ac_objext \ 14941 conftest$ac_exeext conftest.$ac_ext 14942fi 14943 14944 14945 CFLAGS="$xorg_testset_save_CFLAGS" 14946 14947 eval supported=\$$cacheid 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14949$as_echo "$supported" >&6; } 14950 if test "$supported" = "yes" ; then 14951 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14952 found="yes" 14953 fi 14954 fi 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970xorg_testset_save_CFLAGS="$CFLAGS" 14971 14972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14977 $as_echo_n "(cached) " >&6 14978else 14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14980/* end confdefs.h. */ 14981int i; 14982_ACEOF 14983if ac_fn_c_try_compile "$LINENO"; then : 14984 xorg_cv_cc_flag_unknown_warning_option=yes 14985else 14986 xorg_cv_cc_flag_unknown_warning_option=no 14987fi 14988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14989fi 14990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14993 CFLAGS="$xorg_testset_save_CFLAGS" 14994fi 14995 14996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14999 fi 15000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15004 $as_echo_n "(cached) " >&6 15005else 15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15007/* end confdefs.h. */ 15008int i; 15009_ACEOF 15010if ac_fn_c_try_compile "$LINENO"; then : 15011 xorg_cv_cc_flag_unused_command_line_argument=yes 15012else 15013 xorg_cv_cc_flag_unused_command_line_argument=no 15014fi 15015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15016fi 15017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15020 CFLAGS="$xorg_testset_save_CFLAGS" 15021fi 15022 15023found="no" 15024 15025 if test $found = "no" ; then 15026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15028 fi 15029 15030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15032 fi 15033 15034 CFLAGS="$CFLAGS -Werror=array-bounds" 15035 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15037$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15038 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15039 if eval \${$cacheid+:} false; then : 15040 $as_echo_n "(cached) " >&6 15041else 15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15043/* end confdefs.h. */ 15044int i; 15045int 15046main () 15047{ 15048 15049 ; 15050 return 0; 15051} 15052_ACEOF 15053if ac_fn_c_try_link "$LINENO"; then : 15054 eval $cacheid=yes 15055else 15056 eval $cacheid=no 15057fi 15058rm -f core conftest.err conftest.$ac_objext \ 15059 conftest$ac_exeext conftest.$ac_ext 15060fi 15061 15062 15063 CFLAGS="$xorg_testset_save_CFLAGS" 15064 15065 eval supported=\$$cacheid 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15067$as_echo "$supported" >&6; } 15068 if test "$supported" = "yes" ; then 15069 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15070 found="yes" 15071 fi 15072 fi 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088xorg_testset_save_CFLAGS="$CFLAGS" 15089 15090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15095 $as_echo_n "(cached) " >&6 15096else 15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15098/* end confdefs.h. */ 15099int i; 15100_ACEOF 15101if ac_fn_c_try_compile "$LINENO"; then : 15102 xorg_cv_cc_flag_unknown_warning_option=yes 15103else 15104 xorg_cv_cc_flag_unknown_warning_option=no 15105fi 15106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15107fi 15108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15111 CFLAGS="$xorg_testset_save_CFLAGS" 15112fi 15113 15114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15117 fi 15118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15122 $as_echo_n "(cached) " >&6 15123else 15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15125/* end confdefs.h. */ 15126int i; 15127_ACEOF 15128if ac_fn_c_try_compile "$LINENO"; then : 15129 xorg_cv_cc_flag_unused_command_line_argument=yes 15130else 15131 xorg_cv_cc_flag_unused_command_line_argument=no 15132fi 15133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15134fi 15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15138 CFLAGS="$xorg_testset_save_CFLAGS" 15139fi 15140 15141found="no" 15142 15143 if test $found = "no" ; then 15144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15146 fi 15147 15148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15150 fi 15151 15152 CFLAGS="$CFLAGS -Werror=write-strings" 15153 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15155$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15156 cacheid=xorg_cv_cc_flag__Werror_write_strings 15157 if eval \${$cacheid+:} false; then : 15158 $as_echo_n "(cached) " >&6 15159else 15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15161/* end confdefs.h. */ 15162int i; 15163int 15164main () 15165{ 15166 15167 ; 15168 return 0; 15169} 15170_ACEOF 15171if ac_fn_c_try_link "$LINENO"; then : 15172 eval $cacheid=yes 15173else 15174 eval $cacheid=no 15175fi 15176rm -f core conftest.err conftest.$ac_objext \ 15177 conftest$ac_exeext conftest.$ac_ext 15178fi 15179 15180 15181 CFLAGS="$xorg_testset_save_CFLAGS" 15182 15183 eval supported=\$$cacheid 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15185$as_echo "$supported" >&6; } 15186 if test "$supported" = "yes" ; then 15187 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15188 found="yes" 15189 fi 15190 fi 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206xorg_testset_save_CFLAGS="$CFLAGS" 15207 15208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15213 $as_echo_n "(cached) " >&6 15214else 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217int i; 15218_ACEOF 15219if ac_fn_c_try_compile "$LINENO"; then : 15220 xorg_cv_cc_flag_unknown_warning_option=yes 15221else 15222 xorg_cv_cc_flag_unknown_warning_option=no 15223fi 15224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15225fi 15226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15229 CFLAGS="$xorg_testset_save_CFLAGS" 15230fi 15231 15232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15235 fi 15236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15240 $as_echo_n "(cached) " >&6 15241else 15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15243/* end confdefs.h. */ 15244int i; 15245_ACEOF 15246if ac_fn_c_try_compile "$LINENO"; then : 15247 xorg_cv_cc_flag_unused_command_line_argument=yes 15248else 15249 xorg_cv_cc_flag_unused_command_line_argument=no 15250fi 15251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15252fi 15253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15256 CFLAGS="$xorg_testset_save_CFLAGS" 15257fi 15258 15259found="no" 15260 15261 if test $found = "no" ; then 15262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15264 fi 15265 15266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15268 fi 15269 15270 CFLAGS="$CFLAGS -Werror=address" 15271 15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15273$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15274 cacheid=xorg_cv_cc_flag__Werror_address 15275 if eval \${$cacheid+:} false; then : 15276 $as_echo_n "(cached) " >&6 15277else 15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15279/* end confdefs.h. */ 15280int i; 15281int 15282main () 15283{ 15284 15285 ; 15286 return 0; 15287} 15288_ACEOF 15289if ac_fn_c_try_link "$LINENO"; then : 15290 eval $cacheid=yes 15291else 15292 eval $cacheid=no 15293fi 15294rm -f core conftest.err conftest.$ac_objext \ 15295 conftest$ac_exeext conftest.$ac_ext 15296fi 15297 15298 15299 CFLAGS="$xorg_testset_save_CFLAGS" 15300 15301 eval supported=\$$cacheid 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15303$as_echo "$supported" >&6; } 15304 if test "$supported" = "yes" ; then 15305 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15306 found="yes" 15307 fi 15308 fi 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324xorg_testset_save_CFLAGS="$CFLAGS" 15325 15326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15331 $as_echo_n "(cached) " >&6 15332else 15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15334/* end confdefs.h. */ 15335int i; 15336_ACEOF 15337if ac_fn_c_try_compile "$LINENO"; then : 15338 xorg_cv_cc_flag_unknown_warning_option=yes 15339else 15340 xorg_cv_cc_flag_unknown_warning_option=no 15341fi 15342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15343fi 15344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15347 CFLAGS="$xorg_testset_save_CFLAGS" 15348fi 15349 15350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15353 fi 15354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15358 $as_echo_n "(cached) " >&6 15359else 15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15361/* end confdefs.h. */ 15362int i; 15363_ACEOF 15364if ac_fn_c_try_compile "$LINENO"; then : 15365 xorg_cv_cc_flag_unused_command_line_argument=yes 15366else 15367 xorg_cv_cc_flag_unused_command_line_argument=no 15368fi 15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15370fi 15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15374 CFLAGS="$xorg_testset_save_CFLAGS" 15375fi 15376 15377found="no" 15378 15379 if test $found = "no" ; then 15380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15382 fi 15383 15384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15386 fi 15387 15388 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15389 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15391$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15392 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15393 if eval \${$cacheid+:} false; then : 15394 $as_echo_n "(cached) " >&6 15395else 15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15397/* end confdefs.h. */ 15398int i; 15399int 15400main () 15401{ 15402 15403 ; 15404 return 0; 15405} 15406_ACEOF 15407if ac_fn_c_try_link "$LINENO"; then : 15408 eval $cacheid=yes 15409else 15410 eval $cacheid=no 15411fi 15412rm -f core conftest.err conftest.$ac_objext \ 15413 conftest$ac_exeext conftest.$ac_ext 15414fi 15415 15416 15417 CFLAGS="$xorg_testset_save_CFLAGS" 15418 15419 eval supported=\$$cacheid 15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15421$as_echo "$supported" >&6; } 15422 if test "$supported" = "yes" ; then 15423 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15424 found="yes" 15425 fi 15426 fi 15427 15428 if test $found = "no" ; then 15429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15431 fi 15432 15433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15435 fi 15436 15437 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15438 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15440$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15441 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15442 if eval \${$cacheid+:} false; then : 15443 $as_echo_n "(cached) " >&6 15444else 15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15446/* end confdefs.h. */ 15447int i; 15448int 15449main () 15450{ 15451 15452 ; 15453 return 0; 15454} 15455_ACEOF 15456if ac_fn_c_try_link "$LINENO"; then : 15457 eval $cacheid=yes 15458else 15459 eval $cacheid=no 15460fi 15461rm -f core conftest.err conftest.$ac_objext \ 15462 conftest$ac_exeext conftest.$ac_ext 15463fi 15464 15465 15466 CFLAGS="$xorg_testset_save_CFLAGS" 15467 15468 eval supported=\$$cacheid 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15470$as_echo "$supported" >&6; } 15471 if test "$supported" = "yes" ; then 15472 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15473 found="yes" 15474 fi 15475 fi 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491xorg_testset_save_CFLAGS="$CFLAGS" 15492 15493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15496$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15497if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15498 $as_echo_n "(cached) " >&6 15499else 15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501/* end confdefs.h. */ 15502int i; 15503_ACEOF 15504if ac_fn_c_try_compile "$LINENO"; then : 15505 xorg_cv_cc_flag_unknown_warning_option=yes 15506else 15507 xorg_cv_cc_flag_unknown_warning_option=no 15508fi 15509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15510fi 15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15512$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15514 CFLAGS="$xorg_testset_save_CFLAGS" 15515fi 15516 15517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15520 fi 15521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15523$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15524if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15525 $as_echo_n "(cached) " >&6 15526else 15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15528/* end confdefs.h. */ 15529int i; 15530_ACEOF 15531if ac_fn_c_try_compile "$LINENO"; then : 15532 xorg_cv_cc_flag_unused_command_line_argument=yes 15533else 15534 xorg_cv_cc_flag_unused_command_line_argument=no 15535fi 15536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15537fi 15538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15539$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15541 CFLAGS="$xorg_testset_save_CFLAGS" 15542fi 15543 15544found="no" 15545 15546 if test $found = "no" ; then 15547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15549 fi 15550 15551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15553 fi 15554 15555 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15556 15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15558$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15559 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15560 if eval \${$cacheid+:} false; then : 15561 $as_echo_n "(cached) " >&6 15562else 15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15564/* end confdefs.h. */ 15565int i; 15566int 15567main () 15568{ 15569 15570 ; 15571 return 0; 15572} 15573_ACEOF 15574if ac_fn_c_try_link "$LINENO"; then : 15575 eval $cacheid=yes 15576else 15577 eval $cacheid=no 15578fi 15579rm -f core conftest.err conftest.$ac_objext \ 15580 conftest$ac_exeext conftest.$ac_ext 15581fi 15582 15583 15584 CFLAGS="$xorg_testset_save_CFLAGS" 15585 15586 eval supported=\$$cacheid 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15588$as_echo "$supported" >&6; } 15589 if test "$supported" = "yes" ; then 15590 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15591 found="yes" 15592 fi 15593 fi 15594 15595 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15596else 15597{ $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 15598$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;} 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612xorg_testset_save_CFLAGS="$CFLAGS" 15613 15614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15619 $as_echo_n "(cached) " >&6 15620else 15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15622/* end confdefs.h. */ 15623int i; 15624_ACEOF 15625if ac_fn_c_try_compile "$LINENO"; then : 15626 xorg_cv_cc_flag_unknown_warning_option=yes 15627else 15628 xorg_cv_cc_flag_unknown_warning_option=no 15629fi 15630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15631fi 15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15635 CFLAGS="$xorg_testset_save_CFLAGS" 15636fi 15637 15638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15641 fi 15642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15646 $as_echo_n "(cached) " >&6 15647else 15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15649/* end confdefs.h. */ 15650int i; 15651_ACEOF 15652if ac_fn_c_try_compile "$LINENO"; then : 15653 xorg_cv_cc_flag_unused_command_line_argument=yes 15654else 15655 xorg_cv_cc_flag_unused_command_line_argument=no 15656fi 15657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15658fi 15659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15662 CFLAGS="$xorg_testset_save_CFLAGS" 15663fi 15664 15665found="no" 15666 15667 if test $found = "no" ; then 15668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15670 fi 15671 15672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15674 fi 15675 15676 CFLAGS="$CFLAGS -Wimplicit" 15677 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15679$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15680 cacheid=xorg_cv_cc_flag__Wimplicit 15681 if eval \${$cacheid+:} false; then : 15682 $as_echo_n "(cached) " >&6 15683else 15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15685/* end confdefs.h. */ 15686int i; 15687int 15688main () 15689{ 15690 15691 ; 15692 return 0; 15693} 15694_ACEOF 15695if ac_fn_c_try_link "$LINENO"; then : 15696 eval $cacheid=yes 15697else 15698 eval $cacheid=no 15699fi 15700rm -f core conftest.err conftest.$ac_objext \ 15701 conftest$ac_exeext conftest.$ac_ext 15702fi 15703 15704 15705 CFLAGS="$xorg_testset_save_CFLAGS" 15706 15707 eval supported=\$$cacheid 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15709$as_echo "$supported" >&6; } 15710 if test "$supported" = "yes" ; then 15711 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15712 found="yes" 15713 fi 15714 fi 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730xorg_testset_save_CFLAGS="$CFLAGS" 15731 15732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15737 $as_echo_n "(cached) " >&6 15738else 15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15740/* end confdefs.h. */ 15741int i; 15742_ACEOF 15743if ac_fn_c_try_compile "$LINENO"; then : 15744 xorg_cv_cc_flag_unknown_warning_option=yes 15745else 15746 xorg_cv_cc_flag_unknown_warning_option=no 15747fi 15748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15749fi 15750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15753 CFLAGS="$xorg_testset_save_CFLAGS" 15754fi 15755 15756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15759 fi 15760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15764 $as_echo_n "(cached) " >&6 15765else 15766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15767/* end confdefs.h. */ 15768int i; 15769_ACEOF 15770if ac_fn_c_try_compile "$LINENO"; then : 15771 xorg_cv_cc_flag_unused_command_line_argument=yes 15772else 15773 xorg_cv_cc_flag_unused_command_line_argument=no 15774fi 15775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15776fi 15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15780 CFLAGS="$xorg_testset_save_CFLAGS" 15781fi 15782 15783found="no" 15784 15785 if test $found = "no" ; then 15786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15788 fi 15789 15790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15792 fi 15793 15794 CFLAGS="$CFLAGS -Wnonnull" 15795 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15797$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15798 cacheid=xorg_cv_cc_flag__Wnonnull 15799 if eval \${$cacheid+:} false; then : 15800 $as_echo_n "(cached) " >&6 15801else 15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15803/* end confdefs.h. */ 15804int i; 15805int 15806main () 15807{ 15808 15809 ; 15810 return 0; 15811} 15812_ACEOF 15813if ac_fn_c_try_link "$LINENO"; then : 15814 eval $cacheid=yes 15815else 15816 eval $cacheid=no 15817fi 15818rm -f core conftest.err conftest.$ac_objext \ 15819 conftest$ac_exeext conftest.$ac_ext 15820fi 15821 15822 15823 CFLAGS="$xorg_testset_save_CFLAGS" 15824 15825 eval supported=\$$cacheid 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15827$as_echo "$supported" >&6; } 15828 if test "$supported" = "yes" ; then 15829 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15830 found="yes" 15831 fi 15832 fi 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848xorg_testset_save_CFLAGS="$CFLAGS" 15849 15850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15855 $as_echo_n "(cached) " >&6 15856else 15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15858/* end confdefs.h. */ 15859int i; 15860_ACEOF 15861if ac_fn_c_try_compile "$LINENO"; then : 15862 xorg_cv_cc_flag_unknown_warning_option=yes 15863else 15864 xorg_cv_cc_flag_unknown_warning_option=no 15865fi 15866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15867fi 15868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15871 CFLAGS="$xorg_testset_save_CFLAGS" 15872fi 15873 15874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15877 fi 15878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15882 $as_echo_n "(cached) " >&6 15883else 15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15885/* end confdefs.h. */ 15886int i; 15887_ACEOF 15888if ac_fn_c_try_compile "$LINENO"; then : 15889 xorg_cv_cc_flag_unused_command_line_argument=yes 15890else 15891 xorg_cv_cc_flag_unused_command_line_argument=no 15892fi 15893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15894fi 15895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15898 CFLAGS="$xorg_testset_save_CFLAGS" 15899fi 15900 15901found="no" 15902 15903 if test $found = "no" ; then 15904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15906 fi 15907 15908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15910 fi 15911 15912 CFLAGS="$CFLAGS -Winit-self" 15913 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15915$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15916 cacheid=xorg_cv_cc_flag__Winit_self 15917 if eval \${$cacheid+:} false; then : 15918 $as_echo_n "(cached) " >&6 15919else 15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15921/* end confdefs.h. */ 15922int i; 15923int 15924main () 15925{ 15926 15927 ; 15928 return 0; 15929} 15930_ACEOF 15931if ac_fn_c_try_link "$LINENO"; then : 15932 eval $cacheid=yes 15933else 15934 eval $cacheid=no 15935fi 15936rm -f core conftest.err conftest.$ac_objext \ 15937 conftest$ac_exeext conftest.$ac_ext 15938fi 15939 15940 15941 CFLAGS="$xorg_testset_save_CFLAGS" 15942 15943 eval supported=\$$cacheid 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15945$as_echo "$supported" >&6; } 15946 if test "$supported" = "yes" ; then 15947 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15948 found="yes" 15949 fi 15950 fi 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966xorg_testset_save_CFLAGS="$CFLAGS" 15967 15968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15973 $as_echo_n "(cached) " >&6 15974else 15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15976/* end confdefs.h. */ 15977int i; 15978_ACEOF 15979if ac_fn_c_try_compile "$LINENO"; then : 15980 xorg_cv_cc_flag_unknown_warning_option=yes 15981else 15982 xorg_cv_cc_flag_unknown_warning_option=no 15983fi 15984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15985fi 15986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15989 CFLAGS="$xorg_testset_save_CFLAGS" 15990fi 15991 15992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15995 fi 15996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16000 $as_echo_n "(cached) " >&6 16001else 16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16003/* end confdefs.h. */ 16004int i; 16005_ACEOF 16006if ac_fn_c_try_compile "$LINENO"; then : 16007 xorg_cv_cc_flag_unused_command_line_argument=yes 16008else 16009 xorg_cv_cc_flag_unused_command_line_argument=no 16010fi 16011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16012fi 16013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16016 CFLAGS="$xorg_testset_save_CFLAGS" 16017fi 16018 16019found="no" 16020 16021 if test $found = "no" ; then 16022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16024 fi 16025 16026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16028 fi 16029 16030 CFLAGS="$CFLAGS -Wmain" 16031 16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16033$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16034 cacheid=xorg_cv_cc_flag__Wmain 16035 if eval \${$cacheid+:} false; then : 16036 $as_echo_n "(cached) " >&6 16037else 16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16039/* end confdefs.h. */ 16040int i; 16041int 16042main () 16043{ 16044 16045 ; 16046 return 0; 16047} 16048_ACEOF 16049if ac_fn_c_try_link "$LINENO"; then : 16050 eval $cacheid=yes 16051else 16052 eval $cacheid=no 16053fi 16054rm -f core conftest.err conftest.$ac_objext \ 16055 conftest$ac_exeext conftest.$ac_ext 16056fi 16057 16058 16059 CFLAGS="$xorg_testset_save_CFLAGS" 16060 16061 eval supported=\$$cacheid 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16063$as_echo "$supported" >&6; } 16064 if test "$supported" = "yes" ; then 16065 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16066 found="yes" 16067 fi 16068 fi 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084xorg_testset_save_CFLAGS="$CFLAGS" 16085 16086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16091 $as_echo_n "(cached) " >&6 16092else 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095int i; 16096_ACEOF 16097if ac_fn_c_try_compile "$LINENO"; then : 16098 xorg_cv_cc_flag_unknown_warning_option=yes 16099else 16100 xorg_cv_cc_flag_unknown_warning_option=no 16101fi 16102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16103fi 16104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16107 CFLAGS="$xorg_testset_save_CFLAGS" 16108fi 16109 16110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16113 fi 16114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16118 $as_echo_n "(cached) " >&6 16119else 16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16121/* end confdefs.h. */ 16122int i; 16123_ACEOF 16124if ac_fn_c_try_compile "$LINENO"; then : 16125 xorg_cv_cc_flag_unused_command_line_argument=yes 16126else 16127 xorg_cv_cc_flag_unused_command_line_argument=no 16128fi 16129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16130fi 16131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16134 CFLAGS="$xorg_testset_save_CFLAGS" 16135fi 16136 16137found="no" 16138 16139 if test $found = "no" ; then 16140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16142 fi 16143 16144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16146 fi 16147 16148 CFLAGS="$CFLAGS -Wmissing-braces" 16149 16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16151$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16152 cacheid=xorg_cv_cc_flag__Wmissing_braces 16153 if eval \${$cacheid+:} false; then : 16154 $as_echo_n "(cached) " >&6 16155else 16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16157/* end confdefs.h. */ 16158int i; 16159int 16160main () 16161{ 16162 16163 ; 16164 return 0; 16165} 16166_ACEOF 16167if ac_fn_c_try_link "$LINENO"; then : 16168 eval $cacheid=yes 16169else 16170 eval $cacheid=no 16171fi 16172rm -f core conftest.err conftest.$ac_objext \ 16173 conftest$ac_exeext conftest.$ac_ext 16174fi 16175 16176 16177 CFLAGS="$xorg_testset_save_CFLAGS" 16178 16179 eval supported=\$$cacheid 16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16181$as_echo "$supported" >&6; } 16182 if test "$supported" = "yes" ; then 16183 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16184 found="yes" 16185 fi 16186 fi 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202xorg_testset_save_CFLAGS="$CFLAGS" 16203 16204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16209 $as_echo_n "(cached) " >&6 16210else 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213int i; 16214_ACEOF 16215if ac_fn_c_try_compile "$LINENO"; then : 16216 xorg_cv_cc_flag_unknown_warning_option=yes 16217else 16218 xorg_cv_cc_flag_unknown_warning_option=no 16219fi 16220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16221fi 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16225 CFLAGS="$xorg_testset_save_CFLAGS" 16226fi 16227 16228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16231 fi 16232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16236 $as_echo_n "(cached) " >&6 16237else 16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16239/* end confdefs.h. */ 16240int i; 16241_ACEOF 16242if ac_fn_c_try_compile "$LINENO"; then : 16243 xorg_cv_cc_flag_unused_command_line_argument=yes 16244else 16245 xorg_cv_cc_flag_unused_command_line_argument=no 16246fi 16247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16248fi 16249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16252 CFLAGS="$xorg_testset_save_CFLAGS" 16253fi 16254 16255found="no" 16256 16257 if test $found = "no" ; then 16258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16260 fi 16261 16262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16264 fi 16265 16266 CFLAGS="$CFLAGS -Wsequence-point" 16267 16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16269$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16270 cacheid=xorg_cv_cc_flag__Wsequence_point 16271 if eval \${$cacheid+:} false; then : 16272 $as_echo_n "(cached) " >&6 16273else 16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16275/* end confdefs.h. */ 16276int i; 16277int 16278main () 16279{ 16280 16281 ; 16282 return 0; 16283} 16284_ACEOF 16285if ac_fn_c_try_link "$LINENO"; then : 16286 eval $cacheid=yes 16287else 16288 eval $cacheid=no 16289fi 16290rm -f core conftest.err conftest.$ac_objext \ 16291 conftest$ac_exeext conftest.$ac_ext 16292fi 16293 16294 16295 CFLAGS="$xorg_testset_save_CFLAGS" 16296 16297 eval supported=\$$cacheid 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16299$as_echo "$supported" >&6; } 16300 if test "$supported" = "yes" ; then 16301 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16302 found="yes" 16303 fi 16304 fi 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320xorg_testset_save_CFLAGS="$CFLAGS" 16321 16322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332_ACEOF 16333if ac_fn_c_try_compile "$LINENO"; then : 16334 xorg_cv_cc_flag_unknown_warning_option=yes 16335else 16336 xorg_cv_cc_flag_unknown_warning_option=no 16337fi 16338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16339fi 16340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16343 CFLAGS="$xorg_testset_save_CFLAGS" 16344fi 16345 16346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16349 fi 16350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16354 $as_echo_n "(cached) " >&6 16355else 16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16357/* end confdefs.h. */ 16358int i; 16359_ACEOF 16360if ac_fn_c_try_compile "$LINENO"; then : 16361 xorg_cv_cc_flag_unused_command_line_argument=yes 16362else 16363 xorg_cv_cc_flag_unused_command_line_argument=no 16364fi 16365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16366fi 16367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371fi 16372 16373found="no" 16374 16375 if test $found = "no" ; then 16376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16378 fi 16379 16380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16382 fi 16383 16384 CFLAGS="$CFLAGS -Wreturn-type" 16385 16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16387$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16388 cacheid=xorg_cv_cc_flag__Wreturn_type 16389 if eval \${$cacheid+:} false; then : 16390 $as_echo_n "(cached) " >&6 16391else 16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16393/* end confdefs.h. */ 16394int i; 16395int 16396main () 16397{ 16398 16399 ; 16400 return 0; 16401} 16402_ACEOF 16403if ac_fn_c_try_link "$LINENO"; then : 16404 eval $cacheid=yes 16405else 16406 eval $cacheid=no 16407fi 16408rm -f core conftest.err conftest.$ac_objext \ 16409 conftest$ac_exeext conftest.$ac_ext 16410fi 16411 16412 16413 CFLAGS="$xorg_testset_save_CFLAGS" 16414 16415 eval supported=\$$cacheid 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16417$as_echo "$supported" >&6; } 16418 if test "$supported" = "yes" ; then 16419 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16420 found="yes" 16421 fi 16422 fi 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438xorg_testset_save_CFLAGS="$CFLAGS" 16439 16440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16445 $as_echo_n "(cached) " >&6 16446else 16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16448/* end confdefs.h. */ 16449int i; 16450_ACEOF 16451if ac_fn_c_try_compile "$LINENO"; then : 16452 xorg_cv_cc_flag_unknown_warning_option=yes 16453else 16454 xorg_cv_cc_flag_unknown_warning_option=no 16455fi 16456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16457fi 16458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16461 CFLAGS="$xorg_testset_save_CFLAGS" 16462fi 16463 16464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16467 fi 16468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16472 $as_echo_n "(cached) " >&6 16473else 16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16475/* end confdefs.h. */ 16476int i; 16477_ACEOF 16478if ac_fn_c_try_compile "$LINENO"; then : 16479 xorg_cv_cc_flag_unused_command_line_argument=yes 16480else 16481 xorg_cv_cc_flag_unused_command_line_argument=no 16482fi 16483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16484fi 16485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16488 CFLAGS="$xorg_testset_save_CFLAGS" 16489fi 16490 16491found="no" 16492 16493 if test $found = "no" ; then 16494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16496 fi 16497 16498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16500 fi 16501 16502 CFLAGS="$CFLAGS -Wtrigraphs" 16503 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16505$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16506 cacheid=xorg_cv_cc_flag__Wtrigraphs 16507 if eval \${$cacheid+:} false; then : 16508 $as_echo_n "(cached) " >&6 16509else 16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16511/* end confdefs.h. */ 16512int i; 16513int 16514main () 16515{ 16516 16517 ; 16518 return 0; 16519} 16520_ACEOF 16521if ac_fn_c_try_link "$LINENO"; then : 16522 eval $cacheid=yes 16523else 16524 eval $cacheid=no 16525fi 16526rm -f core conftest.err conftest.$ac_objext \ 16527 conftest$ac_exeext conftest.$ac_ext 16528fi 16529 16530 16531 CFLAGS="$xorg_testset_save_CFLAGS" 16532 16533 eval supported=\$$cacheid 16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16535$as_echo "$supported" >&6; } 16536 if test "$supported" = "yes" ; then 16537 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16538 found="yes" 16539 fi 16540 fi 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556xorg_testset_save_CFLAGS="$CFLAGS" 16557 16558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16563 $as_echo_n "(cached) " >&6 16564else 16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16566/* end confdefs.h. */ 16567int i; 16568_ACEOF 16569if ac_fn_c_try_compile "$LINENO"; then : 16570 xorg_cv_cc_flag_unknown_warning_option=yes 16571else 16572 xorg_cv_cc_flag_unknown_warning_option=no 16573fi 16574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16575fi 16576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16579 CFLAGS="$xorg_testset_save_CFLAGS" 16580fi 16581 16582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16585 fi 16586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16590 $as_echo_n "(cached) " >&6 16591else 16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16593/* end confdefs.h. */ 16594int i; 16595_ACEOF 16596if ac_fn_c_try_compile "$LINENO"; then : 16597 xorg_cv_cc_flag_unused_command_line_argument=yes 16598else 16599 xorg_cv_cc_flag_unused_command_line_argument=no 16600fi 16601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16602fi 16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16606 CFLAGS="$xorg_testset_save_CFLAGS" 16607fi 16608 16609found="no" 16610 16611 if test $found = "no" ; then 16612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16614 fi 16615 16616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16618 fi 16619 16620 CFLAGS="$CFLAGS -Warray-bounds" 16621 16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16623$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16624 cacheid=xorg_cv_cc_flag__Warray_bounds 16625 if eval \${$cacheid+:} false; then : 16626 $as_echo_n "(cached) " >&6 16627else 16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16629/* end confdefs.h. */ 16630int i; 16631int 16632main () 16633{ 16634 16635 ; 16636 return 0; 16637} 16638_ACEOF 16639if ac_fn_c_try_link "$LINENO"; then : 16640 eval $cacheid=yes 16641else 16642 eval $cacheid=no 16643fi 16644rm -f core conftest.err conftest.$ac_objext \ 16645 conftest$ac_exeext conftest.$ac_ext 16646fi 16647 16648 16649 CFLAGS="$xorg_testset_save_CFLAGS" 16650 16651 eval supported=\$$cacheid 16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16653$as_echo "$supported" >&6; } 16654 if test "$supported" = "yes" ; then 16655 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16656 found="yes" 16657 fi 16658 fi 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674xorg_testset_save_CFLAGS="$CFLAGS" 16675 16676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16681 $as_echo_n "(cached) " >&6 16682else 16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16684/* end confdefs.h. */ 16685int i; 16686_ACEOF 16687if ac_fn_c_try_compile "$LINENO"; then : 16688 xorg_cv_cc_flag_unknown_warning_option=yes 16689else 16690 xorg_cv_cc_flag_unknown_warning_option=no 16691fi 16692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16693fi 16694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16697 CFLAGS="$xorg_testset_save_CFLAGS" 16698fi 16699 16700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16703 fi 16704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16708 $as_echo_n "(cached) " >&6 16709else 16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16711/* end confdefs.h. */ 16712int i; 16713_ACEOF 16714if ac_fn_c_try_compile "$LINENO"; then : 16715 xorg_cv_cc_flag_unused_command_line_argument=yes 16716else 16717 xorg_cv_cc_flag_unused_command_line_argument=no 16718fi 16719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16720fi 16721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16724 CFLAGS="$xorg_testset_save_CFLAGS" 16725fi 16726 16727found="no" 16728 16729 if test $found = "no" ; then 16730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16732 fi 16733 16734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16736 fi 16737 16738 CFLAGS="$CFLAGS -Wwrite-strings" 16739 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16741$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16742 cacheid=xorg_cv_cc_flag__Wwrite_strings 16743 if eval \${$cacheid+:} false; then : 16744 $as_echo_n "(cached) " >&6 16745else 16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16747/* end confdefs.h. */ 16748int i; 16749int 16750main () 16751{ 16752 16753 ; 16754 return 0; 16755} 16756_ACEOF 16757if ac_fn_c_try_link "$LINENO"; then : 16758 eval $cacheid=yes 16759else 16760 eval $cacheid=no 16761fi 16762rm -f core conftest.err conftest.$ac_objext \ 16763 conftest$ac_exeext conftest.$ac_ext 16764fi 16765 16766 16767 CFLAGS="$xorg_testset_save_CFLAGS" 16768 16769 eval supported=\$$cacheid 16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16771$as_echo "$supported" >&6; } 16772 if test "$supported" = "yes" ; then 16773 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16774 found="yes" 16775 fi 16776 fi 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792xorg_testset_save_CFLAGS="$CFLAGS" 16793 16794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16799 $as_echo_n "(cached) " >&6 16800else 16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16802/* end confdefs.h. */ 16803int i; 16804_ACEOF 16805if ac_fn_c_try_compile "$LINENO"; then : 16806 xorg_cv_cc_flag_unknown_warning_option=yes 16807else 16808 xorg_cv_cc_flag_unknown_warning_option=no 16809fi 16810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16811fi 16812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16815 CFLAGS="$xorg_testset_save_CFLAGS" 16816fi 16817 16818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16821 fi 16822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16826 $as_echo_n "(cached) " >&6 16827else 16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16829/* end confdefs.h. */ 16830int i; 16831_ACEOF 16832if ac_fn_c_try_compile "$LINENO"; then : 16833 xorg_cv_cc_flag_unused_command_line_argument=yes 16834else 16835 xorg_cv_cc_flag_unused_command_line_argument=no 16836fi 16837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16838fi 16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16842 CFLAGS="$xorg_testset_save_CFLAGS" 16843fi 16844 16845found="no" 16846 16847 if test $found = "no" ; then 16848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16850 fi 16851 16852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16854 fi 16855 16856 CFLAGS="$CFLAGS -Waddress" 16857 16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16859$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16860 cacheid=xorg_cv_cc_flag__Waddress 16861 if eval \${$cacheid+:} false; then : 16862 $as_echo_n "(cached) " >&6 16863else 16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16865/* end confdefs.h. */ 16866int i; 16867int 16868main () 16869{ 16870 16871 ; 16872 return 0; 16873} 16874_ACEOF 16875if ac_fn_c_try_link "$LINENO"; then : 16876 eval $cacheid=yes 16877else 16878 eval $cacheid=no 16879fi 16880rm -f core conftest.err conftest.$ac_objext \ 16881 conftest$ac_exeext conftest.$ac_ext 16882fi 16883 16884 16885 CFLAGS="$xorg_testset_save_CFLAGS" 16886 16887 eval supported=\$$cacheid 16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16889$as_echo "$supported" >&6; } 16890 if test "$supported" = "yes" ; then 16891 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16892 found="yes" 16893 fi 16894 fi 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910xorg_testset_save_CFLAGS="$CFLAGS" 16911 16912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16917 $as_echo_n "(cached) " >&6 16918else 16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922_ACEOF 16923if ac_fn_c_try_compile "$LINENO"; then : 16924 xorg_cv_cc_flag_unknown_warning_option=yes 16925else 16926 xorg_cv_cc_flag_unknown_warning_option=no 16927fi 16928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16929fi 16930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16933 CFLAGS="$xorg_testset_save_CFLAGS" 16934fi 16935 16936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16939 fi 16940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16944 $as_echo_n "(cached) " >&6 16945else 16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16947/* end confdefs.h. */ 16948int i; 16949_ACEOF 16950if ac_fn_c_try_compile "$LINENO"; then : 16951 xorg_cv_cc_flag_unused_command_line_argument=yes 16952else 16953 xorg_cv_cc_flag_unused_command_line_argument=no 16954fi 16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16956fi 16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16960 CFLAGS="$xorg_testset_save_CFLAGS" 16961fi 16962 16963found="no" 16964 16965 if test $found = "no" ; then 16966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16968 fi 16969 16970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16972 fi 16973 16974 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16975 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16977$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16978 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16979 if eval \${$cacheid+:} false; then : 16980 $as_echo_n "(cached) " >&6 16981else 16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16983/* end confdefs.h. */ 16984int i; 16985int 16986main () 16987{ 16988 16989 ; 16990 return 0; 16991} 16992_ACEOF 16993if ac_fn_c_try_link "$LINENO"; then : 16994 eval $cacheid=yes 16995else 16996 eval $cacheid=no 16997fi 16998rm -f core conftest.err conftest.$ac_objext \ 16999 conftest$ac_exeext conftest.$ac_ext 17000fi 17001 17002 17003 CFLAGS="$xorg_testset_save_CFLAGS" 17004 17005 eval supported=\$$cacheid 17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17007$as_echo "$supported" >&6; } 17008 if test "$supported" = "yes" ; then 17009 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17010 found="yes" 17011 fi 17012 fi 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028xorg_testset_save_CFLAGS="$CFLAGS" 17029 17030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17035 $as_echo_n "(cached) " >&6 17036else 17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039int i; 17040_ACEOF 17041if ac_fn_c_try_compile "$LINENO"; then : 17042 xorg_cv_cc_flag_unknown_warning_option=yes 17043else 17044 xorg_cv_cc_flag_unknown_warning_option=no 17045fi 17046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17047fi 17048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17051 CFLAGS="$xorg_testset_save_CFLAGS" 17052fi 17053 17054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17057 fi 17058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17062 $as_echo_n "(cached) " >&6 17063else 17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17065/* end confdefs.h. */ 17066int i; 17067_ACEOF 17068if ac_fn_c_try_compile "$LINENO"; then : 17069 xorg_cv_cc_flag_unused_command_line_argument=yes 17070else 17071 xorg_cv_cc_flag_unused_command_line_argument=no 17072fi 17073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17074fi 17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17078 CFLAGS="$xorg_testset_save_CFLAGS" 17079fi 17080 17081found="no" 17082 17083 if test $found = "no" ; then 17084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17086 fi 17087 17088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17090 fi 17091 17092 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17093 17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17095$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17096 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17097 if eval \${$cacheid+:} false; then : 17098 $as_echo_n "(cached) " >&6 17099else 17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17101/* end confdefs.h. */ 17102int i; 17103int 17104main () 17105{ 17106 17107 ; 17108 return 0; 17109} 17110_ACEOF 17111if ac_fn_c_try_link "$LINENO"; then : 17112 eval $cacheid=yes 17113else 17114 eval $cacheid=no 17115fi 17116rm -f core conftest.err conftest.$ac_objext \ 17117 conftest$ac_exeext conftest.$ac_ext 17118fi 17119 17120 17121 CFLAGS="$xorg_testset_save_CFLAGS" 17122 17123 eval supported=\$$cacheid 17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17125$as_echo "$supported" >&6; } 17126 if test "$supported" = "yes" ; then 17127 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17128 found="yes" 17129 fi 17130 fi 17131 17132 17133fi 17134 17135 17136 17137 17138 17139 17140 17141 CWARNFLAGS="$BASE_CFLAGS" 17142 if test "x$GCC" = xyes ; then 17143 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17144 fi 17145 17146 17147 17148 17149 17150 17151 17152 17153# Check whether --enable-strict-compilation was given. 17154if test "${enable_strict_compilation+set}" = set; then : 17155 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17156else 17157 STRICT_COMPILE=no 17158fi 17159 17160 17161 17162 17163 17164 17165STRICT_CFLAGS="" 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179xorg_testset_save_CFLAGS="$CFLAGS" 17180 17181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17186 $as_echo_n "(cached) " >&6 17187else 17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17189/* end confdefs.h. */ 17190int i; 17191_ACEOF 17192if ac_fn_c_try_compile "$LINENO"; then : 17193 xorg_cv_cc_flag_unknown_warning_option=yes 17194else 17195 xorg_cv_cc_flag_unknown_warning_option=no 17196fi 17197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17198fi 17199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17202 CFLAGS="$xorg_testset_save_CFLAGS" 17203fi 17204 17205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17208 fi 17209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17213 $as_echo_n "(cached) " >&6 17214else 17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17216/* end confdefs.h. */ 17217int i; 17218_ACEOF 17219if ac_fn_c_try_compile "$LINENO"; then : 17220 xorg_cv_cc_flag_unused_command_line_argument=yes 17221else 17222 xorg_cv_cc_flag_unused_command_line_argument=no 17223fi 17224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17225fi 17226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17229 CFLAGS="$xorg_testset_save_CFLAGS" 17230fi 17231 17232found="no" 17233 17234 if test $found = "no" ; then 17235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17237 fi 17238 17239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17241 fi 17242 17243 CFLAGS="$CFLAGS -pedantic" 17244 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17246$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17247 cacheid=xorg_cv_cc_flag__pedantic 17248 if eval \${$cacheid+:} false; then : 17249 $as_echo_n "(cached) " >&6 17250else 17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17252/* end confdefs.h. */ 17253int i; 17254int 17255main () 17256{ 17257 17258 ; 17259 return 0; 17260} 17261_ACEOF 17262if ac_fn_c_try_link "$LINENO"; then : 17263 eval $cacheid=yes 17264else 17265 eval $cacheid=no 17266fi 17267rm -f core conftest.err conftest.$ac_objext \ 17268 conftest$ac_exeext conftest.$ac_ext 17269fi 17270 17271 17272 CFLAGS="$xorg_testset_save_CFLAGS" 17273 17274 eval supported=\$$cacheid 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17276$as_echo "$supported" >&6; } 17277 if test "$supported" = "yes" ; then 17278 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17279 found="yes" 17280 fi 17281 fi 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297xorg_testset_save_CFLAGS="$CFLAGS" 17298 17299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17304 $as_echo_n "(cached) " >&6 17305else 17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17307/* end confdefs.h. */ 17308int i; 17309_ACEOF 17310if ac_fn_c_try_compile "$LINENO"; then : 17311 xorg_cv_cc_flag_unknown_warning_option=yes 17312else 17313 xorg_cv_cc_flag_unknown_warning_option=no 17314fi 17315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17316fi 17317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17320 CFLAGS="$xorg_testset_save_CFLAGS" 17321fi 17322 17323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17326 fi 17327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17331 $as_echo_n "(cached) " >&6 17332else 17333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17334/* end confdefs.h. */ 17335int i; 17336_ACEOF 17337if ac_fn_c_try_compile "$LINENO"; then : 17338 xorg_cv_cc_flag_unused_command_line_argument=yes 17339else 17340 xorg_cv_cc_flag_unused_command_line_argument=no 17341fi 17342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17343fi 17344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17347 CFLAGS="$xorg_testset_save_CFLAGS" 17348fi 17349 17350found="no" 17351 17352 if test $found = "no" ; then 17353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17355 fi 17356 17357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17359 fi 17360 17361 CFLAGS="$CFLAGS -Werror" 17362 17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17364$as_echo_n "checking if $CC supports -Werror... " >&6; } 17365 cacheid=xorg_cv_cc_flag__Werror 17366 if eval \${$cacheid+:} false; then : 17367 $as_echo_n "(cached) " >&6 17368else 17369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17370/* end confdefs.h. */ 17371int i; 17372int 17373main () 17374{ 17375 17376 ; 17377 return 0; 17378} 17379_ACEOF 17380if ac_fn_c_try_link "$LINENO"; then : 17381 eval $cacheid=yes 17382else 17383 eval $cacheid=no 17384fi 17385rm -f core conftest.err conftest.$ac_objext \ 17386 conftest$ac_exeext conftest.$ac_ext 17387fi 17388 17389 17390 CFLAGS="$xorg_testset_save_CFLAGS" 17391 17392 eval supported=\$$cacheid 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17394$as_echo "$supported" >&6; } 17395 if test "$supported" = "yes" ; then 17396 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17397 found="yes" 17398 fi 17399 fi 17400 17401 if test $found = "no" ; then 17402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17404 fi 17405 17406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17408 fi 17409 17410 CFLAGS="$CFLAGS -errwarn" 17411 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17413$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17414 cacheid=xorg_cv_cc_flag__errwarn 17415 if eval \${$cacheid+:} false; then : 17416 $as_echo_n "(cached) " >&6 17417else 17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419/* end confdefs.h. */ 17420int i; 17421int 17422main () 17423{ 17424 17425 ; 17426 return 0; 17427} 17428_ACEOF 17429if ac_fn_c_try_link "$LINENO"; then : 17430 eval $cacheid=yes 17431else 17432 eval $cacheid=no 17433fi 17434rm -f core conftest.err conftest.$ac_objext \ 17435 conftest$ac_exeext conftest.$ac_ext 17436fi 17437 17438 17439 CFLAGS="$xorg_testset_save_CFLAGS" 17440 17441 eval supported=\$$cacheid 17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17443$as_echo "$supported" >&6; } 17444 if test "$supported" = "yes" ; then 17445 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17446 found="yes" 17447 fi 17448 fi 17449 17450 17451 17452# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17453# activate it with -Werror, so we add it here explicitly. 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467xorg_testset_save_CFLAGS="$CFLAGS" 17468 17469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17474 $as_echo_n "(cached) " >&6 17475else 17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17477/* end confdefs.h. */ 17478int i; 17479_ACEOF 17480if ac_fn_c_try_compile "$LINENO"; then : 17481 xorg_cv_cc_flag_unknown_warning_option=yes 17482else 17483 xorg_cv_cc_flag_unknown_warning_option=no 17484fi 17485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17486fi 17487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17490 CFLAGS="$xorg_testset_save_CFLAGS" 17491fi 17492 17493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17496 fi 17497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17501 $as_echo_n "(cached) " >&6 17502else 17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17504/* end confdefs.h. */ 17505int i; 17506_ACEOF 17507if ac_fn_c_try_compile "$LINENO"; then : 17508 xorg_cv_cc_flag_unused_command_line_argument=yes 17509else 17510 xorg_cv_cc_flag_unused_command_line_argument=no 17511fi 17512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17513fi 17514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17517 CFLAGS="$xorg_testset_save_CFLAGS" 17518fi 17519 17520found="no" 17521 17522 if test $found = "no" ; then 17523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17525 fi 17526 17527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17529 fi 17530 17531 CFLAGS="$CFLAGS -Werror=attributes" 17532 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17534$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17535 cacheid=xorg_cv_cc_flag__Werror_attributes 17536 if eval \${$cacheid+:} false; then : 17537 $as_echo_n "(cached) " >&6 17538else 17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540/* end confdefs.h. */ 17541int i; 17542int 17543main () 17544{ 17545 17546 ; 17547 return 0; 17548} 17549_ACEOF 17550if ac_fn_c_try_link "$LINENO"; then : 17551 eval $cacheid=yes 17552else 17553 eval $cacheid=no 17554fi 17555rm -f core conftest.err conftest.$ac_objext \ 17556 conftest$ac_exeext conftest.$ac_ext 17557fi 17558 17559 17560 CFLAGS="$xorg_testset_save_CFLAGS" 17561 17562 eval supported=\$$cacheid 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17564$as_echo "$supported" >&6; } 17565 if test "$supported" = "yes" ; then 17566 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17567 found="yes" 17568 fi 17569 fi 17570 17571 17572 17573if test "x$STRICT_COMPILE" = "xyes"; then 17574 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17575 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17576fi 17577 17578 17579 17580 17581 17582 17583cat >>confdefs.h <<_ACEOF 17584#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17585_ACEOF 17586 17587 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17588 if test "x$PVM" = "x"; then 17589 PVM="0" 17590 fi 17591 17592cat >>confdefs.h <<_ACEOF 17593#define PACKAGE_VERSION_MINOR $PVM 17594_ACEOF 17595 17596 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17597 if test "x$PVP" = "x"; then 17598 PVP="0" 17599 fi 17600 17601cat >>confdefs.h <<_ACEOF 17602#define PACKAGE_VERSION_PATCHLEVEL $PVP 17603_ACEOF 17604 17605 17606 17607CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17608mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17609|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17610echo 'git directory not found: installing possibly empty changelog.' >&2)" 17611 17612 17613 17614 17615macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17616INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17617mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17618|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17619echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17620 17621 17622 17623 17624 17625 17626if test x$APP_MAN_SUFFIX = x ; then 17627 APP_MAN_SUFFIX=1 17628fi 17629if test x$APP_MAN_DIR = x ; then 17630 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17631fi 17632 17633if test x$LIB_MAN_SUFFIX = x ; then 17634 LIB_MAN_SUFFIX=3 17635fi 17636if test x$LIB_MAN_DIR = x ; then 17637 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17638fi 17639 17640if test x$FILE_MAN_SUFFIX = x ; then 17641 case $host_os in 17642 solaris*) FILE_MAN_SUFFIX=4 ;; 17643 *) FILE_MAN_SUFFIX=5 ;; 17644 esac 17645fi 17646if test x$FILE_MAN_DIR = x ; then 17647 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17648fi 17649 17650if test x$MISC_MAN_SUFFIX = x ; then 17651 case $host_os in 17652 solaris*) MISC_MAN_SUFFIX=5 ;; 17653 *) MISC_MAN_SUFFIX=7 ;; 17654 esac 17655fi 17656if test x$MISC_MAN_DIR = x ; then 17657 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17658fi 17659 17660if test x$DRIVER_MAN_SUFFIX = x ; then 17661 case $host_os in 17662 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17663 *) DRIVER_MAN_SUFFIX=4 ;; 17664 esac 17665fi 17666if test x$DRIVER_MAN_DIR = x ; then 17667 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17668fi 17669 17670if test x$ADMIN_MAN_SUFFIX = x ; then 17671 case $host_os in 17672 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17673 *) ADMIN_MAN_SUFFIX=8 ;; 17674 esac 17675fi 17676if test x$ADMIN_MAN_DIR = x ; then 17677 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17678fi 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694XORG_MAN_PAGE="X Version 11" 17695 17696MAN_SUBSTS="\ 17697 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17698 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17699 -e 's|__xservername__|Xorg|g' \ 17700 -e 's|__xconfigfile__|xorg.conf|g' \ 17701 -e 's|__projectroot__|\$(prefix)|g' \ 17702 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17703 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17704 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17705 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17706 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17707 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17708 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17709 17710 17711 17712# Check whether --enable-silent-rules was given. 17713if test "${enable_silent_rules+set}" = set; then : 17714 enableval=$enable_silent_rules; 17715fi 17716 17717case $enable_silent_rules in # ((( 17718 yes) AM_DEFAULT_VERBOSITY=0;; 17719 no) AM_DEFAULT_VERBOSITY=1;; 17720 *) AM_DEFAULT_VERBOSITY=0;; 17721esac 17722am_make=${MAKE-make} 17723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17724$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17725if ${am_cv_make_support_nested_variables+:} false; then : 17726 $as_echo_n "(cached) " >&6 17727else 17728 if $as_echo 'TRUE=$(BAR$(V)) 17729BAR0=false 17730BAR1=true 17731V=1 17732am__doit: 17733 @$(TRUE) 17734.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17735 am_cv_make_support_nested_variables=yes 17736else 17737 am_cv_make_support_nested_variables=no 17738fi 17739fi 17740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17741$as_echo "$am_cv_make_support_nested_variables" >&6; } 17742if test $am_cv_make_support_nested_variables = yes; then 17743 AM_V='$(V)' 17744 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17745else 17746 AM_V=$AM_DEFAULT_VERBOSITY 17747 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17748fi 17749AM_BACKSLASH='\' 17750 17751 17752 17753# Check whether --enable-malloc0returnsnull was given. 17754if test "${enable_malloc0returnsnull+set}" = set; then : 17755 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17756else 17757 MALLOC_ZERO_RETURNS_NULL=auto 17758fi 17759 17760 17761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17762$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17763if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17764if ${xorg_cv_malloc0_returns_null+:} false; then : 17765 $as_echo_n "(cached) " >&6 17766else 17767 if test "$cross_compiling" = yes; then : 17768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17770as_fn_error $? "cannot run test program while cross compiling 17771See \`config.log' for more details" "$LINENO" 5; } 17772else 17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17774/* end confdefs.h. */ 17775 17776#include <stdlib.h> 17777 17778int 17779main () 17780{ 17781 17782 char *m0, *r0, *c0, *p; 17783 m0 = malloc(0); 17784 p = malloc(10); 17785 r0 = realloc(p,0); 17786 c0 = calloc(0,10); 17787 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 17788 17789 ; 17790 return 0; 17791} 17792_ACEOF 17793if ac_fn_c_try_run "$LINENO"; then : 17794 xorg_cv_malloc0_returns_null=yes 17795else 17796 xorg_cv_malloc0_returns_null=no 17797fi 17798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17799 conftest.$ac_objext conftest.beam conftest.$ac_ext 17800fi 17801 17802fi 17803 17804MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 17805fi 17806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 17807$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 17808 17809if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 17810 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 17811 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 17812 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 17813else 17814 MALLOC_ZERO_CFLAGS="" 17815 XMALLOC_ZERO_CFLAGS="" 17816 XTMALLOC_ZERO_CFLAGS="" 17817fi 17818 17819 17820 17821 17822 17823 17824# Check render configuration, strip extra digits from package version to 17825# find the required protocol version 17826if test "$VERSION" = "" ; then 17827 VERSION=$PACKAGE_VERSION; 17828fi 17829RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 17830 17831 17832# Obtain compiler/linker options for depedencies 17833 17834pkg_failed=no 17835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5 17836$as_echo_n "checking for RENDER... " >&6; } 17837 17838if test -n "$RENDER_CFLAGS"; then 17839 pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS" 17840 elif test -n "$PKG_CONFIG"; then 17841 if test -n "$PKG_CONFIG" && \ 17842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5 17843 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5 17844 ac_status=$? 17845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17846 test $ac_status = 0; }; then 17847 pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null` 17848else 17849 pkg_failed=yes 17850fi 17851 else 17852 pkg_failed=untried 17853fi 17854if test -n "$RENDER_LIBS"; then 17855 pkg_cv_RENDER_LIBS="$RENDER_LIBS" 17856 elif test -n "$PKG_CONFIG"; then 17857 if test -n "$PKG_CONFIG" && \ 17858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5 17859 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5 17860 ac_status=$? 17861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17862 test $ac_status = 0; }; then 17863 pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null` 17864else 17865 pkg_failed=yes 17866fi 17867 else 17868 pkg_failed=untried 17869fi 17870 17871 17872 17873if test $pkg_failed = yes; then 17874 17875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17876 _pkg_short_errors_supported=yes 17877else 17878 _pkg_short_errors_supported=no 17879fi 17880 if test $_pkg_short_errors_supported = yes; then 17881 RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1` 17882 else 17883 RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1` 17884 fi 17885 # Put the nasty error message in config.log where it belongs 17886 echo "$RENDER_PKG_ERRORS" >&5 17887 17888 as_fn_error $? "Package requirements (x11 >= 1.6 renderproto >= $RENDER_VERSION) were not met: 17889 17890$RENDER_PKG_ERRORS 17891 17892Consider adjusting the PKG_CONFIG_PATH environment variable if you 17893installed software in a non-standard prefix. 17894 17895Alternatively, you may set the environment variables RENDER_CFLAGS 17896and RENDER_LIBS to avoid the need to call pkg-config. 17897See the pkg-config man page for more details. 17898" "$LINENO" 5 17899elif test $pkg_failed = untried; then 17900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17902as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17903is in your PATH or set the PKG_CONFIG environment variable to the full 17904path to pkg-config. 17905 17906Alternatively, you may set the environment variables RENDER_CFLAGS 17907and RENDER_LIBS to avoid the need to call pkg-config. 17908See the pkg-config man page for more details. 17909 17910To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17911See \`config.log' for more details" "$LINENO" 5; } 17912else 17913 RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS 17914 RENDER_LIBS=$pkg_cv_RENDER_LIBS 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17916$as_echo "yes" >&6; } 17917 : 17918fi 17919 17920ac_config_files="$ac_config_files Makefile src/Makefile xrender.pc" 17921 17922cat >confcache <<\_ACEOF 17923# This file is a shell script that caches the results of configure 17924# tests run on this system so they can be shared between configure 17925# scripts and configure runs, see configure's option --config-cache. 17926# It is not useful on other systems. If it contains results you don't 17927# want to keep, you may remove or edit it. 17928# 17929# config.status only pays attention to the cache file if you give it 17930# the --recheck option to rerun configure. 17931# 17932# `ac_cv_env_foo' variables (set or unset) will be overridden when 17933# loading this file, other *unset* `ac_cv_foo' will be assigned the 17934# following values. 17935 17936_ACEOF 17937 17938# The following way of writing the cache mishandles newlines in values, 17939# but we know of no workaround that is simple, portable, and efficient. 17940# So, we kill variables containing newlines. 17941# Ultrix sh set writes to stderr and can't be redirected directly, 17942# and sets the high bit in the cache file unless we assign to the vars. 17943( 17944 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17945 eval ac_val=\$$ac_var 17946 case $ac_val in #( 17947 *${as_nl}*) 17948 case $ac_var in #( 17949 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17950$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17951 esac 17952 case $ac_var in #( 17953 _ | IFS | as_nl) ;; #( 17954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17955 *) { eval $ac_var=; unset $ac_var;} ;; 17956 esac ;; 17957 esac 17958 done 17959 17960 (set) 2>&1 | 17961 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17962 *${as_nl}ac_space=\ *) 17963 # `set' does not quote correctly, so add quotes: double-quote 17964 # substitution turns \\\\ into \\, and sed turns \\ into \. 17965 sed -n \ 17966 "s/'/'\\\\''/g; 17967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17968 ;; #( 17969 *) 17970 # `set' quotes correctly as required by POSIX, so do not add quotes. 17971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17972 ;; 17973 esac | 17974 sort 17975) | 17976 sed ' 17977 /^ac_cv_env_/b end 17978 t clear 17979 :clear 17980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17981 t end 17982 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17983 :end' >>confcache 17984if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17985 if test -w "$cache_file"; then 17986 if test "x$cache_file" != "x/dev/null"; then 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17988$as_echo "$as_me: updating cache $cache_file" >&6;} 17989 if test ! -f "$cache_file" || test -h "$cache_file"; then 17990 cat confcache >"$cache_file" 17991 else 17992 case $cache_file in #( 17993 */* | ?:*) 17994 mv -f confcache "$cache_file"$$ && 17995 mv -f "$cache_file"$$ "$cache_file" ;; #( 17996 *) 17997 mv -f confcache "$cache_file" ;; 17998 esac 17999 fi 18000 fi 18001 else 18002 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18003$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18004 fi 18005fi 18006rm -f confcache 18007 18008test "x$prefix" = xNONE && prefix=$ac_default_prefix 18009# Let make expand exec_prefix. 18010test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18011 18012DEFS=-DHAVE_CONFIG_H 18013 18014ac_libobjs= 18015ac_ltlibobjs= 18016U= 18017for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18018 # 1. Remove the extension, and $U if already installed. 18019 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18020 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18021 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18022 # will be set to the directory where LIBOBJS objects are built. 18023 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18024 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18025done 18026LIBOBJS=$ac_libobjs 18027 18028LTLIBOBJS=$ac_ltlibobjs 18029 18030 18031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18032$as_echo_n "checking that generated files are newer than configure... " >&6; } 18033 if test -n "$am_sleep_pid"; then 18034 # Hide warnings about reused PIDs. 18035 wait $am_sleep_pid 2>/dev/null 18036 fi 18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18038$as_echo "done" >&6; } 18039 if test -n "$EXEEXT"; then 18040 am__EXEEXT_TRUE= 18041 am__EXEEXT_FALSE='#' 18042else 18043 am__EXEEXT_TRUE='#' 18044 am__EXEEXT_FALSE= 18045fi 18046 18047if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18048 as_fn_error $? "conditional \"AMDEP\" was never defined. 18049Usually this means the macro was only invoked conditionally." "$LINENO" 5 18050fi 18051if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18052 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18053Usually this means the macro was only invoked conditionally." "$LINENO" 5 18054fi 18055 18056: "${CONFIG_STATUS=./config.status}" 18057ac_write_fail=0 18058ac_clean_files_save=$ac_clean_files 18059ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18060{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18061$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18062as_write_fail=0 18063cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18064#! $SHELL 18065# Generated by $as_me. 18066# Run this file to recreate the current configuration. 18067# Compiler output produced by configure, useful for debugging 18068# configure, is in config.log if it exists. 18069 18070debug=false 18071ac_cs_recheck=false 18072ac_cs_silent=false 18073 18074SHELL=\${CONFIG_SHELL-$SHELL} 18075export SHELL 18076_ASEOF 18077cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18078## -------------------- ## 18079## M4sh Initialization. ## 18080## -------------------- ## 18081 18082# Be more Bourne compatible 18083DUALCASE=1; export DUALCASE # for MKS sh 18084if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18085 emulate sh 18086 NULLCMD=: 18087 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18088 # is contrary to our usage. Disable this feature. 18089 alias -g '${1+"$@"}'='"$@"' 18090 setopt NO_GLOB_SUBST 18091else 18092 case `(set -o) 2>/dev/null` in #( 18093 *posix*) : 18094 set -o posix ;; #( 18095 *) : 18096 ;; 18097esac 18098fi 18099 18100 18101as_nl=' 18102' 18103export as_nl 18104# Printing a long string crashes Solaris 7 /usr/bin/printf. 18105as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18106as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18107as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18108# Prefer a ksh shell builtin over an external printf program on Solaris, 18109# but without wasting forks for bash or zsh. 18110if test -z "$BASH_VERSION$ZSH_VERSION" \ 18111 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18112 as_echo='print -r --' 18113 as_echo_n='print -rn --' 18114elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18115 as_echo='printf %s\n' 18116 as_echo_n='printf %s' 18117else 18118 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18119 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18120 as_echo_n='/usr/ucb/echo -n' 18121 else 18122 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18123 as_echo_n_body='eval 18124 arg=$1; 18125 case $arg in #( 18126 *"$as_nl"*) 18127 expr "X$arg" : "X\\(.*\\)$as_nl"; 18128 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18129 esac; 18130 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18131 ' 18132 export as_echo_n_body 18133 as_echo_n='sh -c $as_echo_n_body as_echo' 18134 fi 18135 export as_echo_body 18136 as_echo='sh -c $as_echo_body as_echo' 18137fi 18138 18139# The user is always right. 18140if test "${PATH_SEPARATOR+set}" != set; then 18141 PATH_SEPARATOR=: 18142 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18143 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18144 PATH_SEPARATOR=';' 18145 } 18146fi 18147 18148 18149# IFS 18150# We need space, tab and new line, in precisely that order. Quoting is 18151# there to prevent editors from complaining about space-tab. 18152# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18153# splitting by setting IFS to empty value.) 18154IFS=" "" $as_nl" 18155 18156# Find who we are. Look in the path if we contain no directory separator. 18157as_myself= 18158case $0 in #(( 18159 *[\\/]* ) as_myself=$0 ;; 18160 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18161for as_dir in $PATH 18162do 18163 IFS=$as_save_IFS 18164 test -z "$as_dir" && as_dir=. 18165 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18166 done 18167IFS=$as_save_IFS 18168 18169 ;; 18170esac 18171# We did not find ourselves, most probably we were run as `sh COMMAND' 18172# in which case we are not to be found in the path. 18173if test "x$as_myself" = x; then 18174 as_myself=$0 18175fi 18176if test ! -f "$as_myself"; then 18177 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18178 exit 1 18179fi 18180 18181# Unset variables that we do not need and which cause bugs (e.g. in 18182# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18183# suppresses any "Segmentation fault" message there. '((' could 18184# trigger a bug in pdksh 5.2.14. 18185for as_var in BASH_ENV ENV MAIL MAILPATH 18186do eval test x\${$as_var+set} = xset \ 18187 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18188done 18189PS1='$ ' 18190PS2='> ' 18191PS4='+ ' 18192 18193# NLS nuisances. 18194LC_ALL=C 18195export LC_ALL 18196LANGUAGE=C 18197export LANGUAGE 18198 18199# CDPATH. 18200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18201 18202 18203# as_fn_error STATUS ERROR [LINENO LOG_FD] 18204# ---------------------------------------- 18205# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18206# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18207# script with STATUS, using 1 if that was 0. 18208as_fn_error () 18209{ 18210 as_status=$1; test $as_status -eq 0 && as_status=1 18211 if test "$4"; then 18212 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18213 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18214 fi 18215 $as_echo "$as_me: error: $2" >&2 18216 as_fn_exit $as_status 18217} # as_fn_error 18218 18219 18220# as_fn_set_status STATUS 18221# ----------------------- 18222# Set $? to STATUS, without forking. 18223as_fn_set_status () 18224{ 18225 return $1 18226} # as_fn_set_status 18227 18228# as_fn_exit STATUS 18229# ----------------- 18230# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18231as_fn_exit () 18232{ 18233 set +e 18234 as_fn_set_status $1 18235 exit $1 18236} # as_fn_exit 18237 18238# as_fn_unset VAR 18239# --------------- 18240# Portably unset VAR. 18241as_fn_unset () 18242{ 18243 { eval $1=; unset $1;} 18244} 18245as_unset=as_fn_unset 18246# as_fn_append VAR VALUE 18247# ---------------------- 18248# Append the text in VALUE to the end of the definition contained in VAR. Take 18249# advantage of any shell optimizations that allow amortized linear growth over 18250# repeated appends, instead of the typical quadratic growth present in naive 18251# implementations. 18252if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18253 eval 'as_fn_append () 18254 { 18255 eval $1+=\$2 18256 }' 18257else 18258 as_fn_append () 18259 { 18260 eval $1=\$$1\$2 18261 } 18262fi # as_fn_append 18263 18264# as_fn_arith ARG... 18265# ------------------ 18266# Perform arithmetic evaluation on the ARGs, and store the result in the 18267# global $as_val. Take advantage of shells that can avoid forks. The arguments 18268# must be portable across $(()) and expr. 18269if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18270 eval 'as_fn_arith () 18271 { 18272 as_val=$(( $* )) 18273 }' 18274else 18275 as_fn_arith () 18276 { 18277 as_val=`expr "$@" || test $? -eq 1` 18278 } 18279fi # as_fn_arith 18280 18281 18282if expr a : '\(a\)' >/dev/null 2>&1 && 18283 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18284 as_expr=expr 18285else 18286 as_expr=false 18287fi 18288 18289if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18290 as_basename=basename 18291else 18292 as_basename=false 18293fi 18294 18295if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18296 as_dirname=dirname 18297else 18298 as_dirname=false 18299fi 18300 18301as_me=`$as_basename -- "$0" || 18302$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18303 X"$0" : 'X\(//\)$' \| \ 18304 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18305$as_echo X/"$0" | 18306 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18307 s//\1/ 18308 q 18309 } 18310 /^X\/\(\/\/\)$/{ 18311 s//\1/ 18312 q 18313 } 18314 /^X\/\(\/\).*/{ 18315 s//\1/ 18316 q 18317 } 18318 s/.*/./; q'` 18319 18320# Avoid depending upon Character Ranges. 18321as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18322as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18323as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18324as_cr_digits='0123456789' 18325as_cr_alnum=$as_cr_Letters$as_cr_digits 18326 18327ECHO_C= ECHO_N= ECHO_T= 18328case `echo -n x` in #((((( 18329-n*) 18330 case `echo 'xy\c'` in 18331 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18332 xy) ECHO_C='\c';; 18333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18334 ECHO_T=' ';; 18335 esac;; 18336*) 18337 ECHO_N='-n';; 18338esac 18339 18340rm -f conf$$ conf$$.exe conf$$.file 18341if test -d conf$$.dir; then 18342 rm -f conf$$.dir/conf$$.file 18343else 18344 rm -f conf$$.dir 18345 mkdir conf$$.dir 2>/dev/null 18346fi 18347if (echo >conf$$.file) 2>/dev/null; then 18348 if ln -s conf$$.file conf$$ 2>/dev/null; then 18349 as_ln_s='ln -s' 18350 # ... but there are two gotchas: 18351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18353 # In both cases, we have to default to `cp -pR'. 18354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18355 as_ln_s='cp -pR' 18356 elif ln conf$$.file conf$$ 2>/dev/null; then 18357 as_ln_s=ln 18358 else 18359 as_ln_s='cp -pR' 18360 fi 18361else 18362 as_ln_s='cp -pR' 18363fi 18364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18365rmdir conf$$.dir 2>/dev/null 18366 18367 18368# as_fn_mkdir_p 18369# ------------- 18370# Create "$as_dir" as a directory, including parents if necessary. 18371as_fn_mkdir_p () 18372{ 18373 18374 case $as_dir in #( 18375 -*) as_dir=./$as_dir;; 18376 esac 18377 test -d "$as_dir" || eval $as_mkdir_p || { 18378 as_dirs= 18379 while :; do 18380 case $as_dir in #( 18381 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18382 *) as_qdir=$as_dir;; 18383 esac 18384 as_dirs="'$as_qdir' $as_dirs" 18385 as_dir=`$as_dirname -- "$as_dir" || 18386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18387 X"$as_dir" : 'X\(//\)[^/]' \| \ 18388 X"$as_dir" : 'X\(//\)$' \| \ 18389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18390$as_echo X"$as_dir" | 18391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18392 s//\1/ 18393 q 18394 } 18395 /^X\(\/\/\)[^/].*/{ 18396 s//\1/ 18397 q 18398 } 18399 /^X\(\/\/\)$/{ 18400 s//\1/ 18401 q 18402 } 18403 /^X\(\/\).*/{ 18404 s//\1/ 18405 q 18406 } 18407 s/.*/./; q'` 18408 test -d "$as_dir" && break 18409 done 18410 test -z "$as_dirs" || eval "mkdir $as_dirs" 18411 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18412 18413 18414} # as_fn_mkdir_p 18415if mkdir -p . 2>/dev/null; then 18416 as_mkdir_p='mkdir -p "$as_dir"' 18417else 18418 test -d ./-p && rmdir ./-p 18419 as_mkdir_p=false 18420fi 18421 18422 18423# as_fn_executable_p FILE 18424# ----------------------- 18425# Test if FILE is an executable regular file. 18426as_fn_executable_p () 18427{ 18428 test -f "$1" && test -x "$1" 18429} # as_fn_executable_p 18430as_test_x='test -x' 18431as_executable_p=as_fn_executable_p 18432 18433# Sed expression to map a string onto a valid CPP name. 18434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18435 18436# Sed expression to map a string onto a valid variable name. 18437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18438 18439 18440exec 6>&1 18441## ----------------------------------- ## 18442## Main body of $CONFIG_STATUS script. ## 18443## ----------------------------------- ## 18444_ASEOF 18445test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18446 18447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18448# Save the log message, to keep $0 and so on meaningful, and to 18449# report actual input values of CONFIG_FILES etc. instead of their 18450# values after options handling. 18451ac_log=" 18452This file was extended by libXrender $as_me 0.9.9, which was 18453generated by GNU Autoconf 2.69. Invocation command line was 18454 18455 CONFIG_FILES = $CONFIG_FILES 18456 CONFIG_HEADERS = $CONFIG_HEADERS 18457 CONFIG_LINKS = $CONFIG_LINKS 18458 CONFIG_COMMANDS = $CONFIG_COMMANDS 18459 $ $0 $@ 18460 18461on `(hostname || uname -n) 2>/dev/null | sed 1q` 18462" 18463 18464_ACEOF 18465 18466case $ac_config_files in *" 18467"*) set x $ac_config_files; shift; ac_config_files=$*;; 18468esac 18469 18470case $ac_config_headers in *" 18471"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18472esac 18473 18474 18475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18476# Files that config.status was made for. 18477config_files="$ac_config_files" 18478config_headers="$ac_config_headers" 18479config_commands="$ac_config_commands" 18480 18481_ACEOF 18482 18483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18484ac_cs_usage="\ 18485\`$as_me' instantiates files and other configuration actions 18486from templates according to the current configuration. Unless the files 18487and actions are specified as TAGs, all are instantiated by default. 18488 18489Usage: $0 [OPTION]... [TAG]... 18490 18491 -h, --help print this help, then exit 18492 -V, --version print version number and configuration settings, then exit 18493 --config print configuration, then exit 18494 -q, --quiet, --silent 18495 do not print progress messages 18496 -d, --debug don't remove temporary files 18497 --recheck update $as_me by reconfiguring in the same conditions 18498 --file=FILE[:TEMPLATE] 18499 instantiate the configuration file FILE 18500 --header=FILE[:TEMPLATE] 18501 instantiate the configuration header FILE 18502 18503Configuration files: 18504$config_files 18505 18506Configuration headers: 18507$config_headers 18508 18509Configuration commands: 18510$config_commands 18511 18512Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18513 18514_ACEOF 18515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18516ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18517ac_cs_version="\\ 18518libXrender config.status 0.9.9 18519configured by $0, generated by GNU Autoconf 2.69, 18520 with options \\"\$ac_cs_config\\" 18521 18522Copyright (C) 2012 Free Software Foundation, Inc. 18523This config.status script is free software; the Free Software Foundation 18524gives unlimited permission to copy, distribute and modify it." 18525 18526ac_pwd='$ac_pwd' 18527srcdir='$srcdir' 18528INSTALL='$INSTALL' 18529MKDIR_P='$MKDIR_P' 18530AWK='$AWK' 18531test -n "\$AWK" || AWK=awk 18532_ACEOF 18533 18534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18535# The default lists apply if the user does not specify any file. 18536ac_need_defaults=: 18537while test $# != 0 18538do 18539 case $1 in 18540 --*=?*) 18541 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18543 ac_shift=: 18544 ;; 18545 --*=) 18546 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18547 ac_optarg= 18548 ac_shift=: 18549 ;; 18550 *) 18551 ac_option=$1 18552 ac_optarg=$2 18553 ac_shift=shift 18554 ;; 18555 esac 18556 18557 case $ac_option in 18558 # Handling of the options. 18559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18560 ac_cs_recheck=: ;; 18561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18562 $as_echo "$ac_cs_version"; exit ;; 18563 --config | --confi | --conf | --con | --co | --c ) 18564 $as_echo "$ac_cs_config"; exit ;; 18565 --debug | --debu | --deb | --de | --d | -d ) 18566 debug=: ;; 18567 --file | --fil | --fi | --f ) 18568 $ac_shift 18569 case $ac_optarg in 18570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18571 '') as_fn_error $? "missing file argument" ;; 18572 esac 18573 as_fn_append CONFIG_FILES " '$ac_optarg'" 18574 ac_need_defaults=false;; 18575 --header | --heade | --head | --hea ) 18576 $ac_shift 18577 case $ac_optarg in 18578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18579 esac 18580 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18581 ac_need_defaults=false;; 18582 --he | --h) 18583 # Conflict between --help and --header 18584 as_fn_error $? "ambiguous option: \`$1' 18585Try \`$0 --help' for more information.";; 18586 --help | --hel | -h ) 18587 $as_echo "$ac_cs_usage"; exit ;; 18588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18589 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18590 ac_cs_silent=: ;; 18591 18592 # This is an error. 18593 -*) as_fn_error $? "unrecognized option: \`$1' 18594Try \`$0 --help' for more information." ;; 18595 18596 *) as_fn_append ac_config_targets " $1" 18597 ac_need_defaults=false ;; 18598 18599 esac 18600 shift 18601done 18602 18603ac_configure_extra_args= 18604 18605if $ac_cs_silent; then 18606 exec 6>/dev/null 18607 ac_configure_extra_args="$ac_configure_extra_args --silent" 18608fi 18609 18610_ACEOF 18611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18612if \$ac_cs_recheck; then 18613 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18614 shift 18615 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18616 CONFIG_SHELL='$SHELL' 18617 export CONFIG_SHELL 18618 exec "\$@" 18619fi 18620 18621_ACEOF 18622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18623exec 5>>config.log 18624{ 18625 echo 18626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18627## Running $as_me. ## 18628_ASBOX 18629 $as_echo "$ac_log" 18630} >&5 18631 18632_ACEOF 18633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18634# 18635# INIT-COMMANDS 18636# 18637AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18638 18639 18640# The HP-UX ksh and POSIX shell print the target directory to stdout 18641# if CDPATH is set. 18642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18643 18644sed_quote_subst='$sed_quote_subst' 18645double_quote_subst='$double_quote_subst' 18646delay_variable_subst='$delay_variable_subst' 18647macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18648macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18649enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18650enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18651pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18652enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18653SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18654ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18655PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18656host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18657host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18658host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18659build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18660build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18661build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18662SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18663Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18664GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18665EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18666FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18667LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18668NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18669LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18670max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18671ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18672exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18673lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18674lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18675lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18676lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18677lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18678reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18679reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18680OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18681deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18682file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18683file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18684want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18685DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18686sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18687AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18688AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18689archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18690STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18691RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18692old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18693old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18694old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18695lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18696CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18697CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18698compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18699GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18700lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18701lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18702lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18703lt_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"`' 18704nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18705lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18706objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18707MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18708lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18709lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18710lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18711lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18712lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18713need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18714MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18715DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18716NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18717LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18718OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18719OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18720libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18721shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18722extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18723archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18724enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18725export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18726whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18727compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18728old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18729old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18730archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18731archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18732module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18733module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18734with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18735allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18736no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18737hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18738hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18739hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18740hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18741hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18742hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18743hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18744inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18745link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18746always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18747export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18748exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18749include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18750prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18751postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18752file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18753variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18754need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18755need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18756version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18757runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18758shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18759shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18760libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18761library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18762soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18763install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18764postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18765postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18766finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18767finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18768hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18769sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18770sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18771hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18772enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18773enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18774enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18775old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18776striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18777 18778LTCC='$LTCC' 18779LTCFLAGS='$LTCFLAGS' 18780compiler='$compiler_DEFAULT' 18781 18782# A function that is used when there is no print builtin or printf. 18783func_fallback_echo () 18784{ 18785 eval 'cat <<_LTECHO_EOF 18786\$1 18787_LTECHO_EOF' 18788} 18789 18790# Quote evaled strings. 18791for var in SHELL \ 18792ECHO \ 18793PATH_SEPARATOR \ 18794SED \ 18795GREP \ 18796EGREP \ 18797FGREP \ 18798LD \ 18799NM \ 18800LN_S \ 18801lt_SP2NL \ 18802lt_NL2SP \ 18803reload_flag \ 18804OBJDUMP \ 18805deplibs_check_method \ 18806file_magic_cmd \ 18807file_magic_glob \ 18808want_nocaseglob \ 18809DLLTOOL \ 18810sharedlib_from_linklib_cmd \ 18811AR \ 18812AR_FLAGS \ 18813archiver_list_spec \ 18814STRIP \ 18815RANLIB \ 18816CC \ 18817CFLAGS \ 18818compiler \ 18819lt_cv_sys_global_symbol_pipe \ 18820lt_cv_sys_global_symbol_to_cdecl \ 18821lt_cv_sys_global_symbol_to_c_name_address \ 18822lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18823nm_file_list_spec \ 18824lt_prog_compiler_no_builtin_flag \ 18825lt_prog_compiler_pic \ 18826lt_prog_compiler_wl \ 18827lt_prog_compiler_static \ 18828lt_cv_prog_compiler_c_o \ 18829need_locks \ 18830MANIFEST_TOOL \ 18831DSYMUTIL \ 18832NMEDIT \ 18833LIPO \ 18834OTOOL \ 18835OTOOL64 \ 18836shrext_cmds \ 18837export_dynamic_flag_spec \ 18838whole_archive_flag_spec \ 18839compiler_needs_object \ 18840with_gnu_ld \ 18841allow_undefined_flag \ 18842no_undefined_flag \ 18843hardcode_libdir_flag_spec \ 18844hardcode_libdir_separator \ 18845exclude_expsyms \ 18846include_expsyms \ 18847file_list_spec \ 18848variables_saved_for_relink \ 18849libname_spec \ 18850library_names_spec \ 18851soname_spec \ 18852install_override_mode \ 18853finish_eval \ 18854old_striplib \ 18855striplib; do 18856 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18857 *[\\\\\\\`\\"\\\$]*) 18858 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18859 ;; 18860 *) 18861 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18862 ;; 18863 esac 18864done 18865 18866# Double-quote double-evaled strings. 18867for var in reload_cmds \ 18868old_postinstall_cmds \ 18869old_postuninstall_cmds \ 18870old_archive_cmds \ 18871extract_expsyms_cmds \ 18872old_archive_from_new_cmds \ 18873old_archive_from_expsyms_cmds \ 18874archive_cmds \ 18875archive_expsym_cmds \ 18876module_cmds \ 18877module_expsym_cmds \ 18878export_symbols_cmds \ 18879prelink_cmds \ 18880postlink_cmds \ 18881postinstall_cmds \ 18882postuninstall_cmds \ 18883finish_cmds \ 18884sys_lib_search_path_spec \ 18885sys_lib_dlsearch_path_spec; do 18886 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18887 *[\\\\\\\`\\"\\\$]*) 18888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18889 ;; 18890 *) 18891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18892 ;; 18893 esac 18894done 18895 18896ac_aux_dir='$ac_aux_dir' 18897xsi_shell='$xsi_shell' 18898lt_shell_append='$lt_shell_append' 18899 18900# See if we are running on zsh, and set the options which allow our 18901# commands through without removal of \ escapes INIT. 18902if test -n "\${ZSH_VERSION+set}" ; then 18903 setopt NO_GLOB_SUBST 18904fi 18905 18906 18907 PACKAGE='$PACKAGE' 18908 VERSION='$VERSION' 18909 TIMESTAMP='$TIMESTAMP' 18910 RM='$RM' 18911 ofile='$ofile' 18912 18913 18914 18915 18916_ACEOF 18917 18918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18919 18920# Handling of arguments. 18921for ac_config_target in $ac_config_targets 18922do 18923 case $ac_config_target in 18924 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18925 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18926 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18927 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18928 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18929 "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;; 18930 18931 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18932 esac 18933done 18934 18935 18936# If the user did not use the arguments to specify the items to instantiate, 18937# then the envvar interface is used. Set only those that are not. 18938# We use the long form for the default assignment because of an extremely 18939# bizarre bug on SunOS 4.1.3. 18940if $ac_need_defaults; then 18941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18944fi 18945 18946# Have a temporary directory for convenience. Make it in the build tree 18947# simply because there is no reason against having it here, and in addition, 18948# creating and moving files from /tmp can sometimes cause problems. 18949# Hook for its removal unless debugging. 18950# Note that there is a small window in which the directory will not be cleaned: 18951# after its creation but before its name has been assigned to `$tmp'. 18952$debug || 18953{ 18954 tmp= ac_tmp= 18955 trap 'exit_status=$? 18956 : "${ac_tmp:=$tmp}" 18957 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18958' 0 18959 trap 'as_fn_exit 1' 1 2 13 15 18960} 18961# Create a (secure) tmp directory for tmp files. 18962 18963{ 18964 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18965 test -d "$tmp" 18966} || 18967{ 18968 tmp=./conf$$-$RANDOM 18969 (umask 077 && mkdir "$tmp") 18970} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18971ac_tmp=$tmp 18972 18973# Set up the scripts for CONFIG_FILES section. 18974# No need to generate them if there are no CONFIG_FILES. 18975# This happens for instance with `./config.status config.h'. 18976if test -n "$CONFIG_FILES"; then 18977 18978 18979ac_cr=`echo X | tr X '\015'` 18980# On cygwin, bash can eat \r inside `` if the user requested igncr. 18981# But we know of no other shell where ac_cr would be empty at this 18982# point, so we can use a bashism as a fallback. 18983if test "x$ac_cr" = x; then 18984 eval ac_cr=\$\'\\r\' 18985fi 18986ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18987if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18988 ac_cs_awk_cr='\\r' 18989else 18990 ac_cs_awk_cr=$ac_cr 18991fi 18992 18993echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18994_ACEOF 18995 18996 18997{ 18998 echo "cat >conf$$subs.awk <<_ACEOF" && 18999 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19000 echo "_ACEOF" 19001} >conf$$subs.sh || 19002 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19003ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19004ac_delim='%!_!# ' 19005for ac_last_try in false false false false false :; do 19006 . ./conf$$subs.sh || 19007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19008 19009 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19010 if test $ac_delim_n = $ac_delim_num; then 19011 break 19012 elif $ac_last_try; then 19013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19014 else 19015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19016 fi 19017done 19018rm -f conf$$subs.sh 19019 19020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19021cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19022_ACEOF 19023sed -n ' 19024h 19025s/^/S["/; s/!.*/"]=/ 19026p 19027g 19028s/^[^!]*!// 19029:repl 19030t repl 19031s/'"$ac_delim"'$// 19032t delim 19033:nl 19034h 19035s/\(.\{148\}\)..*/\1/ 19036t more1 19037s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19038p 19039n 19040b repl 19041:more1 19042s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19043p 19044g 19045s/.\{148\}// 19046t nl 19047:delim 19048h 19049s/\(.\{148\}\)..*/\1/ 19050t more2 19051s/["\\]/\\&/g; s/^/"/; s/$/"/ 19052p 19053b 19054:more2 19055s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19056p 19057g 19058s/.\{148\}// 19059t delim 19060' <conf$$subs.awk | sed ' 19061/^[^""]/{ 19062 N 19063 s/\n// 19064} 19065' >>$CONFIG_STATUS || ac_write_fail=1 19066rm -f conf$$subs.awk 19067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19068_ACAWK 19069cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19070 for (key in S) S_is_set[key] = 1 19071 FS = "" 19072 19073} 19074{ 19075 line = $ 0 19076 nfields = split(line, field, "@") 19077 substed = 0 19078 len = length(field[1]) 19079 for (i = 2; i < nfields; i++) { 19080 key = field[i] 19081 keylen = length(key) 19082 if (S_is_set[key]) { 19083 value = S[key] 19084 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19085 len += length(value) + length(field[++i]) 19086 substed = 1 19087 } else 19088 len += 1 + keylen 19089 } 19090 19091 print line 19092} 19093 19094_ACAWK 19095_ACEOF 19096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19097if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19099else 19100 cat 19101fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19102 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19103_ACEOF 19104 19105# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19106# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19107# trailing colons and then remove the whole line if VPATH becomes empty 19108# (actually we leave an empty line to preserve line numbers). 19109if test "x$srcdir" = x.; then 19110 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19111h 19112s/// 19113s/^/:/ 19114s/[ ]*$/:/ 19115s/:\$(srcdir):/:/g 19116s/:\${srcdir}:/:/g 19117s/:@srcdir@:/:/g 19118s/^:*// 19119s/:*$// 19120x 19121s/\(=[ ]*\).*/\1/ 19122G 19123s/\n// 19124s/^[^=]*=[ ]*$// 19125}' 19126fi 19127 19128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19129fi # test -n "$CONFIG_FILES" 19130 19131# Set up the scripts for CONFIG_HEADERS section. 19132# No need to generate them if there are no CONFIG_HEADERS. 19133# This happens for instance with `./config.status Makefile'. 19134if test -n "$CONFIG_HEADERS"; then 19135cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19136BEGIN { 19137_ACEOF 19138 19139# Transform confdefs.h into an awk script `defines.awk', embedded as 19140# here-document in config.status, that substitutes the proper values into 19141# config.h.in to produce config.h. 19142 19143# Create a delimiter string that does not exist in confdefs.h, to ease 19144# handling of long lines. 19145ac_delim='%!_!# ' 19146for ac_last_try in false false :; do 19147 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19148 if test -z "$ac_tt"; then 19149 break 19150 elif $ac_last_try; then 19151 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19152 else 19153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19154 fi 19155done 19156 19157# For the awk script, D is an array of macro values keyed by name, 19158# likewise P contains macro parameters if any. Preserve backslash 19159# newline sequences. 19160 19161ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19162sed -n ' 19163s/.\{148\}/&'"$ac_delim"'/g 19164t rset 19165:rset 19166s/^[ ]*#[ ]*define[ ][ ]*/ / 19167t def 19168d 19169:def 19170s/\\$// 19171t bsnl 19172s/["\\]/\\&/g 19173s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19174D["\1"]=" \3"/p 19175s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19176d 19177:bsnl 19178s/["\\]/\\&/g 19179s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19180D["\1"]=" \3\\\\\\n"\\/p 19181t cont 19182s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19183t cont 19184d 19185:cont 19186n 19187s/.\{148\}/&'"$ac_delim"'/g 19188t clear 19189:clear 19190s/\\$// 19191t bsnlc 19192s/["\\]/\\&/g; s/^/"/; s/$/"/p 19193d 19194:bsnlc 19195s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19196b cont 19197' <confdefs.h | sed ' 19198s/'"$ac_delim"'/"\\\ 19199"/g' >>$CONFIG_STATUS || ac_write_fail=1 19200 19201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19202 for (key in D) D_is_set[key] = 1 19203 FS = "" 19204} 19205/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19206 line = \$ 0 19207 split(line, arg, " ") 19208 if (arg[1] == "#") { 19209 defundef = arg[2] 19210 mac1 = arg[3] 19211 } else { 19212 defundef = substr(arg[1], 2) 19213 mac1 = arg[2] 19214 } 19215 split(mac1, mac2, "(") #) 19216 macro = mac2[1] 19217 prefix = substr(line, 1, index(line, defundef) - 1) 19218 if (D_is_set[macro]) { 19219 # Preserve the white space surrounding the "#". 19220 print prefix "define", macro P[macro] D[macro] 19221 next 19222 } else { 19223 # Replace #undef with comments. This is necessary, for example, 19224 # in the case of _POSIX_SOURCE, which is predefined and required 19225 # on some systems where configure will not decide to define it. 19226 if (defundef == "undef") { 19227 print "/*", prefix defundef, macro, "*/" 19228 next 19229 } 19230 } 19231} 19232{ print } 19233_ACAWK 19234_ACEOF 19235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19236 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19237fi # test -n "$CONFIG_HEADERS" 19238 19239 19240eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19241shift 19242for ac_tag 19243do 19244 case $ac_tag in 19245 :[FHLC]) ac_mode=$ac_tag; continue;; 19246 esac 19247 case $ac_mode$ac_tag in 19248 :[FHL]*:*);; 19249 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19250 :[FH]-) ac_tag=-:-;; 19251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19252 esac 19253 ac_save_IFS=$IFS 19254 IFS=: 19255 set x $ac_tag 19256 IFS=$ac_save_IFS 19257 shift 19258 ac_file=$1 19259 shift 19260 19261 case $ac_mode in 19262 :L) ac_source=$1;; 19263 :[FH]) 19264 ac_file_inputs= 19265 for ac_f 19266 do 19267 case $ac_f in 19268 -) ac_f="$ac_tmp/stdin";; 19269 *) # Look for the file first in the build tree, then in the source tree 19270 # (if the path is not absolute). The absolute path cannot be DOS-style, 19271 # because $ac_f cannot contain `:'. 19272 test -f "$ac_f" || 19273 case $ac_f in 19274 [\\/$]*) false;; 19275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19276 esac || 19277 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19278 esac 19279 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19280 as_fn_append ac_file_inputs " '$ac_f'" 19281 done 19282 19283 # Let's still pretend it is `configure' which instantiates (i.e., don't 19284 # use $as_me), people would be surprised to read: 19285 # /* config.h. Generated by config.status. */ 19286 configure_input='Generated from '` 19287 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19288 `' by configure.' 19289 if test x"$ac_file" != x-; then 19290 configure_input="$ac_file. $configure_input" 19291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19292$as_echo "$as_me: creating $ac_file" >&6;} 19293 fi 19294 # Neutralize special characters interpreted by sed in replacement strings. 19295 case $configure_input in #( 19296 *\&* | *\|* | *\\* ) 19297 ac_sed_conf_input=`$as_echo "$configure_input" | 19298 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19299 *) ac_sed_conf_input=$configure_input;; 19300 esac 19301 19302 case $ac_tag in 19303 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19305 esac 19306 ;; 19307 esac 19308 19309 ac_dir=`$as_dirname -- "$ac_file" || 19310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19311 X"$ac_file" : 'X\(//\)[^/]' \| \ 19312 X"$ac_file" : 'X\(//\)$' \| \ 19313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19314$as_echo X"$ac_file" | 19315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19316 s//\1/ 19317 q 19318 } 19319 /^X\(\/\/\)[^/].*/{ 19320 s//\1/ 19321 q 19322 } 19323 /^X\(\/\/\)$/{ 19324 s//\1/ 19325 q 19326 } 19327 /^X\(\/\).*/{ 19328 s//\1/ 19329 q 19330 } 19331 s/.*/./; q'` 19332 as_dir="$ac_dir"; as_fn_mkdir_p 19333 ac_builddir=. 19334 19335case "$ac_dir" in 19336.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19337*) 19338 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19339 # A ".." for each directory in $ac_dir_suffix. 19340 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19341 case $ac_top_builddir_sub in 19342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19344 esac ;; 19345esac 19346ac_abs_top_builddir=$ac_pwd 19347ac_abs_builddir=$ac_pwd$ac_dir_suffix 19348# for backward compatibility: 19349ac_top_builddir=$ac_top_build_prefix 19350 19351case $srcdir in 19352 .) # We are building in place. 19353 ac_srcdir=. 19354 ac_top_srcdir=$ac_top_builddir_sub 19355 ac_abs_top_srcdir=$ac_pwd ;; 19356 [\\/]* | ?:[\\/]* ) # Absolute name. 19357 ac_srcdir=$srcdir$ac_dir_suffix; 19358 ac_top_srcdir=$srcdir 19359 ac_abs_top_srcdir=$srcdir ;; 19360 *) # Relative name. 19361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19362 ac_top_srcdir=$ac_top_build_prefix$srcdir 19363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19364esac 19365ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19366 19367 19368 case $ac_mode in 19369 :F) 19370 # 19371 # CONFIG_FILE 19372 # 19373 19374 case $INSTALL in 19375 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19376 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19377 esac 19378 ac_MKDIR_P=$MKDIR_P 19379 case $MKDIR_P in 19380 [\\/$]* | ?:[\\/]* ) ;; 19381 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19382 esac 19383_ACEOF 19384 19385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19386# If the template does not know about datarootdir, expand it. 19387# FIXME: This hack should be removed a few years after 2.60. 19388ac_datarootdir_hack=; ac_datarootdir_seen= 19389ac_sed_dataroot=' 19390/datarootdir/ { 19391 p 19392 q 19393} 19394/@datadir@/p 19395/@docdir@/p 19396/@infodir@/p 19397/@localedir@/p 19398/@mandir@/p' 19399case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19400*datarootdir*) ac_datarootdir_seen=yes;; 19401*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19403$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19404_ACEOF 19405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19406 ac_datarootdir_hack=' 19407 s&@datadir@&$datadir&g 19408 s&@docdir@&$docdir&g 19409 s&@infodir@&$infodir&g 19410 s&@localedir@&$localedir&g 19411 s&@mandir@&$mandir&g 19412 s&\\\${datarootdir}&$datarootdir&g' ;; 19413esac 19414_ACEOF 19415 19416# Neutralize VPATH when `$srcdir' = `.'. 19417# Shell code in configure.ac might set extrasub. 19418# FIXME: do we really want to maintain this feature? 19419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19420ac_sed_extra="$ac_vpsub 19421$extrasub 19422_ACEOF 19423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19424:t 19425/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19426s|@configure_input@|$ac_sed_conf_input|;t t 19427s&@top_builddir@&$ac_top_builddir_sub&;t t 19428s&@top_build_prefix@&$ac_top_build_prefix&;t t 19429s&@srcdir@&$ac_srcdir&;t t 19430s&@abs_srcdir@&$ac_abs_srcdir&;t t 19431s&@top_srcdir@&$ac_top_srcdir&;t t 19432s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19433s&@builddir@&$ac_builddir&;t t 19434s&@abs_builddir@&$ac_abs_builddir&;t t 19435s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19436s&@INSTALL@&$ac_INSTALL&;t t 19437s&@MKDIR_P@&$ac_MKDIR_P&;t t 19438$ac_datarootdir_hack 19439" 19440eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19441 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19442 19443test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19444 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19446 "$ac_tmp/out"`; test -z "$ac_out"; } && 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19448which seems to be undefined. Please make sure it is defined" >&5 19449$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19450which seems to be undefined. Please make sure it is defined" >&2;} 19451 19452 rm -f "$ac_tmp/stdin" 19453 case $ac_file in 19454 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19455 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19456 esac \ 19457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19458 ;; 19459 :H) 19460 # 19461 # CONFIG_HEADER 19462 # 19463 if test x"$ac_file" != x-; then 19464 { 19465 $as_echo "/* $configure_input */" \ 19466 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19467 } >"$ac_tmp/config.h" \ 19468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19469 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19470 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19471$as_echo "$as_me: $ac_file is unchanged" >&6;} 19472 else 19473 rm -f "$ac_file" 19474 mv "$ac_tmp/config.h" "$ac_file" \ 19475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19476 fi 19477 else 19478 $as_echo "/* $configure_input */" \ 19479 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19480 || as_fn_error $? "could not create -" "$LINENO" 5 19481 fi 19482# Compute "$ac_file"'s index in $config_headers. 19483_am_arg="$ac_file" 19484_am_stamp_count=1 19485for _am_header in $config_headers :; do 19486 case $_am_header in 19487 $_am_arg | $_am_arg:* ) 19488 break ;; 19489 * ) 19490 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19491 esac 19492done 19493echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19494$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19495 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19496 X"$_am_arg" : 'X\(//\)$' \| \ 19497 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19498$as_echo X"$_am_arg" | 19499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19500 s//\1/ 19501 q 19502 } 19503 /^X\(\/\/\)[^/].*/{ 19504 s//\1/ 19505 q 19506 } 19507 /^X\(\/\/\)$/{ 19508 s//\1/ 19509 q 19510 } 19511 /^X\(\/\).*/{ 19512 s//\1/ 19513 q 19514 } 19515 s/.*/./; q'`/stamp-h$_am_stamp_count 19516 ;; 19517 19518 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19519$as_echo "$as_me: executing $ac_file commands" >&6;} 19520 ;; 19521 esac 19522 19523 19524 case $ac_file$ac_mode in 19525 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19526 # Older Autoconf quotes --file arguments for eval, but not when files 19527 # are listed without --file. Let's play safe and only enable the eval 19528 # if we detect the quoting. 19529 case $CONFIG_FILES in 19530 *\'*) eval set x "$CONFIG_FILES" ;; 19531 *) set x $CONFIG_FILES ;; 19532 esac 19533 shift 19534 for mf 19535 do 19536 # Strip MF so we end up with the name of the file. 19537 mf=`echo "$mf" | sed -e 's/:.*$//'` 19538 # Check whether this is an Automake generated Makefile or not. 19539 # We used to match only the files named 'Makefile.in', but 19540 # some people rename them; so instead we look at the file content. 19541 # Grep'ing the first line is not enough: some people post-process 19542 # each Makefile.in and add a new line on top of each file to say so. 19543 # Grep'ing the whole file is not good either: AIX grep has a line 19544 # limit of 2048, but all sed's we know have understand at least 4000. 19545 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19546 dirpart=`$as_dirname -- "$mf" || 19547$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19548 X"$mf" : 'X\(//\)[^/]' \| \ 19549 X"$mf" : 'X\(//\)$' \| \ 19550 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19551$as_echo X"$mf" | 19552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19553 s//\1/ 19554 q 19555 } 19556 /^X\(\/\/\)[^/].*/{ 19557 s//\1/ 19558 q 19559 } 19560 /^X\(\/\/\)$/{ 19561 s//\1/ 19562 q 19563 } 19564 /^X\(\/\).*/{ 19565 s//\1/ 19566 q 19567 } 19568 s/.*/./; q'` 19569 else 19570 continue 19571 fi 19572 # Extract the definition of DEPDIR, am__include, and am__quote 19573 # from the Makefile without running 'make'. 19574 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19575 test -z "$DEPDIR" && continue 19576 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19577 test -z "$am__include" && continue 19578 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19579 # Find all dependency output files, they are included files with 19580 # $(DEPDIR) in their names. We invoke sed twice because it is the 19581 # simplest approach to changing $(DEPDIR) to its actual value in the 19582 # expansion. 19583 for file in `sed -n " 19584 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19585 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19586 # Make sure the directory exists. 19587 test -f "$dirpart/$file" && continue 19588 fdir=`$as_dirname -- "$file" || 19589$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19590 X"$file" : 'X\(//\)[^/]' \| \ 19591 X"$file" : 'X\(//\)$' \| \ 19592 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19593$as_echo X"$file" | 19594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19595 s//\1/ 19596 q 19597 } 19598 /^X\(\/\/\)[^/].*/{ 19599 s//\1/ 19600 q 19601 } 19602 /^X\(\/\/\)$/{ 19603 s//\1/ 19604 q 19605 } 19606 /^X\(\/\).*/{ 19607 s//\1/ 19608 q 19609 } 19610 s/.*/./; q'` 19611 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19612 # echo "creating $dirpart/$file" 19613 echo '# dummy' > "$dirpart/$file" 19614 done 19615 done 19616} 19617 ;; 19618 "libtool":C) 19619 19620 # See if we are running on zsh, and set the options which allow our 19621 # commands through without removal of \ escapes. 19622 if test -n "${ZSH_VERSION+set}" ; then 19623 setopt NO_GLOB_SUBST 19624 fi 19625 19626 cfgfile="${ofile}T" 19627 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19628 $RM "$cfgfile" 19629 19630 cat <<_LT_EOF >> "$cfgfile" 19631#! $SHELL 19632 19633# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19634# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19635# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19636# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19637# 19638# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19639# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19640# Foundation, Inc. 19641# Written by Gordon Matzigkeit, 1996 19642# 19643# This file is part of GNU Libtool. 19644# 19645# GNU Libtool is free software; you can redistribute it and/or 19646# modify it under the terms of the GNU General Public License as 19647# published by the Free Software Foundation; either version 2 of 19648# the License, or (at your option) any later version. 19649# 19650# As a special exception to the GNU General Public License, 19651# if you distribute this file as part of a program or library that 19652# is built using GNU Libtool, you may include this file under the 19653# same distribution terms that you use for the rest of that program. 19654# 19655# GNU Libtool is distributed in the hope that it will be useful, 19656# but WITHOUT ANY WARRANTY; without even the implied warranty of 19657# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19658# GNU General Public License for more details. 19659# 19660# You should have received a copy of the GNU General Public License 19661# along with GNU Libtool; see the file COPYING. If not, a copy 19662# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19663# obtained by writing to the Free Software Foundation, Inc., 19664# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19665 19666 19667# The names of the tagged configurations supported by this script. 19668available_tags="" 19669 19670# ### BEGIN LIBTOOL CONFIG 19671 19672# Which release of libtool.m4 was used? 19673macro_version=$macro_version 19674macro_revision=$macro_revision 19675 19676# Whether or not to build shared libraries. 19677build_libtool_libs=$enable_shared 19678 19679# Whether or not to build static libraries. 19680build_old_libs=$enable_static 19681 19682# What type of objects to build. 19683pic_mode=$pic_mode 19684 19685# Whether or not to optimize for fast installation. 19686fast_install=$enable_fast_install 19687 19688# Shell to use when invoking shell scripts. 19689SHELL=$lt_SHELL 19690 19691# An echo program that protects backslashes. 19692ECHO=$lt_ECHO 19693 19694# The PATH separator for the build system. 19695PATH_SEPARATOR=$lt_PATH_SEPARATOR 19696 19697# The host system. 19698host_alias=$host_alias 19699host=$host 19700host_os=$host_os 19701 19702# The build system. 19703build_alias=$build_alias 19704build=$build 19705build_os=$build_os 19706 19707# A sed program that does not truncate output. 19708SED=$lt_SED 19709 19710# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19711Xsed="\$SED -e 1s/^X//" 19712 19713# A grep program that handles long lines. 19714GREP=$lt_GREP 19715 19716# An ERE matcher. 19717EGREP=$lt_EGREP 19718 19719# A literal string matcher. 19720FGREP=$lt_FGREP 19721 19722# A BSD- or MS-compatible name lister. 19723NM=$lt_NM 19724 19725# Whether we need soft or hard links. 19726LN_S=$lt_LN_S 19727 19728# What is the maximum length of a command? 19729max_cmd_len=$max_cmd_len 19730 19731# Object file suffix (normally "o"). 19732objext=$ac_objext 19733 19734# Executable file suffix (normally ""). 19735exeext=$exeext 19736 19737# whether the shell understands "unset". 19738lt_unset=$lt_unset 19739 19740# turn spaces into newlines. 19741SP2NL=$lt_lt_SP2NL 19742 19743# turn newlines into spaces. 19744NL2SP=$lt_lt_NL2SP 19745 19746# convert \$build file names to \$host format. 19747to_host_file_cmd=$lt_cv_to_host_file_cmd 19748 19749# convert \$build files to toolchain format. 19750to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19751 19752# An object symbol dumper. 19753OBJDUMP=$lt_OBJDUMP 19754 19755# Method to check whether dependent libraries are shared objects. 19756deplibs_check_method=$lt_deplibs_check_method 19757 19758# Command to use when deplibs_check_method = "file_magic". 19759file_magic_cmd=$lt_file_magic_cmd 19760 19761# How to find potential files when deplibs_check_method = "file_magic". 19762file_magic_glob=$lt_file_magic_glob 19763 19764# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19765want_nocaseglob=$lt_want_nocaseglob 19766 19767# DLL creation program. 19768DLLTOOL=$lt_DLLTOOL 19769 19770# Command to associate shared and link libraries. 19771sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19772 19773# The archiver. 19774AR=$lt_AR 19775 19776# Flags to create an archive. 19777AR_FLAGS=$lt_AR_FLAGS 19778 19779# How to feed a file listing to the archiver. 19780archiver_list_spec=$lt_archiver_list_spec 19781 19782# A symbol stripping program. 19783STRIP=$lt_STRIP 19784 19785# Commands used to install an old-style archive. 19786RANLIB=$lt_RANLIB 19787old_postinstall_cmds=$lt_old_postinstall_cmds 19788old_postuninstall_cmds=$lt_old_postuninstall_cmds 19789 19790# Whether to use a lock for old archive extraction. 19791lock_old_archive_extraction=$lock_old_archive_extraction 19792 19793# A C compiler. 19794LTCC=$lt_CC 19795 19796# LTCC compiler flags. 19797LTCFLAGS=$lt_CFLAGS 19798 19799# Take the output of nm and produce a listing of raw symbols and C names. 19800global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19801 19802# Transform the output of nm in a proper C declaration. 19803global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19804 19805# Transform the output of nm in a C name address pair. 19806global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19807 19808# Transform the output of nm in a C name address pair when lib prefix is needed. 19809global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19810 19811# Specify filename containing input files for \$NM. 19812nm_file_list_spec=$lt_nm_file_list_spec 19813 19814# The root where to search for dependent libraries,and in which our libraries should be installed. 19815lt_sysroot=$lt_sysroot 19816 19817# The name of the directory that contains temporary libtool files. 19818objdir=$objdir 19819 19820# Used to examine libraries when file_magic_cmd begins with "file". 19821MAGIC_CMD=$MAGIC_CMD 19822 19823# Must we lock files when doing compilation? 19824need_locks=$lt_need_locks 19825 19826# Manifest tool. 19827MANIFEST_TOOL=$lt_MANIFEST_TOOL 19828 19829# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19830DSYMUTIL=$lt_DSYMUTIL 19831 19832# Tool to change global to local symbols on Mac OS X. 19833NMEDIT=$lt_NMEDIT 19834 19835# Tool to manipulate fat objects and archives on Mac OS X. 19836LIPO=$lt_LIPO 19837 19838# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19839OTOOL=$lt_OTOOL 19840 19841# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19842OTOOL64=$lt_OTOOL64 19843 19844# Old archive suffix (normally "a"). 19845libext=$libext 19846 19847# Shared library suffix (normally ".so"). 19848shrext_cmds=$lt_shrext_cmds 19849 19850# The commands to extract the exported symbol list from a shared archive. 19851extract_expsyms_cmds=$lt_extract_expsyms_cmds 19852 19853# Variables whose values should be saved in libtool wrapper scripts and 19854# restored at link time. 19855variables_saved_for_relink=$lt_variables_saved_for_relink 19856 19857# Do we need the "lib" prefix for modules? 19858need_lib_prefix=$need_lib_prefix 19859 19860# Do we need a version for libraries? 19861need_version=$need_version 19862 19863# Library versioning type. 19864version_type=$version_type 19865 19866# Shared library runtime path variable. 19867runpath_var=$runpath_var 19868 19869# Shared library path variable. 19870shlibpath_var=$shlibpath_var 19871 19872# Is shlibpath searched before the hard-coded library search path? 19873shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19874 19875# Format of library name prefix. 19876libname_spec=$lt_libname_spec 19877 19878# List of archive names. First name is the real one, the rest are links. 19879# The last name is the one that the linker finds with -lNAME 19880library_names_spec=$lt_library_names_spec 19881 19882# The coded name of the library, if different from the real name. 19883soname_spec=$lt_soname_spec 19884 19885# Permission mode override for installation of shared libraries. 19886install_override_mode=$lt_install_override_mode 19887 19888# Command to use after installation of a shared archive. 19889postinstall_cmds=$lt_postinstall_cmds 19890 19891# Command to use after uninstallation of a shared archive. 19892postuninstall_cmds=$lt_postuninstall_cmds 19893 19894# Commands used to finish a libtool library installation in a directory. 19895finish_cmds=$lt_finish_cmds 19896 19897# As "finish_cmds", except a single script fragment to be evaled but 19898# not shown. 19899finish_eval=$lt_finish_eval 19900 19901# Whether we should hardcode library paths into libraries. 19902hardcode_into_libs=$hardcode_into_libs 19903 19904# Compile-time system search path for libraries. 19905sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19906 19907# Run-time system search path for libraries. 19908sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19909 19910# Whether dlopen is supported. 19911dlopen_support=$enable_dlopen 19912 19913# Whether dlopen of programs is supported. 19914dlopen_self=$enable_dlopen_self 19915 19916# Whether dlopen of statically linked programs is supported. 19917dlopen_self_static=$enable_dlopen_self_static 19918 19919# Commands to strip libraries. 19920old_striplib=$lt_old_striplib 19921striplib=$lt_striplib 19922 19923 19924# The linker used to build libraries. 19925LD=$lt_LD 19926 19927# How to create reloadable object files. 19928reload_flag=$lt_reload_flag 19929reload_cmds=$lt_reload_cmds 19930 19931# Commands used to build an old-style archive. 19932old_archive_cmds=$lt_old_archive_cmds 19933 19934# A language specific compiler. 19935CC=$lt_compiler 19936 19937# Is the compiler the GNU compiler? 19938with_gcc=$GCC 19939 19940# Compiler flag to turn off builtin functions. 19941no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19942 19943# Additional compiler flags for building library objects. 19944pic_flag=$lt_lt_prog_compiler_pic 19945 19946# How to pass a linker flag through the compiler. 19947wl=$lt_lt_prog_compiler_wl 19948 19949# Compiler flag to prevent dynamic linking. 19950link_static_flag=$lt_lt_prog_compiler_static 19951 19952# Does compiler simultaneously support -c and -o options? 19953compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19954 19955# Whether or not to add -lc for building shared libraries. 19956build_libtool_need_lc=$archive_cmds_need_lc 19957 19958# Whether or not to disallow shared libs when runtime libs are static. 19959allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19960 19961# Compiler flag to allow reflexive dlopens. 19962export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19963 19964# Compiler flag to generate shared objects directly from archives. 19965whole_archive_flag_spec=$lt_whole_archive_flag_spec 19966 19967# Whether the compiler copes with passing no objects directly. 19968compiler_needs_object=$lt_compiler_needs_object 19969 19970# Create an old-style archive from a shared archive. 19971old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19972 19973# Create a temporary old-style archive to link instead of a shared archive. 19974old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19975 19976# Commands used to build a shared archive. 19977archive_cmds=$lt_archive_cmds 19978archive_expsym_cmds=$lt_archive_expsym_cmds 19979 19980# Commands used to build a loadable module if different from building 19981# a shared archive. 19982module_cmds=$lt_module_cmds 19983module_expsym_cmds=$lt_module_expsym_cmds 19984 19985# Whether we are building with GNU ld or not. 19986with_gnu_ld=$lt_with_gnu_ld 19987 19988# Flag that allows shared libraries with undefined symbols to be built. 19989allow_undefined_flag=$lt_allow_undefined_flag 19990 19991# Flag that enforces no undefined symbols. 19992no_undefined_flag=$lt_no_undefined_flag 19993 19994# Flag to hardcode \$libdir into a binary during linking. 19995# This must work even if \$libdir does not exist 19996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19997 19998# Whether we need a single "-rpath" flag with a separated argument. 19999hardcode_libdir_separator=$lt_hardcode_libdir_separator 20000 20001# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20002# DIR into the resulting binary. 20003hardcode_direct=$hardcode_direct 20004 20005# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20006# DIR into the resulting binary and the resulting library dependency is 20007# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20008# library is relocated. 20009hardcode_direct_absolute=$hardcode_direct_absolute 20010 20011# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20012# into the resulting binary. 20013hardcode_minus_L=$hardcode_minus_L 20014 20015# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20016# into the resulting binary. 20017hardcode_shlibpath_var=$hardcode_shlibpath_var 20018 20019# Set to "yes" if building a shared library automatically hardcodes DIR 20020# into the library and all subsequent libraries and executables linked 20021# against it. 20022hardcode_automatic=$hardcode_automatic 20023 20024# Set to yes if linker adds runtime paths of dependent libraries 20025# to runtime path list. 20026inherit_rpath=$inherit_rpath 20027 20028# Whether libtool must link a program against all its dependency libraries. 20029link_all_deplibs=$link_all_deplibs 20030 20031# Set to "yes" if exported symbols are required. 20032always_export_symbols=$always_export_symbols 20033 20034# The commands to list exported symbols. 20035export_symbols_cmds=$lt_export_symbols_cmds 20036 20037# Symbols that should not be listed in the preloaded symbols. 20038exclude_expsyms=$lt_exclude_expsyms 20039 20040# Symbols that must always be exported. 20041include_expsyms=$lt_include_expsyms 20042 20043# Commands necessary for linking programs (against libraries) with templates. 20044prelink_cmds=$lt_prelink_cmds 20045 20046# Commands necessary for finishing linking programs. 20047postlink_cmds=$lt_postlink_cmds 20048 20049# Specify filename containing input files. 20050file_list_spec=$lt_file_list_spec 20051 20052# How to hardcode a shared library path into an executable. 20053hardcode_action=$hardcode_action 20054 20055# ### END LIBTOOL CONFIG 20056 20057_LT_EOF 20058 20059 case $host_os in 20060 aix3*) 20061 cat <<\_LT_EOF >> "$cfgfile" 20062# AIX sometimes has problems with the GCC collect2 program. For some 20063# reason, if we set the COLLECT_NAMES environment variable, the problems 20064# vanish in a puff of smoke. 20065if test "X${COLLECT_NAMES+set}" != Xset; then 20066 COLLECT_NAMES= 20067 export COLLECT_NAMES 20068fi 20069_LT_EOF 20070 ;; 20071 esac 20072 20073 20074ltmain="$ac_aux_dir/ltmain.sh" 20075 20076 20077 # We use sed instead of cat because bash on DJGPP gets confused if 20078 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20079 # text mode, it properly converts lines to CR/LF. This bash problem 20080 # is reportedly fixed, but why not run on old versions too? 20081 sed '$q' "$ltmain" >> "$cfgfile" \ 20082 || (rm -f "$cfgfile"; exit 1) 20083 20084 if test x"$xsi_shell" = xyes; then 20085 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20086func_dirname ()\ 20087{\ 20088\ case ${1} in\ 20089\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20090\ * ) func_dirname_result="${3}" ;;\ 20091\ esac\ 20092} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20093 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20095test 0 -eq $? || _lt_function_replace_fail=: 20096 20097 20098 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20099func_basename ()\ 20100{\ 20101\ func_basename_result="${1##*/}"\ 20102} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20103 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20105test 0 -eq $? || _lt_function_replace_fail=: 20106 20107 20108 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20109func_dirname_and_basename ()\ 20110{\ 20111\ case ${1} in\ 20112\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20113\ * ) func_dirname_result="${3}" ;;\ 20114\ esac\ 20115\ func_basename_result="${1##*/}"\ 20116} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20117 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20118 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20119test 0 -eq $? || _lt_function_replace_fail=: 20120 20121 20122 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20123func_stripname ()\ 20124{\ 20125\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20126\ # positional parameters, so assign one to ordinary parameter first.\ 20127\ func_stripname_result=${3}\ 20128\ func_stripname_result=${func_stripname_result#"${1}"}\ 20129\ func_stripname_result=${func_stripname_result%"${2}"}\ 20130} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20131 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20133test 0 -eq $? || _lt_function_replace_fail=: 20134 20135 20136 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20137func_split_long_opt ()\ 20138{\ 20139\ func_split_long_opt_name=${1%%=*}\ 20140\ func_split_long_opt_arg=${1#*=}\ 20141} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20142 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20144test 0 -eq $? || _lt_function_replace_fail=: 20145 20146 20147 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20148func_split_short_opt ()\ 20149{\ 20150\ func_split_short_opt_arg=${1#??}\ 20151\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20152} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20153 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20155test 0 -eq $? || _lt_function_replace_fail=: 20156 20157 20158 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20159func_lo2o ()\ 20160{\ 20161\ case ${1} in\ 20162\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20163\ *) func_lo2o_result=${1} ;;\ 20164\ esac\ 20165} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20166 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20168test 0 -eq $? || _lt_function_replace_fail=: 20169 20170 20171 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20172func_xform ()\ 20173{\ 20174 func_xform_result=${1%.*}.lo\ 20175} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20176 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20178test 0 -eq $? || _lt_function_replace_fail=: 20179 20180 20181 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20182func_arith ()\ 20183{\ 20184 func_arith_result=$(( $* ))\ 20185} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20186 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20188test 0 -eq $? || _lt_function_replace_fail=: 20189 20190 20191 sed -e '/^func_len ()$/,/^} # func_len /c\ 20192func_len ()\ 20193{\ 20194 func_len_result=${#1}\ 20195} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20196 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20197 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20198test 0 -eq $? || _lt_function_replace_fail=: 20199 20200fi 20201 20202if test x"$lt_shell_append" = xyes; then 20203 sed -e '/^func_append ()$/,/^} # func_append /c\ 20204func_append ()\ 20205{\ 20206 eval "${1}+=\\${2}"\ 20207} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20208 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20210test 0 -eq $? || _lt_function_replace_fail=: 20211 20212 20213 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20214func_append_quoted ()\ 20215{\ 20216\ func_quote_for_eval "${2}"\ 20217\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20218} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20219 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20221test 0 -eq $? || _lt_function_replace_fail=: 20222 20223 20224 # Save a `func_append' function call where possible by direct use of '+=' 20225 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20226 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20228 test 0 -eq $? || _lt_function_replace_fail=: 20229else 20230 # Save a `func_append' function call even when '+=' is not available 20231 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20232 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20234 test 0 -eq $? || _lt_function_replace_fail=: 20235fi 20236 20237if test x"$_lt_function_replace_fail" = x":"; then 20238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20239$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20240fi 20241 20242 20243 mv -f "$cfgfile" "$ofile" || 20244 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20245 chmod +x "$ofile" 20246 20247 ;; 20248 20249 esac 20250done # for ac_tag 20251 20252 20253as_fn_exit 0 20254_ACEOF 20255ac_clean_files=$ac_clean_files_save 20256 20257test $ac_write_fail = 0 || 20258 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20259 20260 20261# configure is writing to config.log, and then calls config.status. 20262# config.status does its own redirection, appending to config.log. 20263# Unfortunately, on DOS this fails, as config.log is still kept open 20264# by configure, so config.status won't be able to write to it; its 20265# output is simply discarded. So we exec the FD to /dev/null, 20266# effectively closing config.log, so it can be properly (re)opened and 20267# appended to by config.status. When coming back to configure, we 20268# need to make the FD available again. 20269if test "$no_create" != yes; then 20270 ac_cs_success=: 20271 ac_config_status_args= 20272 test "$silent" = yes && 20273 ac_config_status_args="$ac_config_status_args --quiet" 20274 exec 5>/dev/null 20275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20276 exec 5>>config.log 20277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20278 # would make configure fail if this is the last instruction. 20279 $ac_cs_success || as_fn_exit 1 20280fi 20281if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20283$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20284fi 20285 20286