configure revision e5383a99
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXext 1.3.3. 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 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 629' 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='libXext' 653PACKAGE_TARNAME='libXext' 654PACKAGE_VERSION='1.3.3' 655PACKAGE_STRING='libXext 1.3.3' 656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 657PACKAGE_URL='' 658 659ac_unique_file="Makefile.am" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_subst_vars='am__EXEEXT_FALSE 697am__EXEEXT_TRUE 698LTLIBOBJS 699LIBOBJS 700MAKE_LINT_LIB_FALSE 701MAKE_LINT_LIB_TRUE 702LINTLIB 703LINT_FALSE 704LINT_TRUE 705LINT_FLAGS 706LINT 707XEXT_LIBS 708XEXT_CFLAGS 709XEXT_SOREV 710XTMALLOC_ZERO_CFLAGS 711XMALLOC_ZERO_CFLAGS 712MALLOC_ZERO_CFLAGS 713HAVE_STYLESHEETS_FALSE 714HAVE_STYLESHEETS_TRUE 715XSL_STYLESHEET 716STYLESHEET_SRCDIR 717XORG_SGML_PATH 718HAVE_XSLTPROC_FALSE 719HAVE_XSLTPROC_TRUE 720XSLTPROC 721HAVE_FOP_FALSE 722HAVE_FOP_TRUE 723FOP 724HAVE_XMLTO_FALSE 725HAVE_XMLTO_TRUE 726HAVE_XMLTO_TEXT_FALSE 727HAVE_XMLTO_TEXT_TRUE 728XMLTO 729ENABLE_SPECS_FALSE 730ENABLE_SPECS_TRUE 731MAN_SUBSTS 732XORG_MAN_PAGE 733ADMIN_MAN_DIR 734DRIVER_MAN_DIR 735MISC_MAN_DIR 736FILE_MAN_DIR 737LIB_MAN_DIR 738APP_MAN_DIR 739ADMIN_MAN_SUFFIX 740DRIVER_MAN_SUFFIX 741MISC_MAN_SUFFIX 742FILE_MAN_SUFFIX 743LIB_MAN_SUFFIX 744APP_MAN_SUFFIX 745INSTALL_CMD 746PKG_CONFIG_LIBDIR 747PKG_CONFIG_PATH 748PKG_CONFIG 749CHANGELOG_CMD 750STRICT_CFLAGS 751CWARNFLAGS 752BASE_CFLAGS 753CPP 754OTOOL64 755OTOOL 756LIPO 757NMEDIT 758DSYMUTIL 759MANIFEST_TOOL 760RANLIB 761ac_ct_AR 762AR 763DLLTOOL 764OBJDUMP 765LN_S 766NM 767ac_ct_DUMPBIN 768DUMPBIN 769LD 770FGREP 771EGREP 772GREP 773SED 774am__fastdepCC_FALSE 775am__fastdepCC_TRUE 776CCDEPMODE 777am__nodep 778AMDEPBACKSLASH 779AMDEP_FALSE 780AMDEP_TRUE 781am__quote 782am__include 783DEPDIR 784OBJEXT 785EXEEXT 786ac_ct_CC 787CPPFLAGS 788LDFLAGS 789CFLAGS 790CC 791host_os 792host_vendor 793host_cpu 794host 795build_os 796build_vendor 797build_cpu 798build 799LIBTOOL 800AM_BACKSLASH 801AM_DEFAULT_VERBOSITY 802AM_DEFAULT_V 803AM_V 804am__untar 805am__tar 806AMTAR 807am__leading_dot 808SET_MAKE 809AWK 810mkdir_p 811MKDIR_P 812INSTALL_STRIP_PROGRAM 813STRIP 814install_sh 815MAKEINFO 816AUTOHEADER 817AUTOMAKE 818AUTOCONF 819ACLOCAL 820VERSION 821PACKAGE 822CYGPATH_W 823am__isrc 824INSTALL_DATA 825INSTALL_SCRIPT 826INSTALL_PROGRAM 827target_alias 828host_alias 829build_alias 830LIBS 831ECHO_T 832ECHO_N 833ECHO_C 834DEFS 835mandir 836localedir 837libdir 838psdir 839pdfdir 840dvidir 841htmldir 842infodir 843docdir 844oldincludedir 845includedir 846localstatedir 847sharedstatedir 848sysconfdir 849datadir 850datarootdir 851libexecdir 852sbindir 853bindir 854program_transform_name 855prefix 856exec_prefix 857PACKAGE_URL 858PACKAGE_BUGREPORT 859PACKAGE_STRING 860PACKAGE_VERSION 861PACKAGE_TARNAME 862PACKAGE_NAME 863PATH_SEPARATOR 864SHELL' 865ac_subst_files='' 866ac_user_opts=' 867enable_option_checking 868enable_silent_rules 869enable_shared 870enable_static 871with_pic 872enable_fast_install 873enable_dependency_tracking 874with_gnu_ld 875with_sysroot 876enable_libtool_lock 877enable_selective_werror 878enable_strict_compilation 879enable_specs 880with_xmlto 881with_fop 882with_xsltproc 883enable_malloc0returnsnull 884with_lint 885enable_lint_library 886' 887 ac_precious_vars='build_alias 888host_alias 889target_alias 890CC 891CFLAGS 892LDFLAGS 893LIBS 894CPPFLAGS 895CPP 896PKG_CONFIG 897PKG_CONFIG_PATH 898PKG_CONFIG_LIBDIR 899XMLTO 900FOP 901XSLTPROC 902XEXT_CFLAGS 903XEXT_LIBS 904LINT 905LINT_FLAGS' 906 907 908# Initialize some variables set by options. 909ac_init_help= 910ac_init_version=false 911ac_unrecognized_opts= 912ac_unrecognized_sep= 913# The variables have the same names as the options, with 914# dashes changed to underlines. 915cache_file=/dev/null 916exec_prefix=NONE 917no_create= 918no_recursion= 919prefix=NONE 920program_prefix=NONE 921program_suffix=NONE 922program_transform_name=s,x,x, 923silent= 924site= 925srcdir= 926verbose= 927x_includes=NONE 928x_libraries=NONE 929 930# Installation directory options. 931# These are left unexpanded so users can "make install exec_prefix=/foo" 932# and all the variables that are supposed to be based on exec_prefix 933# by default will actually change. 934# Use braces instead of parens because sh, perl, etc. also accept them. 935# (The list follows the same order as the GNU Coding Standards.) 936bindir='${exec_prefix}/bin' 937sbindir='${exec_prefix}/sbin' 938libexecdir='${exec_prefix}/libexec' 939datarootdir='${prefix}/share' 940datadir='${datarootdir}' 941sysconfdir='${prefix}/etc' 942sharedstatedir='${prefix}/com' 943localstatedir='${prefix}/var' 944includedir='${prefix}/include' 945oldincludedir='/usr/include' 946docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 947infodir='${datarootdir}/info' 948htmldir='${docdir}' 949dvidir='${docdir}' 950pdfdir='${docdir}' 951psdir='${docdir}' 952libdir='${exec_prefix}/lib' 953localedir='${datarootdir}/locale' 954mandir='${datarootdir}/man' 955 956ac_prev= 957ac_dashdash= 958for ac_option 959do 960 # If the previous option needs an argument, assign it. 961 if test -n "$ac_prev"; then 962 eval $ac_prev=\$ac_option 963 ac_prev= 964 continue 965 fi 966 967 case $ac_option in 968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 969 *=) ac_optarg= ;; 970 *) ac_optarg=yes ;; 971 esac 972 973 # Accept the important Cygnus configure options, so we can diagnose typos. 974 975 case $ac_dashdash$ac_option in 976 --) 977 ac_dashdash=yes ;; 978 979 -bindir | --bindir | --bindi | --bind | --bin | --bi) 980 ac_prev=bindir ;; 981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 982 bindir=$ac_optarg ;; 983 984 -build | --build | --buil | --bui | --bu) 985 ac_prev=build_alias ;; 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 987 build_alias=$ac_optarg ;; 988 989 -cache-file | --cache-file | --cache-fil | --cache-fi \ 990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 991 ac_prev=cache_file ;; 992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 994 cache_file=$ac_optarg ;; 995 996 --config-cache | -C) 997 cache_file=config.cache ;; 998 999 -datadir | --datadir | --datadi | --datad) 1000 ac_prev=datadir ;; 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1002 datadir=$ac_optarg ;; 1003 1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1005 | --dataroo | --dataro | --datar) 1006 ac_prev=datarootdir ;; 1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1009 datarootdir=$ac_optarg ;; 1010 1011 -disable-* | --disable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error $? "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=no ;; 1026 1027 -docdir | --docdir | --docdi | --doc | --do) 1028 ac_prev=docdir ;; 1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1030 docdir=$ac_optarg ;; 1031 1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1033 ac_prev=dvidir ;; 1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1035 dvidir=$ac_optarg ;; 1036 1037 -enable-* | --enable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 as_fn_error $? "invalid feature name: $ac_useropt" 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=\$ac_optarg ;; 1052 1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1055 | --exec | --exe | --ex) 1056 ac_prev=exec_prefix ;; 1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1059 | --exec=* | --exe=* | --ex=*) 1060 exec_prefix=$ac_optarg ;; 1061 1062 -gas | --gas | --ga | --g) 1063 # Obsolete; use --with-gas. 1064 with_gas=yes ;; 1065 1066 -help | --help | --hel | --he | -h) 1067 ac_init_help=long ;; 1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1069 ac_init_help=recursive ;; 1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1071 ac_init_help=short ;; 1072 1073 -host | --host | --hos | --ho) 1074 ac_prev=host_alias ;; 1075 -host=* | --host=* | --hos=* | --ho=*) 1076 host_alias=$ac_optarg ;; 1077 1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1079 ac_prev=htmldir ;; 1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1081 | --ht=*) 1082 htmldir=$ac_optarg ;; 1083 1084 -includedir | --includedir | --includedi | --included | --include \ 1085 | --includ | --inclu | --incl | --inc) 1086 ac_prev=includedir ;; 1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1088 | --includ=* | --inclu=* | --incl=* | --inc=*) 1089 includedir=$ac_optarg ;; 1090 1091 -infodir | --infodir | --infodi | --infod | --info | --inf) 1092 ac_prev=infodir ;; 1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1094 infodir=$ac_optarg ;; 1095 1096 -libdir | --libdir | --libdi | --libd) 1097 ac_prev=libdir ;; 1098 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1099 libdir=$ac_optarg ;; 1100 1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1102 | --libexe | --libex | --libe) 1103 ac_prev=libexecdir ;; 1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1105 | --libexe=* | --libex=* | --libe=*) 1106 libexecdir=$ac_optarg ;; 1107 1108 -localedir | --localedir | --localedi | --localed | --locale) 1109 ac_prev=localedir ;; 1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1111 localedir=$ac_optarg ;; 1112 1113 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1114 | --localstate | --localstat | --localsta | --localst | --locals) 1115 ac_prev=localstatedir ;; 1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1118 localstatedir=$ac_optarg ;; 1119 1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1121 ac_prev=mandir ;; 1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1123 mandir=$ac_optarg ;; 1124 1125 -nfp | --nfp | --nf) 1126 # Obsolete; use --without-fp. 1127 with_fp=no ;; 1128 1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1130 | --no-cr | --no-c | -n) 1131 no_create=yes ;; 1132 1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1135 no_recursion=yes ;; 1136 1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1139 | --oldin | --oldi | --old | --ol | --o) 1140 ac_prev=oldincludedir ;; 1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1144 oldincludedir=$ac_optarg ;; 1145 1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1147 ac_prev=prefix ;; 1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1149 prefix=$ac_optarg ;; 1150 1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1152 | --program-pre | --program-pr | --program-p) 1153 ac_prev=program_prefix ;; 1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1156 program_prefix=$ac_optarg ;; 1157 1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1159 | --program-suf | --program-su | --program-s) 1160 ac_prev=program_suffix ;; 1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1163 program_suffix=$ac_optarg ;; 1164 1165 -program-transform-name | --program-transform-name \ 1166 | --program-transform-nam | --program-transform-na \ 1167 | --program-transform-n | --program-transform- \ 1168 | --program-transform | --program-transfor \ 1169 | --program-transfo | --program-transf \ 1170 | --program-trans | --program-tran \ 1171 | --progr-tra | --program-tr | --program-t) 1172 ac_prev=program_transform_name ;; 1173 -program-transform-name=* | --program-transform-name=* \ 1174 | --program-transform-nam=* | --program-transform-na=* \ 1175 | --program-transform-n=* | --program-transform-=* \ 1176 | --program-transform=* | --program-transfor=* \ 1177 | --program-transfo=* | --program-transf=* \ 1178 | --program-trans=* | --program-tran=* \ 1179 | --progr-tra=* | --program-tr=* | --program-t=*) 1180 program_transform_name=$ac_optarg ;; 1181 1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1183 ac_prev=pdfdir ;; 1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1185 pdfdir=$ac_optarg ;; 1186 1187 -psdir | --psdir | --psdi | --psd | --ps) 1188 ac_prev=psdir ;; 1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1190 psdir=$ac_optarg ;; 1191 1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1193 | -silent | --silent | --silen | --sile | --sil) 1194 silent=yes ;; 1195 1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1197 ac_prev=sbindir ;; 1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1199 | --sbi=* | --sb=*) 1200 sbindir=$ac_optarg ;; 1201 1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1204 | --sharedst | --shareds | --shared | --share | --shar \ 1205 | --sha | --sh) 1206 ac_prev=sharedstatedir ;; 1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1210 | --sha=* | --sh=*) 1211 sharedstatedir=$ac_optarg ;; 1212 1213 -site | --site | --sit) 1214 ac_prev=site ;; 1215 -site=* | --site=* | --sit=*) 1216 site=$ac_optarg ;; 1217 1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1219 ac_prev=srcdir ;; 1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1221 srcdir=$ac_optarg ;; 1222 1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1224 | --syscon | --sysco | --sysc | --sys | --sy) 1225 ac_prev=sysconfdir ;; 1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1228 sysconfdir=$ac_optarg ;; 1229 1230 -target | --target | --targe | --targ | --tar | --ta | --t) 1231 ac_prev=target_alias ;; 1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1233 target_alias=$ac_optarg ;; 1234 1235 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1236 verbose=yes ;; 1237 1238 -version | --version | --versio | --versi | --vers | -V) 1239 ac_init_version=: ;; 1240 1241 -with-* | --with-*) 1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1243 # Reject names that are not valid shell variable names. 1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1245 as_fn_error $? "invalid package name: $ac_useropt" 1246 ac_useropt_orig=$ac_useropt 1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1248 case $ac_user_opts in 1249 *" 1250"with_$ac_useropt" 1251"*) ;; 1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1253 ac_unrecognized_sep=', ';; 1254 esac 1255 eval with_$ac_useropt=\$ac_optarg ;; 1256 1257 -without-* | --without-*) 1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1261 as_fn_error $? "invalid package name: $ac_useropt" 1262 ac_useropt_orig=$ac_useropt 1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1264 case $ac_user_opts in 1265 *" 1266"with_$ac_useropt" 1267"*) ;; 1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1269 ac_unrecognized_sep=', ';; 1270 esac 1271 eval with_$ac_useropt=no ;; 1272 1273 --x) 1274 # Obsolete; use --with-x. 1275 with_x=yes ;; 1276 1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1278 | --x-incl | --x-inc | --x-in | --x-i) 1279 ac_prev=x_includes ;; 1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1282 x_includes=$ac_optarg ;; 1283 1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1286 ac_prev=x_libraries ;; 1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1289 x_libraries=$ac_optarg ;; 1290 1291 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1292Try \`$0 --help' for more information" 1293 ;; 1294 1295 *=*) 1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1297 # Reject names that are not valid shell variable names. 1298 case $ac_envvar in #( 1299 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1301 esac 1302 eval $ac_envvar=\$ac_optarg 1303 export $ac_envvar ;; 1304 1305 *) 1306 # FIXME: should be removed in autoconf 3.0. 1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1311 ;; 1312 1313 esac 1314done 1315 1316if test -n "$ac_prev"; then 1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1318 as_fn_error $? "missing argument to $ac_option" 1319fi 1320 1321if test -n "$ac_unrecognized_opts"; then 1322 case $enable_option_checking in 1323 no) ;; 1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1326 esac 1327fi 1328 1329# Check all directory arguments for consistency. 1330for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1331 datadir sysconfdir sharedstatedir localstatedir includedir \ 1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1333 libdir localedir mandir 1334do 1335 eval ac_val=\$$ac_var 1336 # Remove trailing slashes. 1337 case $ac_val in 1338 */ ) 1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1340 eval $ac_var=\$ac_val;; 1341 esac 1342 # Be sure to have absolute directory names. 1343 case $ac_val in 1344 [\\/$]* | ?:[\\/]* ) continue;; 1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1346 esac 1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1348done 1349 1350# There might be people who depend on the old broken behavior: `$host' 1351# used to hold the argument of --host etc. 1352# FIXME: To remove some day. 1353build=$build_alias 1354host=$host_alias 1355target=$target_alias 1356 1357# FIXME: To remove some day. 1358if test "x$host_alias" != x; then 1359 if test "x$build_alias" = x; then 1360 cross_compiling=maybe 1361 elif test "x$build_alias" != "x$host_alias"; then 1362 cross_compiling=yes 1363 fi 1364fi 1365 1366ac_tool_prefix= 1367test -n "$host_alias" && ac_tool_prefix=$host_alias- 1368 1369test "$silent" = yes && exec 6>/dev/null 1370 1371 1372ac_pwd=`pwd` && test -n "$ac_pwd" && 1373ac_ls_di=`ls -di .` && 1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1375 as_fn_error $? "working directory cannot be determined" 1376test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1377 as_fn_error $? "pwd does not report name of working directory" 1378 1379 1380# Find the source files, if location was not specified. 1381if test -z "$srcdir"; then 1382 ac_srcdir_defaulted=yes 1383 # Try the directory containing this script, then the parent directory. 1384 ac_confdir=`$as_dirname -- "$as_myself" || 1385$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1386 X"$as_myself" : 'X\(//\)[^/]' \| \ 1387 X"$as_myself" : 'X\(//\)$' \| \ 1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1389$as_echo X"$as_myself" | 1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\/\)[^/].*/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)$/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\).*/{ 1403 s//\1/ 1404 q 1405 } 1406 s/.*/./; q'` 1407 srcdir=$ac_confdir 1408 if test ! -r "$srcdir/$ac_unique_file"; then 1409 srcdir=.. 1410 fi 1411else 1412 ac_srcdir_defaulted=no 1413fi 1414if test ! -r "$srcdir/$ac_unique_file"; then 1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1417fi 1418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1419ac_abs_confdir=`( 1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1421 pwd)` 1422# When building in place, set srcdir=. 1423if test "$ac_abs_confdir" = "$ac_pwd"; then 1424 srcdir=. 1425fi 1426# Remove unnecessary trailing slashes from srcdir. 1427# Double slashes in file names in object file debugging info 1428# mess up M-x gdb in Emacs. 1429case $srcdir in 1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1431esac 1432for ac_var in $ac_precious_vars; do 1433 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1434 eval ac_env_${ac_var}_value=\$${ac_var} 1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1436 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1437done 1438 1439# 1440# Report the --help message. 1441# 1442if test "$ac_init_help" = "long"; then 1443 # Omit some internal or obsolete options to make the list less imposing. 1444 # This message is too long to be a string in the A/UX 3.1 sh. 1445 cat <<_ACEOF 1446\`configure' configures libXext 1.3.3 to adapt to many kinds of systems. 1447 1448Usage: $0 [OPTION]... [VAR=VALUE]... 1449 1450To assign environment variables (e.g., CC, CFLAGS...), specify them as 1451VAR=VALUE. See below for descriptions of some of the useful variables. 1452 1453Defaults for the options are specified in brackets. 1454 1455Configuration: 1456 -h, --help display this help and exit 1457 --help=short display options specific to this package 1458 --help=recursive display the short help of all the included packages 1459 -V, --version display version information and exit 1460 -q, --quiet, --silent do not print \`checking ...' messages 1461 --cache-file=FILE cache test results in FILE [disabled] 1462 -C, --config-cache alias for \`--cache-file=config.cache' 1463 -n, --no-create do not create output files 1464 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1465 1466Installation directories: 1467 --prefix=PREFIX install architecture-independent files in PREFIX 1468 [$ac_default_prefix] 1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1470 [PREFIX] 1471 1472By default, \`make install' will install all the files in 1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1474an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1475for instance \`--prefix=\$HOME'. 1476 1477For better control, use the options below. 1478 1479Fine tuning of the installation directories: 1480 --bindir=DIR user executables [EPREFIX/bin] 1481 --sbindir=DIR system admin executables [EPREFIX/sbin] 1482 --libexecdir=DIR program executables [EPREFIX/libexec] 1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1486 --libdir=DIR object code libraries [EPREFIX/lib] 1487 --includedir=DIR C header files [PREFIX/include] 1488 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1491 --infodir=DIR info documentation [DATAROOTDIR/info] 1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1493 --mandir=DIR man documentation [DATAROOTDIR/man] 1494 --docdir=DIR documentation root [DATAROOTDIR/doc/libXext] 1495 --htmldir=DIR html documentation [DOCDIR] 1496 --dvidir=DIR dvi documentation [DOCDIR] 1497 --pdfdir=DIR pdf documentation [DOCDIR] 1498 --psdir=DIR ps documentation [DOCDIR] 1499_ACEOF 1500 1501 cat <<\_ACEOF 1502 1503Program names: 1504 --program-prefix=PREFIX prepend PREFIX to installed program names 1505 --program-suffix=SUFFIX append SUFFIX to installed program names 1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1507 1508System types: 1509 --build=BUILD configure for building on BUILD [guessed] 1510 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1511_ACEOF 1512fi 1513 1514if test -n "$ac_init_help"; then 1515 case $ac_init_help in 1516 short | recursive ) echo "Configuration of libXext 1.3.3:";; 1517 esac 1518 cat <<\_ACEOF 1519 1520Optional Features: 1521 --disable-option-checking ignore unrecognized --enable/--with options 1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1524 --enable-silent-rules less verbose build output (undo: "make V=1") 1525 --disable-silent-rules verbose build output (undo: "make V=0") 1526 --enable-shared[=PKGS] build shared libraries [default=yes] 1527 --enable-static[=PKGS] build static libraries [default=yes] 1528 --enable-fast-install[=PKGS] 1529 optimize for fast installation [default=yes] 1530 --enable-dependency-tracking 1531 do not reject slow dependency extractors 1532 --disable-dependency-tracking 1533 speeds up one-time build 1534 --disable-libtool-lock avoid locking (might break parallel builds) 1535 --disable-selective-werror 1536 Turn off selective compiler errors. (default: 1537 enabled) 1538 --enable-strict-compilation 1539 Enable all warnings from compiler and make them 1540 errors (default: disabled) 1541 --enable-specs Enable building the specs (default: yes) 1542 --enable-malloc0returnsnull 1543 malloc(0) returns NULL (default: auto) 1544 --enable-lint-library Create lint library (default: disabled) 1545 1546Optional Packages: 1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1549 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1550 both] 1551 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1552 --with-sysroot=DIR Search for dependent libraries within DIR 1553 (or the compiler's sysroot if not specified). 1554 --with-xmlto Use xmlto to regenerate documentation (default: 1555 auto) 1556 --with-fop Use fop to regenerate documentation (default: auto) 1557 --with-xsltproc Use xsltproc for the transformation of XML documents 1558 (default: auto) 1559 --with-lint Use a lint-style source code checker (default: 1560 disabled) 1561 1562Some influential environment variables: 1563 CC C compiler command 1564 CFLAGS C compiler flags 1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1566 nonstandard directory <lib dir> 1567 LIBS libraries to pass to the linker, e.g. -l<library> 1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1569 you have headers in a nonstandard directory <include dir> 1570 CPP C preprocessor 1571 PKG_CONFIG path to pkg-config utility 1572 PKG_CONFIG_PATH 1573 directories to add to pkg-config's search path 1574 PKG_CONFIG_LIBDIR 1575 path overriding pkg-config's built-in search path 1576 XMLTO Path to xmlto command 1577 FOP Path to fop command 1578 XSLTPROC Path to xsltproc command 1579 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1580 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1581 LINT Path to a lint-style command 1582 LINT_FLAGS Flags for the lint-style command 1583 1584Use these variables to override the choices made by `configure' or to help 1585it to find libraries and programs with nonstandard names/locations. 1586 1587Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1588_ACEOF 1589ac_status=$? 1590fi 1591 1592if test "$ac_init_help" = "recursive"; then 1593 # If there are subdirs, report their specific --help. 1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1595 test -d "$ac_dir" || 1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1597 continue 1598 ac_builddir=. 1599 1600case "$ac_dir" in 1601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1602*) 1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1604 # A ".." for each directory in $ac_dir_suffix. 1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1606 case $ac_top_builddir_sub in 1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1609 esac ;; 1610esac 1611ac_abs_top_builddir=$ac_pwd 1612ac_abs_builddir=$ac_pwd$ac_dir_suffix 1613# for backward compatibility: 1614ac_top_builddir=$ac_top_build_prefix 1615 1616case $srcdir in 1617 .) # We are building in place. 1618 ac_srcdir=. 1619 ac_top_srcdir=$ac_top_builddir_sub 1620 ac_abs_top_srcdir=$ac_pwd ;; 1621 [\\/]* | ?:[\\/]* ) # Absolute name. 1622 ac_srcdir=$srcdir$ac_dir_suffix; 1623 ac_top_srcdir=$srcdir 1624 ac_abs_top_srcdir=$srcdir ;; 1625 *) # Relative name. 1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1627 ac_top_srcdir=$ac_top_build_prefix$srcdir 1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1629esac 1630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1631 1632 cd "$ac_dir" || { ac_status=$?; continue; } 1633 # Check for guested configure. 1634 if test -f "$ac_srcdir/configure.gnu"; then 1635 echo && 1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1637 elif test -f "$ac_srcdir/configure"; then 1638 echo && 1639 $SHELL "$ac_srcdir/configure" --help=recursive 1640 else 1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1642 fi || ac_status=$? 1643 cd "$ac_pwd" || { ac_status=$?; break; } 1644 done 1645fi 1646 1647test -n "$ac_init_help" && exit $ac_status 1648if $ac_init_version; then 1649 cat <<\_ACEOF 1650libXext configure 1.3.3 1651generated by GNU Autoconf 2.69 1652 1653Copyright (C) 2012 Free Software Foundation, Inc. 1654This configure script is free software; the Free Software Foundation 1655gives unlimited permission to copy, distribute and modify it. 1656_ACEOF 1657 exit 1658fi 1659 1660## ------------------------ ## 1661## Autoconf initialization. ## 1662## ------------------------ ## 1663 1664# ac_fn_c_try_compile LINENO 1665# -------------------------- 1666# Try to compile conftest.$ac_ext, and return whether this succeeded. 1667ac_fn_c_try_compile () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 rm -f conftest.$ac_objext 1671 if { { ac_try="$ac_compile" 1672case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675esac 1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677$as_echo "$ac_try_echo"; } >&5 1678 (eval "$ac_compile") 2>conftest.err 1679 ac_status=$? 1680 if test -s conftest.err; then 1681 grep -v '^ *+' conftest.err >conftest.er1 1682 cat conftest.er1 >&5 1683 mv -f conftest.er1 conftest.err 1684 fi 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; } && { 1687 test -z "$ac_c_werror_flag" || 1688 test ! -s conftest.err 1689 } && test -s conftest.$ac_objext; then : 1690 ac_retval=0 1691else 1692 $as_echo "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 1696fi 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 as_fn_set_status $ac_retval 1699 1700} # ac_fn_c_try_compile 1701 1702# ac_fn_c_try_link LINENO 1703# ----------------------- 1704# Try to link conftest.$ac_ext, and return whether this succeeded. 1705ac_fn_c_try_link () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 rm -f conftest.$ac_objext conftest$ac_exeext 1709 if { { ac_try="$ac_link" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_link") 2>conftest.err 1717 ac_status=$? 1718 if test -s conftest.err; then 1719 grep -v '^ *+' conftest.err >conftest.er1 1720 cat conftest.er1 >&5 1721 mv -f conftest.er1 conftest.err 1722 fi 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { 1725 test -z "$ac_c_werror_flag" || 1726 test ! -s conftest.err 1727 } && test -s conftest$ac_exeext && { 1728 test "$cross_compiling" = yes || 1729 test -x conftest$ac_exeext 1730 }; then : 1731 ac_retval=0 1732else 1733 $as_echo "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737fi 1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1740 # interfere with the next link command; also delete a directory that is 1741 # left behind by Apple's compiler. We do this before executing the actions. 1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 as_fn_set_status $ac_retval 1745 1746} # ac_fn_c_try_link 1747 1748# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1749# ------------------------------------------------------- 1750# Tests whether HEADER exists and can be compiled using the include files in 1751# INCLUDES, setting the cache variable VAR accordingly. 1752ac_fn_c_check_header_compile () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1756$as_echo_n "checking for $2... " >&6; } 1757if eval \${$3+:} false; then : 1758 $as_echo_n "(cached) " >&6 1759else 1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1761/* end confdefs.h. */ 1762$4 1763#include <$2> 1764_ACEOF 1765if ac_fn_c_try_compile "$LINENO"; then : 1766 eval "$3=yes" 1767else 1768 eval "$3=no" 1769fi 1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1771fi 1772eval ac_res=\$$3 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774$as_echo "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_header_compile 1778 1779# ac_fn_c_try_cpp LINENO 1780# ---------------------- 1781# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1782ac_fn_c_try_cpp () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 if { { ac_try="$ac_cpp conftest.$ac_ext" 1786case "(($ac_try" in 1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1788 *) ac_try_echo=$ac_try;; 1789esac 1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1791$as_echo "$ac_try_echo"; } >&5 1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1793 ac_status=$? 1794 if test -s conftest.err; then 1795 grep -v '^ *+' conftest.err >conftest.er1 1796 cat conftest.er1 >&5 1797 mv -f conftest.er1 conftest.err 1798 fi 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; } > conftest.i && { 1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1802 test ! -s conftest.err 1803 }; then : 1804 ac_retval=0 1805else 1806 $as_echo "$as_me: failed program was:" >&5 1807sed 's/^/| /' conftest.$ac_ext >&5 1808 1809 ac_retval=1 1810fi 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 as_fn_set_status $ac_retval 1813 1814} # ac_fn_c_try_cpp 1815 1816# ac_fn_c_try_run LINENO 1817# ---------------------- 1818# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1819# that executables *can* be run. 1820ac_fn_c_try_run () 1821{ 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 if { { ac_try="$ac_link" 1824case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827esac 1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829$as_echo "$ac_try_echo"; } >&5 1830 (eval "$ac_link") 2>&5 1831 ac_status=$? 1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1834 { { case "(($ac_try" in 1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836 *) ac_try_echo=$ac_try;; 1837esac 1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839$as_echo "$ac_try_echo"; } >&5 1840 (eval "$ac_try") 2>&5 1841 ac_status=$? 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; }; }; then : 1844 ac_retval=0 1845else 1846 $as_echo "$as_me: program exited with status $ac_status" >&5 1847 $as_echo "$as_me: failed program was:" >&5 1848sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=$ac_status 1851fi 1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 as_fn_set_status $ac_retval 1855 1856} # ac_fn_c_try_run 1857 1858# ac_fn_c_check_func LINENO FUNC VAR 1859# ---------------------------------- 1860# Tests whether FUNC exists, setting the cache variable VAR accordingly 1861ac_fn_c_check_func () 1862{ 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865$as_echo_n "checking for $2... " >&6; } 1866if eval \${$3+:} false; then : 1867 $as_echo_n "(cached) " >&6 1868else 1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870/* end confdefs.h. */ 1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1873#define $2 innocuous_$2 1874 1875/* System header to define __stub macros and hopefully few prototypes, 1876 which can conflict with char $2 (); below. 1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1878 <limits.h> exists even on freestanding compilers. */ 1879 1880#ifdef __STDC__ 1881# include <limits.h> 1882#else 1883# include <assert.h> 1884#endif 1885 1886#undef $2 1887 1888/* Override any GCC internal prototype to avoid an error. 1889 Use char because int might match the return type of a GCC 1890 builtin and then its argument prototype would still apply. */ 1891#ifdef __cplusplus 1892extern "C" 1893#endif 1894char $2 (); 1895/* The GNU C library defines this for functions which it implements 1896 to always fail with ENOSYS. Some functions are actually named 1897 something starting with __ and the normal name is an alias. */ 1898#if defined __stub_$2 || defined __stub___$2 1899choke me 1900#endif 1901 1902int 1903main () 1904{ 1905return $2 (); 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910if ac_fn_c_try_link "$LINENO"; then : 1911 eval "$3=yes" 1912else 1913 eval "$3=no" 1914fi 1915rm -f core conftest.err conftest.$ac_objext \ 1916 conftest$ac_exeext conftest.$ac_ext 1917fi 1918eval ac_res=\$$3 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920$as_echo "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_c_check_func 1924 1925# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1926# --------------------------------------------- 1927# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1928# accordingly. 1929ac_fn_c_check_decl () 1930{ 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 as_decl_name=`echo $2|sed 's/ *(.*//'` 1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1935$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1936if eval \${$3+:} false; then : 1937 $as_echo_n "(cached) " >&6 1938else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941$4 1942int 1943main () 1944{ 1945#ifndef $as_decl_name 1946#ifdef __cplusplus 1947 (void) $as_decl_use; 1948#else 1949 (void) $as_decl_name; 1950#endif 1951#endif 1952 1953 ; 1954 return 0; 1955} 1956_ACEOF 1957if ac_fn_c_try_compile "$LINENO"; then : 1958 eval "$3=yes" 1959else 1960 eval "$3=no" 1961fi 1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1963fi 1964eval ac_res=\$$3 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966$as_echo "$ac_res" >&6; } 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1968 1969} # ac_fn_c_check_decl 1970cat >config.log <<_ACEOF 1971This file contains any messages produced by compilers while 1972running configure, to aid debugging if configure makes a mistake. 1973 1974It was created by libXext $as_me 1.3.3, which was 1975generated by GNU Autoconf 2.69. Invocation command line was 1976 1977 $ $0 $@ 1978 1979_ACEOF 1980exec 5>>config.log 1981{ 1982cat <<_ASUNAME 1983## --------- ## 1984## Platform. ## 1985## --------- ## 1986 1987hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1988uname -m = `(uname -m) 2>/dev/null || echo unknown` 1989uname -r = `(uname -r) 2>/dev/null || echo unknown` 1990uname -s = `(uname -s) 2>/dev/null || echo unknown` 1991uname -v = `(uname -v) 2>/dev/null || echo unknown` 1992 1993/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1994/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1995 1996/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1997/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1998/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1999/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2000/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2001/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2002/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2003 2004_ASUNAME 2005 2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2007for as_dir in $PATH 2008do 2009 IFS=$as_save_IFS 2010 test -z "$as_dir" && as_dir=. 2011 $as_echo "PATH: $as_dir" 2012 done 2013IFS=$as_save_IFS 2014 2015} >&5 2016 2017cat >&5 <<_ACEOF 2018 2019 2020## ----------- ## 2021## Core tests. ## 2022## ----------- ## 2023 2024_ACEOF 2025 2026 2027# Keep a trace of the command line. 2028# Strip out --no-create and --no-recursion so they do not pile up. 2029# Strip out --silent because we don't want to record it for future runs. 2030# Also quote any args containing shell meta-characters. 2031# Make two passes to allow for proper duplicate-argument suppression. 2032ac_configure_args= 2033ac_configure_args0= 2034ac_configure_args1= 2035ac_must_keep_next=false 2036for ac_pass in 1 2 2037do 2038 for ac_arg 2039 do 2040 case $ac_arg in 2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2043 | -silent | --silent | --silen | --sile | --sil) 2044 continue ;; 2045 *\'*) 2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2047 esac 2048 case $ac_pass in 2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2050 2) 2051 as_fn_append ac_configure_args1 " '$ac_arg'" 2052 if test $ac_must_keep_next = true; then 2053 ac_must_keep_next=false # Got value, back to normal. 2054 else 2055 case $ac_arg in 2056 *=* | --config-cache | -C | -disable-* | --disable-* \ 2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2059 | -with-* | --with-* | -without-* | --without-* | --x) 2060 case "$ac_configure_args0 " in 2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2062 esac 2063 ;; 2064 -* ) ac_must_keep_next=true ;; 2065 esac 2066 fi 2067 as_fn_append ac_configure_args " '$ac_arg'" 2068 ;; 2069 esac 2070 done 2071done 2072{ ac_configure_args0=; unset ac_configure_args0;} 2073{ ac_configure_args1=; unset ac_configure_args1;} 2074 2075# When interrupted or exit'd, cleanup temporary files, and complete 2076# config.log. We remove comments because anyway the quotes in there 2077# would cause problems or look ugly. 2078# WARNING: Use '\'' to represent an apostrophe within the trap. 2079# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2080trap 'exit_status=$? 2081 # Save into config.log some information that might help in debugging. 2082 { 2083 echo 2084 2085 $as_echo "## ---------------- ## 2086## Cache variables. ## 2087## ---------------- ##" 2088 echo 2089 # The following way of writing the cache mishandles newlines in values, 2090( 2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2092 eval ac_val=\$$ac_var 2093 case $ac_val in #( 2094 *${as_nl}*) 2095 case $ac_var in #( 2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2098 esac 2099 case $ac_var in #( 2100 _ | IFS | as_nl) ;; #( 2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2102 *) { eval $ac_var=; unset $ac_var;} ;; 2103 esac ;; 2104 esac 2105 done 2106 (set) 2>&1 | 2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2108 *${as_nl}ac_space=\ *) 2109 sed -n \ 2110 "s/'\''/'\''\\\\'\'''\''/g; 2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2112 ;; #( 2113 *) 2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2115 ;; 2116 esac | 2117 sort 2118) 2119 echo 2120 2121 $as_echo "## ----------------- ## 2122## Output variables. ## 2123## ----------------- ##" 2124 echo 2125 for ac_var in $ac_subst_vars 2126 do 2127 eval ac_val=\$$ac_var 2128 case $ac_val in 2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2130 esac 2131 $as_echo "$ac_var='\''$ac_val'\''" 2132 done | sort 2133 echo 2134 2135 if test -n "$ac_subst_files"; then 2136 $as_echo "## ------------------- ## 2137## File substitutions. ## 2138## ------------------- ##" 2139 echo 2140 for ac_var in $ac_subst_files 2141 do 2142 eval ac_val=\$$ac_var 2143 case $ac_val in 2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2145 esac 2146 $as_echo "$ac_var='\''$ac_val'\''" 2147 done | sort 2148 echo 2149 fi 2150 2151 if test -s confdefs.h; then 2152 $as_echo "## ----------- ## 2153## confdefs.h. ## 2154## ----------- ##" 2155 echo 2156 cat confdefs.h 2157 echo 2158 fi 2159 test "$ac_signal" != 0 && 2160 $as_echo "$as_me: caught signal $ac_signal" 2161 $as_echo "$as_me: exit $exit_status" 2162 } >&5 2163 rm -f core *.core core.conftest.* && 2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2165 exit $exit_status 2166' 0 2167for ac_signal in 1 2 13 15; do 2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2169done 2170ac_signal=0 2171 2172# confdefs.h avoids OS command line length limits that DEFS can exceed. 2173rm -f -r conftest* confdefs.h 2174 2175$as_echo "/* confdefs.h */" > confdefs.h 2176 2177# Predefined preprocessor variables. 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_NAME "$PACKAGE_NAME" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_VERSION "$PACKAGE_VERSION" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_STRING "$PACKAGE_STRING" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_URL "$PACKAGE_URL" 2201_ACEOF 2202 2203 2204# Let the site file select an alternate cache file if it wants to. 2205# Prefer an explicitly selected file to automatically selected ones. 2206ac_site_file1=NONE 2207ac_site_file2=NONE 2208if test -n "$CONFIG_SITE"; then 2209 # We do not want a PATH search for config.site. 2210 case $CONFIG_SITE in #(( 2211 -*) ac_site_file1=./$CONFIG_SITE;; 2212 */*) ac_site_file1=$CONFIG_SITE;; 2213 *) ac_site_file1=./$CONFIG_SITE;; 2214 esac 2215elif test "x$prefix" != xNONE; then 2216 ac_site_file1=$prefix/share/config.site 2217 ac_site_file2=$prefix/etc/config.site 2218else 2219 ac_site_file1=$ac_default_prefix/share/config.site 2220 ac_site_file2=$ac_default_prefix/etc/config.site 2221fi 2222for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2223do 2224 test "x$ac_site_file" = xNONE && continue 2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2227$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2228 sed 's/^/| /' "$ac_site_file" >&5 2229 . "$ac_site_file" \ 2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2232as_fn_error $? "failed to load site script $ac_site_file 2233See \`config.log' for more details" "$LINENO" 5; } 2234 fi 2235done 2236 2237if test -r "$cache_file"; then 2238 # Some versions of bash will fail to source /dev/null (special files 2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2242$as_echo "$as_me: loading cache $cache_file" >&6;} 2243 case $cache_file in 2244 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2245 *) . "./$cache_file";; 2246 esac 2247 fi 2248else 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2250$as_echo "$as_me: creating cache $cache_file" >&6;} 2251 >$cache_file 2252fi 2253 2254# Check that the precious variables saved in the cache have kept the same 2255# value. 2256ac_cache_corrupted=false 2257for ac_var in $ac_precious_vars; do 2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2259 eval ac_new_set=\$ac_env_${ac_var}_set 2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2261 eval ac_new_val=\$ac_env_${ac_var}_value 2262 case $ac_old_set,$ac_new_set in 2263 set,) 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2265$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2266 ac_cache_corrupted=: ;; 2267 ,set) 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2269$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2270 ac_cache_corrupted=: ;; 2271 ,);; 2272 *) 2273 if test "x$ac_old_val" != "x$ac_new_val"; then 2274 # differences in whitespace do not lead to failure. 2275 ac_old_val_w=`echo x $ac_old_val` 2276 ac_new_val_w=`echo x $ac_new_val` 2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2279$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2280 ac_cache_corrupted=: 2281 else 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2283$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2284 eval $ac_var=\$ac_old_val 2285 fi 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2287$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2289$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2290 fi;; 2291 esac 2292 # Pass precious variables to config.status. 2293 if test "$ac_new_set" = set; then 2294 case $ac_new_val in 2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2296 *) ac_arg=$ac_var=$ac_new_val ;; 2297 esac 2298 case " $ac_configure_args " in 2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2301 esac 2302 fi 2303done 2304if $ac_cache_corrupted; then 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2308$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2309 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2310fi 2311## -------------------- ## 2312## Main body of script. ## 2313## -------------------- ## 2314 2315ac_ext=c 2316ac_cpp='$CPP $CPPFLAGS' 2317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2319ac_compiler_gnu=$ac_cv_c_compiler_gnu 2320 2321 2322 2323ac_config_headers="$ac_config_headers config.h" 2324 2325 2326# Initialize Automake 2327am__api_version='1.13' 2328 2329ac_aux_dir= 2330for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2331 if test -f "$ac_dir/install-sh"; then 2332 ac_aux_dir=$ac_dir 2333 ac_install_sh="$ac_aux_dir/install-sh -c" 2334 break 2335 elif test -f "$ac_dir/install.sh"; then 2336 ac_aux_dir=$ac_dir 2337 ac_install_sh="$ac_aux_dir/install.sh -c" 2338 break 2339 elif test -f "$ac_dir/shtool"; then 2340 ac_aux_dir=$ac_dir 2341 ac_install_sh="$ac_aux_dir/shtool install -c" 2342 break 2343 fi 2344done 2345if test -z "$ac_aux_dir"; then 2346 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2347fi 2348 2349# These three variables are undocumented and unsupported, 2350# and are intended to be withdrawn in a future Autoconf release. 2351# They can cause serious problems if a builder's source tree is in a directory 2352# whose full name contains unusual characters. 2353ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2354ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2355ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2356 2357 2358# Find a good install program. We prefer a C program (faster), 2359# so one script is as good as another. But avoid the broken or 2360# incompatible versions: 2361# SysV /etc/install, /usr/sbin/install 2362# SunOS /usr/etc/install 2363# IRIX /sbin/install 2364# AIX /bin/install 2365# AmigaOS /C/install, which installs bootblocks on floppy discs 2366# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2367# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2368# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2369# OS/2's system install, which has a completely different semantic 2370# ./install, which can be erroneously created by make from ./install.sh. 2371# Reject install programs that cannot install multiple files. 2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2373$as_echo_n "checking for a BSD-compatible install... " >&6; } 2374if test -z "$INSTALL"; then 2375if ${ac_cv_path_install+:} false; then : 2376 $as_echo_n "(cached) " >&6 2377else 2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2379for as_dir in $PATH 2380do 2381 IFS=$as_save_IFS 2382 test -z "$as_dir" && as_dir=. 2383 # Account for people who put trailing slashes in PATH elements. 2384case $as_dir/ in #(( 2385 ./ | .// | /[cC]/* | \ 2386 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2387 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2388 /usr/ucb/* ) ;; 2389 *) 2390 # OSF1 and SCO ODT 3.0 have their own names for install. 2391 # Don't use installbsd from OSF since it installs stuff as root 2392 # by default. 2393 for ac_prog in ginstall scoinst install; do 2394 for ac_exec_ext in '' $ac_executable_extensions; do 2395 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2396 if test $ac_prog = install && 2397 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2398 # AIX install. It has an incompatible calling convention. 2399 : 2400 elif test $ac_prog = install && 2401 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2402 # program-specific install script used by HP pwplus--don't use. 2403 : 2404 else 2405 rm -rf conftest.one conftest.two conftest.dir 2406 echo one > conftest.one 2407 echo two > conftest.two 2408 mkdir conftest.dir 2409 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2410 test -s conftest.one && test -s conftest.two && 2411 test -s conftest.dir/conftest.one && 2412 test -s conftest.dir/conftest.two 2413 then 2414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2415 break 3 2416 fi 2417 fi 2418 fi 2419 done 2420 done 2421 ;; 2422esac 2423 2424 done 2425IFS=$as_save_IFS 2426 2427rm -rf conftest.one conftest.two conftest.dir 2428 2429fi 2430 if test "${ac_cv_path_install+set}" = set; then 2431 INSTALL=$ac_cv_path_install 2432 else 2433 # As a last resort, use the slow shell script. Don't cache a 2434 # value for INSTALL within a source directory, because that will 2435 # break other packages using the cache if that directory is 2436 # removed, or if the value is a relative name. 2437 INSTALL=$ac_install_sh 2438 fi 2439fi 2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2441$as_echo "$INSTALL" >&6; } 2442 2443# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2444# It thinks the first close brace ends the variable substitution. 2445test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2446 2447test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2448 2449test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2450 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2452$as_echo_n "checking whether build environment is sane... " >&6; } 2453# Reject unsafe characters in $srcdir or the absolute working directory 2454# name. Accept space and tab only in the latter. 2455am_lf=' 2456' 2457case `pwd` in 2458 *[\\\"\#\$\&\'\`$am_lf]*) 2459 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2460esac 2461case $srcdir in 2462 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2463 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2464esac 2465 2466# Do 'set' in a subshell so we don't clobber the current shell's 2467# arguments. Must try -L first in case configure is actually a 2468# symlink; some systems play weird games with the mod time of symlinks 2469# (eg FreeBSD returns the mod time of the symlink's containing 2470# directory). 2471if ( 2472 am_has_slept=no 2473 for am_try in 1 2; do 2474 echo "timestamp, slept: $am_has_slept" > conftest.file 2475 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2476 if test "$*" = "X"; then 2477 # -L didn't work. 2478 set X `ls -t "$srcdir/configure" conftest.file` 2479 fi 2480 if test "$*" != "X $srcdir/configure conftest.file" \ 2481 && test "$*" != "X conftest.file $srcdir/configure"; then 2482 2483 # If neither matched, then we have a broken ls. This can happen 2484 # if, for instance, CONFIG_SHELL is bash and it inherits a 2485 # broken ls alias from the environment. This has actually 2486 # happened. Such a system could not be considered "sane". 2487 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2488 alias in your environment" "$LINENO" 5 2489 fi 2490 if test "$2" = conftest.file || test $am_try -eq 2; then 2491 break 2492 fi 2493 # Just in case. 2494 sleep 1 2495 am_has_slept=yes 2496 done 2497 test "$2" = conftest.file 2498 ) 2499then 2500 # Ok. 2501 : 2502else 2503 as_fn_error $? "newly created file is older than distributed files! 2504Check your system clock" "$LINENO" 5 2505fi 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2507$as_echo "yes" >&6; } 2508# If we didn't sleep, we still need to ensure time stamps of config.status and 2509# generated files are strictly newer. 2510am_sleep_pid= 2511if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2512 ( sleep 1 ) & 2513 am_sleep_pid=$! 2514fi 2515 2516rm -f conftest.file 2517 2518test "$program_prefix" != NONE && 2519 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2520# Use a double $ so make ignores it. 2521test "$program_suffix" != NONE && 2522 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2523# Double any \ or $. 2524# By default was `s,x,x', remove it if useless. 2525ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2526program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2527 2528# expand $ac_aux_dir to an absolute path 2529am_aux_dir=`cd $ac_aux_dir && pwd` 2530 2531if test x"${MISSING+set}" != xset; then 2532 case $am_aux_dir in 2533 *\ * | *\ *) 2534 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2535 *) 2536 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2537 esac 2538fi 2539# Use eval to expand $SHELL 2540if eval "$MISSING --is-lightweight"; then 2541 am_missing_run="$MISSING " 2542else 2543 am_missing_run= 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2545$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2546fi 2547 2548if test x"${install_sh}" != xset; then 2549 case $am_aux_dir in 2550 *\ * | *\ *) 2551 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2552 *) 2553 install_sh="\${SHELL} $am_aux_dir/install-sh" 2554 esac 2555fi 2556 2557# Installed binaries are usually stripped using 'strip' when the user 2558# run "make install-strip". However 'strip' might not be the right 2559# tool to use in cross-compilation environments, therefore Automake 2560# will honor the 'STRIP' environment variable to overrule this program. 2561if test "$cross_compiling" != no; then 2562 if test -n "$ac_tool_prefix"; then 2563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2564set dummy ${ac_tool_prefix}strip; ac_word=$2 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2566$as_echo_n "checking for $ac_word... " >&6; } 2567if ${ac_cv_prog_STRIP+:} false; then : 2568 $as_echo_n "(cached) " >&6 2569else 2570 if test -n "$STRIP"; then 2571 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2572else 2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2574for as_dir in $PATH 2575do 2576 IFS=$as_save_IFS 2577 test -z "$as_dir" && as_dir=. 2578 for ac_exec_ext in '' $ac_executable_extensions; do 2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2580 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2582 break 2 2583 fi 2584done 2585 done 2586IFS=$as_save_IFS 2587 2588fi 2589fi 2590STRIP=$ac_cv_prog_STRIP 2591if test -n "$STRIP"; then 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2593$as_echo "$STRIP" >&6; } 2594else 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2596$as_echo "no" >&6; } 2597fi 2598 2599 2600fi 2601if test -z "$ac_cv_prog_STRIP"; then 2602 ac_ct_STRIP=$STRIP 2603 # Extract the first word of "strip", so it can be a program name with args. 2604set dummy strip; ac_word=$2 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2606$as_echo_n "checking for $ac_word... " >&6; } 2607if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2608 $as_echo_n "(cached) " >&6 2609else 2610 if test -n "$ac_ct_STRIP"; then 2611 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2612else 2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2614for as_dir in $PATH 2615do 2616 IFS=$as_save_IFS 2617 test -z "$as_dir" && as_dir=. 2618 for ac_exec_ext in '' $ac_executable_extensions; do 2619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2620 ac_cv_prog_ac_ct_STRIP="strip" 2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2622 break 2 2623 fi 2624done 2625 done 2626IFS=$as_save_IFS 2627 2628fi 2629fi 2630ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2631if test -n "$ac_ct_STRIP"; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2633$as_echo "$ac_ct_STRIP" >&6; } 2634else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2636$as_echo "no" >&6; } 2637fi 2638 2639 if test "x$ac_ct_STRIP" = x; then 2640 STRIP=":" 2641 else 2642 case $cross_compiling:$ac_tool_warned in 2643yes:) 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2646ac_tool_warned=yes ;; 2647esac 2648 STRIP=$ac_ct_STRIP 2649 fi 2650else 2651 STRIP="$ac_cv_prog_STRIP" 2652fi 2653 2654fi 2655INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2656 2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2658$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2659if test -z "$MKDIR_P"; then 2660 if ${ac_cv_path_mkdir+:} false; then : 2661 $as_echo_n "(cached) " >&6 2662else 2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2664for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2665do 2666 IFS=$as_save_IFS 2667 test -z "$as_dir" && as_dir=. 2668 for ac_prog in mkdir gmkdir; do 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2671 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2672 'mkdir (GNU coreutils) '* | \ 2673 'mkdir (coreutils) '* | \ 2674 'mkdir (fileutils) '4.1*) 2675 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2676 break 3;; 2677 esac 2678 done 2679 done 2680 done 2681IFS=$as_save_IFS 2682 2683fi 2684 2685 test -d ./--version && rmdir ./--version 2686 if test "${ac_cv_path_mkdir+set}" = set; then 2687 MKDIR_P="$ac_cv_path_mkdir -p" 2688 else 2689 # As a last resort, use the slow shell script. Don't cache a 2690 # value for MKDIR_P within a source directory, because that will 2691 # break other packages using the cache if that directory is 2692 # removed, or if the value is a relative name. 2693 MKDIR_P="$ac_install_sh -d" 2694 fi 2695fi 2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2697$as_echo "$MKDIR_P" >&6; } 2698 2699for ac_prog in gawk mawk nawk awk 2700do 2701 # Extract the first word of "$ac_prog", so it can be a program name with args. 2702set dummy $ac_prog; ac_word=$2 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2704$as_echo_n "checking for $ac_word... " >&6; } 2705if ${ac_cv_prog_AWK+:} false; then : 2706 $as_echo_n "(cached) " >&6 2707else 2708 if test -n "$AWK"; then 2709 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2710else 2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2712for as_dir in $PATH 2713do 2714 IFS=$as_save_IFS 2715 test -z "$as_dir" && as_dir=. 2716 for ac_exec_ext in '' $ac_executable_extensions; do 2717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2718 ac_cv_prog_AWK="$ac_prog" 2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2720 break 2 2721 fi 2722done 2723 done 2724IFS=$as_save_IFS 2725 2726fi 2727fi 2728AWK=$ac_cv_prog_AWK 2729if test -n "$AWK"; then 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2731$as_echo "$AWK" >&6; } 2732else 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2734$as_echo "no" >&6; } 2735fi 2736 2737 2738 test -n "$AWK" && break 2739done 2740 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2742$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2743set x ${MAKE-make} 2744ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2745if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2746 $as_echo_n "(cached) " >&6 2747else 2748 cat >conftest.make <<\_ACEOF 2749SHELL = /bin/sh 2750all: 2751 @echo '@@@%%%=$(MAKE)=@@@%%%' 2752_ACEOF 2753# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2754case `${MAKE-make} -f conftest.make 2>/dev/null` in 2755 *@@@%%%=?*=@@@%%%*) 2756 eval ac_cv_prog_make_${ac_make}_set=yes;; 2757 *) 2758 eval ac_cv_prog_make_${ac_make}_set=no;; 2759esac 2760rm -f conftest.make 2761fi 2762if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2764$as_echo "yes" >&6; } 2765 SET_MAKE= 2766else 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2768$as_echo "no" >&6; } 2769 SET_MAKE="MAKE=${MAKE-make}" 2770fi 2771 2772rm -rf .tst 2>/dev/null 2773mkdir .tst 2>/dev/null 2774if test -d .tst; then 2775 am__leading_dot=. 2776else 2777 am__leading_dot=_ 2778fi 2779rmdir .tst 2>/dev/null 2780 2781# Check whether --enable-silent-rules was given. 2782if test "${enable_silent_rules+set}" = set; then : 2783 enableval=$enable_silent_rules; 2784fi 2785 2786case $enable_silent_rules in # ((( 2787 yes) AM_DEFAULT_VERBOSITY=0;; 2788 no) AM_DEFAULT_VERBOSITY=1;; 2789 *) AM_DEFAULT_VERBOSITY=1;; 2790esac 2791am_make=${MAKE-make} 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2793$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2794if ${am_cv_make_support_nested_variables+:} false; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 if $as_echo 'TRUE=$(BAR$(V)) 2798BAR0=false 2799BAR1=true 2800V=1 2801am__doit: 2802 @$(TRUE) 2803.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2804 am_cv_make_support_nested_variables=yes 2805else 2806 am_cv_make_support_nested_variables=no 2807fi 2808fi 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2810$as_echo "$am_cv_make_support_nested_variables" >&6; } 2811if test $am_cv_make_support_nested_variables = yes; then 2812 AM_V='$(V)' 2813 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2814else 2815 AM_V=$AM_DEFAULT_VERBOSITY 2816 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2817fi 2818AM_BACKSLASH='\' 2819 2820if test "`cd $srcdir && pwd`" != "`pwd`"; then 2821 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2822 # is not polluted with repeated "-I." 2823 am__isrc=' -I$(srcdir)' 2824 # test to see if srcdir already configured 2825 if test -f $srcdir/config.status; then 2826 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2827 fi 2828fi 2829 2830# test whether we have cygpath 2831if test -z "$CYGPATH_W"; then 2832 if (cygpath --version) >/dev/null 2>/dev/null; then 2833 CYGPATH_W='cygpath -w' 2834 else 2835 CYGPATH_W=echo 2836 fi 2837fi 2838 2839 2840# Define the identity of the package. 2841 PACKAGE='libXext' 2842 VERSION='1.3.3' 2843 2844 2845cat >>confdefs.h <<_ACEOF 2846#define PACKAGE "$PACKAGE" 2847_ACEOF 2848 2849 2850cat >>confdefs.h <<_ACEOF 2851#define VERSION "$VERSION" 2852_ACEOF 2853 2854# Some tools Automake needs. 2855 2856ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2857 2858 2859AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2860 2861 2862AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2863 2864 2865AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2866 2867 2868MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2869 2870# For better backward compatibility. To be removed once Automake 1.9.x 2871# dies out for good. For more background, see: 2872# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2873# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2874mkdir_p='$(MKDIR_P)' 2875 2876# We need awk for the "check" target. The system "awk" is bad on 2877# some platforms. 2878# Always define AMTAR for backward compatibility. Yes, it's still used 2879# in the wild :-( We should find a proper way to deprecate it ... 2880AMTAR='$${TAR-tar}' 2881 2882 2883# We'll loop over all known methods to create a tar archive until one works. 2884_am_tools='gnutar pax cpio none' 2885 2886am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2887 2888 2889 2890 2891 2892 2893 2894# Initialize libtool 2895case `pwd` in 2896 *\ * | *\ *) 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2898$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2899esac 2900 2901 2902 2903macro_version='2.4.2' 2904macro_revision='1.3337' 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918ltmain="$ac_aux_dir/ltmain.sh" 2919 2920# Make sure we can run config.sub. 2921$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2922 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2923 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2925$as_echo_n "checking build system type... " >&6; } 2926if ${ac_cv_build+:} false; then : 2927 $as_echo_n "(cached) " >&6 2928else 2929 ac_build_alias=$build_alias 2930test "x$ac_build_alias" = x && 2931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2932test "x$ac_build_alias" = x && 2933 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2934ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2935 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2936 2937fi 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2939$as_echo "$ac_cv_build" >&6; } 2940case $ac_cv_build in 2941*-*-*) ;; 2942*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2943esac 2944build=$ac_cv_build 2945ac_save_IFS=$IFS; IFS='-' 2946set x $ac_cv_build 2947shift 2948build_cpu=$1 2949build_vendor=$2 2950shift; shift 2951# Remember, the first character of IFS is used to create $*, 2952# except with old shells: 2953build_os=$* 2954IFS=$ac_save_IFS 2955case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2956 2957 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2959$as_echo_n "checking host system type... " >&6; } 2960if ${ac_cv_host+:} false; then : 2961 $as_echo_n "(cached) " >&6 2962else 2963 if test "x$host_alias" = x; then 2964 ac_cv_host=$ac_cv_build 2965else 2966 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2967 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2968fi 2969 2970fi 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2972$as_echo "$ac_cv_host" >&6; } 2973case $ac_cv_host in 2974*-*-*) ;; 2975*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2976esac 2977host=$ac_cv_host 2978ac_save_IFS=$IFS; IFS='-' 2979set x $ac_cv_host 2980shift 2981host_cpu=$1 2982host_vendor=$2 2983shift; shift 2984# Remember, the first character of IFS is used to create $*, 2985# except with old shells: 2986host_os=$* 2987IFS=$ac_save_IFS 2988case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2989 2990 2991# Backslashify metacharacters that are still active within 2992# double-quoted strings. 2993sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2994 2995# Same as above, but do not quote variable references. 2996double_quote_subst='s/\(["`\\]\)/\\\1/g' 2997 2998# Sed substitution to delay expansion of an escaped shell variable in a 2999# double_quote_subst'ed string. 3000delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3001 3002# Sed substitution to delay expansion of an escaped single quote. 3003delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3004 3005# Sed substitution to avoid accidental globbing in evaled expressions 3006no_glob_subst='s/\*/\\\*/g' 3007 3008ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3009ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3010ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3011 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3013$as_echo_n "checking how to print strings... " >&6; } 3014# Test print first, because it will be a builtin if present. 3015if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3016 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3017 ECHO='print -r --' 3018elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3019 ECHO='printf %s\n' 3020else 3021 # Use this function as a fallback that always works. 3022 func_fallback_echo () 3023 { 3024 eval 'cat <<_LTECHO_EOF 3025$1 3026_LTECHO_EOF' 3027 } 3028 ECHO='func_fallback_echo' 3029fi 3030 3031# func_echo_all arg... 3032# Invoke $ECHO with all args, space-separated. 3033func_echo_all () 3034{ 3035 $ECHO "" 3036} 3037 3038case "$ECHO" in 3039 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3040$as_echo "printf" >&6; } ;; 3041 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3042$as_echo "print -r" >&6; } ;; 3043 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3044$as_echo "cat" >&6; } ;; 3045esac 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060DEPDIR="${am__leading_dot}deps" 3061 3062ac_config_commands="$ac_config_commands depfiles" 3063 3064 3065am_make=${MAKE-make} 3066cat > confinc << 'END' 3067am__doit: 3068 @echo this is the am__doit target 3069.PHONY: am__doit 3070END 3071# If we don't find an include directive, just comment out the code. 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3073$as_echo_n "checking for style of include used by $am_make... " >&6; } 3074am__include="#" 3075am__quote= 3076_am_result=none 3077# First try GNU make style include. 3078echo "include confinc" > confmf 3079# Ignore all kinds of additional output from 'make'. 3080case `$am_make -s -f confmf 2> /dev/null` in #( 3081*the\ am__doit\ target*) 3082 am__include=include 3083 am__quote= 3084 _am_result=GNU 3085 ;; 3086esac 3087# Now try BSD make style include. 3088if test "$am__include" = "#"; then 3089 echo '.include "confinc"' > confmf 3090 case `$am_make -s -f confmf 2> /dev/null` in #( 3091 *the\ am__doit\ target*) 3092 am__include=.include 3093 am__quote="\"" 3094 _am_result=BSD 3095 ;; 3096 esac 3097fi 3098 3099 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3101$as_echo "$_am_result" >&6; } 3102rm -f confinc confmf 3103 3104# Check whether --enable-dependency-tracking was given. 3105if test "${enable_dependency_tracking+set}" = set; then : 3106 enableval=$enable_dependency_tracking; 3107fi 3108 3109if test "x$enable_dependency_tracking" != xno; then 3110 am_depcomp="$ac_aux_dir/depcomp" 3111 AMDEPBACKSLASH='\' 3112 am__nodep='_no' 3113fi 3114 if test "x$enable_dependency_tracking" != xno; then 3115 AMDEP_TRUE= 3116 AMDEP_FALSE='#' 3117else 3118 AMDEP_TRUE='#' 3119 AMDEP_FALSE= 3120fi 3121 3122 3123ac_ext=c 3124ac_cpp='$CPP $CPPFLAGS' 3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3127ac_compiler_gnu=$ac_cv_c_compiler_gnu 3128if test -n "$ac_tool_prefix"; then 3129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3130set dummy ${ac_tool_prefix}gcc; ac_word=$2 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3132$as_echo_n "checking for $ac_word... " >&6; } 3133if ${ac_cv_prog_CC+:} false; then : 3134 $as_echo_n "(cached) " >&6 3135else 3136 if test -n "$CC"; then 3137 ac_cv_prog_CC="$CC" # Let the user override the test. 3138else 3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3140for as_dir in $PATH 3141do 3142 IFS=$as_save_IFS 3143 test -z "$as_dir" && as_dir=. 3144 for ac_exec_ext in '' $ac_executable_extensions; do 3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3146 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3148 break 2 3149 fi 3150done 3151 done 3152IFS=$as_save_IFS 3153 3154fi 3155fi 3156CC=$ac_cv_prog_CC 3157if test -n "$CC"; then 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3159$as_echo "$CC" >&6; } 3160else 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162$as_echo "no" >&6; } 3163fi 3164 3165 3166fi 3167if test -z "$ac_cv_prog_CC"; then 3168 ac_ct_CC=$CC 3169 # Extract the first word of "gcc", so it can be a program name with args. 3170set dummy gcc; ac_word=$2 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3172$as_echo_n "checking for $ac_word... " >&6; } 3173if ${ac_cv_prog_ac_ct_CC+:} false; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 if test -n "$ac_ct_CC"; then 3177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3178else 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3186 ac_cv_prog_ac_ct_CC="gcc" 3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3188 break 2 3189 fi 3190done 3191 done 3192IFS=$as_save_IFS 3193 3194fi 3195fi 3196ac_ct_CC=$ac_cv_prog_ac_ct_CC 3197if test -n "$ac_ct_CC"; then 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3199$as_echo "$ac_ct_CC" >&6; } 3200else 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3202$as_echo "no" >&6; } 3203fi 3204 3205 if test "x$ac_ct_CC" = x; then 3206 CC="" 3207 else 3208 case $cross_compiling:$ac_tool_warned in 3209yes:) 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3212ac_tool_warned=yes ;; 3213esac 3214 CC=$ac_ct_CC 3215 fi 3216else 3217 CC="$ac_cv_prog_CC" 3218fi 3219 3220if test -z "$CC"; then 3221 if test -n "$ac_tool_prefix"; then 3222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3223set dummy ${ac_tool_prefix}cc; ac_word=$2 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3225$as_echo_n "checking for $ac_word... " >&6; } 3226if ${ac_cv_prog_CC+:} false; then : 3227 $as_echo_n "(cached) " >&6 3228else 3229 if test -n "$CC"; then 3230 ac_cv_prog_CC="$CC" # Let the user override the test. 3231else 3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3233for as_dir in $PATH 3234do 3235 IFS=$as_save_IFS 3236 test -z "$as_dir" && as_dir=. 3237 for ac_exec_ext in '' $ac_executable_extensions; do 3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3239 ac_cv_prog_CC="${ac_tool_prefix}cc" 3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3241 break 2 3242 fi 3243done 3244 done 3245IFS=$as_save_IFS 3246 3247fi 3248fi 3249CC=$ac_cv_prog_CC 3250if test -n "$CC"; then 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3252$as_echo "$CC" >&6; } 3253else 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3255$as_echo "no" >&6; } 3256fi 3257 3258 3259 fi 3260fi 3261if test -z "$CC"; then 3262 # Extract the first word of "cc", so it can be a program name with args. 3263set dummy cc; ac_word=$2 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3265$as_echo_n "checking for $ac_word... " >&6; } 3266if ${ac_cv_prog_CC+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 if test -n "$CC"; then 3270 ac_cv_prog_CC="$CC" # Let the user override the test. 3271else 3272 ac_prog_rejected=no 3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3274for as_dir in $PATH 3275do 3276 IFS=$as_save_IFS 3277 test -z "$as_dir" && as_dir=. 3278 for ac_exec_ext in '' $ac_executable_extensions; do 3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3281 ac_prog_rejected=yes 3282 continue 3283 fi 3284 ac_cv_prog_CC="cc" 3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3286 break 2 3287 fi 3288done 3289 done 3290IFS=$as_save_IFS 3291 3292if test $ac_prog_rejected = yes; then 3293 # We found a bogon in the path, so make sure we never use it. 3294 set dummy $ac_cv_prog_CC 3295 shift 3296 if test $# != 0; then 3297 # We chose a different compiler from the bogus one. 3298 # However, it has the same basename, so the bogon will be chosen 3299 # first if we set CC to just the basename; use the full file name. 3300 shift 3301 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3302 fi 3303fi 3304fi 3305fi 3306CC=$ac_cv_prog_CC 3307if test -n "$CC"; then 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3309$as_echo "$CC" >&6; } 3310else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3312$as_echo "no" >&6; } 3313fi 3314 3315 3316fi 3317if test -z "$CC"; then 3318 if test -n "$ac_tool_prefix"; then 3319 for ac_prog in cl.exe 3320 do 3321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3322set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3324$as_echo_n "checking for $ac_word... " >&6; } 3325if ${ac_cv_prog_CC+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 if test -n "$CC"; then 3329 ac_cv_prog_CC="$CC" # Let the user override the test. 3330else 3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3332for as_dir in $PATH 3333do 3334 IFS=$as_save_IFS 3335 test -z "$as_dir" && as_dir=. 3336 for ac_exec_ext in '' $ac_executable_extensions; do 3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3338 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3340 break 2 3341 fi 3342done 3343 done 3344IFS=$as_save_IFS 3345 3346fi 3347fi 3348CC=$ac_cv_prog_CC 3349if test -n "$CC"; then 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3351$as_echo "$CC" >&6; } 3352else 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3354$as_echo "no" >&6; } 3355fi 3356 3357 3358 test -n "$CC" && break 3359 done 3360fi 3361if test -z "$CC"; then 3362 ac_ct_CC=$CC 3363 for ac_prog in cl.exe 3364do 3365 # Extract the first word of "$ac_prog", so it can be a program name with args. 3366set dummy $ac_prog; ac_word=$2 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3368$as_echo_n "checking for $ac_word... " >&6; } 3369if ${ac_cv_prog_ac_ct_CC+:} false; then : 3370 $as_echo_n "(cached) " >&6 3371else 3372 if test -n "$ac_ct_CC"; then 3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3374else 3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3376for as_dir in $PATH 3377do 3378 IFS=$as_save_IFS 3379 test -z "$as_dir" && as_dir=. 3380 for ac_exec_ext in '' $ac_executable_extensions; do 3381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3382 ac_cv_prog_ac_ct_CC="$ac_prog" 3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3384 break 2 3385 fi 3386done 3387 done 3388IFS=$as_save_IFS 3389 3390fi 3391fi 3392ac_ct_CC=$ac_cv_prog_ac_ct_CC 3393if test -n "$ac_ct_CC"; then 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3395$as_echo "$ac_ct_CC" >&6; } 3396else 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3398$as_echo "no" >&6; } 3399fi 3400 3401 3402 test -n "$ac_ct_CC" && break 3403done 3404 3405 if test "x$ac_ct_CC" = x; then 3406 CC="" 3407 else 3408 case $cross_compiling:$ac_tool_warned in 3409yes:) 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3412ac_tool_warned=yes ;; 3413esac 3414 CC=$ac_ct_CC 3415 fi 3416fi 3417 3418fi 3419 3420 3421test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3423as_fn_error $? "no acceptable C compiler found in \$PATH 3424See \`config.log' for more details" "$LINENO" 5; } 3425 3426# Provide some information about the compiler. 3427$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3428set X $ac_compile 3429ac_compiler=$2 3430for ac_option in --version -v -V -qversion; do 3431 { { ac_try="$ac_compiler $ac_option >&5" 3432case "(($ac_try" in 3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3434 *) ac_try_echo=$ac_try;; 3435esac 3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3437$as_echo "$ac_try_echo"; } >&5 3438 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3439 ac_status=$? 3440 if test -s conftest.err; then 3441 sed '10a\ 3442... rest of stderr output deleted ... 3443 10q' conftest.err >conftest.er1 3444 cat conftest.er1 >&5 3445 fi 3446 rm -f conftest.er1 conftest.err 3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3448 test $ac_status = 0; } 3449done 3450 3451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453 3454int 3455main () 3456{ 3457 3458 ; 3459 return 0; 3460} 3461_ACEOF 3462ac_clean_files_save=$ac_clean_files 3463ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3464# Try to create an executable without -o first, disregard a.out. 3465# It will help us diagnose broken compilers, and finding out an intuition 3466# of exeext. 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3468$as_echo_n "checking whether the C compiler works... " >&6; } 3469ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3470 3471# The possible output files: 3472ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3473 3474ac_rmfiles= 3475for ac_file in $ac_files 3476do 3477 case $ac_file in 3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3479 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3480 esac 3481done 3482rm -f $ac_rmfiles 3483 3484if { { ac_try="$ac_link_default" 3485case "(($ac_try" in 3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3487 *) ac_try_echo=$ac_try;; 3488esac 3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3490$as_echo "$ac_try_echo"; } >&5 3491 (eval "$ac_link_default") 2>&5 3492 ac_status=$? 3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3494 test $ac_status = 0; }; then : 3495 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3496# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3497# in a Makefile. We should not override ac_cv_exeext if it was cached, 3498# so that the user can short-circuit this test for compilers unknown to 3499# Autoconf. 3500for ac_file in $ac_files '' 3501do 3502 test -f "$ac_file" || continue 3503 case $ac_file in 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3505 ;; 3506 [ab].out ) 3507 # We found the default executable, but exeext='' is most 3508 # certainly right. 3509 break;; 3510 *.* ) 3511 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3512 then :; else 3513 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3514 fi 3515 # We set ac_cv_exeext here because the later test for it is not 3516 # safe: cross compilers may not add the suffix if given an `-o' 3517 # argument, so we may need to know it at that point already. 3518 # Even if this section looks crufty: it has the advantage of 3519 # actually working. 3520 break;; 3521 * ) 3522 break;; 3523 esac 3524done 3525test "$ac_cv_exeext" = no && ac_cv_exeext= 3526 3527else 3528 ac_file='' 3529fi 3530if test -z "$ac_file"; then : 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3532$as_echo "no" >&6; } 3533$as_echo "$as_me: failed program was:" >&5 3534sed 's/^/| /' conftest.$ac_ext >&5 3535 3536{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3538as_fn_error 77 "C compiler cannot create executables 3539See \`config.log' for more details" "$LINENO" 5; } 3540else 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3542$as_echo "yes" >&6; } 3543fi 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3545$as_echo_n "checking for C compiler default output file name... " >&6; } 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3547$as_echo "$ac_file" >&6; } 3548ac_exeext=$ac_cv_exeext 3549 3550rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3551ac_clean_files=$ac_clean_files_save 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3553$as_echo_n "checking for suffix of executables... " >&6; } 3554if { { ac_try="$ac_link" 3555case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558esac 3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3560$as_echo "$ac_try_echo"; } >&5 3561 (eval "$ac_link") 2>&5 3562 ac_status=$? 3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3564 test $ac_status = 0; }; then : 3565 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3566# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3567# work properly (i.e., refer to `conftest.exe'), while it won't with 3568# `rm'. 3569for ac_file in conftest.exe conftest conftest.*; do 3570 test -f "$ac_file" || continue 3571 case $ac_file in 3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3574 break;; 3575 * ) break;; 3576 esac 3577done 3578else 3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3581as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3582See \`config.log' for more details" "$LINENO" 5; } 3583fi 3584rm -f conftest conftest$ac_cv_exeext 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3586$as_echo "$ac_cv_exeext" >&6; } 3587 3588rm -f conftest.$ac_ext 3589EXEEXT=$ac_cv_exeext 3590ac_exeext=$EXEEXT 3591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593#include <stdio.h> 3594int 3595main () 3596{ 3597FILE *f = fopen ("conftest.out", "w"); 3598 return ferror (f) || fclose (f) != 0; 3599 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604ac_clean_files="$ac_clean_files conftest.out" 3605# Check that the compiler produces executables we can run. If not, either 3606# the compiler is broken, or we cross compile. 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3608$as_echo_n "checking whether we are cross compiling... " >&6; } 3609if test "$cross_compiling" != yes; then 3610 { { ac_try="$ac_link" 3611case "(($ac_try" in 3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3613 *) ac_try_echo=$ac_try;; 3614esac 3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3616$as_echo "$ac_try_echo"; } >&5 3617 (eval "$ac_link") 2>&5 3618 ac_status=$? 3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3620 test $ac_status = 0; } 3621 if { ac_try='./conftest$ac_cv_exeext' 3622 { { case "(($ac_try" in 3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3624 *) ac_try_echo=$ac_try;; 3625esac 3626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3627$as_echo "$ac_try_echo"; } >&5 3628 (eval "$ac_try") 2>&5 3629 ac_status=$? 3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3631 test $ac_status = 0; }; }; then 3632 cross_compiling=no 3633 else 3634 if test "$cross_compiling" = maybe; then 3635 cross_compiling=yes 3636 else 3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3639as_fn_error $? "cannot run C compiled programs. 3640If you meant to cross compile, use \`--host'. 3641See \`config.log' for more details" "$LINENO" 5; } 3642 fi 3643 fi 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3646$as_echo "$cross_compiling" >&6; } 3647 3648rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3649ac_clean_files=$ac_clean_files_save 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3651$as_echo_n "checking for suffix of object files... " >&6; } 3652if ${ac_cv_objext+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657 3658int 3659main () 3660{ 3661 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666rm -f conftest.o conftest.obj 3667if { { ac_try="$ac_compile" 3668case "(($ac_try" in 3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3670 *) ac_try_echo=$ac_try;; 3671esac 3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3673$as_echo "$ac_try_echo"; } >&5 3674 (eval "$ac_compile") 2>&5 3675 ac_status=$? 3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3677 test $ac_status = 0; }; then : 3678 for ac_file in conftest.o conftest.obj conftest.*; do 3679 test -f "$ac_file" || continue; 3680 case $ac_file in 3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3683 break;; 3684 esac 3685done 3686else 3687 $as_echo "$as_me: failed program was:" >&5 3688sed 's/^/| /' conftest.$ac_ext >&5 3689 3690{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3692as_fn_error $? "cannot compute suffix of object files: cannot compile 3693See \`config.log' for more details" "$LINENO" 5; } 3694fi 3695rm -f conftest.$ac_cv_objext conftest.$ac_ext 3696fi 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3698$as_echo "$ac_cv_objext" >&6; } 3699OBJEXT=$ac_cv_objext 3700ac_objext=$OBJEXT 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3702$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3703if ${ac_cv_c_compiler_gnu+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707/* end confdefs.h. */ 3708 3709int 3710main () 3711{ 3712#ifndef __GNUC__ 3713 choke me 3714#endif 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720if ac_fn_c_try_compile "$LINENO"; then : 3721 ac_compiler_gnu=yes 3722else 3723 ac_compiler_gnu=no 3724fi 3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3726ac_cv_c_compiler_gnu=$ac_compiler_gnu 3727 3728fi 3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3730$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3731if test $ac_compiler_gnu = yes; then 3732 GCC=yes 3733else 3734 GCC= 3735fi 3736ac_test_CFLAGS=${CFLAGS+set} 3737ac_save_CFLAGS=$CFLAGS 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3739$as_echo_n "checking whether $CC accepts -g... " >&6; } 3740if ${ac_cv_prog_cc_g+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 ac_save_c_werror_flag=$ac_c_werror_flag 3744 ac_c_werror_flag=yes 3745 ac_cv_prog_cc_g=no 3746 CFLAGS="-g" 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749 3750int 3751main () 3752{ 3753 3754 ; 3755 return 0; 3756} 3757_ACEOF 3758if ac_fn_c_try_compile "$LINENO"; then : 3759 ac_cv_prog_cc_g=yes 3760else 3761 CFLAGS="" 3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3763/* end confdefs.h. */ 3764 3765int 3766main () 3767{ 3768 3769 ; 3770 return 0; 3771} 3772_ACEOF 3773if ac_fn_c_try_compile "$LINENO"; then : 3774 3775else 3776 ac_c_werror_flag=$ac_save_c_werror_flag 3777 CFLAGS="-g" 3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779/* end confdefs.h. */ 3780 3781int 3782main () 3783{ 3784 3785 ; 3786 return 0; 3787} 3788_ACEOF 3789if ac_fn_c_try_compile "$LINENO"; then : 3790 ac_cv_prog_cc_g=yes 3791fi 3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3793fi 3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3795fi 3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3797 ac_c_werror_flag=$ac_save_c_werror_flag 3798fi 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3800$as_echo "$ac_cv_prog_cc_g" >&6; } 3801if test "$ac_test_CFLAGS" = set; then 3802 CFLAGS=$ac_save_CFLAGS 3803elif test $ac_cv_prog_cc_g = yes; then 3804 if test "$GCC" = yes; then 3805 CFLAGS="-g -O2" 3806 else 3807 CFLAGS="-g" 3808 fi 3809else 3810 if test "$GCC" = yes; then 3811 CFLAGS="-O2" 3812 else 3813 CFLAGS= 3814 fi 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3817$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3818if ${ac_cv_prog_cc_c89+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 ac_cv_prog_cc_c89=no 3822ac_save_CC=$CC 3823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3824/* end confdefs.h. */ 3825#include <stdarg.h> 3826#include <stdio.h> 3827struct stat; 3828/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3829struct buf { int x; }; 3830FILE * (*rcsopen) (struct buf *, struct stat *, int); 3831static char *e (p, i) 3832 char **p; 3833 int i; 3834{ 3835 return p[i]; 3836} 3837static char *f (char * (*g) (char **, int), char **p, ...) 3838{ 3839 char *s; 3840 va_list v; 3841 va_start (v,p); 3842 s = g (p, va_arg (v,int)); 3843 va_end (v); 3844 return s; 3845} 3846 3847/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3848 function prototypes and stuff, but not '\xHH' hex character constants. 3849 These don't provoke an error unfortunately, instead are silently treated 3850 as 'x'. The following induces an error, until -std is added to get 3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3852 array size at least. It's necessary to write '\x00'==0 to get something 3853 that's true only with -std. */ 3854int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3855 3856/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3857 inside strings and character constants. */ 3858#define FOO(x) 'x' 3859int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3860 3861int test (int i, double x); 3862struct s1 {int (*f) (int a);}; 3863struct s2 {int (*f) (double a);}; 3864int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3865int argc; 3866char **argv; 3867int 3868main () 3869{ 3870return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3871 ; 3872 return 0; 3873} 3874_ACEOF 3875for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3877do 3878 CC="$ac_save_CC $ac_arg" 3879 if ac_fn_c_try_compile "$LINENO"; then : 3880 ac_cv_prog_cc_c89=$ac_arg 3881fi 3882rm -f core conftest.err conftest.$ac_objext 3883 test "x$ac_cv_prog_cc_c89" != "xno" && break 3884done 3885rm -f conftest.$ac_ext 3886CC=$ac_save_CC 3887 3888fi 3889# AC_CACHE_VAL 3890case "x$ac_cv_prog_cc_c89" in 3891 x) 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3893$as_echo "none needed" >&6; } ;; 3894 xno) 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3896$as_echo "unsupported" >&6; } ;; 3897 *) 3898 CC="$CC $ac_cv_prog_cc_c89" 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3900$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3901esac 3902if test "x$ac_cv_prog_cc_c89" != xno; then : 3903 3904fi 3905 3906ac_ext=c 3907ac_cpp='$CPP $CPPFLAGS' 3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3910ac_compiler_gnu=$ac_cv_c_compiler_gnu 3911 3912depcc="$CC" am_compiler_list= 3913 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3915$as_echo_n "checking dependency style of $depcc... " >&6; } 3916if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3920 # We make a subdir and do the tests there. Otherwise we can end up 3921 # making bogus files that we don't know about and never remove. For 3922 # instance it was reported that on HP-UX the gcc test will end up 3923 # making a dummy file named 'D' -- because '-MD' means "put the output 3924 # in D". 3925 rm -rf conftest.dir 3926 mkdir conftest.dir 3927 # Copy depcomp to subdir because otherwise we won't find it if we're 3928 # using a relative directory. 3929 cp "$am_depcomp" conftest.dir 3930 cd conftest.dir 3931 # We will build objects and dependencies in a subdirectory because 3932 # it helps to detect inapplicable dependency modes. For instance 3933 # both Tru64's cc and ICC support -MD to output dependencies as a 3934 # side effect of compilation, but ICC will put the dependencies in 3935 # the current directory while Tru64 will put them in the object 3936 # directory. 3937 mkdir sub 3938 3939 am_cv_CC_dependencies_compiler_type=none 3940 if test "$am_compiler_list" = ""; then 3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3942 fi 3943 am__universal=false 3944 case " $depcc " in #( 3945 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3946 esac 3947 3948 for depmode in $am_compiler_list; do 3949 # Setup a source with many dependencies, because some compilers 3950 # like to wrap large dependency lists on column 80 (with \), and 3951 # we should not choose a depcomp mode which is confused by this. 3952 # 3953 # We need to recreate these files for each test, as the compiler may 3954 # overwrite some of them when testing with obscure command lines. 3955 # This happens at least with the AIX C compiler. 3956 : > sub/conftest.c 3957 for i in 1 2 3 4 5 6; do 3958 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3959 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3960 # Solaris 10 /bin/sh. 3961 echo '/* dummy */' > sub/conftst$i.h 3962 done 3963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3964 3965 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3966 # mode. It turns out that the SunPro C++ compiler does not properly 3967 # handle '-M -o', and we need to detect this. Also, some Intel 3968 # versions had trouble with output in subdirs. 3969 am__obj=sub/conftest.${OBJEXT-o} 3970 am__minus_obj="-o $am__obj" 3971 case $depmode in 3972 gcc) 3973 # This depmode causes a compiler race in universal mode. 3974 test "$am__universal" = false || continue 3975 ;; 3976 nosideeffect) 3977 # After this tag, mechanisms are not by side-effect, so they'll 3978 # only be used when explicitly requested. 3979 if test "x$enable_dependency_tracking" = xyes; then 3980 continue 3981 else 3982 break 3983 fi 3984 ;; 3985 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3986 # This compiler won't grok '-c -o', but also, the minuso test has 3987 # not run yet. These depmodes are late enough in the game, and 3988 # so weak that their functioning should not be impacted. 3989 am__obj=conftest.${OBJEXT-o} 3990 am__minus_obj= 3991 ;; 3992 none) break ;; 3993 esac 3994 if depmode=$depmode \ 3995 source=sub/conftest.c object=$am__obj \ 3996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3998 >/dev/null 2>conftest.err && 3999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4003 # icc doesn't choke on unknown options, it will just issue warnings 4004 # or remarks (even with -Werror). So we grep stderr for any message 4005 # that says an option was ignored or not supported. 4006 # When given -MP, icc 7.0 and 7.1 complain thusly: 4007 # icc: Command line warning: ignoring option '-M'; no argument required 4008 # The diagnosis changed in icc 8.0: 4009 # icc: Command line remark: option '-MP' not supported 4010 if (grep 'ignoring option' conftest.err || 4011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4012 am_cv_CC_dependencies_compiler_type=$depmode 4013 break 4014 fi 4015 fi 4016 done 4017 4018 cd .. 4019 rm -rf conftest.dir 4020else 4021 am_cv_CC_dependencies_compiler_type=none 4022fi 4023 4024fi 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4026$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4028 4029 if 4030 test "x$enable_dependency_tracking" != xno \ 4031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4032 am__fastdepCC_TRUE= 4033 am__fastdepCC_FALSE='#' 4034else 4035 am__fastdepCC_TRUE='#' 4036 am__fastdepCC_FALSE= 4037fi 4038 4039 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4041$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4042if ${ac_cv_path_SED+:} false; then : 4043 $as_echo_n "(cached) " >&6 4044else 4045 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4046 for ac_i in 1 2 3 4 5 6 7; do 4047 ac_script="$ac_script$as_nl$ac_script" 4048 done 4049 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4050 { ac_script=; unset ac_script;} 4051 if test -z "$SED"; then 4052 ac_path_SED_found=false 4053 # Loop through the user's path and test for each of PROGNAME-LIST 4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 test -z "$as_dir" && as_dir=. 4059 for ac_prog in sed gsed; do 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4062 as_fn_executable_p "$ac_path_SED" || continue 4063# Check for GNU ac_path_SED and select it if it is found. 4064 # Check for GNU $ac_path_SED 4065case `"$ac_path_SED" --version 2>&1` in 4066*GNU*) 4067 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4068*) 4069 ac_count=0 4070 $as_echo_n 0123456789 >"conftest.in" 4071 while : 4072 do 4073 cat "conftest.in" "conftest.in" >"conftest.tmp" 4074 mv "conftest.tmp" "conftest.in" 4075 cp "conftest.in" "conftest.nl" 4076 $as_echo '' >> "conftest.nl" 4077 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4079 as_fn_arith $ac_count + 1 && ac_count=$as_val 4080 if test $ac_count -gt ${ac_path_SED_max-0}; then 4081 # Best one so far, save it but keep looking for a better one 4082 ac_cv_path_SED="$ac_path_SED" 4083 ac_path_SED_max=$ac_count 4084 fi 4085 # 10*(2^10) chars as input seems more than enough 4086 test $ac_count -gt 10 && break 4087 done 4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4089esac 4090 4091 $ac_path_SED_found && break 3 4092 done 4093 done 4094 done 4095IFS=$as_save_IFS 4096 if test -z "$ac_cv_path_SED"; then 4097 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4098 fi 4099else 4100 ac_cv_path_SED=$SED 4101fi 4102 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4105$as_echo "$ac_cv_path_SED" >&6; } 4106 SED="$ac_cv_path_SED" 4107 rm -f conftest.sed 4108 4109test -z "$SED" && SED=sed 4110Xsed="$SED -e 1s/^X//" 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4123$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4124if ${ac_cv_path_GREP+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if test -z "$GREP"; then 4128 ac_path_GREP_found=false 4129 # Loop through the user's path and test for each of PROGNAME-LIST 4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_prog in grep ggrep; do 4136 for ac_exec_ext in '' $ac_executable_extensions; do 4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4138 as_fn_executable_p "$ac_path_GREP" || continue 4139# Check for GNU ac_path_GREP and select it if it is found. 4140 # Check for GNU $ac_path_GREP 4141case `"$ac_path_GREP" --version 2>&1` in 4142*GNU*) 4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4144*) 4145 ac_count=0 4146 $as_echo_n 0123456789 >"conftest.in" 4147 while : 4148 do 4149 cat "conftest.in" "conftest.in" >"conftest.tmp" 4150 mv "conftest.tmp" "conftest.in" 4151 cp "conftest.in" "conftest.nl" 4152 $as_echo 'GREP' >> "conftest.nl" 4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4155 as_fn_arith $ac_count + 1 && ac_count=$as_val 4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4157 # Best one so far, save it but keep looking for a better one 4158 ac_cv_path_GREP="$ac_path_GREP" 4159 ac_path_GREP_max=$ac_count 4160 fi 4161 # 10*(2^10) chars as input seems more than enough 4162 test $ac_count -gt 10 && break 4163 done 4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4165esac 4166 4167 $ac_path_GREP_found && break 3 4168 done 4169 done 4170 done 4171IFS=$as_save_IFS 4172 if test -z "$ac_cv_path_GREP"; then 4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4174 fi 4175else 4176 ac_cv_path_GREP=$GREP 4177fi 4178 4179fi 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4181$as_echo "$ac_cv_path_GREP" >&6; } 4182 GREP="$ac_cv_path_GREP" 4183 4184 4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4186$as_echo_n "checking for egrep... " >&6; } 4187if ${ac_cv_path_EGREP+:} false; then : 4188 $as_echo_n "(cached) " >&6 4189else 4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4191 then ac_cv_path_EGREP="$GREP -E" 4192 else 4193 if test -z "$EGREP"; then 4194 ac_path_EGREP_found=false 4195 # Loop through the user's path and test for each of PROGNAME-LIST 4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4198do 4199 IFS=$as_save_IFS 4200 test -z "$as_dir" && as_dir=. 4201 for ac_prog in egrep; do 4202 for ac_exec_ext in '' $ac_executable_extensions; do 4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4204 as_fn_executable_p "$ac_path_EGREP" || continue 4205# Check for GNU ac_path_EGREP and select it if it is found. 4206 # Check for GNU $ac_path_EGREP 4207case `"$ac_path_EGREP" --version 2>&1` in 4208*GNU*) 4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4210*) 4211 ac_count=0 4212 $as_echo_n 0123456789 >"conftest.in" 4213 while : 4214 do 4215 cat "conftest.in" "conftest.in" >"conftest.tmp" 4216 mv "conftest.tmp" "conftest.in" 4217 cp "conftest.in" "conftest.nl" 4218 $as_echo 'EGREP' >> "conftest.nl" 4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4221 as_fn_arith $ac_count + 1 && ac_count=$as_val 4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4223 # Best one so far, save it but keep looking for a better one 4224 ac_cv_path_EGREP="$ac_path_EGREP" 4225 ac_path_EGREP_max=$ac_count 4226 fi 4227 # 10*(2^10) chars as input seems more than enough 4228 test $ac_count -gt 10 && break 4229 done 4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4231esac 4232 4233 $ac_path_EGREP_found && break 3 4234 done 4235 done 4236 done 4237IFS=$as_save_IFS 4238 if test -z "$ac_cv_path_EGREP"; then 4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4240 fi 4241else 4242 ac_cv_path_EGREP=$EGREP 4243fi 4244 4245 fi 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4248$as_echo "$ac_cv_path_EGREP" >&6; } 4249 EGREP="$ac_cv_path_EGREP" 4250 4251 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4253$as_echo_n "checking for fgrep... " >&6; } 4254if ${ac_cv_path_FGREP+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4258 then ac_cv_path_FGREP="$GREP -F" 4259 else 4260 if test -z "$FGREP"; then 4261 ac_path_FGREP_found=false 4262 # Loop through the user's path and test for each of PROGNAME-LIST 4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4265do 4266 IFS=$as_save_IFS 4267 test -z "$as_dir" && as_dir=. 4268 for ac_prog in fgrep; do 4269 for ac_exec_ext in '' $ac_executable_extensions; do 4270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4271 as_fn_executable_p "$ac_path_FGREP" || continue 4272# Check for GNU ac_path_FGREP and select it if it is found. 4273 # Check for GNU $ac_path_FGREP 4274case `"$ac_path_FGREP" --version 2>&1` in 4275*GNU*) 4276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4277*) 4278 ac_count=0 4279 $as_echo_n 0123456789 >"conftest.in" 4280 while : 4281 do 4282 cat "conftest.in" "conftest.in" >"conftest.tmp" 4283 mv "conftest.tmp" "conftest.in" 4284 cp "conftest.in" "conftest.nl" 4285 $as_echo 'FGREP' >> "conftest.nl" 4286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4288 as_fn_arith $ac_count + 1 && ac_count=$as_val 4289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4290 # Best one so far, save it but keep looking for a better one 4291 ac_cv_path_FGREP="$ac_path_FGREP" 4292 ac_path_FGREP_max=$ac_count 4293 fi 4294 # 10*(2^10) chars as input seems more than enough 4295 test $ac_count -gt 10 && break 4296 done 4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4298esac 4299 4300 $ac_path_FGREP_found && break 3 4301 done 4302 done 4303 done 4304IFS=$as_save_IFS 4305 if test -z "$ac_cv_path_FGREP"; then 4306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4307 fi 4308else 4309 ac_cv_path_FGREP=$FGREP 4310fi 4311 4312 fi 4313fi 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4315$as_echo "$ac_cv_path_FGREP" >&6; } 4316 FGREP="$ac_cv_path_FGREP" 4317 4318 4319test -z "$GREP" && GREP=grep 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339# Check whether --with-gnu-ld was given. 4340if test "${with_gnu_ld+set}" = set; then : 4341 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4342else 4343 with_gnu_ld=no 4344fi 4345 4346ac_prog=ld 4347if test "$GCC" = yes; then 4348 # Check if gcc -print-prog-name=ld gives a path. 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4350$as_echo_n "checking for ld used by $CC... " >&6; } 4351 case $host in 4352 *-*-mingw*) 4353 # gcc leaves a trailing carriage return which upsets mingw 4354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4355 *) 4356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4357 esac 4358 case $ac_prog in 4359 # Accept absolute paths. 4360 [\\/]* | ?:[\\/]*) 4361 re_direlt='/[^/][^/]*/\.\./' 4362 # Canonicalize the pathname of ld 4363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4366 done 4367 test -z "$LD" && LD="$ac_prog" 4368 ;; 4369 "") 4370 # If it fails, then pretend we aren't using GCC. 4371 ac_prog=ld 4372 ;; 4373 *) 4374 # If it is relative, then search for the first ld in PATH. 4375 with_gnu_ld=unknown 4376 ;; 4377 esac 4378elif test "$with_gnu_ld" = yes; then 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4380$as_echo_n "checking for GNU ld... " >&6; } 4381else 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4383$as_echo_n "checking for non-GNU ld... " >&6; } 4384fi 4385if ${lt_cv_path_LD+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 if test -z "$LD"; then 4389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4390 for ac_dir in $PATH; do 4391 IFS="$lt_save_ifs" 4392 test -z "$ac_dir" && ac_dir=. 4393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4394 lt_cv_path_LD="$ac_dir/$ac_prog" 4395 # Check to see if the program is GNU ld. I'd rather use --version, 4396 # but apparently some variants of GNU ld only accept -v. 4397 # Break only if it was the GNU/non-GNU ld that we prefer. 4398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4399 *GNU* | *'with BFD'*) 4400 test "$with_gnu_ld" != no && break 4401 ;; 4402 *) 4403 test "$with_gnu_ld" != yes && break 4404 ;; 4405 esac 4406 fi 4407 done 4408 IFS="$lt_save_ifs" 4409else 4410 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4411fi 4412fi 4413 4414LD="$lt_cv_path_LD" 4415if test -n "$LD"; then 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4417$as_echo "$LD" >&6; } 4418else 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4420$as_echo "no" >&6; } 4421fi 4422test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4424$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4425if ${lt_cv_prog_gnu_ld+:} false; then : 4426 $as_echo_n "(cached) " >&6 4427else 4428 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4429case `$LD -v 2>&1 </dev/null` in 4430*GNU* | *'with BFD'*) 4431 lt_cv_prog_gnu_ld=yes 4432 ;; 4433*) 4434 lt_cv_prog_gnu_ld=no 4435 ;; 4436esac 4437fi 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4439$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4440with_gnu_ld=$lt_cv_prog_gnu_ld 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4451$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4452if ${lt_cv_path_NM+:} false; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 if test -n "$NM"; then 4456 # Let the user override the test. 4457 lt_cv_path_NM="$NM" 4458else 4459 lt_nm_to_check="${ac_tool_prefix}nm" 4460 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4461 lt_nm_to_check="$lt_nm_to_check nm" 4462 fi 4463 for lt_tmp_nm in $lt_nm_to_check; do 4464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4465 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4466 IFS="$lt_save_ifs" 4467 test -z "$ac_dir" && ac_dir=. 4468 tmp_nm="$ac_dir/$lt_tmp_nm" 4469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4470 # Check to see if the nm accepts a BSD-compat flag. 4471 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4472 # nm: unknown option "B" ignored 4473 # Tru64's nm complains that /dev/null is an invalid object file 4474 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4475 */dev/null* | *'Invalid file or object type'*) 4476 lt_cv_path_NM="$tmp_nm -B" 4477 break 4478 ;; 4479 *) 4480 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4481 */dev/null*) 4482 lt_cv_path_NM="$tmp_nm -p" 4483 break 4484 ;; 4485 *) 4486 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4487 continue # so that we can try to find one that supports BSD flags 4488 ;; 4489 esac 4490 ;; 4491 esac 4492 fi 4493 done 4494 IFS="$lt_save_ifs" 4495 done 4496 : ${lt_cv_path_NM=no} 4497fi 4498fi 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4500$as_echo "$lt_cv_path_NM" >&6; } 4501if test "$lt_cv_path_NM" != "no"; then 4502 NM="$lt_cv_path_NM" 4503else 4504 # Didn't find any BSD compatible name lister, look for dumpbin. 4505 if test -n "$DUMPBIN"; then : 4506 # Let the user override the test. 4507 else 4508 if test -n "$ac_tool_prefix"; then 4509 for ac_prog in dumpbin "link -dump" 4510 do 4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4512set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4514$as_echo_n "checking for $ac_word... " >&6; } 4515if ${ac_cv_prog_DUMPBIN+:} false; then : 4516 $as_echo_n "(cached) " >&6 4517else 4518 if test -n "$DUMPBIN"; then 4519 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4520else 4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522for as_dir in $PATH 4523do 4524 IFS=$as_save_IFS 4525 test -z "$as_dir" && as_dir=. 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4528 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4530 break 2 4531 fi 4532done 4533 done 4534IFS=$as_save_IFS 4535 4536fi 4537fi 4538DUMPBIN=$ac_cv_prog_DUMPBIN 4539if test -n "$DUMPBIN"; then 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4541$as_echo "$DUMPBIN" >&6; } 4542else 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544$as_echo "no" >&6; } 4545fi 4546 4547 4548 test -n "$DUMPBIN" && break 4549 done 4550fi 4551if test -z "$DUMPBIN"; then 4552 ac_ct_DUMPBIN=$DUMPBIN 4553 for ac_prog in dumpbin "link -dump" 4554do 4555 # Extract the first word of "$ac_prog", so it can be a program name with args. 4556set dummy $ac_prog; ac_word=$2 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4558$as_echo_n "checking for $ac_word... " >&6; } 4559if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561else 4562 if test -n "$ac_ct_DUMPBIN"; then 4563 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4564else 4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4566for as_dir in $PATH 4567do 4568 IFS=$as_save_IFS 4569 test -z "$as_dir" && as_dir=. 4570 for ac_exec_ext in '' $ac_executable_extensions; do 4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4572 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4574 break 2 4575 fi 4576done 4577 done 4578IFS=$as_save_IFS 4579 4580fi 4581fi 4582ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4583if test -n "$ac_ct_DUMPBIN"; then 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4585$as_echo "$ac_ct_DUMPBIN" >&6; } 4586else 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4588$as_echo "no" >&6; } 4589fi 4590 4591 4592 test -n "$ac_ct_DUMPBIN" && break 4593done 4594 4595 if test "x$ac_ct_DUMPBIN" = x; then 4596 DUMPBIN=":" 4597 else 4598 case $cross_compiling:$ac_tool_warned in 4599yes:) 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4602ac_tool_warned=yes ;; 4603esac 4604 DUMPBIN=$ac_ct_DUMPBIN 4605 fi 4606fi 4607 4608 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4609 *COFF*) 4610 DUMPBIN="$DUMPBIN -symbols" 4611 ;; 4612 *) 4613 DUMPBIN=: 4614 ;; 4615 esac 4616 fi 4617 4618 if test "$DUMPBIN" != ":"; then 4619 NM="$DUMPBIN" 4620 fi 4621fi 4622test -z "$NM" && NM=nm 4623 4624 4625 4626 4627 4628 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4630$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4631if ${lt_cv_nm_interface+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633else 4634 lt_cv_nm_interface="BSD nm" 4635 echo "int some_variable = 0;" > conftest.$ac_ext 4636 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4637 (eval "$ac_compile" 2>conftest.err) 4638 cat conftest.err >&5 4639 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4640 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4641 cat conftest.err >&5 4642 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4643 cat conftest.out >&5 4644 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4645 lt_cv_nm_interface="MS dumpbin" 4646 fi 4647 rm -f conftest* 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4650$as_echo "$lt_cv_nm_interface" >&6; } 4651 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4653$as_echo_n "checking whether ln -s works... " >&6; } 4654LN_S=$as_ln_s 4655if test "$LN_S" = "ln -s"; then 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4657$as_echo "yes" >&6; } 4658else 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4660$as_echo "no, using $LN_S" >&6; } 4661fi 4662 4663# find the maximum length of command line arguments 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4665$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4666if ${lt_cv_sys_max_cmd_len+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 i=0 4670 teststring="ABCD" 4671 4672 case $build_os in 4673 msdosdjgpp*) 4674 # On DJGPP, this test can blow up pretty badly due to problems in libc 4675 # (any single argument exceeding 2000 bytes causes a buffer overrun 4676 # during glob expansion). Even if it were fixed, the result of this 4677 # check would be larger than it should be. 4678 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4679 ;; 4680 4681 gnu*) 4682 # Under GNU Hurd, this test is not required because there is 4683 # no limit to the length of command line arguments. 4684 # Libtool will interpret -1 as no limit whatsoever 4685 lt_cv_sys_max_cmd_len=-1; 4686 ;; 4687 4688 cygwin* | mingw* | cegcc*) 4689 # On Win9x/ME, this test blows up -- it succeeds, but takes 4690 # about 5 minutes as the teststring grows exponentially. 4691 # Worse, since 9x/ME are not pre-emptively multitasking, 4692 # you end up with a "frozen" computer, even though with patience 4693 # the test eventually succeeds (with a max line length of 256k). 4694 # Instead, let's just punt: use the minimum linelength reported by 4695 # all of the supported platforms: 8192 (on NT/2K/XP). 4696 lt_cv_sys_max_cmd_len=8192; 4697 ;; 4698 4699 mint*) 4700 # On MiNT this can take a long time and run out of memory. 4701 lt_cv_sys_max_cmd_len=8192; 4702 ;; 4703 4704 amigaos*) 4705 # On AmigaOS with pdksh, this test takes hours, literally. 4706 # So we just punt and use a minimum line length of 8192. 4707 lt_cv_sys_max_cmd_len=8192; 4708 ;; 4709 4710 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4711 # This has been around since 386BSD, at least. Likely further. 4712 if test -x /sbin/sysctl; then 4713 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4714 elif test -x /usr/sbin/sysctl; then 4715 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4716 else 4717 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4718 fi 4719 # And add a safety zone 4720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4722 ;; 4723 4724 interix*) 4725 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4726 lt_cv_sys_max_cmd_len=196608 4727 ;; 4728 4729 os2*) 4730 # The test takes a long time on OS/2. 4731 lt_cv_sys_max_cmd_len=8192 4732 ;; 4733 4734 osf*) 4735 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4736 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4737 # nice to cause kernel panics so lets avoid the loop below. 4738 # First set a reasonable default. 4739 lt_cv_sys_max_cmd_len=16384 4740 # 4741 if test -x /sbin/sysconfig; then 4742 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4743 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4744 esac 4745 fi 4746 ;; 4747 sco3.2v5*) 4748 lt_cv_sys_max_cmd_len=102400 4749 ;; 4750 sysv5* | sco5v6* | sysv4.2uw2*) 4751 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4752 if test -n "$kargmax"; then 4753 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4754 else 4755 lt_cv_sys_max_cmd_len=32768 4756 fi 4757 ;; 4758 *) 4759 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4760 if test -n "$lt_cv_sys_max_cmd_len"; then 4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4763 else 4764 # Make teststring a little bigger before we do anything with it. 4765 # a 1K string should be a reasonable start. 4766 for i in 1 2 3 4 5 6 7 8 ; do 4767 teststring=$teststring$teststring 4768 done 4769 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4770 # If test is not a shell built-in, we'll probably end up computing a 4771 # maximum length that is only half of the actual maximum length, but 4772 # we can't tell. 4773 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4774 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4775 test $i != 17 # 1/2 MB should be enough 4776 do 4777 i=`expr $i + 1` 4778 teststring=$teststring$teststring 4779 done 4780 # Only check the string length outside the loop. 4781 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4782 teststring= 4783 # Add a significant safety factor because C++ compilers can tack on 4784 # massive amounts of additional arguments before passing them to the 4785 # linker. It appears as though 1/2 is a usable value. 4786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4787 fi 4788 ;; 4789 esac 4790 4791fi 4792 4793if test -n $lt_cv_sys_max_cmd_len ; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4795$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4796else 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4798$as_echo "none" >&6; } 4799fi 4800max_cmd_len=$lt_cv_sys_max_cmd_len 4801 4802 4803 4804 4805 4806 4807: ${CP="cp -f"} 4808: ${MV="mv -f"} 4809: ${RM="rm -f"} 4810 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4812$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4813# Try some XSI features 4814xsi_shell=no 4815( _lt_dummy="a/b/c" 4816 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4817 = c,a/b,b/c, \ 4818 && eval 'test $(( 1 + 1 )) -eq 2 \ 4819 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4820 && xsi_shell=yes 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4822$as_echo "$xsi_shell" >&6; } 4823 4824 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4826$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4827lt_shell_append=no 4828( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4829 >/dev/null 2>&1 \ 4830 && lt_shell_append=yes 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4832$as_echo "$lt_shell_append" >&6; } 4833 4834 4835if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4836 lt_unset=unset 4837else 4838 lt_unset=false 4839fi 4840 4841 4842 4843 4844 4845# test EBCDIC or ASCII 4846case `echo X|tr X '\101'` in 4847 A) # ASCII based system 4848 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4849 lt_SP2NL='tr \040 \012' 4850 lt_NL2SP='tr \015\012 \040\040' 4851 ;; 4852 *) # EBCDIC based system 4853 lt_SP2NL='tr \100 \n' 4854 lt_NL2SP='tr \r\n \100\100' 4855 ;; 4856esac 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4867$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4868if ${lt_cv_to_host_file_cmd+:} false; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 case $host in 4872 *-*-mingw* ) 4873 case $build in 4874 *-*-mingw* ) # actually msys 4875 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4876 ;; 4877 *-*-cygwin* ) 4878 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4879 ;; 4880 * ) # otherwise, assume *nix 4881 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4882 ;; 4883 esac 4884 ;; 4885 *-*-cygwin* ) 4886 case $build in 4887 *-*-mingw* ) # actually msys 4888 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4889 ;; 4890 *-*-cygwin* ) 4891 lt_cv_to_host_file_cmd=func_convert_file_noop 4892 ;; 4893 * ) # otherwise, assume *nix 4894 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4895 ;; 4896 esac 4897 ;; 4898 * ) # unhandled hosts (and "normal" native builds) 4899 lt_cv_to_host_file_cmd=func_convert_file_noop 4900 ;; 4901esac 4902 4903fi 4904 4905to_host_file_cmd=$lt_cv_to_host_file_cmd 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4907$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4908 4909 4910 4911 4912 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4914$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4915if ${lt_cv_to_tool_file_cmd+:} false; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 #assume ordinary cross tools, or native build. 4919lt_cv_to_tool_file_cmd=func_convert_file_noop 4920case $host in 4921 *-*-mingw* ) 4922 case $build in 4923 *-*-mingw* ) # actually msys 4924 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4925 ;; 4926 esac 4927 ;; 4928esac 4929 4930fi 4931 4932to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4934$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4935 4936 4937 4938 4939 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4941$as_echo_n "checking for $LD option to reload object files... " >&6; } 4942if ${lt_cv_ld_reload_flag+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 lt_cv_ld_reload_flag='-r' 4946fi 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4948$as_echo "$lt_cv_ld_reload_flag" >&6; } 4949reload_flag=$lt_cv_ld_reload_flag 4950case $reload_flag in 4951"" | " "*) ;; 4952*) reload_flag=" $reload_flag" ;; 4953esac 4954reload_cmds='$LD$reload_flag -o $output$reload_objs' 4955case $host_os in 4956 cygwin* | mingw* | pw32* | cegcc*) 4957 if test "$GCC" != yes; then 4958 reload_cmds=false 4959 fi 4960 ;; 4961 darwin*) 4962 if test "$GCC" = yes; then 4963 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4964 else 4965 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4966 fi 4967 ;; 4968esac 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978if test -n "$ac_tool_prefix"; then 4979 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4980set dummy ${ac_tool_prefix}objdump; ac_word=$2 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4982$as_echo_n "checking for $ac_word... " >&6; } 4983if ${ac_cv_prog_OBJDUMP+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 if test -n "$OBJDUMP"; then 4987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4988else 4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4990for as_dir in $PATH 4991do 4992 IFS=$as_save_IFS 4993 test -z "$as_dir" && as_dir=. 4994 for ac_exec_ext in '' $ac_executable_extensions; do 4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4996 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4998 break 2 4999 fi 5000done 5001 done 5002IFS=$as_save_IFS 5003 5004fi 5005fi 5006OBJDUMP=$ac_cv_prog_OBJDUMP 5007if test -n "$OBJDUMP"; then 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5009$as_echo "$OBJDUMP" >&6; } 5010else 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5012$as_echo "no" >&6; } 5013fi 5014 5015 5016fi 5017if test -z "$ac_cv_prog_OBJDUMP"; then 5018 ac_ct_OBJDUMP=$OBJDUMP 5019 # Extract the first word of "objdump", so it can be a program name with args. 5020set dummy objdump; ac_word=$2 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5022$as_echo_n "checking for $ac_word... " >&6; } 5023if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5024 $as_echo_n "(cached) " >&6 5025else 5026 if test -n "$ac_ct_OBJDUMP"; then 5027 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5028else 5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5030for as_dir in $PATH 5031do 5032 IFS=$as_save_IFS 5033 test -z "$as_dir" && as_dir=. 5034 for ac_exec_ext in '' $ac_executable_extensions; do 5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5036 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5038 break 2 5039 fi 5040done 5041 done 5042IFS=$as_save_IFS 5043 5044fi 5045fi 5046ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5047if test -n "$ac_ct_OBJDUMP"; then 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5049$as_echo "$ac_ct_OBJDUMP" >&6; } 5050else 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5052$as_echo "no" >&6; } 5053fi 5054 5055 if test "x$ac_ct_OBJDUMP" = x; then 5056 OBJDUMP="false" 5057 else 5058 case $cross_compiling:$ac_tool_warned in 5059yes:) 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5062ac_tool_warned=yes ;; 5063esac 5064 OBJDUMP=$ac_ct_OBJDUMP 5065 fi 5066else 5067 OBJDUMP="$ac_cv_prog_OBJDUMP" 5068fi 5069 5070test -z "$OBJDUMP" && OBJDUMP=objdump 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5081$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5082if ${lt_cv_deplibs_check_method+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 lt_cv_file_magic_cmd='$MAGIC_CMD' 5086lt_cv_file_magic_test_file= 5087lt_cv_deplibs_check_method='unknown' 5088# Need to set the preceding variable on all platforms that support 5089# interlibrary dependencies. 5090# 'none' -- dependencies not supported. 5091# `unknown' -- same as none, but documents that we really don't know. 5092# 'pass_all' -- all dependencies passed with no checks. 5093# 'test_compile' -- check by making test program. 5094# 'file_magic [[regex]]' -- check by looking for files in library path 5095# which responds to the $file_magic_cmd with a given extended regex. 5096# If you have `file' or equivalent on your system and you're not sure 5097# whether `pass_all' will *always* work, you probably want this one. 5098 5099case $host_os in 5100aix[4-9]*) 5101 lt_cv_deplibs_check_method=pass_all 5102 ;; 5103 5104beos*) 5105 lt_cv_deplibs_check_method=pass_all 5106 ;; 5107 5108bsdi[45]*) 5109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5110 lt_cv_file_magic_cmd='/usr/bin/file -L' 5111 lt_cv_file_magic_test_file=/shlib/libc.so 5112 ;; 5113 5114cygwin*) 5115 # func_win32_libid is a shell function defined in ltmain.sh 5116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5117 lt_cv_file_magic_cmd='func_win32_libid' 5118 ;; 5119 5120mingw* | pw32*) 5121 # Base MSYS/MinGW do not provide the 'file' command needed by 5122 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5123 # unless we find 'file', for example because we are cross-compiling. 5124 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5125 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5127 lt_cv_file_magic_cmd='func_win32_libid' 5128 else 5129 # Keep this pattern in sync with the one in func_win32_libid. 5130 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5131 lt_cv_file_magic_cmd='$OBJDUMP -f' 5132 fi 5133 ;; 5134 5135cegcc*) 5136 # use the weaker test based on 'objdump'. See mingw*. 5137 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5138 lt_cv_file_magic_cmd='$OBJDUMP -f' 5139 ;; 5140 5141darwin* | rhapsody*) 5142 lt_cv_deplibs_check_method=pass_all 5143 ;; 5144 5145freebsd* | dragonfly*) 5146 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5147 case $host_cpu in 5148 i*86 ) 5149 # Not sure whether the presence of OpenBSD here was a mistake. 5150 # Let's accept both of them until this is cleared up. 5151 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5152 lt_cv_file_magic_cmd=/usr/bin/file 5153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5154 ;; 5155 esac 5156 else 5157 lt_cv_deplibs_check_method=pass_all 5158 fi 5159 ;; 5160 5161gnu*) 5162 lt_cv_deplibs_check_method=pass_all 5163 ;; 5164 5165haiku*) 5166 lt_cv_deplibs_check_method=pass_all 5167 ;; 5168 5169hpux10.20* | hpux11*) 5170 lt_cv_file_magic_cmd=/usr/bin/file 5171 case $host_cpu in 5172 ia64*) 5173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5175 ;; 5176 hppa*64*) 5177 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]' 5178 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5179 ;; 5180 *) 5181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5182 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5183 ;; 5184 esac 5185 ;; 5186 5187interix[3-9]*) 5188 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5190 ;; 5191 5192irix5* | irix6* | nonstopux*) 5193 case $LD in 5194 *-32|*"-32 ") libmagic=32-bit;; 5195 *-n32|*"-n32 ") libmagic=N32;; 5196 *-64|*"-64 ") libmagic=64-bit;; 5197 *) libmagic=never-match;; 5198 esac 5199 lt_cv_deplibs_check_method=pass_all 5200 ;; 5201 5202# This must be glibc/ELF. 5203linux* | k*bsd*-gnu | kopensolaris*-gnu) 5204 lt_cv_deplibs_check_method=pass_all 5205 ;; 5206 5207netbsd*) 5208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5210 else 5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5212 fi 5213 ;; 5214 5215newos6*) 5216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5217 lt_cv_file_magic_cmd=/usr/bin/file 5218 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5219 ;; 5220 5221*nto* | *qnx*) 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225openbsd*) 5226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5228 else 5229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5230 fi 5231 ;; 5232 5233osf3* | osf4* | osf5*) 5234 lt_cv_deplibs_check_method=pass_all 5235 ;; 5236 5237rdos*) 5238 lt_cv_deplibs_check_method=pass_all 5239 ;; 5240 5241solaris*) 5242 lt_cv_deplibs_check_method=pass_all 5243 ;; 5244 5245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5246 lt_cv_deplibs_check_method=pass_all 5247 ;; 5248 5249sysv4 | sysv4.3*) 5250 case $host_vendor in 5251 motorola) 5252 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]' 5253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5254 ;; 5255 ncr) 5256 lt_cv_deplibs_check_method=pass_all 5257 ;; 5258 sequent) 5259 lt_cv_file_magic_cmd='/bin/file' 5260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5261 ;; 5262 sni) 5263 lt_cv_file_magic_cmd='/bin/file' 5264 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5265 lt_cv_file_magic_test_file=/lib/libc.so 5266 ;; 5267 siemens) 5268 lt_cv_deplibs_check_method=pass_all 5269 ;; 5270 pc) 5271 lt_cv_deplibs_check_method=pass_all 5272 ;; 5273 esac 5274 ;; 5275 5276tpf*) 5277 lt_cv_deplibs_check_method=pass_all 5278 ;; 5279esac 5280 5281fi 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5283$as_echo "$lt_cv_deplibs_check_method" >&6; } 5284 5285file_magic_glob= 5286want_nocaseglob=no 5287if test "$build" = "$host"; then 5288 case $host_os in 5289 mingw* | pw32*) 5290 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5291 want_nocaseglob=yes 5292 else 5293 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5294 fi 5295 ;; 5296 esac 5297fi 5298 5299file_magic_cmd=$lt_cv_file_magic_cmd 5300deplibs_check_method=$lt_cv_deplibs_check_method 5301test -z "$deplibs_check_method" && deplibs_check_method=unknown 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324if test -n "$ac_tool_prefix"; then 5325 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5326set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5328$as_echo_n "checking for $ac_word... " >&6; } 5329if ${ac_cv_prog_DLLTOOL+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 if test -n "$DLLTOOL"; then 5333 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5334else 5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5336for as_dir in $PATH 5337do 5338 IFS=$as_save_IFS 5339 test -z "$as_dir" && as_dir=. 5340 for ac_exec_ext in '' $ac_executable_extensions; do 5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5342 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5344 break 2 5345 fi 5346done 5347 done 5348IFS=$as_save_IFS 5349 5350fi 5351fi 5352DLLTOOL=$ac_cv_prog_DLLTOOL 5353if test -n "$DLLTOOL"; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5355$as_echo "$DLLTOOL" >&6; } 5356else 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5358$as_echo "no" >&6; } 5359fi 5360 5361 5362fi 5363if test -z "$ac_cv_prog_DLLTOOL"; then 5364 ac_ct_DLLTOOL=$DLLTOOL 5365 # Extract the first word of "dlltool", so it can be a program name with args. 5366set dummy dlltool; ac_word=$2 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5368$as_echo_n "checking for $ac_word... " >&6; } 5369if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 if test -n "$ac_ct_DLLTOOL"; then 5373 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5374else 5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5376for as_dir in $PATH 5377do 5378 IFS=$as_save_IFS 5379 test -z "$as_dir" && as_dir=. 5380 for ac_exec_ext in '' $ac_executable_extensions; do 5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5382 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5384 break 2 5385 fi 5386done 5387 done 5388IFS=$as_save_IFS 5389 5390fi 5391fi 5392ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5393if test -n "$ac_ct_DLLTOOL"; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5395$as_echo "$ac_ct_DLLTOOL" >&6; } 5396else 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5398$as_echo "no" >&6; } 5399fi 5400 5401 if test "x$ac_ct_DLLTOOL" = x; then 5402 DLLTOOL="false" 5403 else 5404 case $cross_compiling:$ac_tool_warned in 5405yes:) 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5408ac_tool_warned=yes ;; 5409esac 5410 DLLTOOL=$ac_ct_DLLTOOL 5411 fi 5412else 5413 DLLTOOL="$ac_cv_prog_DLLTOOL" 5414fi 5415 5416test -z "$DLLTOOL" && DLLTOOL=dlltool 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5428$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5429if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5430 $as_echo_n "(cached) " >&6 5431else 5432 lt_cv_sharedlib_from_linklib_cmd='unknown' 5433 5434case $host_os in 5435cygwin* | mingw* | pw32* | cegcc*) 5436 # two different shell functions defined in ltmain.sh 5437 # decide which to use based on capabilities of $DLLTOOL 5438 case `$DLLTOOL --help 2>&1` in 5439 *--identify-strict*) 5440 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5441 ;; 5442 *) 5443 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5444 ;; 5445 esac 5446 ;; 5447*) 5448 # fallback: assume linklib IS sharedlib 5449 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5450 ;; 5451esac 5452 5453fi 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5455$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5456sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5457test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5458 5459 5460 5461 5462 5463 5464 5465 5466if test -n "$ac_tool_prefix"; then 5467 for ac_prog in ar 5468 do 5469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5470set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5472$as_echo_n "checking for $ac_word... " >&6; } 5473if ${ac_cv_prog_AR+:} false; then : 5474 $as_echo_n "(cached) " >&6 5475else 5476 if test -n "$AR"; then 5477 ac_cv_prog_AR="$AR" # Let the user override the test. 5478else 5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5480for as_dir in $PATH 5481do 5482 IFS=$as_save_IFS 5483 test -z "$as_dir" && as_dir=. 5484 for ac_exec_ext in '' $ac_executable_extensions; do 5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5486 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5488 break 2 5489 fi 5490done 5491 done 5492IFS=$as_save_IFS 5493 5494fi 5495fi 5496AR=$ac_cv_prog_AR 5497if test -n "$AR"; then 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5499$as_echo "$AR" >&6; } 5500else 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5502$as_echo "no" >&6; } 5503fi 5504 5505 5506 test -n "$AR" && break 5507 done 5508fi 5509if test -z "$AR"; then 5510 ac_ct_AR=$AR 5511 for ac_prog in ar 5512do 5513 # Extract the first word of "$ac_prog", so it can be a program name with args. 5514set dummy $ac_prog; ac_word=$2 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5516$as_echo_n "checking for $ac_word... " >&6; } 5517if ${ac_cv_prog_ac_ct_AR+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 if test -n "$ac_ct_AR"; then 5521 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5522else 5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5524for as_dir in $PATH 5525do 5526 IFS=$as_save_IFS 5527 test -z "$as_dir" && as_dir=. 5528 for ac_exec_ext in '' $ac_executable_extensions; do 5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5530 ac_cv_prog_ac_ct_AR="$ac_prog" 5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5532 break 2 5533 fi 5534done 5535 done 5536IFS=$as_save_IFS 5537 5538fi 5539fi 5540ac_ct_AR=$ac_cv_prog_ac_ct_AR 5541if test -n "$ac_ct_AR"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5543$as_echo "$ac_ct_AR" >&6; } 5544else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546$as_echo "no" >&6; } 5547fi 5548 5549 5550 test -n "$ac_ct_AR" && break 5551done 5552 5553 if test "x$ac_ct_AR" = x; then 5554 AR="false" 5555 else 5556 case $cross_compiling:$ac_tool_warned in 5557yes:) 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5560ac_tool_warned=yes ;; 5561esac 5562 AR=$ac_ct_AR 5563 fi 5564fi 5565 5566: ${AR=ar} 5567: ${AR_FLAGS=cru} 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5580$as_echo_n "checking for archiver @FILE support... " >&6; } 5581if ${lt_cv_ar_at_file+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583else 5584 lt_cv_ar_at_file=no 5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5586/* end confdefs.h. */ 5587 5588int 5589main () 5590{ 5591 5592 ; 5593 return 0; 5594} 5595_ACEOF 5596if ac_fn_c_try_compile "$LINENO"; then : 5597 echo conftest.$ac_objext > conftest.lst 5598 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5600 (eval $lt_ar_try) 2>&5 5601 ac_status=$? 5602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5603 test $ac_status = 0; } 5604 if test "$ac_status" -eq 0; then 5605 # Ensure the archiver fails upon bogus file names. 5606 rm -f conftest.$ac_objext libconftest.a 5607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5608 (eval $lt_ar_try) 2>&5 5609 ac_status=$? 5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5611 test $ac_status = 0; } 5612 if test "$ac_status" -ne 0; then 5613 lt_cv_ar_at_file=@ 5614 fi 5615 fi 5616 rm -f conftest.* libconftest.a 5617 5618fi 5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5620 5621fi 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5623$as_echo "$lt_cv_ar_at_file" >&6; } 5624 5625if test "x$lt_cv_ar_at_file" = xno; then 5626 archiver_list_spec= 5627else 5628 archiver_list_spec=$lt_cv_ar_at_file 5629fi 5630 5631 5632 5633 5634 5635 5636 5637if test -n "$ac_tool_prefix"; then 5638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5639set dummy ${ac_tool_prefix}strip; ac_word=$2 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5641$as_echo_n "checking for $ac_word... " >&6; } 5642if ${ac_cv_prog_STRIP+:} false; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 if test -n "$STRIP"; then 5646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5647else 5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5649for as_dir in $PATH 5650do 5651 IFS=$as_save_IFS 5652 test -z "$as_dir" && as_dir=. 5653 for ac_exec_ext in '' $ac_executable_extensions; do 5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5655 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5657 break 2 5658 fi 5659done 5660 done 5661IFS=$as_save_IFS 5662 5663fi 5664fi 5665STRIP=$ac_cv_prog_STRIP 5666if test -n "$STRIP"; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5668$as_echo "$STRIP" >&6; } 5669else 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5671$as_echo "no" >&6; } 5672fi 5673 5674 5675fi 5676if test -z "$ac_cv_prog_STRIP"; then 5677 ac_ct_STRIP=$STRIP 5678 # Extract the first word of "strip", so it can be a program name with args. 5679set dummy strip; ac_word=$2 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5681$as_echo_n "checking for $ac_word... " >&6; } 5682if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 if test -n "$ac_ct_STRIP"; then 5686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5687else 5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689for as_dir in $PATH 5690do 5691 IFS=$as_save_IFS 5692 test -z "$as_dir" && as_dir=. 5693 for ac_exec_ext in '' $ac_executable_extensions; do 5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5695 ac_cv_prog_ac_ct_STRIP="strip" 5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5697 break 2 5698 fi 5699done 5700 done 5701IFS=$as_save_IFS 5702 5703fi 5704fi 5705ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5706if test -n "$ac_ct_STRIP"; then 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5708$as_echo "$ac_ct_STRIP" >&6; } 5709else 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5711$as_echo "no" >&6; } 5712fi 5713 5714 if test "x$ac_ct_STRIP" = x; then 5715 STRIP=":" 5716 else 5717 case $cross_compiling:$ac_tool_warned in 5718yes:) 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5721ac_tool_warned=yes ;; 5722esac 5723 STRIP=$ac_ct_STRIP 5724 fi 5725else 5726 STRIP="$ac_cv_prog_STRIP" 5727fi 5728 5729test -z "$STRIP" && STRIP=: 5730 5731 5732 5733 5734 5735 5736if test -n "$ac_tool_prefix"; then 5737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5738set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5740$as_echo_n "checking for $ac_word... " >&6; } 5741if ${ac_cv_prog_RANLIB+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 if test -n "$RANLIB"; then 5745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5746else 5747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5748for as_dir in $PATH 5749do 5750 IFS=$as_save_IFS 5751 test -z "$as_dir" && as_dir=. 5752 for ac_exec_ext in '' $ac_executable_extensions; do 5753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5756 break 2 5757 fi 5758done 5759 done 5760IFS=$as_save_IFS 5761 5762fi 5763fi 5764RANLIB=$ac_cv_prog_RANLIB 5765if test -n "$RANLIB"; then 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5767$as_echo "$RANLIB" >&6; } 5768else 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5770$as_echo "no" >&6; } 5771fi 5772 5773 5774fi 5775if test -z "$ac_cv_prog_RANLIB"; then 5776 ac_ct_RANLIB=$RANLIB 5777 # Extract the first word of "ranlib", so it can be a program name with args. 5778set dummy ranlib; ac_word=$2 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5780$as_echo_n "checking for $ac_word... " >&6; } 5781if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 if test -n "$ac_ct_RANLIB"; then 5785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5786else 5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5788for as_dir in $PATH 5789do 5790 IFS=$as_save_IFS 5791 test -z "$as_dir" && as_dir=. 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5794 ac_cv_prog_ac_ct_RANLIB="ranlib" 5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5796 break 2 5797 fi 5798done 5799 done 5800IFS=$as_save_IFS 5801 5802fi 5803fi 5804ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5805if test -n "$ac_ct_RANLIB"; then 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5807$as_echo "$ac_ct_RANLIB" >&6; } 5808else 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5810$as_echo "no" >&6; } 5811fi 5812 5813 if test "x$ac_ct_RANLIB" = x; then 5814 RANLIB=":" 5815 else 5816 case $cross_compiling:$ac_tool_warned in 5817yes:) 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5820ac_tool_warned=yes ;; 5821esac 5822 RANLIB=$ac_ct_RANLIB 5823 fi 5824else 5825 RANLIB="$ac_cv_prog_RANLIB" 5826fi 5827 5828test -z "$RANLIB" && RANLIB=: 5829 5830 5831 5832 5833 5834 5835# Determine commands to create old-style static archives. 5836old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5837old_postinstall_cmds='chmod 644 $oldlib' 5838old_postuninstall_cmds= 5839 5840if test -n "$RANLIB"; then 5841 case $host_os in 5842 openbsd*) 5843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5844 ;; 5845 *) 5846 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5847 ;; 5848 esac 5849 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5850fi 5851 5852case $host_os in 5853 darwin*) 5854 lock_old_archive_extraction=yes ;; 5855 *) 5856 lock_old_archive_extraction=no ;; 5857esac 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897# If no C compiler was specified, use CC. 5898LTCC=${LTCC-"$CC"} 5899 5900# If no C compiler flags were specified, use CFLAGS. 5901LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5902 5903# Allow CC to be a program name with arguments. 5904compiler=$CC 5905 5906 5907# Check for command to grab the raw symbol name followed by C symbol from nm. 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5909$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5910if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5911 $as_echo_n "(cached) " >&6 5912else 5913 5914# These are sane defaults that work on at least a few old systems. 5915# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5916 5917# Character class describing NM global symbol codes. 5918symcode='[BCDEGRST]' 5919 5920# Regexp to match symbols that can be accessed directly from C. 5921sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5922 5923# Define system-specific variables. 5924case $host_os in 5925aix*) 5926 symcode='[BCDT]' 5927 ;; 5928cygwin* | mingw* | pw32* | cegcc*) 5929 symcode='[ABCDGISTW]' 5930 ;; 5931hpux*) 5932 if test "$host_cpu" = ia64; then 5933 symcode='[ABCDEGRST]' 5934 fi 5935 ;; 5936irix* | nonstopux*) 5937 symcode='[BCDEGRST]' 5938 ;; 5939osf*) 5940 symcode='[BCDEGQRST]' 5941 ;; 5942solaris*) 5943 symcode='[BDRT]' 5944 ;; 5945sco3.2v5*) 5946 symcode='[DT]' 5947 ;; 5948sysv4.2uw2*) 5949 symcode='[DT]' 5950 ;; 5951sysv5* | sco5v6* | unixware* | OpenUNIX*) 5952 symcode='[ABDT]' 5953 ;; 5954sysv4) 5955 symcode='[DFNSTU]' 5956 ;; 5957esac 5958 5959# If we're using GNU nm, then use its standard symbol codes. 5960case `$NM -V 2>&1` in 5961*GNU* | *'with BFD'*) 5962 symcode='[ABCDGIRSTW]' ;; 5963esac 5964 5965# Transform an extracted symbol line into a proper C declaration. 5966# Some systems (esp. on ia64) link data and code symbols differently, 5967# so use this general approach. 5968lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5969 5970# Transform an extracted symbol line into symbol name and symbol address 5971lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5972lt_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'" 5973 5974# Handle CRLF in mingw tool chain 5975opt_cr= 5976case $build_os in 5977mingw*) 5978 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5979 ;; 5980esac 5981 5982# Try without a prefix underscore, then with it. 5983for ac_symprfx in "" "_"; do 5984 5985 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5986 symxfrm="\\1 $ac_symprfx\\2 \\2" 5987 5988 # Write the raw and C identifiers. 5989 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5990 # Fake it for dumpbin and say T for any non-static function 5991 # and D for any global variable. 5992 # Also find C++ and __fastcall symbols from MSVC++, 5993 # which start with @ or ?. 5994 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5995" {last_section=section; section=\$ 3};"\ 5996" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5997" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5998" \$ 0!~/External *\|/{next};"\ 5999" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6000" {if(hide[section]) next};"\ 6001" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6002" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6003" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6004" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6005" ' prfx=^$ac_symprfx" 6006 else 6007 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6008 fi 6009 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6010 6011 # Check to see that the pipe works correctly. 6012 pipe_works=no 6013 6014 rm -f conftest* 6015 cat > conftest.$ac_ext <<_LT_EOF 6016#ifdef __cplusplus 6017extern "C" { 6018#endif 6019char nm_test_var; 6020void nm_test_func(void); 6021void nm_test_func(void){} 6022#ifdef __cplusplus 6023} 6024#endif 6025int main(){nm_test_var='a';nm_test_func();return(0);} 6026_LT_EOF 6027 6028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6029 (eval $ac_compile) 2>&5 6030 ac_status=$? 6031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6032 test $ac_status = 0; }; then 6033 # Now try to grab the symbols. 6034 nlist=conftest.nm 6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6036 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6037 ac_status=$? 6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6039 test $ac_status = 0; } && test -s "$nlist"; then 6040 # Try sorting and uniquifying the output. 6041 if sort "$nlist" | uniq > "$nlist"T; then 6042 mv -f "$nlist"T "$nlist" 6043 else 6044 rm -f "$nlist"T 6045 fi 6046 6047 # Make sure that we snagged all the symbols we need. 6048 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6049 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6050 cat <<_LT_EOF > conftest.$ac_ext 6051/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6052#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6053/* DATA imports from DLLs on WIN32 con't be const, because runtime 6054 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6055# define LT_DLSYM_CONST 6056#elif defined(__osf__) 6057/* This system does not cope well with relocations in const data. */ 6058# define LT_DLSYM_CONST 6059#else 6060# define LT_DLSYM_CONST const 6061#endif 6062 6063#ifdef __cplusplus 6064extern "C" { 6065#endif 6066 6067_LT_EOF 6068 # Now generate the symbol file. 6069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6070 6071 cat <<_LT_EOF >> conftest.$ac_ext 6072 6073/* The mapping between symbol names and symbols. */ 6074LT_DLSYM_CONST struct { 6075 const char *name; 6076 void *address; 6077} 6078lt__PROGRAM__LTX_preloaded_symbols[] = 6079{ 6080 { "@PROGRAM@", (void *) 0 }, 6081_LT_EOF 6082 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6083 cat <<\_LT_EOF >> conftest.$ac_ext 6084 {0, (void *) 0} 6085}; 6086 6087/* This works around a problem in FreeBSD linker */ 6088#ifdef FREEBSD_WORKAROUND 6089static const void *lt_preloaded_setup() { 6090 return lt__PROGRAM__LTX_preloaded_symbols; 6091} 6092#endif 6093 6094#ifdef __cplusplus 6095} 6096#endif 6097_LT_EOF 6098 # Now try linking the two files. 6099 mv conftest.$ac_objext conftstm.$ac_objext 6100 lt_globsym_save_LIBS=$LIBS 6101 lt_globsym_save_CFLAGS=$CFLAGS 6102 LIBS="conftstm.$ac_objext" 6103 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6105 (eval $ac_link) 2>&5 6106 ac_status=$? 6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6108 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6109 pipe_works=yes 6110 fi 6111 LIBS=$lt_globsym_save_LIBS 6112 CFLAGS=$lt_globsym_save_CFLAGS 6113 else 6114 echo "cannot find nm_test_func in $nlist" >&5 6115 fi 6116 else 6117 echo "cannot find nm_test_var in $nlist" >&5 6118 fi 6119 else 6120 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6121 fi 6122 else 6123 echo "$progname: failed program was:" >&5 6124 cat conftest.$ac_ext >&5 6125 fi 6126 rm -rf conftest* conftst* 6127 6128 # Do not use the global_symbol_pipe unless it works. 6129 if test "$pipe_works" = yes; then 6130 break 6131 else 6132 lt_cv_sys_global_symbol_pipe= 6133 fi 6134done 6135 6136fi 6137 6138if test -z "$lt_cv_sys_global_symbol_pipe"; then 6139 lt_cv_sys_global_symbol_to_cdecl= 6140fi 6141if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6143$as_echo "failed" >&6; } 6144else 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6146$as_echo "ok" >&6; } 6147fi 6148 6149# Response file support. 6150if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6151 nm_file_list_spec='@' 6152elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6153 nm_file_list_spec='@' 6154fi 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6183$as_echo_n "checking for sysroot... " >&6; } 6184 6185# Check whether --with-sysroot was given. 6186if test "${with_sysroot+set}" = set; then : 6187 withval=$with_sysroot; 6188else 6189 with_sysroot=no 6190fi 6191 6192 6193lt_sysroot= 6194case ${with_sysroot} in #( 6195 yes) 6196 if test "$GCC" = yes; then 6197 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6198 fi 6199 ;; #( 6200 /*) 6201 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6202 ;; #( 6203 no|'') 6204 ;; #( 6205 *) 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6207$as_echo "${with_sysroot}" >&6; } 6208 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6209 ;; 6210esac 6211 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6213$as_echo "${lt_sysroot:-no}" >&6; } 6214 6215 6216 6217 6218 6219# Check whether --enable-libtool-lock was given. 6220if test "${enable_libtool_lock+set}" = set; then : 6221 enableval=$enable_libtool_lock; 6222fi 6223 6224test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6225 6226# Some flags need to be propagated to the compiler or linker for good 6227# libtool support. 6228case $host in 6229ia64-*-hpux*) 6230 # Find out which ABI we are using. 6231 echo 'int i;' > conftest.$ac_ext 6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6233 (eval $ac_compile) 2>&5 6234 ac_status=$? 6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6236 test $ac_status = 0; }; then 6237 case `/usr/bin/file conftest.$ac_objext` in 6238 *ELF-32*) 6239 HPUX_IA64_MODE="32" 6240 ;; 6241 *ELF-64*) 6242 HPUX_IA64_MODE="64" 6243 ;; 6244 esac 6245 fi 6246 rm -rf conftest* 6247 ;; 6248*-*-irix6*) 6249 # Find out which ABI we are using. 6250 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6252 (eval $ac_compile) 2>&5 6253 ac_status=$? 6254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6255 test $ac_status = 0; }; then 6256 if test "$lt_cv_prog_gnu_ld" = yes; then 6257 case `/usr/bin/file conftest.$ac_objext` in 6258 *32-bit*) 6259 LD="${LD-ld} -melf32bsmip" 6260 ;; 6261 *N32*) 6262 LD="${LD-ld} -melf32bmipn32" 6263 ;; 6264 *64-bit*) 6265 LD="${LD-ld} -melf64bmip" 6266 ;; 6267 esac 6268 else 6269 case `/usr/bin/file conftest.$ac_objext` in 6270 *32-bit*) 6271 LD="${LD-ld} -32" 6272 ;; 6273 *N32*) 6274 LD="${LD-ld} -n32" 6275 ;; 6276 *64-bit*) 6277 LD="${LD-ld} -64" 6278 ;; 6279 esac 6280 fi 6281 fi 6282 rm -rf conftest* 6283 ;; 6284 6285x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6286s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6287 # Find out which ABI we are using. 6288 echo 'int i;' > conftest.$ac_ext 6289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6290 (eval $ac_compile) 2>&5 6291 ac_status=$? 6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6293 test $ac_status = 0; }; then 6294 case `/usr/bin/file conftest.o` in 6295 *32-bit*) 6296 case $host in 6297 x86_64-*kfreebsd*-gnu) 6298 LD="${LD-ld} -m elf_i386_fbsd" 6299 ;; 6300 x86_64-*linux*) 6301 LD="${LD-ld} -m elf_i386" 6302 ;; 6303 powerpc64le-*linux*) 6304 LD="${LD-ld} -m elf32lppclinux" 6305 ;; 6306 powerpc64-*linux*) 6307 LD="${LD-ld} -m elf32ppclinux" 6308 ;; 6309 s390x-*linux*) 6310 LD="${LD-ld} -m elf_s390" 6311 ;; 6312 sparc64-*linux*) 6313 LD="${LD-ld} -m elf32_sparc" 6314 ;; 6315 esac 6316 ;; 6317 *64-bit*) 6318 case $host in 6319 x86_64-*kfreebsd*-gnu) 6320 LD="${LD-ld} -m elf_x86_64_fbsd" 6321 ;; 6322 x86_64-*linux*) 6323 LD="${LD-ld} -m elf_x86_64" 6324 ;; 6325 powerpcle-*linux*) 6326 LD="${LD-ld} -m elf64lppc" 6327 ;; 6328 powerpc-*linux*) 6329 LD="${LD-ld} -m elf64ppc" 6330 ;; 6331 s390*-*linux*|s390*-*tpf*) 6332 LD="${LD-ld} -m elf64_s390" 6333 ;; 6334 sparc*-*linux*) 6335 LD="${LD-ld} -m elf64_sparc" 6336 ;; 6337 esac 6338 ;; 6339 esac 6340 fi 6341 rm -rf conftest* 6342 ;; 6343 6344*-*-sco3.2v5*) 6345 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6346 SAVE_CFLAGS="$CFLAGS" 6347 CFLAGS="$CFLAGS -belf" 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6349$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6350if ${lt_cv_cc_needs_belf+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 ac_ext=c 6354ac_cpp='$CPP $CPPFLAGS' 6355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6357ac_compiler_gnu=$ac_cv_c_compiler_gnu 6358 6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6360/* end confdefs.h. */ 6361 6362int 6363main () 6364{ 6365 6366 ; 6367 return 0; 6368} 6369_ACEOF 6370if ac_fn_c_try_link "$LINENO"; then : 6371 lt_cv_cc_needs_belf=yes 6372else 6373 lt_cv_cc_needs_belf=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext \ 6376 conftest$ac_exeext conftest.$ac_ext 6377 ac_ext=c 6378ac_cpp='$CPP $CPPFLAGS' 6379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6381ac_compiler_gnu=$ac_cv_c_compiler_gnu 6382 6383fi 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6385$as_echo "$lt_cv_cc_needs_belf" >&6; } 6386 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6387 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6388 CFLAGS="$SAVE_CFLAGS" 6389 fi 6390 ;; 6391*-*solaris*) 6392 # Find out which ABI we are using. 6393 echo 'int i;' > conftest.$ac_ext 6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6395 (eval $ac_compile) 2>&5 6396 ac_status=$? 6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6398 test $ac_status = 0; }; then 6399 case `/usr/bin/file conftest.o` in 6400 *64-bit*) 6401 case $lt_cv_prog_gnu_ld in 6402 yes*) 6403 case $host in 6404 i?86-*-solaris*) 6405 LD="${LD-ld} -m elf_x86_64" 6406 ;; 6407 sparc*-*-solaris*) 6408 LD="${LD-ld} -m elf64_sparc" 6409 ;; 6410 esac 6411 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6412 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6413 LD="${LD-ld}_sol2" 6414 fi 6415 ;; 6416 *) 6417 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6418 LD="${LD-ld} -64" 6419 fi 6420 ;; 6421 esac 6422 ;; 6423 esac 6424 fi 6425 rm -rf conftest* 6426 ;; 6427esac 6428 6429need_locks="$enable_libtool_lock" 6430 6431if test -n "$ac_tool_prefix"; then 6432 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6433set dummy ${ac_tool_prefix}mt; ac_word=$2 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435$as_echo_n "checking for $ac_word... " >&6; } 6436if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 if test -n "$MANIFEST_TOOL"; then 6440 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6441else 6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443for as_dir in $PATH 6444do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6449 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453done 6454 done 6455IFS=$as_save_IFS 6456 6457fi 6458fi 6459MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6460if test -n "$MANIFEST_TOOL"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6462$as_echo "$MANIFEST_TOOL" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465$as_echo "no" >&6; } 6466fi 6467 6468 6469fi 6470if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6471 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6472 # Extract the first word of "mt", so it can be a program name with args. 6473set dummy mt; ac_word=$2 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6475$as_echo_n "checking for $ac_word... " >&6; } 6476if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6477 $as_echo_n "(cached) " >&6 6478else 6479 if test -n "$ac_ct_MANIFEST_TOOL"; then 6480 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6481else 6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483for as_dir in $PATH 6484do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6489 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493done 6494 done 6495IFS=$as_save_IFS 6496 6497fi 6498fi 6499ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6500if test -n "$ac_ct_MANIFEST_TOOL"; then 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6502$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6503else 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6505$as_echo "no" >&6; } 6506fi 6507 6508 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6509 MANIFEST_TOOL=":" 6510 else 6511 case $cross_compiling:$ac_tool_warned in 6512yes:) 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6515ac_tool_warned=yes ;; 6516esac 6517 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6518 fi 6519else 6520 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6521fi 6522 6523test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6525$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6526if ${lt_cv_path_mainfest_tool+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 lt_cv_path_mainfest_tool=no 6530 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6531 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6532 cat conftest.err >&5 6533 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6534 lt_cv_path_mainfest_tool=yes 6535 fi 6536 rm -f conftest* 6537fi 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6539$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6540if test "x$lt_cv_path_mainfest_tool" != xyes; then 6541 MANIFEST_TOOL=: 6542fi 6543 6544 6545 6546 6547 6548 6549 case $host_os in 6550 rhapsody* | darwin*) 6551 if test -n "$ac_tool_prefix"; then 6552 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6553set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6555$as_echo_n "checking for $ac_word... " >&6; } 6556if ${ac_cv_prog_DSYMUTIL+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 if test -n "$DSYMUTIL"; then 6560 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6561else 6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563for as_dir in $PATH 6564do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6569 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573done 6574 done 6575IFS=$as_save_IFS 6576 6577fi 6578fi 6579DSYMUTIL=$ac_cv_prog_DSYMUTIL 6580if test -n "$DSYMUTIL"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6582$as_echo "$DSYMUTIL" >&6; } 6583else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585$as_echo "no" >&6; } 6586fi 6587 6588 6589fi 6590if test -z "$ac_cv_prog_DSYMUTIL"; then 6591 ac_ct_DSYMUTIL=$DSYMUTIL 6592 # Extract the first word of "dsymutil", so it can be a program name with args. 6593set dummy dsymutil; ac_word=$2 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6595$as_echo_n "checking for $ac_word... " >&6; } 6596if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 if test -n "$ac_ct_DSYMUTIL"; then 6600 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6601else 6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6603for as_dir in $PATH 6604do 6605 IFS=$as_save_IFS 6606 test -z "$as_dir" && as_dir=. 6607 for ac_exec_ext in '' $ac_executable_extensions; do 6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6609 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6611 break 2 6612 fi 6613done 6614 done 6615IFS=$as_save_IFS 6616 6617fi 6618fi 6619ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6620if test -n "$ac_ct_DSYMUTIL"; then 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6622$as_echo "$ac_ct_DSYMUTIL" >&6; } 6623else 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6625$as_echo "no" >&6; } 6626fi 6627 6628 if test "x$ac_ct_DSYMUTIL" = x; then 6629 DSYMUTIL=":" 6630 else 6631 case $cross_compiling:$ac_tool_warned in 6632yes:) 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6635ac_tool_warned=yes ;; 6636esac 6637 DSYMUTIL=$ac_ct_DSYMUTIL 6638 fi 6639else 6640 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6641fi 6642 6643 if test -n "$ac_tool_prefix"; then 6644 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6645set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6647$as_echo_n "checking for $ac_word... " >&6; } 6648if ${ac_cv_prog_NMEDIT+:} false; then : 6649 $as_echo_n "(cached) " >&6 6650else 6651 if test -n "$NMEDIT"; then 6652 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6653else 6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6655for as_dir in $PATH 6656do 6657 IFS=$as_save_IFS 6658 test -z "$as_dir" && as_dir=. 6659 for ac_exec_ext in '' $ac_executable_extensions; do 6660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6661 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6663 break 2 6664 fi 6665done 6666 done 6667IFS=$as_save_IFS 6668 6669fi 6670fi 6671NMEDIT=$ac_cv_prog_NMEDIT 6672if test -n "$NMEDIT"; then 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6674$as_echo "$NMEDIT" >&6; } 6675else 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677$as_echo "no" >&6; } 6678fi 6679 6680 6681fi 6682if test -z "$ac_cv_prog_NMEDIT"; then 6683 ac_ct_NMEDIT=$NMEDIT 6684 # Extract the first word of "nmedit", so it can be a program name with args. 6685set dummy nmedit; ac_word=$2 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6687$as_echo_n "checking for $ac_word... " >&6; } 6688if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6689 $as_echo_n "(cached) " >&6 6690else 6691 if test -n "$ac_ct_NMEDIT"; then 6692 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6693else 6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695for as_dir in $PATH 6696do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6701 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705done 6706 done 6707IFS=$as_save_IFS 6708 6709fi 6710fi 6711ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6712if test -n "$ac_ct_NMEDIT"; then 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6714$as_echo "$ac_ct_NMEDIT" >&6; } 6715else 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6717$as_echo "no" >&6; } 6718fi 6719 6720 if test "x$ac_ct_NMEDIT" = x; then 6721 NMEDIT=":" 6722 else 6723 case $cross_compiling:$ac_tool_warned in 6724yes:) 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6727ac_tool_warned=yes ;; 6728esac 6729 NMEDIT=$ac_ct_NMEDIT 6730 fi 6731else 6732 NMEDIT="$ac_cv_prog_NMEDIT" 6733fi 6734 6735 if test -n "$ac_tool_prefix"; then 6736 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6737set dummy ${ac_tool_prefix}lipo; ac_word=$2 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6739$as_echo_n "checking for $ac_word... " >&6; } 6740if ${ac_cv_prog_LIPO+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 if test -n "$LIPO"; then 6744 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6745else 6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6747for as_dir in $PATH 6748do 6749 IFS=$as_save_IFS 6750 test -z "$as_dir" && as_dir=. 6751 for ac_exec_ext in '' $ac_executable_extensions; do 6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6753 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6755 break 2 6756 fi 6757done 6758 done 6759IFS=$as_save_IFS 6760 6761fi 6762fi 6763LIPO=$ac_cv_prog_LIPO 6764if test -n "$LIPO"; then 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6766$as_echo "$LIPO" >&6; } 6767else 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6769$as_echo "no" >&6; } 6770fi 6771 6772 6773fi 6774if test -z "$ac_cv_prog_LIPO"; then 6775 ac_ct_LIPO=$LIPO 6776 # Extract the first word of "lipo", so it can be a program name with args. 6777set dummy lipo; ac_word=$2 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6779$as_echo_n "checking for $ac_word... " >&6; } 6780if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 if test -n "$ac_ct_LIPO"; then 6784 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6785else 6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6787for as_dir in $PATH 6788do 6789 IFS=$as_save_IFS 6790 test -z "$as_dir" && as_dir=. 6791 for ac_exec_ext in '' $ac_executable_extensions; do 6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6793 ac_cv_prog_ac_ct_LIPO="lipo" 6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6795 break 2 6796 fi 6797done 6798 done 6799IFS=$as_save_IFS 6800 6801fi 6802fi 6803ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6804if test -n "$ac_ct_LIPO"; then 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6806$as_echo "$ac_ct_LIPO" >&6; } 6807else 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809$as_echo "no" >&6; } 6810fi 6811 6812 if test "x$ac_ct_LIPO" = x; then 6813 LIPO=":" 6814 else 6815 case $cross_compiling:$ac_tool_warned in 6816yes:) 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6819ac_tool_warned=yes ;; 6820esac 6821 LIPO=$ac_ct_LIPO 6822 fi 6823else 6824 LIPO="$ac_cv_prog_LIPO" 6825fi 6826 6827 if test -n "$ac_tool_prefix"; then 6828 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6829set dummy ${ac_tool_prefix}otool; ac_word=$2 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6831$as_echo_n "checking for $ac_word... " >&6; } 6832if ${ac_cv_prog_OTOOL+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834else 6835 if test -n "$OTOOL"; then 6836 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6837else 6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6839for as_dir in $PATH 6840do 6841 IFS=$as_save_IFS 6842 test -z "$as_dir" && as_dir=. 6843 for ac_exec_ext in '' $ac_executable_extensions; do 6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6845 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6847 break 2 6848 fi 6849done 6850 done 6851IFS=$as_save_IFS 6852 6853fi 6854fi 6855OTOOL=$ac_cv_prog_OTOOL 6856if test -n "$OTOOL"; then 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6858$as_echo "$OTOOL" >&6; } 6859else 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6861$as_echo "no" >&6; } 6862fi 6863 6864 6865fi 6866if test -z "$ac_cv_prog_OTOOL"; then 6867 ac_ct_OTOOL=$OTOOL 6868 # Extract the first word of "otool", so it can be a program name with args. 6869set dummy otool; ac_word=$2 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6871$as_echo_n "checking for $ac_word... " >&6; } 6872if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874else 6875 if test -n "$ac_ct_OTOOL"; then 6876 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6877else 6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6879for as_dir in $PATH 6880do 6881 IFS=$as_save_IFS 6882 test -z "$as_dir" && as_dir=. 6883 for ac_exec_ext in '' $ac_executable_extensions; do 6884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6885 ac_cv_prog_ac_ct_OTOOL="otool" 6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6887 break 2 6888 fi 6889done 6890 done 6891IFS=$as_save_IFS 6892 6893fi 6894fi 6895ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6896if test -n "$ac_ct_OTOOL"; then 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6898$as_echo "$ac_ct_OTOOL" >&6; } 6899else 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6901$as_echo "no" >&6; } 6902fi 6903 6904 if test "x$ac_ct_OTOOL" = x; then 6905 OTOOL=":" 6906 else 6907 case $cross_compiling:$ac_tool_warned in 6908yes:) 6909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6911ac_tool_warned=yes ;; 6912esac 6913 OTOOL=$ac_ct_OTOOL 6914 fi 6915else 6916 OTOOL="$ac_cv_prog_OTOOL" 6917fi 6918 6919 if test -n "$ac_tool_prefix"; then 6920 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6921set dummy ${ac_tool_prefix}otool64; ac_word=$2 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6923$as_echo_n "checking for $ac_word... " >&6; } 6924if ${ac_cv_prog_OTOOL64+:} false; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 if test -n "$OTOOL64"; then 6928 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6929else 6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6931for as_dir in $PATH 6932do 6933 IFS=$as_save_IFS 6934 test -z "$as_dir" && as_dir=. 6935 for ac_exec_ext in '' $ac_executable_extensions; do 6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6937 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6939 break 2 6940 fi 6941done 6942 done 6943IFS=$as_save_IFS 6944 6945fi 6946fi 6947OTOOL64=$ac_cv_prog_OTOOL64 6948if test -n "$OTOOL64"; then 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6950$as_echo "$OTOOL64" >&6; } 6951else 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6953$as_echo "no" >&6; } 6954fi 6955 6956 6957fi 6958if test -z "$ac_cv_prog_OTOOL64"; then 6959 ac_ct_OTOOL64=$OTOOL64 6960 # Extract the first word of "otool64", so it can be a program name with args. 6961set dummy otool64; ac_word=$2 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963$as_echo_n "checking for $ac_word... " >&6; } 6964if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test -n "$ac_ct_OTOOL64"; then 6968 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6977 ac_cv_prog_ac_ct_OTOOL64="otool64" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi 6986fi 6987ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6988if test -n "$ac_ct_OTOOL64"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6990$as_echo "$ac_ct_OTOOL64" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993$as_echo "no" >&6; } 6994fi 6995 6996 if test "x$ac_ct_OTOOL64" = x; then 6997 OTOOL64=":" 6998 else 6999 case $cross_compiling:$ac_tool_warned in 7000yes:) 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7003ac_tool_warned=yes ;; 7004esac 7005 OTOOL64=$ac_ct_OTOOL64 7006 fi 7007else 7008 OTOOL64="$ac_cv_prog_OTOOL64" 7009fi 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7038$as_echo_n "checking for -single_module linker flag... " >&6; } 7039if ${lt_cv_apple_cc_single_mod+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 lt_cv_apple_cc_single_mod=no 7043 if test -z "${LT_MULTI_MODULE}"; then 7044 # By default we will add the -single_module flag. You can override 7045 # by either setting the environment variable LT_MULTI_MODULE 7046 # non-empty at configure time, or by adding -multi_module to the 7047 # link flags. 7048 rm -rf libconftest.dylib* 7049 echo "int foo(void){return 1;}" > conftest.c 7050 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7051-dynamiclib -Wl,-single_module conftest.c" >&5 7052 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7053 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7054 _lt_result=$? 7055 # If there is a non-empty error log, and "single_module" 7056 # appears in it, assume the flag caused a linker warning 7057 if test -s conftest.err && $GREP single_module conftest.err; then 7058 cat conftest.err >&5 7059 # Otherwise, if the output was created with a 0 exit code from 7060 # the compiler, it worked. 7061 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7062 lt_cv_apple_cc_single_mod=yes 7063 else 7064 cat conftest.err >&5 7065 fi 7066 rm -rf libconftest.dylib* 7067 rm -f conftest.* 7068 fi 7069fi 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7071$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7072 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7074$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7075if ${lt_cv_ld_exported_symbols_list+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 lt_cv_ld_exported_symbols_list=no 7079 save_LDFLAGS=$LDFLAGS 7080 echo "_main" > conftest.sym 7081 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083/* end confdefs.h. */ 7084 7085int 7086main () 7087{ 7088 7089 ; 7090 return 0; 7091} 7092_ACEOF 7093if ac_fn_c_try_link "$LINENO"; then : 7094 lt_cv_ld_exported_symbols_list=yes 7095else 7096 lt_cv_ld_exported_symbols_list=no 7097fi 7098rm -f core conftest.err conftest.$ac_objext \ 7099 conftest$ac_exeext conftest.$ac_ext 7100 LDFLAGS="$save_LDFLAGS" 7101 7102fi 7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7104$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7105 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7107$as_echo_n "checking for -force_load linker flag... " >&6; } 7108if ${lt_cv_ld_force_load+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 lt_cv_ld_force_load=no 7112 cat > conftest.c << _LT_EOF 7113int forced_loaded() { return 2;} 7114_LT_EOF 7115 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7116 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7117 echo "$AR cru libconftest.a conftest.o" >&5 7118 $AR cru libconftest.a conftest.o 2>&5 7119 echo "$RANLIB libconftest.a" >&5 7120 $RANLIB libconftest.a 2>&5 7121 cat > conftest.c << _LT_EOF 7122int main() { return 0;} 7123_LT_EOF 7124 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7125 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7126 _lt_result=$? 7127 if test -s conftest.err && $GREP force_load conftest.err; then 7128 cat conftest.err >&5 7129 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7130 lt_cv_ld_force_load=yes 7131 else 7132 cat conftest.err >&5 7133 fi 7134 rm -f conftest.err libconftest.a conftest conftest.c 7135 rm -rf conftest.dSYM 7136 7137fi 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7139$as_echo "$lt_cv_ld_force_load" >&6; } 7140 case $host_os in 7141 rhapsody* | darwin1.[012]) 7142 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7143 darwin1.*) 7144 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7145 darwin*) # darwin 5.x on 7146 # if running on 10.5 or later, the deployment target defaults 7147 # to the OS version, if on x86, and 10.4, the deployment 7148 # target defaults to 10.4. Don't you love it? 7149 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7150 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7151 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7152 10.[012]*) 7153 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7154 10.*) 7155 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7156 esac 7157 ;; 7158 esac 7159 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7160 _lt_dar_single_mod='$single_module' 7161 fi 7162 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7163 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7164 else 7165 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7166 fi 7167 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7168 _lt_dsymutil='~$DSYMUTIL $lib || :' 7169 else 7170 _lt_dsymutil= 7171 fi 7172 ;; 7173 esac 7174 7175ac_ext=c 7176ac_cpp='$CPP $CPPFLAGS' 7177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7179ac_compiler_gnu=$ac_cv_c_compiler_gnu 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7181$as_echo_n "checking how to run the C preprocessor... " >&6; } 7182# On Suns, sometimes $CPP names a directory. 7183if test -n "$CPP" && test -d "$CPP"; then 7184 CPP= 7185fi 7186if test -z "$CPP"; then 7187 if ${ac_cv_prog_CPP+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 # Double quotes because CPP needs to be expanded 7191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7192 do 7193 ac_preproc_ok=false 7194for ac_c_preproc_warn_flag in '' yes 7195do 7196 # Use a header file that comes with gcc, so configuring glibc 7197 # with a fresh cross-compiler works. 7198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7199 # <limits.h> exists even on freestanding compilers. 7200 # On the NeXT, cc -E runs the code through the compiler's parser, 7201 # not just through cpp. "Syntax error" is here to catch this case. 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204#ifdef __STDC__ 7205# include <limits.h> 7206#else 7207# include <assert.h> 7208#endif 7209 Syntax error 7210_ACEOF 7211if ac_fn_c_try_cpp "$LINENO"; then : 7212 7213else 7214 # Broken: fails on valid input. 7215continue 7216fi 7217rm -f conftest.err conftest.i conftest.$ac_ext 7218 7219 # OK, works on sane cases. Now check whether nonexistent headers 7220 # can be detected and how. 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222/* end confdefs.h. */ 7223#include <ac_nonexistent.h> 7224_ACEOF 7225if ac_fn_c_try_cpp "$LINENO"; then : 7226 # Broken: success on invalid input. 7227continue 7228else 7229 # Passes both tests. 7230ac_preproc_ok=: 7231break 7232fi 7233rm -f conftest.err conftest.i conftest.$ac_ext 7234 7235done 7236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7237rm -f conftest.i conftest.err conftest.$ac_ext 7238if $ac_preproc_ok; then : 7239 break 7240fi 7241 7242 done 7243 ac_cv_prog_CPP=$CPP 7244 7245fi 7246 CPP=$ac_cv_prog_CPP 7247else 7248 ac_cv_prog_CPP=$CPP 7249fi 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7251$as_echo "$CPP" >&6; } 7252ac_preproc_ok=false 7253for ac_c_preproc_warn_flag in '' yes 7254do 7255 # Use a header file that comes with gcc, so configuring glibc 7256 # with a fresh cross-compiler works. 7257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7258 # <limits.h> exists even on freestanding compilers. 7259 # On the NeXT, cc -E runs the code through the compiler's parser, 7260 # not just through cpp. "Syntax error" is here to catch this case. 7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7262/* end confdefs.h. */ 7263#ifdef __STDC__ 7264# include <limits.h> 7265#else 7266# include <assert.h> 7267#endif 7268 Syntax error 7269_ACEOF 7270if ac_fn_c_try_cpp "$LINENO"; then : 7271 7272else 7273 # Broken: fails on valid input. 7274continue 7275fi 7276rm -f conftest.err conftest.i conftest.$ac_ext 7277 7278 # OK, works on sane cases. Now check whether nonexistent headers 7279 # can be detected and how. 7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7281/* end confdefs.h. */ 7282#include <ac_nonexistent.h> 7283_ACEOF 7284if ac_fn_c_try_cpp "$LINENO"; then : 7285 # Broken: success on invalid input. 7286continue 7287else 7288 # Passes both tests. 7289ac_preproc_ok=: 7290break 7291fi 7292rm -f conftest.err conftest.i conftest.$ac_ext 7293 7294done 7295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7296rm -f conftest.i conftest.err conftest.$ac_ext 7297if $ac_preproc_ok; then : 7298 7299else 7300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7302as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7303See \`config.log' for more details" "$LINENO" 5; } 7304fi 7305 7306ac_ext=c 7307ac_cpp='$CPP $CPPFLAGS' 7308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7310ac_compiler_gnu=$ac_cv_c_compiler_gnu 7311 7312 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7314$as_echo_n "checking for ANSI C header files... " >&6; } 7315if ${ac_cv_header_stdc+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7319/* end confdefs.h. */ 7320#include <stdlib.h> 7321#include <stdarg.h> 7322#include <string.h> 7323#include <float.h> 7324 7325int 7326main () 7327{ 7328 7329 ; 7330 return 0; 7331} 7332_ACEOF 7333if ac_fn_c_try_compile "$LINENO"; then : 7334 ac_cv_header_stdc=yes 7335else 7336 ac_cv_header_stdc=no 7337fi 7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7339 7340if test $ac_cv_header_stdc = yes; then 7341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7343/* end confdefs.h. */ 7344#include <string.h> 7345 7346_ACEOF 7347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7348 $EGREP "memchr" >/dev/null 2>&1; then : 7349 7350else 7351 ac_cv_header_stdc=no 7352fi 7353rm -f conftest* 7354 7355fi 7356 7357if test $ac_cv_header_stdc = yes; then 7358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361#include <stdlib.h> 7362 7363_ACEOF 7364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7365 $EGREP "free" >/dev/null 2>&1; then : 7366 7367else 7368 ac_cv_header_stdc=no 7369fi 7370rm -f conftest* 7371 7372fi 7373 7374if test $ac_cv_header_stdc = yes; then 7375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7376 if test "$cross_compiling" = yes; then : 7377 : 7378else 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380/* end confdefs.h. */ 7381#include <ctype.h> 7382#include <stdlib.h> 7383#if ((' ' & 0x0FF) == 0x020) 7384# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7385# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7386#else 7387# define ISLOWER(c) \ 7388 (('a' <= (c) && (c) <= 'i') \ 7389 || ('j' <= (c) && (c) <= 'r') \ 7390 || ('s' <= (c) && (c) <= 'z')) 7391# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7392#endif 7393 7394#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7395int 7396main () 7397{ 7398 int i; 7399 for (i = 0; i < 256; i++) 7400 if (XOR (islower (i), ISLOWER (i)) 7401 || toupper (i) != TOUPPER (i)) 7402 return 2; 7403 return 0; 7404} 7405_ACEOF 7406if ac_fn_c_try_run "$LINENO"; then : 7407 7408else 7409 ac_cv_header_stdc=no 7410fi 7411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7412 conftest.$ac_objext conftest.beam conftest.$ac_ext 7413fi 7414 7415fi 7416fi 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7418$as_echo "$ac_cv_header_stdc" >&6; } 7419if test $ac_cv_header_stdc = yes; then 7420 7421$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7422 7423fi 7424 7425# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7426for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7427 inttypes.h stdint.h unistd.h 7428do : 7429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7430ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7431" 7432if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7433 cat >>confdefs.h <<_ACEOF 7434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7435_ACEOF 7436 7437fi 7438 7439done 7440 7441 7442for ac_header in dlfcn.h 7443do : 7444 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7445" 7446if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7447 cat >>confdefs.h <<_ACEOF 7448#define HAVE_DLFCN_H 1 7449_ACEOF 7450 7451fi 7452 7453done 7454 7455 7456 7457 7458 7459# Set options 7460 7461 7462 7463 enable_dlopen=no 7464 7465 7466 enable_win32_dll=no 7467 7468 7469 # Check whether --enable-shared was given. 7470if test "${enable_shared+set}" = set; then : 7471 enableval=$enable_shared; p=${PACKAGE-default} 7472 case $enableval in 7473 yes) enable_shared=yes ;; 7474 no) enable_shared=no ;; 7475 *) 7476 enable_shared=no 7477 # Look at the argument we got. We use all the common list separators. 7478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7479 for pkg in $enableval; do 7480 IFS="$lt_save_ifs" 7481 if test "X$pkg" = "X$p"; then 7482 enable_shared=yes 7483 fi 7484 done 7485 IFS="$lt_save_ifs" 7486 ;; 7487 esac 7488else 7489 enable_shared=yes 7490fi 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 # Check whether --enable-static was given. 7501if test "${enable_static+set}" = set; then : 7502 enableval=$enable_static; p=${PACKAGE-default} 7503 case $enableval in 7504 yes) enable_static=yes ;; 7505 no) enable_static=no ;; 7506 *) 7507 enable_static=no 7508 # Look at the argument we got. We use all the common list separators. 7509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7510 for pkg in $enableval; do 7511 IFS="$lt_save_ifs" 7512 if test "X$pkg" = "X$p"; then 7513 enable_static=yes 7514 fi 7515 done 7516 IFS="$lt_save_ifs" 7517 ;; 7518 esac 7519else 7520 enable_static=yes 7521fi 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532# Check whether --with-pic was given. 7533if test "${with_pic+set}" = set; then : 7534 withval=$with_pic; lt_p=${PACKAGE-default} 7535 case $withval in 7536 yes|no) pic_mode=$withval ;; 7537 *) 7538 pic_mode=default 7539 # Look at the argument we got. We use all the common list separators. 7540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7541 for lt_pkg in $withval; do 7542 IFS="$lt_save_ifs" 7543 if test "X$lt_pkg" = "X$lt_p"; then 7544 pic_mode=yes 7545 fi 7546 done 7547 IFS="$lt_save_ifs" 7548 ;; 7549 esac 7550else 7551 pic_mode=default 7552fi 7553 7554 7555test -z "$pic_mode" && pic_mode=default 7556 7557 7558 7559 7560 7561 7562 7563 # Check whether --enable-fast-install was given. 7564if test "${enable_fast_install+set}" = set; then : 7565 enableval=$enable_fast_install; p=${PACKAGE-default} 7566 case $enableval in 7567 yes) enable_fast_install=yes ;; 7568 no) enable_fast_install=no ;; 7569 *) 7570 enable_fast_install=no 7571 # Look at the argument we got. We use all the common list separators. 7572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7573 for pkg in $enableval; do 7574 IFS="$lt_save_ifs" 7575 if test "X$pkg" = "X$p"; then 7576 enable_fast_install=yes 7577 fi 7578 done 7579 IFS="$lt_save_ifs" 7580 ;; 7581 esac 7582else 7583 enable_fast_install=yes 7584fi 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596# This can be used to rebuild libtool when needed 7597LIBTOOL_DEPS="$ltmain" 7598 7599# Always use our own libtool. 7600LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631test -z "$LN_S" && LN_S="ln -s" 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646if test -n "${ZSH_VERSION+set}" ; then 7647 setopt NO_GLOB_SUBST 7648fi 7649 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7651$as_echo_n "checking for objdir... " >&6; } 7652if ${lt_cv_objdir+:} false; then : 7653 $as_echo_n "(cached) " >&6 7654else 7655 rm -f .libs 2>/dev/null 7656mkdir .libs 2>/dev/null 7657if test -d .libs; then 7658 lt_cv_objdir=.libs 7659else 7660 # MS-DOS does not allow filenames that begin with a dot. 7661 lt_cv_objdir=_libs 7662fi 7663rmdir .libs 2>/dev/null 7664fi 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7666$as_echo "$lt_cv_objdir" >&6; } 7667objdir=$lt_cv_objdir 7668 7669 7670 7671 7672 7673cat >>confdefs.h <<_ACEOF 7674#define LT_OBJDIR "$lt_cv_objdir/" 7675_ACEOF 7676 7677 7678 7679 7680case $host_os in 7681aix3*) 7682 # AIX sometimes has problems with the GCC collect2 program. For some 7683 # reason, if we set the COLLECT_NAMES environment variable, the problems 7684 # vanish in a puff of smoke. 7685 if test "X${COLLECT_NAMES+set}" != Xset; then 7686 COLLECT_NAMES= 7687 export COLLECT_NAMES 7688 fi 7689 ;; 7690esac 7691 7692# Global variables: 7693ofile=libtool 7694can_build_shared=yes 7695 7696# All known linkers require a `.a' archive for static linking (except MSVC, 7697# which needs '.lib'). 7698libext=a 7699 7700with_gnu_ld="$lt_cv_prog_gnu_ld" 7701 7702old_CC="$CC" 7703old_CFLAGS="$CFLAGS" 7704 7705# Set sane defaults for various variables 7706test -z "$CC" && CC=cc 7707test -z "$LTCC" && LTCC=$CC 7708test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7709test -z "$LD" && LD=ld 7710test -z "$ac_objext" && ac_objext=o 7711 7712for cc_temp in $compiler""; do 7713 case $cc_temp in 7714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7716 \-*) ;; 7717 *) break;; 7718 esac 7719done 7720cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7721 7722 7723# Only perform the check for file, if the check method requires it 7724test -z "$MAGIC_CMD" && MAGIC_CMD=file 7725case $deplibs_check_method in 7726file_magic*) 7727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7729$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7730if ${lt_cv_path_MAGIC_CMD+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732else 7733 case $MAGIC_CMD in 7734[\\/*] | ?:[\\/]*) 7735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7736 ;; 7737*) 7738 lt_save_MAGIC_CMD="$MAGIC_CMD" 7739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7741 for ac_dir in $ac_dummy; do 7742 IFS="$lt_save_ifs" 7743 test -z "$ac_dir" && ac_dir=. 7744 if test -f $ac_dir/${ac_tool_prefix}file; then 7745 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7746 if test -n "$file_magic_test_file"; then 7747 case $deplibs_check_method in 7748 "file_magic "*) 7749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7752 $EGREP "$file_magic_regex" > /dev/null; then 7753 : 7754 else 7755 cat <<_LT_EOF 1>&2 7756 7757*** Warning: the command libtool uses to detect shared libraries, 7758*** $file_magic_cmd, produces output that libtool cannot recognize. 7759*** The result is that libtool may fail to recognize shared libraries 7760*** as such. This will affect the creation of libtool libraries that 7761*** depend on shared libraries, but programs linked with such libtool 7762*** libraries will work regardless of this problem. Nevertheless, you 7763*** may want to report the problem to your system manager and/or to 7764*** bug-libtool@gnu.org 7765 7766_LT_EOF 7767 fi ;; 7768 esac 7769 fi 7770 break 7771 fi 7772 done 7773 IFS="$lt_save_ifs" 7774 MAGIC_CMD="$lt_save_MAGIC_CMD" 7775 ;; 7776esac 7777fi 7778 7779MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7780if test -n "$MAGIC_CMD"; then 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7782$as_echo "$MAGIC_CMD" >&6; } 7783else 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7785$as_echo "no" >&6; } 7786fi 7787 7788 7789 7790 7791 7792if test -z "$lt_cv_path_MAGIC_CMD"; then 7793 if test -n "$ac_tool_prefix"; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7795$as_echo_n "checking for file... " >&6; } 7796if ${lt_cv_path_MAGIC_CMD+:} false; then : 7797 $as_echo_n "(cached) " >&6 7798else 7799 case $MAGIC_CMD in 7800[\\/*] | ?:[\\/]*) 7801 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7802 ;; 7803*) 7804 lt_save_MAGIC_CMD="$MAGIC_CMD" 7805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7807 for ac_dir in $ac_dummy; do 7808 IFS="$lt_save_ifs" 7809 test -z "$ac_dir" && ac_dir=. 7810 if test -f $ac_dir/file; then 7811 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7812 if test -n "$file_magic_test_file"; then 7813 case $deplibs_check_method in 7814 "file_magic "*) 7815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7818 $EGREP "$file_magic_regex" > /dev/null; then 7819 : 7820 else 7821 cat <<_LT_EOF 1>&2 7822 7823*** Warning: the command libtool uses to detect shared libraries, 7824*** $file_magic_cmd, produces output that libtool cannot recognize. 7825*** The result is that libtool may fail to recognize shared libraries 7826*** as such. This will affect the creation of libtool libraries that 7827*** depend on shared libraries, but programs linked with such libtool 7828*** libraries will work regardless of this problem. Nevertheless, you 7829*** may want to report the problem to your system manager and/or to 7830*** bug-libtool@gnu.org 7831 7832_LT_EOF 7833 fi ;; 7834 esac 7835 fi 7836 break 7837 fi 7838 done 7839 IFS="$lt_save_ifs" 7840 MAGIC_CMD="$lt_save_MAGIC_CMD" 7841 ;; 7842esac 7843fi 7844 7845MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7846if test -n "$MAGIC_CMD"; then 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7848$as_echo "$MAGIC_CMD" >&6; } 7849else 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7851$as_echo "no" >&6; } 7852fi 7853 7854 7855 else 7856 MAGIC_CMD=: 7857 fi 7858fi 7859 7860 fi 7861 ;; 7862esac 7863 7864# Use C for the default configuration in the libtool script 7865 7866lt_save_CC="$CC" 7867ac_ext=c 7868ac_cpp='$CPP $CPPFLAGS' 7869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7871ac_compiler_gnu=$ac_cv_c_compiler_gnu 7872 7873 7874# Source file extension for C test sources. 7875ac_ext=c 7876 7877# Object file extension for compiled C test sources. 7878objext=o 7879objext=$objext 7880 7881# Code to be used in simple compile tests 7882lt_simple_compile_test_code="int some_variable = 0;" 7883 7884# Code to be used in simple link tests 7885lt_simple_link_test_code='int main(){return(0);}' 7886 7887 7888 7889 7890 7891 7892 7893# If no C compiler was specified, use CC. 7894LTCC=${LTCC-"$CC"} 7895 7896# If no C compiler flags were specified, use CFLAGS. 7897LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7898 7899# Allow CC to be a program name with arguments. 7900compiler=$CC 7901 7902# Save the default compiler, since it gets overwritten when the other 7903# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7904compiler_DEFAULT=$CC 7905 7906# save warnings/boilerplate of simple test code 7907ac_outfile=conftest.$ac_objext 7908echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7909eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7910_lt_compiler_boilerplate=`cat conftest.err` 7911$RM conftest* 7912 7913ac_outfile=conftest.$ac_objext 7914echo "$lt_simple_link_test_code" >conftest.$ac_ext 7915eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7916_lt_linker_boilerplate=`cat conftest.err` 7917$RM -r conftest* 7918 7919 7920if test -n "$compiler"; then 7921 7922lt_prog_compiler_no_builtin_flag= 7923 7924if test "$GCC" = yes; then 7925 case $cc_basename in 7926 nvcc*) 7927 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7928 *) 7929 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7930 esac 7931 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7933$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7934if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 lt_cv_prog_compiler_rtti_exceptions=no 7938 ac_outfile=conftest.$ac_objext 7939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7940 lt_compiler_flag="-fno-rtti -fno-exceptions" 7941 # Insert the option either (1) after the last *FLAGS variable, or 7942 # (2) before a word containing "conftest.", or (3) at the end. 7943 # Note that $ac_compile itself does not contain backslashes and begins 7944 # with a dollar sign (not a hyphen), so the echo should work correctly. 7945 # The option is referenced via a variable to avoid confusing sed. 7946 lt_compile=`echo "$ac_compile" | $SED \ 7947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7949 -e 's:$: $lt_compiler_flag:'` 7950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7951 (eval "$lt_compile" 2>conftest.err) 7952 ac_status=$? 7953 cat conftest.err >&5 7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7955 if (exit $ac_status) && test -s "$ac_outfile"; then 7956 # The compiler can only warn and ignore the option if not recognized 7957 # So say no if there are warnings other than the usual output. 7958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7961 lt_cv_prog_compiler_rtti_exceptions=yes 7962 fi 7963 fi 7964 $RM conftest* 7965 7966fi 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7968$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7969 7970if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7971 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7972else 7973 : 7974fi 7975 7976fi 7977 7978 7979 7980 7981 7982 7983 lt_prog_compiler_wl= 7984lt_prog_compiler_pic= 7985lt_prog_compiler_static= 7986 7987 7988 if test "$GCC" = yes; then 7989 lt_prog_compiler_wl='-Wl,' 7990 lt_prog_compiler_static='-static' 7991 7992 case $host_os in 7993 aix*) 7994 # All AIX code is PIC. 7995 if test "$host_cpu" = ia64; then 7996 # AIX 5 now supports IA64 processor 7997 lt_prog_compiler_static='-Bstatic' 7998 fi 7999 ;; 8000 8001 amigaos*) 8002 case $host_cpu in 8003 powerpc) 8004 # see comment about AmigaOS4 .so support 8005 lt_prog_compiler_pic='-fPIC' 8006 ;; 8007 m68k) 8008 # FIXME: we need at least 68020 code to build shared libraries, but 8009 # adding the `-m68020' flag to GCC prevents building anything better, 8010 # like `-m68040'. 8011 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8012 ;; 8013 esac 8014 ;; 8015 8016 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8017 # PIC is the default for these OSes. 8018 ;; 8019 8020 mingw* | cygwin* | pw32* | os2* | cegcc*) 8021 # This hack is so that the source file can tell whether it is being 8022 # built for inclusion in a dll (and should export symbols for example). 8023 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8024 # (--disable-auto-import) libraries 8025 lt_prog_compiler_pic='-DDLL_EXPORT' 8026 ;; 8027 8028 darwin* | rhapsody*) 8029 # PIC is the default on this platform 8030 # Common symbols not allowed in MH_DYLIB files 8031 lt_prog_compiler_pic='-fno-common' 8032 ;; 8033 8034 haiku*) 8035 # PIC is the default for Haiku. 8036 # The "-static" flag exists, but is broken. 8037 lt_prog_compiler_static= 8038 ;; 8039 8040 hpux*) 8041 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8042 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8043 # sets the default TLS model and affects inlining. 8044 case $host_cpu in 8045 hppa*64*) 8046 # +Z the default 8047 ;; 8048 *) 8049 lt_prog_compiler_pic='-fPIC' 8050 ;; 8051 esac 8052 ;; 8053 8054 interix[3-9]*) 8055 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8056 # Instead, we relocate shared libraries at runtime. 8057 ;; 8058 8059 msdosdjgpp*) 8060 # Just because we use GCC doesn't mean we suddenly get shared libraries 8061 # on systems that don't support them. 8062 lt_prog_compiler_can_build_shared=no 8063 enable_shared=no 8064 ;; 8065 8066 *nto* | *qnx*) 8067 # QNX uses GNU C++, but need to define -shared option too, otherwise 8068 # it will coredump. 8069 lt_prog_compiler_pic='-fPIC -shared' 8070 ;; 8071 8072 sysv4*MP*) 8073 if test -d /usr/nec; then 8074 lt_prog_compiler_pic=-Kconform_pic 8075 fi 8076 ;; 8077 8078 *) 8079 lt_prog_compiler_pic='-fPIC' 8080 ;; 8081 esac 8082 8083 case $cc_basename in 8084 nvcc*) # Cuda Compiler Driver 2.2 8085 lt_prog_compiler_wl='-Xlinker ' 8086 if test -n "$lt_prog_compiler_pic"; then 8087 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8088 fi 8089 ;; 8090 esac 8091 else 8092 # PORTME Check for flag to pass linker flags through the system compiler. 8093 case $host_os in 8094 aix*) 8095 lt_prog_compiler_wl='-Wl,' 8096 if test "$host_cpu" = ia64; then 8097 # AIX 5 now supports IA64 processor 8098 lt_prog_compiler_static='-Bstatic' 8099 else 8100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8101 fi 8102 ;; 8103 8104 mingw* | cygwin* | pw32* | os2* | cegcc*) 8105 # This hack is so that the source file can tell whether it is being 8106 # built for inclusion in a dll (and should export symbols for example). 8107 lt_prog_compiler_pic='-DDLL_EXPORT' 8108 ;; 8109 8110 hpux9* | hpux10* | hpux11*) 8111 lt_prog_compiler_wl='-Wl,' 8112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8113 # not for PA HP-UX. 8114 case $host_cpu in 8115 hppa*64*|ia64*) 8116 # +Z the default 8117 ;; 8118 *) 8119 lt_prog_compiler_pic='+Z' 8120 ;; 8121 esac 8122 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8123 lt_prog_compiler_static='${wl}-a ${wl}archive' 8124 ;; 8125 8126 irix5* | irix6* | nonstopux*) 8127 lt_prog_compiler_wl='-Wl,' 8128 # PIC (with -KPIC) is the default. 8129 lt_prog_compiler_static='-non_shared' 8130 ;; 8131 8132 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8133 case $cc_basename in 8134 # old Intel for x86_64 which still supported -KPIC. 8135 ecc*) 8136 lt_prog_compiler_wl='-Wl,' 8137 lt_prog_compiler_pic='-KPIC' 8138 lt_prog_compiler_static='-static' 8139 ;; 8140 # icc used to be incompatible with GCC. 8141 # ICC 10 doesn't accept -KPIC any more. 8142 icc* | ifort*) 8143 lt_prog_compiler_wl='-Wl,' 8144 lt_prog_compiler_pic='-fPIC' 8145 lt_prog_compiler_static='-static' 8146 ;; 8147 # Lahey Fortran 8.1. 8148 lf95*) 8149 lt_prog_compiler_wl='-Wl,' 8150 lt_prog_compiler_pic='--shared' 8151 lt_prog_compiler_static='--static' 8152 ;; 8153 nagfor*) 8154 # NAG Fortran compiler 8155 lt_prog_compiler_wl='-Wl,-Wl,,' 8156 lt_prog_compiler_pic='-PIC' 8157 lt_prog_compiler_static='-Bstatic' 8158 ;; 8159 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8160 # Portland Group compilers (*not* the Pentium gcc compiler, 8161 # which looks to be a dead project) 8162 lt_prog_compiler_wl='-Wl,' 8163 lt_prog_compiler_pic='-fpic' 8164 lt_prog_compiler_static='-Bstatic' 8165 ;; 8166 ccc*) 8167 lt_prog_compiler_wl='-Wl,' 8168 # All Alpha code is PIC. 8169 lt_prog_compiler_static='-non_shared' 8170 ;; 8171 xl* | bgxl* | bgf* | mpixl*) 8172 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8173 lt_prog_compiler_wl='-Wl,' 8174 lt_prog_compiler_pic='-qpic' 8175 lt_prog_compiler_static='-qstaticlink' 8176 ;; 8177 *) 8178 case `$CC -V 2>&1 | sed 5q` in 8179 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8180 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8181 lt_prog_compiler_pic='-KPIC' 8182 lt_prog_compiler_static='-Bstatic' 8183 lt_prog_compiler_wl='' 8184 ;; 8185 *Sun\ F* | *Sun*Fortran*) 8186 lt_prog_compiler_pic='-KPIC' 8187 lt_prog_compiler_static='-Bstatic' 8188 lt_prog_compiler_wl='-Qoption ld ' 8189 ;; 8190 *Sun\ C*) 8191 # Sun C 5.9 8192 lt_prog_compiler_pic='-KPIC' 8193 lt_prog_compiler_static='-Bstatic' 8194 lt_prog_compiler_wl='-Wl,' 8195 ;; 8196 *Intel*\ [CF]*Compiler*) 8197 lt_prog_compiler_wl='-Wl,' 8198 lt_prog_compiler_pic='-fPIC' 8199 lt_prog_compiler_static='-static' 8200 ;; 8201 *Portland\ Group*) 8202 lt_prog_compiler_wl='-Wl,' 8203 lt_prog_compiler_pic='-fpic' 8204 lt_prog_compiler_static='-Bstatic' 8205 ;; 8206 esac 8207 ;; 8208 esac 8209 ;; 8210 8211 newsos6) 8212 lt_prog_compiler_pic='-KPIC' 8213 lt_prog_compiler_static='-Bstatic' 8214 ;; 8215 8216 *nto* | *qnx*) 8217 # QNX uses GNU C++, but need to define -shared option too, otherwise 8218 # it will coredump. 8219 lt_prog_compiler_pic='-fPIC -shared' 8220 ;; 8221 8222 osf3* | osf4* | osf5*) 8223 lt_prog_compiler_wl='-Wl,' 8224 # All OSF/1 code is PIC. 8225 lt_prog_compiler_static='-non_shared' 8226 ;; 8227 8228 rdos*) 8229 lt_prog_compiler_static='-non_shared' 8230 ;; 8231 8232 solaris*) 8233 lt_prog_compiler_pic='-KPIC' 8234 lt_prog_compiler_static='-Bstatic' 8235 case $cc_basename in 8236 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8237 lt_prog_compiler_wl='-Qoption ld ';; 8238 *) 8239 lt_prog_compiler_wl='-Wl,';; 8240 esac 8241 ;; 8242 8243 sunos4*) 8244 lt_prog_compiler_wl='-Qoption ld ' 8245 lt_prog_compiler_pic='-PIC' 8246 lt_prog_compiler_static='-Bstatic' 8247 ;; 8248 8249 sysv4 | sysv4.2uw2* | sysv4.3*) 8250 lt_prog_compiler_wl='-Wl,' 8251 lt_prog_compiler_pic='-KPIC' 8252 lt_prog_compiler_static='-Bstatic' 8253 ;; 8254 8255 sysv4*MP*) 8256 if test -d /usr/nec ;then 8257 lt_prog_compiler_pic='-Kconform_pic' 8258 lt_prog_compiler_static='-Bstatic' 8259 fi 8260 ;; 8261 8262 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8263 lt_prog_compiler_wl='-Wl,' 8264 lt_prog_compiler_pic='-KPIC' 8265 lt_prog_compiler_static='-Bstatic' 8266 ;; 8267 8268 unicos*) 8269 lt_prog_compiler_wl='-Wl,' 8270 lt_prog_compiler_can_build_shared=no 8271 ;; 8272 8273 uts4*) 8274 lt_prog_compiler_pic='-pic' 8275 lt_prog_compiler_static='-Bstatic' 8276 ;; 8277 8278 *) 8279 lt_prog_compiler_can_build_shared=no 8280 ;; 8281 esac 8282 fi 8283 8284case $host_os in 8285 # For platforms which do not support PIC, -DPIC is meaningless: 8286 *djgpp*) 8287 lt_prog_compiler_pic= 8288 ;; 8289 *) 8290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8291 ;; 8292esac 8293 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8295$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8296if ${lt_cv_prog_compiler_pic+:} false; then : 8297 $as_echo_n "(cached) " >&6 8298else 8299 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8300fi 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8302$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8303lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8304 8305# 8306# Check to make sure the PIC flag actually works. 8307# 8308if test -n "$lt_prog_compiler_pic"; then 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8310$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8311if ${lt_cv_prog_compiler_pic_works+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313else 8314 lt_cv_prog_compiler_pic_works=no 8315 ac_outfile=conftest.$ac_objext 8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8318 # Insert the option either (1) after the last *FLAGS variable, or 8319 # (2) before a word containing "conftest.", or (3) at the end. 8320 # Note that $ac_compile itself does not contain backslashes and begins 8321 # with a dollar sign (not a hyphen), so the echo should work correctly. 8322 # The option is referenced via a variable to avoid confusing sed. 8323 lt_compile=`echo "$ac_compile" | $SED \ 8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8326 -e 's:$: $lt_compiler_flag:'` 8327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8328 (eval "$lt_compile" 2>conftest.err) 8329 ac_status=$? 8330 cat conftest.err >&5 8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8332 if (exit $ac_status) && test -s "$ac_outfile"; then 8333 # The compiler can only warn and ignore the option if not recognized 8334 # So say no if there are warnings other than the usual output. 8335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8338 lt_cv_prog_compiler_pic_works=yes 8339 fi 8340 fi 8341 $RM conftest* 8342 8343fi 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8345$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8346 8347if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8348 case $lt_prog_compiler_pic in 8349 "" | " "*) ;; 8350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8351 esac 8352else 8353 lt_prog_compiler_pic= 8354 lt_prog_compiler_can_build_shared=no 8355fi 8356 8357fi 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369# 8370# Check to make sure the static flag actually works. 8371# 8372wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8374$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8375if ${lt_cv_prog_compiler_static_works+:} false; then : 8376 $as_echo_n "(cached) " >&6 8377else 8378 lt_cv_prog_compiler_static_works=no 8379 save_LDFLAGS="$LDFLAGS" 8380 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8381 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8383 # The linker can only warn and ignore the option if not recognized 8384 # So say no if there are warnings 8385 if test -s conftest.err; then 8386 # Append any errors to the config.log. 8387 cat conftest.err 1>&5 8388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8390 if diff conftest.exp conftest.er2 >/dev/null; then 8391 lt_cv_prog_compiler_static_works=yes 8392 fi 8393 else 8394 lt_cv_prog_compiler_static_works=yes 8395 fi 8396 fi 8397 $RM -r conftest* 8398 LDFLAGS="$save_LDFLAGS" 8399 8400fi 8401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8402$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8403 8404if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8405 : 8406else 8407 lt_prog_compiler_static= 8408fi 8409 8410 8411 8412 8413 8414 8415 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8417$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8418if ${lt_cv_prog_compiler_c_o+:} false; then : 8419 $as_echo_n "(cached) " >&6 8420else 8421 lt_cv_prog_compiler_c_o=no 8422 $RM -r conftest 2>/dev/null 8423 mkdir conftest 8424 cd conftest 8425 mkdir out 8426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8427 8428 lt_compiler_flag="-o out/conftest2.$ac_objext" 8429 # Insert the option either (1) after the last *FLAGS variable, or 8430 # (2) before a word containing "conftest.", or (3) at the end. 8431 # Note that $ac_compile itself does not contain backslashes and begins 8432 # with a dollar sign (not a hyphen), so the echo should work correctly. 8433 lt_compile=`echo "$ac_compile" | $SED \ 8434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8436 -e 's:$: $lt_compiler_flag:'` 8437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8438 (eval "$lt_compile" 2>out/conftest.err) 8439 ac_status=$? 8440 cat out/conftest.err >&5 8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8442 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8443 then 8444 # The compiler can only warn and ignore the option if not recognized 8445 # So say no if there are warnings 8446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8449 lt_cv_prog_compiler_c_o=yes 8450 fi 8451 fi 8452 chmod u+w . 2>&5 8453 $RM conftest* 8454 # SGI C++ compiler will create directory out/ii_files/ for 8455 # template instantiation 8456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8457 $RM out/* && rmdir out 8458 cd .. 8459 $RM -r conftest 8460 $RM conftest* 8461 8462fi 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8464$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8465 8466 8467 8468 8469 8470 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8472$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8473if ${lt_cv_prog_compiler_c_o+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 lt_cv_prog_compiler_c_o=no 8477 $RM -r conftest 2>/dev/null 8478 mkdir conftest 8479 cd conftest 8480 mkdir out 8481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8482 8483 lt_compiler_flag="-o out/conftest2.$ac_objext" 8484 # Insert the option either (1) after the last *FLAGS variable, or 8485 # (2) before a word containing "conftest.", or (3) at the end. 8486 # Note that $ac_compile itself does not contain backslashes and begins 8487 # with a dollar sign (not a hyphen), so the echo should work correctly. 8488 lt_compile=`echo "$ac_compile" | $SED \ 8489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8491 -e 's:$: $lt_compiler_flag:'` 8492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8493 (eval "$lt_compile" 2>out/conftest.err) 8494 ac_status=$? 8495 cat out/conftest.err >&5 8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8498 then 8499 # The compiler can only warn and ignore the option if not recognized 8500 # So say no if there are warnings 8501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8504 lt_cv_prog_compiler_c_o=yes 8505 fi 8506 fi 8507 chmod u+w . 2>&5 8508 $RM conftest* 8509 # SGI C++ compiler will create directory out/ii_files/ for 8510 # template instantiation 8511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8512 $RM out/* && rmdir out 8513 cd .. 8514 $RM -r conftest 8515 $RM conftest* 8516 8517fi 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8519$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8520 8521 8522 8523 8524hard_links="nottested" 8525if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8526 # do not overwrite the value of need_locks provided by the user 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8528$as_echo_n "checking if we can lock with hard links... " >&6; } 8529 hard_links=yes 8530 $RM conftest* 8531 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8532 touch conftest.a 8533 ln conftest.a conftest.b 2>&5 || hard_links=no 8534 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8536$as_echo "$hard_links" >&6; } 8537 if test "$hard_links" = no; then 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8539$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8540 need_locks=warn 8541 fi 8542else 8543 need_locks=no 8544fi 8545 8546 8547 8548 8549 8550 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8552$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8553 8554 runpath_var= 8555 allow_undefined_flag= 8556 always_export_symbols=no 8557 archive_cmds= 8558 archive_expsym_cmds= 8559 compiler_needs_object=no 8560 enable_shared_with_static_runtimes=no 8561 export_dynamic_flag_spec= 8562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8563 hardcode_automatic=no 8564 hardcode_direct=no 8565 hardcode_direct_absolute=no 8566 hardcode_libdir_flag_spec= 8567 hardcode_libdir_separator= 8568 hardcode_minus_L=no 8569 hardcode_shlibpath_var=unsupported 8570 inherit_rpath=no 8571 link_all_deplibs=unknown 8572 module_cmds= 8573 module_expsym_cmds= 8574 old_archive_from_new_cmds= 8575 old_archive_from_expsyms_cmds= 8576 thread_safe_flag_spec= 8577 whole_archive_flag_spec= 8578 # include_expsyms should be a list of space-separated symbols to be *always* 8579 # included in the symbol list 8580 include_expsyms= 8581 # exclude_expsyms can be an extended regexp of symbols to exclude 8582 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8584 # as well as any symbol that contains `d'. 8585 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8587 # platforms (ab)use it in PIC code, but their linkers get confused if 8588 # the symbol is explicitly referenced. Since portable code cannot 8589 # rely on this symbol name, it's probably fine to never include it in 8590 # preloaded symbol tables. 8591 # Exclude shared library initialization/finalization symbols. 8592 extract_expsyms_cmds= 8593 8594 case $host_os in 8595 cygwin* | mingw* | pw32* | cegcc*) 8596 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8597 # When not using gcc, we currently assume that we are using 8598 # Microsoft Visual C++. 8599 if test "$GCC" != yes; then 8600 with_gnu_ld=no 8601 fi 8602 ;; 8603 interix*) 8604 # we just hope/assume this is gcc and not c89 (= MSVC++) 8605 with_gnu_ld=yes 8606 ;; 8607 openbsd*) 8608 with_gnu_ld=no 8609 ;; 8610 esac 8611 8612 ld_shlibs=yes 8613 8614 # On some targets, GNU ld is compatible enough with the native linker 8615 # that we're better off using the native interface for both. 8616 lt_use_gnu_ld_interface=no 8617 if test "$with_gnu_ld" = yes; then 8618 case $host_os in 8619 aix*) 8620 # The AIX port of GNU ld has always aspired to compatibility 8621 # with the native linker. However, as the warning in the GNU ld 8622 # block says, versions before 2.19.5* couldn't really create working 8623 # shared libraries, regardless of the interface used. 8624 case `$LD -v 2>&1` in 8625 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8626 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8627 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8628 *) 8629 lt_use_gnu_ld_interface=yes 8630 ;; 8631 esac 8632 ;; 8633 *) 8634 lt_use_gnu_ld_interface=yes 8635 ;; 8636 esac 8637 fi 8638 8639 if test "$lt_use_gnu_ld_interface" = yes; then 8640 # If archive_cmds runs LD, not CC, wlarc should be empty 8641 wlarc='${wl}' 8642 8643 # Set some defaults for GNU ld with shared library support. These 8644 # are reset later if shared libraries are not supported. Putting them 8645 # here allows them to be overridden if necessary. 8646 runpath_var=LD_RUN_PATH 8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8648 export_dynamic_flag_spec='${wl}--export-dynamic' 8649 # ancient GNU ld didn't support --whole-archive et. al. 8650 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8651 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8652 else 8653 whole_archive_flag_spec= 8654 fi 8655 supports_anon_versioning=no 8656 case `$LD -v 2>&1` in 8657 *GNU\ gold*) supports_anon_versioning=yes ;; 8658 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8659 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8660 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8661 *\ 2.11.*) ;; # other 2.11 versions 8662 *) supports_anon_versioning=yes ;; 8663 esac 8664 8665 # See if GNU ld supports shared libraries. 8666 case $host_os in 8667 aix[3-9]*) 8668 # On AIX/PPC, the GNU linker is very broken 8669 if test "$host_cpu" != ia64; then 8670 ld_shlibs=no 8671 cat <<_LT_EOF 1>&2 8672 8673*** Warning: the GNU linker, at least up to release 2.19, is reported 8674*** to be unable to reliably create shared libraries on AIX. 8675*** Therefore, libtool is disabling shared libraries support. If you 8676*** really care for shared libraries, you may want to install binutils 8677*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8678*** You will then need to restart the configuration process. 8679 8680_LT_EOF 8681 fi 8682 ;; 8683 8684 amigaos*) 8685 case $host_cpu in 8686 powerpc) 8687 # see comment about AmigaOS4 .so support 8688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8689 archive_expsym_cmds='' 8690 ;; 8691 m68k) 8692 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)' 8693 hardcode_libdir_flag_spec='-L$libdir' 8694 hardcode_minus_L=yes 8695 ;; 8696 esac 8697 ;; 8698 8699 beos*) 8700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8701 allow_undefined_flag=unsupported 8702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8703 # support --undefined. This deserves some investigation. FIXME 8704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8705 else 8706 ld_shlibs=no 8707 fi 8708 ;; 8709 8710 cygwin* | mingw* | pw32* | cegcc*) 8711 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8712 # as there is no search path for DLLs. 8713 hardcode_libdir_flag_spec='-L$libdir' 8714 export_dynamic_flag_spec='${wl}--export-all-symbols' 8715 allow_undefined_flag=unsupported 8716 always_export_symbols=no 8717 enable_shared_with_static_runtimes=yes 8718 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' 8719 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8720 8721 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8723 # If the export-symbols file already is a .def file (1st line 8724 # is EXPORTS), use it as is; otherwise, prepend... 8725 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8726 cp $export_symbols $output_objdir/$soname.def; 8727 else 8728 echo EXPORTS > $output_objdir/$soname.def; 8729 cat $export_symbols >> $output_objdir/$soname.def; 8730 fi~ 8731 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8732 else 8733 ld_shlibs=no 8734 fi 8735 ;; 8736 8737 haiku*) 8738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8739 link_all_deplibs=yes 8740 ;; 8741 8742 interix[3-9]*) 8743 hardcode_direct=no 8744 hardcode_shlibpath_var=no 8745 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8746 export_dynamic_flag_spec='${wl}-E' 8747 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8748 # Instead, shared libraries are loaded at an image base (0x10000000 by 8749 # default) and relocated if they conflict, which is a slow very memory 8750 # consuming and fragmenting process. To avoid this, we pick a random, 8751 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8752 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8753 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8754 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' 8755 ;; 8756 8757 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8758 tmp_diet=no 8759 if test "$host_os" = linux-dietlibc; then 8760 case $cc_basename in 8761 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8762 esac 8763 fi 8764 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8765 && test "$tmp_diet" = no 8766 then 8767 tmp_addflag=' $pic_flag' 8768 tmp_sharedflag='-shared' 8769 case $cc_basename,$host_cpu in 8770 pgcc*) # Portland Group C compiler 8771 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' 8772 tmp_addflag=' $pic_flag' 8773 ;; 8774 pgf77* | pgf90* | pgf95* | pgfortran*) 8775 # Portland Group f77 and f90 compilers 8776 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' 8777 tmp_addflag=' $pic_flag -Mnomain' ;; 8778 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8779 tmp_addflag=' -i_dynamic' ;; 8780 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8781 tmp_addflag=' -i_dynamic -nofor_main' ;; 8782 ifc* | ifort*) # Intel Fortran compiler 8783 tmp_addflag=' -nofor_main' ;; 8784 lf95*) # Lahey Fortran 8.1 8785 whole_archive_flag_spec= 8786 tmp_sharedflag='--shared' ;; 8787 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8788 tmp_sharedflag='-qmkshrobj' 8789 tmp_addflag= ;; 8790 nvcc*) # Cuda Compiler Driver 2.2 8791 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' 8792 compiler_needs_object=yes 8793 ;; 8794 esac 8795 case `$CC -V 2>&1 | sed 5q` in 8796 *Sun\ C*) # Sun C 5.9 8797 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' 8798 compiler_needs_object=yes 8799 tmp_sharedflag='-G' ;; 8800 *Sun\ F*) # Sun Fortran 8.3 8801 tmp_sharedflag='-G' ;; 8802 esac 8803 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8804 8805 if test "x$supports_anon_versioning" = xyes; then 8806 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8808 echo "local: *; };" >> $output_objdir/$libname.ver~ 8809 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8810 fi 8811 8812 case $cc_basename in 8813 xlf* | bgf* | bgxlf* | mpixlf*) 8814 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8815 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8817 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8818 if test "x$supports_anon_versioning" = xyes; then 8819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8821 echo "local: *; };" >> $output_objdir/$libname.ver~ 8822 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8823 fi 8824 ;; 8825 esac 8826 else 8827 ld_shlibs=no 8828 fi 8829 ;; 8830 8831 netbsd*) 8832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8833 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8834 wlarc= 8835 else 8836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8838 fi 8839 ;; 8840 8841 solaris*) 8842 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8843 ld_shlibs=no 8844 cat <<_LT_EOF 1>&2 8845 8846*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8847*** create shared libraries on Solaris systems. Therefore, libtool 8848*** is disabling shared libraries support. We urge you to upgrade GNU 8849*** binutils to release 2.9.1 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 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8856 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8857 else 8858 ld_shlibs=no 8859 fi 8860 ;; 8861 8862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8863 case `$LD -v 2>&1` in 8864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8865 ld_shlibs=no 8866 cat <<_LT_EOF 1>&2 8867 8868*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8869*** reliably create shared libraries on SCO systems. Therefore, libtool 8870*** is disabling shared libraries support. We urge you to upgrade GNU 8871*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8872*** your PATH or compiler configuration so that the native linker is 8873*** used, and then restart. 8874 8875_LT_EOF 8876 ;; 8877 *) 8878 # For security reasons, it is highly recommended that you always 8879 # use absolute paths for naming shared libraries, and exclude the 8880 # DT_RUNPATH tag from executables and libraries. But doing so 8881 # requires that you compile everything twice, which is a pain. 8882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8886 else 8887 ld_shlibs=no 8888 fi 8889 ;; 8890 esac 8891 ;; 8892 8893 sunos4*) 8894 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8895 wlarc= 8896 hardcode_direct=yes 8897 hardcode_shlibpath_var=no 8898 ;; 8899 8900 *) 8901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8903 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8904 else 8905 ld_shlibs=no 8906 fi 8907 ;; 8908 esac 8909 8910 if test "$ld_shlibs" = no; then 8911 runpath_var= 8912 hardcode_libdir_flag_spec= 8913 export_dynamic_flag_spec= 8914 whole_archive_flag_spec= 8915 fi 8916 else 8917 # PORTME fill in a description of your system's linker (not GNU ld) 8918 case $host_os in 8919 aix3*) 8920 allow_undefined_flag=unsupported 8921 always_export_symbols=yes 8922 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' 8923 # Note: this linker hardcodes the directories in LIBPATH if there 8924 # are no directories specified by -L. 8925 hardcode_minus_L=yes 8926 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8927 # Neither direct hardcoding nor static linking is supported with a 8928 # broken collect2. 8929 hardcode_direct=unsupported 8930 fi 8931 ;; 8932 8933 aix[4-9]*) 8934 if test "$host_cpu" = ia64; then 8935 # On IA64, the linker does run time linking by default, so we don't 8936 # have to do anything special. 8937 aix_use_runtimelinking=no 8938 exp_sym_flag='-Bexport' 8939 no_entry_flag="" 8940 else 8941 # If we're using GNU nm, then we don't want the "-C" option. 8942 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8943 # Also, AIX nm treats weak defined symbols like other global 8944 # defined symbols, whereas GNU nm marks them as "W". 8945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8946 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' 8947 else 8948 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' 8949 fi 8950 aix_use_runtimelinking=no 8951 8952 # Test if we are trying to use run time linking or normal 8953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8954 # need to do runtime linking. 8955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8956 for ld_flag in $LDFLAGS; do 8957 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8958 aix_use_runtimelinking=yes 8959 break 8960 fi 8961 done 8962 ;; 8963 esac 8964 8965 exp_sym_flag='-bexport' 8966 no_entry_flag='-bnoentry' 8967 fi 8968 8969 # When large executables or shared objects are built, AIX ld can 8970 # have problems creating the table of contents. If linking a library 8971 # or program results in "error TOC overflow" add -mminimal-toc to 8972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8974 8975 archive_cmds='' 8976 hardcode_direct=yes 8977 hardcode_direct_absolute=yes 8978 hardcode_libdir_separator=':' 8979 link_all_deplibs=yes 8980 file_list_spec='${wl}-f,' 8981 8982 if test "$GCC" = yes; then 8983 case $host_os in aix4.[012]|aix4.[012].*) 8984 # We only want to do this on AIX 4.2 and lower, the check 8985 # below for broken collect2 doesn't work under 4.3+ 8986 collect2name=`${CC} -print-prog-name=collect2` 8987 if test -f "$collect2name" && 8988 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8989 then 8990 # We have reworked collect2 8991 : 8992 else 8993 # We have old collect2 8994 hardcode_direct=unsupported 8995 # It fails to find uninstalled libraries when the uninstalled 8996 # path is not listed in the libpath. Setting hardcode_minus_L 8997 # to unsupported forces relinking 8998 hardcode_minus_L=yes 8999 hardcode_libdir_flag_spec='-L$libdir' 9000 hardcode_libdir_separator= 9001 fi 9002 ;; 9003 esac 9004 shared_flag='-shared' 9005 if test "$aix_use_runtimelinking" = yes; then 9006 shared_flag="$shared_flag "'${wl}-G' 9007 fi 9008 else 9009 # not using gcc 9010 if test "$host_cpu" = ia64; then 9011 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9012 # chokes on -Wl,-G. The following line is correct: 9013 shared_flag='-G' 9014 else 9015 if test "$aix_use_runtimelinking" = yes; then 9016 shared_flag='${wl}-G' 9017 else 9018 shared_flag='${wl}-bM:SRE' 9019 fi 9020 fi 9021 fi 9022 9023 export_dynamic_flag_spec='${wl}-bexpall' 9024 # It seems that -bexpall does not export symbols beginning with 9025 # underscore (_), so it is better to generate a list of symbols to export. 9026 always_export_symbols=yes 9027 if test "$aix_use_runtimelinking" = yes; then 9028 # Warning - without using the other runtime loading flags (-brtl), 9029 # -berok will link without error, but may produce a broken library. 9030 allow_undefined_flag='-berok' 9031 # Determine the default libpath from the value encoded in an 9032 # empty executable. 9033 if test "${lt_cv_aix_libpath+set}" = set; then 9034 aix_libpath=$lt_cv_aix_libpath 9035else 9036 if ${lt_cv_aix_libpath_+:} false; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041 9042int 9043main () 9044{ 9045 9046 ; 9047 return 0; 9048} 9049_ACEOF 9050if ac_fn_c_try_link "$LINENO"; then : 9051 9052 lt_aix_libpath_sed=' 9053 /Import File Strings/,/^$/ { 9054 /^0/ { 9055 s/^0 *\([^ ]*\) *$/\1/ 9056 p 9057 } 9058 }' 9059 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9060 # Check for a 64-bit object if we didn't find anything. 9061 if test -z "$lt_cv_aix_libpath_"; then 9062 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9063 fi 9064fi 9065rm -f core conftest.err conftest.$ac_objext \ 9066 conftest$ac_exeext conftest.$ac_ext 9067 if test -z "$lt_cv_aix_libpath_"; then 9068 lt_cv_aix_libpath_="/usr/lib:/lib" 9069 fi 9070 9071fi 9072 9073 aix_libpath=$lt_cv_aix_libpath_ 9074fi 9075 9076 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9077 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" 9078 else 9079 if test "$host_cpu" = ia64; then 9080 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9081 allow_undefined_flag="-z nodefs" 9082 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" 9083 else 9084 # Determine the default libpath from the value encoded in an 9085 # empty executable. 9086 if test "${lt_cv_aix_libpath+set}" = set; then 9087 aix_libpath=$lt_cv_aix_libpath 9088else 9089 if ${lt_cv_aix_libpath_+:} false; then : 9090 $as_echo_n "(cached) " >&6 9091else 9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093/* end confdefs.h. */ 9094 9095int 9096main () 9097{ 9098 9099 ; 9100 return 0; 9101} 9102_ACEOF 9103if ac_fn_c_try_link "$LINENO"; then : 9104 9105 lt_aix_libpath_sed=' 9106 /Import File Strings/,/^$/ { 9107 /^0/ { 9108 s/^0 *\([^ ]*\) *$/\1/ 9109 p 9110 } 9111 }' 9112 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9113 # Check for a 64-bit object if we didn't find anything. 9114 if test -z "$lt_cv_aix_libpath_"; then 9115 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9116 fi 9117fi 9118rm -f core conftest.err conftest.$ac_objext \ 9119 conftest$ac_exeext conftest.$ac_ext 9120 if test -z "$lt_cv_aix_libpath_"; then 9121 lt_cv_aix_libpath_="/usr/lib:/lib" 9122 fi 9123 9124fi 9125 9126 aix_libpath=$lt_cv_aix_libpath_ 9127fi 9128 9129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9130 # Warning - without using the other run time loading flags, 9131 # -berok will link without error, but may produce a broken library. 9132 no_undefined_flag=' ${wl}-bernotok' 9133 allow_undefined_flag=' ${wl}-berok' 9134 if test "$with_gnu_ld" = yes; then 9135 # We only use this code for GNU lds that support --whole-archive. 9136 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9137 else 9138 # Exported symbols can be pulled into shared objects from archives 9139 whole_archive_flag_spec='$convenience' 9140 fi 9141 archive_cmds_need_lc=yes 9142 # This is similar to how AIX traditionally builds its shared libraries. 9143 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' 9144 fi 9145 fi 9146 ;; 9147 9148 amigaos*) 9149 case $host_cpu in 9150 powerpc) 9151 # see comment about AmigaOS4 .so support 9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9153 archive_expsym_cmds='' 9154 ;; 9155 m68k) 9156 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)' 9157 hardcode_libdir_flag_spec='-L$libdir' 9158 hardcode_minus_L=yes 9159 ;; 9160 esac 9161 ;; 9162 9163 bsdi[45]*) 9164 export_dynamic_flag_spec=-rdynamic 9165 ;; 9166 9167 cygwin* | mingw* | pw32* | cegcc*) 9168 # When not using gcc, we currently assume that we are using 9169 # Microsoft Visual C++. 9170 # hardcode_libdir_flag_spec is actually meaningless, as there is 9171 # no search path for DLLs. 9172 case $cc_basename in 9173 cl*) 9174 # Native MSVC 9175 hardcode_libdir_flag_spec=' ' 9176 allow_undefined_flag=unsupported 9177 always_export_symbols=yes 9178 file_list_spec='@' 9179 # Tell ltmain to make .lib files, not .a files. 9180 libext=lib 9181 # Tell ltmain to make .dll files, not .so files. 9182 shrext_cmds=".dll" 9183 # FIXME: Setting linknames here is a bad hack. 9184 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9185 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9186 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9187 else 9188 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9189 fi~ 9190 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9191 linknames=' 9192 # The linker will not automatically build a static lib if we build a DLL. 9193 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9194 enable_shared_with_static_runtimes=yes 9195 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9197 # Don't use ranlib 9198 old_postinstall_cmds='chmod 644 $oldlib' 9199 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9200 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9201 case $lt_outputfile in 9202 *.exe|*.EXE) ;; 9203 *) 9204 lt_outputfile="$lt_outputfile.exe" 9205 lt_tool_outputfile="$lt_tool_outputfile.exe" 9206 ;; 9207 esac~ 9208 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9209 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9210 $RM "$lt_outputfile.manifest"; 9211 fi' 9212 ;; 9213 *) 9214 # Assume MSVC wrapper 9215 hardcode_libdir_flag_spec=' ' 9216 allow_undefined_flag=unsupported 9217 # Tell ltmain to make .lib files, not .a files. 9218 libext=lib 9219 # Tell ltmain to make .dll files, not .so files. 9220 shrext_cmds=".dll" 9221 # FIXME: Setting linknames here is a bad hack. 9222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9223 # The linker will automatically build a .lib file if we build a DLL. 9224 old_archive_from_new_cmds='true' 9225 # FIXME: Should let the user specify the lib program. 9226 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9227 enable_shared_with_static_runtimes=yes 9228 ;; 9229 esac 9230 ;; 9231 9232 darwin* | rhapsody*) 9233 9234 9235 archive_cmds_need_lc=no 9236 hardcode_direct=no 9237 hardcode_automatic=yes 9238 hardcode_shlibpath_var=unsupported 9239 if test "$lt_cv_ld_force_load" = "yes"; then 9240 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\"`' 9241 9242 else 9243 whole_archive_flag_spec='' 9244 fi 9245 link_all_deplibs=yes 9246 allow_undefined_flag="$_lt_dar_allow_undefined" 9247 case $cc_basename in 9248 ifort*) _lt_dar_can_shared=yes ;; 9249 *) _lt_dar_can_shared=$GCC ;; 9250 esac 9251 if test "$_lt_dar_can_shared" = "yes"; then 9252 output_verbose_link_cmd=func_echo_all 9253 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9254 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9255 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}" 9256 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}" 9257 9258 else 9259 ld_shlibs=no 9260 fi 9261 9262 ;; 9263 9264 dgux*) 9265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9266 hardcode_libdir_flag_spec='-L$libdir' 9267 hardcode_shlibpath_var=no 9268 ;; 9269 9270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9271 # support. Future versions do this automatically, but an explicit c++rt0.o 9272 # does not break anything, and helps significantly (at the cost of a little 9273 # extra space). 9274 freebsd2.2*) 9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9276 hardcode_libdir_flag_spec='-R$libdir' 9277 hardcode_direct=yes 9278 hardcode_shlibpath_var=no 9279 ;; 9280 9281 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9282 freebsd2.*) 9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9284 hardcode_direct=yes 9285 hardcode_minus_L=yes 9286 hardcode_shlibpath_var=no 9287 ;; 9288 9289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9290 freebsd* | dragonfly*) 9291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9292 hardcode_libdir_flag_spec='-R$libdir' 9293 hardcode_direct=yes 9294 hardcode_shlibpath_var=no 9295 ;; 9296 9297 hpux9*) 9298 if test "$GCC" = yes; then 9299 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' 9300 else 9301 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' 9302 fi 9303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9304 hardcode_libdir_separator=: 9305 hardcode_direct=yes 9306 9307 # hardcode_minus_L: Not really in the search PATH, 9308 # but as the default location of the library. 9309 hardcode_minus_L=yes 9310 export_dynamic_flag_spec='${wl}-E' 9311 ;; 9312 9313 hpux10*) 9314 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9315 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9316 else 9317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9318 fi 9319 if test "$with_gnu_ld" = no; then 9320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9321 hardcode_libdir_separator=: 9322 hardcode_direct=yes 9323 hardcode_direct_absolute=yes 9324 export_dynamic_flag_spec='${wl}-E' 9325 # hardcode_minus_L: Not really in the search PATH, 9326 # but as the default location of the library. 9327 hardcode_minus_L=yes 9328 fi 9329 ;; 9330 9331 hpux11*) 9332 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9333 case $host_cpu in 9334 hppa*64*) 9335 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9336 ;; 9337 ia64*) 9338 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9339 ;; 9340 *) 9341 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9342 ;; 9343 esac 9344 else 9345 case $host_cpu in 9346 hppa*64*) 9347 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9348 ;; 9349 ia64*) 9350 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9351 ;; 9352 *) 9353 9354 # Older versions of the 11.00 compiler do not understand -b yet 9355 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9357$as_echo_n "checking if $CC understands -b... " >&6; } 9358if ${lt_cv_prog_compiler__b+:} false; then : 9359 $as_echo_n "(cached) " >&6 9360else 9361 lt_cv_prog_compiler__b=no 9362 save_LDFLAGS="$LDFLAGS" 9363 LDFLAGS="$LDFLAGS -b" 9364 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9366 # The linker can only warn and ignore the option if not recognized 9367 # So say no if there are warnings 9368 if test -s conftest.err; then 9369 # Append any errors to the config.log. 9370 cat conftest.err 1>&5 9371 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9373 if diff conftest.exp conftest.er2 >/dev/null; then 9374 lt_cv_prog_compiler__b=yes 9375 fi 9376 else 9377 lt_cv_prog_compiler__b=yes 9378 fi 9379 fi 9380 $RM -r conftest* 9381 LDFLAGS="$save_LDFLAGS" 9382 9383fi 9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9385$as_echo "$lt_cv_prog_compiler__b" >&6; } 9386 9387if test x"$lt_cv_prog_compiler__b" = xyes; then 9388 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9389else 9390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9391fi 9392 9393 ;; 9394 esac 9395 fi 9396 if test "$with_gnu_ld" = no; then 9397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9398 hardcode_libdir_separator=: 9399 9400 case $host_cpu in 9401 hppa*64*|ia64*) 9402 hardcode_direct=no 9403 hardcode_shlibpath_var=no 9404 ;; 9405 *) 9406 hardcode_direct=yes 9407 hardcode_direct_absolute=yes 9408 export_dynamic_flag_spec='${wl}-E' 9409 9410 # hardcode_minus_L: Not really in the search PATH, 9411 # but as the default location of the library. 9412 hardcode_minus_L=yes 9413 ;; 9414 esac 9415 fi 9416 ;; 9417 9418 irix5* | irix6* | nonstopux*) 9419 if test "$GCC" = yes; then 9420 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' 9421 # Try to use the -exported_symbol ld option, if it does not 9422 # work, assume that -exports_file does not work either and 9423 # implicitly export all symbols. 9424 # This should be the same for all languages, so no per-tag cache variable. 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9426$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9427if ${lt_cv_irix_exported_symbol+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 save_LDFLAGS="$LDFLAGS" 9431 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433/* end confdefs.h. */ 9434int foo (void) { return 0; } 9435_ACEOF 9436if ac_fn_c_try_link "$LINENO"; then : 9437 lt_cv_irix_exported_symbol=yes 9438else 9439 lt_cv_irix_exported_symbol=no 9440fi 9441rm -f core conftest.err conftest.$ac_objext \ 9442 conftest$ac_exeext conftest.$ac_ext 9443 LDFLAGS="$save_LDFLAGS" 9444fi 9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9446$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9447 if test "$lt_cv_irix_exported_symbol" = yes; then 9448 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' 9449 fi 9450 else 9451 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' 9452 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' 9453 fi 9454 archive_cmds_need_lc='no' 9455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9456 hardcode_libdir_separator=: 9457 inherit_rpath=yes 9458 link_all_deplibs=yes 9459 ;; 9460 9461 netbsd*) 9462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9464 else 9465 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9466 fi 9467 hardcode_libdir_flag_spec='-R$libdir' 9468 hardcode_direct=yes 9469 hardcode_shlibpath_var=no 9470 ;; 9471 9472 newsos6) 9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9474 hardcode_direct=yes 9475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9476 hardcode_libdir_separator=: 9477 hardcode_shlibpath_var=no 9478 ;; 9479 9480 *nto* | *qnx*) 9481 ;; 9482 9483 openbsd*) 9484 if test -f /usr/libexec/ld.so; then 9485 hardcode_direct=yes 9486 hardcode_shlibpath_var=no 9487 hardcode_direct_absolute=yes 9488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9490 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9492 export_dynamic_flag_spec='${wl}-E' 9493 else 9494 case $host_os in 9495 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9497 hardcode_libdir_flag_spec='-R$libdir' 9498 ;; 9499 *) 9500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9502 ;; 9503 esac 9504 fi 9505 else 9506 ld_shlibs=no 9507 fi 9508 ;; 9509 9510 os2*) 9511 hardcode_libdir_flag_spec='-L$libdir' 9512 hardcode_minus_L=yes 9513 allow_undefined_flag=unsupported 9514 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' 9515 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9516 ;; 9517 9518 osf3*) 9519 if test "$GCC" = yes; then 9520 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9521 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' 9522 else 9523 allow_undefined_flag=' -expect_unresolved \*' 9524 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' 9525 fi 9526 archive_cmds_need_lc='no' 9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9528 hardcode_libdir_separator=: 9529 ;; 9530 9531 osf4* | osf5*) # as osf3* with the addition of -msym flag 9532 if test "$GCC" = yes; then 9533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9534 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' 9535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9536 else 9537 allow_undefined_flag=' -expect_unresolved \*' 9538 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' 9539 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~ 9540 $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' 9541 9542 # Both c and cxx compiler support -rpath directly 9543 hardcode_libdir_flag_spec='-rpath $libdir' 9544 fi 9545 archive_cmds_need_lc='no' 9546 hardcode_libdir_separator=: 9547 ;; 9548 9549 solaris*) 9550 no_undefined_flag=' -z defs' 9551 if test "$GCC" = yes; then 9552 wlarc='${wl}' 9553 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9555 $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' 9556 else 9557 case `$CC -V 2>&1` in 9558 *"Compilers 5.0"*) 9559 wlarc='' 9560 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9562 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9563 ;; 9564 *) 9565 wlarc='${wl}' 9566 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9568 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9569 ;; 9570 esac 9571 fi 9572 hardcode_libdir_flag_spec='-R$libdir' 9573 hardcode_shlibpath_var=no 9574 case $host_os in 9575 solaris2.[0-5] | solaris2.[0-5].*) ;; 9576 *) 9577 # The compiler driver will combine and reorder linker options, 9578 # but understands `-z linker_flag'. GCC discards it without `$wl', 9579 # but is careful enough not to reorder. 9580 # Supported since Solaris 2.6 (maybe 2.5.1?) 9581 if test "$GCC" = yes; then 9582 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9583 else 9584 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9585 fi 9586 ;; 9587 esac 9588 link_all_deplibs=yes 9589 ;; 9590 9591 sunos4*) 9592 if test "x$host_vendor" = xsequent; then 9593 # Use $CC to link under sequent, because it throws in some extra .o 9594 # files that make .init and .fini sections work. 9595 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9596 else 9597 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9598 fi 9599 hardcode_libdir_flag_spec='-L$libdir' 9600 hardcode_direct=yes 9601 hardcode_minus_L=yes 9602 hardcode_shlibpath_var=no 9603 ;; 9604 9605 sysv4) 9606 case $host_vendor in 9607 sni) 9608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9609 hardcode_direct=yes # is this really true??? 9610 ;; 9611 siemens) 9612 ## LD is ld it makes a PLAMLIB 9613 ## CC just makes a GrossModule. 9614 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9615 reload_cmds='$CC -r -o $output$reload_objs' 9616 hardcode_direct=no 9617 ;; 9618 motorola) 9619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9620 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9621 ;; 9622 esac 9623 runpath_var='LD_RUN_PATH' 9624 hardcode_shlibpath_var=no 9625 ;; 9626 9627 sysv4.3*) 9628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9629 hardcode_shlibpath_var=no 9630 export_dynamic_flag_spec='-Bexport' 9631 ;; 9632 9633 sysv4*MP*) 9634 if test -d /usr/nec; then 9635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9636 hardcode_shlibpath_var=no 9637 runpath_var=LD_RUN_PATH 9638 hardcode_runpath_var=yes 9639 ld_shlibs=yes 9640 fi 9641 ;; 9642 9643 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9644 no_undefined_flag='${wl}-z,text' 9645 archive_cmds_need_lc=no 9646 hardcode_shlibpath_var=no 9647 runpath_var='LD_RUN_PATH' 9648 9649 if test "$GCC" = yes; then 9650 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9651 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9652 else 9653 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9654 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9655 fi 9656 ;; 9657 9658 sysv5* | sco3.2v5* | sco5v6*) 9659 # Note: We can NOT use -z defs as we might desire, because we do not 9660 # link with -lc, and that would cause any symbols used from libc to 9661 # always be unresolved, which means just about no library would 9662 # ever link correctly. If we're not using GNU ld we use -z text 9663 # though, which does catch some bad symbols but isn't as heavy-handed 9664 # as -z defs. 9665 no_undefined_flag='${wl}-z,text' 9666 allow_undefined_flag='${wl}-z,nodefs' 9667 archive_cmds_need_lc=no 9668 hardcode_shlibpath_var=no 9669 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9670 hardcode_libdir_separator=':' 9671 link_all_deplibs=yes 9672 export_dynamic_flag_spec='${wl}-Bexport' 9673 runpath_var='LD_RUN_PATH' 9674 9675 if test "$GCC" = yes; then 9676 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9677 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9678 else 9679 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9680 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9681 fi 9682 ;; 9683 9684 uts4*) 9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9686 hardcode_libdir_flag_spec='-L$libdir' 9687 hardcode_shlibpath_var=no 9688 ;; 9689 9690 *) 9691 ld_shlibs=no 9692 ;; 9693 esac 9694 9695 if test x$host_vendor = xsni; then 9696 case $host in 9697 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9698 export_dynamic_flag_spec='${wl}-Blargedynsym' 9699 ;; 9700 esac 9701 fi 9702 fi 9703 9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9705$as_echo "$ld_shlibs" >&6; } 9706test "$ld_shlibs" = no && can_build_shared=no 9707 9708with_gnu_ld=$with_gnu_ld 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724# 9725# Do we need to explicitly link libc? 9726# 9727case "x$archive_cmds_need_lc" in 9728x|xyes) 9729 # Assume -lc should be added 9730 archive_cmds_need_lc=yes 9731 9732 if test "$enable_shared" = yes && test "$GCC" = yes; then 9733 case $archive_cmds in 9734 *'~'*) 9735 # FIXME: we may have to deal with multi-command sequences. 9736 ;; 9737 '$CC '*) 9738 # Test whether the compiler implicitly links with -lc since on some 9739 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9740 # to ld, don't add -lc before -lgcc. 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9742$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9743if ${lt_cv_archive_cmds_need_lc+:} false; then : 9744 $as_echo_n "(cached) " >&6 9745else 9746 $RM conftest* 9747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9748 9749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9750 (eval $ac_compile) 2>&5 9751 ac_status=$? 9752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9753 test $ac_status = 0; } 2>conftest.err; then 9754 soname=conftest 9755 lib=conftest 9756 libobjs=conftest.$ac_objext 9757 deplibs= 9758 wl=$lt_prog_compiler_wl 9759 pic_flag=$lt_prog_compiler_pic 9760 compiler_flags=-v 9761 linker_flags=-v 9762 verstring= 9763 output_objdir=. 9764 libname=conftest 9765 lt_save_allow_undefined_flag=$allow_undefined_flag 9766 allow_undefined_flag= 9767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9768 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9769 ac_status=$? 9770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9771 test $ac_status = 0; } 9772 then 9773 lt_cv_archive_cmds_need_lc=no 9774 else 9775 lt_cv_archive_cmds_need_lc=yes 9776 fi 9777 allow_undefined_flag=$lt_save_allow_undefined_flag 9778 else 9779 cat conftest.err 1>&5 9780 fi 9781 $RM conftest* 9782 9783fi 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9785$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9786 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9787 ;; 9788 esac 9789 fi 9790 ;; 9791esac 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 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9945$as_echo_n "checking dynamic linker characteristics... " >&6; } 9946 9947if test "$GCC" = yes; then 9948 case $host_os in 9949 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9950 *) lt_awk_arg="/^libraries:/" ;; 9951 esac 9952 case $host_os in 9953 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9954 *) lt_sed_strip_eq="s,=/,/,g" ;; 9955 esac 9956 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9957 case $lt_search_path_spec in 9958 *\;*) 9959 # if the path contains ";" then we assume it to be the separator 9960 # otherwise default to the standard path separator (i.e. ":") - it is 9961 # assumed that no part of a normal pathname contains ";" but that should 9962 # okay in the real world where ";" in dirpaths is itself problematic. 9963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9964 ;; 9965 *) 9966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9967 ;; 9968 esac 9969 # Ok, now we have the path, separated by spaces, we can step through it 9970 # and add multilib dir if necessary. 9971 lt_tmp_lt_search_path_spec= 9972 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9973 for lt_sys_path in $lt_search_path_spec; do 9974 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9976 else 9977 test -d "$lt_sys_path" && \ 9978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9979 fi 9980 done 9981 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9982BEGIN {RS=" "; FS="/|\n";} { 9983 lt_foo=""; 9984 lt_count=0; 9985 for (lt_i = NF; lt_i > 0; lt_i--) { 9986 if ($lt_i != "" && $lt_i != ".") { 9987 if ($lt_i == "..") { 9988 lt_count++; 9989 } else { 9990 if (lt_count == 0) { 9991 lt_foo="/" $lt_i lt_foo; 9992 } else { 9993 lt_count--; 9994 } 9995 } 9996 } 9997 } 9998 if (lt_foo != "") { lt_freq[lt_foo]++; } 9999 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10000}'` 10001 # AWK program above erroneously prepends '/' to C:/dos/paths 10002 # for these hosts. 10003 case $host_os in 10004 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10005 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10006 esac 10007 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10008else 10009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10010fi 10011library_names_spec= 10012libname_spec='lib$name' 10013soname_spec= 10014shrext_cmds=".so" 10015postinstall_cmds= 10016postuninstall_cmds= 10017finish_cmds= 10018finish_eval= 10019shlibpath_var= 10020shlibpath_overrides_runpath=unknown 10021version_type=none 10022dynamic_linker="$host_os ld.so" 10023sys_lib_dlsearch_path_spec="/lib /usr/lib" 10024need_lib_prefix=unknown 10025hardcode_into_libs=no 10026 10027# when you set need_version to no, make sure it does not cause -set_version 10028# flags to be left without arguments 10029need_version=unknown 10030 10031case $host_os in 10032aix3*) 10033 version_type=linux # correct to gnu/linux during the next big refactor 10034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10035 shlibpath_var=LIBPATH 10036 10037 # AIX 3 has no versioning support, so we append a major version to the name. 10038 soname_spec='${libname}${release}${shared_ext}$major' 10039 ;; 10040 10041aix[4-9]*) 10042 version_type=linux # correct to gnu/linux during the next big refactor 10043 need_lib_prefix=no 10044 need_version=no 10045 hardcode_into_libs=yes 10046 if test "$host_cpu" = ia64; then 10047 # AIX 5 supports IA64 10048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10049 shlibpath_var=LD_LIBRARY_PATH 10050 else 10051 # With GCC up to 2.95.x, collect2 would create an import file 10052 # for dependence libraries. The import file would start with 10053 # the line `#! .'. This would cause the generated library to 10054 # depend on `.', always an invalid library. This was fixed in 10055 # development snapshots of GCC prior to 3.0. 10056 case $host_os in 10057 aix4 | aix4.[01] | aix4.[01].*) 10058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10059 echo ' yes ' 10060 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10061 : 10062 else 10063 can_build_shared=no 10064 fi 10065 ;; 10066 esac 10067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10068 # soname into executable. Probably we can add versioning support to 10069 # collect2, so additional links can be useful in future. 10070 if test "$aix_use_runtimelinking" = yes; then 10071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10072 # instead of lib<name>.a to let people know that these are not 10073 # typical AIX shared libraries. 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10075 else 10076 # We preserve .a as extension for shared libraries through AIX4.2 10077 # and later when we are not doing run time linking. 10078 library_names_spec='${libname}${release}.a $libname.a' 10079 soname_spec='${libname}${release}${shared_ext}$major' 10080 fi 10081 shlibpath_var=LIBPATH 10082 fi 10083 ;; 10084 10085amigaos*) 10086 case $host_cpu in 10087 powerpc) 10088 # Since July 2007 AmigaOS4 officially supports .so libraries. 10089 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10091 ;; 10092 m68k) 10093 library_names_spec='$libname.ixlibrary $libname.a' 10094 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10095 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' 10096 ;; 10097 esac 10098 ;; 10099 10100beos*) 10101 library_names_spec='${libname}${shared_ext}' 10102 dynamic_linker="$host_os ld.so" 10103 shlibpath_var=LIBRARY_PATH 10104 ;; 10105 10106bsdi[45]*) 10107 version_type=linux # correct to gnu/linux during the next big refactor 10108 need_version=no 10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10110 soname_spec='${libname}${release}${shared_ext}$major' 10111 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10112 shlibpath_var=LD_LIBRARY_PATH 10113 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10114 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10115 # the default ld.so.conf also contains /usr/contrib/lib and 10116 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10117 # libtool to hard-code these into programs 10118 ;; 10119 10120cygwin* | mingw* | pw32* | cegcc*) 10121 version_type=windows 10122 shrext_cmds=".dll" 10123 need_version=no 10124 need_lib_prefix=no 10125 10126 case $GCC,$cc_basename in 10127 yes,*) 10128 # gcc 10129 library_names_spec='$libname.dll.a' 10130 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10131 postinstall_cmds='base_file=`basename \${file}`~ 10132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10133 dldir=$destdir/`dirname \$dlpath`~ 10134 test -d \$dldir || mkdir -p \$dldir~ 10135 $install_prog $dir/$dlname \$dldir/$dlname~ 10136 chmod a+x \$dldir/$dlname~ 10137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10139 fi' 10140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10141 dlpath=$dir/\$dldll~ 10142 $RM \$dlpath' 10143 shlibpath_overrides_runpath=yes 10144 10145 case $host_os in 10146 cygwin*) 10147 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10149 10150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10151 ;; 10152 mingw* | cegcc*) 10153 # MinGW DLLs use traditional 'lib' prefix 10154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10155 ;; 10156 pw32*) 10157 # pw32 DLLs use 'pw' prefix rather than 'lib' 10158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10159 ;; 10160 esac 10161 dynamic_linker='Win32 ld.exe' 10162 ;; 10163 10164 *,cl*) 10165 # Native MSVC 10166 libname_spec='$name' 10167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10168 library_names_spec='${libname}.dll.lib' 10169 10170 case $build_os in 10171 mingw*) 10172 sys_lib_search_path_spec= 10173 lt_save_ifs=$IFS 10174 IFS=';' 10175 for lt_path in $LIB 10176 do 10177 IFS=$lt_save_ifs 10178 # Let DOS variable expansion print the short 8.3 style file name. 10179 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10180 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10181 done 10182 IFS=$lt_save_ifs 10183 # Convert to MSYS style. 10184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10185 ;; 10186 cygwin*) 10187 # Convert to unix form, then to dos form, then back to unix form 10188 # but this time dos style (no spaces!) so that the unix form looks 10189 # like /cygdrive/c/PROGRA~1:/cygdr... 10190 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10191 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10192 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10193 ;; 10194 *) 10195 sys_lib_search_path_spec="$LIB" 10196 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10197 # It is most probably a Windows format PATH. 10198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10199 else 10200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10201 fi 10202 # FIXME: find the short name or the path components, as spaces are 10203 # common. (e.g. "Program Files" -> "PROGRA~1") 10204 ;; 10205 esac 10206 10207 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10208 postinstall_cmds='base_file=`basename \${file}`~ 10209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10210 dldir=$destdir/`dirname \$dlpath`~ 10211 test -d \$dldir || mkdir -p \$dldir~ 10212 $install_prog $dir/$dlname \$dldir/$dlname' 10213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10214 dlpath=$dir/\$dldll~ 10215 $RM \$dlpath' 10216 shlibpath_overrides_runpath=yes 10217 dynamic_linker='Win32 link.exe' 10218 ;; 10219 10220 *) 10221 # Assume MSVC wrapper 10222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10223 dynamic_linker='Win32 ld.exe' 10224 ;; 10225 esac 10226 # FIXME: first we should search . and the directory the executable is in 10227 shlibpath_var=PATH 10228 ;; 10229 10230darwin* | rhapsody*) 10231 dynamic_linker="$host_os dyld" 10232 version_type=darwin 10233 need_lib_prefix=no 10234 need_version=no 10235 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10236 soname_spec='${libname}${release}${major}$shared_ext' 10237 shlibpath_overrides_runpath=yes 10238 shlibpath_var=DYLD_LIBRARY_PATH 10239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10240 10241 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10243 ;; 10244 10245dgux*) 10246 version_type=linux # correct to gnu/linux during the next big refactor 10247 need_lib_prefix=no 10248 need_version=no 10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10250 soname_spec='${libname}${release}${shared_ext}$major' 10251 shlibpath_var=LD_LIBRARY_PATH 10252 ;; 10253 10254freebsd* | dragonfly*) 10255 # DragonFly does not have aout. When/if they implement a new 10256 # versioning mechanism, adjust this. 10257 if test -x /usr/bin/objformat; then 10258 objformat=`/usr/bin/objformat` 10259 else 10260 case $host_os in 10261 freebsd[23].*) objformat=aout ;; 10262 *) objformat=elf ;; 10263 esac 10264 fi 10265 version_type=freebsd-$objformat 10266 case $version_type in 10267 freebsd-elf*) 10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10269 need_version=no 10270 need_lib_prefix=no 10271 ;; 10272 freebsd-*) 10273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10274 need_version=yes 10275 ;; 10276 esac 10277 shlibpath_var=LD_LIBRARY_PATH 10278 case $host_os in 10279 freebsd2.*) 10280 shlibpath_overrides_runpath=yes 10281 ;; 10282 freebsd3.[01]* | freebsdelf3.[01]*) 10283 shlibpath_overrides_runpath=yes 10284 hardcode_into_libs=yes 10285 ;; 10286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10288 shlibpath_overrides_runpath=no 10289 hardcode_into_libs=yes 10290 ;; 10291 *) # from 4.6 on, and DragonFly 10292 shlibpath_overrides_runpath=yes 10293 hardcode_into_libs=yes 10294 ;; 10295 esac 10296 ;; 10297 10298gnu*) 10299 version_type=linux # correct to gnu/linux during the next big refactor 10300 need_lib_prefix=no 10301 need_version=no 10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10303 soname_spec='${libname}${release}${shared_ext}$major' 10304 shlibpath_var=LD_LIBRARY_PATH 10305 shlibpath_overrides_runpath=no 10306 hardcode_into_libs=yes 10307 ;; 10308 10309haiku*) 10310 version_type=linux # correct to gnu/linux during the next big refactor 10311 need_lib_prefix=no 10312 need_version=no 10313 dynamic_linker="$host_os runtime_loader" 10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10315 soname_spec='${libname}${release}${shared_ext}$major' 10316 shlibpath_var=LIBRARY_PATH 10317 shlibpath_overrides_runpath=yes 10318 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10319 hardcode_into_libs=yes 10320 ;; 10321 10322hpux9* | hpux10* | hpux11*) 10323 # Give a soname corresponding to the major version so that dld.sl refuses to 10324 # link against other versions. 10325 version_type=sunos 10326 need_lib_prefix=no 10327 need_version=no 10328 case $host_cpu in 10329 ia64*) 10330 shrext_cmds='.so' 10331 hardcode_into_libs=yes 10332 dynamic_linker="$host_os dld.so" 10333 shlibpath_var=LD_LIBRARY_PATH 10334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10336 soname_spec='${libname}${release}${shared_ext}$major' 10337 if test "X$HPUX_IA64_MODE" = X32; then 10338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10339 else 10340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10341 fi 10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10343 ;; 10344 hppa*64*) 10345 shrext_cmds='.sl' 10346 hardcode_into_libs=yes 10347 dynamic_linker="$host_os dld.sl" 10348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10351 soname_spec='${libname}${release}${shared_ext}$major' 10352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10354 ;; 10355 *) 10356 shrext_cmds='.sl' 10357 dynamic_linker="$host_os dld.sl" 10358 shlibpath_var=SHLIB_PATH 10359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10361 soname_spec='${libname}${release}${shared_ext}$major' 10362 ;; 10363 esac 10364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10365 postinstall_cmds='chmod 555 $lib' 10366 # or fails outright, so override atomically: 10367 install_override_mode=555 10368 ;; 10369 10370interix[3-9]*) 10371 version_type=linux # correct to gnu/linux during the next big refactor 10372 need_lib_prefix=no 10373 need_version=no 10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10375 soname_spec='${libname}${release}${shared_ext}$major' 10376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10377 shlibpath_var=LD_LIBRARY_PATH 10378 shlibpath_overrides_runpath=no 10379 hardcode_into_libs=yes 10380 ;; 10381 10382irix5* | irix6* | nonstopux*) 10383 case $host_os in 10384 nonstopux*) version_type=nonstopux ;; 10385 *) 10386 if test "$lt_cv_prog_gnu_ld" = yes; then 10387 version_type=linux # correct to gnu/linux during the next big refactor 10388 else 10389 version_type=irix 10390 fi ;; 10391 esac 10392 need_lib_prefix=no 10393 need_version=no 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10396 case $host_os in 10397 irix5* | nonstopux*) 10398 libsuff= shlibsuff= 10399 ;; 10400 *) 10401 case $LD in # libtool.m4 will add one of these switches to LD 10402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10403 libsuff= shlibsuff= libmagic=32-bit;; 10404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10405 libsuff=32 shlibsuff=N32 libmagic=N32;; 10406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10407 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10408 *) libsuff= shlibsuff= libmagic=never-match;; 10409 esac 10410 ;; 10411 esac 10412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10413 shlibpath_overrides_runpath=no 10414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10416 hardcode_into_libs=yes 10417 ;; 10418 10419# No shared lib support for Linux oldld, aout, or coff. 10420linux*oldld* | linux*aout* | linux*coff*) 10421 dynamic_linker=no 10422 ;; 10423 10424# This must be glibc/ELF. 10425linux* | k*bsd*-gnu | kopensolaris*-gnu) 10426 version_type=linux # correct to gnu/linux during the next big refactor 10427 need_lib_prefix=no 10428 need_version=no 10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10430 soname_spec='${libname}${release}${shared_ext}$major' 10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10432 shlibpath_var=LD_LIBRARY_PATH 10433 shlibpath_overrides_runpath=no 10434 10435 # Some binutils ld are patched to set DT_RUNPATH 10436 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10437 $as_echo_n "(cached) " >&6 10438else 10439 lt_cv_shlibpath_overrides_runpath=no 10440 save_LDFLAGS=$LDFLAGS 10441 save_libdir=$libdir 10442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445/* end confdefs.h. */ 10446 10447int 10448main () 10449{ 10450 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455if ac_fn_c_try_link "$LINENO"; then : 10456 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10457 lt_cv_shlibpath_overrides_runpath=yes 10458fi 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462 LDFLAGS=$save_LDFLAGS 10463 libdir=$save_libdir 10464 10465fi 10466 10467 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10468 10469 # This implies no fast_install, which is unacceptable. 10470 # Some rework will be needed to allow for fast_install 10471 # before this can be enabled. 10472 hardcode_into_libs=yes 10473 10474 # Add ABI-specific directories to the system library path. 10475 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10476 10477 # Append ld.so.conf contents to the search path 10478 if test -f /etc/ld.so.conf; then 10479 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' ' '` 10480 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10481 10482 fi 10483 10484 # We used to test for /lib/ld.so.1 and disable shared libraries on 10485 # powerpc, because MkLinux only supported shared libraries with the 10486 # GNU dynamic linker. Since this was broken with cross compilers, 10487 # most powerpc-linux boxes support dynamic linking these days and 10488 # people can always --disable-shared, the test was removed, and we 10489 # assume the GNU/Linux dynamic linker is in use. 10490 dynamic_linker='GNU/Linux ld.so' 10491 ;; 10492 10493netbsd*) 10494 version_type=sunos 10495 need_lib_prefix=no 10496 need_version=no 10497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10500 dynamic_linker='NetBSD (a.out) ld.so' 10501 else 10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10503 soname_spec='${libname}${release}${shared_ext}$major' 10504 dynamic_linker='NetBSD ld.elf_so' 10505 fi 10506 shlibpath_var=LD_LIBRARY_PATH 10507 shlibpath_overrides_runpath=yes 10508 hardcode_into_libs=yes 10509 ;; 10510 10511newsos6) 10512 version_type=linux # correct to gnu/linux during the next big refactor 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 shlibpath_var=LD_LIBRARY_PATH 10515 shlibpath_overrides_runpath=yes 10516 ;; 10517 10518*nto* | *qnx*) 10519 version_type=qnx 10520 need_lib_prefix=no 10521 need_version=no 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10523 soname_spec='${libname}${release}${shared_ext}$major' 10524 shlibpath_var=LD_LIBRARY_PATH 10525 shlibpath_overrides_runpath=no 10526 hardcode_into_libs=yes 10527 dynamic_linker='ldqnx.so' 10528 ;; 10529 10530openbsd*) 10531 version_type=sunos 10532 sys_lib_dlsearch_path_spec="/usr/lib" 10533 need_lib_prefix=no 10534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10535 case $host_os in 10536 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10537 *) need_version=no ;; 10538 esac 10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10541 shlibpath_var=LD_LIBRARY_PATH 10542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10543 case $host_os in 10544 openbsd2.[89] | openbsd2.[89].*) 10545 shlibpath_overrides_runpath=no 10546 ;; 10547 *) 10548 shlibpath_overrides_runpath=yes 10549 ;; 10550 esac 10551 else 10552 shlibpath_overrides_runpath=yes 10553 fi 10554 ;; 10555 10556os2*) 10557 libname_spec='$name' 10558 shrext_cmds=".dll" 10559 need_lib_prefix=no 10560 library_names_spec='$libname${shared_ext} $libname.a' 10561 dynamic_linker='OS/2 ld.exe' 10562 shlibpath_var=LIBPATH 10563 ;; 10564 10565osf3* | osf4* | osf5*) 10566 version_type=osf 10567 need_lib_prefix=no 10568 need_version=no 10569 soname_spec='${libname}${release}${shared_ext}$major' 10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10574 ;; 10575 10576rdos*) 10577 dynamic_linker=no 10578 ;; 10579 10580solaris*) 10581 version_type=linux # correct to gnu/linux during the next big refactor 10582 need_lib_prefix=no 10583 need_version=no 10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10585 soname_spec='${libname}${release}${shared_ext}$major' 10586 shlibpath_var=LD_LIBRARY_PATH 10587 shlibpath_overrides_runpath=yes 10588 hardcode_into_libs=yes 10589 # ldd complains unless libraries are executable 10590 postinstall_cmds='chmod +x $lib' 10591 ;; 10592 10593sunos4*) 10594 version_type=sunos 10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10596 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10597 shlibpath_var=LD_LIBRARY_PATH 10598 shlibpath_overrides_runpath=yes 10599 if test "$with_gnu_ld" = yes; then 10600 need_lib_prefix=no 10601 fi 10602 need_version=yes 10603 ;; 10604 10605sysv4 | sysv4.3*) 10606 version_type=linux # correct to gnu/linux during the next big refactor 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10608 soname_spec='${libname}${release}${shared_ext}$major' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 case $host_vendor in 10611 sni) 10612 shlibpath_overrides_runpath=no 10613 need_lib_prefix=no 10614 runpath_var=LD_RUN_PATH 10615 ;; 10616 siemens) 10617 need_lib_prefix=no 10618 ;; 10619 motorola) 10620 need_lib_prefix=no 10621 need_version=no 10622 shlibpath_overrides_runpath=no 10623 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10624 ;; 10625 esac 10626 ;; 10627 10628sysv4*MP*) 10629 if test -d /usr/nec ;then 10630 version_type=linux # correct to gnu/linux during the next big refactor 10631 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10632 soname_spec='$libname${shared_ext}.$major' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 fi 10635 ;; 10636 10637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10638 version_type=freebsd-elf 10639 need_lib_prefix=no 10640 need_version=no 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10642 soname_spec='${libname}${release}${shared_ext}$major' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 shlibpath_overrides_runpath=yes 10645 hardcode_into_libs=yes 10646 if test "$with_gnu_ld" = yes; then 10647 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10648 else 10649 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10650 case $host_os in 10651 sco3.2v5*) 10652 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10653 ;; 10654 esac 10655 fi 10656 sys_lib_dlsearch_path_spec='/usr/lib' 10657 ;; 10658 10659tpf*) 10660 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10661 version_type=linux # correct to gnu/linux during the next big refactor 10662 need_lib_prefix=no 10663 need_version=no 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10665 shlibpath_var=LD_LIBRARY_PATH 10666 shlibpath_overrides_runpath=no 10667 hardcode_into_libs=yes 10668 ;; 10669 10670uts4*) 10671 version_type=linux # correct to gnu/linux during the next big refactor 10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10673 soname_spec='${libname}${release}${shared_ext}$major' 10674 shlibpath_var=LD_LIBRARY_PATH 10675 ;; 10676 10677*) 10678 dynamic_linker=no 10679 ;; 10680esac 10681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10682$as_echo "$dynamic_linker" >&6; } 10683test "$dynamic_linker" = no && can_build_shared=no 10684 10685variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10686if test "$GCC" = yes; then 10687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10688fi 10689 10690if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10691 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10692fi 10693if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10694 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10695fi 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 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10789$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10790hardcode_action= 10791if test -n "$hardcode_libdir_flag_spec" || 10792 test -n "$runpath_var" || 10793 test "X$hardcode_automatic" = "Xyes" ; then 10794 10795 # We can hardcode non-existent directories. 10796 if test "$hardcode_direct" != no && 10797 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10798 # have to relink, otherwise we might link with an installed library 10799 # when we should be linking with a yet-to-be-installed one 10800 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10801 test "$hardcode_minus_L" != no; then 10802 # Linking always hardcodes the temporary library directory. 10803 hardcode_action=relink 10804 else 10805 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10806 hardcode_action=immediate 10807 fi 10808else 10809 # We cannot hardcode anything, or else we can only hardcode existing 10810 # directories. 10811 hardcode_action=unsupported 10812fi 10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10814$as_echo "$hardcode_action" >&6; } 10815 10816if test "$hardcode_action" = relink || 10817 test "$inherit_rpath" = yes; then 10818 # Fast installation is not supported 10819 enable_fast_install=no 10820elif test "$shlibpath_overrides_runpath" = yes || 10821 test "$enable_shared" = no; then 10822 # Fast installation is not necessary 10823 enable_fast_install=needless 10824fi 10825 10826 10827 10828 10829 10830 10831 if test "x$enable_dlopen" != xyes; then 10832 enable_dlopen=unknown 10833 enable_dlopen_self=unknown 10834 enable_dlopen_self_static=unknown 10835else 10836 lt_cv_dlopen=no 10837 lt_cv_dlopen_libs= 10838 10839 case $host_os in 10840 beos*) 10841 lt_cv_dlopen="load_add_on" 10842 lt_cv_dlopen_libs= 10843 lt_cv_dlopen_self=yes 10844 ;; 10845 10846 mingw* | pw32* | cegcc*) 10847 lt_cv_dlopen="LoadLibrary" 10848 lt_cv_dlopen_libs= 10849 ;; 10850 10851 cygwin*) 10852 lt_cv_dlopen="dlopen" 10853 lt_cv_dlopen_libs= 10854 ;; 10855 10856 darwin*) 10857 # if libdl is installed we need to link against it 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10859$as_echo_n "checking for dlopen in -ldl... " >&6; } 10860if ${ac_cv_lib_dl_dlopen+:} false; then : 10861 $as_echo_n "(cached) " >&6 10862else 10863 ac_check_lib_save_LIBS=$LIBS 10864LIBS="-ldl $LIBS" 10865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10866/* end confdefs.h. */ 10867 10868/* Override any GCC internal prototype to avoid an error. 10869 Use char because int might match the return type of a GCC 10870 builtin and then its argument prototype would still apply. */ 10871#ifdef __cplusplus 10872extern "C" 10873#endif 10874char dlopen (); 10875int 10876main () 10877{ 10878return dlopen (); 10879 ; 10880 return 0; 10881} 10882_ACEOF 10883if ac_fn_c_try_link "$LINENO"; then : 10884 ac_cv_lib_dl_dlopen=yes 10885else 10886 ac_cv_lib_dl_dlopen=no 10887fi 10888rm -f core conftest.err conftest.$ac_objext \ 10889 conftest$ac_exeext conftest.$ac_ext 10890LIBS=$ac_check_lib_save_LIBS 10891fi 10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10893$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10894if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10896else 10897 10898 lt_cv_dlopen="dyld" 10899 lt_cv_dlopen_libs= 10900 lt_cv_dlopen_self=yes 10901 10902fi 10903 10904 ;; 10905 10906 *) 10907 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10908if test "x$ac_cv_func_shl_load" = xyes; then : 10909 lt_cv_dlopen="shl_load" 10910else 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10912$as_echo_n "checking for shl_load in -ldld... " >&6; } 10913if ${ac_cv_lib_dld_shl_load+:} false; then : 10914 $as_echo_n "(cached) " >&6 10915else 10916 ac_check_lib_save_LIBS=$LIBS 10917LIBS="-ldld $LIBS" 10918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919/* end confdefs.h. */ 10920 10921/* Override any GCC internal prototype to avoid an error. 10922 Use char because int might match the return type of a GCC 10923 builtin and then its argument prototype would still apply. */ 10924#ifdef __cplusplus 10925extern "C" 10926#endif 10927char shl_load (); 10928int 10929main () 10930{ 10931return shl_load (); 10932 ; 10933 return 0; 10934} 10935_ACEOF 10936if ac_fn_c_try_link "$LINENO"; then : 10937 ac_cv_lib_dld_shl_load=yes 10938else 10939 ac_cv_lib_dld_shl_load=no 10940fi 10941rm -f core conftest.err conftest.$ac_objext \ 10942 conftest$ac_exeext conftest.$ac_ext 10943LIBS=$ac_check_lib_save_LIBS 10944fi 10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10946$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10947if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10949else 10950 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10951if test "x$ac_cv_func_dlopen" = xyes; then : 10952 lt_cv_dlopen="dlopen" 10953else 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10955$as_echo_n "checking for dlopen in -ldl... " >&6; } 10956if ${ac_cv_lib_dl_dlopen+:} false; then : 10957 $as_echo_n "(cached) " >&6 10958else 10959 ac_check_lib_save_LIBS=$LIBS 10960LIBS="-ldl $LIBS" 10961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10962/* end confdefs.h. */ 10963 10964/* Override any GCC internal prototype to avoid an error. 10965 Use char because int might match the return type of a GCC 10966 builtin and then its argument prototype would still apply. */ 10967#ifdef __cplusplus 10968extern "C" 10969#endif 10970char dlopen (); 10971int 10972main () 10973{ 10974return dlopen (); 10975 ; 10976 return 0; 10977} 10978_ACEOF 10979if ac_fn_c_try_link "$LINENO"; then : 10980 ac_cv_lib_dl_dlopen=yes 10981else 10982 ac_cv_lib_dl_dlopen=no 10983fi 10984rm -f core conftest.err conftest.$ac_objext \ 10985 conftest$ac_exeext conftest.$ac_ext 10986LIBS=$ac_check_lib_save_LIBS 10987fi 10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10989$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10990if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10992else 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10994$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10995if ${ac_cv_lib_svld_dlopen+:} false; then : 10996 $as_echo_n "(cached) " >&6 10997else 10998 ac_check_lib_save_LIBS=$LIBS 10999LIBS="-lsvld $LIBS" 11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002 11003/* Override any GCC internal prototype to avoid an error. 11004 Use char because int might match the return type of a GCC 11005 builtin and then its argument prototype would still apply. */ 11006#ifdef __cplusplus 11007extern "C" 11008#endif 11009char dlopen (); 11010int 11011main () 11012{ 11013return dlopen (); 11014 ; 11015 return 0; 11016} 11017_ACEOF 11018if ac_fn_c_try_link "$LINENO"; then : 11019 ac_cv_lib_svld_dlopen=yes 11020else 11021 ac_cv_lib_svld_dlopen=no 11022fi 11023rm -f core conftest.err conftest.$ac_objext \ 11024 conftest$ac_exeext conftest.$ac_ext 11025LIBS=$ac_check_lib_save_LIBS 11026fi 11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11028$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11029if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11031else 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11033$as_echo_n "checking for dld_link in -ldld... " >&6; } 11034if ${ac_cv_lib_dld_dld_link+:} false; then : 11035 $as_echo_n "(cached) " >&6 11036else 11037 ac_check_lib_save_LIBS=$LIBS 11038LIBS="-ldld $LIBS" 11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041 11042/* Override any GCC internal prototype to avoid an error. 11043 Use char because int might match the return type of a GCC 11044 builtin and then its argument prototype would still apply. */ 11045#ifdef __cplusplus 11046extern "C" 11047#endif 11048char dld_link (); 11049int 11050main () 11051{ 11052return dld_link (); 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057if ac_fn_c_try_link "$LINENO"; then : 11058 ac_cv_lib_dld_dld_link=yes 11059else 11060 ac_cv_lib_dld_dld_link=no 11061fi 11062rm -f core conftest.err conftest.$ac_objext \ 11063 conftest$ac_exeext conftest.$ac_ext 11064LIBS=$ac_check_lib_save_LIBS 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11067$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11068if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11069 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11070fi 11071 11072 11073fi 11074 11075 11076fi 11077 11078 11079fi 11080 11081 11082fi 11083 11084 11085fi 11086 11087 ;; 11088 esac 11089 11090 if test "x$lt_cv_dlopen" != xno; then 11091 enable_dlopen=yes 11092 else 11093 enable_dlopen=no 11094 fi 11095 11096 case $lt_cv_dlopen in 11097 dlopen) 11098 save_CPPFLAGS="$CPPFLAGS" 11099 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11100 11101 save_LDFLAGS="$LDFLAGS" 11102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11103 11104 save_LIBS="$LIBS" 11105 LIBS="$lt_cv_dlopen_libs $LIBS" 11106 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11108$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11109if ${lt_cv_dlopen_self+:} false; then : 11110 $as_echo_n "(cached) " >&6 11111else 11112 if test "$cross_compiling" = yes; then : 11113 lt_cv_dlopen_self=cross 11114else 11115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11116 lt_status=$lt_dlunknown 11117 cat > conftest.$ac_ext <<_LT_EOF 11118#line $LINENO "configure" 11119#include "confdefs.h" 11120 11121#if HAVE_DLFCN_H 11122#include <dlfcn.h> 11123#endif 11124 11125#include <stdio.h> 11126 11127#ifdef RTLD_GLOBAL 11128# define LT_DLGLOBAL RTLD_GLOBAL 11129#else 11130# ifdef DL_GLOBAL 11131# define LT_DLGLOBAL DL_GLOBAL 11132# else 11133# define LT_DLGLOBAL 0 11134# endif 11135#endif 11136 11137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11138 find out it does not work in some platform. */ 11139#ifndef LT_DLLAZY_OR_NOW 11140# ifdef RTLD_LAZY 11141# define LT_DLLAZY_OR_NOW RTLD_LAZY 11142# else 11143# ifdef DL_LAZY 11144# define LT_DLLAZY_OR_NOW DL_LAZY 11145# else 11146# ifdef RTLD_NOW 11147# define LT_DLLAZY_OR_NOW RTLD_NOW 11148# else 11149# ifdef DL_NOW 11150# define LT_DLLAZY_OR_NOW DL_NOW 11151# else 11152# define LT_DLLAZY_OR_NOW 0 11153# endif 11154# endif 11155# endif 11156# endif 11157#endif 11158 11159/* When -fvisbility=hidden is used, assume the code has been annotated 11160 correspondingly for the symbols needed. */ 11161#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11162int fnord () __attribute__((visibility("default"))); 11163#endif 11164 11165int fnord () { return 42; } 11166int main () 11167{ 11168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11169 int status = $lt_dlunknown; 11170 11171 if (self) 11172 { 11173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11174 else 11175 { 11176 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11177 else puts (dlerror ()); 11178 } 11179 /* dlclose (self); */ 11180 } 11181 else 11182 puts (dlerror ()); 11183 11184 return status; 11185} 11186_LT_EOF 11187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11188 (eval $ac_link) 2>&5 11189 ac_status=$? 11190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11191 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11192 (./conftest; exit; ) >&5 2>/dev/null 11193 lt_status=$? 11194 case x$lt_status in 11195 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11196 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11197 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11198 esac 11199 else : 11200 # compilation failed 11201 lt_cv_dlopen_self=no 11202 fi 11203fi 11204rm -fr conftest* 11205 11206 11207fi 11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11209$as_echo "$lt_cv_dlopen_self" >&6; } 11210 11211 if test "x$lt_cv_dlopen_self" = xyes; then 11212 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11214$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11215if ${lt_cv_dlopen_self_static+:} false; then : 11216 $as_echo_n "(cached) " >&6 11217else 11218 if test "$cross_compiling" = yes; then : 11219 lt_cv_dlopen_self_static=cross 11220else 11221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11222 lt_status=$lt_dlunknown 11223 cat > conftest.$ac_ext <<_LT_EOF 11224#line $LINENO "configure" 11225#include "confdefs.h" 11226 11227#if HAVE_DLFCN_H 11228#include <dlfcn.h> 11229#endif 11230 11231#include <stdio.h> 11232 11233#ifdef RTLD_GLOBAL 11234# define LT_DLGLOBAL RTLD_GLOBAL 11235#else 11236# ifdef DL_GLOBAL 11237# define LT_DLGLOBAL DL_GLOBAL 11238# else 11239# define LT_DLGLOBAL 0 11240# endif 11241#endif 11242 11243/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11244 find out it does not work in some platform. */ 11245#ifndef LT_DLLAZY_OR_NOW 11246# ifdef RTLD_LAZY 11247# define LT_DLLAZY_OR_NOW RTLD_LAZY 11248# else 11249# ifdef DL_LAZY 11250# define LT_DLLAZY_OR_NOW DL_LAZY 11251# else 11252# ifdef RTLD_NOW 11253# define LT_DLLAZY_OR_NOW RTLD_NOW 11254# else 11255# ifdef DL_NOW 11256# define LT_DLLAZY_OR_NOW DL_NOW 11257# else 11258# define LT_DLLAZY_OR_NOW 0 11259# endif 11260# endif 11261# endif 11262# endif 11263#endif 11264 11265/* When -fvisbility=hidden is used, assume the code has been annotated 11266 correspondingly for the symbols needed. */ 11267#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11268int fnord () __attribute__((visibility("default"))); 11269#endif 11270 11271int fnord () { return 42; } 11272int main () 11273{ 11274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11275 int status = $lt_dlunknown; 11276 11277 if (self) 11278 { 11279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11280 else 11281 { 11282 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11283 else puts (dlerror ()); 11284 } 11285 /* dlclose (self); */ 11286 } 11287 else 11288 puts (dlerror ()); 11289 11290 return status; 11291} 11292_LT_EOF 11293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11294 (eval $ac_link) 2>&5 11295 ac_status=$? 11296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11297 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11298 (./conftest; exit; ) >&5 2>/dev/null 11299 lt_status=$? 11300 case x$lt_status in 11301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11304 esac 11305 else : 11306 # compilation failed 11307 lt_cv_dlopen_self_static=no 11308 fi 11309fi 11310rm -fr conftest* 11311 11312 11313fi 11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11315$as_echo "$lt_cv_dlopen_self_static" >&6; } 11316 fi 11317 11318 CPPFLAGS="$save_CPPFLAGS" 11319 LDFLAGS="$save_LDFLAGS" 11320 LIBS="$save_LIBS" 11321 ;; 11322 esac 11323 11324 case $lt_cv_dlopen_self in 11325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11326 *) enable_dlopen_self=unknown ;; 11327 esac 11328 11329 case $lt_cv_dlopen_self_static in 11330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11331 *) enable_dlopen_self_static=unknown ;; 11332 esac 11333fi 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351striplib= 11352old_striplib= 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11354$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11355if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11357 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11359$as_echo "yes" >&6; } 11360else 11361# FIXME - insert some real tests, host_os isn't really good enough 11362 case $host_os in 11363 darwin*) 11364 if test -n "$STRIP" ; then 11365 striplib="$STRIP -x" 11366 old_striplib="$STRIP -S" 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11368$as_echo "yes" >&6; } 11369 else 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11371$as_echo "no" >&6; } 11372 fi 11373 ;; 11374 *) 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11376$as_echo "no" >&6; } 11377 ;; 11378 esac 11379fi 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 # Report which library types will actually be built 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11394$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11396$as_echo "$can_build_shared" >&6; } 11397 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11399$as_echo_n "checking whether to build shared libraries... " >&6; } 11400 test "$can_build_shared" = "no" && enable_shared=no 11401 11402 # On AIX, shared libraries and static libraries use the same namespace, and 11403 # are all built from PIC. 11404 case $host_os in 11405 aix3*) 11406 test "$enable_shared" = yes && enable_static=no 11407 if test -n "$RANLIB"; then 11408 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11409 postinstall_cmds='$RANLIB $lib' 11410 fi 11411 ;; 11412 11413 aix[4-9]*) 11414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11415 test "$enable_shared" = yes && enable_static=no 11416 fi 11417 ;; 11418 esac 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11420$as_echo "$enable_shared" >&6; } 11421 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11423$as_echo_n "checking whether to build static libraries... " >&6; } 11424 # Make sure either enable_shared or enable_static is yes. 11425 test "$enable_shared" = yes || enable_static=yes 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11427$as_echo "$enable_static" >&6; } 11428 11429 11430 11431 11432fi 11433ac_ext=c 11434ac_cpp='$CPP $CPPFLAGS' 11435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11437ac_compiler_gnu=$ac_cv_c_compiler_gnu 11438 11439CC="$lt_save_CC" 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 ac_config_commands="$ac_config_commands libtool" 11456 11457 11458 11459 11460# Only expand once: 11461 11462 11463 11464# Require xorg-macros minimum of 1.12 for DocBook external references 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11477$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11478if ${ac_cv_prog_cc_c99+:} false; then : 11479 $as_echo_n "(cached) " >&6 11480else 11481 ac_cv_prog_cc_c99=no 11482ac_save_CC=$CC 11483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11484/* end confdefs.h. */ 11485#include <stdarg.h> 11486#include <stdbool.h> 11487#include <stdlib.h> 11488#include <wchar.h> 11489#include <stdio.h> 11490 11491// Check varargs macros. These examples are taken from C99 6.10.3.5. 11492#define debug(...) fprintf (stderr, __VA_ARGS__) 11493#define showlist(...) puts (#__VA_ARGS__) 11494#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11495static void 11496test_varargs_macros (void) 11497{ 11498 int x = 1234; 11499 int y = 5678; 11500 debug ("Flag"); 11501 debug ("X = %d\n", x); 11502 showlist (The first, second, and third items.); 11503 report (x>y, "x is %d but y is %d", x, y); 11504} 11505 11506// Check long long types. 11507#define BIG64 18446744073709551615ull 11508#define BIG32 4294967295ul 11509#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11510#if !BIG_OK 11511 your preprocessor is broken; 11512#endif 11513#if BIG_OK 11514#else 11515 your preprocessor is broken; 11516#endif 11517static long long int bignum = -9223372036854775807LL; 11518static unsigned long long int ubignum = BIG64; 11519 11520struct incomplete_array 11521{ 11522 int datasize; 11523 double data[]; 11524}; 11525 11526struct named_init { 11527 int number; 11528 const wchar_t *name; 11529 double average; 11530}; 11531 11532typedef const char *ccp; 11533 11534static inline int 11535test_restrict (ccp restrict text) 11536{ 11537 // See if C++-style comments work. 11538 // Iterate through items via the restricted pointer. 11539 // Also check for declarations in for loops. 11540 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11541 continue; 11542 return 0; 11543} 11544 11545// Check varargs and va_copy. 11546static void 11547test_varargs (const char *format, ...) 11548{ 11549 va_list args; 11550 va_start (args, format); 11551 va_list args_copy; 11552 va_copy (args_copy, args); 11553 11554 const char *str; 11555 int number; 11556 float fnumber; 11557 11558 while (*format) 11559 { 11560 switch (*format++) 11561 { 11562 case 's': // string 11563 str = va_arg (args_copy, const char *); 11564 break; 11565 case 'd': // int 11566 number = va_arg (args_copy, int); 11567 break; 11568 case 'f': // float 11569 fnumber = va_arg (args_copy, double); 11570 break; 11571 default: 11572 break; 11573 } 11574 } 11575 va_end (args_copy); 11576 va_end (args); 11577} 11578 11579int 11580main () 11581{ 11582 11583 // Check bool. 11584 _Bool success = false; 11585 11586 // Check restrict. 11587 if (test_restrict ("String literal") == 0) 11588 success = true; 11589 char *restrict newvar = "Another string"; 11590 11591 // Check varargs. 11592 test_varargs ("s, d' f .", "string", 65, 34.234); 11593 test_varargs_macros (); 11594 11595 // Check flexible array members. 11596 struct incomplete_array *ia = 11597 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11598 ia->datasize = 10; 11599 for (int i = 0; i < ia->datasize; ++i) 11600 ia->data[i] = i * 1.234; 11601 11602 // Check named initializers. 11603 struct named_init ni = { 11604 .number = 34, 11605 .name = L"Test wide string", 11606 .average = 543.34343, 11607 }; 11608 11609 ni.number = 58; 11610 11611 int dynamic_array[ni.number]; 11612 dynamic_array[ni.number - 1] = 543; 11613 11614 // work around unused variable warnings 11615 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11616 || dynamic_array[ni.number - 1] != 543); 11617 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11623do 11624 CC="$ac_save_CC $ac_arg" 11625 if ac_fn_c_try_compile "$LINENO"; then : 11626 ac_cv_prog_cc_c99=$ac_arg 11627fi 11628rm -f core conftest.err conftest.$ac_objext 11629 test "x$ac_cv_prog_cc_c99" != "xno" && break 11630done 11631rm -f conftest.$ac_ext 11632CC=$ac_save_CC 11633 11634fi 11635# AC_CACHE_VAL 11636case "x$ac_cv_prog_cc_c99" in 11637 x) 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11639$as_echo "none needed" >&6; } ;; 11640 xno) 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11642$as_echo "unsupported" >&6; } ;; 11643 *) 11644 CC="$CC $ac_cv_prog_cc_c99" 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11646$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11647esac 11648if test "x$ac_cv_prog_cc_c99" != xno; then : 11649 11650fi 11651 11652 11653 11654 11655 11656 11657ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11658if test "x$ac_cv_have_decl___clang__" = xyes; then : 11659 CLANGCC="yes" 11660else 11661 CLANGCC="no" 11662fi 11663 11664ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11665if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11666 INTELCC="yes" 11667else 11668 INTELCC="no" 11669fi 11670 11671ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11672if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11673 SUNCC="yes" 11674else 11675 SUNCC="no" 11676fi 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11687 if test -n "$ac_tool_prefix"; then 11688 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11689set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11691$as_echo_n "checking for $ac_word... " >&6; } 11692if ${ac_cv_path_PKG_CONFIG+:} false; then : 11693 $as_echo_n "(cached) " >&6 11694else 11695 case $PKG_CONFIG in 11696 [\\/]* | ?:[\\/]*) 11697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11698 ;; 11699 *) 11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11701for as_dir in $PATH 11702do 11703 IFS=$as_save_IFS 11704 test -z "$as_dir" && as_dir=. 11705 for ac_exec_ext in '' $ac_executable_extensions; do 11706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11707 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11709 break 2 11710 fi 11711done 11712 done 11713IFS=$as_save_IFS 11714 11715 ;; 11716esac 11717fi 11718PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11719if test -n "$PKG_CONFIG"; then 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11721$as_echo "$PKG_CONFIG" >&6; } 11722else 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11724$as_echo "no" >&6; } 11725fi 11726 11727 11728fi 11729if test -z "$ac_cv_path_PKG_CONFIG"; then 11730 ac_pt_PKG_CONFIG=$PKG_CONFIG 11731 # Extract the first word of "pkg-config", so it can be a program name with args. 11732set dummy pkg-config; ac_word=$2 11733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11734$as_echo_n "checking for $ac_word... " >&6; } 11735if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11736 $as_echo_n "(cached) " >&6 11737else 11738 case $ac_pt_PKG_CONFIG in 11739 [\\/]* | ?:[\\/]*) 11740 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11741 ;; 11742 *) 11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11744for as_dir in $PATH 11745do 11746 IFS=$as_save_IFS 11747 test -z "$as_dir" && as_dir=. 11748 for ac_exec_ext in '' $ac_executable_extensions; do 11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11750 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11752 break 2 11753 fi 11754done 11755 done 11756IFS=$as_save_IFS 11757 11758 ;; 11759esac 11760fi 11761ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11762if test -n "$ac_pt_PKG_CONFIG"; then 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11764$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11765else 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11767$as_echo "no" >&6; } 11768fi 11769 11770 if test "x$ac_pt_PKG_CONFIG" = x; then 11771 PKG_CONFIG="" 11772 else 11773 case $cross_compiling:$ac_tool_warned in 11774yes:) 11775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11777ac_tool_warned=yes ;; 11778esac 11779 PKG_CONFIG=$ac_pt_PKG_CONFIG 11780 fi 11781else 11782 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11783fi 11784 11785fi 11786if test -n "$PKG_CONFIG"; then 11787 _pkg_min_version=0.9.0 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11789$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11790 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11792$as_echo "yes" >&6; } 11793 else 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11795$as_echo "no" >&6; } 11796 PKG_CONFIG="" 11797 fi 11798fi 11799 11800 11801 11802 11803 11804# Check whether --enable-selective-werror was given. 11805if test "${enable_selective_werror+set}" = set; then : 11806 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11807else 11808 SELECTIVE_WERROR=yes 11809fi 11810 11811 11812 11813 11814 11815# -v is too short to test reliably with XORG_TESTSET_CFLAG 11816if test "x$SUNCC" = "xyes"; then 11817 BASE_CFLAGS="-v" 11818else 11819 BASE_CFLAGS="" 11820fi 11821 11822# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836xorg_testset_save_CFLAGS="$CFLAGS" 11837 11838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11843 $as_echo_n "(cached) " >&6 11844else 11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11846/* end confdefs.h. */ 11847int i; 11848_ACEOF 11849if ac_fn_c_try_compile "$LINENO"; then : 11850 xorg_cv_cc_flag_unknown_warning_option=yes 11851else 11852 xorg_cv_cc_flag_unknown_warning_option=no 11853fi 11854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11855fi 11856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11859 CFLAGS="$xorg_testset_save_CFLAGS" 11860fi 11861 11862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11865 fi 11866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11870 $as_echo_n "(cached) " >&6 11871else 11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11873/* end confdefs.h. */ 11874int i; 11875_ACEOF 11876if ac_fn_c_try_compile "$LINENO"; then : 11877 xorg_cv_cc_flag_unused_command_line_argument=yes 11878else 11879 xorg_cv_cc_flag_unused_command_line_argument=no 11880fi 11881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11882fi 11883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11886 CFLAGS="$xorg_testset_save_CFLAGS" 11887fi 11888 11889found="no" 11890 11891 if test $found = "no" ; then 11892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11894 fi 11895 11896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11898 fi 11899 11900 CFLAGS="$CFLAGS -Wall" 11901 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11903$as_echo_n "checking if $CC supports -Wall... " >&6; } 11904 cacheid=xorg_cv_cc_flag__Wall 11905 if eval \${$cacheid+:} false; then : 11906 $as_echo_n "(cached) " >&6 11907else 11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11909/* end confdefs.h. */ 11910int i; 11911int 11912main () 11913{ 11914 11915 ; 11916 return 0; 11917} 11918_ACEOF 11919if ac_fn_c_try_link "$LINENO"; then : 11920 eval $cacheid=yes 11921else 11922 eval $cacheid=no 11923fi 11924rm -f core conftest.err conftest.$ac_objext \ 11925 conftest$ac_exeext conftest.$ac_ext 11926fi 11927 11928 11929 CFLAGS="$xorg_testset_save_CFLAGS" 11930 11931 eval supported=\$$cacheid 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11933$as_echo "$supported" >&6; } 11934 if test "$supported" = "yes" ; then 11935 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11936 found="yes" 11937 fi 11938 fi 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954xorg_testset_save_CFLAGS="$CFLAGS" 11955 11956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11961 $as_echo_n "(cached) " >&6 11962else 11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11964/* end confdefs.h. */ 11965int i; 11966_ACEOF 11967if ac_fn_c_try_compile "$LINENO"; then : 11968 xorg_cv_cc_flag_unknown_warning_option=yes 11969else 11970 xorg_cv_cc_flag_unknown_warning_option=no 11971fi 11972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11973fi 11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11977 CFLAGS="$xorg_testset_save_CFLAGS" 11978fi 11979 11980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11983 fi 11984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11988 $as_echo_n "(cached) " >&6 11989else 11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11991/* end confdefs.h. */ 11992int i; 11993_ACEOF 11994if ac_fn_c_try_compile "$LINENO"; then : 11995 xorg_cv_cc_flag_unused_command_line_argument=yes 11996else 11997 xorg_cv_cc_flag_unused_command_line_argument=no 11998fi 11999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12000fi 12001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12004 CFLAGS="$xorg_testset_save_CFLAGS" 12005fi 12006 12007found="no" 12008 12009 if test $found = "no" ; then 12010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12012 fi 12013 12014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12016 fi 12017 12018 CFLAGS="$CFLAGS -Wpointer-arith" 12019 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12021$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12022 cacheid=xorg_cv_cc_flag__Wpointer_arith 12023 if eval \${$cacheid+:} false; then : 12024 $as_echo_n "(cached) " >&6 12025else 12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12027/* end confdefs.h. */ 12028int i; 12029int 12030main () 12031{ 12032 12033 ; 12034 return 0; 12035} 12036_ACEOF 12037if ac_fn_c_try_link "$LINENO"; then : 12038 eval $cacheid=yes 12039else 12040 eval $cacheid=no 12041fi 12042rm -f core conftest.err conftest.$ac_objext \ 12043 conftest$ac_exeext conftest.$ac_ext 12044fi 12045 12046 12047 CFLAGS="$xorg_testset_save_CFLAGS" 12048 12049 eval supported=\$$cacheid 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12051$as_echo "$supported" >&6; } 12052 if test "$supported" = "yes" ; then 12053 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12054 found="yes" 12055 fi 12056 fi 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072xorg_testset_save_CFLAGS="$CFLAGS" 12073 12074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12079 $as_echo_n "(cached) " >&6 12080else 12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12082/* end confdefs.h. */ 12083int i; 12084_ACEOF 12085if ac_fn_c_try_compile "$LINENO"; then : 12086 xorg_cv_cc_flag_unknown_warning_option=yes 12087else 12088 xorg_cv_cc_flag_unknown_warning_option=no 12089fi 12090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12091fi 12092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12095 CFLAGS="$xorg_testset_save_CFLAGS" 12096fi 12097 12098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12101 fi 12102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12106 $as_echo_n "(cached) " >&6 12107else 12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12109/* end confdefs.h. */ 12110int i; 12111_ACEOF 12112if ac_fn_c_try_compile "$LINENO"; then : 12113 xorg_cv_cc_flag_unused_command_line_argument=yes 12114else 12115 xorg_cv_cc_flag_unused_command_line_argument=no 12116fi 12117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12118fi 12119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12122 CFLAGS="$xorg_testset_save_CFLAGS" 12123fi 12124 12125found="no" 12126 12127 if test $found = "no" ; then 12128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12130 fi 12131 12132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12134 fi 12135 12136 CFLAGS="$CFLAGS -Wmissing-declarations" 12137 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12139$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12140 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12141 if eval \${$cacheid+:} false; then : 12142 $as_echo_n "(cached) " >&6 12143else 12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12145/* end confdefs.h. */ 12146int i; 12147int 12148main () 12149{ 12150 12151 ; 12152 return 0; 12153} 12154_ACEOF 12155if ac_fn_c_try_link "$LINENO"; then : 12156 eval $cacheid=yes 12157else 12158 eval $cacheid=no 12159fi 12160rm -f core conftest.err conftest.$ac_objext \ 12161 conftest$ac_exeext conftest.$ac_ext 12162fi 12163 12164 12165 CFLAGS="$xorg_testset_save_CFLAGS" 12166 12167 eval supported=\$$cacheid 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12169$as_echo "$supported" >&6; } 12170 if test "$supported" = "yes" ; then 12171 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12172 found="yes" 12173 fi 12174 fi 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190xorg_testset_save_CFLAGS="$CFLAGS" 12191 12192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12197 $as_echo_n "(cached) " >&6 12198else 12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12200/* end confdefs.h. */ 12201int i; 12202_ACEOF 12203if ac_fn_c_try_compile "$LINENO"; then : 12204 xorg_cv_cc_flag_unknown_warning_option=yes 12205else 12206 xorg_cv_cc_flag_unknown_warning_option=no 12207fi 12208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12209fi 12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12213 CFLAGS="$xorg_testset_save_CFLAGS" 12214fi 12215 12216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12219 fi 12220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12224 $as_echo_n "(cached) " >&6 12225else 12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12227/* end confdefs.h. */ 12228int i; 12229_ACEOF 12230if ac_fn_c_try_compile "$LINENO"; then : 12231 xorg_cv_cc_flag_unused_command_line_argument=yes 12232else 12233 xorg_cv_cc_flag_unused_command_line_argument=no 12234fi 12235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12236fi 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12240 CFLAGS="$xorg_testset_save_CFLAGS" 12241fi 12242 12243found="no" 12244 12245 if test $found = "no" ; then 12246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12248 fi 12249 12250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12252 fi 12253 12254 CFLAGS="$CFLAGS -Wformat=2" 12255 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12257$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12258 cacheid=xorg_cv_cc_flag__Wformat_2 12259 if eval \${$cacheid+:} false; then : 12260 $as_echo_n "(cached) " >&6 12261else 12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12263/* end confdefs.h. */ 12264int i; 12265int 12266main () 12267{ 12268 12269 ; 12270 return 0; 12271} 12272_ACEOF 12273if ac_fn_c_try_link "$LINENO"; then : 12274 eval $cacheid=yes 12275else 12276 eval $cacheid=no 12277fi 12278rm -f core conftest.err conftest.$ac_objext \ 12279 conftest$ac_exeext conftest.$ac_ext 12280fi 12281 12282 12283 CFLAGS="$xorg_testset_save_CFLAGS" 12284 12285 eval supported=\$$cacheid 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12287$as_echo "$supported" >&6; } 12288 if test "$supported" = "yes" ; then 12289 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12290 found="yes" 12291 fi 12292 fi 12293 12294 if test $found = "no" ; then 12295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12297 fi 12298 12299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12301 fi 12302 12303 CFLAGS="$CFLAGS -Wformat" 12304 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12306$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12307 cacheid=xorg_cv_cc_flag__Wformat 12308 if eval \${$cacheid+:} false; then : 12309 $as_echo_n "(cached) " >&6 12310else 12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12312/* end confdefs.h. */ 12313int i; 12314int 12315main () 12316{ 12317 12318 ; 12319 return 0; 12320} 12321_ACEOF 12322if ac_fn_c_try_link "$LINENO"; then : 12323 eval $cacheid=yes 12324else 12325 eval $cacheid=no 12326fi 12327rm -f core conftest.err conftest.$ac_objext \ 12328 conftest$ac_exeext conftest.$ac_ext 12329fi 12330 12331 12332 CFLAGS="$xorg_testset_save_CFLAGS" 12333 12334 eval supported=\$$cacheid 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12336$as_echo "$supported" >&6; } 12337 if test "$supported" = "yes" ; then 12338 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12339 found="yes" 12340 fi 12341 fi 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359xorg_testset_save_CFLAGS="$CFLAGS" 12360 12361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12366 $as_echo_n "(cached) " >&6 12367else 12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12369/* end confdefs.h. */ 12370int i; 12371_ACEOF 12372if ac_fn_c_try_compile "$LINENO"; then : 12373 xorg_cv_cc_flag_unknown_warning_option=yes 12374else 12375 xorg_cv_cc_flag_unknown_warning_option=no 12376fi 12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12378fi 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12382 CFLAGS="$xorg_testset_save_CFLAGS" 12383fi 12384 12385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12388 fi 12389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12393 $as_echo_n "(cached) " >&6 12394else 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12396/* end confdefs.h. */ 12397int i; 12398_ACEOF 12399if ac_fn_c_try_compile "$LINENO"; then : 12400 xorg_cv_cc_flag_unused_command_line_argument=yes 12401else 12402 xorg_cv_cc_flag_unused_command_line_argument=no 12403fi 12404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12405fi 12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12409 CFLAGS="$xorg_testset_save_CFLAGS" 12410fi 12411 12412found="no" 12413 12414 if test $found = "no" ; then 12415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12417 fi 12418 12419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12421 fi 12422 12423 CFLAGS="$CFLAGS -Wstrict-prototypes" 12424 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12426$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12427 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12428 if eval \${$cacheid+:} false; then : 12429 $as_echo_n "(cached) " >&6 12430else 12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12432/* end confdefs.h. */ 12433int i; 12434int 12435main () 12436{ 12437 12438 ; 12439 return 0; 12440} 12441_ACEOF 12442if ac_fn_c_try_link "$LINENO"; then : 12443 eval $cacheid=yes 12444else 12445 eval $cacheid=no 12446fi 12447rm -f core conftest.err conftest.$ac_objext \ 12448 conftest$ac_exeext conftest.$ac_ext 12449fi 12450 12451 12452 CFLAGS="$xorg_testset_save_CFLAGS" 12453 12454 eval supported=\$$cacheid 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12456$as_echo "$supported" >&6; } 12457 if test "$supported" = "yes" ; then 12458 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12459 found="yes" 12460 fi 12461 fi 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477xorg_testset_save_CFLAGS="$CFLAGS" 12478 12479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485else 12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12487/* end confdefs.h. */ 12488int i; 12489_ACEOF 12490if ac_fn_c_try_compile "$LINENO"; then : 12491 xorg_cv_cc_flag_unknown_warning_option=yes 12492else 12493 xorg_cv_cc_flag_unknown_warning_option=no 12494fi 12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12496fi 12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12500 CFLAGS="$xorg_testset_save_CFLAGS" 12501fi 12502 12503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12506 fi 12507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12511 $as_echo_n "(cached) " >&6 12512else 12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12514/* end confdefs.h. */ 12515int i; 12516_ACEOF 12517if ac_fn_c_try_compile "$LINENO"; then : 12518 xorg_cv_cc_flag_unused_command_line_argument=yes 12519else 12520 xorg_cv_cc_flag_unused_command_line_argument=no 12521fi 12522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12523fi 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12527 CFLAGS="$xorg_testset_save_CFLAGS" 12528fi 12529 12530found="no" 12531 12532 if test $found = "no" ; then 12533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12535 fi 12536 12537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12539 fi 12540 12541 CFLAGS="$CFLAGS -Wmissing-prototypes" 12542 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12544$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12545 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12546 if eval \${$cacheid+:} false; then : 12547 $as_echo_n "(cached) " >&6 12548else 12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12550/* end confdefs.h. */ 12551int i; 12552int 12553main () 12554{ 12555 12556 ; 12557 return 0; 12558} 12559_ACEOF 12560if ac_fn_c_try_link "$LINENO"; then : 12561 eval $cacheid=yes 12562else 12563 eval $cacheid=no 12564fi 12565rm -f core conftest.err conftest.$ac_objext \ 12566 conftest$ac_exeext conftest.$ac_ext 12567fi 12568 12569 12570 CFLAGS="$xorg_testset_save_CFLAGS" 12571 12572 eval supported=\$$cacheid 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12574$as_echo "$supported" >&6; } 12575 if test "$supported" = "yes" ; then 12576 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12577 found="yes" 12578 fi 12579 fi 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595xorg_testset_save_CFLAGS="$CFLAGS" 12596 12597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12602 $as_echo_n "(cached) " >&6 12603else 12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12605/* end confdefs.h. */ 12606int i; 12607_ACEOF 12608if ac_fn_c_try_compile "$LINENO"; then : 12609 xorg_cv_cc_flag_unknown_warning_option=yes 12610else 12611 xorg_cv_cc_flag_unknown_warning_option=no 12612fi 12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12614fi 12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12618 CFLAGS="$xorg_testset_save_CFLAGS" 12619fi 12620 12621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12624 fi 12625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630else 12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12632/* end confdefs.h. */ 12633int i; 12634_ACEOF 12635if ac_fn_c_try_compile "$LINENO"; then : 12636 xorg_cv_cc_flag_unused_command_line_argument=yes 12637else 12638 xorg_cv_cc_flag_unused_command_line_argument=no 12639fi 12640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12645 CFLAGS="$xorg_testset_save_CFLAGS" 12646fi 12647 12648found="no" 12649 12650 if test $found = "no" ; then 12651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12653 fi 12654 12655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12657 fi 12658 12659 CFLAGS="$CFLAGS -Wnested-externs" 12660 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12662$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12663 cacheid=xorg_cv_cc_flag__Wnested_externs 12664 if eval \${$cacheid+:} false; then : 12665 $as_echo_n "(cached) " >&6 12666else 12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668/* end confdefs.h. */ 12669int i; 12670int 12671main () 12672{ 12673 12674 ; 12675 return 0; 12676} 12677_ACEOF 12678if ac_fn_c_try_link "$LINENO"; then : 12679 eval $cacheid=yes 12680else 12681 eval $cacheid=no 12682fi 12683rm -f core conftest.err conftest.$ac_objext \ 12684 conftest$ac_exeext conftest.$ac_ext 12685fi 12686 12687 12688 CFLAGS="$xorg_testset_save_CFLAGS" 12689 12690 eval supported=\$$cacheid 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12692$as_echo "$supported" >&6; } 12693 if test "$supported" = "yes" ; then 12694 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12695 found="yes" 12696 fi 12697 fi 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713xorg_testset_save_CFLAGS="$CFLAGS" 12714 12715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12720 $as_echo_n "(cached) " >&6 12721else 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724int i; 12725_ACEOF 12726if ac_fn_c_try_compile "$LINENO"; then : 12727 xorg_cv_cc_flag_unknown_warning_option=yes 12728else 12729 xorg_cv_cc_flag_unknown_warning_option=no 12730fi 12731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12732fi 12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12736 CFLAGS="$xorg_testset_save_CFLAGS" 12737fi 12738 12739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12742 fi 12743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12747 $as_echo_n "(cached) " >&6 12748else 12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12750/* end confdefs.h. */ 12751int i; 12752_ACEOF 12753if ac_fn_c_try_compile "$LINENO"; then : 12754 xorg_cv_cc_flag_unused_command_line_argument=yes 12755else 12756 xorg_cv_cc_flag_unused_command_line_argument=no 12757fi 12758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12759fi 12760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12763 CFLAGS="$xorg_testset_save_CFLAGS" 12764fi 12765 12766found="no" 12767 12768 if test $found = "no" ; then 12769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12771 fi 12772 12773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12775 fi 12776 12777 CFLAGS="$CFLAGS -Wbad-function-cast" 12778 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12780$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12781 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12782 if eval \${$cacheid+:} false; then : 12783 $as_echo_n "(cached) " >&6 12784else 12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12786/* end confdefs.h. */ 12787int i; 12788int 12789main () 12790{ 12791 12792 ; 12793 return 0; 12794} 12795_ACEOF 12796if ac_fn_c_try_link "$LINENO"; then : 12797 eval $cacheid=yes 12798else 12799 eval $cacheid=no 12800fi 12801rm -f core conftest.err conftest.$ac_objext \ 12802 conftest$ac_exeext conftest.$ac_ext 12803fi 12804 12805 12806 CFLAGS="$xorg_testset_save_CFLAGS" 12807 12808 eval supported=\$$cacheid 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12810$as_echo "$supported" >&6; } 12811 if test "$supported" = "yes" ; then 12812 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12813 found="yes" 12814 fi 12815 fi 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831xorg_testset_save_CFLAGS="$CFLAGS" 12832 12833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12838 $as_echo_n "(cached) " >&6 12839else 12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12841/* end confdefs.h. */ 12842int i; 12843_ACEOF 12844if ac_fn_c_try_compile "$LINENO"; then : 12845 xorg_cv_cc_flag_unknown_warning_option=yes 12846else 12847 xorg_cv_cc_flag_unknown_warning_option=no 12848fi 12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12850fi 12851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12854 CFLAGS="$xorg_testset_save_CFLAGS" 12855fi 12856 12857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12860 fi 12861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12865 $as_echo_n "(cached) " >&6 12866else 12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12868/* end confdefs.h. */ 12869int i; 12870_ACEOF 12871if ac_fn_c_try_compile "$LINENO"; then : 12872 xorg_cv_cc_flag_unused_command_line_argument=yes 12873else 12874 xorg_cv_cc_flag_unused_command_line_argument=no 12875fi 12876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12877fi 12878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12881 CFLAGS="$xorg_testset_save_CFLAGS" 12882fi 12883 12884found="no" 12885 12886 if test $found = "no" ; then 12887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12889 fi 12890 12891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12893 fi 12894 12895 CFLAGS="$CFLAGS -Wold-style-definition" 12896 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12898$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12899 cacheid=xorg_cv_cc_flag__Wold_style_definition 12900 if eval \${$cacheid+:} false; then : 12901 $as_echo_n "(cached) " >&6 12902else 12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12904/* end confdefs.h. */ 12905int i; 12906int 12907main () 12908{ 12909 12910 ; 12911 return 0; 12912} 12913_ACEOF 12914if ac_fn_c_try_link "$LINENO"; then : 12915 eval $cacheid=yes 12916else 12917 eval $cacheid=no 12918fi 12919rm -f core conftest.err conftest.$ac_objext \ 12920 conftest$ac_exeext conftest.$ac_ext 12921fi 12922 12923 12924 CFLAGS="$xorg_testset_save_CFLAGS" 12925 12926 eval supported=\$$cacheid 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12928$as_echo "$supported" >&6; } 12929 if test "$supported" = "yes" ; then 12930 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12931 found="yes" 12932 fi 12933 fi 12934 12935 if test $found = "no" ; then 12936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12938 fi 12939 12940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12942 fi 12943 12944 CFLAGS="$CFLAGS -fd" 12945 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 12947$as_echo_n "checking if $CC supports -fd... " >&6; } 12948 cacheid=xorg_cv_cc_flag__fd 12949 if eval \${$cacheid+:} false; then : 12950 $as_echo_n "(cached) " >&6 12951else 12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12953/* end confdefs.h. */ 12954int i; 12955int 12956main () 12957{ 12958 12959 ; 12960 return 0; 12961} 12962_ACEOF 12963if ac_fn_c_try_link "$LINENO"; then : 12964 eval $cacheid=yes 12965else 12966 eval $cacheid=no 12967fi 12968rm -f core conftest.err conftest.$ac_objext \ 12969 conftest$ac_exeext conftest.$ac_ext 12970fi 12971 12972 12973 CFLAGS="$xorg_testset_save_CFLAGS" 12974 12975 eval supported=\$$cacheid 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12977$as_echo "$supported" >&6; } 12978 if test "$supported" = "yes" ; then 12979 BASE_CFLAGS="$BASE_CFLAGS -fd" 12980 found="yes" 12981 fi 12982 fi 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998xorg_testset_save_CFLAGS="$CFLAGS" 12999 13000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13005 $as_echo_n "(cached) " >&6 13006else 13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13008/* end confdefs.h. */ 13009int i; 13010_ACEOF 13011if ac_fn_c_try_compile "$LINENO"; then : 13012 xorg_cv_cc_flag_unknown_warning_option=yes 13013else 13014 xorg_cv_cc_flag_unknown_warning_option=no 13015fi 13016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13017fi 13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13021 CFLAGS="$xorg_testset_save_CFLAGS" 13022fi 13023 13024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13027 fi 13028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13032 $as_echo_n "(cached) " >&6 13033else 13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13035/* end confdefs.h. */ 13036int i; 13037_ACEOF 13038if ac_fn_c_try_compile "$LINENO"; then : 13039 xorg_cv_cc_flag_unused_command_line_argument=yes 13040else 13041 xorg_cv_cc_flag_unused_command_line_argument=no 13042fi 13043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13044fi 13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13048 CFLAGS="$xorg_testset_save_CFLAGS" 13049fi 13050 13051found="no" 13052 13053 if test $found = "no" ; then 13054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13056 fi 13057 13058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13060 fi 13061 13062 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13063 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13065$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13066 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13067 if eval \${$cacheid+:} false; then : 13068 $as_echo_n "(cached) " >&6 13069else 13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13071/* end confdefs.h. */ 13072int i; 13073int 13074main () 13075{ 13076 13077 ; 13078 return 0; 13079} 13080_ACEOF 13081if ac_fn_c_try_link "$LINENO"; then : 13082 eval $cacheid=yes 13083else 13084 eval $cacheid=no 13085fi 13086rm -f core conftest.err conftest.$ac_objext \ 13087 conftest$ac_exeext conftest.$ac_ext 13088fi 13089 13090 13091 CFLAGS="$xorg_testset_save_CFLAGS" 13092 13093 eval supported=\$$cacheid 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13095$as_echo "$supported" >&6; } 13096 if test "$supported" = "yes" ; then 13097 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13098 found="yes" 13099 fi 13100 fi 13101 13102 13103 13104 13105 13106# This chunk adds additional warnings that could catch undesired effects. 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120xorg_testset_save_CFLAGS="$CFLAGS" 13121 13122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13127 $as_echo_n "(cached) " >&6 13128else 13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13130/* end confdefs.h. */ 13131int i; 13132_ACEOF 13133if ac_fn_c_try_compile "$LINENO"; then : 13134 xorg_cv_cc_flag_unknown_warning_option=yes 13135else 13136 xorg_cv_cc_flag_unknown_warning_option=no 13137fi 13138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13139fi 13140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13143 CFLAGS="$xorg_testset_save_CFLAGS" 13144fi 13145 13146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13149 fi 13150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13154 $as_echo_n "(cached) " >&6 13155else 13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13157/* end confdefs.h. */ 13158int i; 13159_ACEOF 13160if ac_fn_c_try_compile "$LINENO"; then : 13161 xorg_cv_cc_flag_unused_command_line_argument=yes 13162else 13163 xorg_cv_cc_flag_unused_command_line_argument=no 13164fi 13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13166fi 13167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13170 CFLAGS="$xorg_testset_save_CFLAGS" 13171fi 13172 13173found="no" 13174 13175 if test $found = "no" ; then 13176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13178 fi 13179 13180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13182 fi 13183 13184 CFLAGS="$CFLAGS -Wunused" 13185 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13187$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13188 cacheid=xorg_cv_cc_flag__Wunused 13189 if eval \${$cacheid+:} false; then : 13190 $as_echo_n "(cached) " >&6 13191else 13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13193/* end confdefs.h. */ 13194int i; 13195int 13196main () 13197{ 13198 13199 ; 13200 return 0; 13201} 13202_ACEOF 13203if ac_fn_c_try_link "$LINENO"; then : 13204 eval $cacheid=yes 13205else 13206 eval $cacheid=no 13207fi 13208rm -f core conftest.err conftest.$ac_objext \ 13209 conftest$ac_exeext conftest.$ac_ext 13210fi 13211 13212 13213 CFLAGS="$xorg_testset_save_CFLAGS" 13214 13215 eval supported=\$$cacheid 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13217$as_echo "$supported" >&6; } 13218 if test "$supported" = "yes" ; then 13219 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13220 found="yes" 13221 fi 13222 fi 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238xorg_testset_save_CFLAGS="$CFLAGS" 13239 13240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13245 $as_echo_n "(cached) " >&6 13246else 13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13248/* end confdefs.h. */ 13249int i; 13250_ACEOF 13251if ac_fn_c_try_compile "$LINENO"; then : 13252 xorg_cv_cc_flag_unknown_warning_option=yes 13253else 13254 xorg_cv_cc_flag_unknown_warning_option=no 13255fi 13256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13257fi 13258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13261 CFLAGS="$xorg_testset_save_CFLAGS" 13262fi 13263 13264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13267 fi 13268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13272 $as_echo_n "(cached) " >&6 13273else 13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13275/* end confdefs.h. */ 13276int i; 13277_ACEOF 13278if ac_fn_c_try_compile "$LINENO"; then : 13279 xorg_cv_cc_flag_unused_command_line_argument=yes 13280else 13281 xorg_cv_cc_flag_unused_command_line_argument=no 13282fi 13283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13284fi 13285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13288 CFLAGS="$xorg_testset_save_CFLAGS" 13289fi 13290 13291found="no" 13292 13293 if test $found = "no" ; then 13294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13296 fi 13297 13298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13300 fi 13301 13302 CFLAGS="$CFLAGS -Wuninitialized" 13303 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13305$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13306 cacheid=xorg_cv_cc_flag__Wuninitialized 13307 if eval \${$cacheid+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13311/* end confdefs.h. */ 13312int i; 13313int 13314main () 13315{ 13316 13317 ; 13318 return 0; 13319} 13320_ACEOF 13321if ac_fn_c_try_link "$LINENO"; then : 13322 eval $cacheid=yes 13323else 13324 eval $cacheid=no 13325fi 13326rm -f core conftest.err conftest.$ac_objext \ 13327 conftest$ac_exeext conftest.$ac_ext 13328fi 13329 13330 13331 CFLAGS="$xorg_testset_save_CFLAGS" 13332 13333 eval supported=\$$cacheid 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13335$as_echo "$supported" >&6; } 13336 if test "$supported" = "yes" ; then 13337 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13338 found="yes" 13339 fi 13340 fi 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356xorg_testset_save_CFLAGS="$CFLAGS" 13357 13358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13363 $as_echo_n "(cached) " >&6 13364else 13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13366/* end confdefs.h. */ 13367int i; 13368_ACEOF 13369if ac_fn_c_try_compile "$LINENO"; then : 13370 xorg_cv_cc_flag_unknown_warning_option=yes 13371else 13372 xorg_cv_cc_flag_unknown_warning_option=no 13373fi 13374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13375fi 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13379 CFLAGS="$xorg_testset_save_CFLAGS" 13380fi 13381 13382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 fi 13386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13390 $as_echo_n "(cached) " >&6 13391else 13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13393/* end confdefs.h. */ 13394int i; 13395_ACEOF 13396if ac_fn_c_try_compile "$LINENO"; then : 13397 xorg_cv_cc_flag_unused_command_line_argument=yes 13398else 13399 xorg_cv_cc_flag_unused_command_line_argument=no 13400fi 13401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13402fi 13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13406 CFLAGS="$xorg_testset_save_CFLAGS" 13407fi 13408 13409found="no" 13410 13411 if test $found = "no" ; then 13412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13414 fi 13415 13416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13418 fi 13419 13420 CFLAGS="$CFLAGS -Wshadow" 13421 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13423$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13424 cacheid=xorg_cv_cc_flag__Wshadow 13425 if eval \${$cacheid+:} false; then : 13426 $as_echo_n "(cached) " >&6 13427else 13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13429/* end confdefs.h. */ 13430int i; 13431int 13432main () 13433{ 13434 13435 ; 13436 return 0; 13437} 13438_ACEOF 13439if ac_fn_c_try_link "$LINENO"; then : 13440 eval $cacheid=yes 13441else 13442 eval $cacheid=no 13443fi 13444rm -f core conftest.err conftest.$ac_objext \ 13445 conftest$ac_exeext conftest.$ac_ext 13446fi 13447 13448 13449 CFLAGS="$xorg_testset_save_CFLAGS" 13450 13451 eval supported=\$$cacheid 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13453$as_echo "$supported" >&6; } 13454 if test "$supported" = "yes" ; then 13455 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13456 found="yes" 13457 fi 13458 fi 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474xorg_testset_save_CFLAGS="$CFLAGS" 13475 13476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13481 $as_echo_n "(cached) " >&6 13482else 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485int i; 13486_ACEOF 13487if ac_fn_c_try_compile "$LINENO"; then : 13488 xorg_cv_cc_flag_unknown_warning_option=yes 13489else 13490 xorg_cv_cc_flag_unknown_warning_option=no 13491fi 13492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13493fi 13494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13497 CFLAGS="$xorg_testset_save_CFLAGS" 13498fi 13499 13500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13503 fi 13504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13508 $as_echo_n "(cached) " >&6 13509else 13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13511/* end confdefs.h. */ 13512int i; 13513_ACEOF 13514if ac_fn_c_try_compile "$LINENO"; then : 13515 xorg_cv_cc_flag_unused_command_line_argument=yes 13516else 13517 xorg_cv_cc_flag_unused_command_line_argument=no 13518fi 13519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13520fi 13521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13524 CFLAGS="$xorg_testset_save_CFLAGS" 13525fi 13526 13527found="no" 13528 13529 if test $found = "no" ; then 13530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13532 fi 13533 13534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13536 fi 13537 13538 CFLAGS="$CFLAGS -Wmissing-noreturn" 13539 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13541$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13542 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13543 if eval \${$cacheid+:} false; then : 13544 $as_echo_n "(cached) " >&6 13545else 13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13547/* end confdefs.h. */ 13548int i; 13549int 13550main () 13551{ 13552 13553 ; 13554 return 0; 13555} 13556_ACEOF 13557if ac_fn_c_try_link "$LINENO"; then : 13558 eval $cacheid=yes 13559else 13560 eval $cacheid=no 13561fi 13562rm -f core conftest.err conftest.$ac_objext \ 13563 conftest$ac_exeext conftest.$ac_ext 13564fi 13565 13566 13567 CFLAGS="$xorg_testset_save_CFLAGS" 13568 13569 eval supported=\$$cacheid 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13571$as_echo "$supported" >&6; } 13572 if test "$supported" = "yes" ; then 13573 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13574 found="yes" 13575 fi 13576 fi 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592xorg_testset_save_CFLAGS="$CFLAGS" 13593 13594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13599 $as_echo_n "(cached) " >&6 13600else 13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13602/* end confdefs.h. */ 13603int i; 13604_ACEOF 13605if ac_fn_c_try_compile "$LINENO"; then : 13606 xorg_cv_cc_flag_unknown_warning_option=yes 13607else 13608 xorg_cv_cc_flag_unknown_warning_option=no 13609fi 13610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13611fi 13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13615 CFLAGS="$xorg_testset_save_CFLAGS" 13616fi 13617 13618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13621 fi 13622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13626 $as_echo_n "(cached) " >&6 13627else 13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13629/* end confdefs.h. */ 13630int i; 13631_ACEOF 13632if ac_fn_c_try_compile "$LINENO"; then : 13633 xorg_cv_cc_flag_unused_command_line_argument=yes 13634else 13635 xorg_cv_cc_flag_unused_command_line_argument=no 13636fi 13637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13638fi 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13642 CFLAGS="$xorg_testset_save_CFLAGS" 13643fi 13644 13645found="no" 13646 13647 if test $found = "no" ; then 13648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13650 fi 13651 13652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13654 fi 13655 13656 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13657 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13659$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13660 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13661 if eval \${$cacheid+:} false; then : 13662 $as_echo_n "(cached) " >&6 13663else 13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13665/* end confdefs.h. */ 13666int i; 13667int 13668main () 13669{ 13670 13671 ; 13672 return 0; 13673} 13674_ACEOF 13675if ac_fn_c_try_link "$LINENO"; then : 13676 eval $cacheid=yes 13677else 13678 eval $cacheid=no 13679fi 13680rm -f core conftest.err conftest.$ac_objext \ 13681 conftest$ac_exeext conftest.$ac_ext 13682fi 13683 13684 13685 CFLAGS="$xorg_testset_save_CFLAGS" 13686 13687 eval supported=\$$cacheid 13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13689$as_echo "$supported" >&6; } 13690 if test "$supported" = "yes" ; then 13691 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13692 found="yes" 13693 fi 13694 fi 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710xorg_testset_save_CFLAGS="$CFLAGS" 13711 13712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718else 13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13720/* end confdefs.h. */ 13721int i; 13722_ACEOF 13723if ac_fn_c_try_compile "$LINENO"; then : 13724 xorg_cv_cc_flag_unknown_warning_option=yes 13725else 13726 xorg_cv_cc_flag_unknown_warning_option=no 13727fi 13728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13729fi 13730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13733 CFLAGS="$xorg_testset_save_CFLAGS" 13734fi 13735 13736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13739 fi 13740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13744 $as_echo_n "(cached) " >&6 13745else 13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13747/* end confdefs.h. */ 13748int i; 13749_ACEOF 13750if ac_fn_c_try_compile "$LINENO"; then : 13751 xorg_cv_cc_flag_unused_command_line_argument=yes 13752else 13753 xorg_cv_cc_flag_unused_command_line_argument=no 13754fi 13755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13756fi 13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13760 CFLAGS="$xorg_testset_save_CFLAGS" 13761fi 13762 13763found="no" 13764 13765 if test $found = "no" ; then 13766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13768 fi 13769 13770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13772 fi 13773 13774 CFLAGS="$CFLAGS -Wredundant-decls" 13775 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13777$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13778 cacheid=xorg_cv_cc_flag__Wredundant_decls 13779 if eval \${$cacheid+:} false; then : 13780 $as_echo_n "(cached) " >&6 13781else 13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13783/* end confdefs.h. */ 13784int i; 13785int 13786main () 13787{ 13788 13789 ; 13790 return 0; 13791} 13792_ACEOF 13793if ac_fn_c_try_link "$LINENO"; then : 13794 eval $cacheid=yes 13795else 13796 eval $cacheid=no 13797fi 13798rm -f core conftest.err conftest.$ac_objext \ 13799 conftest$ac_exeext conftest.$ac_ext 13800fi 13801 13802 13803 CFLAGS="$xorg_testset_save_CFLAGS" 13804 13805 eval supported=\$$cacheid 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13807$as_echo "$supported" >&6; } 13808 if test "$supported" = "yes" ; then 13809 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13810 found="yes" 13811 fi 13812 fi 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828xorg_testset_save_CFLAGS="$CFLAGS" 13829 13830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13835 $as_echo_n "(cached) " >&6 13836else 13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13838/* end confdefs.h. */ 13839int i; 13840_ACEOF 13841if ac_fn_c_try_compile "$LINENO"; then : 13842 xorg_cv_cc_flag_unknown_warning_option=yes 13843else 13844 xorg_cv_cc_flag_unknown_warning_option=no 13845fi 13846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13847fi 13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13851 CFLAGS="$xorg_testset_save_CFLAGS" 13852fi 13853 13854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13857 fi 13858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13862 $as_echo_n "(cached) " >&6 13863else 13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13865/* end confdefs.h. */ 13866int i; 13867_ACEOF 13868if ac_fn_c_try_compile "$LINENO"; then : 13869 xorg_cv_cc_flag_unused_command_line_argument=yes 13870else 13871 xorg_cv_cc_flag_unused_command_line_argument=no 13872fi 13873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13874fi 13875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13878 CFLAGS="$xorg_testset_save_CFLAGS" 13879fi 13880 13881found="no" 13882 13883 if test $found = "no" ; then 13884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13886 fi 13887 13888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13890 fi 13891 13892 CFLAGS="$CFLAGS -Wlogical-op" 13893 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 13895$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 13896 cacheid=xorg_cv_cc_flag__Wlogical_op 13897 if eval \${$cacheid+:} false; then : 13898 $as_echo_n "(cached) " >&6 13899else 13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13901/* end confdefs.h. */ 13902int i; 13903int 13904main () 13905{ 13906 13907 ; 13908 return 0; 13909} 13910_ACEOF 13911if ac_fn_c_try_link "$LINENO"; then : 13912 eval $cacheid=yes 13913else 13914 eval $cacheid=no 13915fi 13916rm -f core conftest.err conftest.$ac_objext \ 13917 conftest$ac_exeext conftest.$ac_ext 13918fi 13919 13920 13921 CFLAGS="$xorg_testset_save_CFLAGS" 13922 13923 eval supported=\$$cacheid 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13925$as_echo "$supported" >&6; } 13926 if test "$supported" = "yes" ; then 13927 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 13928 found="yes" 13929 fi 13930 fi 13931 13932 13933 13934# These are currently disabled because they are noisy. They will be enabled 13935# in the future once the codebase is sufficiently modernized to silence 13936# them. For now, I don't want them to drown out the other warnings. 13937# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13938# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13939# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 13940 13941# Turn some warnings into errors, so we don't accidently get successful builds 13942# when there are problems that should be fixed. 13943 13944if test "x$SELECTIVE_WERROR" = "xyes" ; then 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958xorg_testset_save_CFLAGS="$CFLAGS" 13959 13960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13968/* end confdefs.h. */ 13969int i; 13970_ACEOF 13971if ac_fn_c_try_compile "$LINENO"; then : 13972 xorg_cv_cc_flag_unknown_warning_option=yes 13973else 13974 xorg_cv_cc_flag_unknown_warning_option=no 13975fi 13976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13977fi 13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13981 CFLAGS="$xorg_testset_save_CFLAGS" 13982fi 13983 13984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13987 fi 13988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13992 $as_echo_n "(cached) " >&6 13993else 13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13995/* end confdefs.h. */ 13996int i; 13997_ACEOF 13998if ac_fn_c_try_compile "$LINENO"; then : 13999 xorg_cv_cc_flag_unused_command_line_argument=yes 14000else 14001 xorg_cv_cc_flag_unused_command_line_argument=no 14002fi 14003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14004fi 14005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14008 CFLAGS="$xorg_testset_save_CFLAGS" 14009fi 14010 14011found="no" 14012 14013 if test $found = "no" ; then 14014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14016 fi 14017 14018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14020 fi 14021 14022 CFLAGS="$CFLAGS -Werror=implicit" 14023 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14025$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14026 cacheid=xorg_cv_cc_flag__Werror_implicit 14027 if eval \${$cacheid+:} false; then : 14028 $as_echo_n "(cached) " >&6 14029else 14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14031/* end confdefs.h. */ 14032int i; 14033int 14034main () 14035{ 14036 14037 ; 14038 return 0; 14039} 14040_ACEOF 14041if ac_fn_c_try_link "$LINENO"; then : 14042 eval $cacheid=yes 14043else 14044 eval $cacheid=no 14045fi 14046rm -f core conftest.err conftest.$ac_objext \ 14047 conftest$ac_exeext conftest.$ac_ext 14048fi 14049 14050 14051 CFLAGS="$xorg_testset_save_CFLAGS" 14052 14053 eval supported=\$$cacheid 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14055$as_echo "$supported" >&6; } 14056 if test "$supported" = "yes" ; then 14057 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14058 found="yes" 14059 fi 14060 fi 14061 14062 if test $found = "no" ; then 14063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14065 fi 14066 14067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14069 fi 14070 14071 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14072 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14074$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14075 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14076 if eval \${$cacheid+:} false; then : 14077 $as_echo_n "(cached) " >&6 14078else 14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14080/* end confdefs.h. */ 14081int i; 14082int 14083main () 14084{ 14085 14086 ; 14087 return 0; 14088} 14089_ACEOF 14090if ac_fn_c_try_link "$LINENO"; then : 14091 eval $cacheid=yes 14092else 14093 eval $cacheid=no 14094fi 14095rm -f core conftest.err conftest.$ac_objext \ 14096 conftest$ac_exeext conftest.$ac_ext 14097fi 14098 14099 14100 CFLAGS="$xorg_testset_save_CFLAGS" 14101 14102 eval supported=\$$cacheid 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14104$as_echo "$supported" >&6; } 14105 if test "$supported" = "yes" ; then 14106 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14107 found="yes" 14108 fi 14109 fi 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125xorg_testset_save_CFLAGS="$CFLAGS" 14126 14127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14132 $as_echo_n "(cached) " >&6 14133else 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14135/* end confdefs.h. */ 14136int i; 14137_ACEOF 14138if ac_fn_c_try_compile "$LINENO"; then : 14139 xorg_cv_cc_flag_unknown_warning_option=yes 14140else 14141 xorg_cv_cc_flag_unknown_warning_option=no 14142fi 14143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14144fi 14145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14148 CFLAGS="$xorg_testset_save_CFLAGS" 14149fi 14150 14151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14154 fi 14155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14159 $as_echo_n "(cached) " >&6 14160else 14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14162/* end confdefs.h. */ 14163int i; 14164_ACEOF 14165if ac_fn_c_try_compile "$LINENO"; then : 14166 xorg_cv_cc_flag_unused_command_line_argument=yes 14167else 14168 xorg_cv_cc_flag_unused_command_line_argument=no 14169fi 14170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14171fi 14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14175 CFLAGS="$xorg_testset_save_CFLAGS" 14176fi 14177 14178found="no" 14179 14180 if test $found = "no" ; then 14181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14183 fi 14184 14185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14187 fi 14188 14189 CFLAGS="$CFLAGS -Werror=nonnull" 14190 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14192$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14193 cacheid=xorg_cv_cc_flag__Werror_nonnull 14194 if eval \${$cacheid+:} false; then : 14195 $as_echo_n "(cached) " >&6 14196else 14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14198/* end confdefs.h. */ 14199int i; 14200int 14201main () 14202{ 14203 14204 ; 14205 return 0; 14206} 14207_ACEOF 14208if ac_fn_c_try_link "$LINENO"; then : 14209 eval $cacheid=yes 14210else 14211 eval $cacheid=no 14212fi 14213rm -f core conftest.err conftest.$ac_objext \ 14214 conftest$ac_exeext conftest.$ac_ext 14215fi 14216 14217 14218 CFLAGS="$xorg_testset_save_CFLAGS" 14219 14220 eval supported=\$$cacheid 14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14222$as_echo "$supported" >&6; } 14223 if test "$supported" = "yes" ; then 14224 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14225 found="yes" 14226 fi 14227 fi 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243xorg_testset_save_CFLAGS="$CFLAGS" 14244 14245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14253/* end confdefs.h. */ 14254int i; 14255_ACEOF 14256if ac_fn_c_try_compile "$LINENO"; then : 14257 xorg_cv_cc_flag_unknown_warning_option=yes 14258else 14259 xorg_cv_cc_flag_unknown_warning_option=no 14260fi 14261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14262fi 14263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14266 CFLAGS="$xorg_testset_save_CFLAGS" 14267fi 14268 14269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14272 fi 14273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14280/* end confdefs.h. */ 14281int i; 14282_ACEOF 14283if ac_fn_c_try_compile "$LINENO"; then : 14284 xorg_cv_cc_flag_unused_command_line_argument=yes 14285else 14286 xorg_cv_cc_flag_unused_command_line_argument=no 14287fi 14288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14289fi 14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14293 CFLAGS="$xorg_testset_save_CFLAGS" 14294fi 14295 14296found="no" 14297 14298 if test $found = "no" ; then 14299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14301 fi 14302 14303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14305 fi 14306 14307 CFLAGS="$CFLAGS -Werror=init-self" 14308 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14310$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14311 cacheid=xorg_cv_cc_flag__Werror_init_self 14312 if eval \${$cacheid+:} false; then : 14313 $as_echo_n "(cached) " >&6 14314else 14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14316/* end confdefs.h. */ 14317int i; 14318int 14319main () 14320{ 14321 14322 ; 14323 return 0; 14324} 14325_ACEOF 14326if ac_fn_c_try_link "$LINENO"; then : 14327 eval $cacheid=yes 14328else 14329 eval $cacheid=no 14330fi 14331rm -f core conftest.err conftest.$ac_objext \ 14332 conftest$ac_exeext conftest.$ac_ext 14333fi 14334 14335 14336 CFLAGS="$xorg_testset_save_CFLAGS" 14337 14338 eval supported=\$$cacheid 14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14340$as_echo "$supported" >&6; } 14341 if test "$supported" = "yes" ; then 14342 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14343 found="yes" 14344 fi 14345 fi 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361xorg_testset_save_CFLAGS="$CFLAGS" 14362 14363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14368 $as_echo_n "(cached) " >&6 14369else 14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14371/* end confdefs.h. */ 14372int i; 14373_ACEOF 14374if ac_fn_c_try_compile "$LINENO"; then : 14375 xorg_cv_cc_flag_unknown_warning_option=yes 14376else 14377 xorg_cv_cc_flag_unknown_warning_option=no 14378fi 14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14380fi 14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14384 CFLAGS="$xorg_testset_save_CFLAGS" 14385fi 14386 14387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14390 fi 14391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14395 $as_echo_n "(cached) " >&6 14396else 14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14398/* end confdefs.h. */ 14399int i; 14400_ACEOF 14401if ac_fn_c_try_compile "$LINENO"; then : 14402 xorg_cv_cc_flag_unused_command_line_argument=yes 14403else 14404 xorg_cv_cc_flag_unused_command_line_argument=no 14405fi 14406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14407fi 14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14411 CFLAGS="$xorg_testset_save_CFLAGS" 14412fi 14413 14414found="no" 14415 14416 if test $found = "no" ; then 14417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14419 fi 14420 14421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14423 fi 14424 14425 CFLAGS="$CFLAGS -Werror=main" 14426 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14428$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14429 cacheid=xorg_cv_cc_flag__Werror_main 14430 if eval \${$cacheid+:} false; then : 14431 $as_echo_n "(cached) " >&6 14432else 14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14434/* end confdefs.h. */ 14435int i; 14436int 14437main () 14438{ 14439 14440 ; 14441 return 0; 14442} 14443_ACEOF 14444if ac_fn_c_try_link "$LINENO"; then : 14445 eval $cacheid=yes 14446else 14447 eval $cacheid=no 14448fi 14449rm -f core conftest.err conftest.$ac_objext \ 14450 conftest$ac_exeext conftest.$ac_ext 14451fi 14452 14453 14454 CFLAGS="$xorg_testset_save_CFLAGS" 14455 14456 eval supported=\$$cacheid 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14458$as_echo "$supported" >&6; } 14459 if test "$supported" = "yes" ; then 14460 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14461 found="yes" 14462 fi 14463 fi 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479xorg_testset_save_CFLAGS="$CFLAGS" 14480 14481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14486 $as_echo_n "(cached) " >&6 14487else 14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490int i; 14491_ACEOF 14492if ac_fn_c_try_compile "$LINENO"; then : 14493 xorg_cv_cc_flag_unknown_warning_option=yes 14494else 14495 xorg_cv_cc_flag_unknown_warning_option=no 14496fi 14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14498fi 14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14502 CFLAGS="$xorg_testset_save_CFLAGS" 14503fi 14504 14505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14508 fi 14509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14513 $as_echo_n "(cached) " >&6 14514else 14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14516/* end confdefs.h. */ 14517int i; 14518_ACEOF 14519if ac_fn_c_try_compile "$LINENO"; then : 14520 xorg_cv_cc_flag_unused_command_line_argument=yes 14521else 14522 xorg_cv_cc_flag_unused_command_line_argument=no 14523fi 14524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14525fi 14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14529 CFLAGS="$xorg_testset_save_CFLAGS" 14530fi 14531 14532found="no" 14533 14534 if test $found = "no" ; then 14535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14537 fi 14538 14539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14541 fi 14542 14543 CFLAGS="$CFLAGS -Werror=missing-braces" 14544 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14546$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14547 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14548 if eval \${$cacheid+:} false; then : 14549 $as_echo_n "(cached) " >&6 14550else 14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552/* end confdefs.h. */ 14553int i; 14554int 14555main () 14556{ 14557 14558 ; 14559 return 0; 14560} 14561_ACEOF 14562if ac_fn_c_try_link "$LINENO"; then : 14563 eval $cacheid=yes 14564else 14565 eval $cacheid=no 14566fi 14567rm -f core conftest.err conftest.$ac_objext \ 14568 conftest$ac_exeext conftest.$ac_ext 14569fi 14570 14571 14572 CFLAGS="$xorg_testset_save_CFLAGS" 14573 14574 eval supported=\$$cacheid 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14576$as_echo "$supported" >&6; } 14577 if test "$supported" = "yes" ; then 14578 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14579 found="yes" 14580 fi 14581 fi 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597xorg_testset_save_CFLAGS="$CFLAGS" 14598 14599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14604 $as_echo_n "(cached) " >&6 14605else 14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14607/* end confdefs.h. */ 14608int i; 14609_ACEOF 14610if ac_fn_c_try_compile "$LINENO"; then : 14611 xorg_cv_cc_flag_unknown_warning_option=yes 14612else 14613 xorg_cv_cc_flag_unknown_warning_option=no 14614fi 14615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14616fi 14617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14620 CFLAGS="$xorg_testset_save_CFLAGS" 14621fi 14622 14623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14626 fi 14627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14631 $as_echo_n "(cached) " >&6 14632else 14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14634/* end confdefs.h. */ 14635int i; 14636_ACEOF 14637if ac_fn_c_try_compile "$LINENO"; then : 14638 xorg_cv_cc_flag_unused_command_line_argument=yes 14639else 14640 xorg_cv_cc_flag_unused_command_line_argument=no 14641fi 14642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14643fi 14644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14647 CFLAGS="$xorg_testset_save_CFLAGS" 14648fi 14649 14650found="no" 14651 14652 if test $found = "no" ; then 14653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14655 fi 14656 14657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14659 fi 14660 14661 CFLAGS="$CFLAGS -Werror=sequence-point" 14662 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14664$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14665 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14666 if eval \${$cacheid+:} false; then : 14667 $as_echo_n "(cached) " >&6 14668else 14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14670/* end confdefs.h. */ 14671int i; 14672int 14673main () 14674{ 14675 14676 ; 14677 return 0; 14678} 14679_ACEOF 14680if ac_fn_c_try_link "$LINENO"; then : 14681 eval $cacheid=yes 14682else 14683 eval $cacheid=no 14684fi 14685rm -f core conftest.err conftest.$ac_objext \ 14686 conftest$ac_exeext conftest.$ac_ext 14687fi 14688 14689 14690 CFLAGS="$xorg_testset_save_CFLAGS" 14691 14692 eval supported=\$$cacheid 14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14694$as_echo "$supported" >&6; } 14695 if test "$supported" = "yes" ; then 14696 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14697 found="yes" 14698 fi 14699 fi 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715xorg_testset_save_CFLAGS="$CFLAGS" 14716 14717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14722 $as_echo_n "(cached) " >&6 14723else 14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726int i; 14727_ACEOF 14728if ac_fn_c_try_compile "$LINENO"; then : 14729 xorg_cv_cc_flag_unknown_warning_option=yes 14730else 14731 xorg_cv_cc_flag_unknown_warning_option=no 14732fi 14733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14734fi 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14738 CFLAGS="$xorg_testset_save_CFLAGS" 14739fi 14740 14741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14744 fi 14745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14749 $as_echo_n "(cached) " >&6 14750else 14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14752/* end confdefs.h. */ 14753int i; 14754_ACEOF 14755if ac_fn_c_try_compile "$LINENO"; then : 14756 xorg_cv_cc_flag_unused_command_line_argument=yes 14757else 14758 xorg_cv_cc_flag_unused_command_line_argument=no 14759fi 14760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14761fi 14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14765 CFLAGS="$xorg_testset_save_CFLAGS" 14766fi 14767 14768found="no" 14769 14770 if test $found = "no" ; then 14771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14773 fi 14774 14775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14777 fi 14778 14779 CFLAGS="$CFLAGS -Werror=return-type" 14780 14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14782$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14783 cacheid=xorg_cv_cc_flag__Werror_return_type 14784 if eval \${$cacheid+:} false; then : 14785 $as_echo_n "(cached) " >&6 14786else 14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14788/* end confdefs.h. */ 14789int i; 14790int 14791main () 14792{ 14793 14794 ; 14795 return 0; 14796} 14797_ACEOF 14798if ac_fn_c_try_link "$LINENO"; then : 14799 eval $cacheid=yes 14800else 14801 eval $cacheid=no 14802fi 14803rm -f core conftest.err conftest.$ac_objext \ 14804 conftest$ac_exeext conftest.$ac_ext 14805fi 14806 14807 14808 CFLAGS="$xorg_testset_save_CFLAGS" 14809 14810 eval supported=\$$cacheid 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14812$as_echo "$supported" >&6; } 14813 if test "$supported" = "yes" ; then 14814 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14815 found="yes" 14816 fi 14817 fi 14818 14819 if test $found = "no" ; then 14820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14822 fi 14823 14824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14826 fi 14827 14828 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14829 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14831$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14832 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 14833 if eval \${$cacheid+:} false; then : 14834 $as_echo_n "(cached) " >&6 14835else 14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14837/* end confdefs.h. */ 14838int i; 14839int 14840main () 14841{ 14842 14843 ; 14844 return 0; 14845} 14846_ACEOF 14847if ac_fn_c_try_link "$LINENO"; then : 14848 eval $cacheid=yes 14849else 14850 eval $cacheid=no 14851fi 14852rm -f core conftest.err conftest.$ac_objext \ 14853 conftest$ac_exeext conftest.$ac_ext 14854fi 14855 14856 14857 CFLAGS="$xorg_testset_save_CFLAGS" 14858 14859 eval supported=\$$cacheid 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14861$as_echo "$supported" >&6; } 14862 if test "$supported" = "yes" ; then 14863 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14864 found="yes" 14865 fi 14866 fi 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882xorg_testset_save_CFLAGS="$CFLAGS" 14883 14884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14889 $as_echo_n "(cached) " >&6 14890else 14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14892/* end confdefs.h. */ 14893int i; 14894_ACEOF 14895if ac_fn_c_try_compile "$LINENO"; then : 14896 xorg_cv_cc_flag_unknown_warning_option=yes 14897else 14898 xorg_cv_cc_flag_unknown_warning_option=no 14899fi 14900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14901fi 14902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14905 CFLAGS="$xorg_testset_save_CFLAGS" 14906fi 14907 14908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14911 fi 14912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14916 $as_echo_n "(cached) " >&6 14917else 14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14919/* end confdefs.h. */ 14920int i; 14921_ACEOF 14922if ac_fn_c_try_compile "$LINENO"; then : 14923 xorg_cv_cc_flag_unused_command_line_argument=yes 14924else 14925 xorg_cv_cc_flag_unused_command_line_argument=no 14926fi 14927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14928fi 14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14932 CFLAGS="$xorg_testset_save_CFLAGS" 14933fi 14934 14935found="no" 14936 14937 if test $found = "no" ; then 14938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14940 fi 14941 14942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14944 fi 14945 14946 CFLAGS="$CFLAGS -Werror=trigraphs" 14947 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14949$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14950 cacheid=xorg_cv_cc_flag__Werror_trigraphs 14951 if eval \${$cacheid+:} false; then : 14952 $as_echo_n "(cached) " >&6 14953else 14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14955/* end confdefs.h. */ 14956int i; 14957int 14958main () 14959{ 14960 14961 ; 14962 return 0; 14963} 14964_ACEOF 14965if ac_fn_c_try_link "$LINENO"; then : 14966 eval $cacheid=yes 14967else 14968 eval $cacheid=no 14969fi 14970rm -f core conftest.err conftest.$ac_objext \ 14971 conftest$ac_exeext conftest.$ac_ext 14972fi 14973 14974 14975 CFLAGS="$xorg_testset_save_CFLAGS" 14976 14977 eval supported=\$$cacheid 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14979$as_echo "$supported" >&6; } 14980 if test "$supported" = "yes" ; then 14981 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14982 found="yes" 14983 fi 14984 fi 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000xorg_testset_save_CFLAGS="$CFLAGS" 15001 15002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15007 $as_echo_n "(cached) " >&6 15008else 15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15010/* end confdefs.h. */ 15011int i; 15012_ACEOF 15013if ac_fn_c_try_compile "$LINENO"; then : 15014 xorg_cv_cc_flag_unknown_warning_option=yes 15015else 15016 xorg_cv_cc_flag_unknown_warning_option=no 15017fi 15018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15019fi 15020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15023 CFLAGS="$xorg_testset_save_CFLAGS" 15024fi 15025 15026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15029 fi 15030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15034 $as_echo_n "(cached) " >&6 15035else 15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15037/* end confdefs.h. */ 15038int i; 15039_ACEOF 15040if ac_fn_c_try_compile "$LINENO"; then : 15041 xorg_cv_cc_flag_unused_command_line_argument=yes 15042else 15043 xorg_cv_cc_flag_unused_command_line_argument=no 15044fi 15045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15046fi 15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15050 CFLAGS="$xorg_testset_save_CFLAGS" 15051fi 15052 15053found="no" 15054 15055 if test $found = "no" ; then 15056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15058 fi 15059 15060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15062 fi 15063 15064 CFLAGS="$CFLAGS -Werror=array-bounds" 15065 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15067$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15068 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15069 if eval \${$cacheid+:} false; then : 15070 $as_echo_n "(cached) " >&6 15071else 15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15073/* end confdefs.h. */ 15074int i; 15075int 15076main () 15077{ 15078 15079 ; 15080 return 0; 15081} 15082_ACEOF 15083if ac_fn_c_try_link "$LINENO"; then : 15084 eval $cacheid=yes 15085else 15086 eval $cacheid=no 15087fi 15088rm -f core conftest.err conftest.$ac_objext \ 15089 conftest$ac_exeext conftest.$ac_ext 15090fi 15091 15092 15093 CFLAGS="$xorg_testset_save_CFLAGS" 15094 15095 eval supported=\$$cacheid 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15097$as_echo "$supported" >&6; } 15098 if test "$supported" = "yes" ; then 15099 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15100 found="yes" 15101 fi 15102 fi 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118xorg_testset_save_CFLAGS="$CFLAGS" 15119 15120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15125 $as_echo_n "(cached) " >&6 15126else 15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15128/* end confdefs.h. */ 15129int i; 15130_ACEOF 15131if ac_fn_c_try_compile "$LINENO"; then : 15132 xorg_cv_cc_flag_unknown_warning_option=yes 15133else 15134 xorg_cv_cc_flag_unknown_warning_option=no 15135fi 15136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15137fi 15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15141 CFLAGS="$xorg_testset_save_CFLAGS" 15142fi 15143 15144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15147 fi 15148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15152 $as_echo_n "(cached) " >&6 15153else 15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15155/* end confdefs.h. */ 15156int i; 15157_ACEOF 15158if ac_fn_c_try_compile "$LINENO"; then : 15159 xorg_cv_cc_flag_unused_command_line_argument=yes 15160else 15161 xorg_cv_cc_flag_unused_command_line_argument=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15164fi 15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15168 CFLAGS="$xorg_testset_save_CFLAGS" 15169fi 15170 15171found="no" 15172 15173 if test $found = "no" ; then 15174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15176 fi 15177 15178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15180 fi 15181 15182 CFLAGS="$CFLAGS -Werror=write-strings" 15183 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15185$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15186 cacheid=xorg_cv_cc_flag__Werror_write_strings 15187 if eval \${$cacheid+:} false; then : 15188 $as_echo_n "(cached) " >&6 15189else 15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15191/* end confdefs.h. */ 15192int i; 15193int 15194main () 15195{ 15196 15197 ; 15198 return 0; 15199} 15200_ACEOF 15201if ac_fn_c_try_link "$LINENO"; then : 15202 eval $cacheid=yes 15203else 15204 eval $cacheid=no 15205fi 15206rm -f core conftest.err conftest.$ac_objext \ 15207 conftest$ac_exeext conftest.$ac_ext 15208fi 15209 15210 15211 CFLAGS="$xorg_testset_save_CFLAGS" 15212 15213 eval supported=\$$cacheid 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15215$as_echo "$supported" >&6; } 15216 if test "$supported" = "yes" ; then 15217 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15218 found="yes" 15219 fi 15220 fi 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236xorg_testset_save_CFLAGS="$CFLAGS" 15237 15238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15243 $as_echo_n "(cached) " >&6 15244else 15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15246/* end confdefs.h. */ 15247int i; 15248_ACEOF 15249if ac_fn_c_try_compile "$LINENO"; then : 15250 xorg_cv_cc_flag_unknown_warning_option=yes 15251else 15252 xorg_cv_cc_flag_unknown_warning_option=no 15253fi 15254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15255fi 15256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15259 CFLAGS="$xorg_testset_save_CFLAGS" 15260fi 15261 15262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15265 fi 15266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15270 $as_echo_n "(cached) " >&6 15271else 15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15273/* end confdefs.h. */ 15274int i; 15275_ACEOF 15276if ac_fn_c_try_compile "$LINENO"; then : 15277 xorg_cv_cc_flag_unused_command_line_argument=yes 15278else 15279 xorg_cv_cc_flag_unused_command_line_argument=no 15280fi 15281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15282fi 15283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15286 CFLAGS="$xorg_testset_save_CFLAGS" 15287fi 15288 15289found="no" 15290 15291 if test $found = "no" ; then 15292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15294 fi 15295 15296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15298 fi 15299 15300 CFLAGS="$CFLAGS -Werror=address" 15301 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15303$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15304 cacheid=xorg_cv_cc_flag__Werror_address 15305 if eval \${$cacheid+:} false; then : 15306 $as_echo_n "(cached) " >&6 15307else 15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15309/* end confdefs.h. */ 15310int i; 15311int 15312main () 15313{ 15314 15315 ; 15316 return 0; 15317} 15318_ACEOF 15319if ac_fn_c_try_link "$LINENO"; then : 15320 eval $cacheid=yes 15321else 15322 eval $cacheid=no 15323fi 15324rm -f core conftest.err conftest.$ac_objext \ 15325 conftest$ac_exeext conftest.$ac_ext 15326fi 15327 15328 15329 CFLAGS="$xorg_testset_save_CFLAGS" 15330 15331 eval supported=\$$cacheid 15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15333$as_echo "$supported" >&6; } 15334 if test "$supported" = "yes" ; then 15335 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15336 found="yes" 15337 fi 15338 fi 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354xorg_testset_save_CFLAGS="$CFLAGS" 15355 15356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15361 $as_echo_n "(cached) " >&6 15362else 15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15364/* end confdefs.h. */ 15365int i; 15366_ACEOF 15367if ac_fn_c_try_compile "$LINENO"; then : 15368 xorg_cv_cc_flag_unknown_warning_option=yes 15369else 15370 xorg_cv_cc_flag_unknown_warning_option=no 15371fi 15372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15373fi 15374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15377 CFLAGS="$xorg_testset_save_CFLAGS" 15378fi 15379 15380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15383 fi 15384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15388 $as_echo_n "(cached) " >&6 15389else 15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15391/* end confdefs.h. */ 15392int i; 15393_ACEOF 15394if ac_fn_c_try_compile "$LINENO"; then : 15395 xorg_cv_cc_flag_unused_command_line_argument=yes 15396else 15397 xorg_cv_cc_flag_unused_command_line_argument=no 15398fi 15399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15400fi 15401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15404 CFLAGS="$xorg_testset_save_CFLAGS" 15405fi 15406 15407found="no" 15408 15409 if test $found = "no" ; then 15410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15412 fi 15413 15414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15416 fi 15417 15418 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15419 15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15421$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15422 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15423 if eval \${$cacheid+:} false; then : 15424 $as_echo_n "(cached) " >&6 15425else 15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15427/* end confdefs.h. */ 15428int i; 15429int 15430main () 15431{ 15432 15433 ; 15434 return 0; 15435} 15436_ACEOF 15437if ac_fn_c_try_link "$LINENO"; then : 15438 eval $cacheid=yes 15439else 15440 eval $cacheid=no 15441fi 15442rm -f core conftest.err conftest.$ac_objext \ 15443 conftest$ac_exeext conftest.$ac_ext 15444fi 15445 15446 15447 CFLAGS="$xorg_testset_save_CFLAGS" 15448 15449 eval supported=\$$cacheid 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15451$as_echo "$supported" >&6; } 15452 if test "$supported" = "yes" ; then 15453 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15454 found="yes" 15455 fi 15456 fi 15457 15458 if test $found = "no" ; then 15459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15461 fi 15462 15463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15465 fi 15466 15467 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15468 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15470$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15471 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15472 if eval \${$cacheid+:} false; then : 15473 $as_echo_n "(cached) " >&6 15474else 15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15476/* end confdefs.h. */ 15477int i; 15478int 15479main () 15480{ 15481 15482 ; 15483 return 0; 15484} 15485_ACEOF 15486if ac_fn_c_try_link "$LINENO"; then : 15487 eval $cacheid=yes 15488else 15489 eval $cacheid=no 15490fi 15491rm -f core conftest.err conftest.$ac_objext \ 15492 conftest$ac_exeext conftest.$ac_ext 15493fi 15494 15495 15496 CFLAGS="$xorg_testset_save_CFLAGS" 15497 15498 eval supported=\$$cacheid 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15500$as_echo "$supported" >&6; } 15501 if test "$supported" = "yes" ; then 15502 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15503 found="yes" 15504 fi 15505 fi 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521xorg_testset_save_CFLAGS="$CFLAGS" 15522 15523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15528 $as_echo_n "(cached) " >&6 15529else 15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531/* end confdefs.h. */ 15532int i; 15533_ACEOF 15534if ac_fn_c_try_compile "$LINENO"; then : 15535 xorg_cv_cc_flag_unknown_warning_option=yes 15536else 15537 xorg_cv_cc_flag_unknown_warning_option=no 15538fi 15539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15540fi 15541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15544 CFLAGS="$xorg_testset_save_CFLAGS" 15545fi 15546 15547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15550 fi 15551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15555 $as_echo_n "(cached) " >&6 15556else 15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15558/* end confdefs.h. */ 15559int i; 15560_ACEOF 15561if ac_fn_c_try_compile "$LINENO"; then : 15562 xorg_cv_cc_flag_unused_command_line_argument=yes 15563else 15564 xorg_cv_cc_flag_unused_command_line_argument=no 15565fi 15566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15567fi 15568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15571 CFLAGS="$xorg_testset_save_CFLAGS" 15572fi 15573 15574found="no" 15575 15576 if test $found = "no" ; then 15577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15579 fi 15580 15581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15583 fi 15584 15585 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15586 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15588$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15589 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15590 if eval \${$cacheid+:} false; then : 15591 $as_echo_n "(cached) " >&6 15592else 15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15594/* end confdefs.h. */ 15595int i; 15596int 15597main () 15598{ 15599 15600 ; 15601 return 0; 15602} 15603_ACEOF 15604if ac_fn_c_try_link "$LINENO"; then : 15605 eval $cacheid=yes 15606else 15607 eval $cacheid=no 15608fi 15609rm -f core conftest.err conftest.$ac_objext \ 15610 conftest$ac_exeext conftest.$ac_ext 15611fi 15612 15613 15614 CFLAGS="$xorg_testset_save_CFLAGS" 15615 15616 eval supported=\$$cacheid 15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15618$as_echo "$supported" >&6; } 15619 if test "$supported" = "yes" ; then 15620 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15621 found="yes" 15622 fi 15623 fi 15624 15625 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15626else 15627{ $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 15628$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;} 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642xorg_testset_save_CFLAGS="$CFLAGS" 15643 15644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654_ACEOF 15655if ac_fn_c_try_compile "$LINENO"; then : 15656 xorg_cv_cc_flag_unknown_warning_option=yes 15657else 15658 xorg_cv_cc_flag_unknown_warning_option=no 15659fi 15660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15661fi 15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15665 CFLAGS="$xorg_testset_save_CFLAGS" 15666fi 15667 15668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15671 fi 15672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15676 $as_echo_n "(cached) " >&6 15677else 15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15679/* end confdefs.h. */ 15680int i; 15681_ACEOF 15682if ac_fn_c_try_compile "$LINENO"; then : 15683 xorg_cv_cc_flag_unused_command_line_argument=yes 15684else 15685 xorg_cv_cc_flag_unused_command_line_argument=no 15686fi 15687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15688fi 15689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15692 CFLAGS="$xorg_testset_save_CFLAGS" 15693fi 15694 15695found="no" 15696 15697 if test $found = "no" ; then 15698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15700 fi 15701 15702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15704 fi 15705 15706 CFLAGS="$CFLAGS -Wimplicit" 15707 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15709$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15710 cacheid=xorg_cv_cc_flag__Wimplicit 15711 if eval \${$cacheid+:} false; then : 15712 $as_echo_n "(cached) " >&6 15713else 15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15715/* end confdefs.h. */ 15716int i; 15717int 15718main () 15719{ 15720 15721 ; 15722 return 0; 15723} 15724_ACEOF 15725if ac_fn_c_try_link "$LINENO"; then : 15726 eval $cacheid=yes 15727else 15728 eval $cacheid=no 15729fi 15730rm -f core conftest.err conftest.$ac_objext \ 15731 conftest$ac_exeext conftest.$ac_ext 15732fi 15733 15734 15735 CFLAGS="$xorg_testset_save_CFLAGS" 15736 15737 eval supported=\$$cacheid 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15739$as_echo "$supported" >&6; } 15740 if test "$supported" = "yes" ; then 15741 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15742 found="yes" 15743 fi 15744 fi 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760xorg_testset_save_CFLAGS="$CFLAGS" 15761 15762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768else 15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15770/* end confdefs.h. */ 15771int i; 15772_ACEOF 15773if ac_fn_c_try_compile "$LINENO"; then : 15774 xorg_cv_cc_flag_unknown_warning_option=yes 15775else 15776 xorg_cv_cc_flag_unknown_warning_option=no 15777fi 15778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15779fi 15780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15783 CFLAGS="$xorg_testset_save_CFLAGS" 15784fi 15785 15786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15789 fi 15790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15794 $as_echo_n "(cached) " >&6 15795else 15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15797/* end confdefs.h. */ 15798int i; 15799_ACEOF 15800if ac_fn_c_try_compile "$LINENO"; then : 15801 xorg_cv_cc_flag_unused_command_line_argument=yes 15802else 15803 xorg_cv_cc_flag_unused_command_line_argument=no 15804fi 15805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15806fi 15807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15810 CFLAGS="$xorg_testset_save_CFLAGS" 15811fi 15812 15813found="no" 15814 15815 if test $found = "no" ; then 15816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15818 fi 15819 15820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15822 fi 15823 15824 CFLAGS="$CFLAGS -Wnonnull" 15825 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15827$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15828 cacheid=xorg_cv_cc_flag__Wnonnull 15829 if eval \${$cacheid+:} false; then : 15830 $as_echo_n "(cached) " >&6 15831else 15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15833/* end confdefs.h. */ 15834int i; 15835int 15836main () 15837{ 15838 15839 ; 15840 return 0; 15841} 15842_ACEOF 15843if ac_fn_c_try_link "$LINENO"; then : 15844 eval $cacheid=yes 15845else 15846 eval $cacheid=no 15847fi 15848rm -f core conftest.err conftest.$ac_objext \ 15849 conftest$ac_exeext conftest.$ac_ext 15850fi 15851 15852 15853 CFLAGS="$xorg_testset_save_CFLAGS" 15854 15855 eval supported=\$$cacheid 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15857$as_echo "$supported" >&6; } 15858 if test "$supported" = "yes" ; then 15859 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15860 found="yes" 15861 fi 15862 fi 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878xorg_testset_save_CFLAGS="$CFLAGS" 15879 15880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15885 $as_echo_n "(cached) " >&6 15886else 15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15888/* end confdefs.h. */ 15889int i; 15890_ACEOF 15891if ac_fn_c_try_compile "$LINENO"; then : 15892 xorg_cv_cc_flag_unknown_warning_option=yes 15893else 15894 xorg_cv_cc_flag_unknown_warning_option=no 15895fi 15896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15897fi 15898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15901 CFLAGS="$xorg_testset_save_CFLAGS" 15902fi 15903 15904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15907 fi 15908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15912 $as_echo_n "(cached) " >&6 15913else 15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15915/* end confdefs.h. */ 15916int i; 15917_ACEOF 15918if ac_fn_c_try_compile "$LINENO"; then : 15919 xorg_cv_cc_flag_unused_command_line_argument=yes 15920else 15921 xorg_cv_cc_flag_unused_command_line_argument=no 15922fi 15923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15924fi 15925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15928 CFLAGS="$xorg_testset_save_CFLAGS" 15929fi 15930 15931found="no" 15932 15933 if test $found = "no" ; then 15934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15936 fi 15937 15938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15940 fi 15941 15942 CFLAGS="$CFLAGS -Winit-self" 15943 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15945$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15946 cacheid=xorg_cv_cc_flag__Winit_self 15947 if eval \${$cacheid+:} false; then : 15948 $as_echo_n "(cached) " >&6 15949else 15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15951/* end confdefs.h. */ 15952int i; 15953int 15954main () 15955{ 15956 15957 ; 15958 return 0; 15959} 15960_ACEOF 15961if ac_fn_c_try_link "$LINENO"; then : 15962 eval $cacheid=yes 15963else 15964 eval $cacheid=no 15965fi 15966rm -f core conftest.err conftest.$ac_objext \ 15967 conftest$ac_exeext conftest.$ac_ext 15968fi 15969 15970 15971 CFLAGS="$xorg_testset_save_CFLAGS" 15972 15973 eval supported=\$$cacheid 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15975$as_echo "$supported" >&6; } 15976 if test "$supported" = "yes" ; then 15977 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15978 found="yes" 15979 fi 15980 fi 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996xorg_testset_save_CFLAGS="$CFLAGS" 15997 15998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16003 $as_echo_n "(cached) " >&6 16004else 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007int i; 16008_ACEOF 16009if ac_fn_c_try_compile "$LINENO"; then : 16010 xorg_cv_cc_flag_unknown_warning_option=yes 16011else 16012 xorg_cv_cc_flag_unknown_warning_option=no 16013fi 16014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16015fi 16016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16019 CFLAGS="$xorg_testset_save_CFLAGS" 16020fi 16021 16022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 fi 16026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16030 $as_echo_n "(cached) " >&6 16031else 16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16033/* end confdefs.h. */ 16034int i; 16035_ACEOF 16036if ac_fn_c_try_compile "$LINENO"; then : 16037 xorg_cv_cc_flag_unused_command_line_argument=yes 16038else 16039 xorg_cv_cc_flag_unused_command_line_argument=no 16040fi 16041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16042fi 16043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16046 CFLAGS="$xorg_testset_save_CFLAGS" 16047fi 16048 16049found="no" 16050 16051 if test $found = "no" ; then 16052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16054 fi 16055 16056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16058 fi 16059 16060 CFLAGS="$CFLAGS -Wmain" 16061 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16063$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16064 cacheid=xorg_cv_cc_flag__Wmain 16065 if eval \${$cacheid+:} false; then : 16066 $as_echo_n "(cached) " >&6 16067else 16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16069/* end confdefs.h. */ 16070int i; 16071int 16072main () 16073{ 16074 16075 ; 16076 return 0; 16077} 16078_ACEOF 16079if ac_fn_c_try_link "$LINENO"; then : 16080 eval $cacheid=yes 16081else 16082 eval $cacheid=no 16083fi 16084rm -f core conftest.err conftest.$ac_objext \ 16085 conftest$ac_exeext conftest.$ac_ext 16086fi 16087 16088 16089 CFLAGS="$xorg_testset_save_CFLAGS" 16090 16091 eval supported=\$$cacheid 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16093$as_echo "$supported" >&6; } 16094 if test "$supported" = "yes" ; then 16095 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16096 found="yes" 16097 fi 16098 fi 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114xorg_testset_save_CFLAGS="$CFLAGS" 16115 16116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16121 $as_echo_n "(cached) " >&6 16122else 16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16124/* end confdefs.h. */ 16125int i; 16126_ACEOF 16127if ac_fn_c_try_compile "$LINENO"; then : 16128 xorg_cv_cc_flag_unknown_warning_option=yes 16129else 16130 xorg_cv_cc_flag_unknown_warning_option=no 16131fi 16132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16133fi 16134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16137 CFLAGS="$xorg_testset_save_CFLAGS" 16138fi 16139 16140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 fi 16144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16148 $as_echo_n "(cached) " >&6 16149else 16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16151/* end confdefs.h. */ 16152int i; 16153_ACEOF 16154if ac_fn_c_try_compile "$LINENO"; then : 16155 xorg_cv_cc_flag_unused_command_line_argument=yes 16156else 16157 xorg_cv_cc_flag_unused_command_line_argument=no 16158fi 16159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16160fi 16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16164 CFLAGS="$xorg_testset_save_CFLAGS" 16165fi 16166 16167found="no" 16168 16169 if test $found = "no" ; then 16170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16172 fi 16173 16174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16176 fi 16177 16178 CFLAGS="$CFLAGS -Wmissing-braces" 16179 16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16181$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16182 cacheid=xorg_cv_cc_flag__Wmissing_braces 16183 if eval \${$cacheid+:} false; then : 16184 $as_echo_n "(cached) " >&6 16185else 16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16187/* end confdefs.h. */ 16188int i; 16189int 16190main () 16191{ 16192 16193 ; 16194 return 0; 16195} 16196_ACEOF 16197if ac_fn_c_try_link "$LINENO"; then : 16198 eval $cacheid=yes 16199else 16200 eval $cacheid=no 16201fi 16202rm -f core conftest.err conftest.$ac_objext \ 16203 conftest$ac_exeext conftest.$ac_ext 16204fi 16205 16206 16207 CFLAGS="$xorg_testset_save_CFLAGS" 16208 16209 eval supported=\$$cacheid 16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16211$as_echo "$supported" >&6; } 16212 if test "$supported" = "yes" ; then 16213 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16214 found="yes" 16215 fi 16216 fi 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232xorg_testset_save_CFLAGS="$CFLAGS" 16233 16234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16237$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16238if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16239 $as_echo_n "(cached) " >&6 16240else 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242/* end confdefs.h. */ 16243int i; 16244_ACEOF 16245if ac_fn_c_try_compile "$LINENO"; then : 16246 xorg_cv_cc_flag_unknown_warning_option=yes 16247else 16248 xorg_cv_cc_flag_unknown_warning_option=no 16249fi 16250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16251fi 16252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16253$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16255 CFLAGS="$xorg_testset_save_CFLAGS" 16256fi 16257 16258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16261 fi 16262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16264$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16265if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16266 $as_echo_n "(cached) " >&6 16267else 16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16269/* end confdefs.h. */ 16270int i; 16271_ACEOF 16272if ac_fn_c_try_compile "$LINENO"; then : 16273 xorg_cv_cc_flag_unused_command_line_argument=yes 16274else 16275 xorg_cv_cc_flag_unused_command_line_argument=no 16276fi 16277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16278fi 16279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16280$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16282 CFLAGS="$xorg_testset_save_CFLAGS" 16283fi 16284 16285found="no" 16286 16287 if test $found = "no" ; then 16288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16290 fi 16291 16292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16294 fi 16295 16296 CFLAGS="$CFLAGS -Wsequence-point" 16297 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16299$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16300 cacheid=xorg_cv_cc_flag__Wsequence_point 16301 if eval \${$cacheid+:} false; then : 16302 $as_echo_n "(cached) " >&6 16303else 16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16305/* end confdefs.h. */ 16306int i; 16307int 16308main () 16309{ 16310 16311 ; 16312 return 0; 16313} 16314_ACEOF 16315if ac_fn_c_try_link "$LINENO"; then : 16316 eval $cacheid=yes 16317else 16318 eval $cacheid=no 16319fi 16320rm -f core conftest.err conftest.$ac_objext \ 16321 conftest$ac_exeext conftest.$ac_ext 16322fi 16323 16324 16325 CFLAGS="$xorg_testset_save_CFLAGS" 16326 16327 eval supported=\$$cacheid 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16329$as_echo "$supported" >&6; } 16330 if test "$supported" = "yes" ; then 16331 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16332 found="yes" 16333 fi 16334 fi 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350xorg_testset_save_CFLAGS="$CFLAGS" 16351 16352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16357 $as_echo_n "(cached) " >&6 16358else 16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16360/* end confdefs.h. */ 16361int i; 16362_ACEOF 16363if ac_fn_c_try_compile "$LINENO"; then : 16364 xorg_cv_cc_flag_unknown_warning_option=yes 16365else 16366 xorg_cv_cc_flag_unknown_warning_option=no 16367fi 16368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16369fi 16370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16373 CFLAGS="$xorg_testset_save_CFLAGS" 16374fi 16375 16376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16379 fi 16380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16383if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16384 $as_echo_n "(cached) " >&6 16385else 16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16387/* end confdefs.h. */ 16388int i; 16389_ACEOF 16390if ac_fn_c_try_compile "$LINENO"; then : 16391 xorg_cv_cc_flag_unused_command_line_argument=yes 16392else 16393 xorg_cv_cc_flag_unused_command_line_argument=no 16394fi 16395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16396fi 16397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16400 CFLAGS="$xorg_testset_save_CFLAGS" 16401fi 16402 16403found="no" 16404 16405 if test $found = "no" ; then 16406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16408 fi 16409 16410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16412 fi 16413 16414 CFLAGS="$CFLAGS -Wreturn-type" 16415 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16417$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16418 cacheid=xorg_cv_cc_flag__Wreturn_type 16419 if eval \${$cacheid+:} false; then : 16420 $as_echo_n "(cached) " >&6 16421else 16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16423/* end confdefs.h. */ 16424int i; 16425int 16426main () 16427{ 16428 16429 ; 16430 return 0; 16431} 16432_ACEOF 16433if ac_fn_c_try_link "$LINENO"; then : 16434 eval $cacheid=yes 16435else 16436 eval $cacheid=no 16437fi 16438rm -f core conftest.err conftest.$ac_objext \ 16439 conftest$ac_exeext conftest.$ac_ext 16440fi 16441 16442 16443 CFLAGS="$xorg_testset_save_CFLAGS" 16444 16445 eval supported=\$$cacheid 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16447$as_echo "$supported" >&6; } 16448 if test "$supported" = "yes" ; then 16449 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16450 found="yes" 16451 fi 16452 fi 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468xorg_testset_save_CFLAGS="$CFLAGS" 16469 16470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16475 $as_echo_n "(cached) " >&6 16476else 16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16478/* end confdefs.h. */ 16479int i; 16480_ACEOF 16481if ac_fn_c_try_compile "$LINENO"; then : 16482 xorg_cv_cc_flag_unknown_warning_option=yes 16483else 16484 xorg_cv_cc_flag_unknown_warning_option=no 16485fi 16486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16487fi 16488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16491 CFLAGS="$xorg_testset_save_CFLAGS" 16492fi 16493 16494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16497 fi 16498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16502 $as_echo_n "(cached) " >&6 16503else 16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16505/* end confdefs.h. */ 16506int i; 16507_ACEOF 16508if ac_fn_c_try_compile "$LINENO"; then : 16509 xorg_cv_cc_flag_unused_command_line_argument=yes 16510else 16511 xorg_cv_cc_flag_unused_command_line_argument=no 16512fi 16513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16514fi 16515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16518 CFLAGS="$xorg_testset_save_CFLAGS" 16519fi 16520 16521found="no" 16522 16523 if test $found = "no" ; then 16524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16526 fi 16527 16528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16530 fi 16531 16532 CFLAGS="$CFLAGS -Wtrigraphs" 16533 16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16535$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16536 cacheid=xorg_cv_cc_flag__Wtrigraphs 16537 if eval \${$cacheid+:} false; then : 16538 $as_echo_n "(cached) " >&6 16539else 16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16541/* end confdefs.h. */ 16542int i; 16543int 16544main () 16545{ 16546 16547 ; 16548 return 0; 16549} 16550_ACEOF 16551if ac_fn_c_try_link "$LINENO"; then : 16552 eval $cacheid=yes 16553else 16554 eval $cacheid=no 16555fi 16556rm -f core conftest.err conftest.$ac_objext \ 16557 conftest$ac_exeext conftest.$ac_ext 16558fi 16559 16560 16561 CFLAGS="$xorg_testset_save_CFLAGS" 16562 16563 eval supported=\$$cacheid 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16565$as_echo "$supported" >&6; } 16566 if test "$supported" = "yes" ; then 16567 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16568 found="yes" 16569 fi 16570 fi 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586xorg_testset_save_CFLAGS="$CFLAGS" 16587 16588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16593 $as_echo_n "(cached) " >&6 16594else 16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16596/* end confdefs.h. */ 16597int i; 16598_ACEOF 16599if ac_fn_c_try_compile "$LINENO"; then : 16600 xorg_cv_cc_flag_unknown_warning_option=yes 16601else 16602 xorg_cv_cc_flag_unknown_warning_option=no 16603fi 16604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16605fi 16606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16609 CFLAGS="$xorg_testset_save_CFLAGS" 16610fi 16611 16612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16615 fi 16616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16620 $as_echo_n "(cached) " >&6 16621else 16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16623/* end confdefs.h. */ 16624int i; 16625_ACEOF 16626if ac_fn_c_try_compile "$LINENO"; then : 16627 xorg_cv_cc_flag_unused_command_line_argument=yes 16628else 16629 xorg_cv_cc_flag_unused_command_line_argument=no 16630fi 16631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16632fi 16633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16636 CFLAGS="$xorg_testset_save_CFLAGS" 16637fi 16638 16639found="no" 16640 16641 if test $found = "no" ; then 16642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16644 fi 16645 16646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16648 fi 16649 16650 CFLAGS="$CFLAGS -Warray-bounds" 16651 16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16653$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16654 cacheid=xorg_cv_cc_flag__Warray_bounds 16655 if eval \${$cacheid+:} false; then : 16656 $as_echo_n "(cached) " >&6 16657else 16658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16659/* end confdefs.h. */ 16660int i; 16661int 16662main () 16663{ 16664 16665 ; 16666 return 0; 16667} 16668_ACEOF 16669if ac_fn_c_try_link "$LINENO"; then : 16670 eval $cacheid=yes 16671else 16672 eval $cacheid=no 16673fi 16674rm -f core conftest.err conftest.$ac_objext \ 16675 conftest$ac_exeext conftest.$ac_ext 16676fi 16677 16678 16679 CFLAGS="$xorg_testset_save_CFLAGS" 16680 16681 eval supported=\$$cacheid 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16683$as_echo "$supported" >&6; } 16684 if test "$supported" = "yes" ; then 16685 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16686 found="yes" 16687 fi 16688 fi 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704xorg_testset_save_CFLAGS="$CFLAGS" 16705 16706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16711 $as_echo_n "(cached) " >&6 16712else 16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16714/* end confdefs.h. */ 16715int i; 16716_ACEOF 16717if ac_fn_c_try_compile "$LINENO"; then : 16718 xorg_cv_cc_flag_unknown_warning_option=yes 16719else 16720 xorg_cv_cc_flag_unknown_warning_option=no 16721fi 16722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16723fi 16724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16727 CFLAGS="$xorg_testset_save_CFLAGS" 16728fi 16729 16730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 fi 16734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16738 $as_echo_n "(cached) " >&6 16739else 16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16741/* end confdefs.h. */ 16742int i; 16743_ACEOF 16744if ac_fn_c_try_compile "$LINENO"; then : 16745 xorg_cv_cc_flag_unused_command_line_argument=yes 16746else 16747 xorg_cv_cc_flag_unused_command_line_argument=no 16748fi 16749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16750fi 16751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16754 CFLAGS="$xorg_testset_save_CFLAGS" 16755fi 16756 16757found="no" 16758 16759 if test $found = "no" ; then 16760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16762 fi 16763 16764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16766 fi 16767 16768 CFLAGS="$CFLAGS -Wwrite-strings" 16769 16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16771$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16772 cacheid=xorg_cv_cc_flag__Wwrite_strings 16773 if eval \${$cacheid+:} false; then : 16774 $as_echo_n "(cached) " >&6 16775else 16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16777/* end confdefs.h. */ 16778int i; 16779int 16780main () 16781{ 16782 16783 ; 16784 return 0; 16785} 16786_ACEOF 16787if ac_fn_c_try_link "$LINENO"; then : 16788 eval $cacheid=yes 16789else 16790 eval $cacheid=no 16791fi 16792rm -f core conftest.err conftest.$ac_objext \ 16793 conftest$ac_exeext conftest.$ac_ext 16794fi 16795 16796 16797 CFLAGS="$xorg_testset_save_CFLAGS" 16798 16799 eval supported=\$$cacheid 16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16801$as_echo "$supported" >&6; } 16802 if test "$supported" = "yes" ; then 16803 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16804 found="yes" 16805 fi 16806 fi 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822xorg_testset_save_CFLAGS="$CFLAGS" 16823 16824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16829 $as_echo_n "(cached) " >&6 16830else 16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16832/* end confdefs.h. */ 16833int i; 16834_ACEOF 16835if ac_fn_c_try_compile "$LINENO"; then : 16836 xorg_cv_cc_flag_unknown_warning_option=yes 16837else 16838 xorg_cv_cc_flag_unknown_warning_option=no 16839fi 16840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16841fi 16842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16845 CFLAGS="$xorg_testset_save_CFLAGS" 16846fi 16847 16848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 fi 16852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16856 $as_echo_n "(cached) " >&6 16857else 16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859/* end confdefs.h. */ 16860int i; 16861_ACEOF 16862if ac_fn_c_try_compile "$LINENO"; then : 16863 xorg_cv_cc_flag_unused_command_line_argument=yes 16864else 16865 xorg_cv_cc_flag_unused_command_line_argument=no 16866fi 16867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16868fi 16869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16872 CFLAGS="$xorg_testset_save_CFLAGS" 16873fi 16874 16875found="no" 16876 16877 if test $found = "no" ; then 16878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16880 fi 16881 16882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16884 fi 16885 16886 CFLAGS="$CFLAGS -Waddress" 16887 16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16889$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16890 cacheid=xorg_cv_cc_flag__Waddress 16891 if eval \${$cacheid+:} false; then : 16892 $as_echo_n "(cached) " >&6 16893else 16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895/* end confdefs.h. */ 16896int i; 16897int 16898main () 16899{ 16900 16901 ; 16902 return 0; 16903} 16904_ACEOF 16905if ac_fn_c_try_link "$LINENO"; then : 16906 eval $cacheid=yes 16907else 16908 eval $cacheid=no 16909fi 16910rm -f core conftest.err conftest.$ac_objext \ 16911 conftest$ac_exeext conftest.$ac_ext 16912fi 16913 16914 16915 CFLAGS="$xorg_testset_save_CFLAGS" 16916 16917 eval supported=\$$cacheid 16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16919$as_echo "$supported" >&6; } 16920 if test "$supported" = "yes" ; then 16921 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16922 found="yes" 16923 fi 16924 fi 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940xorg_testset_save_CFLAGS="$CFLAGS" 16941 16942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16947 $as_echo_n "(cached) " >&6 16948else 16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16950/* end confdefs.h. */ 16951int i; 16952_ACEOF 16953if ac_fn_c_try_compile "$LINENO"; then : 16954 xorg_cv_cc_flag_unknown_warning_option=yes 16955else 16956 xorg_cv_cc_flag_unknown_warning_option=no 16957fi 16958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16959fi 16960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16963 CFLAGS="$xorg_testset_save_CFLAGS" 16964fi 16965 16966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16969 fi 16970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16974 $as_echo_n "(cached) " >&6 16975else 16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977/* end confdefs.h. */ 16978int i; 16979_ACEOF 16980if ac_fn_c_try_compile "$LINENO"; then : 16981 xorg_cv_cc_flag_unused_command_line_argument=yes 16982else 16983 xorg_cv_cc_flag_unused_command_line_argument=no 16984fi 16985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16986fi 16987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16990 CFLAGS="$xorg_testset_save_CFLAGS" 16991fi 16992 16993found="no" 16994 16995 if test $found = "no" ; then 16996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16998 fi 16999 17000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17002 fi 17003 17004 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17005 17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17007$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17008 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17009 if eval \${$cacheid+:} false; then : 17010 $as_echo_n "(cached) " >&6 17011else 17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17013/* end confdefs.h. */ 17014int i; 17015int 17016main () 17017{ 17018 17019 ; 17020 return 0; 17021} 17022_ACEOF 17023if ac_fn_c_try_link "$LINENO"; then : 17024 eval $cacheid=yes 17025else 17026 eval $cacheid=no 17027fi 17028rm -f core conftest.err conftest.$ac_objext \ 17029 conftest$ac_exeext conftest.$ac_ext 17030fi 17031 17032 17033 CFLAGS="$xorg_testset_save_CFLAGS" 17034 17035 eval supported=\$$cacheid 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17037$as_echo "$supported" >&6; } 17038 if test "$supported" = "yes" ; then 17039 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17040 found="yes" 17041 fi 17042 fi 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058xorg_testset_save_CFLAGS="$CFLAGS" 17059 17060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17065 $as_echo_n "(cached) " >&6 17066else 17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068/* end confdefs.h. */ 17069int i; 17070_ACEOF 17071if ac_fn_c_try_compile "$LINENO"; then : 17072 xorg_cv_cc_flag_unknown_warning_option=yes 17073else 17074 xorg_cv_cc_flag_unknown_warning_option=no 17075fi 17076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17077fi 17078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17081 CFLAGS="$xorg_testset_save_CFLAGS" 17082fi 17083 17084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17087 fi 17088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17092 $as_echo_n "(cached) " >&6 17093else 17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17095/* end confdefs.h. */ 17096int i; 17097_ACEOF 17098if ac_fn_c_try_compile "$LINENO"; then : 17099 xorg_cv_cc_flag_unused_command_line_argument=yes 17100else 17101 xorg_cv_cc_flag_unused_command_line_argument=no 17102fi 17103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17104fi 17105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17108 CFLAGS="$xorg_testset_save_CFLAGS" 17109fi 17110 17111found="no" 17112 17113 if test $found = "no" ; then 17114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17116 fi 17117 17118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17120 fi 17121 17122 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17123 17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17125$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17126 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17127 if eval \${$cacheid+:} false; then : 17128 $as_echo_n "(cached) " >&6 17129else 17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17131/* end confdefs.h. */ 17132int i; 17133int 17134main () 17135{ 17136 17137 ; 17138 return 0; 17139} 17140_ACEOF 17141if ac_fn_c_try_link "$LINENO"; then : 17142 eval $cacheid=yes 17143else 17144 eval $cacheid=no 17145fi 17146rm -f core conftest.err conftest.$ac_objext \ 17147 conftest$ac_exeext conftest.$ac_ext 17148fi 17149 17150 17151 CFLAGS="$xorg_testset_save_CFLAGS" 17152 17153 eval supported=\$$cacheid 17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17155$as_echo "$supported" >&6; } 17156 if test "$supported" = "yes" ; then 17157 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17158 found="yes" 17159 fi 17160 fi 17161 17162 17163fi 17164 17165 17166 17167 17168 17169 17170 17171 CWARNFLAGS="$BASE_CFLAGS" 17172 if test "x$GCC" = xyes ; then 17173 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17174 fi 17175 17176 17177 17178 17179 17180 17181 17182 17183# Check whether --enable-strict-compilation was given. 17184if test "${enable_strict_compilation+set}" = set; then : 17185 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17186else 17187 STRICT_COMPILE=no 17188fi 17189 17190 17191 17192 17193 17194 17195STRICT_CFLAGS="" 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209xorg_testset_save_CFLAGS="$CFLAGS" 17210 17211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17216 $as_echo_n "(cached) " >&6 17217else 17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17219/* end confdefs.h. */ 17220int i; 17221_ACEOF 17222if ac_fn_c_try_compile "$LINENO"; then : 17223 xorg_cv_cc_flag_unknown_warning_option=yes 17224else 17225 xorg_cv_cc_flag_unknown_warning_option=no 17226fi 17227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17228fi 17229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17232 CFLAGS="$xorg_testset_save_CFLAGS" 17233fi 17234 17235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17238 fi 17239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17243 $as_echo_n "(cached) " >&6 17244else 17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17246/* end confdefs.h. */ 17247int i; 17248_ACEOF 17249if ac_fn_c_try_compile "$LINENO"; then : 17250 xorg_cv_cc_flag_unused_command_line_argument=yes 17251else 17252 xorg_cv_cc_flag_unused_command_line_argument=no 17253fi 17254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17255fi 17256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17259 CFLAGS="$xorg_testset_save_CFLAGS" 17260fi 17261 17262found="no" 17263 17264 if test $found = "no" ; then 17265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17267 fi 17268 17269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17271 fi 17272 17273 CFLAGS="$CFLAGS -pedantic" 17274 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17276$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17277 cacheid=xorg_cv_cc_flag__pedantic 17278 if eval \${$cacheid+:} false; then : 17279 $as_echo_n "(cached) " >&6 17280else 17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17282/* end confdefs.h. */ 17283int i; 17284int 17285main () 17286{ 17287 17288 ; 17289 return 0; 17290} 17291_ACEOF 17292if ac_fn_c_try_link "$LINENO"; then : 17293 eval $cacheid=yes 17294else 17295 eval $cacheid=no 17296fi 17297rm -f core conftest.err conftest.$ac_objext \ 17298 conftest$ac_exeext conftest.$ac_ext 17299fi 17300 17301 17302 CFLAGS="$xorg_testset_save_CFLAGS" 17303 17304 eval supported=\$$cacheid 17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17306$as_echo "$supported" >&6; } 17307 if test "$supported" = "yes" ; then 17308 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17309 found="yes" 17310 fi 17311 fi 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327xorg_testset_save_CFLAGS="$CFLAGS" 17328 17329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17334 $as_echo_n "(cached) " >&6 17335else 17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337/* end confdefs.h. */ 17338int i; 17339_ACEOF 17340if ac_fn_c_try_compile "$LINENO"; then : 17341 xorg_cv_cc_flag_unknown_warning_option=yes 17342else 17343 xorg_cv_cc_flag_unknown_warning_option=no 17344fi 17345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17346fi 17347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17350 CFLAGS="$xorg_testset_save_CFLAGS" 17351fi 17352 17353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17356 fi 17357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17361 $as_echo_n "(cached) " >&6 17362else 17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364/* end confdefs.h. */ 17365int i; 17366_ACEOF 17367if ac_fn_c_try_compile "$LINENO"; then : 17368 xorg_cv_cc_flag_unused_command_line_argument=yes 17369else 17370 xorg_cv_cc_flag_unused_command_line_argument=no 17371fi 17372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17373fi 17374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17377 CFLAGS="$xorg_testset_save_CFLAGS" 17378fi 17379 17380found="no" 17381 17382 if test $found = "no" ; then 17383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17385 fi 17386 17387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17389 fi 17390 17391 CFLAGS="$CFLAGS -Werror" 17392 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17394$as_echo_n "checking if $CC supports -Werror... " >&6; } 17395 cacheid=xorg_cv_cc_flag__Werror 17396 if eval \${$cacheid+:} false; then : 17397 $as_echo_n "(cached) " >&6 17398else 17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17400/* end confdefs.h. */ 17401int i; 17402int 17403main () 17404{ 17405 17406 ; 17407 return 0; 17408} 17409_ACEOF 17410if ac_fn_c_try_link "$LINENO"; then : 17411 eval $cacheid=yes 17412else 17413 eval $cacheid=no 17414fi 17415rm -f core conftest.err conftest.$ac_objext \ 17416 conftest$ac_exeext conftest.$ac_ext 17417fi 17418 17419 17420 CFLAGS="$xorg_testset_save_CFLAGS" 17421 17422 eval supported=\$$cacheid 17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17424$as_echo "$supported" >&6; } 17425 if test "$supported" = "yes" ; then 17426 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17427 found="yes" 17428 fi 17429 fi 17430 17431 if test $found = "no" ; then 17432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17434 fi 17435 17436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17438 fi 17439 17440 CFLAGS="$CFLAGS -errwarn" 17441 17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17443$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17444 cacheid=xorg_cv_cc_flag__errwarn 17445 if eval \${$cacheid+:} false; then : 17446 $as_echo_n "(cached) " >&6 17447else 17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17449/* end confdefs.h. */ 17450int i; 17451int 17452main () 17453{ 17454 17455 ; 17456 return 0; 17457} 17458_ACEOF 17459if ac_fn_c_try_link "$LINENO"; then : 17460 eval $cacheid=yes 17461else 17462 eval $cacheid=no 17463fi 17464rm -f core conftest.err conftest.$ac_objext \ 17465 conftest$ac_exeext conftest.$ac_ext 17466fi 17467 17468 17469 CFLAGS="$xorg_testset_save_CFLAGS" 17470 17471 eval supported=\$$cacheid 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17473$as_echo "$supported" >&6; } 17474 if test "$supported" = "yes" ; then 17475 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17476 found="yes" 17477 fi 17478 fi 17479 17480 17481 17482# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17483# activate it with -Werror, so we add it here explicitly. 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497xorg_testset_save_CFLAGS="$CFLAGS" 17498 17499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17504 $as_echo_n "(cached) " >&6 17505else 17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17507/* end confdefs.h. */ 17508int i; 17509_ACEOF 17510if ac_fn_c_try_compile "$LINENO"; then : 17511 xorg_cv_cc_flag_unknown_warning_option=yes 17512else 17513 xorg_cv_cc_flag_unknown_warning_option=no 17514fi 17515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17516fi 17517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17520 CFLAGS="$xorg_testset_save_CFLAGS" 17521fi 17522 17523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17526 fi 17527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17531 $as_echo_n "(cached) " >&6 17532else 17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17534/* end confdefs.h. */ 17535int i; 17536_ACEOF 17537if ac_fn_c_try_compile "$LINENO"; then : 17538 xorg_cv_cc_flag_unused_command_line_argument=yes 17539else 17540 xorg_cv_cc_flag_unused_command_line_argument=no 17541fi 17542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17543fi 17544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17547 CFLAGS="$xorg_testset_save_CFLAGS" 17548fi 17549 17550found="no" 17551 17552 if test $found = "no" ; then 17553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17555 fi 17556 17557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17559 fi 17560 17561 CFLAGS="$CFLAGS -Werror=attributes" 17562 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17564$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17565 cacheid=xorg_cv_cc_flag__Werror_attributes 17566 if eval \${$cacheid+:} false; then : 17567 $as_echo_n "(cached) " >&6 17568else 17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17570/* end confdefs.h. */ 17571int i; 17572int 17573main () 17574{ 17575 17576 ; 17577 return 0; 17578} 17579_ACEOF 17580if ac_fn_c_try_link "$LINENO"; then : 17581 eval $cacheid=yes 17582else 17583 eval $cacheid=no 17584fi 17585rm -f core conftest.err conftest.$ac_objext \ 17586 conftest$ac_exeext conftest.$ac_ext 17587fi 17588 17589 17590 CFLAGS="$xorg_testset_save_CFLAGS" 17591 17592 eval supported=\$$cacheid 17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17594$as_echo "$supported" >&6; } 17595 if test "$supported" = "yes" ; then 17596 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17597 found="yes" 17598 fi 17599 fi 17600 17601 17602 17603if test "x$STRICT_COMPILE" = "xyes"; then 17604 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17605 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17606fi 17607 17608 17609 17610 17611 17612 17613cat >>confdefs.h <<_ACEOF 17614#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17615_ACEOF 17616 17617 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17618 if test "x$PVM" = "x"; then 17619 PVM="0" 17620 fi 17621 17622cat >>confdefs.h <<_ACEOF 17623#define PACKAGE_VERSION_MINOR $PVM 17624_ACEOF 17625 17626 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17627 if test "x$PVP" = "x"; then 17628 PVP="0" 17629 fi 17630 17631cat >>confdefs.h <<_ACEOF 17632#define PACKAGE_VERSION_PATCHLEVEL $PVP 17633_ACEOF 17634 17635 17636 17637CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17638mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17639|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17640echo 'git directory not found: installing possibly empty changelog.' >&2)" 17641 17642 17643 17644 17645macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17646INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17647mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17648|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17649echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17650 17651 17652 17653 17654 17655 17656if test x$APP_MAN_SUFFIX = x ; then 17657 APP_MAN_SUFFIX=1 17658fi 17659if test x$APP_MAN_DIR = x ; then 17660 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17661fi 17662 17663if test x$LIB_MAN_SUFFIX = x ; then 17664 LIB_MAN_SUFFIX=3 17665fi 17666if test x$LIB_MAN_DIR = x ; then 17667 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17668fi 17669 17670if test x$FILE_MAN_SUFFIX = x ; then 17671 case $host_os in 17672 solaris*) FILE_MAN_SUFFIX=4 ;; 17673 *) FILE_MAN_SUFFIX=5 ;; 17674 esac 17675fi 17676if test x$FILE_MAN_DIR = x ; then 17677 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17678fi 17679 17680if test x$MISC_MAN_SUFFIX = x ; then 17681 case $host_os in 17682 solaris*) MISC_MAN_SUFFIX=5 ;; 17683 *) MISC_MAN_SUFFIX=7 ;; 17684 esac 17685fi 17686if test x$MISC_MAN_DIR = x ; then 17687 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17688fi 17689 17690if test x$DRIVER_MAN_SUFFIX = x ; then 17691 case $host_os in 17692 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17693 *) DRIVER_MAN_SUFFIX=4 ;; 17694 esac 17695fi 17696if test x$DRIVER_MAN_DIR = x ; then 17697 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17698fi 17699 17700if test x$ADMIN_MAN_SUFFIX = x ; then 17701 case $host_os in 17702 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17703 *) ADMIN_MAN_SUFFIX=8 ;; 17704 esac 17705fi 17706if test x$ADMIN_MAN_DIR = x ; then 17707 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17708fi 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724XORG_MAN_PAGE="X Version 11" 17725 17726MAN_SUBSTS="\ 17727 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17728 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17729 -e 's|__xservername__|Xorg|g' \ 17730 -e 's|__xconfigfile__|xorg.conf|g' \ 17731 -e 's|__xorgconfdir__|xorg.conf.d|g' \ 17732 -e 's|__projectroot__|\$(prefix)|g' \ 17733 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17734 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17735 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17736 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17737 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17738 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17739 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17740 17741 17742 17743# Check whether --enable-silent-rules was given. 17744if test "${enable_silent_rules+set}" = set; then : 17745 enableval=$enable_silent_rules; 17746fi 17747 17748case $enable_silent_rules in # ((( 17749 yes) AM_DEFAULT_VERBOSITY=0;; 17750 no) AM_DEFAULT_VERBOSITY=1;; 17751 *) AM_DEFAULT_VERBOSITY=0;; 17752esac 17753am_make=${MAKE-make} 17754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17755$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17756if ${am_cv_make_support_nested_variables+:} false; then : 17757 $as_echo_n "(cached) " >&6 17758else 17759 if $as_echo 'TRUE=$(BAR$(V)) 17760BAR0=false 17761BAR1=true 17762V=1 17763am__doit: 17764 @$(TRUE) 17765.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17766 am_cv_make_support_nested_variables=yes 17767else 17768 am_cv_make_support_nested_variables=no 17769fi 17770fi 17771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17772$as_echo "$am_cv_make_support_nested_variables" >&6; } 17773if test $am_cv_make_support_nested_variables = yes; then 17774 AM_V='$(V)' 17775 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17776else 17777 AM_V=$AM_DEFAULT_VERBOSITY 17778 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17779fi 17780AM_BACKSLASH='\' 17781 17782 17783 17784 17785# Check whether --enable-specs was given. 17786if test "${enable_specs+set}" = set; then : 17787 enableval=$enable_specs; build_specs=$enableval 17788else 17789 build_specs=yes 17790fi 17791 17792 17793 if test x$build_specs = xyes; then 17794 ENABLE_SPECS_TRUE= 17795 ENABLE_SPECS_FALSE='#' 17796else 17797 ENABLE_SPECS_TRUE='#' 17798 ENABLE_SPECS_FALSE= 17799fi 17800 17801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17802$as_echo_n "checking whether to build functional specifications... " >&6; } 17803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17804$as_echo "$build_specs" >&6; } 17805 17806 17807 17808 17809 17810# Check whether --with-xmlto was given. 17811if test "${with_xmlto+set}" = set; then : 17812 withval=$with_xmlto; use_xmlto=$withval 17813else 17814 use_xmlto=auto 17815fi 17816 17817 17818 17819if test "x$use_xmlto" = x"auto"; then 17820 # Extract the first word of "xmlto", so it can be a program name with args. 17821set dummy xmlto; ac_word=$2 17822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17823$as_echo_n "checking for $ac_word... " >&6; } 17824if ${ac_cv_path_XMLTO+:} false; then : 17825 $as_echo_n "(cached) " >&6 17826else 17827 case $XMLTO in 17828 [\\/]* | ?:[\\/]*) 17829 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17830 ;; 17831 *) 17832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17833for as_dir in $PATH 17834do 17835 IFS=$as_save_IFS 17836 test -z "$as_dir" && as_dir=. 17837 for ac_exec_ext in '' $ac_executable_extensions; do 17838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17839 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17841 break 2 17842 fi 17843done 17844 done 17845IFS=$as_save_IFS 17846 17847 ;; 17848esac 17849fi 17850XMLTO=$ac_cv_path_XMLTO 17851if test -n "$XMLTO"; then 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17853$as_echo "$XMLTO" >&6; } 17854else 17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17856$as_echo "no" >&6; } 17857fi 17858 17859 17860 if test "x$XMLTO" = "x"; then 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17862$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17863 have_xmlto=no 17864 else 17865 have_xmlto=yes 17866 fi 17867elif test "x$use_xmlto" = x"yes" ; then 17868 # Extract the first word of "xmlto", so it can be a program name with args. 17869set dummy xmlto; ac_word=$2 17870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17871$as_echo_n "checking for $ac_word... " >&6; } 17872if ${ac_cv_path_XMLTO+:} false; then : 17873 $as_echo_n "(cached) " >&6 17874else 17875 case $XMLTO in 17876 [\\/]* | ?:[\\/]*) 17877 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17878 ;; 17879 *) 17880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17881for as_dir in $PATH 17882do 17883 IFS=$as_save_IFS 17884 test -z "$as_dir" && as_dir=. 17885 for ac_exec_ext in '' $ac_executable_extensions; do 17886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17887 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17889 break 2 17890 fi 17891done 17892 done 17893IFS=$as_save_IFS 17894 17895 ;; 17896esac 17897fi 17898XMLTO=$ac_cv_path_XMLTO 17899if test -n "$XMLTO"; then 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17901$as_echo "$XMLTO" >&6; } 17902else 17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17904$as_echo "no" >&6; } 17905fi 17906 17907 17908 if test "x$XMLTO" = "x"; then 17909 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17910 fi 17911 have_xmlto=yes 17912elif test "x$use_xmlto" = x"no" ; then 17913 if test "x$XMLTO" != "x"; then 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17915$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17916 fi 17917 have_xmlto=no 17918else 17919 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17920fi 17921 17922# Test for a minimum version of xmlto, if provided. 17923if test "$have_xmlto" = yes; then 17924 # scrape the xmlto version 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17926$as_echo_n "checking the xmlto version... " >&6; } 17927 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17929$as_echo "$xmlto_version" >&6; } 17930 as_arg_v1=$xmlto_version 17931as_arg_v2=0.0.22 17932awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17933case $? in #( 17934 1) : 17935 if test "x$use_xmlto" = xauto; then 17936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17937$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17938 have_xmlto=no 17939 else 17940 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17941 fi ;; #( 17942 0) : 17943 ;; #( 17944 2) : 17945 ;; #( 17946 *) : 17947 ;; 17948esac 17949fi 17950 17951# Test for the ability of xmlto to generate a text target 17952have_xmlto_text=no 17953cat > conftest.xml << "EOF" 17954EOF 17955if test "$have_xmlto" = yes; then : 17956 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17957 have_xmlto_text=yes 17958else 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17960$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17961fi 17962fi 17963rm -f conftest.xml 17964 if test $have_xmlto_text = yes; then 17965 HAVE_XMLTO_TEXT_TRUE= 17966 HAVE_XMLTO_TEXT_FALSE='#' 17967else 17968 HAVE_XMLTO_TEXT_TRUE='#' 17969 HAVE_XMLTO_TEXT_FALSE= 17970fi 17971 17972 if test "$have_xmlto" = yes; then 17973 HAVE_XMLTO_TRUE= 17974 HAVE_XMLTO_FALSE='#' 17975else 17976 HAVE_XMLTO_TRUE='#' 17977 HAVE_XMLTO_FALSE= 17978fi 17979 17980 17981 17982 17983 17984 17985# Check whether --with-fop was given. 17986if test "${with_fop+set}" = set; then : 17987 withval=$with_fop; use_fop=$withval 17988else 17989 use_fop=auto 17990fi 17991 17992 17993 17994if test "x$use_fop" = x"auto"; then 17995 # Extract the first word of "fop", so it can be a program name with args. 17996set dummy fop; ac_word=$2 17997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17998$as_echo_n "checking for $ac_word... " >&6; } 17999if ${ac_cv_path_FOP+:} false; then : 18000 $as_echo_n "(cached) " >&6 18001else 18002 case $FOP in 18003 [\\/]* | ?:[\\/]*) 18004 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18005 ;; 18006 *) 18007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18008for as_dir in $PATH 18009do 18010 IFS=$as_save_IFS 18011 test -z "$as_dir" && as_dir=. 18012 for ac_exec_ext in '' $ac_executable_extensions; do 18013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18014 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18016 break 2 18017 fi 18018done 18019 done 18020IFS=$as_save_IFS 18021 18022 ;; 18023esac 18024fi 18025FOP=$ac_cv_path_FOP 18026if test -n "$FOP"; then 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18028$as_echo "$FOP" >&6; } 18029else 18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18031$as_echo "no" >&6; } 18032fi 18033 18034 18035 if test "x$FOP" = "x"; then 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18037$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18038 have_fop=no 18039 else 18040 have_fop=yes 18041 fi 18042elif test "x$use_fop" = x"yes" ; then 18043 # Extract the first word of "fop", so it can be a program name with args. 18044set dummy fop; ac_word=$2 18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18046$as_echo_n "checking for $ac_word... " >&6; } 18047if ${ac_cv_path_FOP+:} false; then : 18048 $as_echo_n "(cached) " >&6 18049else 18050 case $FOP in 18051 [\\/]* | ?:[\\/]*) 18052 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18053 ;; 18054 *) 18055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18056for as_dir in $PATH 18057do 18058 IFS=$as_save_IFS 18059 test -z "$as_dir" && as_dir=. 18060 for ac_exec_ext in '' $ac_executable_extensions; do 18061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18062 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18064 break 2 18065 fi 18066done 18067 done 18068IFS=$as_save_IFS 18069 18070 ;; 18071esac 18072fi 18073FOP=$ac_cv_path_FOP 18074if test -n "$FOP"; then 18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18076$as_echo "$FOP" >&6; } 18077else 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18079$as_echo "no" >&6; } 18080fi 18081 18082 18083 if test "x$FOP" = "x"; then 18084 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18085 fi 18086 have_fop=yes 18087elif test "x$use_fop" = x"no" ; then 18088 if test "x$FOP" != "x"; then 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18090$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18091 fi 18092 have_fop=no 18093else 18094 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18095fi 18096 18097# Test for a minimum version of fop, if provided. 18098 18099 if test "$have_fop" = yes; then 18100 HAVE_FOP_TRUE= 18101 HAVE_FOP_FALSE='#' 18102else 18103 HAVE_FOP_TRUE='#' 18104 HAVE_FOP_FALSE= 18105fi 18106 18107 18108 18109 18110# Preserves the interface, should it be implemented later 18111 18112 18113 18114# Check whether --with-xsltproc was given. 18115if test "${with_xsltproc+set}" = set; then : 18116 withval=$with_xsltproc; use_xsltproc=$withval 18117else 18118 use_xsltproc=auto 18119fi 18120 18121 18122 18123if test "x$use_xsltproc" = x"auto"; then 18124 # Extract the first word of "xsltproc", so it can be a program name with args. 18125set dummy xsltproc; ac_word=$2 18126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18127$as_echo_n "checking for $ac_word... " >&6; } 18128if ${ac_cv_path_XSLTPROC+:} false; then : 18129 $as_echo_n "(cached) " >&6 18130else 18131 case $XSLTPROC in 18132 [\\/]* | ?:[\\/]*) 18133 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18134 ;; 18135 *) 18136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18137for as_dir in $PATH 18138do 18139 IFS=$as_save_IFS 18140 test -z "$as_dir" && as_dir=. 18141 for ac_exec_ext in '' $ac_executable_extensions; do 18142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18143 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18145 break 2 18146 fi 18147done 18148 done 18149IFS=$as_save_IFS 18150 18151 ;; 18152esac 18153fi 18154XSLTPROC=$ac_cv_path_XSLTPROC 18155if test -n "$XSLTPROC"; then 18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18157$as_echo "$XSLTPROC" >&6; } 18158else 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18160$as_echo "no" >&6; } 18161fi 18162 18163 18164 if test "x$XSLTPROC" = "x"; then 18165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18166$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18167 have_xsltproc=no 18168 else 18169 have_xsltproc=yes 18170 fi 18171elif test "x$use_xsltproc" = x"yes" ; then 18172 # Extract the first word of "xsltproc", so it can be a program name with args. 18173set dummy xsltproc; ac_word=$2 18174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18175$as_echo_n "checking for $ac_word... " >&6; } 18176if ${ac_cv_path_XSLTPROC+:} false; then : 18177 $as_echo_n "(cached) " >&6 18178else 18179 case $XSLTPROC in 18180 [\\/]* | ?:[\\/]*) 18181 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18182 ;; 18183 *) 18184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18185for as_dir in $PATH 18186do 18187 IFS=$as_save_IFS 18188 test -z "$as_dir" && as_dir=. 18189 for ac_exec_ext in '' $ac_executable_extensions; do 18190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18191 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18193 break 2 18194 fi 18195done 18196 done 18197IFS=$as_save_IFS 18198 18199 ;; 18200esac 18201fi 18202XSLTPROC=$ac_cv_path_XSLTPROC 18203if test -n "$XSLTPROC"; then 18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18205$as_echo "$XSLTPROC" >&6; } 18206else 18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18208$as_echo "no" >&6; } 18209fi 18210 18211 18212 if test "x$XSLTPROC" = "x"; then 18213 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18214 fi 18215 have_xsltproc=yes 18216elif test "x$use_xsltproc" = x"no" ; then 18217 if test "x$XSLTPROC" != "x"; then 18218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18219$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18220 fi 18221 have_xsltproc=no 18222else 18223 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18224fi 18225 18226 if test "$have_xsltproc" = yes; then 18227 HAVE_XSLTPROC_TRUE= 18228 HAVE_XSLTPROC_FALSE='#' 18229else 18230 HAVE_XSLTPROC_TRUE='#' 18231 HAVE_XSLTPROC_FALSE= 18232fi 18233 18234 18235 18236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18237$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18238XORG_SGML_PATH= 18239if test -n "$PKG_CONFIG" && \ 18240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18241 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18242 ac_status=$? 18243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18244 test $ac_status = 0; }; then 18245 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18246else 18247 : 18248 18249fi 18250 18251# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18252# the path and the name of the doc stylesheet 18253if test "x$XORG_SGML_PATH" != "x" ; then 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18255$as_echo "$XORG_SGML_PATH" >&6; } 18256 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18257 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18258else 18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18260$as_echo "no" >&6; } 18261fi 18262 18263 18264 18265 18266 if test "x$XSL_STYLESHEET" != "x"; then 18267 HAVE_STYLESHEETS_TRUE= 18268 HAVE_STYLESHEETS_FALSE='#' 18269else 18270 HAVE_STYLESHEETS_TRUE='#' 18271 HAVE_STYLESHEETS_FALSE= 18272fi 18273 18274 18275 18276# Check whether --enable-malloc0returnsnull was given. 18277if test "${enable_malloc0returnsnull+set}" = set; then : 18278 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18279else 18280 MALLOC_ZERO_RETURNS_NULL=auto 18281fi 18282 18283 18284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18285$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18286if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18287if ${xorg_cv_malloc0_returns_null+:} false; then : 18288 $as_echo_n "(cached) " >&6 18289else 18290 if test "$cross_compiling" = yes; then : 18291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18293as_fn_error $? "cannot run test program while cross compiling 18294See \`config.log' for more details" "$LINENO" 5; } 18295else 18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18297/* end confdefs.h. */ 18298 18299#include <stdlib.h> 18300 18301int 18302main () 18303{ 18304 18305 char *m0, *r0, *c0, *p; 18306 m0 = malloc(0); 18307 p = malloc(10); 18308 r0 = realloc(p,0); 18309 c0 = calloc(0,10); 18310 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18311 18312 ; 18313 return 0; 18314} 18315_ACEOF 18316if ac_fn_c_try_run "$LINENO"; then : 18317 xorg_cv_malloc0_returns_null=yes 18318else 18319 xorg_cv_malloc0_returns_null=no 18320fi 18321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18322 conftest.$ac_objext conftest.beam conftest.$ac_ext 18323fi 18324 18325fi 18326 18327MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 18328fi 18329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18330$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18331 18332if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18333 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18334 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18335 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18336else 18337 MALLOC_ZERO_CFLAGS="" 18338 XMALLOC_ZERO_CFLAGS="" 18339 XTMALLOC_ZERO_CFLAGS="" 18340fi 18341 18342 18343 18344 18345 18346 18347# Determine .so library version per platform 18348# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl 18349if test "x$XEXT_SOREV" = "x" ; then 18350 case $host_os in 18351 openbsd*) XEXT_SOREV=8:0 ;; 18352 solaris*) XEXT_SOREV=0 ;; 18353 *) XEXT_SOREV=6:4:0 ;; 18354 esac 18355fi 18356 18357 18358# Obtain compiler/linker options for depedencies 18359 18360pkg_failed=no 18361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18362$as_echo_n "checking for XEXT... " >&6; } 18363 18364if test -n "$XEXT_CFLAGS"; then 18365 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18366 elif test -n "$PKG_CONFIG"; then 18367 if test -n "$PKG_CONFIG" && \ 18368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5 18369 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5 18370 ac_status=$? 18371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18372 test $ac_status = 0; }; then 18373 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null` 18374 test "x$?" != "x0" && pkg_failed=yes 18375else 18376 pkg_failed=yes 18377fi 18378 else 18379 pkg_failed=untried 18380fi 18381if test -n "$XEXT_LIBS"; then 18382 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18383 elif test -n "$PKG_CONFIG"; then 18384 if test -n "$PKG_CONFIG" && \ 18385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5 18386 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5 18387 ac_status=$? 18388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18389 test $ac_status = 0; }; then 18390 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null` 18391 test "x$?" != "x0" && pkg_failed=yes 18392else 18393 pkg_failed=yes 18394fi 18395 else 18396 pkg_failed=untried 18397fi 18398 18399 18400 18401if test $pkg_failed = yes; then 18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18403$as_echo "no" >&6; } 18404 18405if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18406 _pkg_short_errors_supported=yes 18407else 18408 _pkg_short_errors_supported=no 18409fi 18410 if test $_pkg_short_errors_supported = yes; then 18411 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1` 18412 else 18413 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1` 18414 fi 18415 # Put the nasty error message in config.log where it belongs 18416 echo "$XEXT_PKG_ERRORS" >&5 18417 18418 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99) were not met: 18419 18420$XEXT_PKG_ERRORS 18421 18422Consider adjusting the PKG_CONFIG_PATH environment variable if you 18423installed software in a non-standard prefix. 18424 18425Alternatively, you may set the environment variables XEXT_CFLAGS 18426and XEXT_LIBS to avoid the need to call pkg-config. 18427See the pkg-config man page for more details." "$LINENO" 5 18428elif test $pkg_failed = untried; then 18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18430$as_echo "no" >&6; } 18431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18433as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18434is in your PATH or set the PKG_CONFIG environment variable to the full 18435path to pkg-config. 18436 18437Alternatively, you may set the environment variables XEXT_CFLAGS 18438and XEXT_LIBS to avoid the need to call pkg-config. 18439See the pkg-config man page for more details. 18440 18441To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18442See \`config.log' for more details" "$LINENO" 5; } 18443else 18444 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18445 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18447$as_echo "yes" >&6; } 18448 18449fi 18450 18451# Allow checking code with lint, sparse, etc. 18452 18453 18454 18455 18456 18457# Check whether --with-lint was given. 18458if test "${with_lint+set}" = set; then : 18459 withval=$with_lint; use_lint=$withval 18460else 18461 use_lint=no 18462fi 18463 18464 18465# Obtain platform specific info like program name and options 18466# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18467case $host_os in 18468 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18469 lint_name=splint 18470 lint_options="-badflag" 18471 ;; 18472 *freebsd* | *netbsd*) 18473 lint_name=lint 18474 lint_options="-u -b" 18475 ;; 18476 *solaris*) 18477 lint_name=lint 18478 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18479 ;; 18480esac 18481 18482# Test for the presence of the program (either guessed by the code or spelled out by the user) 18483if test "x$use_lint" = x"yes" ; then 18484 # Extract the first word of "$lint_name", so it can be a program name with args. 18485set dummy $lint_name; ac_word=$2 18486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18487$as_echo_n "checking for $ac_word... " >&6; } 18488if ${ac_cv_path_LINT+:} false; then : 18489 $as_echo_n "(cached) " >&6 18490else 18491 case $LINT in 18492 [\\/]* | ?:[\\/]*) 18493 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18494 ;; 18495 *) 18496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18497for as_dir in $PATH 18498do 18499 IFS=$as_save_IFS 18500 test -z "$as_dir" && as_dir=. 18501 for ac_exec_ext in '' $ac_executable_extensions; do 18502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18503 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18505 break 2 18506 fi 18507done 18508 done 18509IFS=$as_save_IFS 18510 18511 ;; 18512esac 18513fi 18514LINT=$ac_cv_path_LINT 18515if test -n "$LINT"; then 18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18517$as_echo "$LINT" >&6; } 18518else 18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18520$as_echo "no" >&6; } 18521fi 18522 18523 18524 if test "x$LINT" = "x"; then 18525 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18526 fi 18527elif test "x$use_lint" = x"no" ; then 18528 if test "x$LINT" != "x"; then 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18530$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18531 fi 18532else 18533 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18534fi 18535 18536# User supplied flags override default flags 18537if test "x$LINT_FLAGS" != "x"; then 18538 lint_options=$LINT_FLAGS 18539fi 18540 18541LINT_FLAGS=$lint_options 18542 18543 if test "x$LINT" != x; then 18544 LINT_TRUE= 18545 LINT_FALSE='#' 18546else 18547 LINT_TRUE='#' 18548 LINT_FALSE= 18549fi 18550 18551 18552 18553 18554 18555# Check whether --enable-lint-library was given. 18556if test "${enable_lint_library+set}" = set; then : 18557 enableval=$enable_lint_library; make_lint_lib=$enableval 18558else 18559 make_lint_lib=no 18560fi 18561 18562 18563if test "x$make_lint_lib" = x"yes" ; then 18564 LINTLIB=llib-lXext.ln 18565 if test "x$LINT" = "x"; then 18566 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18567 fi 18568elif test "x$make_lint_lib" != x"no" ; then 18569 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18570fi 18571 18572 18573 if test x$make_lint_lib != xno; then 18574 MAKE_LINT_LIB_TRUE= 18575 MAKE_LINT_LIB_FALSE='#' 18576else 18577 MAKE_LINT_LIB_TRUE='#' 18578 MAKE_LINT_LIB_FALSE= 18579fi 18580 18581 18582 18583 18584ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xext.pc" 18585 18586cat >confcache <<\_ACEOF 18587# This file is a shell script that caches the results of configure 18588# tests run on this system so they can be shared between configure 18589# scripts and configure runs, see configure's option --config-cache. 18590# It is not useful on other systems. If it contains results you don't 18591# want to keep, you may remove or edit it. 18592# 18593# config.status only pays attention to the cache file if you give it 18594# the --recheck option to rerun configure. 18595# 18596# `ac_cv_env_foo' variables (set or unset) will be overridden when 18597# loading this file, other *unset* `ac_cv_foo' will be assigned the 18598# following values. 18599 18600_ACEOF 18601 18602# The following way of writing the cache mishandles newlines in values, 18603# but we know of no workaround that is simple, portable, and efficient. 18604# So, we kill variables containing newlines. 18605# Ultrix sh set writes to stderr and can't be redirected directly, 18606# and sets the high bit in the cache file unless we assign to the vars. 18607( 18608 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18609 eval ac_val=\$$ac_var 18610 case $ac_val in #( 18611 *${as_nl}*) 18612 case $ac_var in #( 18613 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18614$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18615 esac 18616 case $ac_var in #( 18617 _ | IFS | as_nl) ;; #( 18618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18619 *) { eval $ac_var=; unset $ac_var;} ;; 18620 esac ;; 18621 esac 18622 done 18623 18624 (set) 2>&1 | 18625 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18626 *${as_nl}ac_space=\ *) 18627 # `set' does not quote correctly, so add quotes: double-quote 18628 # substitution turns \\\\ into \\, and sed turns \\ into \. 18629 sed -n \ 18630 "s/'/'\\\\''/g; 18631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18632 ;; #( 18633 *) 18634 # `set' quotes correctly as required by POSIX, so do not add quotes. 18635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18636 ;; 18637 esac | 18638 sort 18639) | 18640 sed ' 18641 /^ac_cv_env_/b end 18642 t clear 18643 :clear 18644 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18645 t end 18646 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18647 :end' >>confcache 18648if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18649 if test -w "$cache_file"; then 18650 if test "x$cache_file" != "x/dev/null"; then 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18652$as_echo "$as_me: updating cache $cache_file" >&6;} 18653 if test ! -f "$cache_file" || test -h "$cache_file"; then 18654 cat confcache >"$cache_file" 18655 else 18656 case $cache_file in #( 18657 */* | ?:*) 18658 mv -f confcache "$cache_file"$$ && 18659 mv -f "$cache_file"$$ "$cache_file" ;; #( 18660 *) 18661 mv -f confcache "$cache_file" ;; 18662 esac 18663 fi 18664 fi 18665 else 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18667$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18668 fi 18669fi 18670rm -f confcache 18671 18672test "x$prefix" = xNONE && prefix=$ac_default_prefix 18673# Let make expand exec_prefix. 18674test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18675 18676DEFS=-DHAVE_CONFIG_H 18677 18678ac_libobjs= 18679ac_ltlibobjs= 18680U= 18681for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18682 # 1. Remove the extension, and $U if already installed. 18683 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18684 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18685 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18686 # will be set to the directory where LIBOBJS objects are built. 18687 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18688 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18689done 18690LIBOBJS=$ac_libobjs 18691 18692LTLIBOBJS=$ac_ltlibobjs 18693 18694 18695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18696$as_echo_n "checking that generated files are newer than configure... " >&6; } 18697 if test -n "$am_sleep_pid"; then 18698 # Hide warnings about reused PIDs. 18699 wait $am_sleep_pid 2>/dev/null 18700 fi 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18702$as_echo "done" >&6; } 18703 if test -n "$EXEEXT"; then 18704 am__EXEEXT_TRUE= 18705 am__EXEEXT_FALSE='#' 18706else 18707 am__EXEEXT_TRUE='#' 18708 am__EXEEXT_FALSE= 18709fi 18710 18711if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18712 as_fn_error $? "conditional \"AMDEP\" was never defined. 18713Usually this means the macro was only invoked conditionally." "$LINENO" 5 18714fi 18715if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18716 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18717Usually this means the macro was only invoked conditionally." "$LINENO" 5 18718fi 18719if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 18720 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 18721Usually this means the macro was only invoked conditionally." "$LINENO" 5 18722fi 18723if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18724 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18725Usually this means the macro was only invoked conditionally." "$LINENO" 5 18726fi 18727if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18728 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18729Usually this means the macro was only invoked conditionally." "$LINENO" 5 18730fi 18731if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18732 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18733Usually this means the macro was only invoked conditionally." "$LINENO" 5 18734fi 18735if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18736 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18737Usually this means the macro was only invoked conditionally." "$LINENO" 5 18738fi 18739if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18740 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18741Usually this means the macro was only invoked conditionally." "$LINENO" 5 18742fi 18743if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18744 as_fn_error $? "conditional \"LINT\" was never defined. 18745Usually this means the macro was only invoked conditionally." "$LINENO" 5 18746fi 18747if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18748 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18749Usually this means the macro was only invoked conditionally." "$LINENO" 5 18750fi 18751 18752: "${CONFIG_STATUS=./config.status}" 18753ac_write_fail=0 18754ac_clean_files_save=$ac_clean_files 18755ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18756{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18757$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18758as_write_fail=0 18759cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18760#! $SHELL 18761# Generated by $as_me. 18762# Run this file to recreate the current configuration. 18763# Compiler output produced by configure, useful for debugging 18764# configure, is in config.log if it exists. 18765 18766debug=false 18767ac_cs_recheck=false 18768ac_cs_silent=false 18769 18770SHELL=\${CONFIG_SHELL-$SHELL} 18771export SHELL 18772_ASEOF 18773cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18774## -------------------- ## 18775## M4sh Initialization. ## 18776## -------------------- ## 18777 18778# Be more Bourne compatible 18779DUALCASE=1; export DUALCASE # for MKS sh 18780if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18781 emulate sh 18782 NULLCMD=: 18783 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18784 # is contrary to our usage. Disable this feature. 18785 alias -g '${1+"$@"}'='"$@"' 18786 setopt NO_GLOB_SUBST 18787else 18788 case `(set -o) 2>/dev/null` in #( 18789 *posix*) : 18790 set -o posix ;; #( 18791 *) : 18792 ;; 18793esac 18794fi 18795 18796 18797as_nl=' 18798' 18799export as_nl 18800# Printing a long string crashes Solaris 7 /usr/bin/printf. 18801as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18802as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18803as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18804# Prefer a ksh shell builtin over an external printf program on Solaris, 18805# but without wasting forks for bash or zsh. 18806if test -z "$BASH_VERSION$ZSH_VERSION" \ 18807 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18808 as_echo='print -r --' 18809 as_echo_n='print -rn --' 18810elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18811 as_echo='printf %s\n' 18812 as_echo_n='printf %s' 18813else 18814 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18815 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18816 as_echo_n='/usr/ucb/echo -n' 18817 else 18818 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18819 as_echo_n_body='eval 18820 arg=$1; 18821 case $arg in #( 18822 *"$as_nl"*) 18823 expr "X$arg" : "X\\(.*\\)$as_nl"; 18824 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18825 esac; 18826 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18827 ' 18828 export as_echo_n_body 18829 as_echo_n='sh -c $as_echo_n_body as_echo' 18830 fi 18831 export as_echo_body 18832 as_echo='sh -c $as_echo_body as_echo' 18833fi 18834 18835# The user is always right. 18836if test "${PATH_SEPARATOR+set}" != set; then 18837 PATH_SEPARATOR=: 18838 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18839 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18840 PATH_SEPARATOR=';' 18841 } 18842fi 18843 18844 18845# IFS 18846# We need space, tab and new line, in precisely that order. Quoting is 18847# there to prevent editors from complaining about space-tab. 18848# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18849# splitting by setting IFS to empty value.) 18850IFS=" "" $as_nl" 18851 18852# Find who we are. Look in the path if we contain no directory separator. 18853as_myself= 18854case $0 in #(( 18855 *[\\/]* ) as_myself=$0 ;; 18856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18857for as_dir in $PATH 18858do 18859 IFS=$as_save_IFS 18860 test -z "$as_dir" && as_dir=. 18861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18862 done 18863IFS=$as_save_IFS 18864 18865 ;; 18866esac 18867# We did not find ourselves, most probably we were run as `sh COMMAND' 18868# in which case we are not to be found in the path. 18869if test "x$as_myself" = x; then 18870 as_myself=$0 18871fi 18872if test ! -f "$as_myself"; then 18873 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18874 exit 1 18875fi 18876 18877# Unset variables that we do not need and which cause bugs (e.g. in 18878# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18879# suppresses any "Segmentation fault" message there. '((' could 18880# trigger a bug in pdksh 5.2.14. 18881for as_var in BASH_ENV ENV MAIL MAILPATH 18882do eval test x\${$as_var+set} = xset \ 18883 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18884done 18885PS1='$ ' 18886PS2='> ' 18887PS4='+ ' 18888 18889# NLS nuisances. 18890LC_ALL=C 18891export LC_ALL 18892LANGUAGE=C 18893export LANGUAGE 18894 18895# CDPATH. 18896(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18897 18898 18899# as_fn_error STATUS ERROR [LINENO LOG_FD] 18900# ---------------------------------------- 18901# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18902# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18903# script with STATUS, using 1 if that was 0. 18904as_fn_error () 18905{ 18906 as_status=$1; test $as_status -eq 0 && as_status=1 18907 if test "$4"; then 18908 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18909 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18910 fi 18911 $as_echo "$as_me: error: $2" >&2 18912 as_fn_exit $as_status 18913} # as_fn_error 18914 18915 18916# as_fn_set_status STATUS 18917# ----------------------- 18918# Set $? to STATUS, without forking. 18919as_fn_set_status () 18920{ 18921 return $1 18922} # as_fn_set_status 18923 18924# as_fn_exit STATUS 18925# ----------------- 18926# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18927as_fn_exit () 18928{ 18929 set +e 18930 as_fn_set_status $1 18931 exit $1 18932} # as_fn_exit 18933 18934# as_fn_unset VAR 18935# --------------- 18936# Portably unset VAR. 18937as_fn_unset () 18938{ 18939 { eval $1=; unset $1;} 18940} 18941as_unset=as_fn_unset 18942# as_fn_append VAR VALUE 18943# ---------------------- 18944# Append the text in VALUE to the end of the definition contained in VAR. Take 18945# advantage of any shell optimizations that allow amortized linear growth over 18946# repeated appends, instead of the typical quadratic growth present in naive 18947# implementations. 18948if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18949 eval 'as_fn_append () 18950 { 18951 eval $1+=\$2 18952 }' 18953else 18954 as_fn_append () 18955 { 18956 eval $1=\$$1\$2 18957 } 18958fi # as_fn_append 18959 18960# as_fn_arith ARG... 18961# ------------------ 18962# Perform arithmetic evaluation on the ARGs, and store the result in the 18963# global $as_val. Take advantage of shells that can avoid forks. The arguments 18964# must be portable across $(()) and expr. 18965if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18966 eval 'as_fn_arith () 18967 { 18968 as_val=$(( $* )) 18969 }' 18970else 18971 as_fn_arith () 18972 { 18973 as_val=`expr "$@" || test $? -eq 1` 18974 } 18975fi # as_fn_arith 18976 18977 18978if expr a : '\(a\)' >/dev/null 2>&1 && 18979 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18980 as_expr=expr 18981else 18982 as_expr=false 18983fi 18984 18985if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18986 as_basename=basename 18987else 18988 as_basename=false 18989fi 18990 18991if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18992 as_dirname=dirname 18993else 18994 as_dirname=false 18995fi 18996 18997as_me=`$as_basename -- "$0" || 18998$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18999 X"$0" : 'X\(//\)$' \| \ 19000 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19001$as_echo X/"$0" | 19002 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19003 s//\1/ 19004 q 19005 } 19006 /^X\/\(\/\/\)$/{ 19007 s//\1/ 19008 q 19009 } 19010 /^X\/\(\/\).*/{ 19011 s//\1/ 19012 q 19013 } 19014 s/.*/./; q'` 19015 19016# Avoid depending upon Character Ranges. 19017as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19018as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19019as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19020as_cr_digits='0123456789' 19021as_cr_alnum=$as_cr_Letters$as_cr_digits 19022 19023ECHO_C= ECHO_N= ECHO_T= 19024case `echo -n x` in #((((( 19025-n*) 19026 case `echo 'xy\c'` in 19027 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19028 xy) ECHO_C='\c';; 19029 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19030 ECHO_T=' ';; 19031 esac;; 19032*) 19033 ECHO_N='-n';; 19034esac 19035 19036rm -f conf$$ conf$$.exe conf$$.file 19037if test -d conf$$.dir; then 19038 rm -f conf$$.dir/conf$$.file 19039else 19040 rm -f conf$$.dir 19041 mkdir conf$$.dir 2>/dev/null 19042fi 19043if (echo >conf$$.file) 2>/dev/null; then 19044 if ln -s conf$$.file conf$$ 2>/dev/null; then 19045 as_ln_s='ln -s' 19046 # ... but there are two gotchas: 19047 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19048 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19049 # In both cases, we have to default to `cp -pR'. 19050 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19051 as_ln_s='cp -pR' 19052 elif ln conf$$.file conf$$ 2>/dev/null; then 19053 as_ln_s=ln 19054 else 19055 as_ln_s='cp -pR' 19056 fi 19057else 19058 as_ln_s='cp -pR' 19059fi 19060rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19061rmdir conf$$.dir 2>/dev/null 19062 19063 19064# as_fn_mkdir_p 19065# ------------- 19066# Create "$as_dir" as a directory, including parents if necessary. 19067as_fn_mkdir_p () 19068{ 19069 19070 case $as_dir in #( 19071 -*) as_dir=./$as_dir;; 19072 esac 19073 test -d "$as_dir" || eval $as_mkdir_p || { 19074 as_dirs= 19075 while :; do 19076 case $as_dir in #( 19077 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19078 *) as_qdir=$as_dir;; 19079 esac 19080 as_dirs="'$as_qdir' $as_dirs" 19081 as_dir=`$as_dirname -- "$as_dir" || 19082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19083 X"$as_dir" : 'X\(//\)[^/]' \| \ 19084 X"$as_dir" : 'X\(//\)$' \| \ 19085 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19086$as_echo X"$as_dir" | 19087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19088 s//\1/ 19089 q 19090 } 19091 /^X\(\/\/\)[^/].*/{ 19092 s//\1/ 19093 q 19094 } 19095 /^X\(\/\/\)$/{ 19096 s//\1/ 19097 q 19098 } 19099 /^X\(\/\).*/{ 19100 s//\1/ 19101 q 19102 } 19103 s/.*/./; q'` 19104 test -d "$as_dir" && break 19105 done 19106 test -z "$as_dirs" || eval "mkdir $as_dirs" 19107 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19108 19109 19110} # as_fn_mkdir_p 19111if mkdir -p . 2>/dev/null; then 19112 as_mkdir_p='mkdir -p "$as_dir"' 19113else 19114 test -d ./-p && rmdir ./-p 19115 as_mkdir_p=false 19116fi 19117 19118 19119# as_fn_executable_p FILE 19120# ----------------------- 19121# Test if FILE is an executable regular file. 19122as_fn_executable_p () 19123{ 19124 test -f "$1" && test -x "$1" 19125} # as_fn_executable_p 19126as_test_x='test -x' 19127as_executable_p=as_fn_executable_p 19128 19129# Sed expression to map a string onto a valid CPP name. 19130as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19131 19132# Sed expression to map a string onto a valid variable name. 19133as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19134 19135 19136exec 6>&1 19137## ----------------------------------- ## 19138## Main body of $CONFIG_STATUS script. ## 19139## ----------------------------------- ## 19140_ASEOF 19141test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19142 19143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19144# Save the log message, to keep $0 and so on meaningful, and to 19145# report actual input values of CONFIG_FILES etc. instead of their 19146# values after options handling. 19147ac_log=" 19148This file was extended by libXext $as_me 1.3.3, which was 19149generated by GNU Autoconf 2.69. Invocation command line was 19150 19151 CONFIG_FILES = $CONFIG_FILES 19152 CONFIG_HEADERS = $CONFIG_HEADERS 19153 CONFIG_LINKS = $CONFIG_LINKS 19154 CONFIG_COMMANDS = $CONFIG_COMMANDS 19155 $ $0 $@ 19156 19157on `(hostname || uname -n) 2>/dev/null | sed 1q` 19158" 19159 19160_ACEOF 19161 19162case $ac_config_files in *" 19163"*) set x $ac_config_files; shift; ac_config_files=$*;; 19164esac 19165 19166case $ac_config_headers in *" 19167"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19168esac 19169 19170 19171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19172# Files that config.status was made for. 19173config_files="$ac_config_files" 19174config_headers="$ac_config_headers" 19175config_commands="$ac_config_commands" 19176 19177_ACEOF 19178 19179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19180ac_cs_usage="\ 19181\`$as_me' instantiates files and other configuration actions 19182from templates according to the current configuration. Unless the files 19183and actions are specified as TAGs, all are instantiated by default. 19184 19185Usage: $0 [OPTION]... [TAG]... 19186 19187 -h, --help print this help, then exit 19188 -V, --version print version number and configuration settings, then exit 19189 --config print configuration, then exit 19190 -q, --quiet, --silent 19191 do not print progress messages 19192 -d, --debug don't remove temporary files 19193 --recheck update $as_me by reconfiguring in the same conditions 19194 --file=FILE[:TEMPLATE] 19195 instantiate the configuration file FILE 19196 --header=FILE[:TEMPLATE] 19197 instantiate the configuration header FILE 19198 19199Configuration files: 19200$config_files 19201 19202Configuration headers: 19203$config_headers 19204 19205Configuration commands: 19206$config_commands 19207 19208Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19209 19210_ACEOF 19211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19212ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19213ac_cs_version="\\ 19214libXext config.status 1.3.3 19215configured by $0, generated by GNU Autoconf 2.69, 19216 with options \\"\$ac_cs_config\\" 19217 19218Copyright (C) 2012 Free Software Foundation, Inc. 19219This config.status script is free software; the Free Software Foundation 19220gives unlimited permission to copy, distribute and modify it." 19221 19222ac_pwd='$ac_pwd' 19223srcdir='$srcdir' 19224INSTALL='$INSTALL' 19225MKDIR_P='$MKDIR_P' 19226AWK='$AWK' 19227test -n "\$AWK" || AWK=awk 19228_ACEOF 19229 19230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19231# The default lists apply if the user does not specify any file. 19232ac_need_defaults=: 19233while test $# != 0 19234do 19235 case $1 in 19236 --*=?*) 19237 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19238 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19239 ac_shift=: 19240 ;; 19241 --*=) 19242 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19243 ac_optarg= 19244 ac_shift=: 19245 ;; 19246 *) 19247 ac_option=$1 19248 ac_optarg=$2 19249 ac_shift=shift 19250 ;; 19251 esac 19252 19253 case $ac_option in 19254 # Handling of the options. 19255 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19256 ac_cs_recheck=: ;; 19257 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19258 $as_echo "$ac_cs_version"; exit ;; 19259 --config | --confi | --conf | --con | --co | --c ) 19260 $as_echo "$ac_cs_config"; exit ;; 19261 --debug | --debu | --deb | --de | --d | -d ) 19262 debug=: ;; 19263 --file | --fil | --fi | --f ) 19264 $ac_shift 19265 case $ac_optarg in 19266 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19267 '') as_fn_error $? "missing file argument" ;; 19268 esac 19269 as_fn_append CONFIG_FILES " '$ac_optarg'" 19270 ac_need_defaults=false;; 19271 --header | --heade | --head | --hea ) 19272 $ac_shift 19273 case $ac_optarg in 19274 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19275 esac 19276 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19277 ac_need_defaults=false;; 19278 --he | --h) 19279 # Conflict between --help and --header 19280 as_fn_error $? "ambiguous option: \`$1' 19281Try \`$0 --help' for more information.";; 19282 --help | --hel | -h ) 19283 $as_echo "$ac_cs_usage"; exit ;; 19284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19285 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19286 ac_cs_silent=: ;; 19287 19288 # This is an error. 19289 -*) as_fn_error $? "unrecognized option: \`$1' 19290Try \`$0 --help' for more information." ;; 19291 19292 *) as_fn_append ac_config_targets " $1" 19293 ac_need_defaults=false ;; 19294 19295 esac 19296 shift 19297done 19298 19299ac_configure_extra_args= 19300 19301if $ac_cs_silent; then 19302 exec 6>/dev/null 19303 ac_configure_extra_args="$ac_configure_extra_args --silent" 19304fi 19305 19306_ACEOF 19307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19308if \$ac_cs_recheck; then 19309 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19310 shift 19311 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19312 CONFIG_SHELL='$SHELL' 19313 export CONFIG_SHELL 19314 exec "\$@" 19315fi 19316 19317_ACEOF 19318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19319exec 5>>config.log 19320{ 19321 echo 19322 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19323## Running $as_me. ## 19324_ASBOX 19325 $as_echo "$ac_log" 19326} >&5 19327 19328_ACEOF 19329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19330# 19331# INIT-COMMANDS 19332# 19333AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19334 19335 19336# The HP-UX ksh and POSIX shell print the target directory to stdout 19337# if CDPATH is set. 19338(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19339 19340sed_quote_subst='$sed_quote_subst' 19341double_quote_subst='$double_quote_subst' 19342delay_variable_subst='$delay_variable_subst' 19343macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19344macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19345enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19346enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19347pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19348enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19349SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19350ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19351PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19352host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19353host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19354host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19355build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19356build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19357build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19358SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19359Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19360GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19361EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19362FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19363LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19364NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19365LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19366max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19367ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19368exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19369lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19370lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19371lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19372lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19373lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19374reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19375reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19376OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19377deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19378file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19379file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19380want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19381DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19382sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19383AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19384AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19385archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19386STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19387RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19388old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19389old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19390old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19391lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19392CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19393CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19394compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19395GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19396lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19397lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19398lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19399lt_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"`' 19400nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19401lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19402objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19403MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19404lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19405lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19406lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19407lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19408lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19409need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19410MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19411DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19412NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19413LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19414OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19415OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19416libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19417shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19418extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19419archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19420enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19421export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19422whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19423compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19424old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19425old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19426archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19427archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19428module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19429module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19430with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19431allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19432no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19433hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19434hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19435hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19436hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19437hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19438hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19439hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19440inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19441link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19442always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19443export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19444exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19445include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19446prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19447postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19448file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19449variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19450need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19451need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19452version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19453runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19454shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19455shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19456libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19457library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19458soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19459install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19460postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19461postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19462finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19463finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19464hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19465sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19466sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19467hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19468enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19469enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19470enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19471old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19472striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19473 19474LTCC='$LTCC' 19475LTCFLAGS='$LTCFLAGS' 19476compiler='$compiler_DEFAULT' 19477 19478# A function that is used when there is no print builtin or printf. 19479func_fallback_echo () 19480{ 19481 eval 'cat <<_LTECHO_EOF 19482\$1 19483_LTECHO_EOF' 19484} 19485 19486# Quote evaled strings. 19487for var in SHELL \ 19488ECHO \ 19489PATH_SEPARATOR \ 19490SED \ 19491GREP \ 19492EGREP \ 19493FGREP \ 19494LD \ 19495NM \ 19496LN_S \ 19497lt_SP2NL \ 19498lt_NL2SP \ 19499reload_flag \ 19500OBJDUMP \ 19501deplibs_check_method \ 19502file_magic_cmd \ 19503file_magic_glob \ 19504want_nocaseglob \ 19505DLLTOOL \ 19506sharedlib_from_linklib_cmd \ 19507AR \ 19508AR_FLAGS \ 19509archiver_list_spec \ 19510STRIP \ 19511RANLIB \ 19512CC \ 19513CFLAGS \ 19514compiler \ 19515lt_cv_sys_global_symbol_pipe \ 19516lt_cv_sys_global_symbol_to_cdecl \ 19517lt_cv_sys_global_symbol_to_c_name_address \ 19518lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19519nm_file_list_spec \ 19520lt_prog_compiler_no_builtin_flag \ 19521lt_prog_compiler_pic \ 19522lt_prog_compiler_wl \ 19523lt_prog_compiler_static \ 19524lt_cv_prog_compiler_c_o \ 19525need_locks \ 19526MANIFEST_TOOL \ 19527DSYMUTIL \ 19528NMEDIT \ 19529LIPO \ 19530OTOOL \ 19531OTOOL64 \ 19532shrext_cmds \ 19533export_dynamic_flag_spec \ 19534whole_archive_flag_spec \ 19535compiler_needs_object \ 19536with_gnu_ld \ 19537allow_undefined_flag \ 19538no_undefined_flag \ 19539hardcode_libdir_flag_spec \ 19540hardcode_libdir_separator \ 19541exclude_expsyms \ 19542include_expsyms \ 19543file_list_spec \ 19544variables_saved_for_relink \ 19545libname_spec \ 19546library_names_spec \ 19547soname_spec \ 19548install_override_mode \ 19549finish_eval \ 19550old_striplib \ 19551striplib; do 19552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19553 *[\\\\\\\`\\"\\\$]*) 19554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19555 ;; 19556 *) 19557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19558 ;; 19559 esac 19560done 19561 19562# Double-quote double-evaled strings. 19563for var in reload_cmds \ 19564old_postinstall_cmds \ 19565old_postuninstall_cmds \ 19566old_archive_cmds \ 19567extract_expsyms_cmds \ 19568old_archive_from_new_cmds \ 19569old_archive_from_expsyms_cmds \ 19570archive_cmds \ 19571archive_expsym_cmds \ 19572module_cmds \ 19573module_expsym_cmds \ 19574export_symbols_cmds \ 19575prelink_cmds \ 19576postlink_cmds \ 19577postinstall_cmds \ 19578postuninstall_cmds \ 19579finish_cmds \ 19580sys_lib_search_path_spec \ 19581sys_lib_dlsearch_path_spec; do 19582 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19583 *[\\\\\\\`\\"\\\$]*) 19584 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19585 ;; 19586 *) 19587 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19588 ;; 19589 esac 19590done 19591 19592ac_aux_dir='$ac_aux_dir' 19593xsi_shell='$xsi_shell' 19594lt_shell_append='$lt_shell_append' 19595 19596# See if we are running on zsh, and set the options which allow our 19597# commands through without removal of \ escapes INIT. 19598if test -n "\${ZSH_VERSION+set}" ; then 19599 setopt NO_GLOB_SUBST 19600fi 19601 19602 19603 PACKAGE='$PACKAGE' 19604 VERSION='$VERSION' 19605 TIMESTAMP='$TIMESTAMP' 19606 RM='$RM' 19607 ofile='$ofile' 19608 19609 19610 19611 19612_ACEOF 19613 19614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19615 19616# Handling of arguments. 19617for ac_config_target in $ac_config_targets 19618do 19619 case $ac_config_target in 19620 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19621 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19622 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19623 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19624 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19625 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19626 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 19627 "xext.pc") CONFIG_FILES="$CONFIG_FILES xext.pc" ;; 19628 19629 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19630 esac 19631done 19632 19633 19634# If the user did not use the arguments to specify the items to instantiate, 19635# then the envvar interface is used. Set only those that are not. 19636# We use the long form for the default assignment because of an extremely 19637# bizarre bug on SunOS 4.1.3. 19638if $ac_need_defaults; then 19639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19640 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19641 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19642fi 19643 19644# Have a temporary directory for convenience. Make it in the build tree 19645# simply because there is no reason against having it here, and in addition, 19646# creating and moving files from /tmp can sometimes cause problems. 19647# Hook for its removal unless debugging. 19648# Note that there is a small window in which the directory will not be cleaned: 19649# after its creation but before its name has been assigned to `$tmp'. 19650$debug || 19651{ 19652 tmp= ac_tmp= 19653 trap 'exit_status=$? 19654 : "${ac_tmp:=$tmp}" 19655 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19656' 0 19657 trap 'as_fn_exit 1' 1 2 13 15 19658} 19659# Create a (secure) tmp directory for tmp files. 19660 19661{ 19662 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19663 test -d "$tmp" 19664} || 19665{ 19666 tmp=./conf$$-$RANDOM 19667 (umask 077 && mkdir "$tmp") 19668} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19669ac_tmp=$tmp 19670 19671# Set up the scripts for CONFIG_FILES section. 19672# No need to generate them if there are no CONFIG_FILES. 19673# This happens for instance with `./config.status config.h'. 19674if test -n "$CONFIG_FILES"; then 19675 19676 19677ac_cr=`echo X | tr X '\015'` 19678# On cygwin, bash can eat \r inside `` if the user requested igncr. 19679# But we know of no other shell where ac_cr would be empty at this 19680# point, so we can use a bashism as a fallback. 19681if test "x$ac_cr" = x; then 19682 eval ac_cr=\$\'\\r\' 19683fi 19684ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19685if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19686 ac_cs_awk_cr='\\r' 19687else 19688 ac_cs_awk_cr=$ac_cr 19689fi 19690 19691echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19692_ACEOF 19693 19694 19695{ 19696 echo "cat >conf$$subs.awk <<_ACEOF" && 19697 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19698 echo "_ACEOF" 19699} >conf$$subs.sh || 19700 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19701ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19702ac_delim='%!_!# ' 19703for ac_last_try in false false false false false :; do 19704 . ./conf$$subs.sh || 19705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19706 19707 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19708 if test $ac_delim_n = $ac_delim_num; then 19709 break 19710 elif $ac_last_try; then 19711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19712 else 19713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19714 fi 19715done 19716rm -f conf$$subs.sh 19717 19718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19719cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19720_ACEOF 19721sed -n ' 19722h 19723s/^/S["/; s/!.*/"]=/ 19724p 19725g 19726s/^[^!]*!// 19727:repl 19728t repl 19729s/'"$ac_delim"'$// 19730t delim 19731:nl 19732h 19733s/\(.\{148\}\)..*/\1/ 19734t more1 19735s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19736p 19737n 19738b repl 19739:more1 19740s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19741p 19742g 19743s/.\{148\}// 19744t nl 19745:delim 19746h 19747s/\(.\{148\}\)..*/\1/ 19748t more2 19749s/["\\]/\\&/g; s/^/"/; s/$/"/ 19750p 19751b 19752:more2 19753s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19754p 19755g 19756s/.\{148\}// 19757t delim 19758' <conf$$subs.awk | sed ' 19759/^[^""]/{ 19760 N 19761 s/\n// 19762} 19763' >>$CONFIG_STATUS || ac_write_fail=1 19764rm -f conf$$subs.awk 19765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19766_ACAWK 19767cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19768 for (key in S) S_is_set[key] = 1 19769 FS = "" 19770 19771} 19772{ 19773 line = $ 0 19774 nfields = split(line, field, "@") 19775 substed = 0 19776 len = length(field[1]) 19777 for (i = 2; i < nfields; i++) { 19778 key = field[i] 19779 keylen = length(key) 19780 if (S_is_set[key]) { 19781 value = S[key] 19782 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19783 len += length(value) + length(field[++i]) 19784 substed = 1 19785 } else 19786 len += 1 + keylen 19787 } 19788 19789 print line 19790} 19791 19792_ACAWK 19793_ACEOF 19794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19795if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19796 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19797else 19798 cat 19799fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19800 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19801_ACEOF 19802 19803# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19804# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19805# trailing colons and then remove the whole line if VPATH becomes empty 19806# (actually we leave an empty line to preserve line numbers). 19807if test "x$srcdir" = x.; then 19808 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19809h 19810s/// 19811s/^/:/ 19812s/[ ]*$/:/ 19813s/:\$(srcdir):/:/g 19814s/:\${srcdir}:/:/g 19815s/:@srcdir@:/:/g 19816s/^:*// 19817s/:*$// 19818x 19819s/\(=[ ]*\).*/\1/ 19820G 19821s/\n// 19822s/^[^=]*=[ ]*$// 19823}' 19824fi 19825 19826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19827fi # test -n "$CONFIG_FILES" 19828 19829# Set up the scripts for CONFIG_HEADERS section. 19830# No need to generate them if there are no CONFIG_HEADERS. 19831# This happens for instance with `./config.status Makefile'. 19832if test -n "$CONFIG_HEADERS"; then 19833cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19834BEGIN { 19835_ACEOF 19836 19837# Transform confdefs.h into an awk script `defines.awk', embedded as 19838# here-document in config.status, that substitutes the proper values into 19839# config.h.in to produce config.h. 19840 19841# Create a delimiter string that does not exist in confdefs.h, to ease 19842# handling of long lines. 19843ac_delim='%!_!# ' 19844for ac_last_try in false false :; do 19845 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19846 if test -z "$ac_tt"; then 19847 break 19848 elif $ac_last_try; then 19849 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19850 else 19851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19852 fi 19853done 19854 19855# For the awk script, D is an array of macro values keyed by name, 19856# likewise P contains macro parameters if any. Preserve backslash 19857# newline sequences. 19858 19859ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19860sed -n ' 19861s/.\{148\}/&'"$ac_delim"'/g 19862t rset 19863:rset 19864s/^[ ]*#[ ]*define[ ][ ]*/ / 19865t def 19866d 19867:def 19868s/\\$// 19869t bsnl 19870s/["\\]/\\&/g 19871s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19872D["\1"]=" \3"/p 19873s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19874d 19875:bsnl 19876s/["\\]/\\&/g 19877s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19878D["\1"]=" \3\\\\\\n"\\/p 19879t cont 19880s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19881t cont 19882d 19883:cont 19884n 19885s/.\{148\}/&'"$ac_delim"'/g 19886t clear 19887:clear 19888s/\\$// 19889t bsnlc 19890s/["\\]/\\&/g; s/^/"/; s/$/"/p 19891d 19892:bsnlc 19893s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19894b cont 19895' <confdefs.h | sed ' 19896s/'"$ac_delim"'/"\\\ 19897"/g' >>$CONFIG_STATUS || ac_write_fail=1 19898 19899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19900 for (key in D) D_is_set[key] = 1 19901 FS = "" 19902} 19903/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19904 line = \$ 0 19905 split(line, arg, " ") 19906 if (arg[1] == "#") { 19907 defundef = arg[2] 19908 mac1 = arg[3] 19909 } else { 19910 defundef = substr(arg[1], 2) 19911 mac1 = arg[2] 19912 } 19913 split(mac1, mac2, "(") #) 19914 macro = mac2[1] 19915 prefix = substr(line, 1, index(line, defundef) - 1) 19916 if (D_is_set[macro]) { 19917 # Preserve the white space surrounding the "#". 19918 print prefix "define", macro P[macro] D[macro] 19919 next 19920 } else { 19921 # Replace #undef with comments. This is necessary, for example, 19922 # in the case of _POSIX_SOURCE, which is predefined and required 19923 # on some systems where configure will not decide to define it. 19924 if (defundef == "undef") { 19925 print "/*", prefix defundef, macro, "*/" 19926 next 19927 } 19928 } 19929} 19930{ print } 19931_ACAWK 19932_ACEOF 19933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19934 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19935fi # test -n "$CONFIG_HEADERS" 19936 19937 19938eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19939shift 19940for ac_tag 19941do 19942 case $ac_tag in 19943 :[FHLC]) ac_mode=$ac_tag; continue;; 19944 esac 19945 case $ac_mode$ac_tag in 19946 :[FHL]*:*);; 19947 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19948 :[FH]-) ac_tag=-:-;; 19949 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19950 esac 19951 ac_save_IFS=$IFS 19952 IFS=: 19953 set x $ac_tag 19954 IFS=$ac_save_IFS 19955 shift 19956 ac_file=$1 19957 shift 19958 19959 case $ac_mode in 19960 :L) ac_source=$1;; 19961 :[FH]) 19962 ac_file_inputs= 19963 for ac_f 19964 do 19965 case $ac_f in 19966 -) ac_f="$ac_tmp/stdin";; 19967 *) # Look for the file first in the build tree, then in the source tree 19968 # (if the path is not absolute). The absolute path cannot be DOS-style, 19969 # because $ac_f cannot contain `:'. 19970 test -f "$ac_f" || 19971 case $ac_f in 19972 [\\/$]*) false;; 19973 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19974 esac || 19975 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19976 esac 19977 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19978 as_fn_append ac_file_inputs " '$ac_f'" 19979 done 19980 19981 # Let's still pretend it is `configure' which instantiates (i.e., don't 19982 # use $as_me), people would be surprised to read: 19983 # /* config.h. Generated by config.status. */ 19984 configure_input='Generated from '` 19985 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19986 `' by configure.' 19987 if test x"$ac_file" != x-; then 19988 configure_input="$ac_file. $configure_input" 19989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19990$as_echo "$as_me: creating $ac_file" >&6;} 19991 fi 19992 # Neutralize special characters interpreted by sed in replacement strings. 19993 case $configure_input in #( 19994 *\&* | *\|* | *\\* ) 19995 ac_sed_conf_input=`$as_echo "$configure_input" | 19996 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19997 *) ac_sed_conf_input=$configure_input;; 19998 esac 19999 20000 case $ac_tag in 20001 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20003 esac 20004 ;; 20005 esac 20006 20007 ac_dir=`$as_dirname -- "$ac_file" || 20008$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20009 X"$ac_file" : 'X\(//\)[^/]' \| \ 20010 X"$ac_file" : 'X\(//\)$' \| \ 20011 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20012$as_echo X"$ac_file" | 20013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20014 s//\1/ 20015 q 20016 } 20017 /^X\(\/\/\)[^/].*/{ 20018 s//\1/ 20019 q 20020 } 20021 /^X\(\/\/\)$/{ 20022 s//\1/ 20023 q 20024 } 20025 /^X\(\/\).*/{ 20026 s//\1/ 20027 q 20028 } 20029 s/.*/./; q'` 20030 as_dir="$ac_dir"; as_fn_mkdir_p 20031 ac_builddir=. 20032 20033case "$ac_dir" in 20034.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20035*) 20036 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20037 # A ".." for each directory in $ac_dir_suffix. 20038 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20039 case $ac_top_builddir_sub in 20040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20042 esac ;; 20043esac 20044ac_abs_top_builddir=$ac_pwd 20045ac_abs_builddir=$ac_pwd$ac_dir_suffix 20046# for backward compatibility: 20047ac_top_builddir=$ac_top_build_prefix 20048 20049case $srcdir in 20050 .) # We are building in place. 20051 ac_srcdir=. 20052 ac_top_srcdir=$ac_top_builddir_sub 20053 ac_abs_top_srcdir=$ac_pwd ;; 20054 [\\/]* | ?:[\\/]* ) # Absolute name. 20055 ac_srcdir=$srcdir$ac_dir_suffix; 20056 ac_top_srcdir=$srcdir 20057 ac_abs_top_srcdir=$srcdir ;; 20058 *) # Relative name. 20059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20060 ac_top_srcdir=$ac_top_build_prefix$srcdir 20061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20062esac 20063ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20064 20065 20066 case $ac_mode in 20067 :F) 20068 # 20069 # CONFIG_FILE 20070 # 20071 20072 case $INSTALL in 20073 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20074 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20075 esac 20076 ac_MKDIR_P=$MKDIR_P 20077 case $MKDIR_P in 20078 [\\/$]* | ?:[\\/]* ) ;; 20079 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20080 esac 20081_ACEOF 20082 20083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20084# If the template does not know about datarootdir, expand it. 20085# FIXME: This hack should be removed a few years after 2.60. 20086ac_datarootdir_hack=; ac_datarootdir_seen= 20087ac_sed_dataroot=' 20088/datarootdir/ { 20089 p 20090 q 20091} 20092/@datadir@/p 20093/@docdir@/p 20094/@infodir@/p 20095/@localedir@/p 20096/@mandir@/p' 20097case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20098*datarootdir*) ac_datarootdir_seen=yes;; 20099*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20101$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20102_ACEOF 20103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20104 ac_datarootdir_hack=' 20105 s&@datadir@&$datadir&g 20106 s&@docdir@&$docdir&g 20107 s&@infodir@&$infodir&g 20108 s&@localedir@&$localedir&g 20109 s&@mandir@&$mandir&g 20110 s&\\\${datarootdir}&$datarootdir&g' ;; 20111esac 20112_ACEOF 20113 20114# Neutralize VPATH when `$srcdir' = `.'. 20115# Shell code in configure.ac might set extrasub. 20116# FIXME: do we really want to maintain this feature? 20117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20118ac_sed_extra="$ac_vpsub 20119$extrasub 20120_ACEOF 20121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20122:t 20123/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20124s|@configure_input@|$ac_sed_conf_input|;t t 20125s&@top_builddir@&$ac_top_builddir_sub&;t t 20126s&@top_build_prefix@&$ac_top_build_prefix&;t t 20127s&@srcdir@&$ac_srcdir&;t t 20128s&@abs_srcdir@&$ac_abs_srcdir&;t t 20129s&@top_srcdir@&$ac_top_srcdir&;t t 20130s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20131s&@builddir@&$ac_builddir&;t t 20132s&@abs_builddir@&$ac_abs_builddir&;t t 20133s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20134s&@INSTALL@&$ac_INSTALL&;t t 20135s&@MKDIR_P@&$ac_MKDIR_P&;t t 20136$ac_datarootdir_hack 20137" 20138eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20139 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20140 20141test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20142 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20143 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20144 "$ac_tmp/out"`; test -z "$ac_out"; } && 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20146which seems to be undefined. Please make sure it is defined" >&5 20147$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20148which seems to be undefined. Please make sure it is defined" >&2;} 20149 20150 rm -f "$ac_tmp/stdin" 20151 case $ac_file in 20152 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20153 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20154 esac \ 20155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20156 ;; 20157 :H) 20158 # 20159 # CONFIG_HEADER 20160 # 20161 if test x"$ac_file" != x-; then 20162 { 20163 $as_echo "/* $configure_input */" \ 20164 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20165 } >"$ac_tmp/config.h" \ 20166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20167 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20168 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20169$as_echo "$as_me: $ac_file is unchanged" >&6;} 20170 else 20171 rm -f "$ac_file" 20172 mv "$ac_tmp/config.h" "$ac_file" \ 20173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20174 fi 20175 else 20176 $as_echo "/* $configure_input */" \ 20177 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20178 || as_fn_error $? "could not create -" "$LINENO" 5 20179 fi 20180# Compute "$ac_file"'s index in $config_headers. 20181_am_arg="$ac_file" 20182_am_stamp_count=1 20183for _am_header in $config_headers :; do 20184 case $_am_header in 20185 $_am_arg | $_am_arg:* ) 20186 break ;; 20187 * ) 20188 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20189 esac 20190done 20191echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20192$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20193 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20194 X"$_am_arg" : 'X\(//\)$' \| \ 20195 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20196$as_echo X"$_am_arg" | 20197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20198 s//\1/ 20199 q 20200 } 20201 /^X\(\/\/\)[^/].*/{ 20202 s//\1/ 20203 q 20204 } 20205 /^X\(\/\/\)$/{ 20206 s//\1/ 20207 q 20208 } 20209 /^X\(\/\).*/{ 20210 s//\1/ 20211 q 20212 } 20213 s/.*/./; q'`/stamp-h$_am_stamp_count 20214 ;; 20215 20216 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20217$as_echo "$as_me: executing $ac_file commands" >&6;} 20218 ;; 20219 esac 20220 20221 20222 case $ac_file$ac_mode in 20223 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20224 # Older Autoconf quotes --file arguments for eval, but not when files 20225 # are listed without --file. Let's play safe and only enable the eval 20226 # if we detect the quoting. 20227 case $CONFIG_FILES in 20228 *\'*) eval set x "$CONFIG_FILES" ;; 20229 *) set x $CONFIG_FILES ;; 20230 esac 20231 shift 20232 for mf 20233 do 20234 # Strip MF so we end up with the name of the file. 20235 mf=`echo "$mf" | sed -e 's/:.*$//'` 20236 # Check whether this is an Automake generated Makefile or not. 20237 # We used to match only the files named 'Makefile.in', but 20238 # some people rename them; so instead we look at the file content. 20239 # Grep'ing the first line is not enough: some people post-process 20240 # each Makefile.in and add a new line on top of each file to say so. 20241 # Grep'ing the whole file is not good either: AIX grep has a line 20242 # limit of 2048, but all sed's we know have understand at least 4000. 20243 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20244 dirpart=`$as_dirname -- "$mf" || 20245$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20246 X"$mf" : 'X\(//\)[^/]' \| \ 20247 X"$mf" : 'X\(//\)$' \| \ 20248 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20249$as_echo X"$mf" | 20250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20251 s//\1/ 20252 q 20253 } 20254 /^X\(\/\/\)[^/].*/{ 20255 s//\1/ 20256 q 20257 } 20258 /^X\(\/\/\)$/{ 20259 s//\1/ 20260 q 20261 } 20262 /^X\(\/\).*/{ 20263 s//\1/ 20264 q 20265 } 20266 s/.*/./; q'` 20267 else 20268 continue 20269 fi 20270 # Extract the definition of DEPDIR, am__include, and am__quote 20271 # from the Makefile without running 'make'. 20272 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20273 test -z "$DEPDIR" && continue 20274 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20275 test -z "$am__include" && continue 20276 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20277 # Find all dependency output files, they are included files with 20278 # $(DEPDIR) in their names. We invoke sed twice because it is the 20279 # simplest approach to changing $(DEPDIR) to its actual value in the 20280 # expansion. 20281 for file in `sed -n " 20282 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20283 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20284 # Make sure the directory exists. 20285 test -f "$dirpart/$file" && continue 20286 fdir=`$as_dirname -- "$file" || 20287$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20288 X"$file" : 'X\(//\)[^/]' \| \ 20289 X"$file" : 'X\(//\)$' \| \ 20290 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20291$as_echo X"$file" | 20292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20293 s//\1/ 20294 q 20295 } 20296 /^X\(\/\/\)[^/].*/{ 20297 s//\1/ 20298 q 20299 } 20300 /^X\(\/\/\)$/{ 20301 s//\1/ 20302 q 20303 } 20304 /^X\(\/\).*/{ 20305 s//\1/ 20306 q 20307 } 20308 s/.*/./; q'` 20309 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20310 # echo "creating $dirpart/$file" 20311 echo '# dummy' > "$dirpart/$file" 20312 done 20313 done 20314} 20315 ;; 20316 "libtool":C) 20317 20318 # See if we are running on zsh, and set the options which allow our 20319 # commands through without removal of \ escapes. 20320 if test -n "${ZSH_VERSION+set}" ; then 20321 setopt NO_GLOB_SUBST 20322 fi 20323 20324 cfgfile="${ofile}T" 20325 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20326 $RM "$cfgfile" 20327 20328 cat <<_LT_EOF >> "$cfgfile" 20329#! $SHELL 20330 20331# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20332# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20333# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20334# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20335# 20336# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20337# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20338# Foundation, Inc. 20339# Written by Gordon Matzigkeit, 1996 20340# 20341# This file is part of GNU Libtool. 20342# 20343# GNU Libtool is free software; you can redistribute it and/or 20344# modify it under the terms of the GNU General Public License as 20345# published by the Free Software Foundation; either version 2 of 20346# the License, or (at your option) any later version. 20347# 20348# As a special exception to the GNU General Public License, 20349# if you distribute this file as part of a program or library that 20350# is built using GNU Libtool, you may include this file under the 20351# same distribution terms that you use for the rest of that program. 20352# 20353# GNU Libtool is distributed in the hope that it will be useful, 20354# but WITHOUT ANY WARRANTY; without even the implied warranty of 20355# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20356# GNU General Public License for more details. 20357# 20358# You should have received a copy of the GNU General Public License 20359# along with GNU Libtool; see the file COPYING. If not, a copy 20360# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20361# obtained by writing to the Free Software Foundation, Inc., 20362# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20363 20364 20365# The names of the tagged configurations supported by this script. 20366available_tags="" 20367 20368# ### BEGIN LIBTOOL CONFIG 20369 20370# Which release of libtool.m4 was used? 20371macro_version=$macro_version 20372macro_revision=$macro_revision 20373 20374# Whether or not to build shared libraries. 20375build_libtool_libs=$enable_shared 20376 20377# Whether or not to build static libraries. 20378build_old_libs=$enable_static 20379 20380# What type of objects to build. 20381pic_mode=$pic_mode 20382 20383# Whether or not to optimize for fast installation. 20384fast_install=$enable_fast_install 20385 20386# Shell to use when invoking shell scripts. 20387SHELL=$lt_SHELL 20388 20389# An echo program that protects backslashes. 20390ECHO=$lt_ECHO 20391 20392# The PATH separator for the build system. 20393PATH_SEPARATOR=$lt_PATH_SEPARATOR 20394 20395# The host system. 20396host_alias=$host_alias 20397host=$host 20398host_os=$host_os 20399 20400# The build system. 20401build_alias=$build_alias 20402build=$build 20403build_os=$build_os 20404 20405# A sed program that does not truncate output. 20406SED=$lt_SED 20407 20408# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20409Xsed="\$SED -e 1s/^X//" 20410 20411# A grep program that handles long lines. 20412GREP=$lt_GREP 20413 20414# An ERE matcher. 20415EGREP=$lt_EGREP 20416 20417# A literal string matcher. 20418FGREP=$lt_FGREP 20419 20420# A BSD- or MS-compatible name lister. 20421NM=$lt_NM 20422 20423# Whether we need soft or hard links. 20424LN_S=$lt_LN_S 20425 20426# What is the maximum length of a command? 20427max_cmd_len=$max_cmd_len 20428 20429# Object file suffix (normally "o"). 20430objext=$ac_objext 20431 20432# Executable file suffix (normally ""). 20433exeext=$exeext 20434 20435# whether the shell understands "unset". 20436lt_unset=$lt_unset 20437 20438# turn spaces into newlines. 20439SP2NL=$lt_lt_SP2NL 20440 20441# turn newlines into spaces. 20442NL2SP=$lt_lt_NL2SP 20443 20444# convert \$build file names to \$host format. 20445to_host_file_cmd=$lt_cv_to_host_file_cmd 20446 20447# convert \$build files to toolchain format. 20448to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20449 20450# An object symbol dumper. 20451OBJDUMP=$lt_OBJDUMP 20452 20453# Method to check whether dependent libraries are shared objects. 20454deplibs_check_method=$lt_deplibs_check_method 20455 20456# Command to use when deplibs_check_method = "file_magic". 20457file_magic_cmd=$lt_file_magic_cmd 20458 20459# How to find potential files when deplibs_check_method = "file_magic". 20460file_magic_glob=$lt_file_magic_glob 20461 20462# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20463want_nocaseglob=$lt_want_nocaseglob 20464 20465# DLL creation program. 20466DLLTOOL=$lt_DLLTOOL 20467 20468# Command to associate shared and link libraries. 20469sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20470 20471# The archiver. 20472AR=$lt_AR 20473 20474# Flags to create an archive. 20475AR_FLAGS=$lt_AR_FLAGS 20476 20477# How to feed a file listing to the archiver. 20478archiver_list_spec=$lt_archiver_list_spec 20479 20480# A symbol stripping program. 20481STRIP=$lt_STRIP 20482 20483# Commands used to install an old-style archive. 20484RANLIB=$lt_RANLIB 20485old_postinstall_cmds=$lt_old_postinstall_cmds 20486old_postuninstall_cmds=$lt_old_postuninstall_cmds 20487 20488# Whether to use a lock for old archive extraction. 20489lock_old_archive_extraction=$lock_old_archive_extraction 20490 20491# A C compiler. 20492LTCC=$lt_CC 20493 20494# LTCC compiler flags. 20495LTCFLAGS=$lt_CFLAGS 20496 20497# Take the output of nm and produce a listing of raw symbols and C names. 20498global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20499 20500# Transform the output of nm in a proper C declaration. 20501global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20502 20503# Transform the output of nm in a C name address pair. 20504global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20505 20506# Transform the output of nm in a C name address pair when lib prefix is needed. 20507global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20508 20509# Specify filename containing input files for \$NM. 20510nm_file_list_spec=$lt_nm_file_list_spec 20511 20512# The root where to search for dependent libraries,and in which our libraries should be installed. 20513lt_sysroot=$lt_sysroot 20514 20515# The name of the directory that contains temporary libtool files. 20516objdir=$objdir 20517 20518# Used to examine libraries when file_magic_cmd begins with "file". 20519MAGIC_CMD=$MAGIC_CMD 20520 20521# Must we lock files when doing compilation? 20522need_locks=$lt_need_locks 20523 20524# Manifest tool. 20525MANIFEST_TOOL=$lt_MANIFEST_TOOL 20526 20527# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20528DSYMUTIL=$lt_DSYMUTIL 20529 20530# Tool to change global to local symbols on Mac OS X. 20531NMEDIT=$lt_NMEDIT 20532 20533# Tool to manipulate fat objects and archives on Mac OS X. 20534LIPO=$lt_LIPO 20535 20536# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20537OTOOL=$lt_OTOOL 20538 20539# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20540OTOOL64=$lt_OTOOL64 20541 20542# Old archive suffix (normally "a"). 20543libext=$libext 20544 20545# Shared library suffix (normally ".so"). 20546shrext_cmds=$lt_shrext_cmds 20547 20548# The commands to extract the exported symbol list from a shared archive. 20549extract_expsyms_cmds=$lt_extract_expsyms_cmds 20550 20551# Variables whose values should be saved in libtool wrapper scripts and 20552# restored at link time. 20553variables_saved_for_relink=$lt_variables_saved_for_relink 20554 20555# Do we need the "lib" prefix for modules? 20556need_lib_prefix=$need_lib_prefix 20557 20558# Do we need a version for libraries? 20559need_version=$need_version 20560 20561# Library versioning type. 20562version_type=$version_type 20563 20564# Shared library runtime path variable. 20565runpath_var=$runpath_var 20566 20567# Shared library path variable. 20568shlibpath_var=$shlibpath_var 20569 20570# Is shlibpath searched before the hard-coded library search path? 20571shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20572 20573# Format of library name prefix. 20574libname_spec=$lt_libname_spec 20575 20576# List of archive names. First name is the real one, the rest are links. 20577# The last name is the one that the linker finds with -lNAME 20578library_names_spec=$lt_library_names_spec 20579 20580# The coded name of the library, if different from the real name. 20581soname_spec=$lt_soname_spec 20582 20583# Permission mode override for installation of shared libraries. 20584install_override_mode=$lt_install_override_mode 20585 20586# Command to use after installation of a shared archive. 20587postinstall_cmds=$lt_postinstall_cmds 20588 20589# Command to use after uninstallation of a shared archive. 20590postuninstall_cmds=$lt_postuninstall_cmds 20591 20592# Commands used to finish a libtool library installation in a directory. 20593finish_cmds=$lt_finish_cmds 20594 20595# As "finish_cmds", except a single script fragment to be evaled but 20596# not shown. 20597finish_eval=$lt_finish_eval 20598 20599# Whether we should hardcode library paths into libraries. 20600hardcode_into_libs=$hardcode_into_libs 20601 20602# Compile-time system search path for libraries. 20603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20604 20605# Run-time system search path for libraries. 20606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20607 20608# Whether dlopen is supported. 20609dlopen_support=$enable_dlopen 20610 20611# Whether dlopen of programs is supported. 20612dlopen_self=$enable_dlopen_self 20613 20614# Whether dlopen of statically linked programs is supported. 20615dlopen_self_static=$enable_dlopen_self_static 20616 20617# Commands to strip libraries. 20618old_striplib=$lt_old_striplib 20619striplib=$lt_striplib 20620 20621 20622# The linker used to build libraries. 20623LD=$lt_LD 20624 20625# How to create reloadable object files. 20626reload_flag=$lt_reload_flag 20627reload_cmds=$lt_reload_cmds 20628 20629# Commands used to build an old-style archive. 20630old_archive_cmds=$lt_old_archive_cmds 20631 20632# A language specific compiler. 20633CC=$lt_compiler 20634 20635# Is the compiler the GNU compiler? 20636with_gcc=$GCC 20637 20638# Compiler flag to turn off builtin functions. 20639no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20640 20641# Additional compiler flags for building library objects. 20642pic_flag=$lt_lt_prog_compiler_pic 20643 20644# How to pass a linker flag through the compiler. 20645wl=$lt_lt_prog_compiler_wl 20646 20647# Compiler flag to prevent dynamic linking. 20648link_static_flag=$lt_lt_prog_compiler_static 20649 20650# Does compiler simultaneously support -c and -o options? 20651compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20652 20653# Whether or not to add -lc for building shared libraries. 20654build_libtool_need_lc=$archive_cmds_need_lc 20655 20656# Whether or not to disallow shared libs when runtime libs are static. 20657allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20658 20659# Compiler flag to allow reflexive dlopens. 20660export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20661 20662# Compiler flag to generate shared objects directly from archives. 20663whole_archive_flag_spec=$lt_whole_archive_flag_spec 20664 20665# Whether the compiler copes with passing no objects directly. 20666compiler_needs_object=$lt_compiler_needs_object 20667 20668# Create an old-style archive from a shared archive. 20669old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20670 20671# Create a temporary old-style archive to link instead of a shared archive. 20672old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20673 20674# Commands used to build a shared archive. 20675archive_cmds=$lt_archive_cmds 20676archive_expsym_cmds=$lt_archive_expsym_cmds 20677 20678# Commands used to build a loadable module if different from building 20679# a shared archive. 20680module_cmds=$lt_module_cmds 20681module_expsym_cmds=$lt_module_expsym_cmds 20682 20683# Whether we are building with GNU ld or not. 20684with_gnu_ld=$lt_with_gnu_ld 20685 20686# Flag that allows shared libraries with undefined symbols to be built. 20687allow_undefined_flag=$lt_allow_undefined_flag 20688 20689# Flag that enforces no undefined symbols. 20690no_undefined_flag=$lt_no_undefined_flag 20691 20692# Flag to hardcode \$libdir into a binary during linking. 20693# This must work even if \$libdir does not exist 20694hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20695 20696# Whether we need a single "-rpath" flag with a separated argument. 20697hardcode_libdir_separator=$lt_hardcode_libdir_separator 20698 20699# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20700# DIR into the resulting binary. 20701hardcode_direct=$hardcode_direct 20702 20703# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20704# DIR into the resulting binary and the resulting library dependency is 20705# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20706# library is relocated. 20707hardcode_direct_absolute=$hardcode_direct_absolute 20708 20709# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20710# into the resulting binary. 20711hardcode_minus_L=$hardcode_minus_L 20712 20713# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20714# into the resulting binary. 20715hardcode_shlibpath_var=$hardcode_shlibpath_var 20716 20717# Set to "yes" if building a shared library automatically hardcodes DIR 20718# into the library and all subsequent libraries and executables linked 20719# against it. 20720hardcode_automatic=$hardcode_automatic 20721 20722# Set to yes if linker adds runtime paths of dependent libraries 20723# to runtime path list. 20724inherit_rpath=$inherit_rpath 20725 20726# Whether libtool must link a program against all its dependency libraries. 20727link_all_deplibs=$link_all_deplibs 20728 20729# Set to "yes" if exported symbols are required. 20730always_export_symbols=$always_export_symbols 20731 20732# The commands to list exported symbols. 20733export_symbols_cmds=$lt_export_symbols_cmds 20734 20735# Symbols that should not be listed in the preloaded symbols. 20736exclude_expsyms=$lt_exclude_expsyms 20737 20738# Symbols that must always be exported. 20739include_expsyms=$lt_include_expsyms 20740 20741# Commands necessary for linking programs (against libraries) with templates. 20742prelink_cmds=$lt_prelink_cmds 20743 20744# Commands necessary for finishing linking programs. 20745postlink_cmds=$lt_postlink_cmds 20746 20747# Specify filename containing input files. 20748file_list_spec=$lt_file_list_spec 20749 20750# How to hardcode a shared library path into an executable. 20751hardcode_action=$hardcode_action 20752 20753# ### END LIBTOOL CONFIG 20754 20755_LT_EOF 20756 20757 case $host_os in 20758 aix3*) 20759 cat <<\_LT_EOF >> "$cfgfile" 20760# AIX sometimes has problems with the GCC collect2 program. For some 20761# reason, if we set the COLLECT_NAMES environment variable, the problems 20762# vanish in a puff of smoke. 20763if test "X${COLLECT_NAMES+set}" != Xset; then 20764 COLLECT_NAMES= 20765 export COLLECT_NAMES 20766fi 20767_LT_EOF 20768 ;; 20769 esac 20770 20771 20772ltmain="$ac_aux_dir/ltmain.sh" 20773 20774 20775 # We use sed instead of cat because bash on DJGPP gets confused if 20776 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20777 # text mode, it properly converts lines to CR/LF. This bash problem 20778 # is reportedly fixed, but why not run on old versions too? 20779 sed '$q' "$ltmain" >> "$cfgfile" \ 20780 || (rm -f "$cfgfile"; exit 1) 20781 20782 if test x"$xsi_shell" = xyes; then 20783 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20784func_dirname ()\ 20785{\ 20786\ case ${1} in\ 20787\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20788\ * ) func_dirname_result="${3}" ;;\ 20789\ esac\ 20790} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20791 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20793test 0 -eq $? || _lt_function_replace_fail=: 20794 20795 20796 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20797func_basename ()\ 20798{\ 20799\ func_basename_result="${1##*/}"\ 20800} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20801 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20803test 0 -eq $? || _lt_function_replace_fail=: 20804 20805 20806 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20807func_dirname_and_basename ()\ 20808{\ 20809\ case ${1} in\ 20810\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20811\ * ) func_dirname_result="${3}" ;;\ 20812\ esac\ 20813\ func_basename_result="${1##*/}"\ 20814} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20815 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20817test 0 -eq $? || _lt_function_replace_fail=: 20818 20819 20820 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20821func_stripname ()\ 20822{\ 20823\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20824\ # positional parameters, so assign one to ordinary parameter first.\ 20825\ func_stripname_result=${3}\ 20826\ func_stripname_result=${func_stripname_result#"${1}"}\ 20827\ func_stripname_result=${func_stripname_result%"${2}"}\ 20828} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20829 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20831test 0 -eq $? || _lt_function_replace_fail=: 20832 20833 20834 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20835func_split_long_opt ()\ 20836{\ 20837\ func_split_long_opt_name=${1%%=*}\ 20838\ func_split_long_opt_arg=${1#*=}\ 20839} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20840 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20842test 0 -eq $? || _lt_function_replace_fail=: 20843 20844 20845 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20846func_split_short_opt ()\ 20847{\ 20848\ func_split_short_opt_arg=${1#??}\ 20849\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20850} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20851 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20853test 0 -eq $? || _lt_function_replace_fail=: 20854 20855 20856 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20857func_lo2o ()\ 20858{\ 20859\ case ${1} in\ 20860\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20861\ *) func_lo2o_result=${1} ;;\ 20862\ esac\ 20863} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20864 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20866test 0 -eq $? || _lt_function_replace_fail=: 20867 20868 20869 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20870func_xform ()\ 20871{\ 20872 func_xform_result=${1%.*}.lo\ 20873} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20874 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20876test 0 -eq $? || _lt_function_replace_fail=: 20877 20878 20879 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20880func_arith ()\ 20881{\ 20882 func_arith_result=$(( $* ))\ 20883} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20884 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20886test 0 -eq $? || _lt_function_replace_fail=: 20887 20888 20889 sed -e '/^func_len ()$/,/^} # func_len /c\ 20890func_len ()\ 20891{\ 20892 func_len_result=${#1}\ 20893} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20894 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20896test 0 -eq $? || _lt_function_replace_fail=: 20897 20898fi 20899 20900if test x"$lt_shell_append" = xyes; then 20901 sed -e '/^func_append ()$/,/^} # func_append /c\ 20902func_append ()\ 20903{\ 20904 eval "${1}+=\\${2}"\ 20905} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20906 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20908test 0 -eq $? || _lt_function_replace_fail=: 20909 20910 20911 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20912func_append_quoted ()\ 20913{\ 20914\ func_quote_for_eval "${2}"\ 20915\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20916} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20917 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20919test 0 -eq $? || _lt_function_replace_fail=: 20920 20921 20922 # Save a `func_append' function call where possible by direct use of '+=' 20923 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20924 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20926 test 0 -eq $? || _lt_function_replace_fail=: 20927else 20928 # Save a `func_append' function call even when '+=' is not available 20929 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20930 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20932 test 0 -eq $? || _lt_function_replace_fail=: 20933fi 20934 20935if test x"$_lt_function_replace_fail" = x":"; then 20936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20937$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20938fi 20939 20940 20941 mv -f "$cfgfile" "$ofile" || 20942 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20943 chmod +x "$ofile" 20944 20945 ;; 20946 20947 esac 20948done # for ac_tag 20949 20950 20951as_fn_exit 0 20952_ACEOF 20953ac_clean_files=$ac_clean_files_save 20954 20955test $ac_write_fail = 0 || 20956 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20957 20958 20959# configure is writing to config.log, and then calls config.status. 20960# config.status does its own redirection, appending to config.log. 20961# Unfortunately, on DOS this fails, as config.log is still kept open 20962# by configure, so config.status won't be able to write to it; its 20963# output is simply discarded. So we exec the FD to /dev/null, 20964# effectively closing config.log, so it can be properly (re)opened and 20965# appended to by config.status. When coming back to configure, we 20966# need to make the FD available again. 20967if test "$no_create" != yes; then 20968 ac_cs_success=: 20969 ac_config_status_args= 20970 test "$silent" = yes && 20971 ac_config_status_args="$ac_config_status_args --quiet" 20972 exec 5>/dev/null 20973 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20974 exec 5>>config.log 20975 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20976 # would make configure fail if this is the last instruction. 20977 $ac_cs_success || as_fn_exit 1 20978fi 20979if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20981$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20982fi 20983 20984