configure revision dc9477be
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXi 1.7.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='libXi' 653PACKAGE_TARNAME='libXi' 654PACKAGE_VERSION='1.7.3' 655PACKAGE_STRING='libXi 1.7.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 700INSTALL_MANPAGES_FALSE 701INSTALL_MANPAGES_TRUE 702HAVE_DOCTOOLS_FALSE 703HAVE_DOCTOOLS_TRUE 704XFIXES_LIBS 705XFIXES_CFLAGS 706XI_LIBS 707XI_CFLAGS 708XTMALLOC_ZERO_CFLAGS 709XMALLOC_ZERO_CFLAGS 710MALLOC_ZERO_CFLAGS 711HAVE_ASCIIDOC_FALSE 712HAVE_ASCIIDOC_TRUE 713ASCIIDOC 714HAVE_STYLESHEETS_FALSE 715HAVE_STYLESHEETS_TRUE 716XSL_STYLESHEET 717STYLESHEET_SRCDIR 718XORG_SGML_PATH 719HAVE_XSLTPROC_FALSE 720HAVE_XSLTPROC_TRUE 721XSLTPROC 722HAVE_FOP_FALSE 723HAVE_FOP_TRUE 724FOP 725HAVE_XMLTO_FALSE 726HAVE_XMLTO_TRUE 727HAVE_XMLTO_TEXT_FALSE 728HAVE_XMLTO_TEXT_TRUE 729XMLTO 730ENABLE_SPECS_FALSE 731ENABLE_SPECS_TRUE 732ENABLE_DOCS_FALSE 733ENABLE_DOCS_TRUE 734MAN_SUBSTS 735XORG_MAN_PAGE 736ADMIN_MAN_DIR 737DRIVER_MAN_DIR 738MISC_MAN_DIR 739FILE_MAN_DIR 740LIB_MAN_DIR 741APP_MAN_DIR 742ADMIN_MAN_SUFFIX 743DRIVER_MAN_SUFFIX 744MISC_MAN_SUFFIX 745FILE_MAN_SUFFIX 746LIB_MAN_SUFFIX 747APP_MAN_SUFFIX 748INSTALL_CMD 749PKG_CONFIG_LIBDIR 750PKG_CONFIG_PATH 751PKG_CONFIG 752CHANGELOG_CMD 753STRICT_CFLAGS 754CWARNFLAGS 755BASE_CFLAGS 756CPP 757OTOOL64 758OTOOL 759LIPO 760NMEDIT 761DSYMUTIL 762MANIFEST_TOOL 763RANLIB 764ac_ct_AR 765AR 766DLLTOOL 767OBJDUMP 768LN_S 769NM 770ac_ct_DUMPBIN 771DUMPBIN 772LD 773FGREP 774EGREP 775GREP 776SED 777am__fastdepCC_FALSE 778am__fastdepCC_TRUE 779CCDEPMODE 780am__nodep 781AMDEPBACKSLASH 782AMDEP_FALSE 783AMDEP_TRUE 784am__quote 785am__include 786DEPDIR 787OBJEXT 788EXEEXT 789ac_ct_CC 790CPPFLAGS 791LDFLAGS 792CFLAGS 793CC 794host_os 795host_vendor 796host_cpu 797host 798build_os 799build_vendor 800build_cpu 801build 802LIBTOOL 803AM_BACKSLASH 804AM_DEFAULT_VERBOSITY 805AM_DEFAULT_V 806AM_V 807am__untar 808am__tar 809AMTAR 810am__leading_dot 811SET_MAKE 812AWK 813mkdir_p 814MKDIR_P 815INSTALL_STRIP_PROGRAM 816STRIP 817install_sh 818MAKEINFO 819AUTOHEADER 820AUTOMAKE 821AUTOCONF 822ACLOCAL 823VERSION 824PACKAGE 825CYGPATH_W 826am__isrc 827INSTALL_DATA 828INSTALL_SCRIPT 829INSTALL_PROGRAM 830target_alias 831host_alias 832build_alias 833LIBS 834ECHO_T 835ECHO_N 836ECHO_C 837DEFS 838mandir 839localedir 840libdir 841psdir 842pdfdir 843dvidir 844htmldir 845infodir 846docdir 847oldincludedir 848includedir 849localstatedir 850sharedstatedir 851sysconfdir 852datadir 853datarootdir 854libexecdir 855sbindir 856bindir 857program_transform_name 858prefix 859exec_prefix 860PACKAGE_URL 861PACKAGE_BUGREPORT 862PACKAGE_STRING 863PACKAGE_VERSION 864PACKAGE_TARNAME 865PACKAGE_NAME 866PATH_SEPARATOR 867SHELL' 868ac_subst_files='' 869ac_user_opts=' 870enable_option_checking 871enable_silent_rules 872enable_shared 873enable_static 874with_pic 875enable_fast_install 876enable_dependency_tracking 877with_gnu_ld 878with_sysroot 879enable_libtool_lock 880enable_selective_werror 881enable_strict_compilation 882enable_docs 883enable_specs 884with_xmlto 885with_fop 886with_xsltproc 887with_asciidoc 888enable_malloc0returnsnull 889' 890 ac_precious_vars='build_alias 891host_alias 892target_alias 893CC 894CFLAGS 895LDFLAGS 896LIBS 897CPPFLAGS 898CPP 899PKG_CONFIG 900PKG_CONFIG_PATH 901PKG_CONFIG_LIBDIR 902XMLTO 903FOP 904XSLTPROC 905ASCIIDOC 906XI_CFLAGS 907XI_LIBS 908XFIXES_CFLAGS 909XFIXES_LIBS' 910 911 912# Initialize some variables set by options. 913ac_init_help= 914ac_init_version=false 915ac_unrecognized_opts= 916ac_unrecognized_sep= 917# The variables have the same names as the options, with 918# dashes changed to underlines. 919cache_file=/dev/null 920exec_prefix=NONE 921no_create= 922no_recursion= 923prefix=NONE 924program_prefix=NONE 925program_suffix=NONE 926program_transform_name=s,x,x, 927silent= 928site= 929srcdir= 930verbose= 931x_includes=NONE 932x_libraries=NONE 933 934# Installation directory options. 935# These are left unexpanded so users can "make install exec_prefix=/foo" 936# and all the variables that are supposed to be based on exec_prefix 937# by default will actually change. 938# Use braces instead of parens because sh, perl, etc. also accept them. 939# (The list follows the same order as the GNU Coding Standards.) 940bindir='${exec_prefix}/bin' 941sbindir='${exec_prefix}/sbin' 942libexecdir='${exec_prefix}/libexec' 943datarootdir='${prefix}/share' 944datadir='${datarootdir}' 945sysconfdir='${prefix}/etc' 946sharedstatedir='${prefix}/com' 947localstatedir='${prefix}/var' 948includedir='${prefix}/include' 949oldincludedir='/usr/include' 950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 951infodir='${datarootdir}/info' 952htmldir='${docdir}' 953dvidir='${docdir}' 954pdfdir='${docdir}' 955psdir='${docdir}' 956libdir='${exec_prefix}/lib' 957localedir='${datarootdir}/locale' 958mandir='${datarootdir}/man' 959 960ac_prev= 961ac_dashdash= 962for ac_option 963do 964 # If the previous option needs an argument, assign it. 965 if test -n "$ac_prev"; then 966 eval $ac_prev=\$ac_option 967 ac_prev= 968 continue 969 fi 970 971 case $ac_option in 972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 973 *=) ac_optarg= ;; 974 *) ac_optarg=yes ;; 975 esac 976 977 # Accept the important Cygnus configure options, so we can diagnose typos. 978 979 case $ac_dashdash$ac_option in 980 --) 981 ac_dashdash=yes ;; 982 983 -bindir | --bindir | --bindi | --bind | --bin | --bi) 984 ac_prev=bindir ;; 985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 986 bindir=$ac_optarg ;; 987 988 -build | --build | --buil | --bui | --bu) 989 ac_prev=build_alias ;; 990 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 991 build_alias=$ac_optarg ;; 992 993 -cache-file | --cache-file | --cache-fil | --cache-fi \ 994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 995 ac_prev=cache_file ;; 996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 998 cache_file=$ac_optarg ;; 999 1000 --config-cache | -C) 1001 cache_file=config.cache ;; 1002 1003 -datadir | --datadir | --datadi | --datad) 1004 ac_prev=datadir ;; 1005 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1006 datadir=$ac_optarg ;; 1007 1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1009 | --dataroo | --dataro | --datar) 1010 ac_prev=datarootdir ;; 1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1013 datarootdir=$ac_optarg ;; 1014 1015 -disable-* | --disable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: $ac_useropt" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=no ;; 1030 1031 -docdir | --docdir | --docdi | --doc | --do) 1032 ac_prev=docdir ;; 1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1034 docdir=$ac_optarg ;; 1035 1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1037 ac_prev=dvidir ;; 1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1039 dvidir=$ac_optarg ;; 1040 1041 -enable-* | --enable-*) 1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1045 as_fn_error $? "invalid feature name: $ac_useropt" 1046 ac_useropt_orig=$ac_useropt 1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1048 case $ac_user_opts in 1049 *" 1050"enable_$ac_useropt" 1051"*) ;; 1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1053 ac_unrecognized_sep=', ';; 1054 esac 1055 eval enable_$ac_useropt=\$ac_optarg ;; 1056 1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1059 | --exec | --exe | --ex) 1060 ac_prev=exec_prefix ;; 1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1063 | --exec=* | --exe=* | --ex=*) 1064 exec_prefix=$ac_optarg ;; 1065 1066 -gas | --gas | --ga | --g) 1067 # Obsolete; use --with-gas. 1068 with_gas=yes ;; 1069 1070 -help | --help | --hel | --he | -h) 1071 ac_init_help=long ;; 1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1073 ac_init_help=recursive ;; 1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1075 ac_init_help=short ;; 1076 1077 -host | --host | --hos | --ho) 1078 ac_prev=host_alias ;; 1079 -host=* | --host=* | --hos=* | --ho=*) 1080 host_alias=$ac_optarg ;; 1081 1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1083 ac_prev=htmldir ;; 1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1085 | --ht=*) 1086 htmldir=$ac_optarg ;; 1087 1088 -includedir | --includedir | --includedi | --included | --include \ 1089 | --includ | --inclu | --incl | --inc) 1090 ac_prev=includedir ;; 1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1092 | --includ=* | --inclu=* | --incl=* | --inc=*) 1093 includedir=$ac_optarg ;; 1094 1095 -infodir | --infodir | --infodi | --infod | --info | --inf) 1096 ac_prev=infodir ;; 1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1098 infodir=$ac_optarg ;; 1099 1100 -libdir | --libdir | --libdi | --libd) 1101 ac_prev=libdir ;; 1102 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1103 libdir=$ac_optarg ;; 1104 1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1106 | --libexe | --libex | --libe) 1107 ac_prev=libexecdir ;; 1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1109 | --libexe=* | --libex=* | --libe=*) 1110 libexecdir=$ac_optarg ;; 1111 1112 -localedir | --localedir | --localedi | --localed | --locale) 1113 ac_prev=localedir ;; 1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1115 localedir=$ac_optarg ;; 1116 1117 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1118 | --localstate | --localstat | --localsta | --localst | --locals) 1119 ac_prev=localstatedir ;; 1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1122 localstatedir=$ac_optarg ;; 1123 1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1125 ac_prev=mandir ;; 1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1127 mandir=$ac_optarg ;; 1128 1129 -nfp | --nfp | --nf) 1130 # Obsolete; use --without-fp. 1131 with_fp=no ;; 1132 1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1134 | --no-cr | --no-c | -n) 1135 no_create=yes ;; 1136 1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1139 no_recursion=yes ;; 1140 1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1143 | --oldin | --oldi | --old | --ol | --o) 1144 ac_prev=oldincludedir ;; 1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1148 oldincludedir=$ac_optarg ;; 1149 1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1151 ac_prev=prefix ;; 1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1153 prefix=$ac_optarg ;; 1154 1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1156 | --program-pre | --program-pr | --program-p) 1157 ac_prev=program_prefix ;; 1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1160 program_prefix=$ac_optarg ;; 1161 1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1163 | --program-suf | --program-su | --program-s) 1164 ac_prev=program_suffix ;; 1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1167 program_suffix=$ac_optarg ;; 1168 1169 -program-transform-name | --program-transform-name \ 1170 | --program-transform-nam | --program-transform-na \ 1171 | --program-transform-n | --program-transform- \ 1172 | --program-transform | --program-transfor \ 1173 | --program-transfo | --program-transf \ 1174 | --program-trans | --program-tran \ 1175 | --progr-tra | --program-tr | --program-t) 1176 ac_prev=program_transform_name ;; 1177 -program-transform-name=* | --program-transform-name=* \ 1178 | --program-transform-nam=* | --program-transform-na=* \ 1179 | --program-transform-n=* | --program-transform-=* \ 1180 | --program-transform=* | --program-transfor=* \ 1181 | --program-transfo=* | --program-transf=* \ 1182 | --program-trans=* | --program-tran=* \ 1183 | --progr-tra=* | --program-tr=* | --program-t=*) 1184 program_transform_name=$ac_optarg ;; 1185 1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1187 ac_prev=pdfdir ;; 1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1189 pdfdir=$ac_optarg ;; 1190 1191 -psdir | --psdir | --psdi | --psd | --ps) 1192 ac_prev=psdir ;; 1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1194 psdir=$ac_optarg ;; 1195 1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1197 | -silent | --silent | --silen | --sile | --sil) 1198 silent=yes ;; 1199 1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1201 ac_prev=sbindir ;; 1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1203 | --sbi=* | --sb=*) 1204 sbindir=$ac_optarg ;; 1205 1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1208 | --sharedst | --shareds | --shared | --share | --shar \ 1209 | --sha | --sh) 1210 ac_prev=sharedstatedir ;; 1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1214 | --sha=* | --sh=*) 1215 sharedstatedir=$ac_optarg ;; 1216 1217 -site | --site | --sit) 1218 ac_prev=site ;; 1219 -site=* | --site=* | --sit=*) 1220 site=$ac_optarg ;; 1221 1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1223 ac_prev=srcdir ;; 1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1225 srcdir=$ac_optarg ;; 1226 1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1228 | --syscon | --sysco | --sysc | --sys | --sy) 1229 ac_prev=sysconfdir ;; 1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1232 sysconfdir=$ac_optarg ;; 1233 1234 -target | --target | --targe | --targ | --tar | --ta | --t) 1235 ac_prev=target_alias ;; 1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1237 target_alias=$ac_optarg ;; 1238 1239 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1240 verbose=yes ;; 1241 1242 -version | --version | --versio | --versi | --vers | -V) 1243 ac_init_version=: ;; 1244 1245 -with-* | --with-*) 1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1247 # Reject names that are not valid shell variable names. 1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1249 as_fn_error $? "invalid package name: $ac_useropt" 1250 ac_useropt_orig=$ac_useropt 1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1252 case $ac_user_opts in 1253 *" 1254"with_$ac_useropt" 1255"*) ;; 1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1257 ac_unrecognized_sep=', ';; 1258 esac 1259 eval with_$ac_useropt=\$ac_optarg ;; 1260 1261 -without-* | --without-*) 1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1263 # Reject names that are not valid shell variable names. 1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1265 as_fn_error $? "invalid package name: $ac_useropt" 1266 ac_useropt_orig=$ac_useropt 1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1268 case $ac_user_opts in 1269 *" 1270"with_$ac_useropt" 1271"*) ;; 1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1273 ac_unrecognized_sep=', ';; 1274 esac 1275 eval with_$ac_useropt=no ;; 1276 1277 --x) 1278 # Obsolete; use --with-x. 1279 with_x=yes ;; 1280 1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1282 | --x-incl | --x-inc | --x-in | --x-i) 1283 ac_prev=x_includes ;; 1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1286 x_includes=$ac_optarg ;; 1287 1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1290 ac_prev=x_libraries ;; 1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1293 x_libraries=$ac_optarg ;; 1294 1295 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1296Try \`$0 --help' for more information" 1297 ;; 1298 1299 *=*) 1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1301 # Reject names that are not valid shell variable names. 1302 case $ac_envvar in #( 1303 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1305 esac 1306 eval $ac_envvar=\$ac_optarg 1307 export $ac_envvar ;; 1308 1309 *) 1310 # FIXME: should be removed in autoconf 3.0. 1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1315 ;; 1316 1317 esac 1318done 1319 1320if test -n "$ac_prev"; then 1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1322 as_fn_error $? "missing argument to $ac_option" 1323fi 1324 1325if test -n "$ac_unrecognized_opts"; then 1326 case $enable_option_checking in 1327 no) ;; 1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1330 esac 1331fi 1332 1333# Check all directory arguments for consistency. 1334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1335 datadir sysconfdir sharedstatedir localstatedir includedir \ 1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1337 libdir localedir mandir 1338do 1339 eval ac_val=\$$ac_var 1340 # Remove trailing slashes. 1341 case $ac_val in 1342 */ ) 1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1344 eval $ac_var=\$ac_val;; 1345 esac 1346 # Be sure to have absolute directory names. 1347 case $ac_val in 1348 [\\/$]* | ?:[\\/]* ) continue;; 1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1350 esac 1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1352done 1353 1354# There might be people who depend on the old broken behavior: `$host' 1355# used to hold the argument of --host etc. 1356# FIXME: To remove some day. 1357build=$build_alias 1358host=$host_alias 1359target=$target_alias 1360 1361# FIXME: To remove some day. 1362if test "x$host_alias" != x; then 1363 if test "x$build_alias" = x; then 1364 cross_compiling=maybe 1365 elif test "x$build_alias" != "x$host_alias"; then 1366 cross_compiling=yes 1367 fi 1368fi 1369 1370ac_tool_prefix= 1371test -n "$host_alias" && ac_tool_prefix=$host_alias- 1372 1373test "$silent" = yes && exec 6>/dev/null 1374 1375 1376ac_pwd=`pwd` && test -n "$ac_pwd" && 1377ac_ls_di=`ls -di .` && 1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1379 as_fn_error $? "working directory cannot be determined" 1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1381 as_fn_error $? "pwd does not report name of working directory" 1382 1383 1384# Find the source files, if location was not specified. 1385if test -z "$srcdir"; then 1386 ac_srcdir_defaulted=yes 1387 # Try the directory containing this script, then the parent directory. 1388 ac_confdir=`$as_dirname -- "$as_myself" || 1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1390 X"$as_myself" : 'X\(//\)[^/]' \| \ 1391 X"$as_myself" : 'X\(//\)$' \| \ 1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1393$as_echo X"$as_myself" | 1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)[^/].*/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\/\)$/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\).*/{ 1407 s//\1/ 1408 q 1409 } 1410 s/.*/./; q'` 1411 srcdir=$ac_confdir 1412 if test ! -r "$srcdir/$ac_unique_file"; then 1413 srcdir=.. 1414 fi 1415else 1416 ac_srcdir_defaulted=no 1417fi 1418if test ! -r "$srcdir/$ac_unique_file"; then 1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1421fi 1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1423ac_abs_confdir=`( 1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1425 pwd)` 1426# When building in place, set srcdir=. 1427if test "$ac_abs_confdir" = "$ac_pwd"; then 1428 srcdir=. 1429fi 1430# Remove unnecessary trailing slashes from srcdir. 1431# Double slashes in file names in object file debugging info 1432# mess up M-x gdb in Emacs. 1433case $srcdir in 1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1435esac 1436for ac_var in $ac_precious_vars; do 1437 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_env_${ac_var}_value=\$${ac_var} 1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1440 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1441done 1442 1443# 1444# Report the --help message. 1445# 1446if test "$ac_init_help" = "long"; then 1447 # Omit some internal or obsolete options to make the list less imposing. 1448 # This message is too long to be a string in the A/UX 3.1 sh. 1449 cat <<_ACEOF 1450\`configure' configures libXi 1.7.3 to adapt to many kinds of systems. 1451 1452Usage: $0 [OPTION]... [VAR=VALUE]... 1453 1454To assign environment variables (e.g., CC, CFLAGS...), specify them as 1455VAR=VALUE. See below for descriptions of some of the useful variables. 1456 1457Defaults for the options are specified in brackets. 1458 1459Configuration: 1460 -h, --help display this help and exit 1461 --help=short display options specific to this package 1462 --help=recursive display the short help of all the included packages 1463 -V, --version display version information and exit 1464 -q, --quiet, --silent do not print \`checking ...' messages 1465 --cache-file=FILE cache test results in FILE [disabled] 1466 -C, --config-cache alias for \`--cache-file=config.cache' 1467 -n, --no-create do not create output files 1468 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1469 1470Installation directories: 1471 --prefix=PREFIX install architecture-independent files in PREFIX 1472 [$ac_default_prefix] 1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1474 [PREFIX] 1475 1476By default, \`make install' will install all the files in 1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1478an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1479for instance \`--prefix=\$HOME'. 1480 1481For better control, use the options below. 1482 1483Fine tuning of the installation directories: 1484 --bindir=DIR user executables [EPREFIX/bin] 1485 --sbindir=DIR system admin executables [EPREFIX/sbin] 1486 --libexecdir=DIR program executables [EPREFIX/libexec] 1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1490 --libdir=DIR object code libraries [EPREFIX/lib] 1491 --includedir=DIR C header files [PREFIX/include] 1492 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1495 --infodir=DIR info documentation [DATAROOTDIR/info] 1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1497 --mandir=DIR man documentation [DATAROOTDIR/man] 1498 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi] 1499 --htmldir=DIR html documentation [DOCDIR] 1500 --dvidir=DIR dvi documentation [DOCDIR] 1501 --pdfdir=DIR pdf documentation [DOCDIR] 1502 --psdir=DIR ps documentation [DOCDIR] 1503_ACEOF 1504 1505 cat <<\_ACEOF 1506 1507Program names: 1508 --program-prefix=PREFIX prepend PREFIX to installed program names 1509 --program-suffix=SUFFIX append SUFFIX to installed program names 1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1511 1512System types: 1513 --build=BUILD configure for building on BUILD [guessed] 1514 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1515_ACEOF 1516fi 1517 1518if test -n "$ac_init_help"; then 1519 case $ac_init_help in 1520 short | recursive ) echo "Configuration of libXi 1.7.3:";; 1521 esac 1522 cat <<\_ACEOF 1523 1524Optional Features: 1525 --disable-option-checking ignore unrecognized --enable/--with options 1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1528 --enable-silent-rules less verbose build output (undo: "make V=1") 1529 --disable-silent-rules verbose build output (undo: "make V=0") 1530 --enable-shared[=PKGS] build shared libraries [default=yes] 1531 --enable-static[=PKGS] build static libraries [default=yes] 1532 --enable-fast-install[=PKGS] 1533 optimize for fast installation [default=yes] 1534 --enable-dependency-tracking 1535 do not reject slow dependency extractors 1536 --disable-dependency-tracking 1537 speeds up one-time build 1538 --disable-libtool-lock avoid locking (might break parallel builds) 1539 --disable-selective-werror 1540 Turn off selective compiler errors. (default: 1541 enabled) 1542 --enable-strict-compilation 1543 Enable all warnings from compiler and make them 1544 errors (default: disabled) 1545 --enable-docs Enable building the documentation (default: yes) 1546 --enable-specs Enable building the specs (default: yes) 1547 --enable-malloc0returnsnull 1548 malloc(0) returns NULL (default: auto) 1549 1550Optional Packages: 1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1554 both] 1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1556 --with-sysroot=DIR Search for dependent libraries within DIR 1557 (or the compiler's sysroot if not specified). 1558 --with-xmlto Use xmlto to regenerate documentation (default: 1559 auto) 1560 --with-fop Use fop to regenerate documentation (default: auto) 1561 --with-xsltproc Use xsltproc for the transformation of XML documents 1562 (default: auto) 1563 --with-asciidoc Use asciidoc to regenerate documentation (default: 1564 auto) 1565 1566Some influential environment variables: 1567 CC C compiler command 1568 CFLAGS C compiler flags 1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1570 nonstandard directory <lib dir> 1571 LIBS libraries to pass to the linker, e.g. -l<library> 1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1573 you have headers in a nonstandard directory <include dir> 1574 CPP C preprocessor 1575 PKG_CONFIG path to pkg-config utility 1576 PKG_CONFIG_PATH 1577 directories to add to pkg-config's search path 1578 PKG_CONFIG_LIBDIR 1579 path overriding pkg-config's built-in search path 1580 XMLTO Path to xmlto command 1581 FOP Path to fop command 1582 XSLTPROC Path to xsltproc command 1583 ASCIIDOC Path to asciidoc command 1584 XI_CFLAGS C compiler flags for XI, overriding pkg-config 1585 XI_LIBS linker flags for XI, overriding pkg-config 1586 XFIXES_CFLAGS 1587 C compiler flags for XFIXES, overriding pkg-config 1588 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config 1589 1590Use these variables to override the choices made by `configure' or to help 1591it to find libraries and programs with nonstandard names/locations. 1592 1593Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1594_ACEOF 1595ac_status=$? 1596fi 1597 1598if test "$ac_init_help" = "recursive"; then 1599 # If there are subdirs, report their specific --help. 1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1601 test -d "$ac_dir" || 1602 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1603 continue 1604 ac_builddir=. 1605 1606case "$ac_dir" in 1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1608*) 1609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1610 # A ".." for each directory in $ac_dir_suffix. 1611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1612 case $ac_top_builddir_sub in 1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1615 esac ;; 1616esac 1617ac_abs_top_builddir=$ac_pwd 1618ac_abs_builddir=$ac_pwd$ac_dir_suffix 1619# for backward compatibility: 1620ac_top_builddir=$ac_top_build_prefix 1621 1622case $srcdir in 1623 .) # We are building in place. 1624 ac_srcdir=. 1625 ac_top_srcdir=$ac_top_builddir_sub 1626 ac_abs_top_srcdir=$ac_pwd ;; 1627 [\\/]* | ?:[\\/]* ) # Absolute name. 1628 ac_srcdir=$srcdir$ac_dir_suffix; 1629 ac_top_srcdir=$srcdir 1630 ac_abs_top_srcdir=$srcdir ;; 1631 *) # Relative name. 1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1633 ac_top_srcdir=$ac_top_build_prefix$srcdir 1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1635esac 1636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1637 1638 cd "$ac_dir" || { ac_status=$?; continue; } 1639 # Check for guested configure. 1640 if test -f "$ac_srcdir/configure.gnu"; then 1641 echo && 1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1643 elif test -f "$ac_srcdir/configure"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure" --help=recursive 1646 else 1647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1648 fi || ac_status=$? 1649 cd "$ac_pwd" || { ac_status=$?; break; } 1650 done 1651fi 1652 1653test -n "$ac_init_help" && exit $ac_status 1654if $ac_init_version; then 1655 cat <<\_ACEOF 1656libXi configure 1.7.3 1657generated by GNU Autoconf 2.69 1658 1659Copyright (C) 2012 Free Software Foundation, Inc. 1660This configure script is free software; the Free Software Foundation 1661gives unlimited permission to copy, distribute and modify it. 1662_ACEOF 1663 exit 1664fi 1665 1666## ------------------------ ## 1667## Autoconf initialization. ## 1668## ------------------------ ## 1669 1670# ac_fn_c_try_compile LINENO 1671# -------------------------- 1672# Try to compile conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_compile () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 rm -f conftest.$ac_objext 1677 if { { ac_try="$ac_compile" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_compile") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { 1693 test -z "$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 } && test -s conftest.$ac_objext; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_compile 1707 1708# ac_fn_c_try_link LINENO 1709# ----------------------- 1710# Try to link conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_link () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext conftest$ac_exeext 1715 if { { ac_try="$ac_link" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_link") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest$ac_exeext && { 1734 test "$cross_compiling" = yes || 1735 test -x conftest$ac_exeext 1736 }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1746 # interfere with the next link command; also delete a directory that is 1747 # left behind by Apple's compiler. We do this before executing the actions. 1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_c_try_link 1753 1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1755# ------------------------------------------------------- 1756# Tests whether HEADER exists and can be compiled using the include files in 1757# INCLUDES, setting the cache variable VAR accordingly. 1758ac_fn_c_check_header_compile () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762$as_echo_n "checking for $2... " >&6; } 1763if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765else 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768$4 1769#include <$2> 1770_ACEOF 1771if ac_fn_c_try_compile "$LINENO"; then : 1772 eval "$3=yes" 1773else 1774 eval "$3=no" 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_header_compile 1784 1785# ac_fn_c_try_cpp LINENO 1786# ---------------------- 1787# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1788ac_fn_c_try_cpp () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if { { ac_try="$ac_cpp conftest.$ac_ext" 1792case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1799 ac_status=$? 1800 if test -s conftest.err; then 1801 grep -v '^ *+' conftest.err >conftest.er1 1802 cat conftest.er1 >&5 1803 mv -f conftest.er1 conftest.err 1804 fi 1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1806 test $ac_status = 0; } > conftest.i && { 1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1808 test ! -s conftest.err 1809 }; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: failed program was:" >&5 1813sed 's/^/| /' conftest.$ac_ext >&5 1814 1815 ac_retval=1 1816fi 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 as_fn_set_status $ac_retval 1819 1820} # ac_fn_c_try_cpp 1821 1822# ac_fn_c_try_run LINENO 1823# ---------------------- 1824# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1825# that executables *can* be run. 1826ac_fn_c_try_run () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 if { { ac_try="$ac_link" 1830case "(($ac_try" in 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1832 *) ac_try_echo=$ac_try;; 1833esac 1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1835$as_echo "$ac_try_echo"; } >&5 1836 (eval "$ac_link") 2>&5 1837 ac_status=$? 1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1840 { { case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_try") 2>&5 1847 ac_status=$? 1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1849 test $ac_status = 0; }; }; then : 1850 ac_retval=0 1851else 1852 $as_echo "$as_me: program exited with status $ac_status" >&5 1853 $as_echo "$as_me: failed program was:" >&5 1854sed 's/^/| /' conftest.$ac_ext >&5 1855 1856 ac_retval=$ac_status 1857fi 1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 as_fn_set_status $ac_retval 1861 1862} # ac_fn_c_try_run 1863 1864# ac_fn_c_check_func LINENO FUNC VAR 1865# ---------------------------------- 1866# Tests whether FUNC exists, setting the cache variable VAR accordingly 1867ac_fn_c_check_func () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874else 1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1879#define $2 innocuous_$2 1880 1881/* System header to define __stub macros and hopefully few prototypes, 1882 which can conflict with char $2 (); below. 1883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1884 <limits.h> exists even on freestanding compilers. */ 1885 1886#ifdef __STDC__ 1887# include <limits.h> 1888#else 1889# include <assert.h> 1890#endif 1891 1892#undef $2 1893 1894/* Override any GCC internal prototype to avoid an error. 1895 Use char because int might match the return type of a GCC 1896 builtin and then its argument prototype would still apply. */ 1897#ifdef __cplusplus 1898extern "C" 1899#endif 1900char $2 (); 1901/* The GNU C library defines this for functions which it implements 1902 to always fail with ENOSYS. Some functions are actually named 1903 something starting with __ and the normal name is an alias. */ 1904#if defined __stub_$2 || defined __stub___$2 1905choke me 1906#endif 1907 1908int 1909main () 1910{ 1911return $2 (); 1912 ; 1913 return 0; 1914} 1915_ACEOF 1916if ac_fn_c_try_link "$LINENO"; then : 1917 eval "$3=yes" 1918else 1919 eval "$3=no" 1920fi 1921rm -f core conftest.err conftest.$ac_objext \ 1922 conftest$ac_exeext conftest.$ac_ext 1923fi 1924eval ac_res=\$$3 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1926$as_echo "$ac_res" >&6; } 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 1929} # ac_fn_c_check_func 1930 1931# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1932# --------------------------------------------- 1933# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1934# accordingly. 1935ac_fn_c_check_decl () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 as_decl_name=`echo $2|sed 's/ *(.*//'` 1939 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1941$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1942if eval \${$3+:} false; then : 1943 $as_echo_n "(cached) " >&6 1944else 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1946/* end confdefs.h. */ 1947$4 1948int 1949main () 1950{ 1951#ifndef $as_decl_name 1952#ifdef __cplusplus 1953 (void) $as_decl_use; 1954#else 1955 (void) $as_decl_name; 1956#endif 1957#endif 1958 1959 ; 1960 return 0; 1961} 1962_ACEOF 1963if ac_fn_c_try_compile "$LINENO"; then : 1964 eval "$3=yes" 1965else 1966 eval "$3=no" 1967fi 1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1969fi 1970eval ac_res=\$$3 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972$as_echo "$ac_res" >&6; } 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 1975} # ac_fn_c_check_decl 1976cat >config.log <<_ACEOF 1977This file contains any messages produced by compilers while 1978running configure, to aid debugging if configure makes a mistake. 1979 1980It was created by libXi $as_me 1.7.3, which was 1981generated by GNU Autoconf 2.69. Invocation command line was 1982 1983 $ $0 $@ 1984 1985_ACEOF 1986exec 5>>config.log 1987{ 1988cat <<_ASUNAME 1989## --------- ## 1990## Platform. ## 1991## --------- ## 1992 1993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1994uname -m = `(uname -m) 2>/dev/null || echo unknown` 1995uname -r = `(uname -r) 2>/dev/null || echo unknown` 1996uname -s = `(uname -s) 2>/dev/null || echo unknown` 1997uname -v = `(uname -v) 2>/dev/null || echo unknown` 1998 1999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2000/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2001 2002/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2003/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2005/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2006/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2007/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2008/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2009 2010_ASUNAME 2011 2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2013for as_dir in $PATH 2014do 2015 IFS=$as_save_IFS 2016 test -z "$as_dir" && as_dir=. 2017 $as_echo "PATH: $as_dir" 2018 done 2019IFS=$as_save_IFS 2020 2021} >&5 2022 2023cat >&5 <<_ACEOF 2024 2025 2026## ----------- ## 2027## Core tests. ## 2028## ----------- ## 2029 2030_ACEOF 2031 2032 2033# Keep a trace of the command line. 2034# Strip out --no-create and --no-recursion so they do not pile up. 2035# Strip out --silent because we don't want to record it for future runs. 2036# Also quote any args containing shell meta-characters. 2037# Make two passes to allow for proper duplicate-argument suppression. 2038ac_configure_args= 2039ac_configure_args0= 2040ac_configure_args1= 2041ac_must_keep_next=false 2042for ac_pass in 1 2 2043do 2044 for ac_arg 2045 do 2046 case $ac_arg in 2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2049 | -silent | --silent | --silen | --sile | --sil) 2050 continue ;; 2051 *\'*) 2052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2053 esac 2054 case $ac_pass in 2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2056 2) 2057 as_fn_append ac_configure_args1 " '$ac_arg'" 2058 if test $ac_must_keep_next = true; then 2059 ac_must_keep_next=false # Got value, back to normal. 2060 else 2061 case $ac_arg in 2062 *=* | --config-cache | -C | -disable-* | --disable-* \ 2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2065 | -with-* | --with-* | -without-* | --without-* | --x) 2066 case "$ac_configure_args0 " in 2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2068 esac 2069 ;; 2070 -* ) ac_must_keep_next=true ;; 2071 esac 2072 fi 2073 as_fn_append ac_configure_args " '$ac_arg'" 2074 ;; 2075 esac 2076 done 2077done 2078{ ac_configure_args0=; unset ac_configure_args0;} 2079{ ac_configure_args1=; unset ac_configure_args1;} 2080 2081# When interrupted or exit'd, cleanup temporary files, and complete 2082# config.log. We remove comments because anyway the quotes in there 2083# would cause problems or look ugly. 2084# WARNING: Use '\'' to represent an apostrophe within the trap. 2085# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2086trap 'exit_status=$? 2087 # Save into config.log some information that might help in debugging. 2088 { 2089 echo 2090 2091 $as_echo "## ---------------- ## 2092## Cache variables. ## 2093## ---------------- ##" 2094 echo 2095 # The following way of writing the cache mishandles newlines in values, 2096( 2097 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2098 eval ac_val=\$$ac_var 2099 case $ac_val in #( 2100 *${as_nl}*) 2101 case $ac_var in #( 2102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2103$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2104 esac 2105 case $ac_var in #( 2106 _ | IFS | as_nl) ;; #( 2107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2108 *) { eval $ac_var=; unset $ac_var;} ;; 2109 esac ;; 2110 esac 2111 done 2112 (set) 2>&1 | 2113 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2114 *${as_nl}ac_space=\ *) 2115 sed -n \ 2116 "s/'\''/'\''\\\\'\'''\''/g; 2117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2118 ;; #( 2119 *) 2120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2121 ;; 2122 esac | 2123 sort 2124) 2125 echo 2126 2127 $as_echo "## ----------------- ## 2128## Output variables. ## 2129## ----------------- ##" 2130 echo 2131 for ac_var in $ac_subst_vars 2132 do 2133 eval ac_val=\$$ac_var 2134 case $ac_val in 2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2136 esac 2137 $as_echo "$ac_var='\''$ac_val'\''" 2138 done | sort 2139 echo 2140 2141 if test -n "$ac_subst_files"; then 2142 $as_echo "## ------------------- ## 2143## File substitutions. ## 2144## ------------------- ##" 2145 echo 2146 for ac_var in $ac_subst_files 2147 do 2148 eval ac_val=\$$ac_var 2149 case $ac_val in 2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2151 esac 2152 $as_echo "$ac_var='\''$ac_val'\''" 2153 done | sort 2154 echo 2155 fi 2156 2157 if test -s confdefs.h; then 2158 $as_echo "## ----------- ## 2159## confdefs.h. ## 2160## ----------- ##" 2161 echo 2162 cat confdefs.h 2163 echo 2164 fi 2165 test "$ac_signal" != 0 && 2166 $as_echo "$as_me: caught signal $ac_signal" 2167 $as_echo "$as_me: exit $exit_status" 2168 } >&5 2169 rm -f core *.core core.conftest.* && 2170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2171 exit $exit_status 2172' 0 2173for ac_signal in 1 2 13 15; do 2174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2175done 2176ac_signal=0 2177 2178# confdefs.h avoids OS command line length limits that DEFS can exceed. 2179rm -f -r conftest* confdefs.h 2180 2181$as_echo "/* confdefs.h */" > confdefs.h 2182 2183# Predefined preprocessor variables. 2184 2185cat >>confdefs.h <<_ACEOF 2186#define PACKAGE_NAME "$PACKAGE_NAME" 2187_ACEOF 2188 2189cat >>confdefs.h <<_ACEOF 2190#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2191_ACEOF 2192 2193cat >>confdefs.h <<_ACEOF 2194#define PACKAGE_VERSION "$PACKAGE_VERSION" 2195_ACEOF 2196 2197cat >>confdefs.h <<_ACEOF 2198#define PACKAGE_STRING "$PACKAGE_STRING" 2199_ACEOF 2200 2201cat >>confdefs.h <<_ACEOF 2202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2203_ACEOF 2204 2205cat >>confdefs.h <<_ACEOF 2206#define PACKAGE_URL "$PACKAGE_URL" 2207_ACEOF 2208 2209 2210# Let the site file select an alternate cache file if it wants to. 2211# Prefer an explicitly selected file to automatically selected ones. 2212ac_site_file1=NONE 2213ac_site_file2=NONE 2214if test -n "$CONFIG_SITE"; then 2215 # We do not want a PATH search for config.site. 2216 case $CONFIG_SITE in #(( 2217 -*) ac_site_file1=./$CONFIG_SITE;; 2218 */*) ac_site_file1=$CONFIG_SITE;; 2219 *) ac_site_file1=./$CONFIG_SITE;; 2220 esac 2221elif test "x$prefix" != xNONE; then 2222 ac_site_file1=$prefix/share/config.site 2223 ac_site_file2=$prefix/etc/config.site 2224else 2225 ac_site_file1=$ac_default_prefix/share/config.site 2226 ac_site_file2=$ac_default_prefix/etc/config.site 2227fi 2228for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2229do 2230 test "x$ac_site_file" = xNONE && continue 2231 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2233$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2234 sed 's/^/| /' "$ac_site_file" >&5 2235 . "$ac_site_file" \ 2236 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2238as_fn_error $? "failed to load site script $ac_site_file 2239See \`config.log' for more details" "$LINENO" 5; } 2240 fi 2241done 2242 2243if test -r "$cache_file"; then 2244 # Some versions of bash will fail to source /dev/null (special files 2245 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2246 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2248$as_echo "$as_me: loading cache $cache_file" >&6;} 2249 case $cache_file in 2250 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2251 *) . "./$cache_file";; 2252 esac 2253 fi 2254else 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2256$as_echo "$as_me: creating cache $cache_file" >&6;} 2257 >$cache_file 2258fi 2259 2260# Check that the precious variables saved in the cache have kept the same 2261# value. 2262ac_cache_corrupted=false 2263for ac_var in $ac_precious_vars; do 2264 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2265 eval ac_new_set=\$ac_env_${ac_var}_set 2266 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2267 eval ac_new_val=\$ac_env_${ac_var}_value 2268 case $ac_old_set,$ac_new_set in 2269 set,) 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2271$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2272 ac_cache_corrupted=: ;; 2273 ,set) 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2275$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2276 ac_cache_corrupted=: ;; 2277 ,);; 2278 *) 2279 if test "x$ac_old_val" != "x$ac_new_val"; then 2280 # differences in whitespace do not lead to failure. 2281 ac_old_val_w=`echo x $ac_old_val` 2282 ac_new_val_w=`echo x $ac_new_val` 2283 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2285$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2286 ac_cache_corrupted=: 2287 else 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2289$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2290 eval $ac_var=\$ac_old_val 2291 fi 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2293$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2295$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2296 fi;; 2297 esac 2298 # Pass precious variables to config.status. 2299 if test "$ac_new_set" = set; then 2300 case $ac_new_val in 2301 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2302 *) ac_arg=$ac_var=$ac_new_val ;; 2303 esac 2304 case " $ac_configure_args " in 2305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2306 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2307 esac 2308 fi 2309done 2310if $ac_cache_corrupted; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2314$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2315 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2316fi 2317## -------------------- ## 2318## Main body of script. ## 2319## -------------------- ## 2320 2321ac_ext=c 2322ac_cpp='$CPP $CPPFLAGS' 2323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2325ac_compiler_gnu=$ac_cv_c_compiler_gnu 2326 2327 2328 2329ac_config_headers="$ac_config_headers src/config.h" 2330 2331 2332# Initialize Automake 2333am__api_version='1.13' 2334 2335ac_aux_dir= 2336for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2337 if test -f "$ac_dir/install-sh"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$ac_aux_dir/install-sh -c" 2340 break 2341 elif test -f "$ac_dir/install.sh"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/install.sh -c" 2344 break 2345 elif test -f "$ac_dir/shtool"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/shtool install -c" 2348 break 2349 fi 2350done 2351if test -z "$ac_aux_dir"; then 2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2353fi 2354 2355# These three variables are undocumented and unsupported, 2356# and are intended to be withdrawn in a future Autoconf release. 2357# They can cause serious problems if a builder's source tree is in a directory 2358# whose full name contains unusual characters. 2359ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2360ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2361ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2362 2363 2364# Find a good install program. We prefer a C program (faster), 2365# so one script is as good as another. But avoid the broken or 2366# incompatible versions: 2367# SysV /etc/install, /usr/sbin/install 2368# SunOS /usr/etc/install 2369# IRIX /sbin/install 2370# AIX /bin/install 2371# AmigaOS /C/install, which installs bootblocks on floppy discs 2372# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2373# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2374# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2375# OS/2's system install, which has a completely different semantic 2376# ./install, which can be erroneously created by make from ./install.sh. 2377# Reject install programs that cannot install multiple files. 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2379$as_echo_n "checking for a BSD-compatible install... " >&6; } 2380if test -z "$INSTALL"; then 2381if ${ac_cv_path_install+:} false; then : 2382 $as_echo_n "(cached) " >&6 2383else 2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2385for as_dir in $PATH 2386do 2387 IFS=$as_save_IFS 2388 test -z "$as_dir" && as_dir=. 2389 # Account for people who put trailing slashes in PATH elements. 2390case $as_dir/ in #(( 2391 ./ | .// | /[cC]/* | \ 2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2394 /usr/ucb/* ) ;; 2395 *) 2396 # OSF1 and SCO ODT 3.0 have their own names for install. 2397 # Don't use installbsd from OSF since it installs stuff as root 2398 # by default. 2399 for ac_prog in ginstall scoinst install; do 2400 for ac_exec_ext in '' $ac_executable_extensions; do 2401 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2402 if test $ac_prog = install && 2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2404 # AIX install. It has an incompatible calling convention. 2405 : 2406 elif test $ac_prog = install && 2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2408 # program-specific install script used by HP pwplus--don't use. 2409 : 2410 else 2411 rm -rf conftest.one conftest.two conftest.dir 2412 echo one > conftest.one 2413 echo two > conftest.two 2414 mkdir conftest.dir 2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2416 test -s conftest.one && test -s conftest.two && 2417 test -s conftest.dir/conftest.one && 2418 test -s conftest.dir/conftest.two 2419 then 2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2421 break 3 2422 fi 2423 fi 2424 fi 2425 done 2426 done 2427 ;; 2428esac 2429 2430 done 2431IFS=$as_save_IFS 2432 2433rm -rf conftest.one conftest.two conftest.dir 2434 2435fi 2436 if test "${ac_cv_path_install+set}" = set; then 2437 INSTALL=$ac_cv_path_install 2438 else 2439 # As a last resort, use the slow shell script. Don't cache a 2440 # value for INSTALL within a source directory, because that will 2441 # break other packages using the cache if that directory is 2442 # removed, or if the value is a relative name. 2443 INSTALL=$ac_install_sh 2444 fi 2445fi 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2447$as_echo "$INSTALL" >&6; } 2448 2449# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2450# It thinks the first close brace ends the variable substitution. 2451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2452 2453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2454 2455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2456 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2458$as_echo_n "checking whether build environment is sane... " >&6; } 2459# Reject unsafe characters in $srcdir or the absolute working directory 2460# name. Accept space and tab only in the latter. 2461am_lf=' 2462' 2463case `pwd` in 2464 *[\\\"\#\$\&\'\`$am_lf]*) 2465 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2466esac 2467case $srcdir in 2468 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2469 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2470esac 2471 2472# Do 'set' in a subshell so we don't clobber the current shell's 2473# arguments. Must try -L first in case configure is actually a 2474# symlink; some systems play weird games with the mod time of symlinks 2475# (eg FreeBSD returns the mod time of the symlink's containing 2476# directory). 2477if ( 2478 am_has_slept=no 2479 for am_try in 1 2; do 2480 echo "timestamp, slept: $am_has_slept" > conftest.file 2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2482 if test "$*" = "X"; then 2483 # -L didn't work. 2484 set X `ls -t "$srcdir/configure" conftest.file` 2485 fi 2486 if test "$*" != "X $srcdir/configure conftest.file" \ 2487 && test "$*" != "X conftest.file $srcdir/configure"; then 2488 2489 # If neither matched, then we have a broken ls. This can happen 2490 # if, for instance, CONFIG_SHELL is bash and it inherits a 2491 # broken ls alias from the environment. This has actually 2492 # happened. Such a system could not be considered "sane". 2493 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2494 alias in your environment" "$LINENO" 5 2495 fi 2496 if test "$2" = conftest.file || test $am_try -eq 2; then 2497 break 2498 fi 2499 # Just in case. 2500 sleep 1 2501 am_has_slept=yes 2502 done 2503 test "$2" = conftest.file 2504 ) 2505then 2506 # Ok. 2507 : 2508else 2509 as_fn_error $? "newly created file is older than distributed files! 2510Check your system clock" "$LINENO" 5 2511fi 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2513$as_echo "yes" >&6; } 2514# If we didn't sleep, we still need to ensure time stamps of config.status and 2515# generated files are strictly newer. 2516am_sleep_pid= 2517if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2518 ( sleep 1 ) & 2519 am_sleep_pid=$! 2520fi 2521 2522rm -f conftest.file 2523 2524test "$program_prefix" != NONE && 2525 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2526# Use a double $ so make ignores it. 2527test "$program_suffix" != NONE && 2528 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2529# Double any \ or $. 2530# By default was `s,x,x', remove it if useless. 2531ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2532program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2533 2534# expand $ac_aux_dir to an absolute path 2535am_aux_dir=`cd $ac_aux_dir && pwd` 2536 2537if test x"${MISSING+set}" != xset; then 2538 case $am_aux_dir in 2539 *\ * | *\ *) 2540 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2541 *) 2542 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2543 esac 2544fi 2545# Use eval to expand $SHELL 2546if eval "$MISSING --is-lightweight"; then 2547 am_missing_run="$MISSING " 2548else 2549 am_missing_run= 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2551$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2552fi 2553 2554if test x"${install_sh}" != xset; then 2555 case $am_aux_dir in 2556 *\ * | *\ *) 2557 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2558 *) 2559 install_sh="\${SHELL} $am_aux_dir/install-sh" 2560 esac 2561fi 2562 2563# Installed binaries are usually stripped using 'strip' when the user 2564# run "make install-strip". However 'strip' might not be the right 2565# tool to use in cross-compilation environments, therefore Automake 2566# will honor the 'STRIP' environment variable to overrule this program. 2567if test "$cross_compiling" != no; then 2568 if test -n "$ac_tool_prefix"; then 2569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2570set dummy ${ac_tool_prefix}strip; ac_word=$2 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2572$as_echo_n "checking for $ac_word... " >&6; } 2573if ${ac_cv_prog_STRIP+:} false; then : 2574 $as_echo_n "(cached) " >&6 2575else 2576 if test -n "$STRIP"; then 2577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2578else 2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 test -z "$as_dir" && as_dir=. 2584 for ac_exec_ext in '' $ac_executable_extensions; do 2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2586 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2588 break 2 2589 fi 2590done 2591 done 2592IFS=$as_save_IFS 2593 2594fi 2595fi 2596STRIP=$ac_cv_prog_STRIP 2597if test -n "$STRIP"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2599$as_echo "$STRIP" >&6; } 2600else 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2602$as_echo "no" >&6; } 2603fi 2604 2605 2606fi 2607if test -z "$ac_cv_prog_STRIP"; then 2608 ac_ct_STRIP=$STRIP 2609 # Extract the first word of "strip", so it can be a program name with args. 2610set dummy strip; ac_word=$2 2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2612$as_echo_n "checking for $ac_word... " >&6; } 2613if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2614 $as_echo_n "(cached) " >&6 2615else 2616 if test -n "$ac_ct_STRIP"; then 2617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2618else 2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620for as_dir in $PATH 2621do 2622 IFS=$as_save_IFS 2623 test -z "$as_dir" && as_dir=. 2624 for ac_exec_ext in '' $ac_executable_extensions; do 2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2626 ac_cv_prog_ac_ct_STRIP="strip" 2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2628 break 2 2629 fi 2630done 2631 done 2632IFS=$as_save_IFS 2633 2634fi 2635fi 2636ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2637if test -n "$ac_ct_STRIP"; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2639$as_echo "$ac_ct_STRIP" >&6; } 2640else 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2642$as_echo "no" >&6; } 2643fi 2644 2645 if test "x$ac_ct_STRIP" = x; then 2646 STRIP=":" 2647 else 2648 case $cross_compiling:$ac_tool_warned in 2649yes:) 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2652ac_tool_warned=yes ;; 2653esac 2654 STRIP=$ac_ct_STRIP 2655 fi 2656else 2657 STRIP="$ac_cv_prog_STRIP" 2658fi 2659 2660fi 2661INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2662 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2664$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2665if test -z "$MKDIR_P"; then 2666 if ${ac_cv_path_mkdir+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_prog in mkdir gmkdir; do 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2677 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2678 'mkdir (GNU coreutils) '* | \ 2679 'mkdir (coreutils) '* | \ 2680 'mkdir (fileutils) '4.1*) 2681 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2682 break 3;; 2683 esac 2684 done 2685 done 2686 done 2687IFS=$as_save_IFS 2688 2689fi 2690 2691 test -d ./--version && rmdir ./--version 2692 if test "${ac_cv_path_mkdir+set}" = set; then 2693 MKDIR_P="$ac_cv_path_mkdir -p" 2694 else 2695 # As a last resort, use the slow shell script. Don't cache a 2696 # value for MKDIR_P within a source directory, because that will 2697 # break other packages using the cache if that directory is 2698 # removed, or if the value is a relative name. 2699 MKDIR_P="$ac_install_sh -d" 2700 fi 2701fi 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2703$as_echo "$MKDIR_P" >&6; } 2704 2705for ac_prog in gawk mawk nawk awk 2706do 2707 # Extract the first word of "$ac_prog", so it can be a program name with args. 2708set dummy $ac_prog; ac_word=$2 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2710$as_echo_n "checking for $ac_word... " >&6; } 2711if ${ac_cv_prog_AWK+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 if test -n "$AWK"; then 2715 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2716else 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 test -z "$as_dir" && as_dir=. 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2724 ac_cv_prog_AWK="$ac_prog" 2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2726 break 2 2727 fi 2728done 2729 done 2730IFS=$as_save_IFS 2731 2732fi 2733fi 2734AWK=$ac_cv_prog_AWK 2735if test -n "$AWK"; then 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2737$as_echo "$AWK" >&6; } 2738else 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2740$as_echo "no" >&6; } 2741fi 2742 2743 2744 test -n "$AWK" && break 2745done 2746 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2748$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2749set x ${MAKE-make} 2750ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2751if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2752 $as_echo_n "(cached) " >&6 2753else 2754 cat >conftest.make <<\_ACEOF 2755SHELL = /bin/sh 2756all: 2757 @echo '@@@%%%=$(MAKE)=@@@%%%' 2758_ACEOF 2759# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2760case `${MAKE-make} -f conftest.make 2>/dev/null` in 2761 *@@@%%%=?*=@@@%%%*) 2762 eval ac_cv_prog_make_${ac_make}_set=yes;; 2763 *) 2764 eval ac_cv_prog_make_${ac_make}_set=no;; 2765esac 2766rm -f conftest.make 2767fi 2768if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2770$as_echo "yes" >&6; } 2771 SET_MAKE= 2772else 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2774$as_echo "no" >&6; } 2775 SET_MAKE="MAKE=${MAKE-make}" 2776fi 2777 2778rm -rf .tst 2>/dev/null 2779mkdir .tst 2>/dev/null 2780if test -d .tst; then 2781 am__leading_dot=. 2782else 2783 am__leading_dot=_ 2784fi 2785rmdir .tst 2>/dev/null 2786 2787# Check whether --enable-silent-rules was given. 2788if test "${enable_silent_rules+set}" = set; then : 2789 enableval=$enable_silent_rules; 2790fi 2791 2792case $enable_silent_rules in # ((( 2793 yes) AM_DEFAULT_VERBOSITY=0;; 2794 no) AM_DEFAULT_VERBOSITY=1;; 2795 *) AM_DEFAULT_VERBOSITY=1;; 2796esac 2797am_make=${MAKE-make} 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2799$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2800if ${am_cv_make_support_nested_variables+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 if $as_echo 'TRUE=$(BAR$(V)) 2804BAR0=false 2805BAR1=true 2806V=1 2807am__doit: 2808 @$(TRUE) 2809.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2810 am_cv_make_support_nested_variables=yes 2811else 2812 am_cv_make_support_nested_variables=no 2813fi 2814fi 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2816$as_echo "$am_cv_make_support_nested_variables" >&6; } 2817if test $am_cv_make_support_nested_variables = yes; then 2818 AM_V='$(V)' 2819 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2820else 2821 AM_V=$AM_DEFAULT_VERBOSITY 2822 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2823fi 2824AM_BACKSLASH='\' 2825 2826if test "`cd $srcdir && pwd`" != "`pwd`"; then 2827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2828 # is not polluted with repeated "-I." 2829 am__isrc=' -I$(srcdir)' 2830 # test to see if srcdir already configured 2831 if test -f $srcdir/config.status; then 2832 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2833 fi 2834fi 2835 2836# test whether we have cygpath 2837if test -z "$CYGPATH_W"; then 2838 if (cygpath --version) >/dev/null 2>/dev/null; then 2839 CYGPATH_W='cygpath -w' 2840 else 2841 CYGPATH_W=echo 2842 fi 2843fi 2844 2845 2846# Define the identity of the package. 2847 PACKAGE='libXi' 2848 VERSION='1.7.3' 2849 2850 2851cat >>confdefs.h <<_ACEOF 2852#define PACKAGE "$PACKAGE" 2853_ACEOF 2854 2855 2856cat >>confdefs.h <<_ACEOF 2857#define VERSION "$VERSION" 2858_ACEOF 2859 2860# Some tools Automake needs. 2861 2862ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2863 2864 2865AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2866 2867 2868AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2869 2870 2871AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2872 2873 2874MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2875 2876# For better backward compatibility. To be removed once Automake 1.9.x 2877# dies out for good. For more background, see: 2878# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2879# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2880mkdir_p='$(MKDIR_P)' 2881 2882# We need awk for the "check" target. The system "awk" is bad on 2883# some platforms. 2884# Always define AMTAR for backward compatibility. Yes, it's still used 2885# in the wild :-( We should find a proper way to deprecate it ... 2886AMTAR='$${TAR-tar}' 2887 2888 2889# We'll loop over all known methods to create a tar archive until one works. 2890_am_tools='gnutar pax cpio none' 2891 2892am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2893 2894 2895 2896 2897 2898 2899 2900# Initialize libtool 2901case `pwd` in 2902 *\ * | *\ *) 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2904$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2905esac 2906 2907 2908 2909macro_version='2.4.2' 2910macro_revision='1.3337' 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924ltmain="$ac_aux_dir/ltmain.sh" 2925 2926# Make sure we can run config.sub. 2927$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2928 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2929 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2931$as_echo_n "checking build system type... " >&6; } 2932if ${ac_cv_build+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 ac_build_alias=$build_alias 2936test "x$ac_build_alias" = x && 2937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2938test "x$ac_build_alias" = x && 2939 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2940ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2941 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2942 2943fi 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2945$as_echo "$ac_cv_build" >&6; } 2946case $ac_cv_build in 2947*-*-*) ;; 2948*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2949esac 2950build=$ac_cv_build 2951ac_save_IFS=$IFS; IFS='-' 2952set x $ac_cv_build 2953shift 2954build_cpu=$1 2955build_vendor=$2 2956shift; shift 2957# Remember, the first character of IFS is used to create $*, 2958# except with old shells: 2959build_os=$* 2960IFS=$ac_save_IFS 2961case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2962 2963 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2965$as_echo_n "checking host system type... " >&6; } 2966if ${ac_cv_host+:} false; then : 2967 $as_echo_n "(cached) " >&6 2968else 2969 if test "x$host_alias" = x; then 2970 ac_cv_host=$ac_cv_build 2971else 2972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2973 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2974fi 2975 2976fi 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2978$as_echo "$ac_cv_host" >&6; } 2979case $ac_cv_host in 2980*-*-*) ;; 2981*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2982esac 2983host=$ac_cv_host 2984ac_save_IFS=$IFS; IFS='-' 2985set x $ac_cv_host 2986shift 2987host_cpu=$1 2988host_vendor=$2 2989shift; shift 2990# Remember, the first character of IFS is used to create $*, 2991# except with old shells: 2992host_os=$* 2993IFS=$ac_save_IFS 2994case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2995 2996 2997# Backslashify metacharacters that are still active within 2998# double-quoted strings. 2999sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3000 3001# Same as above, but do not quote variable references. 3002double_quote_subst='s/\(["`\\]\)/\\\1/g' 3003 3004# Sed substitution to delay expansion of an escaped shell variable in a 3005# double_quote_subst'ed string. 3006delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3007 3008# Sed substitution to delay expansion of an escaped single quote. 3009delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3010 3011# Sed substitution to avoid accidental globbing in evaled expressions 3012no_glob_subst='s/\*/\\\*/g' 3013 3014ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3015ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3016ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3017 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3019$as_echo_n "checking how to print strings... " >&6; } 3020# Test print first, because it will be a builtin if present. 3021if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3022 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3023 ECHO='print -r --' 3024elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3025 ECHO='printf %s\n' 3026else 3027 # Use this function as a fallback that always works. 3028 func_fallback_echo () 3029 { 3030 eval 'cat <<_LTECHO_EOF 3031$1 3032_LTECHO_EOF' 3033 } 3034 ECHO='func_fallback_echo' 3035fi 3036 3037# func_echo_all arg... 3038# Invoke $ECHO with all args, space-separated. 3039func_echo_all () 3040{ 3041 $ECHO "" 3042} 3043 3044case "$ECHO" in 3045 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3046$as_echo "printf" >&6; } ;; 3047 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3048$as_echo "print -r" >&6; } ;; 3049 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3050$as_echo "cat" >&6; } ;; 3051esac 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066DEPDIR="${am__leading_dot}deps" 3067 3068ac_config_commands="$ac_config_commands depfiles" 3069 3070 3071am_make=${MAKE-make} 3072cat > confinc << 'END' 3073am__doit: 3074 @echo this is the am__doit target 3075.PHONY: am__doit 3076END 3077# If we don't find an include directive, just comment out the code. 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3079$as_echo_n "checking for style of include used by $am_make... " >&6; } 3080am__include="#" 3081am__quote= 3082_am_result=none 3083# First try GNU make style include. 3084echo "include confinc" > confmf 3085# Ignore all kinds of additional output from 'make'. 3086case `$am_make -s -f confmf 2> /dev/null` in #( 3087*the\ am__doit\ target*) 3088 am__include=include 3089 am__quote= 3090 _am_result=GNU 3091 ;; 3092esac 3093# Now try BSD make style include. 3094if test "$am__include" = "#"; then 3095 echo '.include "confinc"' > confmf 3096 case `$am_make -s -f confmf 2> /dev/null` in #( 3097 *the\ am__doit\ target*) 3098 am__include=.include 3099 am__quote="\"" 3100 _am_result=BSD 3101 ;; 3102 esac 3103fi 3104 3105 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3107$as_echo "$_am_result" >&6; } 3108rm -f confinc confmf 3109 3110# Check whether --enable-dependency-tracking was given. 3111if test "${enable_dependency_tracking+set}" = set; then : 3112 enableval=$enable_dependency_tracking; 3113fi 3114 3115if test "x$enable_dependency_tracking" != xno; then 3116 am_depcomp="$ac_aux_dir/depcomp" 3117 AMDEPBACKSLASH='\' 3118 am__nodep='_no' 3119fi 3120 if test "x$enable_dependency_tracking" != xno; then 3121 AMDEP_TRUE= 3122 AMDEP_FALSE='#' 3123else 3124 AMDEP_TRUE='#' 3125 AMDEP_FALSE= 3126fi 3127 3128 3129ac_ext=c 3130ac_cpp='$CPP $CPPFLAGS' 3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3133ac_compiler_gnu=$ac_cv_c_compiler_gnu 3134if test -n "$ac_tool_prefix"; then 3135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3136set dummy ${ac_tool_prefix}gcc; ac_word=$2 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3138$as_echo_n "checking for $ac_word... " >&6; } 3139if ${ac_cv_prog_CC+:} false; then : 3140 $as_echo_n "(cached) " >&6 3141else 3142 if test -n "$CC"; then 3143 ac_cv_prog_CC="$CC" # Let the user override the test. 3144else 3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3146for as_dir in $PATH 3147do 3148 IFS=$as_save_IFS 3149 test -z "$as_dir" && as_dir=. 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3152 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3154 break 2 3155 fi 3156done 3157 done 3158IFS=$as_save_IFS 3159 3160fi 3161fi 3162CC=$ac_cv_prog_CC 3163if test -n "$CC"; then 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3165$as_echo "$CC" >&6; } 3166else 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3168$as_echo "no" >&6; } 3169fi 3170 3171 3172fi 3173if test -z "$ac_cv_prog_CC"; then 3174 ac_ct_CC=$CC 3175 # Extract the first word of "gcc", so it can be a program name with args. 3176set dummy gcc; ac_word=$2 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3178$as_echo_n "checking for $ac_word... " >&6; } 3179if ${ac_cv_prog_ac_ct_CC+:} false; then : 3180 $as_echo_n "(cached) " >&6 3181else 3182 if test -n "$ac_ct_CC"; then 3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3184else 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH 3187do 3188 IFS=$as_save_IFS 3189 test -z "$as_dir" && as_dir=. 3190 for ac_exec_ext in '' $ac_executable_extensions; do 3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3192 ac_cv_prog_ac_ct_CC="gcc" 3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3194 break 2 3195 fi 3196done 3197 done 3198IFS=$as_save_IFS 3199 3200fi 3201fi 3202ac_ct_CC=$ac_cv_prog_ac_ct_CC 3203if test -n "$ac_ct_CC"; then 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3205$as_echo "$ac_ct_CC" >&6; } 3206else 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208$as_echo "no" >&6; } 3209fi 3210 3211 if test "x$ac_ct_CC" = x; then 3212 CC="" 3213 else 3214 case $cross_compiling:$ac_tool_warned in 3215yes:) 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3218ac_tool_warned=yes ;; 3219esac 3220 CC=$ac_ct_CC 3221 fi 3222else 3223 CC="$ac_cv_prog_CC" 3224fi 3225 3226if test -z "$CC"; then 3227 if test -n "$ac_tool_prefix"; then 3228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3229set dummy ${ac_tool_prefix}cc; ac_word=$2 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3231$as_echo_n "checking for $ac_word... " >&6; } 3232if ${ac_cv_prog_CC+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 if test -n "$CC"; then 3236 ac_cv_prog_CC="$CC" # Let the user override the test. 3237else 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3245 ac_cv_prog_CC="${ac_tool_prefix}cc" 3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3247 break 2 3248 fi 3249done 3250 done 3251IFS=$as_save_IFS 3252 3253fi 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258$as_echo "$CC" >&6; } 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262fi 3263 3264 3265 fi 3266fi 3267if test -z "$CC"; then 3268 # Extract the first word of "cc", so it can be a program name with args. 3269set dummy cc; ac_word=$2 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3271$as_echo_n "checking for $ac_word... " >&6; } 3272if ${ac_cv_prog_CC+:} false; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 if test -n "$CC"; then 3276 ac_cv_prog_CC="$CC" # Let the user override the test. 3277else 3278 ac_prog_rejected=no 3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280for as_dir in $PATH 3281do 3282 IFS=$as_save_IFS 3283 test -z "$as_dir" && as_dir=. 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3286 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3287 ac_prog_rejected=yes 3288 continue 3289 fi 3290 ac_cv_prog_CC="cc" 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3292 break 2 3293 fi 3294done 3295 done 3296IFS=$as_save_IFS 3297 3298if test $ac_prog_rejected = yes; then 3299 # We found a bogon in the path, so make sure we never use it. 3300 set dummy $ac_cv_prog_CC 3301 shift 3302 if test $# != 0; then 3303 # We chose a different compiler from the bogus one. 3304 # However, it has the same basename, so the bogon will be chosen 3305 # first if we set CC to just the basename; use the full file name. 3306 shift 3307 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3308 fi 3309fi 3310fi 3311fi 3312CC=$ac_cv_prog_CC 3313if test -n "$CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3315$as_echo "$CC" >&6; } 3316else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318$as_echo "no" >&6; } 3319fi 3320 3321 3322fi 3323if test -z "$CC"; then 3324 if test -n "$ac_tool_prefix"; then 3325 for ac_prog in cl.exe 3326 do 3327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3328set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3330$as_echo_n "checking for $ac_word... " >&6; } 3331if ${ac_cv_prog_CC+:} false; then : 3332 $as_echo_n "(cached) " >&6 3333else 3334 if test -n "$CC"; then 3335 ac_cv_prog_CC="$CC" # Let the user override the test. 3336else 3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3338for as_dir in $PATH 3339do 3340 IFS=$as_save_IFS 3341 test -z "$as_dir" && as_dir=. 3342 for ac_exec_ext in '' $ac_executable_extensions; do 3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3346 break 2 3347 fi 3348done 3349 done 3350IFS=$as_save_IFS 3351 3352fi 3353fi 3354CC=$ac_cv_prog_CC 3355if test -n "$CC"; then 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3357$as_echo "$CC" >&6; } 3358else 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3360$as_echo "no" >&6; } 3361fi 3362 3363 3364 test -n "$CC" && break 3365 done 3366fi 3367if test -z "$CC"; then 3368 ac_ct_CC=$CC 3369 for ac_prog in cl.exe 3370do 3371 # Extract the first word of "$ac_prog", so it can be a program name with args. 3372set dummy $ac_prog; ac_word=$2 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374$as_echo_n "checking for $ac_word... " >&6; } 3375if ${ac_cv_prog_ac_ct_CC+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 if test -n "$ac_ct_CC"; then 3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3380else 3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3382for as_dir in $PATH 3383do 3384 IFS=$as_save_IFS 3385 test -z "$as_dir" && as_dir=. 3386 for ac_exec_ext in '' $ac_executable_extensions; do 3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3388 ac_cv_prog_ac_ct_CC="$ac_prog" 3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3390 break 2 3391 fi 3392done 3393 done 3394IFS=$as_save_IFS 3395 3396fi 3397fi 3398ac_ct_CC=$ac_cv_prog_ac_ct_CC 3399if test -n "$ac_ct_CC"; then 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3401$as_echo "$ac_ct_CC" >&6; } 3402else 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404$as_echo "no" >&6; } 3405fi 3406 3407 3408 test -n "$ac_ct_CC" && break 3409done 3410 3411 if test "x$ac_ct_CC" = x; then 3412 CC="" 3413 else 3414 case $cross_compiling:$ac_tool_warned in 3415yes:) 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3418ac_tool_warned=yes ;; 3419esac 3420 CC=$ac_ct_CC 3421 fi 3422fi 3423 3424fi 3425 3426 3427test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3429as_fn_error $? "no acceptable C compiler found in \$PATH 3430See \`config.log' for more details" "$LINENO" 5; } 3431 3432# Provide some information about the compiler. 3433$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3434set X $ac_compile 3435ac_compiler=$2 3436for ac_option in --version -v -V -qversion; do 3437 { { ac_try="$ac_compiler $ac_option >&5" 3438case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443$as_echo "$ac_try_echo"; } >&5 3444 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3445 ac_status=$? 3446 if test -s conftest.err; then 3447 sed '10a\ 3448... rest of stderr output deleted ... 3449 10q' conftest.err >conftest.er1 3450 cat conftest.er1 >&5 3451 fi 3452 rm -f conftest.er1 conftest.err 3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3454 test $ac_status = 0; } 3455done 3456 3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459 3460int 3461main () 3462{ 3463 3464 ; 3465 return 0; 3466} 3467_ACEOF 3468ac_clean_files_save=$ac_clean_files 3469ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3470# Try to create an executable without -o first, disregard a.out. 3471# It will help us diagnose broken compilers, and finding out an intuition 3472# of exeext. 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3474$as_echo_n "checking whether the C compiler works... " >&6; } 3475ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3476 3477# The possible output files: 3478ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3479 3480ac_rmfiles= 3481for ac_file in $ac_files 3482do 3483 case $ac_file in 3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3485 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3486 esac 3487done 3488rm -f $ac_rmfiles 3489 3490if { { ac_try="$ac_link_default" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3496$as_echo "$ac_try_echo"; } >&5 3497 (eval "$ac_link_default") 2>&5 3498 ac_status=$? 3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3500 test $ac_status = 0; }; then : 3501 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3502# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3503# in a Makefile. We should not override ac_cv_exeext if it was cached, 3504# so that the user can short-circuit this test for compilers unknown to 3505# Autoconf. 3506for ac_file in $ac_files '' 3507do 3508 test -f "$ac_file" || continue 3509 case $ac_file in 3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3511 ;; 3512 [ab].out ) 3513 # We found the default executable, but exeext='' is most 3514 # certainly right. 3515 break;; 3516 *.* ) 3517 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3518 then :; else 3519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3520 fi 3521 # We set ac_cv_exeext here because the later test for it is not 3522 # safe: cross compilers may not add the suffix if given an `-o' 3523 # argument, so we may need to know it at that point already. 3524 # Even if this section looks crufty: it has the advantage of 3525 # actually working. 3526 break;; 3527 * ) 3528 break;; 3529 esac 3530done 3531test "$ac_cv_exeext" = no && ac_cv_exeext= 3532 3533else 3534 ac_file='' 3535fi 3536if test -z "$ac_file"; then : 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3538$as_echo "no" >&6; } 3539$as_echo "$as_me: failed program was:" >&5 3540sed 's/^/| /' conftest.$ac_ext >&5 3541 3542{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3544as_fn_error 77 "C compiler cannot create executables 3545See \`config.log' for more details" "$LINENO" 5; } 3546else 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3548$as_echo "yes" >&6; } 3549fi 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3551$as_echo_n "checking for C compiler default output file name... " >&6; } 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3553$as_echo "$ac_file" >&6; } 3554ac_exeext=$ac_cv_exeext 3555 3556rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3557ac_clean_files=$ac_clean_files_save 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3559$as_echo_n "checking for suffix of executables... " >&6; } 3560if { { ac_try="$ac_link" 3561case "(($ac_try" in 3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3563 *) ac_try_echo=$ac_try;; 3564esac 3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3566$as_echo "$ac_try_echo"; } >&5 3567 (eval "$ac_link") 2>&5 3568 ac_status=$? 3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3570 test $ac_status = 0; }; then : 3571 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3572# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3573# work properly (i.e., refer to `conftest.exe'), while it won't with 3574# `rm'. 3575for ac_file in conftest.exe conftest conftest.*; do 3576 test -f "$ac_file" || continue 3577 case $ac_file in 3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3579 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3580 break;; 3581 * ) break;; 3582 esac 3583done 3584else 3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3587as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3588See \`config.log' for more details" "$LINENO" 5; } 3589fi 3590rm -f conftest conftest$ac_cv_exeext 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3592$as_echo "$ac_cv_exeext" >&6; } 3593 3594rm -f conftest.$ac_ext 3595EXEEXT=$ac_cv_exeext 3596ac_exeext=$EXEEXT 3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599#include <stdio.h> 3600int 3601main () 3602{ 3603FILE *f = fopen ("conftest.out", "w"); 3604 return ferror (f) || fclose (f) != 0; 3605 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610ac_clean_files="$ac_clean_files conftest.out" 3611# Check that the compiler produces executables we can run. If not, either 3612# the compiler is broken, or we cross compile. 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3614$as_echo_n "checking whether we are cross compiling... " >&6; } 3615if test "$cross_compiling" != yes; then 3616 { { ac_try="$ac_link" 3617case "(($ac_try" in 3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3619 *) ac_try_echo=$ac_try;; 3620esac 3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3622$as_echo "$ac_try_echo"; } >&5 3623 (eval "$ac_link") 2>&5 3624 ac_status=$? 3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3626 test $ac_status = 0; } 3627 if { ac_try='./conftest$ac_cv_exeext' 3628 { { case "(($ac_try" in 3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3630 *) ac_try_echo=$ac_try;; 3631esac 3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3633$as_echo "$ac_try_echo"; } >&5 3634 (eval "$ac_try") 2>&5 3635 ac_status=$? 3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3637 test $ac_status = 0; }; }; then 3638 cross_compiling=no 3639 else 3640 if test "$cross_compiling" = maybe; then 3641 cross_compiling=yes 3642 else 3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3645as_fn_error $? "cannot run C compiled programs. 3646If you meant to cross compile, use \`--host'. 3647See \`config.log' for more details" "$LINENO" 5; } 3648 fi 3649 fi 3650fi 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3652$as_echo "$cross_compiling" >&6; } 3653 3654rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3655ac_clean_files=$ac_clean_files_save 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3657$as_echo_n "checking for suffix of object files... " >&6; } 3658if ${ac_cv_objext+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663 3664int 3665main () 3666{ 3667 3668 ; 3669 return 0; 3670} 3671_ACEOF 3672rm -f conftest.o conftest.obj 3673if { { ac_try="$ac_compile" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_compile") 2>&5 3681 ac_status=$? 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3683 test $ac_status = 0; }; then : 3684 for ac_file in conftest.o conftest.obj conftest.*; do 3685 test -f "$ac_file" || continue; 3686 case $ac_file in 3687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3689 break;; 3690 esac 3691done 3692else 3693 $as_echo "$as_me: failed program was:" >&5 3694sed 's/^/| /' conftest.$ac_ext >&5 3695 3696{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3698as_fn_error $? "cannot compute suffix of object files: cannot compile 3699See \`config.log' for more details" "$LINENO" 5; } 3700fi 3701rm -f conftest.$ac_cv_objext conftest.$ac_ext 3702fi 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3704$as_echo "$ac_cv_objext" >&6; } 3705OBJEXT=$ac_cv_objext 3706ac_objext=$OBJEXT 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3708$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3709if ${ac_cv_c_compiler_gnu+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718#ifndef __GNUC__ 3719 choke me 3720#endif 3721 3722 ; 3723 return 0; 3724} 3725_ACEOF 3726if ac_fn_c_try_compile "$LINENO"; then : 3727 ac_compiler_gnu=yes 3728else 3729 ac_compiler_gnu=no 3730fi 3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3732ac_cv_c_compiler_gnu=$ac_compiler_gnu 3733 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3736$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3737if test $ac_compiler_gnu = yes; then 3738 GCC=yes 3739else 3740 GCC= 3741fi 3742ac_test_CFLAGS=${CFLAGS+set} 3743ac_save_CFLAGS=$CFLAGS 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3745$as_echo_n "checking whether $CC accepts -g... " >&6; } 3746if ${ac_cv_prog_cc_g+:} false; then : 3747 $as_echo_n "(cached) " >&6 3748else 3749 ac_save_c_werror_flag=$ac_c_werror_flag 3750 ac_c_werror_flag=yes 3751 ac_cv_prog_cc_g=no 3752 CFLAGS="-g" 3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754/* end confdefs.h. */ 3755 3756int 3757main () 3758{ 3759 3760 ; 3761 return 0; 3762} 3763_ACEOF 3764if ac_fn_c_try_compile "$LINENO"; then : 3765 ac_cv_prog_cc_g=yes 3766else 3767 CFLAGS="" 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770 3771int 3772main () 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779if ac_fn_c_try_compile "$LINENO"; then : 3780 3781else 3782 ac_c_werror_flag=$ac_save_c_werror_flag 3783 CFLAGS="-g" 3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3785/* end confdefs.h. */ 3786 3787int 3788main () 3789{ 3790 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795if ac_fn_c_try_compile "$LINENO"; then : 3796 ac_cv_prog_cc_g=yes 3797fi 3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3799fi 3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3801fi 3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3803 ac_c_werror_flag=$ac_save_c_werror_flag 3804fi 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3806$as_echo "$ac_cv_prog_cc_g" >&6; } 3807if test "$ac_test_CFLAGS" = set; then 3808 CFLAGS=$ac_save_CFLAGS 3809elif test $ac_cv_prog_cc_g = yes; then 3810 if test "$GCC" = yes; then 3811 CFLAGS="-g -O2" 3812 else 3813 CFLAGS="-g" 3814 fi 3815else 3816 if test "$GCC" = yes; then 3817 CFLAGS="-O2" 3818 else 3819 CFLAGS= 3820 fi 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3823$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3824if ${ac_cv_prog_cc_c89+:} false; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 ac_cv_prog_cc_c89=no 3828ac_save_CC=$CC 3829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831#include <stdarg.h> 3832#include <stdio.h> 3833struct stat; 3834/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3835struct buf { int x; }; 3836FILE * (*rcsopen) (struct buf *, struct stat *, int); 3837static char *e (p, i) 3838 char **p; 3839 int i; 3840{ 3841 return p[i]; 3842} 3843static char *f (char * (*g) (char **, int), char **p, ...) 3844{ 3845 char *s; 3846 va_list v; 3847 va_start (v,p); 3848 s = g (p, va_arg (v,int)); 3849 va_end (v); 3850 return s; 3851} 3852 3853/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3854 function prototypes and stuff, but not '\xHH' hex character constants. 3855 These don't provoke an error unfortunately, instead are silently treated 3856 as 'x'. The following induces an error, until -std is added to get 3857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3858 array size at least. It's necessary to write '\x00'==0 to get something 3859 that's true only with -std. */ 3860int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3861 3862/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3863 inside strings and character constants. */ 3864#define FOO(x) 'x' 3865int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3866 3867int test (int i, double x); 3868struct s1 {int (*f) (int a);}; 3869struct s2 {int (*f) (double a);}; 3870int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3871int argc; 3872char **argv; 3873int 3874main () 3875{ 3876return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3883do 3884 CC="$ac_save_CC $ac_arg" 3885 if ac_fn_c_try_compile "$LINENO"; then : 3886 ac_cv_prog_cc_c89=$ac_arg 3887fi 3888rm -f core conftest.err conftest.$ac_objext 3889 test "x$ac_cv_prog_cc_c89" != "xno" && break 3890done 3891rm -f conftest.$ac_ext 3892CC=$ac_save_CC 3893 3894fi 3895# AC_CACHE_VAL 3896case "x$ac_cv_prog_cc_c89" in 3897 x) 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3899$as_echo "none needed" >&6; } ;; 3900 xno) 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3902$as_echo "unsupported" >&6; } ;; 3903 *) 3904 CC="$CC $ac_cv_prog_cc_c89" 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3906$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3907esac 3908if test "x$ac_cv_prog_cc_c89" != xno; then : 3909 3910fi 3911 3912ac_ext=c 3913ac_cpp='$CPP $CPPFLAGS' 3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3916ac_compiler_gnu=$ac_cv_c_compiler_gnu 3917 3918depcc="$CC" am_compiler_list= 3919 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3921$as_echo_n "checking dependency style of $depcc... " >&6; } 3922if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3923 $as_echo_n "(cached) " >&6 3924else 3925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3926 # We make a subdir and do the tests there. Otherwise we can end up 3927 # making bogus files that we don't know about and never remove. For 3928 # instance it was reported that on HP-UX the gcc test will end up 3929 # making a dummy file named 'D' -- because '-MD' means "put the output 3930 # in D". 3931 rm -rf conftest.dir 3932 mkdir conftest.dir 3933 # Copy depcomp to subdir because otherwise we won't find it if we're 3934 # using a relative directory. 3935 cp "$am_depcomp" conftest.dir 3936 cd conftest.dir 3937 # We will build objects and dependencies in a subdirectory because 3938 # it helps to detect inapplicable dependency modes. For instance 3939 # both Tru64's cc and ICC support -MD to output dependencies as a 3940 # side effect of compilation, but ICC will put the dependencies in 3941 # the current directory while Tru64 will put them in the object 3942 # directory. 3943 mkdir sub 3944 3945 am_cv_CC_dependencies_compiler_type=none 3946 if test "$am_compiler_list" = ""; then 3947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3948 fi 3949 am__universal=false 3950 case " $depcc " in #( 3951 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3952 esac 3953 3954 for depmode in $am_compiler_list; do 3955 # Setup a source with many dependencies, because some compilers 3956 # like to wrap large dependency lists on column 80 (with \), and 3957 # we should not choose a depcomp mode which is confused by this. 3958 # 3959 # We need to recreate these files for each test, as the compiler may 3960 # overwrite some of them when testing with obscure command lines. 3961 # This happens at least with the AIX C compiler. 3962 : > sub/conftest.c 3963 for i in 1 2 3 4 5 6; do 3964 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3965 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3966 # Solaris 10 /bin/sh. 3967 echo '/* dummy */' > sub/conftst$i.h 3968 done 3969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3970 3971 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3972 # mode. It turns out that the SunPro C++ compiler does not properly 3973 # handle '-M -o', and we need to detect this. Also, some Intel 3974 # versions had trouble with output in subdirs. 3975 am__obj=sub/conftest.${OBJEXT-o} 3976 am__minus_obj="-o $am__obj" 3977 case $depmode in 3978 gcc) 3979 # This depmode causes a compiler race in universal mode. 3980 test "$am__universal" = false || continue 3981 ;; 3982 nosideeffect) 3983 # After this tag, mechanisms are not by side-effect, so they'll 3984 # only be used when explicitly requested. 3985 if test "x$enable_dependency_tracking" = xyes; then 3986 continue 3987 else 3988 break 3989 fi 3990 ;; 3991 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3992 # This compiler won't grok '-c -o', but also, the minuso test has 3993 # not run yet. These depmodes are late enough in the game, and 3994 # so weak that their functioning should not be impacted. 3995 am__obj=conftest.${OBJEXT-o} 3996 am__minus_obj= 3997 ;; 3998 none) break ;; 3999 esac 4000 if depmode=$depmode \ 4001 source=sub/conftest.c object=$am__obj \ 4002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4004 >/dev/null 2>conftest.err && 4005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4009 # icc doesn't choke on unknown options, it will just issue warnings 4010 # or remarks (even with -Werror). So we grep stderr for any message 4011 # that says an option was ignored or not supported. 4012 # When given -MP, icc 7.0 and 7.1 complain thusly: 4013 # icc: Command line warning: ignoring option '-M'; no argument required 4014 # The diagnosis changed in icc 8.0: 4015 # icc: Command line remark: option '-MP' not supported 4016 if (grep 'ignoring option' conftest.err || 4017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4018 am_cv_CC_dependencies_compiler_type=$depmode 4019 break 4020 fi 4021 fi 4022 done 4023 4024 cd .. 4025 rm -rf conftest.dir 4026else 4027 am_cv_CC_dependencies_compiler_type=none 4028fi 4029 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4032$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4033CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4034 4035 if 4036 test "x$enable_dependency_tracking" != xno \ 4037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4038 am__fastdepCC_TRUE= 4039 am__fastdepCC_FALSE='#' 4040else 4041 am__fastdepCC_TRUE='#' 4042 am__fastdepCC_FALSE= 4043fi 4044 4045 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4047$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4048if ${ac_cv_path_SED+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4052 for ac_i in 1 2 3 4 5 6 7; do 4053 ac_script="$ac_script$as_nl$ac_script" 4054 done 4055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4056 { ac_script=; unset ac_script;} 4057 if test -z "$SED"; then 4058 ac_path_SED_found=false 4059 # Loop through the user's path and test for each of PROGNAME-LIST 4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4061for as_dir in $PATH 4062do 4063 IFS=$as_save_IFS 4064 test -z "$as_dir" && as_dir=. 4065 for ac_prog in sed gsed; do 4066 for ac_exec_ext in '' $ac_executable_extensions; do 4067 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4068 as_fn_executable_p "$ac_path_SED" || continue 4069# Check for GNU ac_path_SED and select it if it is found. 4070 # Check for GNU $ac_path_SED 4071case `"$ac_path_SED" --version 2>&1` in 4072*GNU*) 4073 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4074*) 4075 ac_count=0 4076 $as_echo_n 0123456789 >"conftest.in" 4077 while : 4078 do 4079 cat "conftest.in" "conftest.in" >"conftest.tmp" 4080 mv "conftest.tmp" "conftest.in" 4081 cp "conftest.in" "conftest.nl" 4082 $as_echo '' >> "conftest.nl" 4083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4085 as_fn_arith $ac_count + 1 && ac_count=$as_val 4086 if test $ac_count -gt ${ac_path_SED_max-0}; then 4087 # Best one so far, save it but keep looking for a better one 4088 ac_cv_path_SED="$ac_path_SED" 4089 ac_path_SED_max=$ac_count 4090 fi 4091 # 10*(2^10) chars as input seems more than enough 4092 test $ac_count -gt 10 && break 4093 done 4094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4095esac 4096 4097 $ac_path_SED_found && break 3 4098 done 4099 done 4100 done 4101IFS=$as_save_IFS 4102 if test -z "$ac_cv_path_SED"; then 4103 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4104 fi 4105else 4106 ac_cv_path_SED=$SED 4107fi 4108 4109fi 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4111$as_echo "$ac_cv_path_SED" >&6; } 4112 SED="$ac_cv_path_SED" 4113 rm -f conftest.sed 4114 4115test -z "$SED" && SED=sed 4116Xsed="$SED -e 1s/^X//" 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4129$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4130if ${ac_cv_path_GREP+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132else 4133 if test -z "$GREP"; then 4134 ac_path_GREP_found=false 4135 # Loop through the user's path and test for each of PROGNAME-LIST 4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4138do 4139 IFS=$as_save_IFS 4140 test -z "$as_dir" && as_dir=. 4141 for ac_prog in grep ggrep; do 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4144 as_fn_executable_p "$ac_path_GREP" || continue 4145# Check for GNU ac_path_GREP and select it if it is found. 4146 # Check for GNU $ac_path_GREP 4147case `"$ac_path_GREP" --version 2>&1` in 4148*GNU*) 4149 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4150*) 4151 ac_count=0 4152 $as_echo_n 0123456789 >"conftest.in" 4153 while : 4154 do 4155 cat "conftest.in" "conftest.in" >"conftest.tmp" 4156 mv "conftest.tmp" "conftest.in" 4157 cp "conftest.in" "conftest.nl" 4158 $as_echo 'GREP' >> "conftest.nl" 4159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4161 as_fn_arith $ac_count + 1 && ac_count=$as_val 4162 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4163 # Best one so far, save it but keep looking for a better one 4164 ac_cv_path_GREP="$ac_path_GREP" 4165 ac_path_GREP_max=$ac_count 4166 fi 4167 # 10*(2^10) chars as input seems more than enough 4168 test $ac_count -gt 10 && break 4169 done 4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4171esac 4172 4173 $ac_path_GREP_found && break 3 4174 done 4175 done 4176 done 4177IFS=$as_save_IFS 4178 if test -z "$ac_cv_path_GREP"; then 4179 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4180 fi 4181else 4182 ac_cv_path_GREP=$GREP 4183fi 4184 4185fi 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4187$as_echo "$ac_cv_path_GREP" >&6; } 4188 GREP="$ac_cv_path_GREP" 4189 4190 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4192$as_echo_n "checking for egrep... " >&6; } 4193if ${ac_cv_path_EGREP+:} false; then : 4194 $as_echo_n "(cached) " >&6 4195else 4196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4197 then ac_cv_path_EGREP="$GREP -E" 4198 else 4199 if test -z "$EGREP"; then 4200 ac_path_EGREP_found=false 4201 # Loop through the user's path and test for each of PROGNAME-LIST 4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4203for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4204do 4205 IFS=$as_save_IFS 4206 test -z "$as_dir" && as_dir=. 4207 for ac_prog in egrep; do 4208 for ac_exec_ext in '' $ac_executable_extensions; do 4209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4210 as_fn_executable_p "$ac_path_EGREP" || continue 4211# Check for GNU ac_path_EGREP and select it if it is found. 4212 # Check for GNU $ac_path_EGREP 4213case `"$ac_path_EGREP" --version 2>&1` in 4214*GNU*) 4215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4216*) 4217 ac_count=0 4218 $as_echo_n 0123456789 >"conftest.in" 4219 while : 4220 do 4221 cat "conftest.in" "conftest.in" >"conftest.tmp" 4222 mv "conftest.tmp" "conftest.in" 4223 cp "conftest.in" "conftest.nl" 4224 $as_echo 'EGREP' >> "conftest.nl" 4225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4227 as_fn_arith $ac_count + 1 && ac_count=$as_val 4228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4229 # Best one so far, save it but keep looking for a better one 4230 ac_cv_path_EGREP="$ac_path_EGREP" 4231 ac_path_EGREP_max=$ac_count 4232 fi 4233 # 10*(2^10) chars as input seems more than enough 4234 test $ac_count -gt 10 && break 4235 done 4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4237esac 4238 4239 $ac_path_EGREP_found && break 3 4240 done 4241 done 4242 done 4243IFS=$as_save_IFS 4244 if test -z "$ac_cv_path_EGREP"; then 4245 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4246 fi 4247else 4248 ac_cv_path_EGREP=$EGREP 4249fi 4250 4251 fi 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4254$as_echo "$ac_cv_path_EGREP" >&6; } 4255 EGREP="$ac_cv_path_EGREP" 4256 4257 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4259$as_echo_n "checking for fgrep... " >&6; } 4260if ${ac_cv_path_FGREP+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4264 then ac_cv_path_FGREP="$GREP -F" 4265 else 4266 if test -z "$FGREP"; then 4267 ac_path_FGREP_found=false 4268 # Loop through the user's path and test for each of PROGNAME-LIST 4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4271do 4272 IFS=$as_save_IFS 4273 test -z "$as_dir" && as_dir=. 4274 for ac_prog in fgrep; do 4275 for ac_exec_ext in '' $ac_executable_extensions; do 4276 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4277 as_fn_executable_p "$ac_path_FGREP" || continue 4278# Check for GNU ac_path_FGREP and select it if it is found. 4279 # Check for GNU $ac_path_FGREP 4280case `"$ac_path_FGREP" --version 2>&1` in 4281*GNU*) 4282 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4283*) 4284 ac_count=0 4285 $as_echo_n 0123456789 >"conftest.in" 4286 while : 4287 do 4288 cat "conftest.in" "conftest.in" >"conftest.tmp" 4289 mv "conftest.tmp" "conftest.in" 4290 cp "conftest.in" "conftest.nl" 4291 $as_echo 'FGREP' >> "conftest.nl" 4292 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4294 as_fn_arith $ac_count + 1 && ac_count=$as_val 4295 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4296 # Best one so far, save it but keep looking for a better one 4297 ac_cv_path_FGREP="$ac_path_FGREP" 4298 ac_path_FGREP_max=$ac_count 4299 fi 4300 # 10*(2^10) chars as input seems more than enough 4301 test $ac_count -gt 10 && break 4302 done 4303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4304esac 4305 4306 $ac_path_FGREP_found && break 3 4307 done 4308 done 4309 done 4310IFS=$as_save_IFS 4311 if test -z "$ac_cv_path_FGREP"; then 4312 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4313 fi 4314else 4315 ac_cv_path_FGREP=$FGREP 4316fi 4317 4318 fi 4319fi 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4321$as_echo "$ac_cv_path_FGREP" >&6; } 4322 FGREP="$ac_cv_path_FGREP" 4323 4324 4325test -z "$GREP" && GREP=grep 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345# Check whether --with-gnu-ld was given. 4346if test "${with_gnu_ld+set}" = set; then : 4347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4348else 4349 with_gnu_ld=no 4350fi 4351 4352ac_prog=ld 4353if test "$GCC" = yes; then 4354 # Check if gcc -print-prog-name=ld gives a path. 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4356$as_echo_n "checking for ld used by $CC... " >&6; } 4357 case $host in 4358 *-*-mingw*) 4359 # gcc leaves a trailing carriage return which upsets mingw 4360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4361 *) 4362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4363 esac 4364 case $ac_prog in 4365 # Accept absolute paths. 4366 [\\/]* | ?:[\\/]*) 4367 re_direlt='/[^/][^/]*/\.\./' 4368 # Canonicalize the pathname of ld 4369 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4370 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4371 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4372 done 4373 test -z "$LD" && LD="$ac_prog" 4374 ;; 4375 "") 4376 # If it fails, then pretend we aren't using GCC. 4377 ac_prog=ld 4378 ;; 4379 *) 4380 # If it is relative, then search for the first ld in PATH. 4381 with_gnu_ld=unknown 4382 ;; 4383 esac 4384elif test "$with_gnu_ld" = yes; then 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4386$as_echo_n "checking for GNU ld... " >&6; } 4387else 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4389$as_echo_n "checking for non-GNU ld... " >&6; } 4390fi 4391if ${lt_cv_path_LD+:} false; then : 4392 $as_echo_n "(cached) " >&6 4393else 4394 if test -z "$LD"; then 4395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4396 for ac_dir in $PATH; do 4397 IFS="$lt_save_ifs" 4398 test -z "$ac_dir" && ac_dir=. 4399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4400 lt_cv_path_LD="$ac_dir/$ac_prog" 4401 # Check to see if the program is GNU ld. I'd rather use --version, 4402 # but apparently some variants of GNU ld only accept -v. 4403 # Break only if it was the GNU/non-GNU ld that we prefer. 4404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4405 *GNU* | *'with BFD'*) 4406 test "$with_gnu_ld" != no && break 4407 ;; 4408 *) 4409 test "$with_gnu_ld" != yes && break 4410 ;; 4411 esac 4412 fi 4413 done 4414 IFS="$lt_save_ifs" 4415else 4416 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4417fi 4418fi 4419 4420LD="$lt_cv_path_LD" 4421if test -n "$LD"; then 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4423$as_echo "$LD" >&6; } 4424else 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4426$as_echo "no" >&6; } 4427fi 4428test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4430$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4431if ${lt_cv_prog_gnu_ld+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433else 4434 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4435case `$LD -v 2>&1 </dev/null` in 4436*GNU* | *'with BFD'*) 4437 lt_cv_prog_gnu_ld=yes 4438 ;; 4439*) 4440 lt_cv_prog_gnu_ld=no 4441 ;; 4442esac 4443fi 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4445$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4446with_gnu_ld=$lt_cv_prog_gnu_ld 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4457$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4458if ${lt_cv_path_NM+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 if test -n "$NM"; then 4462 # Let the user override the test. 4463 lt_cv_path_NM="$NM" 4464else 4465 lt_nm_to_check="${ac_tool_prefix}nm" 4466 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4467 lt_nm_to_check="$lt_nm_to_check nm" 4468 fi 4469 for lt_tmp_nm in $lt_nm_to_check; do 4470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4471 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4472 IFS="$lt_save_ifs" 4473 test -z "$ac_dir" && ac_dir=. 4474 tmp_nm="$ac_dir/$lt_tmp_nm" 4475 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4476 # Check to see if the nm accepts a BSD-compat flag. 4477 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4478 # nm: unknown option "B" ignored 4479 # Tru64's nm complains that /dev/null is an invalid object file 4480 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4481 */dev/null* | *'Invalid file or object type'*) 4482 lt_cv_path_NM="$tmp_nm -B" 4483 break 4484 ;; 4485 *) 4486 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4487 */dev/null*) 4488 lt_cv_path_NM="$tmp_nm -p" 4489 break 4490 ;; 4491 *) 4492 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4493 continue # so that we can try to find one that supports BSD flags 4494 ;; 4495 esac 4496 ;; 4497 esac 4498 fi 4499 done 4500 IFS="$lt_save_ifs" 4501 done 4502 : ${lt_cv_path_NM=no} 4503fi 4504fi 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4506$as_echo "$lt_cv_path_NM" >&6; } 4507if test "$lt_cv_path_NM" != "no"; then 4508 NM="$lt_cv_path_NM" 4509else 4510 # Didn't find any BSD compatible name lister, look for dumpbin. 4511 if test -n "$DUMPBIN"; then : 4512 # Let the user override the test. 4513 else 4514 if test -n "$ac_tool_prefix"; then 4515 for ac_prog in dumpbin "link -dump" 4516 do 4517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4518set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4520$as_echo_n "checking for $ac_word... " >&6; } 4521if ${ac_cv_prog_DUMPBIN+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 if test -n "$DUMPBIN"; then 4525 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4526else 4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528for as_dir in $PATH 4529do 4530 IFS=$as_save_IFS 4531 test -z "$as_dir" && as_dir=. 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4534 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4536 break 2 4537 fi 4538done 4539 done 4540IFS=$as_save_IFS 4541 4542fi 4543fi 4544DUMPBIN=$ac_cv_prog_DUMPBIN 4545if test -n "$DUMPBIN"; then 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4547$as_echo "$DUMPBIN" >&6; } 4548else 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4550$as_echo "no" >&6; } 4551fi 4552 4553 4554 test -n "$DUMPBIN" && break 4555 done 4556fi 4557if test -z "$DUMPBIN"; then 4558 ac_ct_DUMPBIN=$DUMPBIN 4559 for ac_prog in dumpbin "link -dump" 4560do 4561 # Extract the first word of "$ac_prog", so it can be a program name with args. 4562set dummy $ac_prog; ac_word=$2 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4564$as_echo_n "checking for $ac_word... " >&6; } 4565if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 if test -n "$ac_ct_DUMPBIN"; then 4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4570else 4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4572for as_dir in $PATH 4573do 4574 IFS=$as_save_IFS 4575 test -z "$as_dir" && as_dir=. 4576 for ac_exec_ext in '' $ac_executable_extensions; do 4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4580 break 2 4581 fi 4582done 4583 done 4584IFS=$as_save_IFS 4585 4586fi 4587fi 4588ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4589if test -n "$ac_ct_DUMPBIN"; then 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4591$as_echo "$ac_ct_DUMPBIN" >&6; } 4592else 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4594$as_echo "no" >&6; } 4595fi 4596 4597 4598 test -n "$ac_ct_DUMPBIN" && break 4599done 4600 4601 if test "x$ac_ct_DUMPBIN" = x; then 4602 DUMPBIN=":" 4603 else 4604 case $cross_compiling:$ac_tool_warned in 4605yes:) 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4608ac_tool_warned=yes ;; 4609esac 4610 DUMPBIN=$ac_ct_DUMPBIN 4611 fi 4612fi 4613 4614 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4615 *COFF*) 4616 DUMPBIN="$DUMPBIN -symbols" 4617 ;; 4618 *) 4619 DUMPBIN=: 4620 ;; 4621 esac 4622 fi 4623 4624 if test "$DUMPBIN" != ":"; then 4625 NM="$DUMPBIN" 4626 fi 4627fi 4628test -z "$NM" && NM=nm 4629 4630 4631 4632 4633 4634 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4636$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4637if ${lt_cv_nm_interface+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 lt_cv_nm_interface="BSD nm" 4641 echo "int some_variable = 0;" > conftest.$ac_ext 4642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4643 (eval "$ac_compile" 2>conftest.err) 4644 cat conftest.err >&5 4645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4647 cat conftest.err >&5 4648 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4649 cat conftest.out >&5 4650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4651 lt_cv_nm_interface="MS dumpbin" 4652 fi 4653 rm -f conftest* 4654fi 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4656$as_echo "$lt_cv_nm_interface" >&6; } 4657 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4659$as_echo_n "checking whether ln -s works... " >&6; } 4660LN_S=$as_ln_s 4661if test "$LN_S" = "ln -s"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4663$as_echo "yes" >&6; } 4664else 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4666$as_echo "no, using $LN_S" >&6; } 4667fi 4668 4669# find the maximum length of command line arguments 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4671$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4672if ${lt_cv_sys_max_cmd_len+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 i=0 4676 teststring="ABCD" 4677 4678 case $build_os in 4679 msdosdjgpp*) 4680 # On DJGPP, this test can blow up pretty badly due to problems in libc 4681 # (any single argument exceeding 2000 bytes causes a buffer overrun 4682 # during glob expansion). Even if it were fixed, the result of this 4683 # check would be larger than it should be. 4684 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4685 ;; 4686 4687 gnu*) 4688 # Under GNU Hurd, this test is not required because there is 4689 # no limit to the length of command line arguments. 4690 # Libtool will interpret -1 as no limit whatsoever 4691 lt_cv_sys_max_cmd_len=-1; 4692 ;; 4693 4694 cygwin* | mingw* | cegcc*) 4695 # On Win9x/ME, this test blows up -- it succeeds, but takes 4696 # about 5 minutes as the teststring grows exponentially. 4697 # Worse, since 9x/ME are not pre-emptively multitasking, 4698 # you end up with a "frozen" computer, even though with patience 4699 # the test eventually succeeds (with a max line length of 256k). 4700 # Instead, let's just punt: use the minimum linelength reported by 4701 # all of the supported platforms: 8192 (on NT/2K/XP). 4702 lt_cv_sys_max_cmd_len=8192; 4703 ;; 4704 4705 mint*) 4706 # On MiNT this can take a long time and run out of memory. 4707 lt_cv_sys_max_cmd_len=8192; 4708 ;; 4709 4710 amigaos*) 4711 # On AmigaOS with pdksh, this test takes hours, literally. 4712 # So we just punt and use a minimum line length of 8192. 4713 lt_cv_sys_max_cmd_len=8192; 4714 ;; 4715 4716 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4717 # This has been around since 386BSD, at least. Likely further. 4718 if test -x /sbin/sysctl; then 4719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4720 elif test -x /usr/sbin/sysctl; then 4721 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4722 else 4723 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4724 fi 4725 # And add a safety zone 4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4728 ;; 4729 4730 interix*) 4731 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4732 lt_cv_sys_max_cmd_len=196608 4733 ;; 4734 4735 os2*) 4736 # The test takes a long time on OS/2. 4737 lt_cv_sys_max_cmd_len=8192 4738 ;; 4739 4740 osf*) 4741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4743 # nice to cause kernel panics so lets avoid the loop below. 4744 # First set a reasonable default. 4745 lt_cv_sys_max_cmd_len=16384 4746 # 4747 if test -x /sbin/sysconfig; then 4748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4749 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4750 esac 4751 fi 4752 ;; 4753 sco3.2v5*) 4754 lt_cv_sys_max_cmd_len=102400 4755 ;; 4756 sysv5* | sco5v6* | sysv4.2uw2*) 4757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4758 if test -n "$kargmax"; then 4759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4760 else 4761 lt_cv_sys_max_cmd_len=32768 4762 fi 4763 ;; 4764 *) 4765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4766 if test -n "$lt_cv_sys_max_cmd_len"; then 4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4769 else 4770 # Make teststring a little bigger before we do anything with it. 4771 # a 1K string should be a reasonable start. 4772 for i in 1 2 3 4 5 6 7 8 ; do 4773 teststring=$teststring$teststring 4774 done 4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4776 # If test is not a shell built-in, we'll probably end up computing a 4777 # maximum length that is only half of the actual maximum length, but 4778 # we can't tell. 4779 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4780 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4781 test $i != 17 # 1/2 MB should be enough 4782 do 4783 i=`expr $i + 1` 4784 teststring=$teststring$teststring 4785 done 4786 # Only check the string length outside the loop. 4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4788 teststring= 4789 # Add a significant safety factor because C++ compilers can tack on 4790 # massive amounts of additional arguments before passing them to the 4791 # linker. It appears as though 1/2 is a usable value. 4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4793 fi 4794 ;; 4795 esac 4796 4797fi 4798 4799if test -n $lt_cv_sys_max_cmd_len ; then 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4801$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4802else 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4804$as_echo "none" >&6; } 4805fi 4806max_cmd_len=$lt_cv_sys_max_cmd_len 4807 4808 4809 4810 4811 4812 4813: ${CP="cp -f"} 4814: ${MV="mv -f"} 4815: ${RM="rm -f"} 4816 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4818$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4819# Try some XSI features 4820xsi_shell=no 4821( _lt_dummy="a/b/c" 4822 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4823 = c,a/b,b/c, \ 4824 && eval 'test $(( 1 + 1 )) -eq 2 \ 4825 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4826 && xsi_shell=yes 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4828$as_echo "$xsi_shell" >&6; } 4829 4830 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4832$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4833lt_shell_append=no 4834( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4835 >/dev/null 2>&1 \ 4836 && lt_shell_append=yes 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4838$as_echo "$lt_shell_append" >&6; } 4839 4840 4841if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4842 lt_unset=unset 4843else 4844 lt_unset=false 4845fi 4846 4847 4848 4849 4850 4851# test EBCDIC or ASCII 4852case `echo X|tr X '\101'` in 4853 A) # ASCII based system 4854 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4855 lt_SP2NL='tr \040 \012' 4856 lt_NL2SP='tr \015\012 \040\040' 4857 ;; 4858 *) # EBCDIC based system 4859 lt_SP2NL='tr \100 \n' 4860 lt_NL2SP='tr \r\n \100\100' 4861 ;; 4862esac 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4873$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4874if ${lt_cv_to_host_file_cmd+:} false; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 case $host in 4878 *-*-mingw* ) 4879 case $build in 4880 *-*-mingw* ) # actually msys 4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4882 ;; 4883 *-*-cygwin* ) 4884 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4885 ;; 4886 * ) # otherwise, assume *nix 4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4888 ;; 4889 esac 4890 ;; 4891 *-*-cygwin* ) 4892 case $build in 4893 *-*-mingw* ) # actually msys 4894 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4895 ;; 4896 *-*-cygwin* ) 4897 lt_cv_to_host_file_cmd=func_convert_file_noop 4898 ;; 4899 * ) # otherwise, assume *nix 4900 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4901 ;; 4902 esac 4903 ;; 4904 * ) # unhandled hosts (and "normal" native builds) 4905 lt_cv_to_host_file_cmd=func_convert_file_noop 4906 ;; 4907esac 4908 4909fi 4910 4911to_host_file_cmd=$lt_cv_to_host_file_cmd 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4913$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4914 4915 4916 4917 4918 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4920$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4921if ${lt_cv_to_tool_file_cmd+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 #assume ordinary cross tools, or native build. 4925lt_cv_to_tool_file_cmd=func_convert_file_noop 4926case $host in 4927 *-*-mingw* ) 4928 case $build in 4929 *-*-mingw* ) # actually msys 4930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4931 ;; 4932 esac 4933 ;; 4934esac 4935 4936fi 4937 4938to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4940$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4941 4942 4943 4944 4945 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4947$as_echo_n "checking for $LD option to reload object files... " >&6; } 4948if ${lt_cv_ld_reload_flag+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 lt_cv_ld_reload_flag='-r' 4952fi 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4954$as_echo "$lt_cv_ld_reload_flag" >&6; } 4955reload_flag=$lt_cv_ld_reload_flag 4956case $reload_flag in 4957"" | " "*) ;; 4958*) reload_flag=" $reload_flag" ;; 4959esac 4960reload_cmds='$LD$reload_flag -o $output$reload_objs' 4961case $host_os in 4962 cygwin* | mingw* | pw32* | cegcc*) 4963 if test "$GCC" != yes; then 4964 reload_cmds=false 4965 fi 4966 ;; 4967 darwin*) 4968 if test "$GCC" = yes; then 4969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4970 else 4971 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4972 fi 4973 ;; 4974esac 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984if test -n "$ac_tool_prefix"; then 4985 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4986set dummy ${ac_tool_prefix}objdump; ac_word=$2 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4988$as_echo_n "checking for $ac_word... " >&6; } 4989if ${ac_cv_prog_OBJDUMP+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 if test -n "$OBJDUMP"; then 4993 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4994else 4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4996for as_dir in $PATH 4997do 4998 IFS=$as_save_IFS 4999 test -z "$as_dir" && as_dir=. 5000 for ac_exec_ext in '' $ac_executable_extensions; do 5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5002 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5004 break 2 5005 fi 5006done 5007 done 5008IFS=$as_save_IFS 5009 5010fi 5011fi 5012OBJDUMP=$ac_cv_prog_OBJDUMP 5013if test -n "$OBJDUMP"; then 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5015$as_echo "$OBJDUMP" >&6; } 5016else 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5018$as_echo "no" >&6; } 5019fi 5020 5021 5022fi 5023if test -z "$ac_cv_prog_OBJDUMP"; then 5024 ac_ct_OBJDUMP=$OBJDUMP 5025 # Extract the first word of "objdump", so it can be a program name with args. 5026set dummy objdump; ac_word=$2 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5028$as_echo_n "checking for $ac_word... " >&6; } 5029if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5030 $as_echo_n "(cached) " >&6 5031else 5032 if test -n "$ac_ct_OBJDUMP"; then 5033 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5034else 5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5036for as_dir in $PATH 5037do 5038 IFS=$as_save_IFS 5039 test -z "$as_dir" && as_dir=. 5040 for ac_exec_ext in '' $ac_executable_extensions; do 5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5042 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5044 break 2 5045 fi 5046done 5047 done 5048IFS=$as_save_IFS 5049 5050fi 5051fi 5052ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5053if test -n "$ac_ct_OBJDUMP"; then 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5055$as_echo "$ac_ct_OBJDUMP" >&6; } 5056else 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5058$as_echo "no" >&6; } 5059fi 5060 5061 if test "x$ac_ct_OBJDUMP" = x; then 5062 OBJDUMP="false" 5063 else 5064 case $cross_compiling:$ac_tool_warned in 5065yes:) 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5068ac_tool_warned=yes ;; 5069esac 5070 OBJDUMP=$ac_ct_OBJDUMP 5071 fi 5072else 5073 OBJDUMP="$ac_cv_prog_OBJDUMP" 5074fi 5075 5076test -z "$OBJDUMP" && OBJDUMP=objdump 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5087$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5088if ${lt_cv_deplibs_check_method+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 lt_cv_file_magic_cmd='$MAGIC_CMD' 5092lt_cv_file_magic_test_file= 5093lt_cv_deplibs_check_method='unknown' 5094# Need to set the preceding variable on all platforms that support 5095# interlibrary dependencies. 5096# 'none' -- dependencies not supported. 5097# `unknown' -- same as none, but documents that we really don't know. 5098# 'pass_all' -- all dependencies passed with no checks. 5099# 'test_compile' -- check by making test program. 5100# 'file_magic [[regex]]' -- check by looking for files in library path 5101# which responds to the $file_magic_cmd with a given extended regex. 5102# If you have `file' or equivalent on your system and you're not sure 5103# whether `pass_all' will *always* work, you probably want this one. 5104 5105case $host_os in 5106aix[4-9]*) 5107 lt_cv_deplibs_check_method=pass_all 5108 ;; 5109 5110beos*) 5111 lt_cv_deplibs_check_method=pass_all 5112 ;; 5113 5114bsdi[45]*) 5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5116 lt_cv_file_magic_cmd='/usr/bin/file -L' 5117 lt_cv_file_magic_test_file=/shlib/libc.so 5118 ;; 5119 5120cygwin*) 5121 # func_win32_libid is a shell function defined in ltmain.sh 5122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5123 lt_cv_file_magic_cmd='func_win32_libid' 5124 ;; 5125 5126mingw* | pw32*) 5127 # Base MSYS/MinGW do not provide the 'file' command needed by 5128 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5129 # unless we find 'file', for example because we are cross-compiling. 5130 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5131 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5133 lt_cv_file_magic_cmd='func_win32_libid' 5134 else 5135 # Keep this pattern in sync with the one in func_win32_libid. 5136 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5137 lt_cv_file_magic_cmd='$OBJDUMP -f' 5138 fi 5139 ;; 5140 5141cegcc*) 5142 # use the weaker test based on 'objdump'. See mingw*. 5143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5144 lt_cv_file_magic_cmd='$OBJDUMP -f' 5145 ;; 5146 5147darwin* | rhapsody*) 5148 lt_cv_deplibs_check_method=pass_all 5149 ;; 5150 5151freebsd* | dragonfly*) 5152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5153 case $host_cpu in 5154 i*86 ) 5155 # Not sure whether the presence of OpenBSD here was a mistake. 5156 # Let's accept both of them until this is cleared up. 5157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5158 lt_cv_file_magic_cmd=/usr/bin/file 5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5160 ;; 5161 esac 5162 else 5163 lt_cv_deplibs_check_method=pass_all 5164 fi 5165 ;; 5166 5167gnu*) 5168 lt_cv_deplibs_check_method=pass_all 5169 ;; 5170 5171haiku*) 5172 lt_cv_deplibs_check_method=pass_all 5173 ;; 5174 5175hpux10.20* | hpux11*) 5176 lt_cv_file_magic_cmd=/usr/bin/file 5177 case $host_cpu in 5178 ia64*) 5179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5181 ;; 5182 hppa*64*) 5183 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]' 5184 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5185 ;; 5186 *) 5187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5188 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5189 ;; 5190 esac 5191 ;; 5192 5193interix[3-9]*) 5194 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5196 ;; 5197 5198irix5* | irix6* | nonstopux*) 5199 case $LD in 5200 *-32|*"-32 ") libmagic=32-bit;; 5201 *-n32|*"-n32 ") libmagic=N32;; 5202 *-64|*"-64 ") libmagic=64-bit;; 5203 *) libmagic=never-match;; 5204 esac 5205 lt_cv_deplibs_check_method=pass_all 5206 ;; 5207 5208# This must be glibc/ELF. 5209linux* | k*bsd*-gnu | kopensolaris*-gnu) 5210 lt_cv_deplibs_check_method=pass_all 5211 ;; 5212 5213netbsd*) 5214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5216 else 5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5218 fi 5219 ;; 5220 5221newos6*) 5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5223 lt_cv_file_magic_cmd=/usr/bin/file 5224 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5225 ;; 5226 5227*nto* | *qnx*) 5228 lt_cv_deplibs_check_method=pass_all 5229 ;; 5230 5231openbsd*) 5232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5234 else 5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5236 fi 5237 ;; 5238 5239osf3* | osf4* | osf5*) 5240 lt_cv_deplibs_check_method=pass_all 5241 ;; 5242 5243rdos*) 5244 lt_cv_deplibs_check_method=pass_all 5245 ;; 5246 5247solaris*) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 5251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255sysv4 | sysv4.3*) 5256 case $host_vendor in 5257 motorola) 5258 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]' 5259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5260 ;; 5261 ncr) 5262 lt_cv_deplibs_check_method=pass_all 5263 ;; 5264 sequent) 5265 lt_cv_file_magic_cmd='/bin/file' 5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5267 ;; 5268 sni) 5269 lt_cv_file_magic_cmd='/bin/file' 5270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5271 lt_cv_file_magic_test_file=/lib/libc.so 5272 ;; 5273 siemens) 5274 lt_cv_deplibs_check_method=pass_all 5275 ;; 5276 pc) 5277 lt_cv_deplibs_check_method=pass_all 5278 ;; 5279 esac 5280 ;; 5281 5282tpf*) 5283 lt_cv_deplibs_check_method=pass_all 5284 ;; 5285esac 5286 5287fi 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5289$as_echo "$lt_cv_deplibs_check_method" >&6; } 5290 5291file_magic_glob= 5292want_nocaseglob=no 5293if test "$build" = "$host"; then 5294 case $host_os in 5295 mingw* | pw32*) 5296 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5297 want_nocaseglob=yes 5298 else 5299 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5300 fi 5301 ;; 5302 esac 5303fi 5304 5305file_magic_cmd=$lt_cv_file_magic_cmd 5306deplibs_check_method=$lt_cv_deplibs_check_method 5307test -z "$deplibs_check_method" && deplibs_check_method=unknown 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330if test -n "$ac_tool_prefix"; then 5331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5332set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5334$as_echo_n "checking for $ac_word... " >&6; } 5335if ${ac_cv_prog_DLLTOOL+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 if test -n "$DLLTOOL"; then 5339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5340else 5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5342for as_dir in $PATH 5343do 5344 IFS=$as_save_IFS 5345 test -z "$as_dir" && as_dir=. 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5350 break 2 5351 fi 5352done 5353 done 5354IFS=$as_save_IFS 5355 5356fi 5357fi 5358DLLTOOL=$ac_cv_prog_DLLTOOL 5359if test -n "$DLLTOOL"; then 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5361$as_echo "$DLLTOOL" >&6; } 5362else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5364$as_echo "no" >&6; } 5365fi 5366 5367 5368fi 5369if test -z "$ac_cv_prog_DLLTOOL"; then 5370 ac_ct_DLLTOOL=$DLLTOOL 5371 # Extract the first word of "dlltool", so it can be a program name with args. 5372set dummy dlltool; ac_word=$2 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5374$as_echo_n "checking for $ac_word... " >&6; } 5375if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 if test -n "$ac_ct_DLLTOOL"; then 5379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5380else 5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5382for as_dir in $PATH 5383do 5384 IFS=$as_save_IFS 5385 test -z "$as_dir" && as_dir=. 5386 for ac_exec_ext in '' $ac_executable_extensions; do 5387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5388 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5390 break 2 5391 fi 5392done 5393 done 5394IFS=$as_save_IFS 5395 5396fi 5397fi 5398ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5399if test -n "$ac_ct_DLLTOOL"; then 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5401$as_echo "$ac_ct_DLLTOOL" >&6; } 5402else 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5404$as_echo "no" >&6; } 5405fi 5406 5407 if test "x$ac_ct_DLLTOOL" = x; then 5408 DLLTOOL="false" 5409 else 5410 case $cross_compiling:$ac_tool_warned in 5411yes:) 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5414ac_tool_warned=yes ;; 5415esac 5416 DLLTOOL=$ac_ct_DLLTOOL 5417 fi 5418else 5419 DLLTOOL="$ac_cv_prog_DLLTOOL" 5420fi 5421 5422test -z "$DLLTOOL" && DLLTOOL=dlltool 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5434$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5435if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 lt_cv_sharedlib_from_linklib_cmd='unknown' 5439 5440case $host_os in 5441cygwin* | mingw* | pw32* | cegcc*) 5442 # two different shell functions defined in ltmain.sh 5443 # decide which to use based on capabilities of $DLLTOOL 5444 case `$DLLTOOL --help 2>&1` in 5445 *--identify-strict*) 5446 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5447 ;; 5448 *) 5449 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5450 ;; 5451 esac 5452 ;; 5453*) 5454 # fallback: assume linklib IS sharedlib 5455 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5456 ;; 5457esac 5458 5459fi 5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5461$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5462sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5463test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5464 5465 5466 5467 5468 5469 5470 5471 5472if test -n "$ac_tool_prefix"; then 5473 for ac_prog in ar 5474 do 5475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5476set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5478$as_echo_n "checking for $ac_word... " >&6; } 5479if ${ac_cv_prog_AR+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481else 5482 if test -n "$AR"; then 5483 ac_cv_prog_AR="$AR" # Let the user override the test. 5484else 5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5486for as_dir in $PATH 5487do 5488 IFS=$as_save_IFS 5489 test -z "$as_dir" && as_dir=. 5490 for ac_exec_ext in '' $ac_executable_extensions; do 5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5492 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5494 break 2 5495 fi 5496done 5497 done 5498IFS=$as_save_IFS 5499 5500fi 5501fi 5502AR=$ac_cv_prog_AR 5503if test -n "$AR"; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5505$as_echo "$AR" >&6; } 5506else 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5508$as_echo "no" >&6; } 5509fi 5510 5511 5512 test -n "$AR" && break 5513 done 5514fi 5515if test -z "$AR"; then 5516 ac_ct_AR=$AR 5517 for ac_prog in ar 5518do 5519 # Extract the first word of "$ac_prog", so it can be a program name with args. 5520set dummy $ac_prog; ac_word=$2 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5522$as_echo_n "checking for $ac_word... " >&6; } 5523if ${ac_cv_prog_ac_ct_AR+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 if test -n "$ac_ct_AR"; then 5527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5528else 5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5530for as_dir in $PATH 5531do 5532 IFS=$as_save_IFS 5533 test -z "$as_dir" && as_dir=. 5534 for ac_exec_ext in '' $ac_executable_extensions; do 5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5536 ac_cv_prog_ac_ct_AR="$ac_prog" 5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5538 break 2 5539 fi 5540done 5541 done 5542IFS=$as_save_IFS 5543 5544fi 5545fi 5546ac_ct_AR=$ac_cv_prog_ac_ct_AR 5547if test -n "$ac_ct_AR"; then 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5549$as_echo "$ac_ct_AR" >&6; } 5550else 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5552$as_echo "no" >&6; } 5553fi 5554 5555 5556 test -n "$ac_ct_AR" && break 5557done 5558 5559 if test "x$ac_ct_AR" = x; then 5560 AR="false" 5561 else 5562 case $cross_compiling:$ac_tool_warned in 5563yes:) 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5566ac_tool_warned=yes ;; 5567esac 5568 AR=$ac_ct_AR 5569 fi 5570fi 5571 5572: ${AR=ar} 5573: ${AR_FLAGS=cru} 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5586$as_echo_n "checking for archiver @FILE support... " >&6; } 5587if ${lt_cv_ar_at_file+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 lt_cv_ar_at_file=no 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592/* end confdefs.h. */ 5593 5594int 5595main () 5596{ 5597 5598 ; 5599 return 0; 5600} 5601_ACEOF 5602if ac_fn_c_try_compile "$LINENO"; then : 5603 echo conftest.$ac_objext > conftest.lst 5604 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5606 (eval $lt_ar_try) 2>&5 5607 ac_status=$? 5608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5609 test $ac_status = 0; } 5610 if test "$ac_status" -eq 0; then 5611 # Ensure the archiver fails upon bogus file names. 5612 rm -f conftest.$ac_objext libconftest.a 5613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5614 (eval $lt_ar_try) 2>&5 5615 ac_status=$? 5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5617 test $ac_status = 0; } 5618 if test "$ac_status" -ne 0; then 5619 lt_cv_ar_at_file=@ 5620 fi 5621 fi 5622 rm -f conftest.* libconftest.a 5623 5624fi 5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5626 5627fi 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5629$as_echo "$lt_cv_ar_at_file" >&6; } 5630 5631if test "x$lt_cv_ar_at_file" = xno; then 5632 archiver_list_spec= 5633else 5634 archiver_list_spec=$lt_cv_ar_at_file 5635fi 5636 5637 5638 5639 5640 5641 5642 5643if test -n "$ac_tool_prefix"; then 5644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5645set dummy ${ac_tool_prefix}strip; ac_word=$2 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5647$as_echo_n "checking for $ac_word... " >&6; } 5648if ${ac_cv_prog_STRIP+:} false; then : 5649 $as_echo_n "(cached) " >&6 5650else 5651 if test -n "$STRIP"; then 5652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5653else 5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5655for as_dir in $PATH 5656do 5657 IFS=$as_save_IFS 5658 test -z "$as_dir" && as_dir=. 5659 for ac_exec_ext in '' $ac_executable_extensions; do 5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5661 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5663 break 2 5664 fi 5665done 5666 done 5667IFS=$as_save_IFS 5668 5669fi 5670fi 5671STRIP=$ac_cv_prog_STRIP 5672if test -n "$STRIP"; then 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5674$as_echo "$STRIP" >&6; } 5675else 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5677$as_echo "no" >&6; } 5678fi 5679 5680 5681fi 5682if test -z "$ac_cv_prog_STRIP"; then 5683 ac_ct_STRIP=$STRIP 5684 # Extract the first word of "strip", so it can be a program name with args. 5685set dummy strip; ac_word=$2 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5687$as_echo_n "checking for $ac_word... " >&6; } 5688if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 if test -n "$ac_ct_STRIP"; then 5692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5693else 5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5695for as_dir in $PATH 5696do 5697 IFS=$as_save_IFS 5698 test -z "$as_dir" && as_dir=. 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_ac_ct_STRIP="strip" 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705done 5706 done 5707IFS=$as_save_IFS 5708 5709fi 5710fi 5711ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5712if test -n "$ac_ct_STRIP"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5714$as_echo "$ac_ct_STRIP" >&6; } 5715else 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717$as_echo "no" >&6; } 5718fi 5719 5720 if test "x$ac_ct_STRIP" = x; then 5721 STRIP=":" 5722 else 5723 case $cross_compiling:$ac_tool_warned in 5724yes:) 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5727ac_tool_warned=yes ;; 5728esac 5729 STRIP=$ac_ct_STRIP 5730 fi 5731else 5732 STRIP="$ac_cv_prog_STRIP" 5733fi 5734 5735test -z "$STRIP" && STRIP=: 5736 5737 5738 5739 5740 5741 5742if test -n "$ac_tool_prefix"; then 5743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5744set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5746$as_echo_n "checking for $ac_word... " >&6; } 5747if ${ac_cv_prog_RANLIB+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 if test -n "$RANLIB"; then 5751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5752else 5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5754for as_dir in $PATH 5755do 5756 IFS=$as_save_IFS 5757 test -z "$as_dir" && as_dir=. 5758 for ac_exec_ext in '' $ac_executable_extensions; do 5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5762 break 2 5763 fi 5764done 5765 done 5766IFS=$as_save_IFS 5767 5768fi 5769fi 5770RANLIB=$ac_cv_prog_RANLIB 5771if test -n "$RANLIB"; then 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5773$as_echo "$RANLIB" >&6; } 5774else 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5776$as_echo "no" >&6; } 5777fi 5778 5779 5780fi 5781if test -z "$ac_cv_prog_RANLIB"; then 5782 ac_ct_RANLIB=$RANLIB 5783 # Extract the first word of "ranlib", so it can be a program name with args. 5784set dummy ranlib; ac_word=$2 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5786$as_echo_n "checking for $ac_word... " >&6; } 5787if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5788 $as_echo_n "(cached) " >&6 5789else 5790 if test -n "$ac_ct_RANLIB"; then 5791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5792else 5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5794for as_dir in $PATH 5795do 5796 IFS=$as_save_IFS 5797 test -z "$as_dir" && as_dir=. 5798 for ac_exec_ext in '' $ac_executable_extensions; do 5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5800 ac_cv_prog_ac_ct_RANLIB="ranlib" 5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5802 break 2 5803 fi 5804done 5805 done 5806IFS=$as_save_IFS 5807 5808fi 5809fi 5810ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5811if test -n "$ac_ct_RANLIB"; then 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5813$as_echo "$ac_ct_RANLIB" >&6; } 5814else 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5816$as_echo "no" >&6; } 5817fi 5818 5819 if test "x$ac_ct_RANLIB" = x; then 5820 RANLIB=":" 5821 else 5822 case $cross_compiling:$ac_tool_warned in 5823yes:) 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5826ac_tool_warned=yes ;; 5827esac 5828 RANLIB=$ac_ct_RANLIB 5829 fi 5830else 5831 RANLIB="$ac_cv_prog_RANLIB" 5832fi 5833 5834test -z "$RANLIB" && RANLIB=: 5835 5836 5837 5838 5839 5840 5841# Determine commands to create old-style static archives. 5842old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5843old_postinstall_cmds='chmod 644 $oldlib' 5844old_postuninstall_cmds= 5845 5846if test -n "$RANLIB"; then 5847 case $host_os in 5848 openbsd*) 5849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5850 ;; 5851 *) 5852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5853 ;; 5854 esac 5855 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5856fi 5857 5858case $host_os in 5859 darwin*) 5860 lock_old_archive_extraction=yes ;; 5861 *) 5862 lock_old_archive_extraction=no ;; 5863esac 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 5898 5899 5900 5901 5902 5903# If no C compiler was specified, use CC. 5904LTCC=${LTCC-"$CC"} 5905 5906# If no C compiler flags were specified, use CFLAGS. 5907LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5908 5909# Allow CC to be a program name with arguments. 5910compiler=$CC 5911 5912 5913# Check for command to grab the raw symbol name followed by C symbol from nm. 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5915$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5916if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5917 $as_echo_n "(cached) " >&6 5918else 5919 5920# These are sane defaults that work on at least a few old systems. 5921# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5922 5923# Character class describing NM global symbol codes. 5924symcode='[BCDEGRST]' 5925 5926# Regexp to match symbols that can be accessed directly from C. 5927sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5928 5929# Define system-specific variables. 5930case $host_os in 5931aix*) 5932 symcode='[BCDT]' 5933 ;; 5934cygwin* | mingw* | pw32* | cegcc*) 5935 symcode='[ABCDGISTW]' 5936 ;; 5937hpux*) 5938 if test "$host_cpu" = ia64; then 5939 symcode='[ABCDEGRST]' 5940 fi 5941 ;; 5942irix* | nonstopux*) 5943 symcode='[BCDEGRST]' 5944 ;; 5945osf*) 5946 symcode='[BCDEGQRST]' 5947 ;; 5948solaris*) 5949 symcode='[BDRT]' 5950 ;; 5951sco3.2v5*) 5952 symcode='[DT]' 5953 ;; 5954sysv4.2uw2*) 5955 symcode='[DT]' 5956 ;; 5957sysv5* | sco5v6* | unixware* | OpenUNIX*) 5958 symcode='[ABDT]' 5959 ;; 5960sysv4) 5961 symcode='[DFNSTU]' 5962 ;; 5963esac 5964 5965# If we're using GNU nm, then use its standard symbol codes. 5966case `$NM -V 2>&1` in 5967*GNU* | *'with BFD'*) 5968 symcode='[ABCDGIRSTW]' ;; 5969esac 5970 5971# Transform an extracted symbol line into a proper C declaration. 5972# Some systems (esp. on ia64) link data and code symbols differently, 5973# so use this general approach. 5974lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5975 5976# Transform an extracted symbol line into symbol name and symbol address 5977lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5978lt_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'" 5979 5980# Handle CRLF in mingw tool chain 5981opt_cr= 5982case $build_os in 5983mingw*) 5984 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5985 ;; 5986esac 5987 5988# Try without a prefix underscore, then with it. 5989for ac_symprfx in "" "_"; do 5990 5991 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5992 symxfrm="\\1 $ac_symprfx\\2 \\2" 5993 5994 # Write the raw and C identifiers. 5995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5996 # Fake it for dumpbin and say T for any non-static function 5997 # and D for any global variable. 5998 # Also find C++ and __fastcall symbols from MSVC++, 5999 # which start with @ or ?. 6000 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6001" {last_section=section; section=\$ 3};"\ 6002" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6003" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6004" \$ 0!~/External *\|/{next};"\ 6005" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6006" {if(hide[section]) next};"\ 6007" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6008" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6009" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6010" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6011" ' prfx=^$ac_symprfx" 6012 else 6013 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6014 fi 6015 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6016 6017 # Check to see that the pipe works correctly. 6018 pipe_works=no 6019 6020 rm -f conftest* 6021 cat > conftest.$ac_ext <<_LT_EOF 6022#ifdef __cplusplus 6023extern "C" { 6024#endif 6025char nm_test_var; 6026void nm_test_func(void); 6027void nm_test_func(void){} 6028#ifdef __cplusplus 6029} 6030#endif 6031int main(){nm_test_var='a';nm_test_func();return(0);} 6032_LT_EOF 6033 6034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6035 (eval $ac_compile) 2>&5 6036 ac_status=$? 6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6038 test $ac_status = 0; }; then 6039 # Now try to grab the symbols. 6040 nlist=conftest.nm 6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6042 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6043 ac_status=$? 6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6045 test $ac_status = 0; } && test -s "$nlist"; then 6046 # Try sorting and uniquifying the output. 6047 if sort "$nlist" | uniq > "$nlist"T; then 6048 mv -f "$nlist"T "$nlist" 6049 else 6050 rm -f "$nlist"T 6051 fi 6052 6053 # Make sure that we snagged all the symbols we need. 6054 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6055 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6056 cat <<_LT_EOF > conftest.$ac_ext 6057/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6058#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6059/* DATA imports from DLLs on WIN32 con't be const, because runtime 6060 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6061# define LT_DLSYM_CONST 6062#elif defined(__osf__) 6063/* This system does not cope well with relocations in const data. */ 6064# define LT_DLSYM_CONST 6065#else 6066# define LT_DLSYM_CONST const 6067#endif 6068 6069#ifdef __cplusplus 6070extern "C" { 6071#endif 6072 6073_LT_EOF 6074 # Now generate the symbol file. 6075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6076 6077 cat <<_LT_EOF >> conftest.$ac_ext 6078 6079/* The mapping between symbol names and symbols. */ 6080LT_DLSYM_CONST struct { 6081 const char *name; 6082 void *address; 6083} 6084lt__PROGRAM__LTX_preloaded_symbols[] = 6085{ 6086 { "@PROGRAM@", (void *) 0 }, 6087_LT_EOF 6088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6089 cat <<\_LT_EOF >> conftest.$ac_ext 6090 {0, (void *) 0} 6091}; 6092 6093/* This works around a problem in FreeBSD linker */ 6094#ifdef FREEBSD_WORKAROUND 6095static const void *lt_preloaded_setup() { 6096 return lt__PROGRAM__LTX_preloaded_symbols; 6097} 6098#endif 6099 6100#ifdef __cplusplus 6101} 6102#endif 6103_LT_EOF 6104 # Now try linking the two files. 6105 mv conftest.$ac_objext conftstm.$ac_objext 6106 lt_globsym_save_LIBS=$LIBS 6107 lt_globsym_save_CFLAGS=$CFLAGS 6108 LIBS="conftstm.$ac_objext" 6109 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6111 (eval $ac_link) 2>&5 6112 ac_status=$? 6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6114 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6115 pipe_works=yes 6116 fi 6117 LIBS=$lt_globsym_save_LIBS 6118 CFLAGS=$lt_globsym_save_CFLAGS 6119 else 6120 echo "cannot find nm_test_func in $nlist" >&5 6121 fi 6122 else 6123 echo "cannot find nm_test_var in $nlist" >&5 6124 fi 6125 else 6126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6127 fi 6128 else 6129 echo "$progname: failed program was:" >&5 6130 cat conftest.$ac_ext >&5 6131 fi 6132 rm -rf conftest* conftst* 6133 6134 # Do not use the global_symbol_pipe unless it works. 6135 if test "$pipe_works" = yes; then 6136 break 6137 else 6138 lt_cv_sys_global_symbol_pipe= 6139 fi 6140done 6141 6142fi 6143 6144if test -z "$lt_cv_sys_global_symbol_pipe"; then 6145 lt_cv_sys_global_symbol_to_cdecl= 6146fi 6147if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6149$as_echo "failed" >&6; } 6150else 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6152$as_echo "ok" >&6; } 6153fi 6154 6155# Response file support. 6156if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6157 nm_file_list_spec='@' 6158elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6159 nm_file_list_spec='@' 6160fi 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6189$as_echo_n "checking for sysroot... " >&6; } 6190 6191# Check whether --with-sysroot was given. 6192if test "${with_sysroot+set}" = set; then : 6193 withval=$with_sysroot; 6194else 6195 with_sysroot=no 6196fi 6197 6198 6199lt_sysroot= 6200case ${with_sysroot} in #( 6201 yes) 6202 if test "$GCC" = yes; then 6203 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6204 fi 6205 ;; #( 6206 /*) 6207 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6208 ;; #( 6209 no|'') 6210 ;; #( 6211 *) 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6213$as_echo "${with_sysroot}" >&6; } 6214 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6215 ;; 6216esac 6217 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6219$as_echo "${lt_sysroot:-no}" >&6; } 6220 6221 6222 6223 6224 6225# Check whether --enable-libtool-lock was given. 6226if test "${enable_libtool_lock+set}" = set; then : 6227 enableval=$enable_libtool_lock; 6228fi 6229 6230test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6231 6232# Some flags need to be propagated to the compiler or linker for good 6233# libtool support. 6234case $host in 6235ia64-*-hpux*) 6236 # Find out which ABI we are using. 6237 echo 'int i;' > conftest.$ac_ext 6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6239 (eval $ac_compile) 2>&5 6240 ac_status=$? 6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6242 test $ac_status = 0; }; then 6243 case `/usr/bin/file conftest.$ac_objext` in 6244 *ELF-32*) 6245 HPUX_IA64_MODE="32" 6246 ;; 6247 *ELF-64*) 6248 HPUX_IA64_MODE="64" 6249 ;; 6250 esac 6251 fi 6252 rm -rf conftest* 6253 ;; 6254*-*-irix6*) 6255 # Find out which ABI we are using. 6256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6258 (eval $ac_compile) 2>&5 6259 ac_status=$? 6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6261 test $ac_status = 0; }; then 6262 if test "$lt_cv_prog_gnu_ld" = yes; then 6263 case `/usr/bin/file conftest.$ac_objext` in 6264 *32-bit*) 6265 LD="${LD-ld} -melf32bsmip" 6266 ;; 6267 *N32*) 6268 LD="${LD-ld} -melf32bmipn32" 6269 ;; 6270 *64-bit*) 6271 LD="${LD-ld} -melf64bmip" 6272 ;; 6273 esac 6274 else 6275 case `/usr/bin/file conftest.$ac_objext` in 6276 *32-bit*) 6277 LD="${LD-ld} -32" 6278 ;; 6279 *N32*) 6280 LD="${LD-ld} -n32" 6281 ;; 6282 *64-bit*) 6283 LD="${LD-ld} -64" 6284 ;; 6285 esac 6286 fi 6287 fi 6288 rm -rf conftest* 6289 ;; 6290 6291x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6292s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6293 # Find out which ABI we are using. 6294 echo 'int i;' > conftest.$ac_ext 6295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6296 (eval $ac_compile) 2>&5 6297 ac_status=$? 6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6299 test $ac_status = 0; }; then 6300 case `/usr/bin/file conftest.o` in 6301 *32-bit*) 6302 case $host in 6303 x86_64-*kfreebsd*-gnu) 6304 LD="${LD-ld} -m elf_i386_fbsd" 6305 ;; 6306 x86_64-*linux*) 6307 LD="${LD-ld} -m elf_i386" 6308 ;; 6309 powerpc64le-*linux*) 6310 LD="${LD-ld} -m elf32lppclinux" 6311 ;; 6312 powerpc64-*linux*) 6313 LD="${LD-ld} -m elf32ppclinux" 6314 ;; 6315 s390x-*linux*) 6316 LD="${LD-ld} -m elf_s390" 6317 ;; 6318 sparc64-*linux*) 6319 LD="${LD-ld} -m elf32_sparc" 6320 ;; 6321 esac 6322 ;; 6323 *64-bit*) 6324 case $host in 6325 x86_64-*kfreebsd*-gnu) 6326 LD="${LD-ld} -m elf_x86_64_fbsd" 6327 ;; 6328 x86_64-*linux*) 6329 LD="${LD-ld} -m elf_x86_64" 6330 ;; 6331 powerpcle-*linux*) 6332 LD="${LD-ld} -m elf64lppc" 6333 ;; 6334 powerpc-*linux*) 6335 LD="${LD-ld} -m elf64ppc" 6336 ;; 6337 s390*-*linux*|s390*-*tpf*) 6338 LD="${LD-ld} -m elf64_s390" 6339 ;; 6340 sparc*-*linux*) 6341 LD="${LD-ld} -m elf64_sparc" 6342 ;; 6343 esac 6344 ;; 6345 esac 6346 fi 6347 rm -rf conftest* 6348 ;; 6349 6350*-*-sco3.2v5*) 6351 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6352 SAVE_CFLAGS="$CFLAGS" 6353 CFLAGS="$CFLAGS -belf" 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6355$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6356if ${lt_cv_cc_needs_belf+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 ac_ext=c 6360ac_cpp='$CPP $CPPFLAGS' 6361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6363ac_compiler_gnu=$ac_cv_c_compiler_gnu 6364 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367 6368int 6369main () 6370{ 6371 6372 ; 6373 return 0; 6374} 6375_ACEOF 6376if ac_fn_c_try_link "$LINENO"; then : 6377 lt_cv_cc_needs_belf=yes 6378else 6379 lt_cv_cc_needs_belf=no 6380fi 6381rm -f core conftest.err conftest.$ac_objext \ 6382 conftest$ac_exeext conftest.$ac_ext 6383 ac_ext=c 6384ac_cpp='$CPP $CPPFLAGS' 6385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6387ac_compiler_gnu=$ac_cv_c_compiler_gnu 6388 6389fi 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6391$as_echo "$lt_cv_cc_needs_belf" >&6; } 6392 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6393 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6394 CFLAGS="$SAVE_CFLAGS" 6395 fi 6396 ;; 6397*-*solaris*) 6398 # Find out which ABI we are using. 6399 echo 'int i;' > conftest.$ac_ext 6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6401 (eval $ac_compile) 2>&5 6402 ac_status=$? 6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6404 test $ac_status = 0; }; then 6405 case `/usr/bin/file conftest.o` in 6406 *64-bit*) 6407 case $lt_cv_prog_gnu_ld in 6408 yes*) 6409 case $host in 6410 i?86-*-solaris*) 6411 LD="${LD-ld} -m elf_x86_64" 6412 ;; 6413 sparc*-*-solaris*) 6414 LD="${LD-ld} -m elf64_sparc" 6415 ;; 6416 esac 6417 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6418 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6419 LD="${LD-ld}_sol2" 6420 fi 6421 ;; 6422 *) 6423 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6424 LD="${LD-ld} -64" 6425 fi 6426 ;; 6427 esac 6428 ;; 6429 esac 6430 fi 6431 rm -rf conftest* 6432 ;; 6433esac 6434 6435need_locks="$enable_libtool_lock" 6436 6437if test -n "$ac_tool_prefix"; then 6438 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6439set dummy ${ac_tool_prefix}mt; ac_word=$2 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6441$as_echo_n "checking for $ac_word... " >&6; } 6442if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 if test -n "$MANIFEST_TOOL"; then 6446 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6447else 6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6449for as_dir in $PATH 6450do 6451 IFS=$as_save_IFS 6452 test -z "$as_dir" && as_dir=. 6453 for ac_exec_ext in '' $ac_executable_extensions; do 6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6455 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6457 break 2 6458 fi 6459done 6460 done 6461IFS=$as_save_IFS 6462 6463fi 6464fi 6465MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6466if test -n "$MANIFEST_TOOL"; then 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6468$as_echo "$MANIFEST_TOOL" >&6; } 6469else 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6471$as_echo "no" >&6; } 6472fi 6473 6474 6475fi 6476if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6477 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6478 # Extract the first word of "mt", so it can be a program name with args. 6479set dummy mt; ac_word=$2 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6481$as_echo_n "checking for $ac_word... " >&6; } 6482if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 if test -n "$ac_ct_MANIFEST_TOOL"; then 6486 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6487else 6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6489for as_dir in $PATH 6490do 6491 IFS=$as_save_IFS 6492 test -z "$as_dir" && as_dir=. 6493 for ac_exec_ext in '' $ac_executable_extensions; do 6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6495 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6497 break 2 6498 fi 6499done 6500 done 6501IFS=$as_save_IFS 6502 6503fi 6504fi 6505ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6506if test -n "$ac_ct_MANIFEST_TOOL"; then 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6508$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6509else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6511$as_echo "no" >&6; } 6512fi 6513 6514 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6515 MANIFEST_TOOL=":" 6516 else 6517 case $cross_compiling:$ac_tool_warned in 6518yes:) 6519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6521ac_tool_warned=yes ;; 6522esac 6523 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6524 fi 6525else 6526 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6527fi 6528 6529test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6531$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6532if ${lt_cv_path_mainfest_tool+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 lt_cv_path_mainfest_tool=no 6536 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6537 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6538 cat conftest.err >&5 6539 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6540 lt_cv_path_mainfest_tool=yes 6541 fi 6542 rm -f conftest* 6543fi 6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6545$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6546if test "x$lt_cv_path_mainfest_tool" != xyes; then 6547 MANIFEST_TOOL=: 6548fi 6549 6550 6551 6552 6553 6554 6555 case $host_os in 6556 rhapsody* | darwin*) 6557 if test -n "$ac_tool_prefix"; then 6558 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6559set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561$as_echo_n "checking for $ac_word... " >&6; } 6562if ${ac_cv_prog_DSYMUTIL+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 if test -n "$DSYMUTIL"; then 6566 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6567else 6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569for as_dir in $PATH 6570do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6575 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579done 6580 done 6581IFS=$as_save_IFS 6582 6583fi 6584fi 6585DSYMUTIL=$ac_cv_prog_DSYMUTIL 6586if test -n "$DSYMUTIL"; then 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6588$as_echo "$DSYMUTIL" >&6; } 6589else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593 6594 6595fi 6596if test -z "$ac_cv_prog_DSYMUTIL"; then 6597 ac_ct_DSYMUTIL=$DSYMUTIL 6598 # Extract the first word of "dsymutil", so it can be a program name with args. 6599set dummy dsymutil; ac_word=$2 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6601$as_echo_n "checking for $ac_word... " >&6; } 6602if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 if test -n "$ac_ct_DSYMUTIL"; then 6606 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 test -z "$as_dir" && as_dir=. 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619done 6620 done 6621IFS=$as_save_IFS 6622 6623fi 6624fi 6625ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6626if test -n "$ac_ct_DSYMUTIL"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6628$as_echo "$ac_ct_DSYMUTIL" >&6; } 6629else 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6631$as_echo "no" >&6; } 6632fi 6633 6634 if test "x$ac_ct_DSYMUTIL" = x; then 6635 DSYMUTIL=":" 6636 else 6637 case $cross_compiling:$ac_tool_warned in 6638yes:) 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6641ac_tool_warned=yes ;; 6642esac 6643 DSYMUTIL=$ac_ct_DSYMUTIL 6644 fi 6645else 6646 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6647fi 6648 6649 if test -n "$ac_tool_prefix"; then 6650 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6651set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6653$as_echo_n "checking for $ac_word... " >&6; } 6654if ${ac_cv_prog_NMEDIT+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 if test -n "$NMEDIT"; then 6658 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6659else 6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6661for as_dir in $PATH 6662do 6663 IFS=$as_save_IFS 6664 test -z "$as_dir" && as_dir=. 6665 for ac_exec_ext in '' $ac_executable_extensions; do 6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6667 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6669 break 2 6670 fi 6671done 6672 done 6673IFS=$as_save_IFS 6674 6675fi 6676fi 6677NMEDIT=$ac_cv_prog_NMEDIT 6678if test -n "$NMEDIT"; then 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6680$as_echo "$NMEDIT" >&6; } 6681else 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6683$as_echo "no" >&6; } 6684fi 6685 6686 6687fi 6688if test -z "$ac_cv_prog_NMEDIT"; then 6689 ac_ct_NMEDIT=$NMEDIT 6690 # Extract the first word of "nmedit", so it can be a program name with args. 6691set dummy nmedit; ac_word=$2 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6693$as_echo_n "checking for $ac_word... " >&6; } 6694if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6695 $as_echo_n "(cached) " >&6 6696else 6697 if test -n "$ac_ct_NMEDIT"; then 6698 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6699else 6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6701for as_dir in $PATH 6702do 6703 IFS=$as_save_IFS 6704 test -z "$as_dir" && as_dir=. 6705 for ac_exec_ext in '' $ac_executable_extensions; do 6706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6707 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6709 break 2 6710 fi 6711done 6712 done 6713IFS=$as_save_IFS 6714 6715fi 6716fi 6717ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6718if test -n "$ac_ct_NMEDIT"; then 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6720$as_echo "$ac_ct_NMEDIT" >&6; } 6721else 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6723$as_echo "no" >&6; } 6724fi 6725 6726 if test "x$ac_ct_NMEDIT" = x; then 6727 NMEDIT=":" 6728 else 6729 case $cross_compiling:$ac_tool_warned in 6730yes:) 6731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6733ac_tool_warned=yes ;; 6734esac 6735 NMEDIT=$ac_ct_NMEDIT 6736 fi 6737else 6738 NMEDIT="$ac_cv_prog_NMEDIT" 6739fi 6740 6741 if test -n "$ac_tool_prefix"; then 6742 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6743set dummy ${ac_tool_prefix}lipo; ac_word=$2 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745$as_echo_n "checking for $ac_word... " >&6; } 6746if ${ac_cv_prog_LIPO+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 if test -n "$LIPO"; then 6750 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6759 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763done 6764 done 6765IFS=$as_save_IFS 6766 6767fi 6768fi 6769LIPO=$ac_cv_prog_LIPO 6770if test -n "$LIPO"; then 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6772$as_echo "$LIPO" >&6; } 6773else 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6775$as_echo "no" >&6; } 6776fi 6777 6778 6779fi 6780if test -z "$ac_cv_prog_LIPO"; then 6781 ac_ct_LIPO=$LIPO 6782 # Extract the first word of "lipo", so it can be a program name with args. 6783set dummy lipo; ac_word=$2 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6785$as_echo_n "checking for $ac_word... " >&6; } 6786if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 if test -n "$ac_ct_LIPO"; then 6790 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6791else 6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793for as_dir in $PATH 6794do 6795 IFS=$as_save_IFS 6796 test -z "$as_dir" && as_dir=. 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6799 ac_cv_prog_ac_ct_LIPO="lipo" 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803done 6804 done 6805IFS=$as_save_IFS 6806 6807fi 6808fi 6809ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6810if test -n "$ac_ct_LIPO"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6812$as_echo "$ac_ct_LIPO" >&6; } 6813else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815$as_echo "no" >&6; } 6816fi 6817 6818 if test "x$ac_ct_LIPO" = x; then 6819 LIPO=":" 6820 else 6821 case $cross_compiling:$ac_tool_warned in 6822yes:) 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6825ac_tool_warned=yes ;; 6826esac 6827 LIPO=$ac_ct_LIPO 6828 fi 6829else 6830 LIPO="$ac_cv_prog_LIPO" 6831fi 6832 6833 if test -n "$ac_tool_prefix"; then 6834 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6835set dummy ${ac_tool_prefix}otool; ac_word=$2 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6837$as_echo_n "checking for $ac_word... " >&6; } 6838if ${ac_cv_prog_OTOOL+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 if test -n "$OTOOL"; then 6842 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6843else 6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6845for as_dir in $PATH 6846do 6847 IFS=$as_save_IFS 6848 test -z "$as_dir" && as_dir=. 6849 for ac_exec_ext in '' $ac_executable_extensions; do 6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6851 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6853 break 2 6854 fi 6855done 6856 done 6857IFS=$as_save_IFS 6858 6859fi 6860fi 6861OTOOL=$ac_cv_prog_OTOOL 6862if test -n "$OTOOL"; then 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6864$as_echo "$OTOOL" >&6; } 6865else 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6867$as_echo "no" >&6; } 6868fi 6869 6870 6871fi 6872if test -z "$ac_cv_prog_OTOOL"; then 6873 ac_ct_OTOOL=$OTOOL 6874 # Extract the first word of "otool", so it can be a program name with args. 6875set dummy otool; ac_word=$2 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6877$as_echo_n "checking for $ac_word... " >&6; } 6878if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 if test -n "$ac_ct_OTOOL"; then 6882 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6883else 6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6885for as_dir in $PATH 6886do 6887 IFS=$as_save_IFS 6888 test -z "$as_dir" && as_dir=. 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6891 ac_cv_prog_ac_ct_OTOOL="otool" 6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899fi 6900fi 6901ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6902if test -n "$ac_ct_OTOOL"; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6904$as_echo "$ac_ct_OTOOL" >&6; } 6905else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907$as_echo "no" >&6; } 6908fi 6909 6910 if test "x$ac_ct_OTOOL" = x; then 6911 OTOOL=":" 6912 else 6913 case $cross_compiling:$ac_tool_warned in 6914yes:) 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6917ac_tool_warned=yes ;; 6918esac 6919 OTOOL=$ac_ct_OTOOL 6920 fi 6921else 6922 OTOOL="$ac_cv_prog_OTOOL" 6923fi 6924 6925 if test -n "$ac_tool_prefix"; then 6926 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6927set dummy ${ac_tool_prefix}otool64; ac_word=$2 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6929$as_echo_n "checking for $ac_word... " >&6; } 6930if ${ac_cv_prog_OTOOL64+:} false; then : 6931 $as_echo_n "(cached) " >&6 6932else 6933 if test -n "$OTOOL64"; then 6934 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6935else 6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6943 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947done 6948 done 6949IFS=$as_save_IFS 6950 6951fi 6952fi 6953OTOOL64=$ac_cv_prog_OTOOL64 6954if test -n "$OTOOL64"; then 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6956$as_echo "$OTOOL64" >&6; } 6957else 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6959$as_echo "no" >&6; } 6960fi 6961 6962 6963fi 6964if test -z "$ac_cv_prog_OTOOL64"; then 6965 ac_ct_OTOOL64=$OTOOL64 6966 # Extract the first word of "otool64", so it can be a program name with args. 6967set dummy otool64; ac_word=$2 6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6969$as_echo_n "checking for $ac_word... " >&6; } 6970if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 if test -n "$ac_ct_OTOOL64"; then 6974 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6975else 6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 test -z "$as_dir" && as_dir=. 6981 for ac_exec_ext in '' $ac_executable_extensions; do 6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6983 ac_cv_prog_ac_ct_OTOOL64="otool64" 6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6985 break 2 6986 fi 6987done 6988 done 6989IFS=$as_save_IFS 6990 6991fi 6992fi 6993ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6994if test -n "$ac_ct_OTOOL64"; then 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6996$as_echo "$ac_ct_OTOOL64" >&6; } 6997else 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6999$as_echo "no" >&6; } 7000fi 7001 7002 if test "x$ac_ct_OTOOL64" = x; then 7003 OTOOL64=":" 7004 else 7005 case $cross_compiling:$ac_tool_warned in 7006yes:) 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7009ac_tool_warned=yes ;; 7010esac 7011 OTOOL64=$ac_ct_OTOOL64 7012 fi 7013else 7014 OTOOL64="$ac_cv_prog_OTOOL64" 7015fi 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7044$as_echo_n "checking for -single_module linker flag... " >&6; } 7045if ${lt_cv_apple_cc_single_mod+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 lt_cv_apple_cc_single_mod=no 7049 if test -z "${LT_MULTI_MODULE}"; then 7050 # By default we will add the -single_module flag. You can override 7051 # by either setting the environment variable LT_MULTI_MODULE 7052 # non-empty at configure time, or by adding -multi_module to the 7053 # link flags. 7054 rm -rf libconftest.dylib* 7055 echo "int foo(void){return 1;}" > conftest.c 7056 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7057-dynamiclib -Wl,-single_module conftest.c" >&5 7058 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7059 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7060 _lt_result=$? 7061 # If there is a non-empty error log, and "single_module" 7062 # appears in it, assume the flag caused a linker warning 7063 if test -s conftest.err && $GREP single_module conftest.err; then 7064 cat conftest.err >&5 7065 # Otherwise, if the output was created with a 0 exit code from 7066 # the compiler, it worked. 7067 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7068 lt_cv_apple_cc_single_mod=yes 7069 else 7070 cat conftest.err >&5 7071 fi 7072 rm -rf libconftest.dylib* 7073 rm -f conftest.* 7074 fi 7075fi 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7077$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7078 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7080$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7081if ${lt_cv_ld_exported_symbols_list+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 lt_cv_ld_exported_symbols_list=no 7085 save_LDFLAGS=$LDFLAGS 7086 echo "_main" > conftest.sym 7087 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7089/* end confdefs.h. */ 7090 7091int 7092main () 7093{ 7094 7095 ; 7096 return 0; 7097} 7098_ACEOF 7099if ac_fn_c_try_link "$LINENO"; then : 7100 lt_cv_ld_exported_symbols_list=yes 7101else 7102 lt_cv_ld_exported_symbols_list=no 7103fi 7104rm -f core conftest.err conftest.$ac_objext \ 7105 conftest$ac_exeext conftest.$ac_ext 7106 LDFLAGS="$save_LDFLAGS" 7107 7108fi 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7110$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7111 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7113$as_echo_n "checking for -force_load linker flag... " >&6; } 7114if ${lt_cv_ld_force_load+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 lt_cv_ld_force_load=no 7118 cat > conftest.c << _LT_EOF 7119int forced_loaded() { return 2;} 7120_LT_EOF 7121 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7122 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7123 echo "$AR cru libconftest.a conftest.o" >&5 7124 $AR cru libconftest.a conftest.o 2>&5 7125 echo "$RANLIB libconftest.a" >&5 7126 $RANLIB libconftest.a 2>&5 7127 cat > conftest.c << _LT_EOF 7128int main() { return 0;} 7129_LT_EOF 7130 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7131 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7132 _lt_result=$? 7133 if test -s conftest.err && $GREP force_load conftest.err; then 7134 cat conftest.err >&5 7135 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7136 lt_cv_ld_force_load=yes 7137 else 7138 cat conftest.err >&5 7139 fi 7140 rm -f conftest.err libconftest.a conftest conftest.c 7141 rm -rf conftest.dSYM 7142 7143fi 7144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7145$as_echo "$lt_cv_ld_force_load" >&6; } 7146 case $host_os in 7147 rhapsody* | darwin1.[012]) 7148 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7149 darwin1.*) 7150 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7151 darwin*) # darwin 5.x on 7152 # if running on 10.5 or later, the deployment target defaults 7153 # to the OS version, if on x86, and 10.4, the deployment 7154 # target defaults to 10.4. Don't you love it? 7155 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7156 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7157 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7158 10.[012]*) 7159 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7160 10.*) 7161 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7162 esac 7163 ;; 7164 esac 7165 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7166 _lt_dar_single_mod='$single_module' 7167 fi 7168 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7169 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7170 else 7171 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7172 fi 7173 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7174 _lt_dsymutil='~$DSYMUTIL $lib || :' 7175 else 7176 _lt_dsymutil= 7177 fi 7178 ;; 7179 esac 7180 7181ac_ext=c 7182ac_cpp='$CPP $CPPFLAGS' 7183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7185ac_compiler_gnu=$ac_cv_c_compiler_gnu 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7187$as_echo_n "checking how to run the C preprocessor... " >&6; } 7188# On Suns, sometimes $CPP names a directory. 7189if test -n "$CPP" && test -d "$CPP"; then 7190 CPP= 7191fi 7192if test -z "$CPP"; then 7193 if ${ac_cv_prog_CPP+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 # Double quotes because CPP needs to be expanded 7197 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7198 do 7199 ac_preproc_ok=false 7200for ac_c_preproc_warn_flag in '' yes 7201do 7202 # Use a header file that comes with gcc, so configuring glibc 7203 # with a fresh cross-compiler works. 7204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7205 # <limits.h> exists even on freestanding compilers. 7206 # On the NeXT, cc -E runs the code through the compiler's parser, 7207 # not just through cpp. "Syntax error" is here to catch this case. 7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209/* end confdefs.h. */ 7210#ifdef __STDC__ 7211# include <limits.h> 7212#else 7213# include <assert.h> 7214#endif 7215 Syntax error 7216_ACEOF 7217if ac_fn_c_try_cpp "$LINENO"; then : 7218 7219else 7220 # Broken: fails on valid input. 7221continue 7222fi 7223rm -f conftest.err conftest.i conftest.$ac_ext 7224 7225 # OK, works on sane cases. Now check whether nonexistent headers 7226 # can be detected and how. 7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7228/* end confdefs.h. */ 7229#include <ac_nonexistent.h> 7230_ACEOF 7231if ac_fn_c_try_cpp "$LINENO"; then : 7232 # Broken: success on invalid input. 7233continue 7234else 7235 # Passes both tests. 7236ac_preproc_ok=: 7237break 7238fi 7239rm -f conftest.err conftest.i conftest.$ac_ext 7240 7241done 7242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7243rm -f conftest.i conftest.err conftest.$ac_ext 7244if $ac_preproc_ok; then : 7245 break 7246fi 7247 7248 done 7249 ac_cv_prog_CPP=$CPP 7250 7251fi 7252 CPP=$ac_cv_prog_CPP 7253else 7254 ac_cv_prog_CPP=$CPP 7255fi 7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7257$as_echo "$CPP" >&6; } 7258ac_preproc_ok=false 7259for ac_c_preproc_warn_flag in '' yes 7260do 7261 # Use a header file that comes with gcc, so configuring glibc 7262 # with a fresh cross-compiler works. 7263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7264 # <limits.h> exists even on freestanding compilers. 7265 # On the NeXT, cc -E runs the code through the compiler's parser, 7266 # not just through cpp. "Syntax error" is here to catch this case. 7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7268/* end confdefs.h. */ 7269#ifdef __STDC__ 7270# include <limits.h> 7271#else 7272# include <assert.h> 7273#endif 7274 Syntax error 7275_ACEOF 7276if ac_fn_c_try_cpp "$LINENO"; then : 7277 7278else 7279 # Broken: fails on valid input. 7280continue 7281fi 7282rm -f conftest.err conftest.i conftest.$ac_ext 7283 7284 # OK, works on sane cases. Now check whether nonexistent headers 7285 # can be detected and how. 7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288#include <ac_nonexistent.h> 7289_ACEOF 7290if ac_fn_c_try_cpp "$LINENO"; then : 7291 # Broken: success on invalid input. 7292continue 7293else 7294 # Passes both tests. 7295ac_preproc_ok=: 7296break 7297fi 7298rm -f conftest.err conftest.i conftest.$ac_ext 7299 7300done 7301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7302rm -f conftest.i conftest.err conftest.$ac_ext 7303if $ac_preproc_ok; then : 7304 7305else 7306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7308as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7309See \`config.log' for more details" "$LINENO" 5; } 7310fi 7311 7312ac_ext=c 7313ac_cpp='$CPP $CPPFLAGS' 7314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7316ac_compiler_gnu=$ac_cv_c_compiler_gnu 7317 7318 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7320$as_echo_n "checking for ANSI C header files... " >&6; } 7321if ${ac_cv_header_stdc+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7325/* end confdefs.h. */ 7326#include <stdlib.h> 7327#include <stdarg.h> 7328#include <string.h> 7329#include <float.h> 7330 7331int 7332main () 7333{ 7334 7335 ; 7336 return 0; 7337} 7338_ACEOF 7339if ac_fn_c_try_compile "$LINENO"; then : 7340 ac_cv_header_stdc=yes 7341else 7342 ac_cv_header_stdc=no 7343fi 7344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7345 7346if test $ac_cv_header_stdc = yes; then 7347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7349/* end confdefs.h. */ 7350#include <string.h> 7351 7352_ACEOF 7353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7354 $EGREP "memchr" >/dev/null 2>&1; then : 7355 7356else 7357 ac_cv_header_stdc=no 7358fi 7359rm -f conftest* 7360 7361fi 7362 7363if test $ac_cv_header_stdc = yes; then 7364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367#include <stdlib.h> 7368 7369_ACEOF 7370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7371 $EGREP "free" >/dev/null 2>&1; then : 7372 7373else 7374 ac_cv_header_stdc=no 7375fi 7376rm -f conftest* 7377 7378fi 7379 7380if test $ac_cv_header_stdc = yes; then 7381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7382 if test "$cross_compiling" = yes; then : 7383 : 7384else 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387#include <ctype.h> 7388#include <stdlib.h> 7389#if ((' ' & 0x0FF) == 0x020) 7390# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7391# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7392#else 7393# define ISLOWER(c) \ 7394 (('a' <= (c) && (c) <= 'i') \ 7395 || ('j' <= (c) && (c) <= 'r') \ 7396 || ('s' <= (c) && (c) <= 'z')) 7397# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7398#endif 7399 7400#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7401int 7402main () 7403{ 7404 int i; 7405 for (i = 0; i < 256; i++) 7406 if (XOR (islower (i), ISLOWER (i)) 7407 || toupper (i) != TOUPPER (i)) 7408 return 2; 7409 return 0; 7410} 7411_ACEOF 7412if ac_fn_c_try_run "$LINENO"; then : 7413 7414else 7415 ac_cv_header_stdc=no 7416fi 7417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7418 conftest.$ac_objext conftest.beam conftest.$ac_ext 7419fi 7420 7421fi 7422fi 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7424$as_echo "$ac_cv_header_stdc" >&6; } 7425if test $ac_cv_header_stdc = yes; then 7426 7427$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7428 7429fi 7430 7431# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7433 inttypes.h stdint.h unistd.h 7434do : 7435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7436ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7437" 7438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7439 cat >>confdefs.h <<_ACEOF 7440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7441_ACEOF 7442 7443fi 7444 7445done 7446 7447 7448for ac_header in dlfcn.h 7449do : 7450 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7451" 7452if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7453 cat >>confdefs.h <<_ACEOF 7454#define HAVE_DLFCN_H 1 7455_ACEOF 7456 7457fi 7458 7459done 7460 7461 7462 7463 7464 7465# Set options 7466 7467 7468 7469 enable_dlopen=no 7470 7471 7472 enable_win32_dll=no 7473 7474 7475 # Check whether --enable-shared was given. 7476if test "${enable_shared+set}" = set; then : 7477 enableval=$enable_shared; p=${PACKAGE-default} 7478 case $enableval in 7479 yes) enable_shared=yes ;; 7480 no) enable_shared=no ;; 7481 *) 7482 enable_shared=no 7483 # Look at the argument we got. We use all the common list separators. 7484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7485 for pkg in $enableval; do 7486 IFS="$lt_save_ifs" 7487 if test "X$pkg" = "X$p"; then 7488 enable_shared=yes 7489 fi 7490 done 7491 IFS="$lt_save_ifs" 7492 ;; 7493 esac 7494else 7495 enable_shared=yes 7496fi 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 # Check whether --enable-static was given. 7507if test "${enable_static+set}" = set; then : 7508 enableval=$enable_static; p=${PACKAGE-default} 7509 case $enableval in 7510 yes) enable_static=yes ;; 7511 no) enable_static=no ;; 7512 *) 7513 enable_static=no 7514 # Look at the argument we got. We use all the common list separators. 7515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7516 for pkg in $enableval; do 7517 IFS="$lt_save_ifs" 7518 if test "X$pkg" = "X$p"; then 7519 enable_static=yes 7520 fi 7521 done 7522 IFS="$lt_save_ifs" 7523 ;; 7524 esac 7525else 7526 enable_static=yes 7527fi 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538# Check whether --with-pic was given. 7539if test "${with_pic+set}" = set; then : 7540 withval=$with_pic; lt_p=${PACKAGE-default} 7541 case $withval in 7542 yes|no) pic_mode=$withval ;; 7543 *) 7544 pic_mode=default 7545 # Look at the argument we got. We use all the common list separators. 7546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7547 for lt_pkg in $withval; do 7548 IFS="$lt_save_ifs" 7549 if test "X$lt_pkg" = "X$lt_p"; then 7550 pic_mode=yes 7551 fi 7552 done 7553 IFS="$lt_save_ifs" 7554 ;; 7555 esac 7556else 7557 pic_mode=default 7558fi 7559 7560 7561test -z "$pic_mode" && pic_mode=default 7562 7563 7564 7565 7566 7567 7568 7569 # Check whether --enable-fast-install was given. 7570if test "${enable_fast_install+set}" = set; then : 7571 enableval=$enable_fast_install; p=${PACKAGE-default} 7572 case $enableval in 7573 yes) enable_fast_install=yes ;; 7574 no) enable_fast_install=no ;; 7575 *) 7576 enable_fast_install=no 7577 # Look at the argument we got. We use all the common list separators. 7578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7579 for pkg in $enableval; do 7580 IFS="$lt_save_ifs" 7581 if test "X$pkg" = "X$p"; then 7582 enable_fast_install=yes 7583 fi 7584 done 7585 IFS="$lt_save_ifs" 7586 ;; 7587 esac 7588else 7589 enable_fast_install=yes 7590fi 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602# This can be used to rebuild libtool when needed 7603LIBTOOL_DEPS="$ltmain" 7604 7605# Always use our own libtool. 7606LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637test -z "$LN_S" && LN_S="ln -s" 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652if test -n "${ZSH_VERSION+set}" ; then 7653 setopt NO_GLOB_SUBST 7654fi 7655 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7657$as_echo_n "checking for objdir... " >&6; } 7658if ${lt_cv_objdir+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 rm -f .libs 2>/dev/null 7662mkdir .libs 2>/dev/null 7663if test -d .libs; then 7664 lt_cv_objdir=.libs 7665else 7666 # MS-DOS does not allow filenames that begin with a dot. 7667 lt_cv_objdir=_libs 7668fi 7669rmdir .libs 2>/dev/null 7670fi 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7672$as_echo "$lt_cv_objdir" >&6; } 7673objdir=$lt_cv_objdir 7674 7675 7676 7677 7678 7679cat >>confdefs.h <<_ACEOF 7680#define LT_OBJDIR "$lt_cv_objdir/" 7681_ACEOF 7682 7683 7684 7685 7686case $host_os in 7687aix3*) 7688 # AIX sometimes has problems with the GCC collect2 program. For some 7689 # reason, if we set the COLLECT_NAMES environment variable, the problems 7690 # vanish in a puff of smoke. 7691 if test "X${COLLECT_NAMES+set}" != Xset; then 7692 COLLECT_NAMES= 7693 export COLLECT_NAMES 7694 fi 7695 ;; 7696esac 7697 7698# Global variables: 7699ofile=libtool 7700can_build_shared=yes 7701 7702# All known linkers require a `.a' archive for static linking (except MSVC, 7703# which needs '.lib'). 7704libext=a 7705 7706with_gnu_ld="$lt_cv_prog_gnu_ld" 7707 7708old_CC="$CC" 7709old_CFLAGS="$CFLAGS" 7710 7711# Set sane defaults for various variables 7712test -z "$CC" && CC=cc 7713test -z "$LTCC" && LTCC=$CC 7714test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7715test -z "$LD" && LD=ld 7716test -z "$ac_objext" && ac_objext=o 7717 7718for cc_temp in $compiler""; do 7719 case $cc_temp in 7720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7722 \-*) ;; 7723 *) break;; 7724 esac 7725done 7726cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7727 7728 7729# Only perform the check for file, if the check method requires it 7730test -z "$MAGIC_CMD" && MAGIC_CMD=file 7731case $deplibs_check_method in 7732file_magic*) 7733 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7735$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7736if ${lt_cv_path_MAGIC_CMD+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738else 7739 case $MAGIC_CMD in 7740[\\/*] | ?:[\\/]*) 7741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7742 ;; 7743*) 7744 lt_save_MAGIC_CMD="$MAGIC_CMD" 7745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7747 for ac_dir in $ac_dummy; do 7748 IFS="$lt_save_ifs" 7749 test -z "$ac_dir" && ac_dir=. 7750 if test -f $ac_dir/${ac_tool_prefix}file; then 7751 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7752 if test -n "$file_magic_test_file"; then 7753 case $deplibs_check_method in 7754 "file_magic "*) 7755 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7758 $EGREP "$file_magic_regex" > /dev/null; then 7759 : 7760 else 7761 cat <<_LT_EOF 1>&2 7762 7763*** Warning: the command libtool uses to detect shared libraries, 7764*** $file_magic_cmd, produces output that libtool cannot recognize. 7765*** The result is that libtool may fail to recognize shared libraries 7766*** as such. This will affect the creation of libtool libraries that 7767*** depend on shared libraries, but programs linked with such libtool 7768*** libraries will work regardless of this problem. Nevertheless, you 7769*** may want to report the problem to your system manager and/or to 7770*** bug-libtool@gnu.org 7771 7772_LT_EOF 7773 fi ;; 7774 esac 7775 fi 7776 break 7777 fi 7778 done 7779 IFS="$lt_save_ifs" 7780 MAGIC_CMD="$lt_save_MAGIC_CMD" 7781 ;; 7782esac 7783fi 7784 7785MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7786if test -n "$MAGIC_CMD"; then 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7788$as_echo "$MAGIC_CMD" >&6; } 7789else 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7791$as_echo "no" >&6; } 7792fi 7793 7794 7795 7796 7797 7798if test -z "$lt_cv_path_MAGIC_CMD"; then 7799 if test -n "$ac_tool_prefix"; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7801$as_echo_n "checking for file... " >&6; } 7802if ${lt_cv_path_MAGIC_CMD+:} false; then : 7803 $as_echo_n "(cached) " >&6 7804else 7805 case $MAGIC_CMD in 7806[\\/*] | ?:[\\/]*) 7807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7808 ;; 7809*) 7810 lt_save_MAGIC_CMD="$MAGIC_CMD" 7811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7812 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7813 for ac_dir in $ac_dummy; do 7814 IFS="$lt_save_ifs" 7815 test -z "$ac_dir" && ac_dir=. 7816 if test -f $ac_dir/file; then 7817 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7818 if test -n "$file_magic_test_file"; then 7819 case $deplibs_check_method in 7820 "file_magic "*) 7821 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7823 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7824 $EGREP "$file_magic_regex" > /dev/null; then 7825 : 7826 else 7827 cat <<_LT_EOF 1>&2 7828 7829*** Warning: the command libtool uses to detect shared libraries, 7830*** $file_magic_cmd, produces output that libtool cannot recognize. 7831*** The result is that libtool may fail to recognize shared libraries 7832*** as such. This will affect the creation of libtool libraries that 7833*** depend on shared libraries, but programs linked with such libtool 7834*** libraries will work regardless of this problem. Nevertheless, you 7835*** may want to report the problem to your system manager and/or to 7836*** bug-libtool@gnu.org 7837 7838_LT_EOF 7839 fi ;; 7840 esac 7841 fi 7842 break 7843 fi 7844 done 7845 IFS="$lt_save_ifs" 7846 MAGIC_CMD="$lt_save_MAGIC_CMD" 7847 ;; 7848esac 7849fi 7850 7851MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7852if test -n "$MAGIC_CMD"; then 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7854$as_echo "$MAGIC_CMD" >&6; } 7855else 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7857$as_echo "no" >&6; } 7858fi 7859 7860 7861 else 7862 MAGIC_CMD=: 7863 fi 7864fi 7865 7866 fi 7867 ;; 7868esac 7869 7870# Use C for the default configuration in the libtool script 7871 7872lt_save_CC="$CC" 7873ac_ext=c 7874ac_cpp='$CPP $CPPFLAGS' 7875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7877ac_compiler_gnu=$ac_cv_c_compiler_gnu 7878 7879 7880# Source file extension for C test sources. 7881ac_ext=c 7882 7883# Object file extension for compiled C test sources. 7884objext=o 7885objext=$objext 7886 7887# Code to be used in simple compile tests 7888lt_simple_compile_test_code="int some_variable = 0;" 7889 7890# Code to be used in simple link tests 7891lt_simple_link_test_code='int main(){return(0);}' 7892 7893 7894 7895 7896 7897 7898 7899# If no C compiler was specified, use CC. 7900LTCC=${LTCC-"$CC"} 7901 7902# If no C compiler flags were specified, use CFLAGS. 7903LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7904 7905# Allow CC to be a program name with arguments. 7906compiler=$CC 7907 7908# Save the default compiler, since it gets overwritten when the other 7909# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7910compiler_DEFAULT=$CC 7911 7912# save warnings/boilerplate of simple test code 7913ac_outfile=conftest.$ac_objext 7914echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7915eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7916_lt_compiler_boilerplate=`cat conftest.err` 7917$RM conftest* 7918 7919ac_outfile=conftest.$ac_objext 7920echo "$lt_simple_link_test_code" >conftest.$ac_ext 7921eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7922_lt_linker_boilerplate=`cat conftest.err` 7923$RM -r conftest* 7924 7925 7926if test -n "$compiler"; then 7927 7928lt_prog_compiler_no_builtin_flag= 7929 7930if test "$GCC" = yes; then 7931 case $cc_basename in 7932 nvcc*) 7933 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7934 *) 7935 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7936 esac 7937 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7939$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7940if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 lt_cv_prog_compiler_rtti_exceptions=no 7944 ac_outfile=conftest.$ac_objext 7945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7946 lt_compiler_flag="-fno-rtti -fno-exceptions" 7947 # Insert the option either (1) after the last *FLAGS variable, or 7948 # (2) before a word containing "conftest.", or (3) at the end. 7949 # Note that $ac_compile itself does not contain backslashes and begins 7950 # with a dollar sign (not a hyphen), so the echo should work correctly. 7951 # The option is referenced via a variable to avoid confusing sed. 7952 lt_compile=`echo "$ac_compile" | $SED \ 7953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7955 -e 's:$: $lt_compiler_flag:'` 7956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7957 (eval "$lt_compile" 2>conftest.err) 7958 ac_status=$? 7959 cat conftest.err >&5 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7961 if (exit $ac_status) && test -s "$ac_outfile"; then 7962 # The compiler can only warn and ignore the option if not recognized 7963 # So say no if there are warnings other than the usual output. 7964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7967 lt_cv_prog_compiler_rtti_exceptions=yes 7968 fi 7969 fi 7970 $RM conftest* 7971 7972fi 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7974$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7975 7976if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7977 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7978else 7979 : 7980fi 7981 7982fi 7983 7984 7985 7986 7987 7988 7989 lt_prog_compiler_wl= 7990lt_prog_compiler_pic= 7991lt_prog_compiler_static= 7992 7993 7994 if test "$GCC" = yes; then 7995 lt_prog_compiler_wl='-Wl,' 7996 lt_prog_compiler_static='-static' 7997 7998 case $host_os in 7999 aix*) 8000 # All AIX code is PIC. 8001 if test "$host_cpu" = ia64; then 8002 # AIX 5 now supports IA64 processor 8003 lt_prog_compiler_static='-Bstatic' 8004 fi 8005 ;; 8006 8007 amigaos*) 8008 case $host_cpu in 8009 powerpc) 8010 # see comment about AmigaOS4 .so support 8011 lt_prog_compiler_pic='-fPIC' 8012 ;; 8013 m68k) 8014 # FIXME: we need at least 68020 code to build shared libraries, but 8015 # adding the `-m68020' flag to GCC prevents building anything better, 8016 # like `-m68040'. 8017 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8018 ;; 8019 esac 8020 ;; 8021 8022 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8023 # PIC is the default for these OSes. 8024 ;; 8025 8026 mingw* | cygwin* | pw32* | os2* | cegcc*) 8027 # This hack is so that the source file can tell whether it is being 8028 # built for inclusion in a dll (and should export symbols for example). 8029 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8030 # (--disable-auto-import) libraries 8031 lt_prog_compiler_pic='-DDLL_EXPORT' 8032 ;; 8033 8034 darwin* | rhapsody*) 8035 # PIC is the default on this platform 8036 # Common symbols not allowed in MH_DYLIB files 8037 lt_prog_compiler_pic='-fno-common' 8038 ;; 8039 8040 haiku*) 8041 # PIC is the default for Haiku. 8042 # The "-static" flag exists, but is broken. 8043 lt_prog_compiler_static= 8044 ;; 8045 8046 hpux*) 8047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8049 # sets the default TLS model and affects inlining. 8050 case $host_cpu in 8051 hppa*64*) 8052 # +Z the default 8053 ;; 8054 *) 8055 lt_prog_compiler_pic='-fPIC' 8056 ;; 8057 esac 8058 ;; 8059 8060 interix[3-9]*) 8061 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8062 # Instead, we relocate shared libraries at runtime. 8063 ;; 8064 8065 msdosdjgpp*) 8066 # Just because we use GCC doesn't mean we suddenly get shared libraries 8067 # on systems that don't support them. 8068 lt_prog_compiler_can_build_shared=no 8069 enable_shared=no 8070 ;; 8071 8072 *nto* | *qnx*) 8073 # QNX uses GNU C++, but need to define -shared option too, otherwise 8074 # it will coredump. 8075 lt_prog_compiler_pic='-fPIC -shared' 8076 ;; 8077 8078 sysv4*MP*) 8079 if test -d /usr/nec; then 8080 lt_prog_compiler_pic=-Kconform_pic 8081 fi 8082 ;; 8083 8084 *) 8085 lt_prog_compiler_pic='-fPIC' 8086 ;; 8087 esac 8088 8089 case $cc_basename in 8090 nvcc*) # Cuda Compiler Driver 2.2 8091 lt_prog_compiler_wl='-Xlinker ' 8092 if test -n "$lt_prog_compiler_pic"; then 8093 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8094 fi 8095 ;; 8096 esac 8097 else 8098 # PORTME Check for flag to pass linker flags through the system compiler. 8099 case $host_os in 8100 aix*) 8101 lt_prog_compiler_wl='-Wl,' 8102 if test "$host_cpu" = ia64; then 8103 # AIX 5 now supports IA64 processor 8104 lt_prog_compiler_static='-Bstatic' 8105 else 8106 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8107 fi 8108 ;; 8109 8110 mingw* | cygwin* | pw32* | os2* | cegcc*) 8111 # This hack is so that the source file can tell whether it is being 8112 # built for inclusion in a dll (and should export symbols for example). 8113 lt_prog_compiler_pic='-DDLL_EXPORT' 8114 ;; 8115 8116 hpux9* | hpux10* | hpux11*) 8117 lt_prog_compiler_wl='-Wl,' 8118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8119 # not for PA HP-UX. 8120 case $host_cpu in 8121 hppa*64*|ia64*) 8122 # +Z the default 8123 ;; 8124 *) 8125 lt_prog_compiler_pic='+Z' 8126 ;; 8127 esac 8128 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8129 lt_prog_compiler_static='${wl}-a ${wl}archive' 8130 ;; 8131 8132 irix5* | irix6* | nonstopux*) 8133 lt_prog_compiler_wl='-Wl,' 8134 # PIC (with -KPIC) is the default. 8135 lt_prog_compiler_static='-non_shared' 8136 ;; 8137 8138 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8139 case $cc_basename in 8140 # old Intel for x86_64 which still supported -KPIC. 8141 ecc*) 8142 lt_prog_compiler_wl='-Wl,' 8143 lt_prog_compiler_pic='-KPIC' 8144 lt_prog_compiler_static='-static' 8145 ;; 8146 # icc used to be incompatible with GCC. 8147 # ICC 10 doesn't accept -KPIC any more. 8148 icc* | ifort*) 8149 lt_prog_compiler_wl='-Wl,' 8150 lt_prog_compiler_pic='-fPIC' 8151 lt_prog_compiler_static='-static' 8152 ;; 8153 # Lahey Fortran 8.1. 8154 lf95*) 8155 lt_prog_compiler_wl='-Wl,' 8156 lt_prog_compiler_pic='--shared' 8157 lt_prog_compiler_static='--static' 8158 ;; 8159 nagfor*) 8160 # NAG Fortran compiler 8161 lt_prog_compiler_wl='-Wl,-Wl,,' 8162 lt_prog_compiler_pic='-PIC' 8163 lt_prog_compiler_static='-Bstatic' 8164 ;; 8165 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8166 # Portland Group compilers (*not* the Pentium gcc compiler, 8167 # which looks to be a dead project) 8168 lt_prog_compiler_wl='-Wl,' 8169 lt_prog_compiler_pic='-fpic' 8170 lt_prog_compiler_static='-Bstatic' 8171 ;; 8172 ccc*) 8173 lt_prog_compiler_wl='-Wl,' 8174 # All Alpha code is PIC. 8175 lt_prog_compiler_static='-non_shared' 8176 ;; 8177 xl* | bgxl* | bgf* | mpixl*) 8178 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8179 lt_prog_compiler_wl='-Wl,' 8180 lt_prog_compiler_pic='-qpic' 8181 lt_prog_compiler_static='-qstaticlink' 8182 ;; 8183 *) 8184 case `$CC -V 2>&1 | sed 5q` in 8185 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8186 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8187 lt_prog_compiler_pic='-KPIC' 8188 lt_prog_compiler_static='-Bstatic' 8189 lt_prog_compiler_wl='' 8190 ;; 8191 *Sun\ F* | *Sun*Fortran*) 8192 lt_prog_compiler_pic='-KPIC' 8193 lt_prog_compiler_static='-Bstatic' 8194 lt_prog_compiler_wl='-Qoption ld ' 8195 ;; 8196 *Sun\ C*) 8197 # Sun C 5.9 8198 lt_prog_compiler_pic='-KPIC' 8199 lt_prog_compiler_static='-Bstatic' 8200 lt_prog_compiler_wl='-Wl,' 8201 ;; 8202 *Intel*\ [CF]*Compiler*) 8203 lt_prog_compiler_wl='-Wl,' 8204 lt_prog_compiler_pic='-fPIC' 8205 lt_prog_compiler_static='-static' 8206 ;; 8207 *Portland\ Group*) 8208 lt_prog_compiler_wl='-Wl,' 8209 lt_prog_compiler_pic='-fpic' 8210 lt_prog_compiler_static='-Bstatic' 8211 ;; 8212 esac 8213 ;; 8214 esac 8215 ;; 8216 8217 newsos6) 8218 lt_prog_compiler_pic='-KPIC' 8219 lt_prog_compiler_static='-Bstatic' 8220 ;; 8221 8222 *nto* | *qnx*) 8223 # QNX uses GNU C++, but need to define -shared option too, otherwise 8224 # it will coredump. 8225 lt_prog_compiler_pic='-fPIC -shared' 8226 ;; 8227 8228 osf3* | osf4* | osf5*) 8229 lt_prog_compiler_wl='-Wl,' 8230 # All OSF/1 code is PIC. 8231 lt_prog_compiler_static='-non_shared' 8232 ;; 8233 8234 rdos*) 8235 lt_prog_compiler_static='-non_shared' 8236 ;; 8237 8238 solaris*) 8239 lt_prog_compiler_pic='-KPIC' 8240 lt_prog_compiler_static='-Bstatic' 8241 case $cc_basename in 8242 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8243 lt_prog_compiler_wl='-Qoption ld ';; 8244 *) 8245 lt_prog_compiler_wl='-Wl,';; 8246 esac 8247 ;; 8248 8249 sunos4*) 8250 lt_prog_compiler_wl='-Qoption ld ' 8251 lt_prog_compiler_pic='-PIC' 8252 lt_prog_compiler_static='-Bstatic' 8253 ;; 8254 8255 sysv4 | sysv4.2uw2* | sysv4.3*) 8256 lt_prog_compiler_wl='-Wl,' 8257 lt_prog_compiler_pic='-KPIC' 8258 lt_prog_compiler_static='-Bstatic' 8259 ;; 8260 8261 sysv4*MP*) 8262 if test -d /usr/nec ;then 8263 lt_prog_compiler_pic='-Kconform_pic' 8264 lt_prog_compiler_static='-Bstatic' 8265 fi 8266 ;; 8267 8268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8269 lt_prog_compiler_wl='-Wl,' 8270 lt_prog_compiler_pic='-KPIC' 8271 lt_prog_compiler_static='-Bstatic' 8272 ;; 8273 8274 unicos*) 8275 lt_prog_compiler_wl='-Wl,' 8276 lt_prog_compiler_can_build_shared=no 8277 ;; 8278 8279 uts4*) 8280 lt_prog_compiler_pic='-pic' 8281 lt_prog_compiler_static='-Bstatic' 8282 ;; 8283 8284 *) 8285 lt_prog_compiler_can_build_shared=no 8286 ;; 8287 esac 8288 fi 8289 8290case $host_os in 8291 # For platforms which do not support PIC, -DPIC is meaningless: 8292 *djgpp*) 8293 lt_prog_compiler_pic= 8294 ;; 8295 *) 8296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8297 ;; 8298esac 8299 8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8301$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8302if ${lt_cv_prog_compiler_pic+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8306fi 8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8308$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8309lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8310 8311# 8312# Check to make sure the PIC flag actually works. 8313# 8314if test -n "$lt_prog_compiler_pic"; then 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8316$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8317if ${lt_cv_prog_compiler_pic_works+:} false; then : 8318 $as_echo_n "(cached) " >&6 8319else 8320 lt_cv_prog_compiler_pic_works=no 8321 ac_outfile=conftest.$ac_objext 8322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8323 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8324 # Insert the option either (1) after the last *FLAGS variable, or 8325 # (2) before a word containing "conftest.", or (3) at the end. 8326 # Note that $ac_compile itself does not contain backslashes and begins 8327 # with a dollar sign (not a hyphen), so the echo should work correctly. 8328 # The option is referenced via a variable to avoid confusing sed. 8329 lt_compile=`echo "$ac_compile" | $SED \ 8330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8332 -e 's:$: $lt_compiler_flag:'` 8333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8334 (eval "$lt_compile" 2>conftest.err) 8335 ac_status=$? 8336 cat conftest.err >&5 8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8338 if (exit $ac_status) && test -s "$ac_outfile"; then 8339 # The compiler can only warn and ignore the option if not recognized 8340 # So say no if there are warnings other than the usual output. 8341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8344 lt_cv_prog_compiler_pic_works=yes 8345 fi 8346 fi 8347 $RM conftest* 8348 8349fi 8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8351$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8352 8353if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8354 case $lt_prog_compiler_pic in 8355 "" | " "*) ;; 8356 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8357 esac 8358else 8359 lt_prog_compiler_pic= 8360 lt_prog_compiler_can_build_shared=no 8361fi 8362 8363fi 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375# 8376# Check to make sure the static flag actually works. 8377# 8378wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8380$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8381if ${lt_cv_prog_compiler_static_works+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 lt_cv_prog_compiler_static_works=no 8385 save_LDFLAGS="$LDFLAGS" 8386 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8387 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8389 # The linker can only warn and ignore the option if not recognized 8390 # So say no if there are warnings 8391 if test -s conftest.err; then 8392 # Append any errors to the config.log. 8393 cat conftest.err 1>&5 8394 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8396 if diff conftest.exp conftest.er2 >/dev/null; then 8397 lt_cv_prog_compiler_static_works=yes 8398 fi 8399 else 8400 lt_cv_prog_compiler_static_works=yes 8401 fi 8402 fi 8403 $RM -r conftest* 8404 LDFLAGS="$save_LDFLAGS" 8405 8406fi 8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8408$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8409 8410if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8411 : 8412else 8413 lt_prog_compiler_static= 8414fi 8415 8416 8417 8418 8419 8420 8421 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8423$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8424if ${lt_cv_prog_compiler_c_o+:} false; then : 8425 $as_echo_n "(cached) " >&6 8426else 8427 lt_cv_prog_compiler_c_o=no 8428 $RM -r conftest 2>/dev/null 8429 mkdir conftest 8430 cd conftest 8431 mkdir out 8432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8433 8434 lt_compiler_flag="-o out/conftest2.$ac_objext" 8435 # Insert the option either (1) after the last *FLAGS variable, or 8436 # (2) before a word containing "conftest.", or (3) at the end. 8437 # Note that $ac_compile itself does not contain backslashes and begins 8438 # with a dollar sign (not a hyphen), so the echo should work correctly. 8439 lt_compile=`echo "$ac_compile" | $SED \ 8440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8442 -e 's:$: $lt_compiler_flag:'` 8443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8444 (eval "$lt_compile" 2>out/conftest.err) 8445 ac_status=$? 8446 cat out/conftest.err >&5 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8448 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8449 then 8450 # The compiler can only warn and ignore the option if not recognized 8451 # So say no if there are warnings 8452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8455 lt_cv_prog_compiler_c_o=yes 8456 fi 8457 fi 8458 chmod u+w . 2>&5 8459 $RM conftest* 8460 # SGI C++ compiler will create directory out/ii_files/ for 8461 # template instantiation 8462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8463 $RM out/* && rmdir out 8464 cd .. 8465 $RM -r conftest 8466 $RM conftest* 8467 8468fi 8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8470$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8471 8472 8473 8474 8475 8476 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8478$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8479if ${lt_cv_prog_compiler_c_o+:} false; then : 8480 $as_echo_n "(cached) " >&6 8481else 8482 lt_cv_prog_compiler_c_o=no 8483 $RM -r conftest 2>/dev/null 8484 mkdir conftest 8485 cd conftest 8486 mkdir out 8487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8488 8489 lt_compiler_flag="-o out/conftest2.$ac_objext" 8490 # Insert the option either (1) after the last *FLAGS variable, or 8491 # (2) before a word containing "conftest.", or (3) at the end. 8492 # Note that $ac_compile itself does not contain backslashes and begins 8493 # with a dollar sign (not a hyphen), so the echo should work correctly. 8494 lt_compile=`echo "$ac_compile" | $SED \ 8495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8497 -e 's:$: $lt_compiler_flag:'` 8498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8499 (eval "$lt_compile" 2>out/conftest.err) 8500 ac_status=$? 8501 cat out/conftest.err >&5 8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8503 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8504 then 8505 # The compiler can only warn and ignore the option if not recognized 8506 # So say no if there are warnings 8507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8510 lt_cv_prog_compiler_c_o=yes 8511 fi 8512 fi 8513 chmod u+w . 2>&5 8514 $RM conftest* 8515 # SGI C++ compiler will create directory out/ii_files/ for 8516 # template instantiation 8517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8518 $RM out/* && rmdir out 8519 cd .. 8520 $RM -r conftest 8521 $RM conftest* 8522 8523fi 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8525$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8526 8527 8528 8529 8530hard_links="nottested" 8531if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8532 # do not overwrite the value of need_locks provided by the user 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8534$as_echo_n "checking if we can lock with hard links... " >&6; } 8535 hard_links=yes 8536 $RM conftest* 8537 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8538 touch conftest.a 8539 ln conftest.a conftest.b 2>&5 || hard_links=no 8540 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8542$as_echo "$hard_links" >&6; } 8543 if test "$hard_links" = no; then 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8545$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8546 need_locks=warn 8547 fi 8548else 8549 need_locks=no 8550fi 8551 8552 8553 8554 8555 8556 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8558$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8559 8560 runpath_var= 8561 allow_undefined_flag= 8562 always_export_symbols=no 8563 archive_cmds= 8564 archive_expsym_cmds= 8565 compiler_needs_object=no 8566 enable_shared_with_static_runtimes=no 8567 export_dynamic_flag_spec= 8568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8569 hardcode_automatic=no 8570 hardcode_direct=no 8571 hardcode_direct_absolute=no 8572 hardcode_libdir_flag_spec= 8573 hardcode_libdir_separator= 8574 hardcode_minus_L=no 8575 hardcode_shlibpath_var=unsupported 8576 inherit_rpath=no 8577 link_all_deplibs=unknown 8578 module_cmds= 8579 module_expsym_cmds= 8580 old_archive_from_new_cmds= 8581 old_archive_from_expsyms_cmds= 8582 thread_safe_flag_spec= 8583 whole_archive_flag_spec= 8584 # include_expsyms should be a list of space-separated symbols to be *always* 8585 # included in the symbol list 8586 include_expsyms= 8587 # exclude_expsyms can be an extended regexp of symbols to exclude 8588 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8589 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8590 # as well as any symbol that contains `d'. 8591 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8592 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8593 # platforms (ab)use it in PIC code, but their linkers get confused if 8594 # the symbol is explicitly referenced. Since portable code cannot 8595 # rely on this symbol name, it's probably fine to never include it in 8596 # preloaded symbol tables. 8597 # Exclude shared library initialization/finalization symbols. 8598 extract_expsyms_cmds= 8599 8600 case $host_os in 8601 cygwin* | mingw* | pw32* | cegcc*) 8602 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8603 # When not using gcc, we currently assume that we are using 8604 # Microsoft Visual C++. 8605 if test "$GCC" != yes; then 8606 with_gnu_ld=no 8607 fi 8608 ;; 8609 interix*) 8610 # we just hope/assume this is gcc and not c89 (= MSVC++) 8611 with_gnu_ld=yes 8612 ;; 8613 openbsd*) 8614 with_gnu_ld=no 8615 ;; 8616 esac 8617 8618 ld_shlibs=yes 8619 8620 # On some targets, GNU ld is compatible enough with the native linker 8621 # that we're better off using the native interface for both. 8622 lt_use_gnu_ld_interface=no 8623 if test "$with_gnu_ld" = yes; then 8624 case $host_os in 8625 aix*) 8626 # The AIX port of GNU ld has always aspired to compatibility 8627 # with the native linker. However, as the warning in the GNU ld 8628 # block says, versions before 2.19.5* couldn't really create working 8629 # shared libraries, regardless of the interface used. 8630 case `$LD -v 2>&1` in 8631 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8632 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8633 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8634 *) 8635 lt_use_gnu_ld_interface=yes 8636 ;; 8637 esac 8638 ;; 8639 *) 8640 lt_use_gnu_ld_interface=yes 8641 ;; 8642 esac 8643 fi 8644 8645 if test "$lt_use_gnu_ld_interface" = yes; then 8646 # If archive_cmds runs LD, not CC, wlarc should be empty 8647 wlarc='${wl}' 8648 8649 # Set some defaults for GNU ld with shared library support. These 8650 # are reset later if shared libraries are not supported. Putting them 8651 # here allows them to be overridden if necessary. 8652 runpath_var=LD_RUN_PATH 8653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8654 export_dynamic_flag_spec='${wl}--export-dynamic' 8655 # ancient GNU ld didn't support --whole-archive et. al. 8656 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8657 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8658 else 8659 whole_archive_flag_spec= 8660 fi 8661 supports_anon_versioning=no 8662 case `$LD -v 2>&1` in 8663 *GNU\ gold*) supports_anon_versioning=yes ;; 8664 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8665 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8666 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8667 *\ 2.11.*) ;; # other 2.11 versions 8668 *) supports_anon_versioning=yes ;; 8669 esac 8670 8671 # See if GNU ld supports shared libraries. 8672 case $host_os in 8673 aix[3-9]*) 8674 # On AIX/PPC, the GNU linker is very broken 8675 if test "$host_cpu" != ia64; then 8676 ld_shlibs=no 8677 cat <<_LT_EOF 1>&2 8678 8679*** Warning: the GNU linker, at least up to release 2.19, is reported 8680*** to be unable to reliably create shared libraries on AIX. 8681*** Therefore, libtool is disabling shared libraries support. If you 8682*** really care for shared libraries, you may want to install binutils 8683*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8684*** You will then need to restart the configuration process. 8685 8686_LT_EOF 8687 fi 8688 ;; 8689 8690 amigaos*) 8691 case $host_cpu in 8692 powerpc) 8693 # see comment about AmigaOS4 .so support 8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8695 archive_expsym_cmds='' 8696 ;; 8697 m68k) 8698 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)' 8699 hardcode_libdir_flag_spec='-L$libdir' 8700 hardcode_minus_L=yes 8701 ;; 8702 esac 8703 ;; 8704 8705 beos*) 8706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8707 allow_undefined_flag=unsupported 8708 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8709 # support --undefined. This deserves some investigation. FIXME 8710 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8711 else 8712 ld_shlibs=no 8713 fi 8714 ;; 8715 8716 cygwin* | mingw* | pw32* | cegcc*) 8717 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8718 # as there is no search path for DLLs. 8719 hardcode_libdir_flag_spec='-L$libdir' 8720 export_dynamic_flag_spec='${wl}--export-all-symbols' 8721 allow_undefined_flag=unsupported 8722 always_export_symbols=no 8723 enable_shared_with_static_runtimes=yes 8724 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' 8725 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8726 8727 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8729 # If the export-symbols file already is a .def file (1st line 8730 # is EXPORTS), use it as is; otherwise, prepend... 8731 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8732 cp $export_symbols $output_objdir/$soname.def; 8733 else 8734 echo EXPORTS > $output_objdir/$soname.def; 8735 cat $export_symbols >> $output_objdir/$soname.def; 8736 fi~ 8737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8738 else 8739 ld_shlibs=no 8740 fi 8741 ;; 8742 8743 haiku*) 8744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8745 link_all_deplibs=yes 8746 ;; 8747 8748 interix[3-9]*) 8749 hardcode_direct=no 8750 hardcode_shlibpath_var=no 8751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8752 export_dynamic_flag_spec='${wl}-E' 8753 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8754 # Instead, shared libraries are loaded at an image base (0x10000000 by 8755 # default) and relocated if they conflict, which is a slow very memory 8756 # consuming and fragmenting process. To avoid this, we pick a random, 8757 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8758 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8759 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8760 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' 8761 ;; 8762 8763 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8764 tmp_diet=no 8765 if test "$host_os" = linux-dietlibc; then 8766 case $cc_basename in 8767 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8768 esac 8769 fi 8770 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8771 && test "$tmp_diet" = no 8772 then 8773 tmp_addflag=' $pic_flag' 8774 tmp_sharedflag='-shared' 8775 case $cc_basename,$host_cpu in 8776 pgcc*) # Portland Group C compiler 8777 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' 8778 tmp_addflag=' $pic_flag' 8779 ;; 8780 pgf77* | pgf90* | pgf95* | pgfortran*) 8781 # Portland Group f77 and f90 compilers 8782 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' 8783 tmp_addflag=' $pic_flag -Mnomain' ;; 8784 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8785 tmp_addflag=' -i_dynamic' ;; 8786 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8787 tmp_addflag=' -i_dynamic -nofor_main' ;; 8788 ifc* | ifort*) # Intel Fortran compiler 8789 tmp_addflag=' -nofor_main' ;; 8790 lf95*) # Lahey Fortran 8.1 8791 whole_archive_flag_spec= 8792 tmp_sharedflag='--shared' ;; 8793 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8794 tmp_sharedflag='-qmkshrobj' 8795 tmp_addflag= ;; 8796 nvcc*) # Cuda Compiler Driver 2.2 8797 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' 8798 compiler_needs_object=yes 8799 ;; 8800 esac 8801 case `$CC -V 2>&1 | sed 5q` in 8802 *Sun\ C*) # Sun C 5.9 8803 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' 8804 compiler_needs_object=yes 8805 tmp_sharedflag='-G' ;; 8806 *Sun\ F*) # Sun Fortran 8.3 8807 tmp_sharedflag='-G' ;; 8808 esac 8809 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8810 8811 if test "x$supports_anon_versioning" = xyes; then 8812 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8814 echo "local: *; };" >> $output_objdir/$libname.ver~ 8815 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8816 fi 8817 8818 case $cc_basename in 8819 xlf* | bgf* | bgxlf* | mpixlf*) 8820 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8821 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8823 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8824 if test "x$supports_anon_versioning" = xyes; then 8825 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8826 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8827 echo "local: *; };" >> $output_objdir/$libname.ver~ 8828 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8829 fi 8830 ;; 8831 esac 8832 else 8833 ld_shlibs=no 8834 fi 8835 ;; 8836 8837 netbsd*) 8838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8839 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8840 wlarc= 8841 else 8842 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8843 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8844 fi 8845 ;; 8846 8847 solaris*) 8848 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8849 ld_shlibs=no 8850 cat <<_LT_EOF 1>&2 8851 8852*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8853*** create shared libraries on Solaris systems. Therefore, libtool 8854*** is disabling shared libraries support. We urge you to upgrade GNU 8855*** binutils to release 2.9.1 or newer. Another option is to modify 8856*** your PATH or compiler configuration so that the native linker is 8857*** used, and then restart. 8858 8859_LT_EOF 8860 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8861 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8862 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8863 else 8864 ld_shlibs=no 8865 fi 8866 ;; 8867 8868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8869 case `$LD -v 2>&1` in 8870 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8871 ld_shlibs=no 8872 cat <<_LT_EOF 1>&2 8873 8874*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8875*** reliably create shared libraries on SCO systems. Therefore, libtool 8876*** is disabling shared libraries support. We urge you to upgrade GNU 8877*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8878*** your PATH or compiler configuration so that the native linker is 8879*** used, and then restart. 8880 8881_LT_EOF 8882 ;; 8883 *) 8884 # For security reasons, it is highly recommended that you always 8885 # use absolute paths for naming shared libraries, and exclude the 8886 # DT_RUNPATH tag from executables and libraries. But doing so 8887 # requires that you compile everything twice, which is a pain. 8888 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8891 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8892 else 8893 ld_shlibs=no 8894 fi 8895 ;; 8896 esac 8897 ;; 8898 8899 sunos4*) 8900 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8901 wlarc= 8902 hardcode_direct=yes 8903 hardcode_shlibpath_var=no 8904 ;; 8905 8906 *) 8907 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8908 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8909 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8910 else 8911 ld_shlibs=no 8912 fi 8913 ;; 8914 esac 8915 8916 if test "$ld_shlibs" = no; then 8917 runpath_var= 8918 hardcode_libdir_flag_spec= 8919 export_dynamic_flag_spec= 8920 whole_archive_flag_spec= 8921 fi 8922 else 8923 # PORTME fill in a description of your system's linker (not GNU ld) 8924 case $host_os in 8925 aix3*) 8926 allow_undefined_flag=unsupported 8927 always_export_symbols=yes 8928 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' 8929 # Note: this linker hardcodes the directories in LIBPATH if there 8930 # are no directories specified by -L. 8931 hardcode_minus_L=yes 8932 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8933 # Neither direct hardcoding nor static linking is supported with a 8934 # broken collect2. 8935 hardcode_direct=unsupported 8936 fi 8937 ;; 8938 8939 aix[4-9]*) 8940 if test "$host_cpu" = ia64; then 8941 # On IA64, the linker does run time linking by default, so we don't 8942 # have to do anything special. 8943 aix_use_runtimelinking=no 8944 exp_sym_flag='-Bexport' 8945 no_entry_flag="" 8946 else 8947 # If we're using GNU nm, then we don't want the "-C" option. 8948 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8949 # Also, AIX nm treats weak defined symbols like other global 8950 # defined symbols, whereas GNU nm marks them as "W". 8951 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8952 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' 8953 else 8954 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' 8955 fi 8956 aix_use_runtimelinking=no 8957 8958 # Test if we are trying to use run time linking or normal 8959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8960 # need to do runtime linking. 8961 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8962 for ld_flag in $LDFLAGS; do 8963 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8964 aix_use_runtimelinking=yes 8965 break 8966 fi 8967 done 8968 ;; 8969 esac 8970 8971 exp_sym_flag='-bexport' 8972 no_entry_flag='-bnoentry' 8973 fi 8974 8975 # When large executables or shared objects are built, AIX ld can 8976 # have problems creating the table of contents. If linking a library 8977 # or program results in "error TOC overflow" add -mminimal-toc to 8978 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8979 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8980 8981 archive_cmds='' 8982 hardcode_direct=yes 8983 hardcode_direct_absolute=yes 8984 hardcode_libdir_separator=':' 8985 link_all_deplibs=yes 8986 file_list_spec='${wl}-f,' 8987 8988 if test "$GCC" = yes; then 8989 case $host_os in aix4.[012]|aix4.[012].*) 8990 # We only want to do this on AIX 4.2 and lower, the check 8991 # below for broken collect2 doesn't work under 4.3+ 8992 collect2name=`${CC} -print-prog-name=collect2` 8993 if test -f "$collect2name" && 8994 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8995 then 8996 # We have reworked collect2 8997 : 8998 else 8999 # We have old collect2 9000 hardcode_direct=unsupported 9001 # It fails to find uninstalled libraries when the uninstalled 9002 # path is not listed in the libpath. Setting hardcode_minus_L 9003 # to unsupported forces relinking 9004 hardcode_minus_L=yes 9005 hardcode_libdir_flag_spec='-L$libdir' 9006 hardcode_libdir_separator= 9007 fi 9008 ;; 9009 esac 9010 shared_flag='-shared' 9011 if test "$aix_use_runtimelinking" = yes; then 9012 shared_flag="$shared_flag "'${wl}-G' 9013 fi 9014 else 9015 # not using gcc 9016 if test "$host_cpu" = ia64; then 9017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9018 # chokes on -Wl,-G. The following line is correct: 9019 shared_flag='-G' 9020 else 9021 if test "$aix_use_runtimelinking" = yes; then 9022 shared_flag='${wl}-G' 9023 else 9024 shared_flag='${wl}-bM:SRE' 9025 fi 9026 fi 9027 fi 9028 9029 export_dynamic_flag_spec='${wl}-bexpall' 9030 # It seems that -bexpall does not export symbols beginning with 9031 # underscore (_), so it is better to generate a list of symbols to export. 9032 always_export_symbols=yes 9033 if test "$aix_use_runtimelinking" = yes; then 9034 # Warning - without using the other runtime loading flags (-brtl), 9035 # -berok will link without error, but may produce a broken library. 9036 allow_undefined_flag='-berok' 9037 # Determine the default libpath from the value encoded in an 9038 # empty executable. 9039 if test "${lt_cv_aix_libpath+set}" = set; then 9040 aix_libpath=$lt_cv_aix_libpath 9041else 9042 if ${lt_cv_aix_libpath_+:} false; then : 9043 $as_echo_n "(cached) " >&6 9044else 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047 9048int 9049main () 9050{ 9051 9052 ; 9053 return 0; 9054} 9055_ACEOF 9056if ac_fn_c_try_link "$LINENO"; then : 9057 9058 lt_aix_libpath_sed=' 9059 /Import File Strings/,/^$/ { 9060 /^0/ { 9061 s/^0 *\([^ ]*\) *$/\1/ 9062 p 9063 } 9064 }' 9065 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9066 # Check for a 64-bit object if we didn't find anything. 9067 if test -z "$lt_cv_aix_libpath_"; then 9068 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9069 fi 9070fi 9071rm -f core conftest.err conftest.$ac_objext \ 9072 conftest$ac_exeext conftest.$ac_ext 9073 if test -z "$lt_cv_aix_libpath_"; then 9074 lt_cv_aix_libpath_="/usr/lib:/lib" 9075 fi 9076 9077fi 9078 9079 aix_libpath=$lt_cv_aix_libpath_ 9080fi 9081 9082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9083 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" 9084 else 9085 if test "$host_cpu" = ia64; then 9086 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9087 allow_undefined_flag="-z nodefs" 9088 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" 9089 else 9090 # Determine the default libpath from the value encoded in an 9091 # empty executable. 9092 if test "${lt_cv_aix_libpath+set}" = set; then 9093 aix_libpath=$lt_cv_aix_libpath 9094else 9095 if ${lt_cv_aix_libpath_+:} false; then : 9096 $as_echo_n "(cached) " >&6 9097else 9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9099/* end confdefs.h. */ 9100 9101int 9102main () 9103{ 9104 9105 ; 9106 return 0; 9107} 9108_ACEOF 9109if ac_fn_c_try_link "$LINENO"; then : 9110 9111 lt_aix_libpath_sed=' 9112 /Import File Strings/,/^$/ { 9113 /^0/ { 9114 s/^0 *\([^ ]*\) *$/\1/ 9115 p 9116 } 9117 }' 9118 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9119 # Check for a 64-bit object if we didn't find anything. 9120 if test -z "$lt_cv_aix_libpath_"; then 9121 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9122 fi 9123fi 9124rm -f core conftest.err conftest.$ac_objext \ 9125 conftest$ac_exeext conftest.$ac_ext 9126 if test -z "$lt_cv_aix_libpath_"; then 9127 lt_cv_aix_libpath_="/usr/lib:/lib" 9128 fi 9129 9130fi 9131 9132 aix_libpath=$lt_cv_aix_libpath_ 9133fi 9134 9135 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9136 # Warning - without using the other run time loading flags, 9137 # -berok will link without error, but may produce a broken library. 9138 no_undefined_flag=' ${wl}-bernotok' 9139 allow_undefined_flag=' ${wl}-berok' 9140 if test "$with_gnu_ld" = yes; then 9141 # We only use this code for GNU lds that support --whole-archive. 9142 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9143 else 9144 # Exported symbols can be pulled into shared objects from archives 9145 whole_archive_flag_spec='$convenience' 9146 fi 9147 archive_cmds_need_lc=yes 9148 # This is similar to how AIX traditionally builds its shared libraries. 9149 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' 9150 fi 9151 fi 9152 ;; 9153 9154 amigaos*) 9155 case $host_cpu in 9156 powerpc) 9157 # see comment about AmigaOS4 .so support 9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9159 archive_expsym_cmds='' 9160 ;; 9161 m68k) 9162 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)' 9163 hardcode_libdir_flag_spec='-L$libdir' 9164 hardcode_minus_L=yes 9165 ;; 9166 esac 9167 ;; 9168 9169 bsdi[45]*) 9170 export_dynamic_flag_spec=-rdynamic 9171 ;; 9172 9173 cygwin* | mingw* | pw32* | cegcc*) 9174 # When not using gcc, we currently assume that we are using 9175 # Microsoft Visual C++. 9176 # hardcode_libdir_flag_spec is actually meaningless, as there is 9177 # no search path for DLLs. 9178 case $cc_basename in 9179 cl*) 9180 # Native MSVC 9181 hardcode_libdir_flag_spec=' ' 9182 allow_undefined_flag=unsupported 9183 always_export_symbols=yes 9184 file_list_spec='@' 9185 # Tell ltmain to make .lib files, not .a files. 9186 libext=lib 9187 # Tell ltmain to make .dll files, not .so files. 9188 shrext_cmds=".dll" 9189 # FIXME: Setting linknames here is a bad hack. 9190 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9192 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9193 else 9194 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9195 fi~ 9196 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9197 linknames=' 9198 # The linker will not automatically build a static lib if we build a DLL. 9199 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9200 enable_shared_with_static_runtimes=yes 9201 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9202 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9203 # Don't use ranlib 9204 old_postinstall_cmds='chmod 644 $oldlib' 9205 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9206 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9207 case $lt_outputfile in 9208 *.exe|*.EXE) ;; 9209 *) 9210 lt_outputfile="$lt_outputfile.exe" 9211 lt_tool_outputfile="$lt_tool_outputfile.exe" 9212 ;; 9213 esac~ 9214 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9215 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9216 $RM "$lt_outputfile.manifest"; 9217 fi' 9218 ;; 9219 *) 9220 # Assume MSVC wrapper 9221 hardcode_libdir_flag_spec=' ' 9222 allow_undefined_flag=unsupported 9223 # Tell ltmain to make .lib files, not .a files. 9224 libext=lib 9225 # Tell ltmain to make .dll files, not .so files. 9226 shrext_cmds=".dll" 9227 # FIXME: Setting linknames here is a bad hack. 9228 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9229 # The linker will automatically build a .lib file if we build a DLL. 9230 old_archive_from_new_cmds='true' 9231 # FIXME: Should let the user specify the lib program. 9232 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9233 enable_shared_with_static_runtimes=yes 9234 ;; 9235 esac 9236 ;; 9237 9238 darwin* | rhapsody*) 9239 9240 9241 archive_cmds_need_lc=no 9242 hardcode_direct=no 9243 hardcode_automatic=yes 9244 hardcode_shlibpath_var=unsupported 9245 if test "$lt_cv_ld_force_load" = "yes"; then 9246 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\"`' 9247 9248 else 9249 whole_archive_flag_spec='' 9250 fi 9251 link_all_deplibs=yes 9252 allow_undefined_flag="$_lt_dar_allow_undefined" 9253 case $cc_basename in 9254 ifort*) _lt_dar_can_shared=yes ;; 9255 *) _lt_dar_can_shared=$GCC ;; 9256 esac 9257 if test "$_lt_dar_can_shared" = "yes"; then 9258 output_verbose_link_cmd=func_echo_all 9259 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9260 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9261 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}" 9262 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}" 9263 9264 else 9265 ld_shlibs=no 9266 fi 9267 9268 ;; 9269 9270 dgux*) 9271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9272 hardcode_libdir_flag_spec='-L$libdir' 9273 hardcode_shlibpath_var=no 9274 ;; 9275 9276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9277 # support. Future versions do this automatically, but an explicit c++rt0.o 9278 # does not break anything, and helps significantly (at the cost of a little 9279 # extra space). 9280 freebsd2.2*) 9281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9282 hardcode_libdir_flag_spec='-R$libdir' 9283 hardcode_direct=yes 9284 hardcode_shlibpath_var=no 9285 ;; 9286 9287 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9288 freebsd2.*) 9289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9290 hardcode_direct=yes 9291 hardcode_minus_L=yes 9292 hardcode_shlibpath_var=no 9293 ;; 9294 9295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9296 freebsd* | dragonfly*) 9297 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9298 hardcode_libdir_flag_spec='-R$libdir' 9299 hardcode_direct=yes 9300 hardcode_shlibpath_var=no 9301 ;; 9302 9303 hpux9*) 9304 if test "$GCC" = yes; then 9305 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' 9306 else 9307 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' 9308 fi 9309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9310 hardcode_libdir_separator=: 9311 hardcode_direct=yes 9312 9313 # hardcode_minus_L: Not really in the search PATH, 9314 # but as the default location of the library. 9315 hardcode_minus_L=yes 9316 export_dynamic_flag_spec='${wl}-E' 9317 ;; 9318 9319 hpux10*) 9320 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9321 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9322 else 9323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9324 fi 9325 if test "$with_gnu_ld" = no; then 9326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9327 hardcode_libdir_separator=: 9328 hardcode_direct=yes 9329 hardcode_direct_absolute=yes 9330 export_dynamic_flag_spec='${wl}-E' 9331 # hardcode_minus_L: Not really in the search PATH, 9332 # but as the default location of the library. 9333 hardcode_minus_L=yes 9334 fi 9335 ;; 9336 9337 hpux11*) 9338 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9339 case $host_cpu in 9340 hppa*64*) 9341 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9342 ;; 9343 ia64*) 9344 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9345 ;; 9346 *) 9347 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9348 ;; 9349 esac 9350 else 9351 case $host_cpu in 9352 hppa*64*) 9353 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9354 ;; 9355 ia64*) 9356 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9357 ;; 9358 *) 9359 9360 # Older versions of the 11.00 compiler do not understand -b yet 9361 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9363$as_echo_n "checking if $CC understands -b... " >&6; } 9364if ${lt_cv_prog_compiler__b+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366else 9367 lt_cv_prog_compiler__b=no 9368 save_LDFLAGS="$LDFLAGS" 9369 LDFLAGS="$LDFLAGS -b" 9370 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9372 # The linker can only warn and ignore the option if not recognized 9373 # So say no if there are warnings 9374 if test -s conftest.err; then 9375 # Append any errors to the config.log. 9376 cat conftest.err 1>&5 9377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9379 if diff conftest.exp conftest.er2 >/dev/null; then 9380 lt_cv_prog_compiler__b=yes 9381 fi 9382 else 9383 lt_cv_prog_compiler__b=yes 9384 fi 9385 fi 9386 $RM -r conftest* 9387 LDFLAGS="$save_LDFLAGS" 9388 9389fi 9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9391$as_echo "$lt_cv_prog_compiler__b" >&6; } 9392 9393if test x"$lt_cv_prog_compiler__b" = xyes; then 9394 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9395else 9396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9397fi 9398 9399 ;; 9400 esac 9401 fi 9402 if test "$with_gnu_ld" = no; then 9403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9404 hardcode_libdir_separator=: 9405 9406 case $host_cpu in 9407 hppa*64*|ia64*) 9408 hardcode_direct=no 9409 hardcode_shlibpath_var=no 9410 ;; 9411 *) 9412 hardcode_direct=yes 9413 hardcode_direct_absolute=yes 9414 export_dynamic_flag_spec='${wl}-E' 9415 9416 # hardcode_minus_L: Not really in the search PATH, 9417 # but as the default location of the library. 9418 hardcode_minus_L=yes 9419 ;; 9420 esac 9421 fi 9422 ;; 9423 9424 irix5* | irix6* | nonstopux*) 9425 if test "$GCC" = yes; then 9426 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' 9427 # Try to use the -exported_symbol ld option, if it does not 9428 # work, assume that -exports_file does not work either and 9429 # implicitly export all symbols. 9430 # This should be the same for all languages, so no per-tag cache variable. 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9432$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9433if ${lt_cv_irix_exported_symbol+:} false; then : 9434 $as_echo_n "(cached) " >&6 9435else 9436 save_LDFLAGS="$LDFLAGS" 9437 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440int foo (void) { return 0; } 9441_ACEOF 9442if ac_fn_c_try_link "$LINENO"; then : 9443 lt_cv_irix_exported_symbol=yes 9444else 9445 lt_cv_irix_exported_symbol=no 9446fi 9447rm -f core conftest.err conftest.$ac_objext \ 9448 conftest$ac_exeext conftest.$ac_ext 9449 LDFLAGS="$save_LDFLAGS" 9450fi 9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9452$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9453 if test "$lt_cv_irix_exported_symbol" = yes; then 9454 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' 9455 fi 9456 else 9457 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' 9458 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' 9459 fi 9460 archive_cmds_need_lc='no' 9461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9462 hardcode_libdir_separator=: 9463 inherit_rpath=yes 9464 link_all_deplibs=yes 9465 ;; 9466 9467 netbsd*) 9468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9470 else 9471 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9472 fi 9473 hardcode_libdir_flag_spec='-R$libdir' 9474 hardcode_direct=yes 9475 hardcode_shlibpath_var=no 9476 ;; 9477 9478 newsos6) 9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9480 hardcode_direct=yes 9481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9482 hardcode_libdir_separator=: 9483 hardcode_shlibpath_var=no 9484 ;; 9485 9486 *nto* | *qnx*) 9487 ;; 9488 9489 openbsd*) 9490 if test -f /usr/libexec/ld.so; then 9491 hardcode_direct=yes 9492 hardcode_shlibpath_var=no 9493 hardcode_direct_absolute=yes 9494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9496 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9498 export_dynamic_flag_spec='${wl}-E' 9499 else 9500 case $host_os in 9501 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9503 hardcode_libdir_flag_spec='-R$libdir' 9504 ;; 9505 *) 9506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9507 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9508 ;; 9509 esac 9510 fi 9511 else 9512 ld_shlibs=no 9513 fi 9514 ;; 9515 9516 os2*) 9517 hardcode_libdir_flag_spec='-L$libdir' 9518 hardcode_minus_L=yes 9519 allow_undefined_flag=unsupported 9520 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' 9521 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9522 ;; 9523 9524 osf3*) 9525 if test "$GCC" = yes; then 9526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9527 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' 9528 else 9529 allow_undefined_flag=' -expect_unresolved \*' 9530 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' 9531 fi 9532 archive_cmds_need_lc='no' 9533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9534 hardcode_libdir_separator=: 9535 ;; 9536 9537 osf4* | osf5*) # as osf3* with the addition of -msym flag 9538 if test "$GCC" = yes; then 9539 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9540 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' 9541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9542 else 9543 allow_undefined_flag=' -expect_unresolved \*' 9544 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' 9545 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~ 9546 $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' 9547 9548 # Both c and cxx compiler support -rpath directly 9549 hardcode_libdir_flag_spec='-rpath $libdir' 9550 fi 9551 archive_cmds_need_lc='no' 9552 hardcode_libdir_separator=: 9553 ;; 9554 9555 solaris*) 9556 no_undefined_flag=' -z defs' 9557 if test "$GCC" = yes; then 9558 wlarc='${wl}' 9559 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9561 $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' 9562 else 9563 case `$CC -V 2>&1` in 9564 *"Compilers 5.0"*) 9565 wlarc='' 9566 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9568 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9569 ;; 9570 *) 9571 wlarc='${wl}' 9572 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9573 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9574 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9575 ;; 9576 esac 9577 fi 9578 hardcode_libdir_flag_spec='-R$libdir' 9579 hardcode_shlibpath_var=no 9580 case $host_os in 9581 solaris2.[0-5] | solaris2.[0-5].*) ;; 9582 *) 9583 # The compiler driver will combine and reorder linker options, 9584 # but understands `-z linker_flag'. GCC discards it without `$wl', 9585 # but is careful enough not to reorder. 9586 # Supported since Solaris 2.6 (maybe 2.5.1?) 9587 if test "$GCC" = yes; then 9588 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9589 else 9590 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9591 fi 9592 ;; 9593 esac 9594 link_all_deplibs=yes 9595 ;; 9596 9597 sunos4*) 9598 if test "x$host_vendor" = xsequent; then 9599 # Use $CC to link under sequent, because it throws in some extra .o 9600 # files that make .init and .fini sections work. 9601 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9602 else 9603 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9604 fi 9605 hardcode_libdir_flag_spec='-L$libdir' 9606 hardcode_direct=yes 9607 hardcode_minus_L=yes 9608 hardcode_shlibpath_var=no 9609 ;; 9610 9611 sysv4) 9612 case $host_vendor in 9613 sni) 9614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9615 hardcode_direct=yes # is this really true??? 9616 ;; 9617 siemens) 9618 ## LD is ld it makes a PLAMLIB 9619 ## CC just makes a GrossModule. 9620 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9621 reload_cmds='$CC -r -o $output$reload_objs' 9622 hardcode_direct=no 9623 ;; 9624 motorola) 9625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9626 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9627 ;; 9628 esac 9629 runpath_var='LD_RUN_PATH' 9630 hardcode_shlibpath_var=no 9631 ;; 9632 9633 sysv4.3*) 9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9635 hardcode_shlibpath_var=no 9636 export_dynamic_flag_spec='-Bexport' 9637 ;; 9638 9639 sysv4*MP*) 9640 if test -d /usr/nec; then 9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9642 hardcode_shlibpath_var=no 9643 runpath_var=LD_RUN_PATH 9644 hardcode_runpath_var=yes 9645 ld_shlibs=yes 9646 fi 9647 ;; 9648 9649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9650 no_undefined_flag='${wl}-z,text' 9651 archive_cmds_need_lc=no 9652 hardcode_shlibpath_var=no 9653 runpath_var='LD_RUN_PATH' 9654 9655 if test "$GCC" = yes; then 9656 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9657 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9658 else 9659 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9660 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9661 fi 9662 ;; 9663 9664 sysv5* | sco3.2v5* | sco5v6*) 9665 # Note: We can NOT use -z defs as we might desire, because we do not 9666 # link with -lc, and that would cause any symbols used from libc to 9667 # always be unresolved, which means just about no library would 9668 # ever link correctly. If we're not using GNU ld we use -z text 9669 # though, which does catch some bad symbols but isn't as heavy-handed 9670 # as -z defs. 9671 no_undefined_flag='${wl}-z,text' 9672 allow_undefined_flag='${wl}-z,nodefs' 9673 archive_cmds_need_lc=no 9674 hardcode_shlibpath_var=no 9675 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9676 hardcode_libdir_separator=':' 9677 link_all_deplibs=yes 9678 export_dynamic_flag_spec='${wl}-Bexport' 9679 runpath_var='LD_RUN_PATH' 9680 9681 if test "$GCC" = yes; then 9682 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9683 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9684 else 9685 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9686 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9687 fi 9688 ;; 9689 9690 uts4*) 9691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9692 hardcode_libdir_flag_spec='-L$libdir' 9693 hardcode_shlibpath_var=no 9694 ;; 9695 9696 *) 9697 ld_shlibs=no 9698 ;; 9699 esac 9700 9701 if test x$host_vendor = xsni; then 9702 case $host in 9703 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9704 export_dynamic_flag_spec='${wl}-Blargedynsym' 9705 ;; 9706 esac 9707 fi 9708 fi 9709 9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9711$as_echo "$ld_shlibs" >&6; } 9712test "$ld_shlibs" = no && can_build_shared=no 9713 9714with_gnu_ld=$with_gnu_ld 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730# 9731# Do we need to explicitly link libc? 9732# 9733case "x$archive_cmds_need_lc" in 9734x|xyes) 9735 # Assume -lc should be added 9736 archive_cmds_need_lc=yes 9737 9738 if test "$enable_shared" = yes && test "$GCC" = yes; then 9739 case $archive_cmds in 9740 *'~'*) 9741 # FIXME: we may have to deal with multi-command sequences. 9742 ;; 9743 '$CC '*) 9744 # Test whether the compiler implicitly links with -lc since on some 9745 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9746 # to ld, don't add -lc before -lgcc. 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9748$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9749if ${lt_cv_archive_cmds_need_lc+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 $RM conftest* 9753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9754 9755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9756 (eval $ac_compile) 2>&5 9757 ac_status=$? 9758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9759 test $ac_status = 0; } 2>conftest.err; then 9760 soname=conftest 9761 lib=conftest 9762 libobjs=conftest.$ac_objext 9763 deplibs= 9764 wl=$lt_prog_compiler_wl 9765 pic_flag=$lt_prog_compiler_pic 9766 compiler_flags=-v 9767 linker_flags=-v 9768 verstring= 9769 output_objdir=. 9770 libname=conftest 9771 lt_save_allow_undefined_flag=$allow_undefined_flag 9772 allow_undefined_flag= 9773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9774 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9775 ac_status=$? 9776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9777 test $ac_status = 0; } 9778 then 9779 lt_cv_archive_cmds_need_lc=no 9780 else 9781 lt_cv_archive_cmds_need_lc=yes 9782 fi 9783 allow_undefined_flag=$lt_save_allow_undefined_flag 9784 else 9785 cat conftest.err 1>&5 9786 fi 9787 $RM conftest* 9788 9789fi 9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9791$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9792 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9793 ;; 9794 esac 9795 fi 9796 ;; 9797esac 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 9945 9946 9947 9948 9949 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9951$as_echo_n "checking dynamic linker characteristics... " >&6; } 9952 9953if test "$GCC" = yes; then 9954 case $host_os in 9955 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9956 *) lt_awk_arg="/^libraries:/" ;; 9957 esac 9958 case $host_os in 9959 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9960 *) lt_sed_strip_eq="s,=/,/,g" ;; 9961 esac 9962 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9963 case $lt_search_path_spec in 9964 *\;*) 9965 # if the path contains ";" then we assume it to be the separator 9966 # otherwise default to the standard path separator (i.e. ":") - it is 9967 # assumed that no part of a normal pathname contains ";" but that should 9968 # okay in the real world where ";" in dirpaths is itself problematic. 9969 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9970 ;; 9971 *) 9972 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9973 ;; 9974 esac 9975 # Ok, now we have the path, separated by spaces, we can step through it 9976 # and add multilib dir if necessary. 9977 lt_tmp_lt_search_path_spec= 9978 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9979 for lt_sys_path in $lt_search_path_spec; do 9980 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9981 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9982 else 9983 test -d "$lt_sys_path" && \ 9984 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9985 fi 9986 done 9987 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9988BEGIN {RS=" "; FS="/|\n";} { 9989 lt_foo=""; 9990 lt_count=0; 9991 for (lt_i = NF; lt_i > 0; lt_i--) { 9992 if ($lt_i != "" && $lt_i != ".") { 9993 if ($lt_i == "..") { 9994 lt_count++; 9995 } else { 9996 if (lt_count == 0) { 9997 lt_foo="/" $lt_i lt_foo; 9998 } else { 9999 lt_count--; 10000 } 10001 } 10002 } 10003 } 10004 if (lt_foo != "") { lt_freq[lt_foo]++; } 10005 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10006}'` 10007 # AWK program above erroneously prepends '/' to C:/dos/paths 10008 # for these hosts. 10009 case $host_os in 10010 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10011 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10012 esac 10013 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10014else 10015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10016fi 10017library_names_spec= 10018libname_spec='lib$name' 10019soname_spec= 10020shrext_cmds=".so" 10021postinstall_cmds= 10022postuninstall_cmds= 10023finish_cmds= 10024finish_eval= 10025shlibpath_var= 10026shlibpath_overrides_runpath=unknown 10027version_type=none 10028dynamic_linker="$host_os ld.so" 10029sys_lib_dlsearch_path_spec="/lib /usr/lib" 10030need_lib_prefix=unknown 10031hardcode_into_libs=no 10032 10033# when you set need_version to no, make sure it does not cause -set_version 10034# flags to be left without arguments 10035need_version=unknown 10036 10037case $host_os in 10038aix3*) 10039 version_type=linux # correct to gnu/linux during the next big refactor 10040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10041 shlibpath_var=LIBPATH 10042 10043 # AIX 3 has no versioning support, so we append a major version to the name. 10044 soname_spec='${libname}${release}${shared_ext}$major' 10045 ;; 10046 10047aix[4-9]*) 10048 version_type=linux # correct to gnu/linux during the next big refactor 10049 need_lib_prefix=no 10050 need_version=no 10051 hardcode_into_libs=yes 10052 if test "$host_cpu" = ia64; then 10053 # AIX 5 supports IA64 10054 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10055 shlibpath_var=LD_LIBRARY_PATH 10056 else 10057 # With GCC up to 2.95.x, collect2 would create an import file 10058 # for dependence libraries. The import file would start with 10059 # the line `#! .'. This would cause the generated library to 10060 # depend on `.', always an invalid library. This was fixed in 10061 # development snapshots of GCC prior to 3.0. 10062 case $host_os in 10063 aix4 | aix4.[01] | aix4.[01].*) 10064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10065 echo ' yes ' 10066 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10067 : 10068 else 10069 can_build_shared=no 10070 fi 10071 ;; 10072 esac 10073 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10074 # soname into executable. Probably we can add versioning support to 10075 # collect2, so additional links can be useful in future. 10076 if test "$aix_use_runtimelinking" = yes; then 10077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10078 # instead of lib<name>.a to let people know that these are not 10079 # typical AIX shared libraries. 10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10081 else 10082 # We preserve .a as extension for shared libraries through AIX4.2 10083 # and later when we are not doing run time linking. 10084 library_names_spec='${libname}${release}.a $libname.a' 10085 soname_spec='${libname}${release}${shared_ext}$major' 10086 fi 10087 shlibpath_var=LIBPATH 10088 fi 10089 ;; 10090 10091amigaos*) 10092 case $host_cpu in 10093 powerpc) 10094 # Since July 2007 AmigaOS4 officially supports .so libraries. 10095 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10097 ;; 10098 m68k) 10099 library_names_spec='$libname.ixlibrary $libname.a' 10100 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10101 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' 10102 ;; 10103 esac 10104 ;; 10105 10106beos*) 10107 library_names_spec='${libname}${shared_ext}' 10108 dynamic_linker="$host_os ld.so" 10109 shlibpath_var=LIBRARY_PATH 10110 ;; 10111 10112bsdi[45]*) 10113 version_type=linux # correct to gnu/linux during the next big refactor 10114 need_version=no 10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10116 soname_spec='${libname}${release}${shared_ext}$major' 10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10118 shlibpath_var=LD_LIBRARY_PATH 10119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10121 # the default ld.so.conf also contains /usr/contrib/lib and 10122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10123 # libtool to hard-code these into programs 10124 ;; 10125 10126cygwin* | mingw* | pw32* | cegcc*) 10127 version_type=windows 10128 shrext_cmds=".dll" 10129 need_version=no 10130 need_lib_prefix=no 10131 10132 case $GCC,$cc_basename in 10133 yes,*) 10134 # gcc 10135 library_names_spec='$libname.dll.a' 10136 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10137 postinstall_cmds='base_file=`basename \${file}`~ 10138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10139 dldir=$destdir/`dirname \$dlpath`~ 10140 test -d \$dldir || mkdir -p \$dldir~ 10141 $install_prog $dir/$dlname \$dldir/$dlname~ 10142 chmod a+x \$dldir/$dlname~ 10143 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10144 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10145 fi' 10146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10147 dlpath=$dir/\$dldll~ 10148 $RM \$dlpath' 10149 shlibpath_overrides_runpath=yes 10150 10151 case $host_os in 10152 cygwin*) 10153 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10155 10156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10157 ;; 10158 mingw* | cegcc*) 10159 # MinGW DLLs use traditional 'lib' prefix 10160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10161 ;; 10162 pw32*) 10163 # pw32 DLLs use 'pw' prefix rather than 'lib' 10164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10165 ;; 10166 esac 10167 dynamic_linker='Win32 ld.exe' 10168 ;; 10169 10170 *,cl*) 10171 # Native MSVC 10172 libname_spec='$name' 10173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10174 library_names_spec='${libname}.dll.lib' 10175 10176 case $build_os in 10177 mingw*) 10178 sys_lib_search_path_spec= 10179 lt_save_ifs=$IFS 10180 IFS=';' 10181 for lt_path in $LIB 10182 do 10183 IFS=$lt_save_ifs 10184 # Let DOS variable expansion print the short 8.3 style file name. 10185 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10186 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10187 done 10188 IFS=$lt_save_ifs 10189 # Convert to MSYS style. 10190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10191 ;; 10192 cygwin*) 10193 # Convert to unix form, then to dos form, then back to unix form 10194 # but this time dos style (no spaces!) so that the unix form looks 10195 # like /cygdrive/c/PROGRA~1:/cygdr... 10196 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10197 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10198 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10199 ;; 10200 *) 10201 sys_lib_search_path_spec="$LIB" 10202 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10203 # It is most probably a Windows format PATH. 10204 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10205 else 10206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10207 fi 10208 # FIXME: find the short name or the path components, as spaces are 10209 # common. (e.g. "Program Files" -> "PROGRA~1") 10210 ;; 10211 esac 10212 10213 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10214 postinstall_cmds='base_file=`basename \${file}`~ 10215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10216 dldir=$destdir/`dirname \$dlpath`~ 10217 test -d \$dldir || mkdir -p \$dldir~ 10218 $install_prog $dir/$dlname \$dldir/$dlname' 10219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10220 dlpath=$dir/\$dldll~ 10221 $RM \$dlpath' 10222 shlibpath_overrides_runpath=yes 10223 dynamic_linker='Win32 link.exe' 10224 ;; 10225 10226 *) 10227 # Assume MSVC wrapper 10228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10229 dynamic_linker='Win32 ld.exe' 10230 ;; 10231 esac 10232 # FIXME: first we should search . and the directory the executable is in 10233 shlibpath_var=PATH 10234 ;; 10235 10236darwin* | rhapsody*) 10237 dynamic_linker="$host_os dyld" 10238 version_type=darwin 10239 need_lib_prefix=no 10240 need_version=no 10241 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10242 soname_spec='${libname}${release}${major}$shared_ext' 10243 shlibpath_overrides_runpath=yes 10244 shlibpath_var=DYLD_LIBRARY_PATH 10245 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10246 10247 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10249 ;; 10250 10251dgux*) 10252 version_type=linux # correct to gnu/linux during the next big refactor 10253 need_lib_prefix=no 10254 need_version=no 10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10256 soname_spec='${libname}${release}${shared_ext}$major' 10257 shlibpath_var=LD_LIBRARY_PATH 10258 ;; 10259 10260freebsd* | dragonfly*) 10261 # DragonFly does not have aout. When/if they implement a new 10262 # versioning mechanism, adjust this. 10263 if test -x /usr/bin/objformat; then 10264 objformat=`/usr/bin/objformat` 10265 else 10266 case $host_os in 10267 freebsd[23].*) objformat=aout ;; 10268 *) objformat=elf ;; 10269 esac 10270 fi 10271 version_type=freebsd-$objformat 10272 case $version_type in 10273 freebsd-elf*) 10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10275 need_version=no 10276 need_lib_prefix=no 10277 ;; 10278 freebsd-*) 10279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10280 need_version=yes 10281 ;; 10282 esac 10283 shlibpath_var=LD_LIBRARY_PATH 10284 case $host_os in 10285 freebsd2.*) 10286 shlibpath_overrides_runpath=yes 10287 ;; 10288 freebsd3.[01]* | freebsdelf3.[01]*) 10289 shlibpath_overrides_runpath=yes 10290 hardcode_into_libs=yes 10291 ;; 10292 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10293 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10294 shlibpath_overrides_runpath=no 10295 hardcode_into_libs=yes 10296 ;; 10297 *) # from 4.6 on, and DragonFly 10298 shlibpath_overrides_runpath=yes 10299 hardcode_into_libs=yes 10300 ;; 10301 esac 10302 ;; 10303 10304gnu*) 10305 version_type=linux # correct to gnu/linux during the next big refactor 10306 need_lib_prefix=no 10307 need_version=no 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10309 soname_spec='${libname}${release}${shared_ext}$major' 10310 shlibpath_var=LD_LIBRARY_PATH 10311 shlibpath_overrides_runpath=no 10312 hardcode_into_libs=yes 10313 ;; 10314 10315haiku*) 10316 version_type=linux # correct to gnu/linux during the next big refactor 10317 need_lib_prefix=no 10318 need_version=no 10319 dynamic_linker="$host_os runtime_loader" 10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10321 soname_spec='${libname}${release}${shared_ext}$major' 10322 shlibpath_var=LIBRARY_PATH 10323 shlibpath_overrides_runpath=yes 10324 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10325 hardcode_into_libs=yes 10326 ;; 10327 10328hpux9* | hpux10* | hpux11*) 10329 # Give a soname corresponding to the major version so that dld.sl refuses to 10330 # link against other versions. 10331 version_type=sunos 10332 need_lib_prefix=no 10333 need_version=no 10334 case $host_cpu in 10335 ia64*) 10336 shrext_cmds='.so' 10337 hardcode_into_libs=yes 10338 dynamic_linker="$host_os dld.so" 10339 shlibpath_var=LD_LIBRARY_PATH 10340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10342 soname_spec='${libname}${release}${shared_ext}$major' 10343 if test "X$HPUX_IA64_MODE" = X32; then 10344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10345 else 10346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10347 fi 10348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10349 ;; 10350 hppa*64*) 10351 shrext_cmds='.sl' 10352 hardcode_into_libs=yes 10353 dynamic_linker="$host_os dld.sl" 10354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10357 soname_spec='${libname}${release}${shared_ext}$major' 10358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10360 ;; 10361 *) 10362 shrext_cmds='.sl' 10363 dynamic_linker="$host_os dld.sl" 10364 shlibpath_var=SHLIB_PATH 10365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10367 soname_spec='${libname}${release}${shared_ext}$major' 10368 ;; 10369 esac 10370 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10371 postinstall_cmds='chmod 555 $lib' 10372 # or fails outright, so override atomically: 10373 install_override_mode=555 10374 ;; 10375 10376interix[3-9]*) 10377 version_type=linux # correct to gnu/linux during the next big refactor 10378 need_lib_prefix=no 10379 need_version=no 10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10381 soname_spec='${libname}${release}${shared_ext}$major' 10382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10383 shlibpath_var=LD_LIBRARY_PATH 10384 shlibpath_overrides_runpath=no 10385 hardcode_into_libs=yes 10386 ;; 10387 10388irix5* | irix6* | nonstopux*) 10389 case $host_os in 10390 nonstopux*) version_type=nonstopux ;; 10391 *) 10392 if test "$lt_cv_prog_gnu_ld" = yes; then 10393 version_type=linux # correct to gnu/linux during the next big refactor 10394 else 10395 version_type=irix 10396 fi ;; 10397 esac 10398 need_lib_prefix=no 10399 need_version=no 10400 soname_spec='${libname}${release}${shared_ext}$major' 10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10402 case $host_os in 10403 irix5* | nonstopux*) 10404 libsuff= shlibsuff= 10405 ;; 10406 *) 10407 case $LD in # libtool.m4 will add one of these switches to LD 10408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10409 libsuff= shlibsuff= libmagic=32-bit;; 10410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10411 libsuff=32 shlibsuff=N32 libmagic=N32;; 10412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10413 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10414 *) libsuff= shlibsuff= libmagic=never-match;; 10415 esac 10416 ;; 10417 esac 10418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10419 shlibpath_overrides_runpath=no 10420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10422 hardcode_into_libs=yes 10423 ;; 10424 10425# No shared lib support for Linux oldld, aout, or coff. 10426linux*oldld* | linux*aout* | linux*coff*) 10427 dynamic_linker=no 10428 ;; 10429 10430# This must be glibc/ELF. 10431linux* | k*bsd*-gnu | kopensolaris*-gnu) 10432 version_type=linux # correct to gnu/linux during the next big refactor 10433 need_lib_prefix=no 10434 need_version=no 10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10436 soname_spec='${libname}${release}${shared_ext}$major' 10437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10438 shlibpath_var=LD_LIBRARY_PATH 10439 shlibpath_overrides_runpath=no 10440 10441 # Some binutils ld are patched to set DT_RUNPATH 10442 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10443 $as_echo_n "(cached) " >&6 10444else 10445 lt_cv_shlibpath_overrides_runpath=no 10446 save_LDFLAGS=$LDFLAGS 10447 save_libdir=$libdir 10448 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10449 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10451/* end confdefs.h. */ 10452 10453int 10454main () 10455{ 10456 10457 ; 10458 return 0; 10459} 10460_ACEOF 10461if ac_fn_c_try_link "$LINENO"; then : 10462 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10463 lt_cv_shlibpath_overrides_runpath=yes 10464fi 10465fi 10466rm -f core conftest.err conftest.$ac_objext \ 10467 conftest$ac_exeext conftest.$ac_ext 10468 LDFLAGS=$save_LDFLAGS 10469 libdir=$save_libdir 10470 10471fi 10472 10473 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10474 10475 # This implies no fast_install, which is unacceptable. 10476 # Some rework will be needed to allow for fast_install 10477 # before this can be enabled. 10478 hardcode_into_libs=yes 10479 10480 # Add ABI-specific directories to the system library path. 10481 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10482 10483 # Append ld.so.conf contents to the search path 10484 if test -f /etc/ld.so.conf; then 10485 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' ' '` 10486 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10487 10488 fi 10489 10490 # We used to test for /lib/ld.so.1 and disable shared libraries on 10491 # powerpc, because MkLinux only supported shared libraries with the 10492 # GNU dynamic linker. Since this was broken with cross compilers, 10493 # most powerpc-linux boxes support dynamic linking these days and 10494 # people can always --disable-shared, the test was removed, and we 10495 # assume the GNU/Linux dynamic linker is in use. 10496 dynamic_linker='GNU/Linux ld.so' 10497 ;; 10498 10499netbsd*) 10500 version_type=sunos 10501 need_lib_prefix=no 10502 need_version=no 10503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10506 dynamic_linker='NetBSD (a.out) ld.so' 10507 else 10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10509 soname_spec='${libname}${release}${shared_ext}$major' 10510 dynamic_linker='NetBSD ld.elf_so' 10511 fi 10512 shlibpath_var=LD_LIBRARY_PATH 10513 shlibpath_overrides_runpath=yes 10514 hardcode_into_libs=yes 10515 ;; 10516 10517newsos6) 10518 version_type=linux # correct to gnu/linux during the next big refactor 10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10520 shlibpath_var=LD_LIBRARY_PATH 10521 shlibpath_overrides_runpath=yes 10522 ;; 10523 10524*nto* | *qnx*) 10525 version_type=qnx 10526 need_lib_prefix=no 10527 need_version=no 10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10529 soname_spec='${libname}${release}${shared_ext}$major' 10530 shlibpath_var=LD_LIBRARY_PATH 10531 shlibpath_overrides_runpath=no 10532 hardcode_into_libs=yes 10533 dynamic_linker='ldqnx.so' 10534 ;; 10535 10536openbsd*) 10537 version_type=sunos 10538 sys_lib_dlsearch_path_spec="/usr/lib" 10539 need_lib_prefix=no 10540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10541 case $host_os in 10542 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10543 *) need_version=no ;; 10544 esac 10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10547 shlibpath_var=LD_LIBRARY_PATH 10548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10549 case $host_os in 10550 openbsd2.[89] | openbsd2.[89].*) 10551 shlibpath_overrides_runpath=no 10552 ;; 10553 *) 10554 shlibpath_overrides_runpath=yes 10555 ;; 10556 esac 10557 else 10558 shlibpath_overrides_runpath=yes 10559 fi 10560 ;; 10561 10562os2*) 10563 libname_spec='$name' 10564 shrext_cmds=".dll" 10565 need_lib_prefix=no 10566 library_names_spec='$libname${shared_ext} $libname.a' 10567 dynamic_linker='OS/2 ld.exe' 10568 shlibpath_var=LIBPATH 10569 ;; 10570 10571osf3* | osf4* | osf5*) 10572 version_type=osf 10573 need_lib_prefix=no 10574 need_version=no 10575 soname_spec='${libname}${release}${shared_ext}$major' 10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10577 shlibpath_var=LD_LIBRARY_PATH 10578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10580 ;; 10581 10582rdos*) 10583 dynamic_linker=no 10584 ;; 10585 10586solaris*) 10587 version_type=linux # correct to gnu/linux during the next big refactor 10588 need_lib_prefix=no 10589 need_version=no 10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10591 soname_spec='${libname}${release}${shared_ext}$major' 10592 shlibpath_var=LD_LIBRARY_PATH 10593 shlibpath_overrides_runpath=yes 10594 hardcode_into_libs=yes 10595 # ldd complains unless libraries are executable 10596 postinstall_cmds='chmod +x $lib' 10597 ;; 10598 10599sunos4*) 10600 version_type=sunos 10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10603 shlibpath_var=LD_LIBRARY_PATH 10604 shlibpath_overrides_runpath=yes 10605 if test "$with_gnu_ld" = yes; then 10606 need_lib_prefix=no 10607 fi 10608 need_version=yes 10609 ;; 10610 10611sysv4 | sysv4.3*) 10612 version_type=linux # correct to gnu/linux during the next big refactor 10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10614 soname_spec='${libname}${release}${shared_ext}$major' 10615 shlibpath_var=LD_LIBRARY_PATH 10616 case $host_vendor in 10617 sni) 10618 shlibpath_overrides_runpath=no 10619 need_lib_prefix=no 10620 runpath_var=LD_RUN_PATH 10621 ;; 10622 siemens) 10623 need_lib_prefix=no 10624 ;; 10625 motorola) 10626 need_lib_prefix=no 10627 need_version=no 10628 shlibpath_overrides_runpath=no 10629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10630 ;; 10631 esac 10632 ;; 10633 10634sysv4*MP*) 10635 if test -d /usr/nec ;then 10636 version_type=linux # correct to gnu/linux during the next big refactor 10637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10638 soname_spec='$libname${shared_ext}.$major' 10639 shlibpath_var=LD_LIBRARY_PATH 10640 fi 10641 ;; 10642 10643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10644 version_type=freebsd-elf 10645 need_lib_prefix=no 10646 need_version=no 10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10648 soname_spec='${libname}${release}${shared_ext}$major' 10649 shlibpath_var=LD_LIBRARY_PATH 10650 shlibpath_overrides_runpath=yes 10651 hardcode_into_libs=yes 10652 if test "$with_gnu_ld" = yes; then 10653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10654 else 10655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10656 case $host_os in 10657 sco3.2v5*) 10658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10659 ;; 10660 esac 10661 fi 10662 sys_lib_dlsearch_path_spec='/usr/lib' 10663 ;; 10664 10665tpf*) 10666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10667 version_type=linux # correct to gnu/linux during the next big refactor 10668 need_lib_prefix=no 10669 need_version=no 10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10671 shlibpath_var=LD_LIBRARY_PATH 10672 shlibpath_overrides_runpath=no 10673 hardcode_into_libs=yes 10674 ;; 10675 10676uts4*) 10677 version_type=linux # correct to gnu/linux during the next big refactor 10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10679 soname_spec='${libname}${release}${shared_ext}$major' 10680 shlibpath_var=LD_LIBRARY_PATH 10681 ;; 10682 10683*) 10684 dynamic_linker=no 10685 ;; 10686esac 10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10688$as_echo "$dynamic_linker" >&6; } 10689test "$dynamic_linker" = no && can_build_shared=no 10690 10691variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10692if test "$GCC" = yes; then 10693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10694fi 10695 10696if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10698fi 10699if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10701fi 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 10789 10790 10791 10792 10793 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10795$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10796hardcode_action= 10797if test -n "$hardcode_libdir_flag_spec" || 10798 test -n "$runpath_var" || 10799 test "X$hardcode_automatic" = "Xyes" ; then 10800 10801 # We can hardcode non-existent directories. 10802 if test "$hardcode_direct" != no && 10803 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10804 # have to relink, otherwise we might link with an installed library 10805 # when we should be linking with a yet-to-be-installed one 10806 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10807 test "$hardcode_minus_L" != no; then 10808 # Linking always hardcodes the temporary library directory. 10809 hardcode_action=relink 10810 else 10811 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10812 hardcode_action=immediate 10813 fi 10814else 10815 # We cannot hardcode anything, or else we can only hardcode existing 10816 # directories. 10817 hardcode_action=unsupported 10818fi 10819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10820$as_echo "$hardcode_action" >&6; } 10821 10822if test "$hardcode_action" = relink || 10823 test "$inherit_rpath" = yes; then 10824 # Fast installation is not supported 10825 enable_fast_install=no 10826elif test "$shlibpath_overrides_runpath" = yes || 10827 test "$enable_shared" = no; then 10828 # Fast installation is not necessary 10829 enable_fast_install=needless 10830fi 10831 10832 10833 10834 10835 10836 10837 if test "x$enable_dlopen" != xyes; then 10838 enable_dlopen=unknown 10839 enable_dlopen_self=unknown 10840 enable_dlopen_self_static=unknown 10841else 10842 lt_cv_dlopen=no 10843 lt_cv_dlopen_libs= 10844 10845 case $host_os in 10846 beos*) 10847 lt_cv_dlopen="load_add_on" 10848 lt_cv_dlopen_libs= 10849 lt_cv_dlopen_self=yes 10850 ;; 10851 10852 mingw* | pw32* | cegcc*) 10853 lt_cv_dlopen="LoadLibrary" 10854 lt_cv_dlopen_libs= 10855 ;; 10856 10857 cygwin*) 10858 lt_cv_dlopen="dlopen" 10859 lt_cv_dlopen_libs= 10860 ;; 10861 10862 darwin*) 10863 # if libdl is installed we need to link against it 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10865$as_echo_n "checking for dlopen in -ldl... " >&6; } 10866if ${ac_cv_lib_dl_dlopen+:} false; then : 10867 $as_echo_n "(cached) " >&6 10868else 10869 ac_check_lib_save_LIBS=$LIBS 10870LIBS="-ldl $LIBS" 10871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10872/* end confdefs.h. */ 10873 10874/* Override any GCC internal prototype to avoid an error. 10875 Use char because int might match the return type of a GCC 10876 builtin and then its argument prototype would still apply. */ 10877#ifdef __cplusplus 10878extern "C" 10879#endif 10880char dlopen (); 10881int 10882main () 10883{ 10884return dlopen (); 10885 ; 10886 return 0; 10887} 10888_ACEOF 10889if ac_fn_c_try_link "$LINENO"; then : 10890 ac_cv_lib_dl_dlopen=yes 10891else 10892 ac_cv_lib_dl_dlopen=no 10893fi 10894rm -f core conftest.err conftest.$ac_objext \ 10895 conftest$ac_exeext conftest.$ac_ext 10896LIBS=$ac_check_lib_save_LIBS 10897fi 10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10899$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10900if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10902else 10903 10904 lt_cv_dlopen="dyld" 10905 lt_cv_dlopen_libs= 10906 lt_cv_dlopen_self=yes 10907 10908fi 10909 10910 ;; 10911 10912 *) 10913 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10914if test "x$ac_cv_func_shl_load" = xyes; then : 10915 lt_cv_dlopen="shl_load" 10916else 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10918$as_echo_n "checking for shl_load in -ldld... " >&6; } 10919if ${ac_cv_lib_dld_shl_load+:} false; then : 10920 $as_echo_n "(cached) " >&6 10921else 10922 ac_check_lib_save_LIBS=$LIBS 10923LIBS="-ldld $LIBS" 10924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10925/* end confdefs.h. */ 10926 10927/* Override any GCC internal prototype to avoid an error. 10928 Use char because int might match the return type of a GCC 10929 builtin and then its argument prototype would still apply. */ 10930#ifdef __cplusplus 10931extern "C" 10932#endif 10933char shl_load (); 10934int 10935main () 10936{ 10937return shl_load (); 10938 ; 10939 return 0; 10940} 10941_ACEOF 10942if ac_fn_c_try_link "$LINENO"; then : 10943 ac_cv_lib_dld_shl_load=yes 10944else 10945 ac_cv_lib_dld_shl_load=no 10946fi 10947rm -f core conftest.err conftest.$ac_objext \ 10948 conftest$ac_exeext conftest.$ac_ext 10949LIBS=$ac_check_lib_save_LIBS 10950fi 10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10952$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10953if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10954 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10955else 10956 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10957if test "x$ac_cv_func_dlopen" = xyes; then : 10958 lt_cv_dlopen="dlopen" 10959else 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10961$as_echo_n "checking for dlopen in -ldl... " >&6; } 10962if ${ac_cv_lib_dl_dlopen+:} false; then : 10963 $as_echo_n "(cached) " >&6 10964else 10965 ac_check_lib_save_LIBS=$LIBS 10966LIBS="-ldl $LIBS" 10967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10968/* end confdefs.h. */ 10969 10970/* Override any GCC internal prototype to avoid an error. 10971 Use char because int might match the return type of a GCC 10972 builtin and then its argument prototype would still apply. */ 10973#ifdef __cplusplus 10974extern "C" 10975#endif 10976char dlopen (); 10977int 10978main () 10979{ 10980return dlopen (); 10981 ; 10982 return 0; 10983} 10984_ACEOF 10985if ac_fn_c_try_link "$LINENO"; then : 10986 ac_cv_lib_dl_dlopen=yes 10987else 10988 ac_cv_lib_dl_dlopen=no 10989fi 10990rm -f core conftest.err conftest.$ac_objext \ 10991 conftest$ac_exeext conftest.$ac_ext 10992LIBS=$ac_check_lib_save_LIBS 10993fi 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10995$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10996if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10998else 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11000$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11001if ${ac_cv_lib_svld_dlopen+:} false; then : 11002 $as_echo_n "(cached) " >&6 11003else 11004 ac_check_lib_save_LIBS=$LIBS 11005LIBS="-lsvld $LIBS" 11006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11007/* end confdefs.h. */ 11008 11009/* Override any GCC internal prototype to avoid an error. 11010 Use char because int might match the return type of a GCC 11011 builtin and then its argument prototype would still apply. */ 11012#ifdef __cplusplus 11013extern "C" 11014#endif 11015char dlopen (); 11016int 11017main () 11018{ 11019return dlopen (); 11020 ; 11021 return 0; 11022} 11023_ACEOF 11024if ac_fn_c_try_link "$LINENO"; then : 11025 ac_cv_lib_svld_dlopen=yes 11026else 11027 ac_cv_lib_svld_dlopen=no 11028fi 11029rm -f core conftest.err conftest.$ac_objext \ 11030 conftest$ac_exeext conftest.$ac_ext 11031LIBS=$ac_check_lib_save_LIBS 11032fi 11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11034$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11035if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11037else 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11039$as_echo_n "checking for dld_link in -ldld... " >&6; } 11040if ${ac_cv_lib_dld_dld_link+:} false; then : 11041 $as_echo_n "(cached) " >&6 11042else 11043 ac_check_lib_save_LIBS=$LIBS 11044LIBS="-ldld $LIBS" 11045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11046/* end confdefs.h. */ 11047 11048/* Override any GCC internal prototype to avoid an error. 11049 Use char because int might match the return type of a GCC 11050 builtin and then its argument prototype would still apply. */ 11051#ifdef __cplusplus 11052extern "C" 11053#endif 11054char dld_link (); 11055int 11056main () 11057{ 11058return dld_link (); 11059 ; 11060 return 0; 11061} 11062_ACEOF 11063if ac_fn_c_try_link "$LINENO"; then : 11064 ac_cv_lib_dld_dld_link=yes 11065else 11066 ac_cv_lib_dld_dld_link=no 11067fi 11068rm -f core conftest.err conftest.$ac_objext \ 11069 conftest$ac_exeext conftest.$ac_ext 11070LIBS=$ac_check_lib_save_LIBS 11071fi 11072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11073$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11074if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11075 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11076fi 11077 11078 11079fi 11080 11081 11082fi 11083 11084 11085fi 11086 11087 11088fi 11089 11090 11091fi 11092 11093 ;; 11094 esac 11095 11096 if test "x$lt_cv_dlopen" != xno; then 11097 enable_dlopen=yes 11098 else 11099 enable_dlopen=no 11100 fi 11101 11102 case $lt_cv_dlopen in 11103 dlopen) 11104 save_CPPFLAGS="$CPPFLAGS" 11105 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11106 11107 save_LDFLAGS="$LDFLAGS" 11108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11109 11110 save_LIBS="$LIBS" 11111 LIBS="$lt_cv_dlopen_libs $LIBS" 11112 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11114$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11115if ${lt_cv_dlopen_self+:} false; then : 11116 $as_echo_n "(cached) " >&6 11117else 11118 if test "$cross_compiling" = yes; then : 11119 lt_cv_dlopen_self=cross 11120else 11121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11122 lt_status=$lt_dlunknown 11123 cat > conftest.$ac_ext <<_LT_EOF 11124#line $LINENO "configure" 11125#include "confdefs.h" 11126 11127#if HAVE_DLFCN_H 11128#include <dlfcn.h> 11129#endif 11130 11131#include <stdio.h> 11132 11133#ifdef RTLD_GLOBAL 11134# define LT_DLGLOBAL RTLD_GLOBAL 11135#else 11136# ifdef DL_GLOBAL 11137# define LT_DLGLOBAL DL_GLOBAL 11138# else 11139# define LT_DLGLOBAL 0 11140# endif 11141#endif 11142 11143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11144 find out it does not work in some platform. */ 11145#ifndef LT_DLLAZY_OR_NOW 11146# ifdef RTLD_LAZY 11147# define LT_DLLAZY_OR_NOW RTLD_LAZY 11148# else 11149# ifdef DL_LAZY 11150# define LT_DLLAZY_OR_NOW DL_LAZY 11151# else 11152# ifdef RTLD_NOW 11153# define LT_DLLAZY_OR_NOW RTLD_NOW 11154# else 11155# ifdef DL_NOW 11156# define LT_DLLAZY_OR_NOW DL_NOW 11157# else 11158# define LT_DLLAZY_OR_NOW 0 11159# endif 11160# endif 11161# endif 11162# endif 11163#endif 11164 11165/* When -fvisbility=hidden is used, assume the code has been annotated 11166 correspondingly for the symbols needed. */ 11167#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11168int fnord () __attribute__((visibility("default"))); 11169#endif 11170 11171int fnord () { return 42; } 11172int main () 11173{ 11174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11175 int status = $lt_dlunknown; 11176 11177 if (self) 11178 { 11179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11180 else 11181 { 11182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11183 else puts (dlerror ()); 11184 } 11185 /* dlclose (self); */ 11186 } 11187 else 11188 puts (dlerror ()); 11189 11190 return status; 11191} 11192_LT_EOF 11193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11194 (eval $ac_link) 2>&5 11195 ac_status=$? 11196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11197 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11198 (./conftest; exit; ) >&5 2>/dev/null 11199 lt_status=$? 11200 case x$lt_status in 11201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11204 esac 11205 else : 11206 # compilation failed 11207 lt_cv_dlopen_self=no 11208 fi 11209fi 11210rm -fr conftest* 11211 11212 11213fi 11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11215$as_echo "$lt_cv_dlopen_self" >&6; } 11216 11217 if test "x$lt_cv_dlopen_self" = xyes; then 11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11220$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11221if ${lt_cv_dlopen_self_static+:} false; then : 11222 $as_echo_n "(cached) " >&6 11223else 11224 if test "$cross_compiling" = yes; then : 11225 lt_cv_dlopen_self_static=cross 11226else 11227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11228 lt_status=$lt_dlunknown 11229 cat > conftest.$ac_ext <<_LT_EOF 11230#line $LINENO "configure" 11231#include "confdefs.h" 11232 11233#if HAVE_DLFCN_H 11234#include <dlfcn.h> 11235#endif 11236 11237#include <stdio.h> 11238 11239#ifdef RTLD_GLOBAL 11240# define LT_DLGLOBAL RTLD_GLOBAL 11241#else 11242# ifdef DL_GLOBAL 11243# define LT_DLGLOBAL DL_GLOBAL 11244# else 11245# define LT_DLGLOBAL 0 11246# endif 11247#endif 11248 11249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11250 find out it does not work in some platform. */ 11251#ifndef LT_DLLAZY_OR_NOW 11252# ifdef RTLD_LAZY 11253# define LT_DLLAZY_OR_NOW RTLD_LAZY 11254# else 11255# ifdef DL_LAZY 11256# define LT_DLLAZY_OR_NOW DL_LAZY 11257# else 11258# ifdef RTLD_NOW 11259# define LT_DLLAZY_OR_NOW RTLD_NOW 11260# else 11261# ifdef DL_NOW 11262# define LT_DLLAZY_OR_NOW DL_NOW 11263# else 11264# define LT_DLLAZY_OR_NOW 0 11265# endif 11266# endif 11267# endif 11268# endif 11269#endif 11270 11271/* When -fvisbility=hidden is used, assume the code has been annotated 11272 correspondingly for the symbols needed. */ 11273#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11274int fnord () __attribute__((visibility("default"))); 11275#endif 11276 11277int fnord () { return 42; } 11278int main () 11279{ 11280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11281 int status = $lt_dlunknown; 11282 11283 if (self) 11284 { 11285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11286 else 11287 { 11288 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11289 else puts (dlerror ()); 11290 } 11291 /* dlclose (self); */ 11292 } 11293 else 11294 puts (dlerror ()); 11295 11296 return status; 11297} 11298_LT_EOF 11299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11300 (eval $ac_link) 2>&5 11301 ac_status=$? 11302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11303 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11304 (./conftest; exit; ) >&5 2>/dev/null 11305 lt_status=$? 11306 case x$lt_status in 11307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11310 esac 11311 else : 11312 # compilation failed 11313 lt_cv_dlopen_self_static=no 11314 fi 11315fi 11316rm -fr conftest* 11317 11318 11319fi 11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11321$as_echo "$lt_cv_dlopen_self_static" >&6; } 11322 fi 11323 11324 CPPFLAGS="$save_CPPFLAGS" 11325 LDFLAGS="$save_LDFLAGS" 11326 LIBS="$save_LIBS" 11327 ;; 11328 esac 11329 11330 case $lt_cv_dlopen_self in 11331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11332 *) enable_dlopen_self=unknown ;; 11333 esac 11334 11335 case $lt_cv_dlopen_self_static in 11336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11337 *) enable_dlopen_self_static=unknown ;; 11338 esac 11339fi 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357striplib= 11358old_striplib= 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11360$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11361if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11363 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11365$as_echo "yes" >&6; } 11366else 11367# FIXME - insert some real tests, host_os isn't really good enough 11368 case $host_os in 11369 darwin*) 11370 if test -n "$STRIP" ; then 11371 striplib="$STRIP -x" 11372 old_striplib="$STRIP -S" 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11374$as_echo "yes" >&6; } 11375 else 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11377$as_echo "no" >&6; } 11378 fi 11379 ;; 11380 *) 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11382$as_echo "no" >&6; } 11383 ;; 11384 esac 11385fi 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 # Report which library types will actually be built 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11400$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11402$as_echo "$can_build_shared" >&6; } 11403 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11405$as_echo_n "checking whether to build shared libraries... " >&6; } 11406 test "$can_build_shared" = "no" && enable_shared=no 11407 11408 # On AIX, shared libraries and static libraries use the same namespace, and 11409 # are all built from PIC. 11410 case $host_os in 11411 aix3*) 11412 test "$enable_shared" = yes && enable_static=no 11413 if test -n "$RANLIB"; then 11414 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11415 postinstall_cmds='$RANLIB $lib' 11416 fi 11417 ;; 11418 11419 aix[4-9]*) 11420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11421 test "$enable_shared" = yes && enable_static=no 11422 fi 11423 ;; 11424 esac 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11426$as_echo "$enable_shared" >&6; } 11427 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11429$as_echo_n "checking whether to build static libraries... " >&6; } 11430 # Make sure either enable_shared or enable_static is yes. 11431 test "$enable_shared" = yes || enable_static=yes 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11433$as_echo "$enable_static" >&6; } 11434 11435 11436 11437 11438fi 11439ac_ext=c 11440ac_cpp='$CPP $CPPFLAGS' 11441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11443ac_compiler_gnu=$ac_cv_c_compiler_gnu 11444 11445CC="$lt_save_CC" 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 ac_config_commands="$ac_config_commands libtool" 11462 11463 11464 11465 11466# Only expand once: 11467 11468 11469 11470# Require xorg-macros minimum of 1.12 for DocBook external references 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11483$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11484if ${ac_cv_prog_cc_c99+:} false; then : 11485 $as_echo_n "(cached) " >&6 11486else 11487 ac_cv_prog_cc_c99=no 11488ac_save_CC=$CC 11489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11490/* end confdefs.h. */ 11491#include <stdarg.h> 11492#include <stdbool.h> 11493#include <stdlib.h> 11494#include <wchar.h> 11495#include <stdio.h> 11496 11497// Check varargs macros. These examples are taken from C99 6.10.3.5. 11498#define debug(...) fprintf (stderr, __VA_ARGS__) 11499#define showlist(...) puts (#__VA_ARGS__) 11500#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11501static void 11502test_varargs_macros (void) 11503{ 11504 int x = 1234; 11505 int y = 5678; 11506 debug ("Flag"); 11507 debug ("X = %d\n", x); 11508 showlist (The first, second, and third items.); 11509 report (x>y, "x is %d but y is %d", x, y); 11510} 11511 11512// Check long long types. 11513#define BIG64 18446744073709551615ull 11514#define BIG32 4294967295ul 11515#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11516#if !BIG_OK 11517 your preprocessor is broken; 11518#endif 11519#if BIG_OK 11520#else 11521 your preprocessor is broken; 11522#endif 11523static long long int bignum = -9223372036854775807LL; 11524static unsigned long long int ubignum = BIG64; 11525 11526struct incomplete_array 11527{ 11528 int datasize; 11529 double data[]; 11530}; 11531 11532struct named_init { 11533 int number; 11534 const wchar_t *name; 11535 double average; 11536}; 11537 11538typedef const char *ccp; 11539 11540static inline int 11541test_restrict (ccp restrict text) 11542{ 11543 // See if C++-style comments work. 11544 // Iterate through items via the restricted pointer. 11545 // Also check for declarations in for loops. 11546 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11547 continue; 11548 return 0; 11549} 11550 11551// Check varargs and va_copy. 11552static void 11553test_varargs (const char *format, ...) 11554{ 11555 va_list args; 11556 va_start (args, format); 11557 va_list args_copy; 11558 va_copy (args_copy, args); 11559 11560 const char *str; 11561 int number; 11562 float fnumber; 11563 11564 while (*format) 11565 { 11566 switch (*format++) 11567 { 11568 case 's': // string 11569 str = va_arg (args_copy, const char *); 11570 break; 11571 case 'd': // int 11572 number = va_arg (args_copy, int); 11573 break; 11574 case 'f': // float 11575 fnumber = va_arg (args_copy, double); 11576 break; 11577 default: 11578 break; 11579 } 11580 } 11581 va_end (args_copy); 11582 va_end (args); 11583} 11584 11585int 11586main () 11587{ 11588 11589 // Check bool. 11590 _Bool success = false; 11591 11592 // Check restrict. 11593 if (test_restrict ("String literal") == 0) 11594 success = true; 11595 char *restrict newvar = "Another string"; 11596 11597 // Check varargs. 11598 test_varargs ("s, d' f .", "string", 65, 34.234); 11599 test_varargs_macros (); 11600 11601 // Check flexible array members. 11602 struct incomplete_array *ia = 11603 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11604 ia->datasize = 10; 11605 for (int i = 0; i < ia->datasize; ++i) 11606 ia->data[i] = i * 1.234; 11607 11608 // Check named initializers. 11609 struct named_init ni = { 11610 .number = 34, 11611 .name = L"Test wide string", 11612 .average = 543.34343, 11613 }; 11614 11615 ni.number = 58; 11616 11617 int dynamic_array[ni.number]; 11618 dynamic_array[ni.number - 1] = 543; 11619 11620 // work around unused variable warnings 11621 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11622 || dynamic_array[ni.number - 1] != 543); 11623 11624 ; 11625 return 0; 11626} 11627_ACEOF 11628for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11629do 11630 CC="$ac_save_CC $ac_arg" 11631 if ac_fn_c_try_compile "$LINENO"; then : 11632 ac_cv_prog_cc_c99=$ac_arg 11633fi 11634rm -f core conftest.err conftest.$ac_objext 11635 test "x$ac_cv_prog_cc_c99" != "xno" && break 11636done 11637rm -f conftest.$ac_ext 11638CC=$ac_save_CC 11639 11640fi 11641# AC_CACHE_VAL 11642case "x$ac_cv_prog_cc_c99" in 11643 x) 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11645$as_echo "none needed" >&6; } ;; 11646 xno) 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11648$as_echo "unsupported" >&6; } ;; 11649 *) 11650 CC="$CC $ac_cv_prog_cc_c99" 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11652$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11653esac 11654if test "x$ac_cv_prog_cc_c99" != xno; then : 11655 11656fi 11657 11658 11659 11660 11661 11662 11663ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11664if test "x$ac_cv_have_decl___clang__" = xyes; then : 11665 CLANGCC="yes" 11666else 11667 CLANGCC="no" 11668fi 11669 11670ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11671if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11672 INTELCC="yes" 11673else 11674 INTELCC="no" 11675fi 11676 11677ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11678if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11679 SUNCC="yes" 11680else 11681 SUNCC="no" 11682fi 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11693 if test -n "$ac_tool_prefix"; then 11694 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11695set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11697$as_echo_n "checking for $ac_word... " >&6; } 11698if ${ac_cv_path_PKG_CONFIG+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700else 11701 case $PKG_CONFIG in 11702 [\\/]* | ?:[\\/]*) 11703 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11704 ;; 11705 *) 11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11707for as_dir in $PATH 11708do 11709 IFS=$as_save_IFS 11710 test -z "$as_dir" && as_dir=. 11711 for ac_exec_ext in '' $ac_executable_extensions; do 11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11713 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11715 break 2 11716 fi 11717done 11718 done 11719IFS=$as_save_IFS 11720 11721 ;; 11722esac 11723fi 11724PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11725if test -n "$PKG_CONFIG"; then 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11727$as_echo "$PKG_CONFIG" >&6; } 11728else 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11730$as_echo "no" >&6; } 11731fi 11732 11733 11734fi 11735if test -z "$ac_cv_path_PKG_CONFIG"; then 11736 ac_pt_PKG_CONFIG=$PKG_CONFIG 11737 # Extract the first word of "pkg-config", so it can be a program name with args. 11738set dummy pkg-config; ac_word=$2 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11740$as_echo_n "checking for $ac_word... " >&6; } 11741if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11742 $as_echo_n "(cached) " >&6 11743else 11744 case $ac_pt_PKG_CONFIG in 11745 [\\/]* | ?:[\\/]*) 11746 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11747 ;; 11748 *) 11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11750for as_dir in $PATH 11751do 11752 IFS=$as_save_IFS 11753 test -z "$as_dir" && as_dir=. 11754 for ac_exec_ext in '' $ac_executable_extensions; do 11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11756 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11758 break 2 11759 fi 11760done 11761 done 11762IFS=$as_save_IFS 11763 11764 ;; 11765esac 11766fi 11767ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11768if test -n "$ac_pt_PKG_CONFIG"; then 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11770$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11771else 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11773$as_echo "no" >&6; } 11774fi 11775 11776 if test "x$ac_pt_PKG_CONFIG" = x; then 11777 PKG_CONFIG="" 11778 else 11779 case $cross_compiling:$ac_tool_warned in 11780yes:) 11781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11783ac_tool_warned=yes ;; 11784esac 11785 PKG_CONFIG=$ac_pt_PKG_CONFIG 11786 fi 11787else 11788 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11789fi 11790 11791fi 11792if test -n "$PKG_CONFIG"; then 11793 _pkg_min_version=0.9.0 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11795$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11796 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11798$as_echo "yes" >&6; } 11799 else 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11801$as_echo "no" >&6; } 11802 PKG_CONFIG="" 11803 fi 11804fi 11805 11806 11807 11808 11809 11810# Check whether --enable-selective-werror was given. 11811if test "${enable_selective_werror+set}" = set; then : 11812 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11813else 11814 SELECTIVE_WERROR=yes 11815fi 11816 11817 11818 11819 11820 11821# -v is too short to test reliably with XORG_TESTSET_CFLAG 11822if test "x$SUNCC" = "xyes"; then 11823 BASE_CFLAGS="-v" 11824else 11825 BASE_CFLAGS="" 11826fi 11827 11828# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842xorg_testset_save_CFLAGS="$CFLAGS" 11843 11844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11849 $as_echo_n "(cached) " >&6 11850else 11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11852/* end confdefs.h. */ 11853int i; 11854_ACEOF 11855if ac_fn_c_try_compile "$LINENO"; then : 11856 xorg_cv_cc_flag_unknown_warning_option=yes 11857else 11858 xorg_cv_cc_flag_unknown_warning_option=no 11859fi 11860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11861fi 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11865 CFLAGS="$xorg_testset_save_CFLAGS" 11866fi 11867 11868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11871 fi 11872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11876 $as_echo_n "(cached) " >&6 11877else 11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11879/* end confdefs.h. */ 11880int i; 11881_ACEOF 11882if ac_fn_c_try_compile "$LINENO"; then : 11883 xorg_cv_cc_flag_unused_command_line_argument=yes 11884else 11885 xorg_cv_cc_flag_unused_command_line_argument=no 11886fi 11887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11888fi 11889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11892 CFLAGS="$xorg_testset_save_CFLAGS" 11893fi 11894 11895found="no" 11896 11897 if test $found = "no" ; then 11898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11900 fi 11901 11902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11904 fi 11905 11906 CFLAGS="$CFLAGS -Wall" 11907 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 11909$as_echo_n "checking if $CC supports-Wall... " >&6; } 11910 cacheid=xorg_cv_cc_flag__Wall 11911 if eval \${$cacheid+:} false; then : 11912 $as_echo_n "(cached) " >&6 11913else 11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11915/* end confdefs.h. */ 11916int i; 11917int 11918main () 11919{ 11920 11921 ; 11922 return 0; 11923} 11924_ACEOF 11925if ac_fn_c_try_link "$LINENO"; then : 11926 eval $cacheid=yes 11927else 11928 eval $cacheid=no 11929fi 11930rm -f core conftest.err conftest.$ac_objext \ 11931 conftest$ac_exeext conftest.$ac_ext 11932fi 11933 11934 11935 CFLAGS="$xorg_testset_save_CFLAGS" 11936 11937 eval supported=\$$cacheid 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11939$as_echo "$supported" >&6; } 11940 if test "$supported" = "yes" ; then 11941 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11942 found="yes" 11943 fi 11944 fi 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960xorg_testset_save_CFLAGS="$CFLAGS" 11961 11962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11967 $as_echo_n "(cached) " >&6 11968else 11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11970/* end confdefs.h. */ 11971int i; 11972_ACEOF 11973if ac_fn_c_try_compile "$LINENO"; then : 11974 xorg_cv_cc_flag_unknown_warning_option=yes 11975else 11976 xorg_cv_cc_flag_unknown_warning_option=no 11977fi 11978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11979fi 11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11983 CFLAGS="$xorg_testset_save_CFLAGS" 11984fi 11985 11986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11989 fi 11990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11997/* end confdefs.h. */ 11998int i; 11999_ACEOF 12000if ac_fn_c_try_compile "$LINENO"; then : 12001 xorg_cv_cc_flag_unused_command_line_argument=yes 12002else 12003 xorg_cv_cc_flag_unused_command_line_argument=no 12004fi 12005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12006fi 12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12010 CFLAGS="$xorg_testset_save_CFLAGS" 12011fi 12012 12013found="no" 12014 12015 if test $found = "no" ; then 12016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12018 fi 12019 12020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12022 fi 12023 12024 CFLAGS="$CFLAGS -Wpointer-arith" 12025 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 12027$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 12028 cacheid=xorg_cv_cc_flag__Wpointer_arith 12029 if eval \${$cacheid+:} false; then : 12030 $as_echo_n "(cached) " >&6 12031else 12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12033/* end confdefs.h. */ 12034int i; 12035int 12036main () 12037{ 12038 12039 ; 12040 return 0; 12041} 12042_ACEOF 12043if ac_fn_c_try_link "$LINENO"; then : 12044 eval $cacheid=yes 12045else 12046 eval $cacheid=no 12047fi 12048rm -f core conftest.err conftest.$ac_objext \ 12049 conftest$ac_exeext conftest.$ac_ext 12050fi 12051 12052 12053 CFLAGS="$xorg_testset_save_CFLAGS" 12054 12055 eval supported=\$$cacheid 12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12057$as_echo "$supported" >&6; } 12058 if test "$supported" = "yes" ; then 12059 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12060 found="yes" 12061 fi 12062 fi 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078xorg_testset_save_CFLAGS="$CFLAGS" 12079 12080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12085 $as_echo_n "(cached) " >&6 12086else 12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12088/* end confdefs.h. */ 12089int i; 12090_ACEOF 12091if ac_fn_c_try_compile "$LINENO"; then : 12092 xorg_cv_cc_flag_unknown_warning_option=yes 12093else 12094 xorg_cv_cc_flag_unknown_warning_option=no 12095fi 12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12097fi 12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12101 CFLAGS="$xorg_testset_save_CFLAGS" 12102fi 12103 12104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12107 fi 12108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12112 $as_echo_n "(cached) " >&6 12113else 12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115/* end confdefs.h. */ 12116int i; 12117_ACEOF 12118if ac_fn_c_try_compile "$LINENO"; then : 12119 xorg_cv_cc_flag_unused_command_line_argument=yes 12120else 12121 xorg_cv_cc_flag_unused_command_line_argument=no 12122fi 12123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12124fi 12125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12128 CFLAGS="$xorg_testset_save_CFLAGS" 12129fi 12130 12131found="no" 12132 12133 if test $found = "no" ; then 12134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12136 fi 12137 12138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12140 fi 12141 12142 CFLAGS="$CFLAGS -Wmissing-declarations" 12143 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 12145$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 12146 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12147 if eval \${$cacheid+:} false; then : 12148 $as_echo_n "(cached) " >&6 12149else 12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12151/* end confdefs.h. */ 12152int i; 12153int 12154main () 12155{ 12156 12157 ; 12158 return 0; 12159} 12160_ACEOF 12161if ac_fn_c_try_link "$LINENO"; then : 12162 eval $cacheid=yes 12163else 12164 eval $cacheid=no 12165fi 12166rm -f core conftest.err conftest.$ac_objext \ 12167 conftest$ac_exeext conftest.$ac_ext 12168fi 12169 12170 12171 CFLAGS="$xorg_testset_save_CFLAGS" 12172 12173 eval supported=\$$cacheid 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12175$as_echo "$supported" >&6; } 12176 if test "$supported" = "yes" ; then 12177 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12178 found="yes" 12179 fi 12180 fi 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196xorg_testset_save_CFLAGS="$CFLAGS" 12197 12198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12203 $as_echo_n "(cached) " >&6 12204else 12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12206/* end confdefs.h. */ 12207int i; 12208_ACEOF 12209if ac_fn_c_try_compile "$LINENO"; then : 12210 xorg_cv_cc_flag_unknown_warning_option=yes 12211else 12212 xorg_cv_cc_flag_unknown_warning_option=no 12213fi 12214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12215fi 12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12219 CFLAGS="$xorg_testset_save_CFLAGS" 12220fi 12221 12222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12225 fi 12226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12230 $as_echo_n "(cached) " >&6 12231else 12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12233/* end confdefs.h. */ 12234int i; 12235_ACEOF 12236if ac_fn_c_try_compile "$LINENO"; then : 12237 xorg_cv_cc_flag_unused_command_line_argument=yes 12238else 12239 xorg_cv_cc_flag_unused_command_line_argument=no 12240fi 12241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12242fi 12243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12246 CFLAGS="$xorg_testset_save_CFLAGS" 12247fi 12248 12249found="no" 12250 12251 if test $found = "no" ; then 12252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12254 fi 12255 12256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12258 fi 12259 12260 CFLAGS="$CFLAGS -Wformat=2" 12261 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 12263$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 12264 cacheid=xorg_cv_cc_flag__Wformat_2 12265 if eval \${$cacheid+:} false; then : 12266 $as_echo_n "(cached) " >&6 12267else 12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12269/* end confdefs.h. */ 12270int i; 12271int 12272main () 12273{ 12274 12275 ; 12276 return 0; 12277} 12278_ACEOF 12279if ac_fn_c_try_link "$LINENO"; then : 12280 eval $cacheid=yes 12281else 12282 eval $cacheid=no 12283fi 12284rm -f core conftest.err conftest.$ac_objext \ 12285 conftest$ac_exeext conftest.$ac_ext 12286fi 12287 12288 12289 CFLAGS="$xorg_testset_save_CFLAGS" 12290 12291 eval supported=\$$cacheid 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12293$as_echo "$supported" >&6; } 12294 if test "$supported" = "yes" ; then 12295 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12296 found="yes" 12297 fi 12298 fi 12299 12300 if test $found = "no" ; then 12301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12303 fi 12304 12305 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12307 fi 12308 12309 CFLAGS="$CFLAGS -Wformat" 12310 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 12312$as_echo_n "checking if $CC supports-Wformat... " >&6; } 12313 cacheid=xorg_cv_cc_flag__Wformat 12314 if eval \${$cacheid+:} false; then : 12315 $as_echo_n "(cached) " >&6 12316else 12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12318/* end confdefs.h. */ 12319int i; 12320int 12321main () 12322{ 12323 12324 ; 12325 return 0; 12326} 12327_ACEOF 12328if ac_fn_c_try_link "$LINENO"; then : 12329 eval $cacheid=yes 12330else 12331 eval $cacheid=no 12332fi 12333rm -f core conftest.err conftest.$ac_objext \ 12334 conftest$ac_exeext conftest.$ac_ext 12335fi 12336 12337 12338 CFLAGS="$xorg_testset_save_CFLAGS" 12339 12340 eval supported=\$$cacheid 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12342$as_echo "$supported" >&6; } 12343 if test "$supported" = "yes" ; then 12344 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12345 found="yes" 12346 fi 12347 fi 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365xorg_testset_save_CFLAGS="$CFLAGS" 12366 12367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12372 $as_echo_n "(cached) " >&6 12373else 12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12375/* end confdefs.h. */ 12376int i; 12377_ACEOF 12378if ac_fn_c_try_compile "$LINENO"; then : 12379 xorg_cv_cc_flag_unknown_warning_option=yes 12380else 12381 xorg_cv_cc_flag_unknown_warning_option=no 12382fi 12383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12384fi 12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12388 CFLAGS="$xorg_testset_save_CFLAGS" 12389fi 12390 12391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12394 fi 12395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12399 $as_echo_n "(cached) " >&6 12400else 12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12402/* end confdefs.h. */ 12403int i; 12404_ACEOF 12405if ac_fn_c_try_compile "$LINENO"; then : 12406 xorg_cv_cc_flag_unused_command_line_argument=yes 12407else 12408 xorg_cv_cc_flag_unused_command_line_argument=no 12409fi 12410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12411fi 12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12415 CFLAGS="$xorg_testset_save_CFLAGS" 12416fi 12417 12418found="no" 12419 12420 if test $found = "no" ; then 12421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12423 fi 12424 12425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12427 fi 12428 12429 CFLAGS="$CFLAGS -Wstrict-prototypes" 12430 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 12432$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 12433 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12434 if eval \${$cacheid+:} false; then : 12435 $as_echo_n "(cached) " >&6 12436else 12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12438/* end confdefs.h. */ 12439int i; 12440int 12441main () 12442{ 12443 12444 ; 12445 return 0; 12446} 12447_ACEOF 12448if ac_fn_c_try_link "$LINENO"; then : 12449 eval $cacheid=yes 12450else 12451 eval $cacheid=no 12452fi 12453rm -f core conftest.err conftest.$ac_objext \ 12454 conftest$ac_exeext conftest.$ac_ext 12455fi 12456 12457 12458 CFLAGS="$xorg_testset_save_CFLAGS" 12459 12460 eval supported=\$$cacheid 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12462$as_echo "$supported" >&6; } 12463 if test "$supported" = "yes" ; then 12464 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12465 found="yes" 12466 fi 12467 fi 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483xorg_testset_save_CFLAGS="$CFLAGS" 12484 12485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12490 $as_echo_n "(cached) " >&6 12491else 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494int i; 12495_ACEOF 12496if ac_fn_c_try_compile "$LINENO"; then : 12497 xorg_cv_cc_flag_unknown_warning_option=yes 12498else 12499 xorg_cv_cc_flag_unknown_warning_option=no 12500fi 12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12502fi 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12506 CFLAGS="$xorg_testset_save_CFLAGS" 12507fi 12508 12509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12512 fi 12513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12517 $as_echo_n "(cached) " >&6 12518else 12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521int i; 12522_ACEOF 12523if ac_fn_c_try_compile "$LINENO"; then : 12524 xorg_cv_cc_flag_unused_command_line_argument=yes 12525else 12526 xorg_cv_cc_flag_unused_command_line_argument=no 12527fi 12528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12529fi 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12533 CFLAGS="$xorg_testset_save_CFLAGS" 12534fi 12535 12536found="no" 12537 12538 if test $found = "no" ; then 12539 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12541 fi 12542 12543 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12545 fi 12546 12547 CFLAGS="$CFLAGS -Wmissing-prototypes" 12548 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 12550$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 12551 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12552 if eval \${$cacheid+:} false; then : 12553 $as_echo_n "(cached) " >&6 12554else 12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12556/* end confdefs.h. */ 12557int i; 12558int 12559main () 12560{ 12561 12562 ; 12563 return 0; 12564} 12565_ACEOF 12566if ac_fn_c_try_link "$LINENO"; then : 12567 eval $cacheid=yes 12568else 12569 eval $cacheid=no 12570fi 12571rm -f core conftest.err conftest.$ac_objext \ 12572 conftest$ac_exeext conftest.$ac_ext 12573fi 12574 12575 12576 CFLAGS="$xorg_testset_save_CFLAGS" 12577 12578 eval supported=\$$cacheid 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12580$as_echo "$supported" >&6; } 12581 if test "$supported" = "yes" ; then 12582 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12583 found="yes" 12584 fi 12585 fi 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601xorg_testset_save_CFLAGS="$CFLAGS" 12602 12603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12608 $as_echo_n "(cached) " >&6 12609else 12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611/* end confdefs.h. */ 12612int i; 12613_ACEOF 12614if ac_fn_c_try_compile "$LINENO"; then : 12615 xorg_cv_cc_flag_unknown_warning_option=yes 12616else 12617 xorg_cv_cc_flag_unknown_warning_option=no 12618fi 12619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12620fi 12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12624 CFLAGS="$xorg_testset_save_CFLAGS" 12625fi 12626 12627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12630 fi 12631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12635 $as_echo_n "(cached) " >&6 12636else 12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12638/* end confdefs.h. */ 12639int i; 12640_ACEOF 12641if ac_fn_c_try_compile "$LINENO"; then : 12642 xorg_cv_cc_flag_unused_command_line_argument=yes 12643else 12644 xorg_cv_cc_flag_unused_command_line_argument=no 12645fi 12646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12647fi 12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12651 CFLAGS="$xorg_testset_save_CFLAGS" 12652fi 12653 12654found="no" 12655 12656 if test $found = "no" ; then 12657 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12659 fi 12660 12661 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12663 fi 12664 12665 CFLAGS="$CFLAGS -Wnested-externs" 12666 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 12668$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 12669 cacheid=xorg_cv_cc_flag__Wnested_externs 12670 if eval \${$cacheid+:} false; then : 12671 $as_echo_n "(cached) " >&6 12672else 12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12674/* end confdefs.h. */ 12675int i; 12676int 12677main () 12678{ 12679 12680 ; 12681 return 0; 12682} 12683_ACEOF 12684if ac_fn_c_try_link "$LINENO"; then : 12685 eval $cacheid=yes 12686else 12687 eval $cacheid=no 12688fi 12689rm -f core conftest.err conftest.$ac_objext \ 12690 conftest$ac_exeext conftest.$ac_ext 12691fi 12692 12693 12694 CFLAGS="$xorg_testset_save_CFLAGS" 12695 12696 eval supported=\$$cacheid 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12698$as_echo "$supported" >&6; } 12699 if test "$supported" = "yes" ; then 12700 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12701 found="yes" 12702 fi 12703 fi 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719xorg_testset_save_CFLAGS="$CFLAGS" 12720 12721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12726 $as_echo_n "(cached) " >&6 12727else 12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12729/* end confdefs.h. */ 12730int i; 12731_ACEOF 12732if ac_fn_c_try_compile "$LINENO"; then : 12733 xorg_cv_cc_flag_unknown_warning_option=yes 12734else 12735 xorg_cv_cc_flag_unknown_warning_option=no 12736fi 12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12738fi 12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12742 CFLAGS="$xorg_testset_save_CFLAGS" 12743fi 12744 12745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12748 fi 12749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12753 $as_echo_n "(cached) " >&6 12754else 12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12756/* end confdefs.h. */ 12757int i; 12758_ACEOF 12759if ac_fn_c_try_compile "$LINENO"; then : 12760 xorg_cv_cc_flag_unused_command_line_argument=yes 12761else 12762 xorg_cv_cc_flag_unused_command_line_argument=no 12763fi 12764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12765fi 12766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12769 CFLAGS="$xorg_testset_save_CFLAGS" 12770fi 12771 12772found="no" 12773 12774 if test $found = "no" ; then 12775 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12777 fi 12778 12779 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12781 fi 12782 12783 CFLAGS="$CFLAGS -Wbad-function-cast" 12784 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 12786$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 12787 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12788 if eval \${$cacheid+:} false; then : 12789 $as_echo_n "(cached) " >&6 12790else 12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12792/* end confdefs.h. */ 12793int i; 12794int 12795main () 12796{ 12797 12798 ; 12799 return 0; 12800} 12801_ACEOF 12802if ac_fn_c_try_link "$LINENO"; then : 12803 eval $cacheid=yes 12804else 12805 eval $cacheid=no 12806fi 12807rm -f core conftest.err conftest.$ac_objext \ 12808 conftest$ac_exeext conftest.$ac_ext 12809fi 12810 12811 12812 CFLAGS="$xorg_testset_save_CFLAGS" 12813 12814 eval supported=\$$cacheid 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12816$as_echo "$supported" >&6; } 12817 if test "$supported" = "yes" ; then 12818 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12819 found="yes" 12820 fi 12821 fi 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837xorg_testset_save_CFLAGS="$CFLAGS" 12838 12839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12844 $as_echo_n "(cached) " >&6 12845else 12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12847/* end confdefs.h. */ 12848int i; 12849_ACEOF 12850if ac_fn_c_try_compile "$LINENO"; then : 12851 xorg_cv_cc_flag_unknown_warning_option=yes 12852else 12853 xorg_cv_cc_flag_unknown_warning_option=no 12854fi 12855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12856fi 12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12860 CFLAGS="$xorg_testset_save_CFLAGS" 12861fi 12862 12863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12866 fi 12867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12871 $as_echo_n "(cached) " >&6 12872else 12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12874/* end confdefs.h. */ 12875int i; 12876_ACEOF 12877if ac_fn_c_try_compile "$LINENO"; then : 12878 xorg_cv_cc_flag_unused_command_line_argument=yes 12879else 12880 xorg_cv_cc_flag_unused_command_line_argument=no 12881fi 12882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12883fi 12884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12887 CFLAGS="$xorg_testset_save_CFLAGS" 12888fi 12889 12890found="no" 12891 12892 if test $found = "no" ; then 12893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12895 fi 12896 12897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12899 fi 12900 12901 CFLAGS="$CFLAGS -Wold-style-definition" 12902 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 12904$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 12905 cacheid=xorg_cv_cc_flag__Wold_style_definition 12906 if eval \${$cacheid+:} false; then : 12907 $as_echo_n "(cached) " >&6 12908else 12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12910/* end confdefs.h. */ 12911int i; 12912int 12913main () 12914{ 12915 12916 ; 12917 return 0; 12918} 12919_ACEOF 12920if ac_fn_c_try_link "$LINENO"; then : 12921 eval $cacheid=yes 12922else 12923 eval $cacheid=no 12924fi 12925rm -f core conftest.err conftest.$ac_objext \ 12926 conftest$ac_exeext conftest.$ac_ext 12927fi 12928 12929 12930 CFLAGS="$xorg_testset_save_CFLAGS" 12931 12932 eval supported=\$$cacheid 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12934$as_echo "$supported" >&6; } 12935 if test "$supported" = "yes" ; then 12936 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12937 found="yes" 12938 fi 12939 fi 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955xorg_testset_save_CFLAGS="$CFLAGS" 12956 12957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12962 $as_echo_n "(cached) " >&6 12963else 12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12965/* end confdefs.h. */ 12966int i; 12967_ACEOF 12968if ac_fn_c_try_compile "$LINENO"; then : 12969 xorg_cv_cc_flag_unknown_warning_option=yes 12970else 12971 xorg_cv_cc_flag_unknown_warning_option=no 12972fi 12973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12974fi 12975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12978 CFLAGS="$xorg_testset_save_CFLAGS" 12979fi 12980 12981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12984 fi 12985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12989 $as_echo_n "(cached) " >&6 12990else 12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12992/* end confdefs.h. */ 12993int i; 12994_ACEOF 12995if ac_fn_c_try_compile "$LINENO"; then : 12996 xorg_cv_cc_flag_unused_command_line_argument=yes 12997else 12998 xorg_cv_cc_flag_unused_command_line_argument=no 12999fi 13000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13001fi 13002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13005 CFLAGS="$xorg_testset_save_CFLAGS" 13006fi 13007 13008found="no" 13009 13010 if test $found = "no" ; then 13011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13013 fi 13014 13015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13017 fi 13018 13019 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13020 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 13022$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 13023 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13024 if eval \${$cacheid+:} false; then : 13025 $as_echo_n "(cached) " >&6 13026else 13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13028/* end confdefs.h. */ 13029int i; 13030int 13031main () 13032{ 13033 13034 ; 13035 return 0; 13036} 13037_ACEOF 13038if ac_fn_c_try_link "$LINENO"; then : 13039 eval $cacheid=yes 13040else 13041 eval $cacheid=no 13042fi 13043rm -f core conftest.err conftest.$ac_objext \ 13044 conftest$ac_exeext conftest.$ac_ext 13045fi 13046 13047 13048 CFLAGS="$xorg_testset_save_CFLAGS" 13049 13050 eval supported=\$$cacheid 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13052$as_echo "$supported" >&6; } 13053 if test "$supported" = "yes" ; then 13054 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13055 found="yes" 13056 fi 13057 fi 13058 13059 13060 13061 13062 13063# This chunk adds additional warnings that could catch undesired effects. 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077xorg_testset_save_CFLAGS="$CFLAGS" 13078 13079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13084 $as_echo_n "(cached) " >&6 13085else 13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13087/* end confdefs.h. */ 13088int i; 13089_ACEOF 13090if ac_fn_c_try_compile "$LINENO"; then : 13091 xorg_cv_cc_flag_unknown_warning_option=yes 13092else 13093 xorg_cv_cc_flag_unknown_warning_option=no 13094fi 13095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13096fi 13097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13100 CFLAGS="$xorg_testset_save_CFLAGS" 13101fi 13102 13103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13106 fi 13107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13111 $as_echo_n "(cached) " >&6 13112else 13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13114/* end confdefs.h. */ 13115int i; 13116_ACEOF 13117if ac_fn_c_try_compile "$LINENO"; then : 13118 xorg_cv_cc_flag_unused_command_line_argument=yes 13119else 13120 xorg_cv_cc_flag_unused_command_line_argument=no 13121fi 13122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13123fi 13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13127 CFLAGS="$xorg_testset_save_CFLAGS" 13128fi 13129 13130found="no" 13131 13132 if test $found = "no" ; then 13133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13135 fi 13136 13137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13139 fi 13140 13141 CFLAGS="$CFLAGS -Wunused" 13142 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 13144$as_echo_n "checking if $CC supports-Wunused... " >&6; } 13145 cacheid=xorg_cv_cc_flag__Wunused 13146 if eval \${$cacheid+:} false; then : 13147 $as_echo_n "(cached) " >&6 13148else 13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13150/* end confdefs.h. */ 13151int i; 13152int 13153main () 13154{ 13155 13156 ; 13157 return 0; 13158} 13159_ACEOF 13160if ac_fn_c_try_link "$LINENO"; then : 13161 eval $cacheid=yes 13162else 13163 eval $cacheid=no 13164fi 13165rm -f core conftest.err conftest.$ac_objext \ 13166 conftest$ac_exeext conftest.$ac_ext 13167fi 13168 13169 13170 CFLAGS="$xorg_testset_save_CFLAGS" 13171 13172 eval supported=\$$cacheid 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13174$as_echo "$supported" >&6; } 13175 if test "$supported" = "yes" ; then 13176 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13177 found="yes" 13178 fi 13179 fi 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195xorg_testset_save_CFLAGS="$CFLAGS" 13196 13197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13202 $as_echo_n "(cached) " >&6 13203else 13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13205/* end confdefs.h. */ 13206int i; 13207_ACEOF 13208if ac_fn_c_try_compile "$LINENO"; then : 13209 xorg_cv_cc_flag_unknown_warning_option=yes 13210else 13211 xorg_cv_cc_flag_unknown_warning_option=no 13212fi 13213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13214fi 13215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13218 CFLAGS="$xorg_testset_save_CFLAGS" 13219fi 13220 13221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13224 fi 13225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13229 $as_echo_n "(cached) " >&6 13230else 13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13232/* end confdefs.h. */ 13233int i; 13234_ACEOF 13235if ac_fn_c_try_compile "$LINENO"; then : 13236 xorg_cv_cc_flag_unused_command_line_argument=yes 13237else 13238 xorg_cv_cc_flag_unused_command_line_argument=no 13239fi 13240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13241fi 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13245 CFLAGS="$xorg_testset_save_CFLAGS" 13246fi 13247 13248found="no" 13249 13250 if test $found = "no" ; then 13251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13253 fi 13254 13255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13257 fi 13258 13259 CFLAGS="$CFLAGS -Wuninitialized" 13260 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 13262$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 13263 cacheid=xorg_cv_cc_flag__Wuninitialized 13264 if eval \${$cacheid+:} false; then : 13265 $as_echo_n "(cached) " >&6 13266else 13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13268/* end confdefs.h. */ 13269int i; 13270int 13271main () 13272{ 13273 13274 ; 13275 return 0; 13276} 13277_ACEOF 13278if ac_fn_c_try_link "$LINENO"; then : 13279 eval $cacheid=yes 13280else 13281 eval $cacheid=no 13282fi 13283rm -f core conftest.err conftest.$ac_objext \ 13284 conftest$ac_exeext conftest.$ac_ext 13285fi 13286 13287 13288 CFLAGS="$xorg_testset_save_CFLAGS" 13289 13290 eval supported=\$$cacheid 13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13292$as_echo "$supported" >&6; } 13293 if test "$supported" = "yes" ; then 13294 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13295 found="yes" 13296 fi 13297 fi 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313xorg_testset_save_CFLAGS="$CFLAGS" 13314 13315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13320 $as_echo_n "(cached) " >&6 13321else 13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13323/* end confdefs.h. */ 13324int i; 13325_ACEOF 13326if ac_fn_c_try_compile "$LINENO"; then : 13327 xorg_cv_cc_flag_unknown_warning_option=yes 13328else 13329 xorg_cv_cc_flag_unknown_warning_option=no 13330fi 13331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13332fi 13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13336 CFLAGS="$xorg_testset_save_CFLAGS" 13337fi 13338 13339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13342 fi 13343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13347 $as_echo_n "(cached) " >&6 13348else 13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13350/* end confdefs.h. */ 13351int i; 13352_ACEOF 13353if ac_fn_c_try_compile "$LINENO"; then : 13354 xorg_cv_cc_flag_unused_command_line_argument=yes 13355else 13356 xorg_cv_cc_flag_unused_command_line_argument=no 13357fi 13358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13359fi 13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13363 CFLAGS="$xorg_testset_save_CFLAGS" 13364fi 13365 13366found="no" 13367 13368 if test $found = "no" ; then 13369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13371 fi 13372 13373 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13375 fi 13376 13377 CFLAGS="$CFLAGS -Wshadow" 13378 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 13380$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 13381 cacheid=xorg_cv_cc_flag__Wshadow 13382 if eval \${$cacheid+:} false; then : 13383 $as_echo_n "(cached) " >&6 13384else 13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13386/* end confdefs.h. */ 13387int i; 13388int 13389main () 13390{ 13391 13392 ; 13393 return 0; 13394} 13395_ACEOF 13396if ac_fn_c_try_link "$LINENO"; then : 13397 eval $cacheid=yes 13398else 13399 eval $cacheid=no 13400fi 13401rm -f core conftest.err conftest.$ac_objext \ 13402 conftest$ac_exeext conftest.$ac_ext 13403fi 13404 13405 13406 CFLAGS="$xorg_testset_save_CFLAGS" 13407 13408 eval supported=\$$cacheid 13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13410$as_echo "$supported" >&6; } 13411 if test "$supported" = "yes" ; then 13412 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13413 found="yes" 13414 fi 13415 fi 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431xorg_testset_save_CFLAGS="$CFLAGS" 13432 13433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13438 $as_echo_n "(cached) " >&6 13439else 13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13441/* end confdefs.h. */ 13442int i; 13443_ACEOF 13444if ac_fn_c_try_compile "$LINENO"; then : 13445 xorg_cv_cc_flag_unknown_warning_option=yes 13446else 13447 xorg_cv_cc_flag_unknown_warning_option=no 13448fi 13449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13450fi 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13454 CFLAGS="$xorg_testset_save_CFLAGS" 13455fi 13456 13457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13460 fi 13461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13465 $as_echo_n "(cached) " >&6 13466else 13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13468/* end confdefs.h. */ 13469int i; 13470_ACEOF 13471if ac_fn_c_try_compile "$LINENO"; then : 13472 xorg_cv_cc_flag_unused_command_line_argument=yes 13473else 13474 xorg_cv_cc_flag_unused_command_line_argument=no 13475fi 13476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13477fi 13478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13481 CFLAGS="$xorg_testset_save_CFLAGS" 13482fi 13483 13484found="no" 13485 13486 if test $found = "no" ; then 13487 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13489 fi 13490 13491 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13493 fi 13494 13495 CFLAGS="$CFLAGS -Wcast-qual" 13496 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 13498$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 13499 cacheid=xorg_cv_cc_flag__Wcast_qual 13500 if eval \${$cacheid+:} false; then : 13501 $as_echo_n "(cached) " >&6 13502else 13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505int i; 13506int 13507main () 13508{ 13509 13510 ; 13511 return 0; 13512} 13513_ACEOF 13514if ac_fn_c_try_link "$LINENO"; then : 13515 eval $cacheid=yes 13516else 13517 eval $cacheid=no 13518fi 13519rm -f core conftest.err conftest.$ac_objext \ 13520 conftest$ac_exeext conftest.$ac_ext 13521fi 13522 13523 13524 CFLAGS="$xorg_testset_save_CFLAGS" 13525 13526 eval supported=\$$cacheid 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13528$as_echo "$supported" >&6; } 13529 if test "$supported" = "yes" ; then 13530 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13531 found="yes" 13532 fi 13533 fi 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549xorg_testset_save_CFLAGS="$CFLAGS" 13550 13551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13556 $as_echo_n "(cached) " >&6 13557else 13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13559/* end confdefs.h. */ 13560int i; 13561_ACEOF 13562if ac_fn_c_try_compile "$LINENO"; then : 13563 xorg_cv_cc_flag_unknown_warning_option=yes 13564else 13565 xorg_cv_cc_flag_unknown_warning_option=no 13566fi 13567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13568fi 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13572 CFLAGS="$xorg_testset_save_CFLAGS" 13573fi 13574 13575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13578 fi 13579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13583 $as_echo_n "(cached) " >&6 13584else 13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13586/* end confdefs.h. */ 13587int i; 13588_ACEOF 13589if ac_fn_c_try_compile "$LINENO"; then : 13590 xorg_cv_cc_flag_unused_command_line_argument=yes 13591else 13592 xorg_cv_cc_flag_unused_command_line_argument=no 13593fi 13594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13595fi 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13599 CFLAGS="$xorg_testset_save_CFLAGS" 13600fi 13601 13602found="no" 13603 13604 if test $found = "no" ; then 13605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13607 fi 13608 13609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13611 fi 13612 13613 CFLAGS="$CFLAGS -Wmissing-noreturn" 13614 13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 13616$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 13617 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13618 if eval \${$cacheid+:} false; then : 13619 $as_echo_n "(cached) " >&6 13620else 13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13622/* end confdefs.h. */ 13623int i; 13624int 13625main () 13626{ 13627 13628 ; 13629 return 0; 13630} 13631_ACEOF 13632if ac_fn_c_try_link "$LINENO"; then : 13633 eval $cacheid=yes 13634else 13635 eval $cacheid=no 13636fi 13637rm -f core conftest.err conftest.$ac_objext \ 13638 conftest$ac_exeext conftest.$ac_ext 13639fi 13640 13641 13642 CFLAGS="$xorg_testset_save_CFLAGS" 13643 13644 eval supported=\$$cacheid 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13646$as_echo "$supported" >&6; } 13647 if test "$supported" = "yes" ; then 13648 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13649 found="yes" 13650 fi 13651 fi 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667xorg_testset_save_CFLAGS="$CFLAGS" 13668 13669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13674 $as_echo_n "(cached) " >&6 13675else 13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13677/* end confdefs.h. */ 13678int i; 13679_ACEOF 13680if ac_fn_c_try_compile "$LINENO"; then : 13681 xorg_cv_cc_flag_unknown_warning_option=yes 13682else 13683 xorg_cv_cc_flag_unknown_warning_option=no 13684fi 13685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13686fi 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13690 CFLAGS="$xorg_testset_save_CFLAGS" 13691fi 13692 13693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13696 fi 13697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13701 $as_echo_n "(cached) " >&6 13702else 13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13704/* end confdefs.h. */ 13705int i; 13706_ACEOF 13707if ac_fn_c_try_compile "$LINENO"; then : 13708 xorg_cv_cc_flag_unused_command_line_argument=yes 13709else 13710 xorg_cv_cc_flag_unused_command_line_argument=no 13711fi 13712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13713fi 13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13717 CFLAGS="$xorg_testset_save_CFLAGS" 13718fi 13719 13720found="no" 13721 13722 if test $found = "no" ; then 13723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13725 fi 13726 13727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13729 fi 13730 13731 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13732 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 13734$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 13735 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13736 if eval \${$cacheid+:} false; then : 13737 $as_echo_n "(cached) " >&6 13738else 13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740/* end confdefs.h. */ 13741int i; 13742int 13743main () 13744{ 13745 13746 ; 13747 return 0; 13748} 13749_ACEOF 13750if ac_fn_c_try_link "$LINENO"; then : 13751 eval $cacheid=yes 13752else 13753 eval $cacheid=no 13754fi 13755rm -f core conftest.err conftest.$ac_objext \ 13756 conftest$ac_exeext conftest.$ac_ext 13757fi 13758 13759 13760 CFLAGS="$xorg_testset_save_CFLAGS" 13761 13762 eval supported=\$$cacheid 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13764$as_echo "$supported" >&6; } 13765 if test "$supported" = "yes" ; then 13766 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13767 found="yes" 13768 fi 13769 fi 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785xorg_testset_save_CFLAGS="$CFLAGS" 13786 13787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13792 $as_echo_n "(cached) " >&6 13793else 13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13795/* end confdefs.h. */ 13796int i; 13797_ACEOF 13798if ac_fn_c_try_compile "$LINENO"; then : 13799 xorg_cv_cc_flag_unknown_warning_option=yes 13800else 13801 xorg_cv_cc_flag_unknown_warning_option=no 13802fi 13803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13804fi 13805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13808 CFLAGS="$xorg_testset_save_CFLAGS" 13809fi 13810 13811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13814 fi 13815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820else 13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13822/* end confdefs.h. */ 13823int i; 13824_ACEOF 13825if ac_fn_c_try_compile "$LINENO"; then : 13826 xorg_cv_cc_flag_unused_command_line_argument=yes 13827else 13828 xorg_cv_cc_flag_unused_command_line_argument=no 13829fi 13830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13831fi 13832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13835 CFLAGS="$xorg_testset_save_CFLAGS" 13836fi 13837 13838found="no" 13839 13840 if test $found = "no" ; then 13841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13843 fi 13844 13845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13847 fi 13848 13849 CFLAGS="$CFLAGS -Wredundant-decls" 13850 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 13852$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 13853 cacheid=xorg_cv_cc_flag__Wredundant_decls 13854 if eval \${$cacheid+:} false; then : 13855 $as_echo_n "(cached) " >&6 13856else 13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13858/* end confdefs.h. */ 13859int i; 13860int 13861main () 13862{ 13863 13864 ; 13865 return 0; 13866} 13867_ACEOF 13868if ac_fn_c_try_link "$LINENO"; then : 13869 eval $cacheid=yes 13870else 13871 eval $cacheid=no 13872fi 13873rm -f core conftest.err conftest.$ac_objext \ 13874 conftest$ac_exeext conftest.$ac_ext 13875fi 13876 13877 13878 CFLAGS="$xorg_testset_save_CFLAGS" 13879 13880 eval supported=\$$cacheid 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13882$as_echo "$supported" >&6; } 13883 if test "$supported" = "yes" ; then 13884 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13885 found="yes" 13886 fi 13887 fi 13888 13889 13890 13891# These are currently disabled because they are noisy. They will be enabled 13892# in the future once the codebase is sufficiently modernized to silence 13893# them. For now, I don't want them to drown out the other warnings. 13894# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13895# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13896# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13897 13898# Turn some warnings into errors, so we don't accidently get successful builds 13899# when there are problems that should be fixed. 13900 13901if test "x$SELECTIVE_WERROR" = "xyes" ; then 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915xorg_testset_save_CFLAGS="$CFLAGS" 13916 13917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926int i; 13927_ACEOF 13928if ac_fn_c_try_compile "$LINENO"; then : 13929 xorg_cv_cc_flag_unknown_warning_option=yes 13930else 13931 xorg_cv_cc_flag_unknown_warning_option=no 13932fi 13933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13934fi 13935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13938 CFLAGS="$xorg_testset_save_CFLAGS" 13939fi 13940 13941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13944 fi 13945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13949 $as_echo_n "(cached) " >&6 13950else 13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13952/* end confdefs.h. */ 13953int i; 13954_ACEOF 13955if ac_fn_c_try_compile "$LINENO"; then : 13956 xorg_cv_cc_flag_unused_command_line_argument=yes 13957else 13958 xorg_cv_cc_flag_unused_command_line_argument=no 13959fi 13960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13961fi 13962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13965 CFLAGS="$xorg_testset_save_CFLAGS" 13966fi 13967 13968found="no" 13969 13970 if test $found = "no" ; then 13971 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13973 fi 13974 13975 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13977 fi 13978 13979 CFLAGS="$CFLAGS -Werror=implicit" 13980 13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 13982$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 13983 cacheid=xorg_cv_cc_flag__Werror_implicit 13984 if eval \${$cacheid+:} false; then : 13985 $as_echo_n "(cached) " >&6 13986else 13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13988/* end confdefs.h. */ 13989int i; 13990int 13991main () 13992{ 13993 13994 ; 13995 return 0; 13996} 13997_ACEOF 13998if ac_fn_c_try_link "$LINENO"; then : 13999 eval $cacheid=yes 14000else 14001 eval $cacheid=no 14002fi 14003rm -f core conftest.err conftest.$ac_objext \ 14004 conftest$ac_exeext conftest.$ac_ext 14005fi 14006 14007 14008 CFLAGS="$xorg_testset_save_CFLAGS" 14009 14010 eval supported=\$$cacheid 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14012$as_echo "$supported" >&6; } 14013 if test "$supported" = "yes" ; then 14014 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14015 found="yes" 14016 fi 14017 fi 14018 14019 if test $found = "no" ; then 14020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14022 fi 14023 14024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14026 fi 14027 14028 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14029 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14031$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14032 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14033 if eval \${$cacheid+:} false; then : 14034 $as_echo_n "(cached) " >&6 14035else 14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14037/* end confdefs.h. */ 14038int i; 14039int 14040main () 14041{ 14042 14043 ; 14044 return 0; 14045} 14046_ACEOF 14047if ac_fn_c_try_link "$LINENO"; then : 14048 eval $cacheid=yes 14049else 14050 eval $cacheid=no 14051fi 14052rm -f core conftest.err conftest.$ac_objext \ 14053 conftest$ac_exeext conftest.$ac_ext 14054fi 14055 14056 14057 CFLAGS="$xorg_testset_save_CFLAGS" 14058 14059 eval supported=\$$cacheid 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14061$as_echo "$supported" >&6; } 14062 if test "$supported" = "yes" ; then 14063 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14064 found="yes" 14065 fi 14066 fi 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082xorg_testset_save_CFLAGS="$CFLAGS" 14083 14084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14089 $as_echo_n "(cached) " >&6 14090else 14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092/* end confdefs.h. */ 14093int i; 14094_ACEOF 14095if ac_fn_c_try_compile "$LINENO"; then : 14096 xorg_cv_cc_flag_unknown_warning_option=yes 14097else 14098 xorg_cv_cc_flag_unknown_warning_option=no 14099fi 14100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14101fi 14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14105 CFLAGS="$xorg_testset_save_CFLAGS" 14106fi 14107 14108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14111 fi 14112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14116 $as_echo_n "(cached) " >&6 14117else 14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14119/* end confdefs.h. */ 14120int i; 14121_ACEOF 14122if ac_fn_c_try_compile "$LINENO"; then : 14123 xorg_cv_cc_flag_unused_command_line_argument=yes 14124else 14125 xorg_cv_cc_flag_unused_command_line_argument=no 14126fi 14127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14128fi 14129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14132 CFLAGS="$xorg_testset_save_CFLAGS" 14133fi 14134 14135found="no" 14136 14137 if test $found = "no" ; then 14138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14140 fi 14141 14142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14144 fi 14145 14146 CFLAGS="$CFLAGS -Werror=nonnull" 14147 14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 14149$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 14150 cacheid=xorg_cv_cc_flag__Werror_nonnull 14151 if eval \${$cacheid+:} false; then : 14152 $as_echo_n "(cached) " >&6 14153else 14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14155/* end confdefs.h. */ 14156int i; 14157int 14158main () 14159{ 14160 14161 ; 14162 return 0; 14163} 14164_ACEOF 14165if ac_fn_c_try_link "$LINENO"; then : 14166 eval $cacheid=yes 14167else 14168 eval $cacheid=no 14169fi 14170rm -f core conftest.err conftest.$ac_objext \ 14171 conftest$ac_exeext conftest.$ac_ext 14172fi 14173 14174 14175 CFLAGS="$xorg_testset_save_CFLAGS" 14176 14177 eval supported=\$$cacheid 14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14179$as_echo "$supported" >&6; } 14180 if test "$supported" = "yes" ; then 14181 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14182 found="yes" 14183 fi 14184 fi 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200xorg_testset_save_CFLAGS="$CFLAGS" 14201 14202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14207 $as_echo_n "(cached) " >&6 14208else 14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14210/* end confdefs.h. */ 14211int i; 14212_ACEOF 14213if ac_fn_c_try_compile "$LINENO"; then : 14214 xorg_cv_cc_flag_unknown_warning_option=yes 14215else 14216 xorg_cv_cc_flag_unknown_warning_option=no 14217fi 14218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14219fi 14220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14223 CFLAGS="$xorg_testset_save_CFLAGS" 14224fi 14225 14226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14229 fi 14230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14234 $as_echo_n "(cached) " >&6 14235else 14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14237/* end confdefs.h. */ 14238int i; 14239_ACEOF 14240if ac_fn_c_try_compile "$LINENO"; then : 14241 xorg_cv_cc_flag_unused_command_line_argument=yes 14242else 14243 xorg_cv_cc_flag_unused_command_line_argument=no 14244fi 14245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14246fi 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14250 CFLAGS="$xorg_testset_save_CFLAGS" 14251fi 14252 14253found="no" 14254 14255 if test $found = "no" ; then 14256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14258 fi 14259 14260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14262 fi 14263 14264 CFLAGS="$CFLAGS -Werror=init-self" 14265 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 14267$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 14268 cacheid=xorg_cv_cc_flag__Werror_init_self 14269 if eval \${$cacheid+:} false; then : 14270 $as_echo_n "(cached) " >&6 14271else 14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14273/* end confdefs.h. */ 14274int i; 14275int 14276main () 14277{ 14278 14279 ; 14280 return 0; 14281} 14282_ACEOF 14283if ac_fn_c_try_link "$LINENO"; then : 14284 eval $cacheid=yes 14285else 14286 eval $cacheid=no 14287fi 14288rm -f core conftest.err conftest.$ac_objext \ 14289 conftest$ac_exeext conftest.$ac_ext 14290fi 14291 14292 14293 CFLAGS="$xorg_testset_save_CFLAGS" 14294 14295 eval supported=\$$cacheid 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14297$as_echo "$supported" >&6; } 14298 if test "$supported" = "yes" ; then 14299 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14300 found="yes" 14301 fi 14302 fi 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318xorg_testset_save_CFLAGS="$CFLAGS" 14319 14320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14325 $as_echo_n "(cached) " >&6 14326else 14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14328/* end confdefs.h. */ 14329int i; 14330_ACEOF 14331if ac_fn_c_try_compile "$LINENO"; then : 14332 xorg_cv_cc_flag_unknown_warning_option=yes 14333else 14334 xorg_cv_cc_flag_unknown_warning_option=no 14335fi 14336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14337fi 14338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14341 CFLAGS="$xorg_testset_save_CFLAGS" 14342fi 14343 14344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14347 fi 14348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14352 $as_echo_n "(cached) " >&6 14353else 14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355/* end confdefs.h. */ 14356int i; 14357_ACEOF 14358if ac_fn_c_try_compile "$LINENO"; then : 14359 xorg_cv_cc_flag_unused_command_line_argument=yes 14360else 14361 xorg_cv_cc_flag_unused_command_line_argument=no 14362fi 14363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14364fi 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14368 CFLAGS="$xorg_testset_save_CFLAGS" 14369fi 14370 14371found="no" 14372 14373 if test $found = "no" ; then 14374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14376 fi 14377 14378 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14380 fi 14381 14382 CFLAGS="$CFLAGS -Werror=main" 14383 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 14385$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 14386 cacheid=xorg_cv_cc_flag__Werror_main 14387 if eval \${$cacheid+:} false; then : 14388 $as_echo_n "(cached) " >&6 14389else 14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14391/* end confdefs.h. */ 14392int i; 14393int 14394main () 14395{ 14396 14397 ; 14398 return 0; 14399} 14400_ACEOF 14401if ac_fn_c_try_link "$LINENO"; then : 14402 eval $cacheid=yes 14403else 14404 eval $cacheid=no 14405fi 14406rm -f core conftest.err conftest.$ac_objext \ 14407 conftest$ac_exeext conftest.$ac_ext 14408fi 14409 14410 14411 CFLAGS="$xorg_testset_save_CFLAGS" 14412 14413 eval supported=\$$cacheid 14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14415$as_echo "$supported" >&6; } 14416 if test "$supported" = "yes" ; then 14417 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14418 found="yes" 14419 fi 14420 fi 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436xorg_testset_save_CFLAGS="$CFLAGS" 14437 14438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14443 $as_echo_n "(cached) " >&6 14444else 14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14446/* end confdefs.h. */ 14447int i; 14448_ACEOF 14449if ac_fn_c_try_compile "$LINENO"; then : 14450 xorg_cv_cc_flag_unknown_warning_option=yes 14451else 14452 xorg_cv_cc_flag_unknown_warning_option=no 14453fi 14454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14455fi 14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14459 CFLAGS="$xorg_testset_save_CFLAGS" 14460fi 14461 14462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14465 fi 14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14470 $as_echo_n "(cached) " >&6 14471else 14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14473/* end confdefs.h. */ 14474int i; 14475_ACEOF 14476if ac_fn_c_try_compile "$LINENO"; then : 14477 xorg_cv_cc_flag_unused_command_line_argument=yes 14478else 14479 xorg_cv_cc_flag_unused_command_line_argument=no 14480fi 14481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14482fi 14483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14486 CFLAGS="$xorg_testset_save_CFLAGS" 14487fi 14488 14489found="no" 14490 14491 if test $found = "no" ; then 14492 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14494 fi 14495 14496 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14498 fi 14499 14500 CFLAGS="$CFLAGS -Werror=missing-braces" 14501 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 14503$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 14504 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14505 if eval \${$cacheid+:} false; then : 14506 $as_echo_n "(cached) " >&6 14507else 14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510int i; 14511int 14512main () 14513{ 14514 14515 ; 14516 return 0; 14517} 14518_ACEOF 14519if ac_fn_c_try_link "$LINENO"; then : 14520 eval $cacheid=yes 14521else 14522 eval $cacheid=no 14523fi 14524rm -f core conftest.err conftest.$ac_objext \ 14525 conftest$ac_exeext conftest.$ac_ext 14526fi 14527 14528 14529 CFLAGS="$xorg_testset_save_CFLAGS" 14530 14531 eval supported=\$$cacheid 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14533$as_echo "$supported" >&6; } 14534 if test "$supported" = "yes" ; then 14535 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14536 found="yes" 14537 fi 14538 fi 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554xorg_testset_save_CFLAGS="$CFLAGS" 14555 14556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14561 $as_echo_n "(cached) " >&6 14562else 14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14564/* end confdefs.h. */ 14565int i; 14566_ACEOF 14567if ac_fn_c_try_compile "$LINENO"; then : 14568 xorg_cv_cc_flag_unknown_warning_option=yes 14569else 14570 xorg_cv_cc_flag_unknown_warning_option=no 14571fi 14572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14573fi 14574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14577 CFLAGS="$xorg_testset_save_CFLAGS" 14578fi 14579 14580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14583 fi 14584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14588 $as_echo_n "(cached) " >&6 14589else 14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14591/* end confdefs.h. */ 14592int i; 14593_ACEOF 14594if ac_fn_c_try_compile "$LINENO"; then : 14595 xorg_cv_cc_flag_unused_command_line_argument=yes 14596else 14597 xorg_cv_cc_flag_unused_command_line_argument=no 14598fi 14599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14600fi 14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14604 CFLAGS="$xorg_testset_save_CFLAGS" 14605fi 14606 14607found="no" 14608 14609 if test $found = "no" ; then 14610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14612 fi 14613 14614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14616 fi 14617 14618 CFLAGS="$CFLAGS -Werror=sequence-point" 14619 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 14621$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 14622 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14623 if eval \${$cacheid+:} false; then : 14624 $as_echo_n "(cached) " >&6 14625else 14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14627/* end confdefs.h. */ 14628int i; 14629int 14630main () 14631{ 14632 14633 ; 14634 return 0; 14635} 14636_ACEOF 14637if ac_fn_c_try_link "$LINENO"; then : 14638 eval $cacheid=yes 14639else 14640 eval $cacheid=no 14641fi 14642rm -f core conftest.err conftest.$ac_objext \ 14643 conftest$ac_exeext conftest.$ac_ext 14644fi 14645 14646 14647 CFLAGS="$xorg_testset_save_CFLAGS" 14648 14649 eval supported=\$$cacheid 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14651$as_echo "$supported" >&6; } 14652 if test "$supported" = "yes" ; then 14653 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14654 found="yes" 14655 fi 14656 fi 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672xorg_testset_save_CFLAGS="$CFLAGS" 14673 14674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14679 $as_echo_n "(cached) " >&6 14680else 14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14682/* end confdefs.h. */ 14683int i; 14684_ACEOF 14685if ac_fn_c_try_compile "$LINENO"; then : 14686 xorg_cv_cc_flag_unknown_warning_option=yes 14687else 14688 xorg_cv_cc_flag_unknown_warning_option=no 14689fi 14690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14691fi 14692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14695 CFLAGS="$xorg_testset_save_CFLAGS" 14696fi 14697 14698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14701 fi 14702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14706 $as_echo_n "(cached) " >&6 14707else 14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14709/* end confdefs.h. */ 14710int i; 14711_ACEOF 14712if ac_fn_c_try_compile "$LINENO"; then : 14713 xorg_cv_cc_flag_unused_command_line_argument=yes 14714else 14715 xorg_cv_cc_flag_unused_command_line_argument=no 14716fi 14717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14718fi 14719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14722 CFLAGS="$xorg_testset_save_CFLAGS" 14723fi 14724 14725found="no" 14726 14727 if test $found = "no" ; then 14728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14730 fi 14731 14732 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14734 fi 14735 14736 CFLAGS="$CFLAGS -Werror=return-type" 14737 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 14739$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 14740 cacheid=xorg_cv_cc_flag__Werror_return_type 14741 if eval \${$cacheid+:} false; then : 14742 $as_echo_n "(cached) " >&6 14743else 14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14745/* end confdefs.h. */ 14746int i; 14747int 14748main () 14749{ 14750 14751 ; 14752 return 0; 14753} 14754_ACEOF 14755if ac_fn_c_try_link "$LINENO"; then : 14756 eval $cacheid=yes 14757else 14758 eval $cacheid=no 14759fi 14760rm -f core conftest.err conftest.$ac_objext \ 14761 conftest$ac_exeext conftest.$ac_ext 14762fi 14763 14764 14765 CFLAGS="$xorg_testset_save_CFLAGS" 14766 14767 eval supported=\$$cacheid 14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14769$as_echo "$supported" >&6; } 14770 if test "$supported" = "yes" ; then 14771 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14772 found="yes" 14773 fi 14774 fi 14775 14776 if test $found = "no" ; then 14777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14779 fi 14780 14781 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14783 fi 14784 14785 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14786 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14788$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14789 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 14790 if eval \${$cacheid+:} false; then : 14791 $as_echo_n "(cached) " >&6 14792else 14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14794/* end confdefs.h. */ 14795int i; 14796int 14797main () 14798{ 14799 14800 ; 14801 return 0; 14802} 14803_ACEOF 14804if ac_fn_c_try_link "$LINENO"; then : 14805 eval $cacheid=yes 14806else 14807 eval $cacheid=no 14808fi 14809rm -f core conftest.err conftest.$ac_objext \ 14810 conftest$ac_exeext conftest.$ac_ext 14811fi 14812 14813 14814 CFLAGS="$xorg_testset_save_CFLAGS" 14815 14816 eval supported=\$$cacheid 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14818$as_echo "$supported" >&6; } 14819 if test "$supported" = "yes" ; then 14820 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14821 found="yes" 14822 fi 14823 fi 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839xorg_testset_save_CFLAGS="$CFLAGS" 14840 14841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14846 $as_echo_n "(cached) " >&6 14847else 14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14849/* end confdefs.h. */ 14850int i; 14851_ACEOF 14852if ac_fn_c_try_compile "$LINENO"; then : 14853 xorg_cv_cc_flag_unknown_warning_option=yes 14854else 14855 xorg_cv_cc_flag_unknown_warning_option=no 14856fi 14857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14858fi 14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14862 CFLAGS="$xorg_testset_save_CFLAGS" 14863fi 14864 14865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14868 fi 14869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14873 $as_echo_n "(cached) " >&6 14874else 14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14876/* end confdefs.h. */ 14877int i; 14878_ACEOF 14879if ac_fn_c_try_compile "$LINENO"; then : 14880 xorg_cv_cc_flag_unused_command_line_argument=yes 14881else 14882 xorg_cv_cc_flag_unused_command_line_argument=no 14883fi 14884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14885fi 14886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14889 CFLAGS="$xorg_testset_save_CFLAGS" 14890fi 14891 14892found="no" 14893 14894 if test $found = "no" ; then 14895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14897 fi 14898 14899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14901 fi 14902 14903 CFLAGS="$CFLAGS -Werror=trigraphs" 14904 14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 14906$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 14907 cacheid=xorg_cv_cc_flag__Werror_trigraphs 14908 if eval \${$cacheid+:} false; then : 14909 $as_echo_n "(cached) " >&6 14910else 14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14912/* end confdefs.h. */ 14913int i; 14914int 14915main () 14916{ 14917 14918 ; 14919 return 0; 14920} 14921_ACEOF 14922if ac_fn_c_try_link "$LINENO"; then : 14923 eval $cacheid=yes 14924else 14925 eval $cacheid=no 14926fi 14927rm -f core conftest.err conftest.$ac_objext \ 14928 conftest$ac_exeext conftest.$ac_ext 14929fi 14930 14931 14932 CFLAGS="$xorg_testset_save_CFLAGS" 14933 14934 eval supported=\$$cacheid 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14936$as_echo "$supported" >&6; } 14937 if test "$supported" = "yes" ; then 14938 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14939 found="yes" 14940 fi 14941 fi 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957xorg_testset_save_CFLAGS="$CFLAGS" 14958 14959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965else 14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14967/* end confdefs.h. */ 14968int i; 14969_ACEOF 14970if ac_fn_c_try_compile "$LINENO"; then : 14971 xorg_cv_cc_flag_unknown_warning_option=yes 14972else 14973 xorg_cv_cc_flag_unknown_warning_option=no 14974fi 14975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14976fi 14977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14980 CFLAGS="$xorg_testset_save_CFLAGS" 14981fi 14982 14983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14986 fi 14987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14991 $as_echo_n "(cached) " >&6 14992else 14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14994/* end confdefs.h. */ 14995int i; 14996_ACEOF 14997if ac_fn_c_try_compile "$LINENO"; then : 14998 xorg_cv_cc_flag_unused_command_line_argument=yes 14999else 15000 xorg_cv_cc_flag_unused_command_line_argument=no 15001fi 15002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15003fi 15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15007 CFLAGS="$xorg_testset_save_CFLAGS" 15008fi 15009 15010found="no" 15011 15012 if test $found = "no" ; then 15013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15015 fi 15016 15017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15019 fi 15020 15021 CFLAGS="$CFLAGS -Werror=array-bounds" 15022 15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 15024$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 15025 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15026 if eval \${$cacheid+:} false; then : 15027 $as_echo_n "(cached) " >&6 15028else 15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15030/* end confdefs.h. */ 15031int i; 15032int 15033main () 15034{ 15035 15036 ; 15037 return 0; 15038} 15039_ACEOF 15040if ac_fn_c_try_link "$LINENO"; then : 15041 eval $cacheid=yes 15042else 15043 eval $cacheid=no 15044fi 15045rm -f core conftest.err conftest.$ac_objext \ 15046 conftest$ac_exeext conftest.$ac_ext 15047fi 15048 15049 15050 CFLAGS="$xorg_testset_save_CFLAGS" 15051 15052 eval supported=\$$cacheid 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15054$as_echo "$supported" >&6; } 15055 if test "$supported" = "yes" ; then 15056 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15057 found="yes" 15058 fi 15059 fi 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075xorg_testset_save_CFLAGS="$CFLAGS" 15076 15077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15082 $as_echo_n "(cached) " >&6 15083else 15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15085/* end confdefs.h. */ 15086int i; 15087_ACEOF 15088if ac_fn_c_try_compile "$LINENO"; then : 15089 xorg_cv_cc_flag_unknown_warning_option=yes 15090else 15091 xorg_cv_cc_flag_unknown_warning_option=no 15092fi 15093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15094fi 15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15098 CFLAGS="$xorg_testset_save_CFLAGS" 15099fi 15100 15101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15104 fi 15105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15109 $as_echo_n "(cached) " >&6 15110else 15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15112/* end confdefs.h. */ 15113int i; 15114_ACEOF 15115if ac_fn_c_try_compile "$LINENO"; then : 15116 xorg_cv_cc_flag_unused_command_line_argument=yes 15117else 15118 xorg_cv_cc_flag_unused_command_line_argument=no 15119fi 15120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15121fi 15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15125 CFLAGS="$xorg_testset_save_CFLAGS" 15126fi 15127 15128found="no" 15129 15130 if test $found = "no" ; then 15131 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15133 fi 15134 15135 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15137 fi 15138 15139 CFLAGS="$CFLAGS -Werror=write-strings" 15140 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 15142$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 15143 cacheid=xorg_cv_cc_flag__Werror_write_strings 15144 if eval \${$cacheid+:} false; then : 15145 $as_echo_n "(cached) " >&6 15146else 15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15148/* end confdefs.h. */ 15149int i; 15150int 15151main () 15152{ 15153 15154 ; 15155 return 0; 15156} 15157_ACEOF 15158if ac_fn_c_try_link "$LINENO"; then : 15159 eval $cacheid=yes 15160else 15161 eval $cacheid=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext \ 15164 conftest$ac_exeext conftest.$ac_ext 15165fi 15166 15167 15168 CFLAGS="$xorg_testset_save_CFLAGS" 15169 15170 eval supported=\$$cacheid 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15172$as_echo "$supported" >&6; } 15173 if test "$supported" = "yes" ; then 15174 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15175 found="yes" 15176 fi 15177 fi 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193xorg_testset_save_CFLAGS="$CFLAGS" 15194 15195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15200 $as_echo_n "(cached) " >&6 15201else 15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15203/* end confdefs.h. */ 15204int i; 15205_ACEOF 15206if ac_fn_c_try_compile "$LINENO"; then : 15207 xorg_cv_cc_flag_unknown_warning_option=yes 15208else 15209 xorg_cv_cc_flag_unknown_warning_option=no 15210fi 15211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15212fi 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15216 CFLAGS="$xorg_testset_save_CFLAGS" 15217fi 15218 15219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15222 fi 15223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15227 $as_echo_n "(cached) " >&6 15228else 15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15230/* end confdefs.h. */ 15231int i; 15232_ACEOF 15233if ac_fn_c_try_compile "$LINENO"; then : 15234 xorg_cv_cc_flag_unused_command_line_argument=yes 15235else 15236 xorg_cv_cc_flag_unused_command_line_argument=no 15237fi 15238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15239fi 15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15243 CFLAGS="$xorg_testset_save_CFLAGS" 15244fi 15245 15246found="no" 15247 15248 if test $found = "no" ; then 15249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15251 fi 15252 15253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15255 fi 15256 15257 CFLAGS="$CFLAGS -Werror=address" 15258 15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 15260$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 15261 cacheid=xorg_cv_cc_flag__Werror_address 15262 if eval \${$cacheid+:} false; then : 15263 $as_echo_n "(cached) " >&6 15264else 15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15266/* end confdefs.h. */ 15267int i; 15268int 15269main () 15270{ 15271 15272 ; 15273 return 0; 15274} 15275_ACEOF 15276if ac_fn_c_try_link "$LINENO"; then : 15277 eval $cacheid=yes 15278else 15279 eval $cacheid=no 15280fi 15281rm -f core conftest.err conftest.$ac_objext \ 15282 conftest$ac_exeext conftest.$ac_ext 15283fi 15284 15285 15286 CFLAGS="$xorg_testset_save_CFLAGS" 15287 15288 eval supported=\$$cacheid 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15290$as_echo "$supported" >&6; } 15291 if test "$supported" = "yes" ; then 15292 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15293 found="yes" 15294 fi 15295 fi 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311xorg_testset_save_CFLAGS="$CFLAGS" 15312 15313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15318 $as_echo_n "(cached) " >&6 15319else 15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15321/* end confdefs.h. */ 15322int i; 15323_ACEOF 15324if ac_fn_c_try_compile "$LINENO"; then : 15325 xorg_cv_cc_flag_unknown_warning_option=yes 15326else 15327 xorg_cv_cc_flag_unknown_warning_option=no 15328fi 15329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15330fi 15331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15334 CFLAGS="$xorg_testset_save_CFLAGS" 15335fi 15336 15337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15340 fi 15341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15345 $as_echo_n "(cached) " >&6 15346else 15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15348/* end confdefs.h. */ 15349int i; 15350_ACEOF 15351if ac_fn_c_try_compile "$LINENO"; then : 15352 xorg_cv_cc_flag_unused_command_line_argument=yes 15353else 15354 xorg_cv_cc_flag_unused_command_line_argument=no 15355fi 15356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15357fi 15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15361 CFLAGS="$xorg_testset_save_CFLAGS" 15362fi 15363 15364found="no" 15365 15366 if test $found = "no" ; then 15367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15369 fi 15370 15371 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15373 fi 15374 15375 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15376 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 15378$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 15379 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15380 if eval \${$cacheid+:} false; then : 15381 $as_echo_n "(cached) " >&6 15382else 15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15384/* end confdefs.h. */ 15385int i; 15386int 15387main () 15388{ 15389 15390 ; 15391 return 0; 15392} 15393_ACEOF 15394if ac_fn_c_try_link "$LINENO"; then : 15395 eval $cacheid=yes 15396else 15397 eval $cacheid=no 15398fi 15399rm -f core conftest.err conftest.$ac_objext \ 15400 conftest$ac_exeext conftest.$ac_ext 15401fi 15402 15403 15404 CFLAGS="$xorg_testset_save_CFLAGS" 15405 15406 eval supported=\$$cacheid 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15408$as_echo "$supported" >&6; } 15409 if test "$supported" = "yes" ; then 15410 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15411 found="yes" 15412 fi 15413 fi 15414 15415 if test $found = "no" ; then 15416 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15418 fi 15419 15420 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15422 fi 15423 15424 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15425 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15427$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15428 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15429 if eval \${$cacheid+:} false; then : 15430 $as_echo_n "(cached) " >&6 15431else 15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15433/* end confdefs.h. */ 15434int i; 15435int 15436main () 15437{ 15438 15439 ; 15440 return 0; 15441} 15442_ACEOF 15443if ac_fn_c_try_link "$LINENO"; then : 15444 eval $cacheid=yes 15445else 15446 eval $cacheid=no 15447fi 15448rm -f core conftest.err conftest.$ac_objext \ 15449 conftest$ac_exeext conftest.$ac_ext 15450fi 15451 15452 15453 CFLAGS="$xorg_testset_save_CFLAGS" 15454 15455 eval supported=\$$cacheid 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15457$as_echo "$supported" >&6; } 15458 if test "$supported" = "yes" ; then 15459 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15460 found="yes" 15461 fi 15462 fi 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478xorg_testset_save_CFLAGS="$CFLAGS" 15479 15480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15485 $as_echo_n "(cached) " >&6 15486else 15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15488/* end confdefs.h. */ 15489int i; 15490_ACEOF 15491if ac_fn_c_try_compile "$LINENO"; then : 15492 xorg_cv_cc_flag_unknown_warning_option=yes 15493else 15494 xorg_cv_cc_flag_unknown_warning_option=no 15495fi 15496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15497fi 15498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15501 CFLAGS="$xorg_testset_save_CFLAGS" 15502fi 15503 15504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15507 fi 15508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15512 $as_echo_n "(cached) " >&6 15513else 15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15515/* end confdefs.h. */ 15516int i; 15517_ACEOF 15518if ac_fn_c_try_compile "$LINENO"; then : 15519 xorg_cv_cc_flag_unused_command_line_argument=yes 15520else 15521 xorg_cv_cc_flag_unused_command_line_argument=no 15522fi 15523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15524fi 15525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15528 CFLAGS="$xorg_testset_save_CFLAGS" 15529fi 15530 15531found="no" 15532 15533 if test $found = "no" ; then 15534 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15536 fi 15537 15538 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15540 fi 15541 15542 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15543 15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 15545$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 15546 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15547 if eval \${$cacheid+:} false; then : 15548 $as_echo_n "(cached) " >&6 15549else 15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15551/* end confdefs.h. */ 15552int i; 15553int 15554main () 15555{ 15556 15557 ; 15558 return 0; 15559} 15560_ACEOF 15561if ac_fn_c_try_link "$LINENO"; then : 15562 eval $cacheid=yes 15563else 15564 eval $cacheid=no 15565fi 15566rm -f core conftest.err conftest.$ac_objext \ 15567 conftest$ac_exeext conftest.$ac_ext 15568fi 15569 15570 15571 CFLAGS="$xorg_testset_save_CFLAGS" 15572 15573 eval supported=\$$cacheid 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15575$as_echo "$supported" >&6; } 15576 if test "$supported" = "yes" ; then 15577 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15578 found="yes" 15579 fi 15580 fi 15581 15582 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15583else 15584{ $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 15585$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;} 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599xorg_testset_save_CFLAGS="$CFLAGS" 15600 15601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607else 15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15609/* end confdefs.h. */ 15610int i; 15611_ACEOF 15612if ac_fn_c_try_compile "$LINENO"; then : 15613 xorg_cv_cc_flag_unknown_warning_option=yes 15614else 15615 xorg_cv_cc_flag_unknown_warning_option=no 15616fi 15617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15618fi 15619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15622 CFLAGS="$xorg_testset_save_CFLAGS" 15623fi 15624 15625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15628 fi 15629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15633 $as_echo_n "(cached) " >&6 15634else 15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15636/* end confdefs.h. */ 15637int i; 15638_ACEOF 15639if ac_fn_c_try_compile "$LINENO"; then : 15640 xorg_cv_cc_flag_unused_command_line_argument=yes 15641else 15642 xorg_cv_cc_flag_unused_command_line_argument=no 15643fi 15644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15645fi 15646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15649 CFLAGS="$xorg_testset_save_CFLAGS" 15650fi 15651 15652found="no" 15653 15654 if test $found = "no" ; then 15655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15657 fi 15658 15659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15661 fi 15662 15663 CFLAGS="$CFLAGS -Wimplicit" 15664 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 15666$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 15667 cacheid=xorg_cv_cc_flag__Wimplicit 15668 if eval \${$cacheid+:} false; then : 15669 $as_echo_n "(cached) " >&6 15670else 15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15672/* end confdefs.h. */ 15673int i; 15674int 15675main () 15676{ 15677 15678 ; 15679 return 0; 15680} 15681_ACEOF 15682if ac_fn_c_try_link "$LINENO"; then : 15683 eval $cacheid=yes 15684else 15685 eval $cacheid=no 15686fi 15687rm -f core conftest.err conftest.$ac_objext \ 15688 conftest$ac_exeext conftest.$ac_ext 15689fi 15690 15691 15692 CFLAGS="$xorg_testset_save_CFLAGS" 15693 15694 eval supported=\$$cacheid 15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15696$as_echo "$supported" >&6; } 15697 if test "$supported" = "yes" ; then 15698 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15699 found="yes" 15700 fi 15701 fi 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717xorg_testset_save_CFLAGS="$CFLAGS" 15718 15719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15724 $as_echo_n "(cached) " >&6 15725else 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727/* end confdefs.h. */ 15728int i; 15729_ACEOF 15730if ac_fn_c_try_compile "$LINENO"; then : 15731 xorg_cv_cc_flag_unknown_warning_option=yes 15732else 15733 xorg_cv_cc_flag_unknown_warning_option=no 15734fi 15735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15736fi 15737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15740 CFLAGS="$xorg_testset_save_CFLAGS" 15741fi 15742 15743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15746 fi 15747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15751 $as_echo_n "(cached) " >&6 15752else 15753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15754/* end confdefs.h. */ 15755int i; 15756_ACEOF 15757if ac_fn_c_try_compile "$LINENO"; then : 15758 xorg_cv_cc_flag_unused_command_line_argument=yes 15759else 15760 xorg_cv_cc_flag_unused_command_line_argument=no 15761fi 15762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15763fi 15764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15767 CFLAGS="$xorg_testset_save_CFLAGS" 15768fi 15769 15770found="no" 15771 15772 if test $found = "no" ; then 15773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15775 fi 15776 15777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15779 fi 15780 15781 CFLAGS="$CFLAGS -Wnonnull" 15782 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 15784$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 15785 cacheid=xorg_cv_cc_flag__Wnonnull 15786 if eval \${$cacheid+:} false; then : 15787 $as_echo_n "(cached) " >&6 15788else 15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15790/* end confdefs.h. */ 15791int i; 15792int 15793main () 15794{ 15795 15796 ; 15797 return 0; 15798} 15799_ACEOF 15800if ac_fn_c_try_link "$LINENO"; then : 15801 eval $cacheid=yes 15802else 15803 eval $cacheid=no 15804fi 15805rm -f core conftest.err conftest.$ac_objext \ 15806 conftest$ac_exeext conftest.$ac_ext 15807fi 15808 15809 15810 CFLAGS="$xorg_testset_save_CFLAGS" 15811 15812 eval supported=\$$cacheid 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15814$as_echo "$supported" >&6; } 15815 if test "$supported" = "yes" ; then 15816 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15817 found="yes" 15818 fi 15819 fi 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835xorg_testset_save_CFLAGS="$CFLAGS" 15836 15837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15842 $as_echo_n "(cached) " >&6 15843else 15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15845/* end confdefs.h. */ 15846int i; 15847_ACEOF 15848if ac_fn_c_try_compile "$LINENO"; then : 15849 xorg_cv_cc_flag_unknown_warning_option=yes 15850else 15851 xorg_cv_cc_flag_unknown_warning_option=no 15852fi 15853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15854fi 15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15858 CFLAGS="$xorg_testset_save_CFLAGS" 15859fi 15860 15861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15864 fi 15865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15869 $as_echo_n "(cached) " >&6 15870else 15871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15872/* end confdefs.h. */ 15873int i; 15874_ACEOF 15875if ac_fn_c_try_compile "$LINENO"; then : 15876 xorg_cv_cc_flag_unused_command_line_argument=yes 15877else 15878 xorg_cv_cc_flag_unused_command_line_argument=no 15879fi 15880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15881fi 15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15885 CFLAGS="$xorg_testset_save_CFLAGS" 15886fi 15887 15888found="no" 15889 15890 if test $found = "no" ; then 15891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15893 fi 15894 15895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15897 fi 15898 15899 CFLAGS="$CFLAGS -Winit-self" 15900 15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 15902$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 15903 cacheid=xorg_cv_cc_flag__Winit_self 15904 if eval \${$cacheid+:} false; then : 15905 $as_echo_n "(cached) " >&6 15906else 15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15908/* end confdefs.h. */ 15909int i; 15910int 15911main () 15912{ 15913 15914 ; 15915 return 0; 15916} 15917_ACEOF 15918if ac_fn_c_try_link "$LINENO"; then : 15919 eval $cacheid=yes 15920else 15921 eval $cacheid=no 15922fi 15923rm -f core conftest.err conftest.$ac_objext \ 15924 conftest$ac_exeext conftest.$ac_ext 15925fi 15926 15927 15928 CFLAGS="$xorg_testset_save_CFLAGS" 15929 15930 eval supported=\$$cacheid 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15932$as_echo "$supported" >&6; } 15933 if test "$supported" = "yes" ; then 15934 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15935 found="yes" 15936 fi 15937 fi 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953xorg_testset_save_CFLAGS="$CFLAGS" 15954 15955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15960 $as_echo_n "(cached) " >&6 15961else 15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15963/* end confdefs.h. */ 15964int i; 15965_ACEOF 15966if ac_fn_c_try_compile "$LINENO"; then : 15967 xorg_cv_cc_flag_unknown_warning_option=yes 15968else 15969 xorg_cv_cc_flag_unknown_warning_option=no 15970fi 15971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15972fi 15973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15976 CFLAGS="$xorg_testset_save_CFLAGS" 15977fi 15978 15979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15982 fi 15983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15987 $as_echo_n "(cached) " >&6 15988else 15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15990/* end confdefs.h. */ 15991int i; 15992_ACEOF 15993if ac_fn_c_try_compile "$LINENO"; then : 15994 xorg_cv_cc_flag_unused_command_line_argument=yes 15995else 15996 xorg_cv_cc_flag_unused_command_line_argument=no 15997fi 15998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15999fi 16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16003 CFLAGS="$xorg_testset_save_CFLAGS" 16004fi 16005 16006found="no" 16007 16008 if test $found = "no" ; then 16009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16011 fi 16012 16013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16015 fi 16016 16017 CFLAGS="$CFLAGS -Wmain" 16018 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 16020$as_echo_n "checking if $CC supports-Wmain... " >&6; } 16021 cacheid=xorg_cv_cc_flag__Wmain 16022 if eval \${$cacheid+:} false; then : 16023 $as_echo_n "(cached) " >&6 16024else 16025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16026/* end confdefs.h. */ 16027int i; 16028int 16029main () 16030{ 16031 16032 ; 16033 return 0; 16034} 16035_ACEOF 16036if ac_fn_c_try_link "$LINENO"; then : 16037 eval $cacheid=yes 16038else 16039 eval $cacheid=no 16040fi 16041rm -f core conftest.err conftest.$ac_objext \ 16042 conftest$ac_exeext conftest.$ac_ext 16043fi 16044 16045 16046 CFLAGS="$xorg_testset_save_CFLAGS" 16047 16048 eval supported=\$$cacheid 16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16050$as_echo "$supported" >&6; } 16051 if test "$supported" = "yes" ; then 16052 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16053 found="yes" 16054 fi 16055 fi 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071xorg_testset_save_CFLAGS="$CFLAGS" 16072 16073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16078 $as_echo_n "(cached) " >&6 16079else 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082int i; 16083_ACEOF 16084if ac_fn_c_try_compile "$LINENO"; then : 16085 xorg_cv_cc_flag_unknown_warning_option=yes 16086else 16087 xorg_cv_cc_flag_unknown_warning_option=no 16088fi 16089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16090fi 16091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16094 CFLAGS="$xorg_testset_save_CFLAGS" 16095fi 16096 16097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16100 fi 16101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16105 $as_echo_n "(cached) " >&6 16106else 16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108/* end confdefs.h. */ 16109int i; 16110_ACEOF 16111if ac_fn_c_try_compile "$LINENO"; then : 16112 xorg_cv_cc_flag_unused_command_line_argument=yes 16113else 16114 xorg_cv_cc_flag_unused_command_line_argument=no 16115fi 16116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16117fi 16118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16121 CFLAGS="$xorg_testset_save_CFLAGS" 16122fi 16123 16124found="no" 16125 16126 if test $found = "no" ; then 16127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16129 fi 16130 16131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16133 fi 16134 16135 CFLAGS="$CFLAGS -Wmissing-braces" 16136 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 16138$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 16139 cacheid=xorg_cv_cc_flag__Wmissing_braces 16140 if eval \${$cacheid+:} false; then : 16141 $as_echo_n "(cached) " >&6 16142else 16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16144/* end confdefs.h. */ 16145int i; 16146int 16147main () 16148{ 16149 16150 ; 16151 return 0; 16152} 16153_ACEOF 16154if ac_fn_c_try_link "$LINENO"; then : 16155 eval $cacheid=yes 16156else 16157 eval $cacheid=no 16158fi 16159rm -f core conftest.err conftest.$ac_objext \ 16160 conftest$ac_exeext conftest.$ac_ext 16161fi 16162 16163 16164 CFLAGS="$xorg_testset_save_CFLAGS" 16165 16166 eval supported=\$$cacheid 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16168$as_echo "$supported" >&6; } 16169 if test "$supported" = "yes" ; then 16170 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16171 found="yes" 16172 fi 16173 fi 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189xorg_testset_save_CFLAGS="$CFLAGS" 16190 16191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16196 $as_echo_n "(cached) " >&6 16197else 16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16199/* end confdefs.h. */ 16200int i; 16201_ACEOF 16202if ac_fn_c_try_compile "$LINENO"; then : 16203 xorg_cv_cc_flag_unknown_warning_option=yes 16204else 16205 xorg_cv_cc_flag_unknown_warning_option=no 16206fi 16207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16208fi 16209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16212 CFLAGS="$xorg_testset_save_CFLAGS" 16213fi 16214 16215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16218 fi 16219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16223 $as_echo_n "(cached) " >&6 16224else 16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16226/* end confdefs.h. */ 16227int i; 16228_ACEOF 16229if ac_fn_c_try_compile "$LINENO"; then : 16230 xorg_cv_cc_flag_unused_command_line_argument=yes 16231else 16232 xorg_cv_cc_flag_unused_command_line_argument=no 16233fi 16234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16235fi 16236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16239 CFLAGS="$xorg_testset_save_CFLAGS" 16240fi 16241 16242found="no" 16243 16244 if test $found = "no" ; then 16245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16247 fi 16248 16249 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16251 fi 16252 16253 CFLAGS="$CFLAGS -Wsequence-point" 16254 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 16256$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 16257 cacheid=xorg_cv_cc_flag__Wsequence_point 16258 if eval \${$cacheid+:} false; then : 16259 $as_echo_n "(cached) " >&6 16260else 16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262/* end confdefs.h. */ 16263int i; 16264int 16265main () 16266{ 16267 16268 ; 16269 return 0; 16270} 16271_ACEOF 16272if ac_fn_c_try_link "$LINENO"; then : 16273 eval $cacheid=yes 16274else 16275 eval $cacheid=no 16276fi 16277rm -f core conftest.err conftest.$ac_objext \ 16278 conftest$ac_exeext conftest.$ac_ext 16279fi 16280 16281 16282 CFLAGS="$xorg_testset_save_CFLAGS" 16283 16284 eval supported=\$$cacheid 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16286$as_echo "$supported" >&6; } 16287 if test "$supported" = "yes" ; then 16288 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16289 found="yes" 16290 fi 16291 fi 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307xorg_testset_save_CFLAGS="$CFLAGS" 16308 16309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16314 $as_echo_n "(cached) " >&6 16315else 16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16317/* end confdefs.h. */ 16318int i; 16319_ACEOF 16320if ac_fn_c_try_compile "$LINENO"; then : 16321 xorg_cv_cc_flag_unknown_warning_option=yes 16322else 16323 xorg_cv_cc_flag_unknown_warning_option=no 16324fi 16325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16326fi 16327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16330 CFLAGS="$xorg_testset_save_CFLAGS" 16331fi 16332 16333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16336 fi 16337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16341 $as_echo_n "(cached) " >&6 16342else 16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16344/* end confdefs.h. */ 16345int i; 16346_ACEOF 16347if ac_fn_c_try_compile "$LINENO"; then : 16348 xorg_cv_cc_flag_unused_command_line_argument=yes 16349else 16350 xorg_cv_cc_flag_unused_command_line_argument=no 16351fi 16352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16353fi 16354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16357 CFLAGS="$xorg_testset_save_CFLAGS" 16358fi 16359 16360found="no" 16361 16362 if test $found = "no" ; then 16363 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16365 fi 16366 16367 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16369 fi 16370 16371 CFLAGS="$CFLAGS -Wreturn-type" 16372 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 16374$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 16375 cacheid=xorg_cv_cc_flag__Wreturn_type 16376 if eval \${$cacheid+:} false; then : 16377 $as_echo_n "(cached) " >&6 16378else 16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16380/* end confdefs.h. */ 16381int i; 16382int 16383main () 16384{ 16385 16386 ; 16387 return 0; 16388} 16389_ACEOF 16390if ac_fn_c_try_link "$LINENO"; then : 16391 eval $cacheid=yes 16392else 16393 eval $cacheid=no 16394fi 16395rm -f core conftest.err conftest.$ac_objext \ 16396 conftest$ac_exeext conftest.$ac_ext 16397fi 16398 16399 16400 CFLAGS="$xorg_testset_save_CFLAGS" 16401 16402 eval supported=\$$cacheid 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16404$as_echo "$supported" >&6; } 16405 if test "$supported" = "yes" ; then 16406 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16407 found="yes" 16408 fi 16409 fi 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425xorg_testset_save_CFLAGS="$CFLAGS" 16426 16427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16432 $as_echo_n "(cached) " >&6 16433else 16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16435/* end confdefs.h. */ 16436int i; 16437_ACEOF 16438if ac_fn_c_try_compile "$LINENO"; then : 16439 xorg_cv_cc_flag_unknown_warning_option=yes 16440else 16441 xorg_cv_cc_flag_unknown_warning_option=no 16442fi 16443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16444fi 16445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16448 CFLAGS="$xorg_testset_save_CFLAGS" 16449fi 16450 16451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16454 fi 16455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16459 $as_echo_n "(cached) " >&6 16460else 16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462/* end confdefs.h. */ 16463int i; 16464_ACEOF 16465if ac_fn_c_try_compile "$LINENO"; then : 16466 xorg_cv_cc_flag_unused_command_line_argument=yes 16467else 16468 xorg_cv_cc_flag_unused_command_line_argument=no 16469fi 16470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16471fi 16472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16475 CFLAGS="$xorg_testset_save_CFLAGS" 16476fi 16477 16478found="no" 16479 16480 if test $found = "no" ; then 16481 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16483 fi 16484 16485 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16487 fi 16488 16489 CFLAGS="$CFLAGS -Wtrigraphs" 16490 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 16492$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 16493 cacheid=xorg_cv_cc_flag__Wtrigraphs 16494 if eval \${$cacheid+:} false; then : 16495 $as_echo_n "(cached) " >&6 16496else 16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16498/* end confdefs.h. */ 16499int i; 16500int 16501main () 16502{ 16503 16504 ; 16505 return 0; 16506} 16507_ACEOF 16508if ac_fn_c_try_link "$LINENO"; then : 16509 eval $cacheid=yes 16510else 16511 eval $cacheid=no 16512fi 16513rm -f core conftest.err conftest.$ac_objext \ 16514 conftest$ac_exeext conftest.$ac_ext 16515fi 16516 16517 16518 CFLAGS="$xorg_testset_save_CFLAGS" 16519 16520 eval supported=\$$cacheid 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16522$as_echo "$supported" >&6; } 16523 if test "$supported" = "yes" ; then 16524 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16525 found="yes" 16526 fi 16527 fi 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543xorg_testset_save_CFLAGS="$CFLAGS" 16544 16545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16550 $as_echo_n "(cached) " >&6 16551else 16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553/* end confdefs.h. */ 16554int i; 16555_ACEOF 16556if ac_fn_c_try_compile "$LINENO"; then : 16557 xorg_cv_cc_flag_unknown_warning_option=yes 16558else 16559 xorg_cv_cc_flag_unknown_warning_option=no 16560fi 16561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16562fi 16563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16566 CFLAGS="$xorg_testset_save_CFLAGS" 16567fi 16568 16569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16572 fi 16573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16577 $as_echo_n "(cached) " >&6 16578else 16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580/* end confdefs.h. */ 16581int i; 16582_ACEOF 16583if ac_fn_c_try_compile "$LINENO"; then : 16584 xorg_cv_cc_flag_unused_command_line_argument=yes 16585else 16586 xorg_cv_cc_flag_unused_command_line_argument=no 16587fi 16588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16589fi 16590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16593 CFLAGS="$xorg_testset_save_CFLAGS" 16594fi 16595 16596found="no" 16597 16598 if test $found = "no" ; then 16599 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16601 fi 16602 16603 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16605 fi 16606 16607 CFLAGS="$CFLAGS -Warray-bounds" 16608 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 16610$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 16611 cacheid=xorg_cv_cc_flag__Warray_bounds 16612 if eval \${$cacheid+:} false; then : 16613 $as_echo_n "(cached) " >&6 16614else 16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16616/* end confdefs.h. */ 16617int i; 16618int 16619main () 16620{ 16621 16622 ; 16623 return 0; 16624} 16625_ACEOF 16626if ac_fn_c_try_link "$LINENO"; then : 16627 eval $cacheid=yes 16628else 16629 eval $cacheid=no 16630fi 16631rm -f core conftest.err conftest.$ac_objext \ 16632 conftest$ac_exeext conftest.$ac_ext 16633fi 16634 16635 16636 CFLAGS="$xorg_testset_save_CFLAGS" 16637 16638 eval supported=\$$cacheid 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16640$as_echo "$supported" >&6; } 16641 if test "$supported" = "yes" ; then 16642 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16643 found="yes" 16644 fi 16645 fi 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661xorg_testset_save_CFLAGS="$CFLAGS" 16662 16663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16668 $as_echo_n "(cached) " >&6 16669else 16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16671/* end confdefs.h. */ 16672int i; 16673_ACEOF 16674if ac_fn_c_try_compile "$LINENO"; then : 16675 xorg_cv_cc_flag_unknown_warning_option=yes 16676else 16677 xorg_cv_cc_flag_unknown_warning_option=no 16678fi 16679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16680fi 16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16684 CFLAGS="$xorg_testset_save_CFLAGS" 16685fi 16686 16687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16690 fi 16691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16695 $as_echo_n "(cached) " >&6 16696else 16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16698/* end confdefs.h. */ 16699int i; 16700_ACEOF 16701if ac_fn_c_try_compile "$LINENO"; then : 16702 xorg_cv_cc_flag_unused_command_line_argument=yes 16703else 16704 xorg_cv_cc_flag_unused_command_line_argument=no 16705fi 16706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16707fi 16708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16711 CFLAGS="$xorg_testset_save_CFLAGS" 16712fi 16713 16714found="no" 16715 16716 if test $found = "no" ; then 16717 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16719 fi 16720 16721 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16723 fi 16724 16725 CFLAGS="$CFLAGS -Wwrite-strings" 16726 16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 16728$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 16729 cacheid=xorg_cv_cc_flag__Wwrite_strings 16730 if eval \${$cacheid+:} false; then : 16731 $as_echo_n "(cached) " >&6 16732else 16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16734/* end confdefs.h. */ 16735int i; 16736int 16737main () 16738{ 16739 16740 ; 16741 return 0; 16742} 16743_ACEOF 16744if ac_fn_c_try_link "$LINENO"; then : 16745 eval $cacheid=yes 16746else 16747 eval $cacheid=no 16748fi 16749rm -f core conftest.err conftest.$ac_objext \ 16750 conftest$ac_exeext conftest.$ac_ext 16751fi 16752 16753 16754 CFLAGS="$xorg_testset_save_CFLAGS" 16755 16756 eval supported=\$$cacheid 16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16758$as_echo "$supported" >&6; } 16759 if test "$supported" = "yes" ; then 16760 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16761 found="yes" 16762 fi 16763 fi 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779xorg_testset_save_CFLAGS="$CFLAGS" 16780 16781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16786 $as_echo_n "(cached) " >&6 16787else 16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16789/* end confdefs.h. */ 16790int i; 16791_ACEOF 16792if ac_fn_c_try_compile "$LINENO"; then : 16793 xorg_cv_cc_flag_unknown_warning_option=yes 16794else 16795 xorg_cv_cc_flag_unknown_warning_option=no 16796fi 16797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16798fi 16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16802 CFLAGS="$xorg_testset_save_CFLAGS" 16803fi 16804 16805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16808 fi 16809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16813 $as_echo_n "(cached) " >&6 16814else 16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16816/* end confdefs.h. */ 16817int i; 16818_ACEOF 16819if ac_fn_c_try_compile "$LINENO"; then : 16820 xorg_cv_cc_flag_unused_command_line_argument=yes 16821else 16822 xorg_cv_cc_flag_unused_command_line_argument=no 16823fi 16824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16825fi 16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16829 CFLAGS="$xorg_testset_save_CFLAGS" 16830fi 16831 16832found="no" 16833 16834 if test $found = "no" ; then 16835 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16837 fi 16838 16839 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16841 fi 16842 16843 CFLAGS="$CFLAGS -Waddress" 16844 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 16846$as_echo_n "checking if $CC supports-Waddress... " >&6; } 16847 cacheid=xorg_cv_cc_flag__Waddress 16848 if eval \${$cacheid+:} false; then : 16849 $as_echo_n "(cached) " >&6 16850else 16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16852/* end confdefs.h. */ 16853int i; 16854int 16855main () 16856{ 16857 16858 ; 16859 return 0; 16860} 16861_ACEOF 16862if ac_fn_c_try_link "$LINENO"; then : 16863 eval $cacheid=yes 16864else 16865 eval $cacheid=no 16866fi 16867rm -f core conftest.err conftest.$ac_objext \ 16868 conftest$ac_exeext conftest.$ac_ext 16869fi 16870 16871 16872 CFLAGS="$xorg_testset_save_CFLAGS" 16873 16874 eval supported=\$$cacheid 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16876$as_echo "$supported" >&6; } 16877 if test "$supported" = "yes" ; then 16878 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16879 found="yes" 16880 fi 16881 fi 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897xorg_testset_save_CFLAGS="$CFLAGS" 16898 16899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16904 $as_echo_n "(cached) " >&6 16905else 16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16907/* end confdefs.h. */ 16908int i; 16909_ACEOF 16910if ac_fn_c_try_compile "$LINENO"; then : 16911 xorg_cv_cc_flag_unknown_warning_option=yes 16912else 16913 xorg_cv_cc_flag_unknown_warning_option=no 16914fi 16915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16916fi 16917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16920 CFLAGS="$xorg_testset_save_CFLAGS" 16921fi 16922 16923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16926 fi 16927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16931 $as_echo_n "(cached) " >&6 16932else 16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16934/* end confdefs.h. */ 16935int i; 16936_ACEOF 16937if ac_fn_c_try_compile "$LINENO"; then : 16938 xorg_cv_cc_flag_unused_command_line_argument=yes 16939else 16940 xorg_cv_cc_flag_unused_command_line_argument=no 16941fi 16942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16943fi 16944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16947 CFLAGS="$xorg_testset_save_CFLAGS" 16948fi 16949 16950found="no" 16951 16952 if test $found = "no" ; then 16953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16955 fi 16956 16957 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16959 fi 16960 16961 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16962 16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 16964$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 16965 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16966 if eval \${$cacheid+:} false; then : 16967 $as_echo_n "(cached) " >&6 16968else 16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16970/* end confdefs.h. */ 16971int i; 16972int 16973main () 16974{ 16975 16976 ; 16977 return 0; 16978} 16979_ACEOF 16980if ac_fn_c_try_link "$LINENO"; then : 16981 eval $cacheid=yes 16982else 16983 eval $cacheid=no 16984fi 16985rm -f core conftest.err conftest.$ac_objext \ 16986 conftest$ac_exeext conftest.$ac_ext 16987fi 16988 16989 16990 CFLAGS="$xorg_testset_save_CFLAGS" 16991 16992 eval supported=\$$cacheid 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16994$as_echo "$supported" >&6; } 16995 if test "$supported" = "yes" ; then 16996 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16997 found="yes" 16998 fi 16999 fi 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015xorg_testset_save_CFLAGS="$CFLAGS" 17016 17017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17022 $as_echo_n "(cached) " >&6 17023else 17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17025/* end confdefs.h. */ 17026int i; 17027_ACEOF 17028if ac_fn_c_try_compile "$LINENO"; then : 17029 xorg_cv_cc_flag_unknown_warning_option=yes 17030else 17031 xorg_cv_cc_flag_unknown_warning_option=no 17032fi 17033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17034fi 17035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17038 CFLAGS="$xorg_testset_save_CFLAGS" 17039fi 17040 17041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17044 fi 17045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17049 $as_echo_n "(cached) " >&6 17050else 17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17052/* end confdefs.h. */ 17053int i; 17054_ACEOF 17055if ac_fn_c_try_compile "$LINENO"; then : 17056 xorg_cv_cc_flag_unused_command_line_argument=yes 17057else 17058 xorg_cv_cc_flag_unused_command_line_argument=no 17059fi 17060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17061fi 17062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17065 CFLAGS="$xorg_testset_save_CFLAGS" 17066fi 17067 17068found="no" 17069 17070 if test $found = "no" ; then 17071 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17073 fi 17074 17075 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17077 fi 17078 17079 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17080 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 17082$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 17083 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17084 if eval \${$cacheid+:} false; then : 17085 $as_echo_n "(cached) " >&6 17086else 17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17088/* end confdefs.h. */ 17089int i; 17090int 17091main () 17092{ 17093 17094 ; 17095 return 0; 17096} 17097_ACEOF 17098if ac_fn_c_try_link "$LINENO"; then : 17099 eval $cacheid=yes 17100else 17101 eval $cacheid=no 17102fi 17103rm -f core conftest.err conftest.$ac_objext \ 17104 conftest$ac_exeext conftest.$ac_ext 17105fi 17106 17107 17108 CFLAGS="$xorg_testset_save_CFLAGS" 17109 17110 eval supported=\$$cacheid 17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17112$as_echo "$supported" >&6; } 17113 if test "$supported" = "yes" ; then 17114 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17115 found="yes" 17116 fi 17117 fi 17118 17119 17120fi 17121 17122 17123 17124 17125 17126 17127 17128 CWARNFLAGS="$BASE_CFLAGS" 17129 if test "x$GCC" = xyes ; then 17130 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17131 fi 17132 17133 17134 17135 17136 17137 17138 17139 17140# Check whether --enable-strict-compilation was given. 17141if test "${enable_strict_compilation+set}" = set; then : 17142 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17143else 17144 STRICT_COMPILE=no 17145fi 17146 17147 17148 17149 17150 17151 17152STRICT_CFLAGS="" 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166xorg_testset_save_CFLAGS="$CFLAGS" 17167 17168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17173 $as_echo_n "(cached) " >&6 17174else 17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17176/* end confdefs.h. */ 17177int i; 17178_ACEOF 17179if ac_fn_c_try_compile "$LINENO"; then : 17180 xorg_cv_cc_flag_unknown_warning_option=yes 17181else 17182 xorg_cv_cc_flag_unknown_warning_option=no 17183fi 17184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17185fi 17186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17189 CFLAGS="$xorg_testset_save_CFLAGS" 17190fi 17191 17192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17195 fi 17196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17200 $as_echo_n "(cached) " >&6 17201else 17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17203/* end confdefs.h. */ 17204int i; 17205_ACEOF 17206if ac_fn_c_try_compile "$LINENO"; then : 17207 xorg_cv_cc_flag_unused_command_line_argument=yes 17208else 17209 xorg_cv_cc_flag_unused_command_line_argument=no 17210fi 17211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17212fi 17213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17216 CFLAGS="$xorg_testset_save_CFLAGS" 17217fi 17218 17219found="no" 17220 17221 if test $found = "no" ; then 17222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17224 fi 17225 17226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17228 fi 17229 17230 CFLAGS="$CFLAGS -pedantic" 17231 17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 17233$as_echo_n "checking if $CC supports-pedantic... " >&6; } 17234 cacheid=xorg_cv_cc_flag__pedantic 17235 if eval \${$cacheid+:} false; then : 17236 $as_echo_n "(cached) " >&6 17237else 17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17239/* end confdefs.h. */ 17240int i; 17241int 17242main () 17243{ 17244 17245 ; 17246 return 0; 17247} 17248_ACEOF 17249if ac_fn_c_try_link "$LINENO"; then : 17250 eval $cacheid=yes 17251else 17252 eval $cacheid=no 17253fi 17254rm -f core conftest.err conftest.$ac_objext \ 17255 conftest$ac_exeext conftest.$ac_ext 17256fi 17257 17258 17259 CFLAGS="$xorg_testset_save_CFLAGS" 17260 17261 eval supported=\$$cacheid 17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17263$as_echo "$supported" >&6; } 17264 if test "$supported" = "yes" ; then 17265 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17266 found="yes" 17267 fi 17268 fi 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284xorg_testset_save_CFLAGS="$CFLAGS" 17285 17286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17291 $as_echo_n "(cached) " >&6 17292else 17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17294/* end confdefs.h. */ 17295int i; 17296_ACEOF 17297if ac_fn_c_try_compile "$LINENO"; then : 17298 xorg_cv_cc_flag_unknown_warning_option=yes 17299else 17300 xorg_cv_cc_flag_unknown_warning_option=no 17301fi 17302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17303fi 17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17307 CFLAGS="$xorg_testset_save_CFLAGS" 17308fi 17309 17310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17313 fi 17314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17318 $as_echo_n "(cached) " >&6 17319else 17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17321/* end confdefs.h. */ 17322int i; 17323_ACEOF 17324if ac_fn_c_try_compile "$LINENO"; then : 17325 xorg_cv_cc_flag_unused_command_line_argument=yes 17326else 17327 xorg_cv_cc_flag_unused_command_line_argument=no 17328fi 17329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17330fi 17331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17334 CFLAGS="$xorg_testset_save_CFLAGS" 17335fi 17336 17337found="no" 17338 17339 if test $found = "no" ; then 17340 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17342 fi 17343 17344 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17346 fi 17347 17348 CFLAGS="$CFLAGS -Werror" 17349 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 17351$as_echo_n "checking if $CC supports-Werror... " >&6; } 17352 cacheid=xorg_cv_cc_flag__Werror 17353 if eval \${$cacheid+:} false; then : 17354 $as_echo_n "(cached) " >&6 17355else 17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17357/* end confdefs.h. */ 17358int i; 17359int 17360main () 17361{ 17362 17363 ; 17364 return 0; 17365} 17366_ACEOF 17367if ac_fn_c_try_link "$LINENO"; then : 17368 eval $cacheid=yes 17369else 17370 eval $cacheid=no 17371fi 17372rm -f core conftest.err conftest.$ac_objext \ 17373 conftest$ac_exeext conftest.$ac_ext 17374fi 17375 17376 17377 CFLAGS="$xorg_testset_save_CFLAGS" 17378 17379 eval supported=\$$cacheid 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17381$as_echo "$supported" >&6; } 17382 if test "$supported" = "yes" ; then 17383 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17384 found="yes" 17385 fi 17386 fi 17387 17388 if test $found = "no" ; then 17389 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17391 fi 17392 17393 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17395 fi 17396 17397 CFLAGS="$CFLAGS -errwarn" 17398 17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 17400$as_echo_n "checking if $CC supports-errwarn... " >&6; } 17401 cacheid=xorg_cv_cc_flag__errwarn 17402 if eval \${$cacheid+:} false; then : 17403 $as_echo_n "(cached) " >&6 17404else 17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17406/* end confdefs.h. */ 17407int i; 17408int 17409main () 17410{ 17411 17412 ; 17413 return 0; 17414} 17415_ACEOF 17416if ac_fn_c_try_link "$LINENO"; then : 17417 eval $cacheid=yes 17418else 17419 eval $cacheid=no 17420fi 17421rm -f core conftest.err conftest.$ac_objext \ 17422 conftest$ac_exeext conftest.$ac_ext 17423fi 17424 17425 17426 CFLAGS="$xorg_testset_save_CFLAGS" 17427 17428 eval supported=\$$cacheid 17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17430$as_echo "$supported" >&6; } 17431 if test "$supported" = "yes" ; then 17432 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17433 found="yes" 17434 fi 17435 fi 17436 17437 17438 17439# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17440# activate it with -Werror, so we add it here explicitly. 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454xorg_testset_save_CFLAGS="$CFLAGS" 17455 17456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17461 $as_echo_n "(cached) " >&6 17462else 17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17464/* end confdefs.h. */ 17465int i; 17466_ACEOF 17467if ac_fn_c_try_compile "$LINENO"; then : 17468 xorg_cv_cc_flag_unknown_warning_option=yes 17469else 17470 xorg_cv_cc_flag_unknown_warning_option=no 17471fi 17472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17473fi 17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17477 CFLAGS="$xorg_testset_save_CFLAGS" 17478fi 17479 17480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17483 fi 17484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17488 $as_echo_n "(cached) " >&6 17489else 17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17491/* end confdefs.h. */ 17492int i; 17493_ACEOF 17494if ac_fn_c_try_compile "$LINENO"; then : 17495 xorg_cv_cc_flag_unused_command_line_argument=yes 17496else 17497 xorg_cv_cc_flag_unused_command_line_argument=no 17498fi 17499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17500fi 17501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17504 CFLAGS="$xorg_testset_save_CFLAGS" 17505fi 17506 17507found="no" 17508 17509 if test $found = "no" ; then 17510 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17512 fi 17513 17514 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17516 fi 17517 17518 CFLAGS="$CFLAGS -Werror=attributes" 17519 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 17521$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 17522 cacheid=xorg_cv_cc_flag__Werror_attributes 17523 if eval \${$cacheid+:} false; then : 17524 $as_echo_n "(cached) " >&6 17525else 17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17527/* end confdefs.h. */ 17528int i; 17529int 17530main () 17531{ 17532 17533 ; 17534 return 0; 17535} 17536_ACEOF 17537if ac_fn_c_try_link "$LINENO"; then : 17538 eval $cacheid=yes 17539else 17540 eval $cacheid=no 17541fi 17542rm -f core conftest.err conftest.$ac_objext \ 17543 conftest$ac_exeext conftest.$ac_ext 17544fi 17545 17546 17547 CFLAGS="$xorg_testset_save_CFLAGS" 17548 17549 eval supported=\$$cacheid 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17551$as_echo "$supported" >&6; } 17552 if test "$supported" = "yes" ; then 17553 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17554 found="yes" 17555 fi 17556 fi 17557 17558 17559 17560if test "x$STRICT_COMPILE" = "xyes"; then 17561 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17562 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17563fi 17564 17565 17566 17567 17568 17569 17570cat >>confdefs.h <<_ACEOF 17571#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17572_ACEOF 17573 17574 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17575 if test "x$PVM" = "x"; then 17576 PVM="0" 17577 fi 17578 17579cat >>confdefs.h <<_ACEOF 17580#define PACKAGE_VERSION_MINOR $PVM 17581_ACEOF 17582 17583 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17584 if test "x$PVP" = "x"; then 17585 PVP="0" 17586 fi 17587 17588cat >>confdefs.h <<_ACEOF 17589#define PACKAGE_VERSION_PATCHLEVEL $PVP 17590_ACEOF 17591 17592 17593 17594CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17595mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17596|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17597echo 'git directory not found: installing possibly empty changelog.' >&2)" 17598 17599 17600 17601 17602macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17603INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17604mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17605|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17606echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17607 17608 17609 17610 17611 17612 17613if test x$APP_MAN_SUFFIX = x ; then 17614 APP_MAN_SUFFIX=1 17615fi 17616if test x$APP_MAN_DIR = x ; then 17617 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17618fi 17619 17620if test x$LIB_MAN_SUFFIX = x ; then 17621 LIB_MAN_SUFFIX=3 17622fi 17623if test x$LIB_MAN_DIR = x ; then 17624 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17625fi 17626 17627if test x$FILE_MAN_SUFFIX = x ; then 17628 case $host_os in 17629 solaris*) FILE_MAN_SUFFIX=4 ;; 17630 *) FILE_MAN_SUFFIX=5 ;; 17631 esac 17632fi 17633if test x$FILE_MAN_DIR = x ; then 17634 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17635fi 17636 17637if test x$MISC_MAN_SUFFIX = x ; then 17638 case $host_os in 17639 solaris*) MISC_MAN_SUFFIX=5 ;; 17640 *) MISC_MAN_SUFFIX=7 ;; 17641 esac 17642fi 17643if test x$MISC_MAN_DIR = x ; then 17644 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17645fi 17646 17647if test x$DRIVER_MAN_SUFFIX = x ; then 17648 case $host_os in 17649 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17650 *) DRIVER_MAN_SUFFIX=4 ;; 17651 esac 17652fi 17653if test x$DRIVER_MAN_DIR = x ; then 17654 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17655fi 17656 17657if test x$ADMIN_MAN_SUFFIX = x ; then 17658 case $host_os in 17659 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17660 *) ADMIN_MAN_SUFFIX=8 ;; 17661 esac 17662fi 17663if test x$ADMIN_MAN_DIR = x ; then 17664 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17665fi 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681XORG_MAN_PAGE="X Version 11" 17682 17683MAN_SUBSTS="\ 17684 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17685 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17686 -e 's|__xservername__|Xorg|g' \ 17687 -e 's|__xconfigfile__|xorg.conf|g' \ 17688 -e 's|__projectroot__|\$(prefix)|g' \ 17689 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17690 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17691 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17692 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17693 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17694 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17695 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17696 17697 17698 17699# Check whether --enable-silent-rules was given. 17700if test "${enable_silent_rules+set}" = set; then : 17701 enableval=$enable_silent_rules; 17702fi 17703 17704case $enable_silent_rules in # ((( 17705 yes) AM_DEFAULT_VERBOSITY=0;; 17706 no) AM_DEFAULT_VERBOSITY=1;; 17707 *) AM_DEFAULT_VERBOSITY=0;; 17708esac 17709am_make=${MAKE-make} 17710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17711$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17712if ${am_cv_make_support_nested_variables+:} false; then : 17713 $as_echo_n "(cached) " >&6 17714else 17715 if $as_echo 'TRUE=$(BAR$(V)) 17716BAR0=false 17717BAR1=true 17718V=1 17719am__doit: 17720 @$(TRUE) 17721.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17722 am_cv_make_support_nested_variables=yes 17723else 17724 am_cv_make_support_nested_variables=no 17725fi 17726fi 17727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17728$as_echo "$am_cv_make_support_nested_variables" >&6; } 17729if test $am_cv_make_support_nested_variables = yes; then 17730 AM_V='$(V)' 17731 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17732else 17733 AM_V=$AM_DEFAULT_VERBOSITY 17734 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17735fi 17736AM_BACKSLASH='\' 17737 17738 17739 17740 17741# Check whether --enable-docs was given. 17742if test "${enable_docs+set}" = set; then : 17743 enableval=$enable_docs; build_docs=$enableval 17744else 17745 build_docs=yes 17746fi 17747 17748 17749 if test x$build_docs = xyes; then 17750 ENABLE_DOCS_TRUE= 17751 ENABLE_DOCS_FALSE='#' 17752else 17753 ENABLE_DOCS_TRUE='#' 17754 ENABLE_DOCS_FALSE= 17755fi 17756 17757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17758$as_echo_n "checking whether to build documentation... " >&6; } 17759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17760$as_echo "$build_docs" >&6; } 17761 17762 17763 17764# Check whether --enable-specs was given. 17765if test "${enable_specs+set}" = set; then : 17766 enableval=$enable_specs; build_specs=$enableval 17767else 17768 build_specs=yes 17769fi 17770 17771 17772 if test x$build_specs = xyes; then 17773 ENABLE_SPECS_TRUE= 17774 ENABLE_SPECS_FALSE='#' 17775else 17776 ENABLE_SPECS_TRUE='#' 17777 ENABLE_SPECS_FALSE= 17778fi 17779 17780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17781$as_echo_n "checking whether to build functional specifications... " >&6; } 17782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17783$as_echo "$build_specs" >&6; } 17784 17785 17786 17787 17788 17789# Check whether --with-xmlto was given. 17790if test "${with_xmlto+set}" = set; then : 17791 withval=$with_xmlto; use_xmlto=$withval 17792else 17793 use_xmlto=auto 17794fi 17795 17796 17797 17798if test "x$use_xmlto" = x"auto"; then 17799 # Extract the first word of "xmlto", so it can be a program name with args. 17800set dummy xmlto; ac_word=$2 17801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17802$as_echo_n "checking for $ac_word... " >&6; } 17803if ${ac_cv_path_XMLTO+:} false; then : 17804 $as_echo_n "(cached) " >&6 17805else 17806 case $XMLTO in 17807 [\\/]* | ?:[\\/]*) 17808 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17809 ;; 17810 *) 17811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17812for as_dir in $PATH 17813do 17814 IFS=$as_save_IFS 17815 test -z "$as_dir" && as_dir=. 17816 for ac_exec_ext in '' $ac_executable_extensions; do 17817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17818 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17820 break 2 17821 fi 17822done 17823 done 17824IFS=$as_save_IFS 17825 17826 ;; 17827esac 17828fi 17829XMLTO=$ac_cv_path_XMLTO 17830if test -n "$XMLTO"; then 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17832$as_echo "$XMLTO" >&6; } 17833else 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17835$as_echo "no" >&6; } 17836fi 17837 17838 17839 if test "x$XMLTO" = "x"; then 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17841$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17842 have_xmlto=no 17843 else 17844 have_xmlto=yes 17845 fi 17846elif test "x$use_xmlto" = x"yes" ; then 17847 # Extract the first word of "xmlto", so it can be a program name with args. 17848set dummy xmlto; ac_word=$2 17849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17850$as_echo_n "checking for $ac_word... " >&6; } 17851if ${ac_cv_path_XMLTO+:} false; then : 17852 $as_echo_n "(cached) " >&6 17853else 17854 case $XMLTO in 17855 [\\/]* | ?:[\\/]*) 17856 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17857 ;; 17858 *) 17859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17860for as_dir in $PATH 17861do 17862 IFS=$as_save_IFS 17863 test -z "$as_dir" && as_dir=. 17864 for ac_exec_ext in '' $ac_executable_extensions; do 17865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17866 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17868 break 2 17869 fi 17870done 17871 done 17872IFS=$as_save_IFS 17873 17874 ;; 17875esac 17876fi 17877XMLTO=$ac_cv_path_XMLTO 17878if test -n "$XMLTO"; then 17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17880$as_echo "$XMLTO" >&6; } 17881else 17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17883$as_echo "no" >&6; } 17884fi 17885 17886 17887 if test "x$XMLTO" = "x"; then 17888 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17889 fi 17890 have_xmlto=yes 17891elif test "x$use_xmlto" = x"no" ; then 17892 if test "x$XMLTO" != "x"; then 17893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17894$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17895 fi 17896 have_xmlto=no 17897else 17898 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17899fi 17900 17901# Test for a minimum version of xmlto, if provided. 17902if test "$have_xmlto" = yes; then 17903 # scrape the xmlto version 17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17905$as_echo_n "checking the xmlto version... " >&6; } 17906 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17908$as_echo "$xmlto_version" >&6; } 17909 as_arg_v1=$xmlto_version 17910as_arg_v2=0.0.22 17911awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17912case $? in #( 17913 1) : 17914 if test "x$use_xmlto" = xauto; then 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17916$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17917 have_xmlto=no 17918 else 17919 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17920 fi ;; #( 17921 0) : 17922 ;; #( 17923 2) : 17924 ;; #( 17925 *) : 17926 ;; 17927esac 17928fi 17929 17930# Test for the ability of xmlto to generate a text target 17931have_xmlto_text=no 17932cat > conftest.xml << "EOF" 17933EOF 17934if test "$have_xmlto" = yes; then : 17935 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17936 have_xmlto_text=yes 17937else 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17939$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17940fi 17941fi 17942rm -f conftest.xml 17943 if test $have_xmlto_text = yes; then 17944 HAVE_XMLTO_TEXT_TRUE= 17945 HAVE_XMLTO_TEXT_FALSE='#' 17946else 17947 HAVE_XMLTO_TEXT_TRUE='#' 17948 HAVE_XMLTO_TEXT_FALSE= 17949fi 17950 17951 if test "$have_xmlto" = yes; then 17952 HAVE_XMLTO_TRUE= 17953 HAVE_XMLTO_FALSE='#' 17954else 17955 HAVE_XMLTO_TRUE='#' 17956 HAVE_XMLTO_FALSE= 17957fi 17958 17959 17960 17961 17962 17963 17964# Check whether --with-fop was given. 17965if test "${with_fop+set}" = set; then : 17966 withval=$with_fop; use_fop=$withval 17967else 17968 use_fop=auto 17969fi 17970 17971 17972 17973if test "x$use_fop" = x"auto"; then 17974 # Extract the first word of "fop", so it can be a program name with args. 17975set dummy fop; ac_word=$2 17976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17977$as_echo_n "checking for $ac_word... " >&6; } 17978if ${ac_cv_path_FOP+:} false; then : 17979 $as_echo_n "(cached) " >&6 17980else 17981 case $FOP in 17982 [\\/]* | ?:[\\/]*) 17983 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17984 ;; 17985 *) 17986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17987for as_dir in $PATH 17988do 17989 IFS=$as_save_IFS 17990 test -z "$as_dir" && as_dir=. 17991 for ac_exec_ext in '' $ac_executable_extensions; do 17992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17993 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17995 break 2 17996 fi 17997done 17998 done 17999IFS=$as_save_IFS 18000 18001 ;; 18002esac 18003fi 18004FOP=$ac_cv_path_FOP 18005if test -n "$FOP"; then 18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18007$as_echo "$FOP" >&6; } 18008else 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18010$as_echo "no" >&6; } 18011fi 18012 18013 18014 if test "x$FOP" = "x"; then 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18016$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18017 have_fop=no 18018 else 18019 have_fop=yes 18020 fi 18021elif test "x$use_fop" = x"yes" ; then 18022 # Extract the first word of "fop", so it can be a program name with args. 18023set dummy fop; ac_word=$2 18024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18025$as_echo_n "checking for $ac_word... " >&6; } 18026if ${ac_cv_path_FOP+:} false; then : 18027 $as_echo_n "(cached) " >&6 18028else 18029 case $FOP in 18030 [\\/]* | ?:[\\/]*) 18031 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18032 ;; 18033 *) 18034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18035for as_dir in $PATH 18036do 18037 IFS=$as_save_IFS 18038 test -z "$as_dir" && as_dir=. 18039 for ac_exec_ext in '' $ac_executable_extensions; do 18040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18041 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18043 break 2 18044 fi 18045done 18046 done 18047IFS=$as_save_IFS 18048 18049 ;; 18050esac 18051fi 18052FOP=$ac_cv_path_FOP 18053if test -n "$FOP"; then 18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18055$as_echo "$FOP" >&6; } 18056else 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18058$as_echo "no" >&6; } 18059fi 18060 18061 18062 if test "x$FOP" = "x"; then 18063 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18064 fi 18065 have_fop=yes 18066elif test "x$use_fop" = x"no" ; then 18067 if test "x$FOP" != "x"; then 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18069$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18070 fi 18071 have_fop=no 18072else 18073 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18074fi 18075 18076# Test for a minimum version of fop, if provided. 18077 18078 if test "$have_fop" = yes; then 18079 HAVE_FOP_TRUE= 18080 HAVE_FOP_FALSE='#' 18081else 18082 HAVE_FOP_TRUE='#' 18083 HAVE_FOP_FALSE= 18084fi 18085 18086 18087 18088 18089# Preserves the interface, should it be implemented later 18090 18091 18092 18093# Check whether --with-xsltproc was given. 18094if test "${with_xsltproc+set}" = set; then : 18095 withval=$with_xsltproc; use_xsltproc=$withval 18096else 18097 use_xsltproc=auto 18098fi 18099 18100 18101 18102if test "x$use_xsltproc" = x"auto"; then 18103 # Extract the first word of "xsltproc", so it can be a program name with args. 18104set dummy xsltproc; ac_word=$2 18105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18106$as_echo_n "checking for $ac_word... " >&6; } 18107if ${ac_cv_path_XSLTPROC+:} false; then : 18108 $as_echo_n "(cached) " >&6 18109else 18110 case $XSLTPROC in 18111 [\\/]* | ?:[\\/]*) 18112 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18113 ;; 18114 *) 18115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18116for as_dir in $PATH 18117do 18118 IFS=$as_save_IFS 18119 test -z "$as_dir" && as_dir=. 18120 for ac_exec_ext in '' $ac_executable_extensions; do 18121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18122 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18124 break 2 18125 fi 18126done 18127 done 18128IFS=$as_save_IFS 18129 18130 ;; 18131esac 18132fi 18133XSLTPROC=$ac_cv_path_XSLTPROC 18134if test -n "$XSLTPROC"; then 18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18136$as_echo "$XSLTPROC" >&6; } 18137else 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18139$as_echo "no" >&6; } 18140fi 18141 18142 18143 if test "x$XSLTPROC" = "x"; then 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18145$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18146 have_xsltproc=no 18147 else 18148 have_xsltproc=yes 18149 fi 18150elif test "x$use_xsltproc" = x"yes" ; then 18151 # Extract the first word of "xsltproc", so it can be a program name with args. 18152set dummy xsltproc; ac_word=$2 18153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18154$as_echo_n "checking for $ac_word... " >&6; } 18155if ${ac_cv_path_XSLTPROC+:} false; then : 18156 $as_echo_n "(cached) " >&6 18157else 18158 case $XSLTPROC in 18159 [\\/]* | ?:[\\/]*) 18160 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18161 ;; 18162 *) 18163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18164for as_dir in $PATH 18165do 18166 IFS=$as_save_IFS 18167 test -z "$as_dir" && as_dir=. 18168 for ac_exec_ext in '' $ac_executable_extensions; do 18169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18170 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18172 break 2 18173 fi 18174done 18175 done 18176IFS=$as_save_IFS 18177 18178 ;; 18179esac 18180fi 18181XSLTPROC=$ac_cv_path_XSLTPROC 18182if test -n "$XSLTPROC"; then 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18184$as_echo "$XSLTPROC" >&6; } 18185else 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18187$as_echo "no" >&6; } 18188fi 18189 18190 18191 if test "x$XSLTPROC" = "x"; then 18192 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18193 fi 18194 have_xsltproc=yes 18195elif test "x$use_xsltproc" = x"no" ; then 18196 if test "x$XSLTPROC" != "x"; then 18197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18198$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18199 fi 18200 have_xsltproc=no 18201else 18202 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18203fi 18204 18205 if test "$have_xsltproc" = yes; then 18206 HAVE_XSLTPROC_TRUE= 18207 HAVE_XSLTPROC_FALSE='#' 18208else 18209 HAVE_XSLTPROC_TRUE='#' 18210 HAVE_XSLTPROC_FALSE= 18211fi 18212 18213 18214 18215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18216$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18217XORG_SGML_PATH= 18218if test -n "$PKG_CONFIG" && \ 18219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18220 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18221 ac_status=$? 18222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18223 test $ac_status = 0; }; then 18224 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18225else 18226 : 18227 18228fi 18229 18230# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18231# the path and the name of the doc stylesheet 18232if test "x$XORG_SGML_PATH" != "x" ; then 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18234$as_echo "$XORG_SGML_PATH" >&6; } 18235 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18236 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18237else 18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18239$as_echo "no" >&6; } 18240fi 18241 18242 18243 18244 18245 if test "x$XSL_STYLESHEET" != "x"; then 18246 HAVE_STYLESHEETS_TRUE= 18247 HAVE_STYLESHEETS_FALSE='#' 18248else 18249 HAVE_STYLESHEETS_TRUE='#' 18250 HAVE_STYLESHEETS_FALSE= 18251fi 18252 18253 18254 18255 18256 18257 18258# Check whether --with-asciidoc was given. 18259if test "${with_asciidoc+set}" = set; then : 18260 withval=$with_asciidoc; use_asciidoc=$withval 18261else 18262 use_asciidoc=auto 18263fi 18264 18265 18266 18267if test "x$use_asciidoc" = x"auto"; then 18268 # Extract the first word of "asciidoc", so it can be a program name with args. 18269set dummy asciidoc; ac_word=$2 18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18271$as_echo_n "checking for $ac_word... " >&6; } 18272if ${ac_cv_path_ASCIIDOC+:} false; then : 18273 $as_echo_n "(cached) " >&6 18274else 18275 case $ASCIIDOC in 18276 [\\/]* | ?:[\\/]*) 18277 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 18278 ;; 18279 *) 18280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18281for as_dir in $PATH 18282do 18283 IFS=$as_save_IFS 18284 test -z "$as_dir" && as_dir=. 18285 for ac_exec_ext in '' $ac_executable_extensions; do 18286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18287 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 18288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18289 break 2 18290 fi 18291done 18292 done 18293IFS=$as_save_IFS 18294 18295 ;; 18296esac 18297fi 18298ASCIIDOC=$ac_cv_path_ASCIIDOC 18299if test -n "$ASCIIDOC"; then 18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 18301$as_echo "$ASCIIDOC" >&6; } 18302else 18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18304$as_echo "no" >&6; } 18305fi 18306 18307 18308 if test "x$ASCIIDOC" = "x"; then 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5 18310$as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;} 18311 have_asciidoc=no 18312 else 18313 have_asciidoc=yes 18314 fi 18315elif test "x$use_asciidoc" = x"yes" ; then 18316 # Extract the first word of "asciidoc", so it can be a program name with args. 18317set dummy asciidoc; ac_word=$2 18318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18319$as_echo_n "checking for $ac_word... " >&6; } 18320if ${ac_cv_path_ASCIIDOC+:} false; then : 18321 $as_echo_n "(cached) " >&6 18322else 18323 case $ASCIIDOC in 18324 [\\/]* | ?:[\\/]*) 18325 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 18326 ;; 18327 *) 18328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18329for as_dir in $PATH 18330do 18331 IFS=$as_save_IFS 18332 test -z "$as_dir" && as_dir=. 18333 for ac_exec_ext in '' $ac_executable_extensions; do 18334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18335 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 18336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18337 break 2 18338 fi 18339done 18340 done 18341IFS=$as_save_IFS 18342 18343 ;; 18344esac 18345fi 18346ASCIIDOC=$ac_cv_path_ASCIIDOC 18347if test -n "$ASCIIDOC"; then 18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 18349$as_echo "$ASCIIDOC" >&6; } 18350else 18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18352$as_echo "no" >&6; } 18353fi 18354 18355 18356 if test "x$ASCIIDOC" = "x"; then 18357 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5 18358 fi 18359 have_asciidoc=yes 18360elif test "x$use_asciidoc" = x"no" ; then 18361 if test "x$ASCIIDOC" != "x"; then 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5 18363$as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;} 18364 fi 18365 have_asciidoc=no 18366else 18367 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5 18368fi 18369if test "$have_asciidoc" = yes; then 18370 # scrape the asciidoc version 18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5 18372$as_echo_n "checking the asciidoc version... " >&6; } 18373 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5 18375$as_echo "$asciidoc_version" >&6; } 18376 as_arg_v1=$asciidoc_version 18377as_arg_v2=8.4.5 18378awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18379case $? in #( 18380 1) : 18381 if test "x$use_asciidoc" = xauto; then 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5 18383$as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;} 18384 have_asciidoc=no 18385 else 18386 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5 18387 fi ;; #( 18388 0) : 18389 ;; #( 18390 2) : 18391 ;; #( 18392 *) : 18393 ;; 18394esac 18395fi 18396 if test "$have_asciidoc" = yes; then 18397 HAVE_ASCIIDOC_TRUE= 18398 HAVE_ASCIIDOC_FALSE='#' 18399else 18400 HAVE_ASCIIDOC_TRUE='#' 18401 HAVE_ASCIIDOC_FALSE= 18402fi 18403 18404 18405 18406# Check whether --enable-malloc0returnsnull was given. 18407if test "${enable_malloc0returnsnull+set}" = set; then : 18408 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18409else 18410 MALLOC_ZERO_RETURNS_NULL=auto 18411fi 18412 18413 18414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18415$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18416if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18417 if test "$cross_compiling" = yes; then : 18418 MALLOC_ZERO_RETURNS_NULL=yes 18419else 18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18421/* end confdefs.h. */ 18422 18423#include <stdlib.h> 18424 18425int 18426main () 18427{ 18428 18429 char *m0, *r0, *c0, *p; 18430 m0 = malloc(0); 18431 p = malloc(10); 18432 r0 = realloc(p,0); 18433 c0 = calloc(0,10); 18434 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18435 18436 ; 18437 return 0; 18438} 18439_ACEOF 18440if ac_fn_c_try_run "$LINENO"; then : 18441 MALLOC_ZERO_RETURNS_NULL=yes 18442else 18443 MALLOC_ZERO_RETURNS_NULL=no 18444fi 18445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18446 conftest.$ac_objext conftest.beam conftest.$ac_ext 18447fi 18448 18449fi 18450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18451$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18452 18453if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18454 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18455 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18456 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18457else 18458 MALLOC_ZERO_CFLAGS="" 18459 XMALLOC_ZERO_CFLAGS="" 18460 XTMALLOC_ZERO_CFLAGS="" 18461fi 18462 18463 18464 18465 18466 18467 18468# Obtain compiler/linker options for dependencies 18469 18470pkg_failed=no 18471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5 18472$as_echo_n "checking for XI... " >&6; } 18473 18474if test -n "$XI_CFLAGS"; then 18475 pkg_cv_XI_CFLAGS="$XI_CFLAGS" 18476 elif test -n "$PKG_CONFIG"; then 18477 if test -n "$PKG_CONFIG" && \ 18478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5 18479 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5 18480 ac_status=$? 18481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18482 test $ac_status = 0; }; then 18483 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null` 18484 test "x$?" != "x0" && pkg_failed=yes 18485else 18486 pkg_failed=yes 18487fi 18488 else 18489 pkg_failed=untried 18490fi 18491if test -n "$XI_LIBS"; then 18492 pkg_cv_XI_LIBS="$XI_LIBS" 18493 elif test -n "$PKG_CONFIG"; then 18494 if test -n "$PKG_CONFIG" && \ 18495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5 18496 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5 18497 ac_status=$? 18498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18499 test $ac_status = 0; }; then 18500 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null` 18501 test "x$?" != "x0" && pkg_failed=yes 18502else 18503 pkg_failed=yes 18504fi 18505 else 18506 pkg_failed=untried 18507fi 18508 18509 18510 18511if test $pkg_failed = yes; then 18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18513$as_echo "no" >&6; } 18514 18515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18516 _pkg_short_errors_supported=yes 18517else 18518 _pkg_short_errors_supported=no 18519fi 18520 if test $_pkg_short_errors_supported = yes; then 18521 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1` 18522 else 18523 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1` 18524 fi 18525 # Put the nasty error message in config.log where it belongs 18526 echo "$XI_PKG_ERRORS" >&5 18527 18528 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1) were not met: 18529 18530$XI_PKG_ERRORS 18531 18532Consider adjusting the PKG_CONFIG_PATH environment variable if you 18533installed software in a non-standard prefix. 18534 18535Alternatively, you may set the environment variables XI_CFLAGS 18536and XI_LIBS to avoid the need to call pkg-config. 18537See the pkg-config man page for more details." "$LINENO" 5 18538elif test $pkg_failed = untried; then 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18540$as_echo "no" >&6; } 18541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18543as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18544is in your PATH or set the PKG_CONFIG environment variable to the full 18545path to pkg-config. 18546 18547Alternatively, you may set the environment variables XI_CFLAGS 18548and XI_LIBS to avoid the need to call pkg-config. 18549See the pkg-config man page for more details. 18550 18551To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18552See \`config.log' for more details" "$LINENO" 5; } 18553else 18554 XI_CFLAGS=$pkg_cv_XI_CFLAGS 18555 XI_LIBS=$pkg_cv_XI_LIBS 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18557$as_echo "yes" >&6; } 18558 18559fi 18560# CFLAGS only for PointerBarrier typedef 18561 18562pkg_failed=no 18563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5 18564$as_echo_n "checking for XFIXES... " >&6; } 18565 18566if test -n "$XFIXES_CFLAGS"; then 18567 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 18568 elif test -n "$PKG_CONFIG"; then 18569 if test -n "$PKG_CONFIG" && \ 18570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 18571 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 18572 ac_status=$? 18573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18574 test $ac_status = 0; }; then 18575 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null` 18576 test "x$?" != "x0" && pkg_failed=yes 18577else 18578 pkg_failed=yes 18579fi 18580 else 18581 pkg_failed=untried 18582fi 18583if test -n "$XFIXES_LIBS"; then 18584 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 18585 elif test -n "$PKG_CONFIG"; then 18586 if test -n "$PKG_CONFIG" && \ 18587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 18588 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 18589 ac_status=$? 18590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18591 test $ac_status = 0; }; then 18592 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null` 18593 test "x$?" != "x0" && pkg_failed=yes 18594else 18595 pkg_failed=yes 18596fi 18597 else 18598 pkg_failed=untried 18599fi 18600 18601 18602 18603if test $pkg_failed = yes; then 18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18605$as_echo "no" >&6; } 18606 18607if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18608 _pkg_short_errors_supported=yes 18609else 18610 _pkg_short_errors_supported=no 18611fi 18612 if test $_pkg_short_errors_supported = yes; then 18613 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1` 18614 else 18615 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1` 18616 fi 18617 # Put the nasty error message in config.log where it belongs 18618 echo "$XFIXES_PKG_ERRORS" >&5 18619 18620 as_fn_error $? "Package requirements (xfixes >= 5) were not met: 18621 18622$XFIXES_PKG_ERRORS 18623 18624Consider adjusting the PKG_CONFIG_PATH environment variable if you 18625installed software in a non-standard prefix. 18626 18627Alternatively, you may set the environment variables XFIXES_CFLAGS 18628and XFIXES_LIBS to avoid the need to call pkg-config. 18629See the pkg-config man page for more details." "$LINENO" 5 18630elif test $pkg_failed = untried; then 18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18632$as_echo "no" >&6; } 18633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18635as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18636is in your PATH or set the PKG_CONFIG environment variable to the full 18637path to pkg-config. 18638 18639Alternatively, you may set the environment variables XFIXES_CFLAGS 18640and XFIXES_LIBS to avoid the need to call pkg-config. 18641See the pkg-config man page for more details. 18642 18643To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18644See \`config.log' for more details" "$LINENO" 5; } 18645else 18646 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 18647 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18649$as_echo "yes" >&6; } 18650 18651fi 18652 18653# Check for xmlto and asciidoc for man page conversion 18654# (only needed by people building tarballs) 18655if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 18656 have_doctools=yes 18657else 18658 have_doctools=no 18659fi 18660 if test $have_doctools = yes; then 18661 HAVE_DOCTOOLS_TRUE= 18662 HAVE_DOCTOOLS_FALSE='#' 18663else 18664 HAVE_DOCTOOLS_TRUE='#' 18665 HAVE_DOCTOOLS_FALSE= 18666fi 18667 18668if test $have_doctools = no; then 18669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5 18670$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;} 18671fi 18672 18673# Determine if the source for man pages is available 18674# It may already be present (tarball) or can be generated using doctools 18675 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 18676 test $have_doctools = yes; then 18677 INSTALL_MANPAGES_TRUE= 18678 INSTALL_MANPAGES_FALSE='#' 18679else 18680 INSTALL_MANPAGES_TRUE='#' 18681 INSTALL_MANPAGES_FALSE= 18682fi 18683 18684 18685ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc" 18686 18687cat >confcache <<\_ACEOF 18688# This file is a shell script that caches the results of configure 18689# tests run on this system so they can be shared between configure 18690# scripts and configure runs, see configure's option --config-cache. 18691# It is not useful on other systems. If it contains results you don't 18692# want to keep, you may remove or edit it. 18693# 18694# config.status only pays attention to the cache file if you give it 18695# the --recheck option to rerun configure. 18696# 18697# `ac_cv_env_foo' variables (set or unset) will be overridden when 18698# loading this file, other *unset* `ac_cv_foo' will be assigned the 18699# following values. 18700 18701_ACEOF 18702 18703# The following way of writing the cache mishandles newlines in values, 18704# but we know of no workaround that is simple, portable, and efficient. 18705# So, we kill variables containing newlines. 18706# Ultrix sh set writes to stderr and can't be redirected directly, 18707# and sets the high bit in the cache file unless we assign to the vars. 18708( 18709 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18710 eval ac_val=\$$ac_var 18711 case $ac_val in #( 18712 *${as_nl}*) 18713 case $ac_var in #( 18714 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18715$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18716 esac 18717 case $ac_var in #( 18718 _ | IFS | as_nl) ;; #( 18719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18720 *) { eval $ac_var=; unset $ac_var;} ;; 18721 esac ;; 18722 esac 18723 done 18724 18725 (set) 2>&1 | 18726 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18727 *${as_nl}ac_space=\ *) 18728 # `set' does not quote correctly, so add quotes: double-quote 18729 # substitution turns \\\\ into \\, and sed turns \\ into \. 18730 sed -n \ 18731 "s/'/'\\\\''/g; 18732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18733 ;; #( 18734 *) 18735 # `set' quotes correctly as required by POSIX, so do not add quotes. 18736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18737 ;; 18738 esac | 18739 sort 18740) | 18741 sed ' 18742 /^ac_cv_env_/b end 18743 t clear 18744 :clear 18745 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18746 t end 18747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18748 :end' >>confcache 18749if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18750 if test -w "$cache_file"; then 18751 if test "x$cache_file" != "x/dev/null"; then 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18753$as_echo "$as_me: updating cache $cache_file" >&6;} 18754 if test ! -f "$cache_file" || test -h "$cache_file"; then 18755 cat confcache >"$cache_file" 18756 else 18757 case $cache_file in #( 18758 */* | ?:*) 18759 mv -f confcache "$cache_file"$$ && 18760 mv -f "$cache_file"$$ "$cache_file" ;; #( 18761 *) 18762 mv -f confcache "$cache_file" ;; 18763 esac 18764 fi 18765 fi 18766 else 18767 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18768$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18769 fi 18770fi 18771rm -f confcache 18772 18773test "x$prefix" = xNONE && prefix=$ac_default_prefix 18774# Let make expand exec_prefix. 18775test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18776 18777DEFS=-DHAVE_CONFIG_H 18778 18779ac_libobjs= 18780ac_ltlibobjs= 18781U= 18782for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18783 # 1. Remove the extension, and $U if already installed. 18784 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18785 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18787 # will be set to the directory where LIBOBJS objects are built. 18788 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18789 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18790done 18791LIBOBJS=$ac_libobjs 18792 18793LTLIBOBJS=$ac_ltlibobjs 18794 18795 18796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18797$as_echo_n "checking that generated files are newer than configure... " >&6; } 18798 if test -n "$am_sleep_pid"; then 18799 # Hide warnings about reused PIDs. 18800 wait $am_sleep_pid 2>/dev/null 18801 fi 18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18803$as_echo "done" >&6; } 18804 if test -n "$EXEEXT"; then 18805 am__EXEEXT_TRUE= 18806 am__EXEEXT_FALSE='#' 18807else 18808 am__EXEEXT_TRUE='#' 18809 am__EXEEXT_FALSE= 18810fi 18811 18812if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18813 as_fn_error $? "conditional \"AMDEP\" was never defined. 18814Usually this means the macro was only invoked conditionally." "$LINENO" 5 18815fi 18816if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18817 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18818Usually this means the macro was only invoked conditionally." "$LINENO" 5 18819fi 18820if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 18821 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 18822Usually this means the macro was only invoked conditionally." "$LINENO" 5 18823fi 18824if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 18825 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 18826Usually this means the macro was only invoked conditionally." "$LINENO" 5 18827fi 18828if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18829 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18830Usually this means the macro was only invoked conditionally." "$LINENO" 5 18831fi 18832if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18833 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18834Usually this means the macro was only invoked conditionally." "$LINENO" 5 18835fi 18836if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18837 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18838Usually this means the macro was only invoked conditionally." "$LINENO" 5 18839fi 18840if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18841 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18842Usually this means the macro was only invoked conditionally." "$LINENO" 5 18843fi 18844if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18845 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18846Usually this means the macro was only invoked conditionally." "$LINENO" 5 18847fi 18848if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 18849 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 18850Usually this means the macro was only invoked conditionally." "$LINENO" 5 18851fi 18852if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then 18853 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined. 18854Usually this means the macro was only invoked conditionally." "$LINENO" 5 18855fi 18856if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 18857 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 18858Usually this means the macro was only invoked conditionally." "$LINENO" 5 18859fi 18860 18861: "${CONFIG_STATUS=./config.status}" 18862ac_write_fail=0 18863ac_clean_files_save=$ac_clean_files 18864ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18865{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18866$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18867as_write_fail=0 18868cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18869#! $SHELL 18870# Generated by $as_me. 18871# Run this file to recreate the current configuration. 18872# Compiler output produced by configure, useful for debugging 18873# configure, is in config.log if it exists. 18874 18875debug=false 18876ac_cs_recheck=false 18877ac_cs_silent=false 18878 18879SHELL=\${CONFIG_SHELL-$SHELL} 18880export SHELL 18881_ASEOF 18882cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18883## -------------------- ## 18884## M4sh Initialization. ## 18885## -------------------- ## 18886 18887# Be more Bourne compatible 18888DUALCASE=1; export DUALCASE # for MKS sh 18889if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18890 emulate sh 18891 NULLCMD=: 18892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18893 # is contrary to our usage. Disable this feature. 18894 alias -g '${1+"$@"}'='"$@"' 18895 setopt NO_GLOB_SUBST 18896else 18897 case `(set -o) 2>/dev/null` in #( 18898 *posix*) : 18899 set -o posix ;; #( 18900 *) : 18901 ;; 18902esac 18903fi 18904 18905 18906as_nl=' 18907' 18908export as_nl 18909# Printing a long string crashes Solaris 7 /usr/bin/printf. 18910as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18911as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18913# Prefer a ksh shell builtin over an external printf program on Solaris, 18914# but without wasting forks for bash or zsh. 18915if test -z "$BASH_VERSION$ZSH_VERSION" \ 18916 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18917 as_echo='print -r --' 18918 as_echo_n='print -rn --' 18919elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18920 as_echo='printf %s\n' 18921 as_echo_n='printf %s' 18922else 18923 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18924 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18925 as_echo_n='/usr/ucb/echo -n' 18926 else 18927 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18928 as_echo_n_body='eval 18929 arg=$1; 18930 case $arg in #( 18931 *"$as_nl"*) 18932 expr "X$arg" : "X\\(.*\\)$as_nl"; 18933 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18934 esac; 18935 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18936 ' 18937 export as_echo_n_body 18938 as_echo_n='sh -c $as_echo_n_body as_echo' 18939 fi 18940 export as_echo_body 18941 as_echo='sh -c $as_echo_body as_echo' 18942fi 18943 18944# The user is always right. 18945if test "${PATH_SEPARATOR+set}" != set; then 18946 PATH_SEPARATOR=: 18947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18949 PATH_SEPARATOR=';' 18950 } 18951fi 18952 18953 18954# IFS 18955# We need space, tab and new line, in precisely that order. Quoting is 18956# there to prevent editors from complaining about space-tab. 18957# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18958# splitting by setting IFS to empty value.) 18959IFS=" "" $as_nl" 18960 18961# Find who we are. Look in the path if we contain no directory separator. 18962as_myself= 18963case $0 in #(( 18964 *[\\/]* ) as_myself=$0 ;; 18965 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18966for as_dir in $PATH 18967do 18968 IFS=$as_save_IFS 18969 test -z "$as_dir" && as_dir=. 18970 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18971 done 18972IFS=$as_save_IFS 18973 18974 ;; 18975esac 18976# We did not find ourselves, most probably we were run as `sh COMMAND' 18977# in which case we are not to be found in the path. 18978if test "x$as_myself" = x; then 18979 as_myself=$0 18980fi 18981if test ! -f "$as_myself"; then 18982 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18983 exit 1 18984fi 18985 18986# Unset variables that we do not need and which cause bugs (e.g. in 18987# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18988# suppresses any "Segmentation fault" message there. '((' could 18989# trigger a bug in pdksh 5.2.14. 18990for as_var in BASH_ENV ENV MAIL MAILPATH 18991do eval test x\${$as_var+set} = xset \ 18992 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18993done 18994PS1='$ ' 18995PS2='> ' 18996PS4='+ ' 18997 18998# NLS nuisances. 18999LC_ALL=C 19000export LC_ALL 19001LANGUAGE=C 19002export LANGUAGE 19003 19004# CDPATH. 19005(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19006 19007 19008# as_fn_error STATUS ERROR [LINENO LOG_FD] 19009# ---------------------------------------- 19010# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19011# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19012# script with STATUS, using 1 if that was 0. 19013as_fn_error () 19014{ 19015 as_status=$1; test $as_status -eq 0 && as_status=1 19016 if test "$4"; then 19017 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19018 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19019 fi 19020 $as_echo "$as_me: error: $2" >&2 19021 as_fn_exit $as_status 19022} # as_fn_error 19023 19024 19025# as_fn_set_status STATUS 19026# ----------------------- 19027# Set $? to STATUS, without forking. 19028as_fn_set_status () 19029{ 19030 return $1 19031} # as_fn_set_status 19032 19033# as_fn_exit STATUS 19034# ----------------- 19035# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19036as_fn_exit () 19037{ 19038 set +e 19039 as_fn_set_status $1 19040 exit $1 19041} # as_fn_exit 19042 19043# as_fn_unset VAR 19044# --------------- 19045# Portably unset VAR. 19046as_fn_unset () 19047{ 19048 { eval $1=; unset $1;} 19049} 19050as_unset=as_fn_unset 19051# as_fn_append VAR VALUE 19052# ---------------------- 19053# Append the text in VALUE to the end of the definition contained in VAR. Take 19054# advantage of any shell optimizations that allow amortized linear growth over 19055# repeated appends, instead of the typical quadratic growth present in naive 19056# implementations. 19057if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19058 eval 'as_fn_append () 19059 { 19060 eval $1+=\$2 19061 }' 19062else 19063 as_fn_append () 19064 { 19065 eval $1=\$$1\$2 19066 } 19067fi # as_fn_append 19068 19069# as_fn_arith ARG... 19070# ------------------ 19071# Perform arithmetic evaluation on the ARGs, and store the result in the 19072# global $as_val. Take advantage of shells that can avoid forks. The arguments 19073# must be portable across $(()) and expr. 19074if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19075 eval 'as_fn_arith () 19076 { 19077 as_val=$(( $* )) 19078 }' 19079else 19080 as_fn_arith () 19081 { 19082 as_val=`expr "$@" || test $? -eq 1` 19083 } 19084fi # as_fn_arith 19085 19086 19087if expr a : '\(a\)' >/dev/null 2>&1 && 19088 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19089 as_expr=expr 19090else 19091 as_expr=false 19092fi 19093 19094if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19095 as_basename=basename 19096else 19097 as_basename=false 19098fi 19099 19100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19101 as_dirname=dirname 19102else 19103 as_dirname=false 19104fi 19105 19106as_me=`$as_basename -- "$0" || 19107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19108 X"$0" : 'X\(//\)$' \| \ 19109 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19110$as_echo X/"$0" | 19111 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19112 s//\1/ 19113 q 19114 } 19115 /^X\/\(\/\/\)$/{ 19116 s//\1/ 19117 q 19118 } 19119 /^X\/\(\/\).*/{ 19120 s//\1/ 19121 q 19122 } 19123 s/.*/./; q'` 19124 19125# Avoid depending upon Character Ranges. 19126as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19128as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19129as_cr_digits='0123456789' 19130as_cr_alnum=$as_cr_Letters$as_cr_digits 19131 19132ECHO_C= ECHO_N= ECHO_T= 19133case `echo -n x` in #((((( 19134-n*) 19135 case `echo 'xy\c'` in 19136 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19137 xy) ECHO_C='\c';; 19138 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19139 ECHO_T=' ';; 19140 esac;; 19141*) 19142 ECHO_N='-n';; 19143esac 19144 19145rm -f conf$$ conf$$.exe conf$$.file 19146if test -d conf$$.dir; then 19147 rm -f conf$$.dir/conf$$.file 19148else 19149 rm -f conf$$.dir 19150 mkdir conf$$.dir 2>/dev/null 19151fi 19152if (echo >conf$$.file) 2>/dev/null; then 19153 if ln -s conf$$.file conf$$ 2>/dev/null; then 19154 as_ln_s='ln -s' 19155 # ... but there are two gotchas: 19156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19157 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19158 # In both cases, we have to default to `cp -pR'. 19159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19160 as_ln_s='cp -pR' 19161 elif ln conf$$.file conf$$ 2>/dev/null; then 19162 as_ln_s=ln 19163 else 19164 as_ln_s='cp -pR' 19165 fi 19166else 19167 as_ln_s='cp -pR' 19168fi 19169rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19170rmdir conf$$.dir 2>/dev/null 19171 19172 19173# as_fn_mkdir_p 19174# ------------- 19175# Create "$as_dir" as a directory, including parents if necessary. 19176as_fn_mkdir_p () 19177{ 19178 19179 case $as_dir in #( 19180 -*) as_dir=./$as_dir;; 19181 esac 19182 test -d "$as_dir" || eval $as_mkdir_p || { 19183 as_dirs= 19184 while :; do 19185 case $as_dir in #( 19186 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19187 *) as_qdir=$as_dir;; 19188 esac 19189 as_dirs="'$as_qdir' $as_dirs" 19190 as_dir=`$as_dirname -- "$as_dir" || 19191$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19192 X"$as_dir" : 'X\(//\)[^/]' \| \ 19193 X"$as_dir" : 'X\(//\)$' \| \ 19194 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19195$as_echo X"$as_dir" | 19196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19197 s//\1/ 19198 q 19199 } 19200 /^X\(\/\/\)[^/].*/{ 19201 s//\1/ 19202 q 19203 } 19204 /^X\(\/\/\)$/{ 19205 s//\1/ 19206 q 19207 } 19208 /^X\(\/\).*/{ 19209 s//\1/ 19210 q 19211 } 19212 s/.*/./; q'` 19213 test -d "$as_dir" && break 19214 done 19215 test -z "$as_dirs" || eval "mkdir $as_dirs" 19216 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19217 19218 19219} # as_fn_mkdir_p 19220if mkdir -p . 2>/dev/null; then 19221 as_mkdir_p='mkdir -p "$as_dir"' 19222else 19223 test -d ./-p && rmdir ./-p 19224 as_mkdir_p=false 19225fi 19226 19227 19228# as_fn_executable_p FILE 19229# ----------------------- 19230# Test if FILE is an executable regular file. 19231as_fn_executable_p () 19232{ 19233 test -f "$1" && test -x "$1" 19234} # as_fn_executable_p 19235as_test_x='test -x' 19236as_executable_p=as_fn_executable_p 19237 19238# Sed expression to map a string onto a valid CPP name. 19239as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19240 19241# Sed expression to map a string onto a valid variable name. 19242as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19243 19244 19245exec 6>&1 19246## ----------------------------------- ## 19247## Main body of $CONFIG_STATUS script. ## 19248## ----------------------------------- ## 19249_ASEOF 19250test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19251 19252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19253# Save the log message, to keep $0 and so on meaningful, and to 19254# report actual input values of CONFIG_FILES etc. instead of their 19255# values after options handling. 19256ac_log=" 19257This file was extended by libXi $as_me 1.7.3, which was 19258generated by GNU Autoconf 2.69. Invocation command line was 19259 19260 CONFIG_FILES = $CONFIG_FILES 19261 CONFIG_HEADERS = $CONFIG_HEADERS 19262 CONFIG_LINKS = $CONFIG_LINKS 19263 CONFIG_COMMANDS = $CONFIG_COMMANDS 19264 $ $0 $@ 19265 19266on `(hostname || uname -n) 2>/dev/null | sed 1q` 19267" 19268 19269_ACEOF 19270 19271case $ac_config_files in *" 19272"*) set x $ac_config_files; shift; ac_config_files=$*;; 19273esac 19274 19275case $ac_config_headers in *" 19276"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19277esac 19278 19279 19280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19281# Files that config.status was made for. 19282config_files="$ac_config_files" 19283config_headers="$ac_config_headers" 19284config_commands="$ac_config_commands" 19285 19286_ACEOF 19287 19288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19289ac_cs_usage="\ 19290\`$as_me' instantiates files and other configuration actions 19291from templates according to the current configuration. Unless the files 19292and actions are specified as TAGs, all are instantiated by default. 19293 19294Usage: $0 [OPTION]... [TAG]... 19295 19296 -h, --help print this help, then exit 19297 -V, --version print version number and configuration settings, then exit 19298 --config print configuration, then exit 19299 -q, --quiet, --silent 19300 do not print progress messages 19301 -d, --debug don't remove temporary files 19302 --recheck update $as_me by reconfiguring in the same conditions 19303 --file=FILE[:TEMPLATE] 19304 instantiate the configuration file FILE 19305 --header=FILE[:TEMPLATE] 19306 instantiate the configuration header FILE 19307 19308Configuration files: 19309$config_files 19310 19311Configuration headers: 19312$config_headers 19313 19314Configuration commands: 19315$config_commands 19316 19317Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19318 19319_ACEOF 19320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19321ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19322ac_cs_version="\\ 19323libXi config.status 1.7.3 19324configured by $0, generated by GNU Autoconf 2.69, 19325 with options \\"\$ac_cs_config\\" 19326 19327Copyright (C) 2012 Free Software Foundation, Inc. 19328This config.status script is free software; the Free Software Foundation 19329gives unlimited permission to copy, distribute and modify it." 19330 19331ac_pwd='$ac_pwd' 19332srcdir='$srcdir' 19333INSTALL='$INSTALL' 19334MKDIR_P='$MKDIR_P' 19335AWK='$AWK' 19336test -n "\$AWK" || AWK=awk 19337_ACEOF 19338 19339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19340# The default lists apply if the user does not specify any file. 19341ac_need_defaults=: 19342while test $# != 0 19343do 19344 case $1 in 19345 --*=?*) 19346 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19347 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19348 ac_shift=: 19349 ;; 19350 --*=) 19351 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19352 ac_optarg= 19353 ac_shift=: 19354 ;; 19355 *) 19356 ac_option=$1 19357 ac_optarg=$2 19358 ac_shift=shift 19359 ;; 19360 esac 19361 19362 case $ac_option in 19363 # Handling of the options. 19364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19365 ac_cs_recheck=: ;; 19366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19367 $as_echo "$ac_cs_version"; exit ;; 19368 --config | --confi | --conf | --con | --co | --c ) 19369 $as_echo "$ac_cs_config"; exit ;; 19370 --debug | --debu | --deb | --de | --d | -d ) 19371 debug=: ;; 19372 --file | --fil | --fi | --f ) 19373 $ac_shift 19374 case $ac_optarg in 19375 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19376 '') as_fn_error $? "missing file argument" ;; 19377 esac 19378 as_fn_append CONFIG_FILES " '$ac_optarg'" 19379 ac_need_defaults=false;; 19380 --header | --heade | --head | --hea ) 19381 $ac_shift 19382 case $ac_optarg in 19383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19384 esac 19385 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19386 ac_need_defaults=false;; 19387 --he | --h) 19388 # Conflict between --help and --header 19389 as_fn_error $? "ambiguous option: \`$1' 19390Try \`$0 --help' for more information.";; 19391 --help | --hel | -h ) 19392 $as_echo "$ac_cs_usage"; exit ;; 19393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19394 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19395 ac_cs_silent=: ;; 19396 19397 # This is an error. 19398 -*) as_fn_error $? "unrecognized option: \`$1' 19399Try \`$0 --help' for more information." ;; 19400 19401 *) as_fn_append ac_config_targets " $1" 19402 ac_need_defaults=false ;; 19403 19404 esac 19405 shift 19406done 19407 19408ac_configure_extra_args= 19409 19410if $ac_cs_silent; then 19411 exec 6>/dev/null 19412 ac_configure_extra_args="$ac_configure_extra_args --silent" 19413fi 19414 19415_ACEOF 19416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19417if \$ac_cs_recheck; then 19418 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19419 shift 19420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19421 CONFIG_SHELL='$SHELL' 19422 export CONFIG_SHELL 19423 exec "\$@" 19424fi 19425 19426_ACEOF 19427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19428exec 5>>config.log 19429{ 19430 echo 19431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19432## Running $as_me. ## 19433_ASBOX 19434 $as_echo "$ac_log" 19435} >&5 19436 19437_ACEOF 19438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19439# 19440# INIT-COMMANDS 19441# 19442AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19443 19444 19445# The HP-UX ksh and POSIX shell print the target directory to stdout 19446# if CDPATH is set. 19447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19448 19449sed_quote_subst='$sed_quote_subst' 19450double_quote_subst='$double_quote_subst' 19451delay_variable_subst='$delay_variable_subst' 19452macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19453macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19454enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19455enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19456pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19457enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19458SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19459ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19460PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19461host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19462host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19463host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19464build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19465build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19466build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19467SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19468Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19469GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19470EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19471FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19472LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19473NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19474LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19475max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19476ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19477exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19478lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19479lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19480lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19481lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19482lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19483reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19484reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19485OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19486deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19487file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19488file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19489want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19490DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19491sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19492AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19493AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19494archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19495STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19496RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19497old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19498old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19499old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19500lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19501CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19502CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19503compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19504GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19505lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19506lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19507lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19508lt_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"`' 19509nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19510lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19511objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19512MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19513lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19514lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19515lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19516lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19517lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19518need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19519MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19520DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19521NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19522LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19523OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19524OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19525libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19526shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19527extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19528archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19529enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19530export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19531whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19532compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19533old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19534old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19535archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19536archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19537module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19538module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19539with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19540allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19541no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19542hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19543hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19544hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19545hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19546hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19547hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19548hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19549inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19550link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19551always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19552export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19553exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19554include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19555prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19556postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19557file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19558variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19559need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19560need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19561version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19562runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19563shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19564shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19565libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19566library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19567soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19568install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19569postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19570postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19571finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19572finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19573hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19574sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19575sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19576hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19577enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19578enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19579enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19580old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19581striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19582 19583LTCC='$LTCC' 19584LTCFLAGS='$LTCFLAGS' 19585compiler='$compiler_DEFAULT' 19586 19587# A function that is used when there is no print builtin or printf. 19588func_fallback_echo () 19589{ 19590 eval 'cat <<_LTECHO_EOF 19591\$1 19592_LTECHO_EOF' 19593} 19594 19595# Quote evaled strings. 19596for var in SHELL \ 19597ECHO \ 19598PATH_SEPARATOR \ 19599SED \ 19600GREP \ 19601EGREP \ 19602FGREP \ 19603LD \ 19604NM \ 19605LN_S \ 19606lt_SP2NL \ 19607lt_NL2SP \ 19608reload_flag \ 19609OBJDUMP \ 19610deplibs_check_method \ 19611file_magic_cmd \ 19612file_magic_glob \ 19613want_nocaseglob \ 19614DLLTOOL \ 19615sharedlib_from_linklib_cmd \ 19616AR \ 19617AR_FLAGS \ 19618archiver_list_spec \ 19619STRIP \ 19620RANLIB \ 19621CC \ 19622CFLAGS \ 19623compiler \ 19624lt_cv_sys_global_symbol_pipe \ 19625lt_cv_sys_global_symbol_to_cdecl \ 19626lt_cv_sys_global_symbol_to_c_name_address \ 19627lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19628nm_file_list_spec \ 19629lt_prog_compiler_no_builtin_flag \ 19630lt_prog_compiler_pic \ 19631lt_prog_compiler_wl \ 19632lt_prog_compiler_static \ 19633lt_cv_prog_compiler_c_o \ 19634need_locks \ 19635MANIFEST_TOOL \ 19636DSYMUTIL \ 19637NMEDIT \ 19638LIPO \ 19639OTOOL \ 19640OTOOL64 \ 19641shrext_cmds \ 19642export_dynamic_flag_spec \ 19643whole_archive_flag_spec \ 19644compiler_needs_object \ 19645with_gnu_ld \ 19646allow_undefined_flag \ 19647no_undefined_flag \ 19648hardcode_libdir_flag_spec \ 19649hardcode_libdir_separator \ 19650exclude_expsyms \ 19651include_expsyms \ 19652file_list_spec \ 19653variables_saved_for_relink \ 19654libname_spec \ 19655library_names_spec \ 19656soname_spec \ 19657install_override_mode \ 19658finish_eval \ 19659old_striplib \ 19660striplib; do 19661 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19662 *[\\\\\\\`\\"\\\$]*) 19663 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19664 ;; 19665 *) 19666 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19667 ;; 19668 esac 19669done 19670 19671# Double-quote double-evaled strings. 19672for var in reload_cmds \ 19673old_postinstall_cmds \ 19674old_postuninstall_cmds \ 19675old_archive_cmds \ 19676extract_expsyms_cmds \ 19677old_archive_from_new_cmds \ 19678old_archive_from_expsyms_cmds \ 19679archive_cmds \ 19680archive_expsym_cmds \ 19681module_cmds \ 19682module_expsym_cmds \ 19683export_symbols_cmds \ 19684prelink_cmds \ 19685postlink_cmds \ 19686postinstall_cmds \ 19687postuninstall_cmds \ 19688finish_cmds \ 19689sys_lib_search_path_spec \ 19690sys_lib_dlsearch_path_spec; do 19691 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19692 *[\\\\\\\`\\"\\\$]*) 19693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19694 ;; 19695 *) 19696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19697 ;; 19698 esac 19699done 19700 19701ac_aux_dir='$ac_aux_dir' 19702xsi_shell='$xsi_shell' 19703lt_shell_append='$lt_shell_append' 19704 19705# See if we are running on zsh, and set the options which allow our 19706# commands through without removal of \ escapes INIT. 19707if test -n "\${ZSH_VERSION+set}" ; then 19708 setopt NO_GLOB_SUBST 19709fi 19710 19711 19712 PACKAGE='$PACKAGE' 19713 VERSION='$VERSION' 19714 TIMESTAMP='$TIMESTAMP' 19715 RM='$RM' 19716 ofile='$ofile' 19717 19718 19719 19720 19721_ACEOF 19722 19723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19724 19725# Handling of arguments. 19726for ac_config_target in $ac_config_targets 19727do 19728 case $ac_config_target in 19729 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 19730 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19731 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19732 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19733 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19734 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19735 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 19736 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;; 19737 19738 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19739 esac 19740done 19741 19742 19743# If the user did not use the arguments to specify the items to instantiate, 19744# then the envvar interface is used. Set only those that are not. 19745# We use the long form for the default assignment because of an extremely 19746# bizarre bug on SunOS 4.1.3. 19747if $ac_need_defaults; then 19748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19751fi 19752 19753# Have a temporary directory for convenience. Make it in the build tree 19754# simply because there is no reason against having it here, and in addition, 19755# creating and moving files from /tmp can sometimes cause problems. 19756# Hook for its removal unless debugging. 19757# Note that there is a small window in which the directory will not be cleaned: 19758# after its creation but before its name has been assigned to `$tmp'. 19759$debug || 19760{ 19761 tmp= ac_tmp= 19762 trap 'exit_status=$? 19763 : "${ac_tmp:=$tmp}" 19764 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19765' 0 19766 trap 'as_fn_exit 1' 1 2 13 15 19767} 19768# Create a (secure) tmp directory for tmp files. 19769 19770{ 19771 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19772 test -d "$tmp" 19773} || 19774{ 19775 tmp=./conf$$-$RANDOM 19776 (umask 077 && mkdir "$tmp") 19777} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19778ac_tmp=$tmp 19779 19780# Set up the scripts for CONFIG_FILES section. 19781# No need to generate them if there are no CONFIG_FILES. 19782# This happens for instance with `./config.status config.h'. 19783if test -n "$CONFIG_FILES"; then 19784 19785 19786ac_cr=`echo X | tr X '\015'` 19787# On cygwin, bash can eat \r inside `` if the user requested igncr. 19788# But we know of no other shell where ac_cr would be empty at this 19789# point, so we can use a bashism as a fallback. 19790if test "x$ac_cr" = x; then 19791 eval ac_cr=\$\'\\r\' 19792fi 19793ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19794if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19795 ac_cs_awk_cr='\\r' 19796else 19797 ac_cs_awk_cr=$ac_cr 19798fi 19799 19800echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19801_ACEOF 19802 19803 19804{ 19805 echo "cat >conf$$subs.awk <<_ACEOF" && 19806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19807 echo "_ACEOF" 19808} >conf$$subs.sh || 19809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19810ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19811ac_delim='%!_!# ' 19812for ac_last_try in false false false false false :; do 19813 . ./conf$$subs.sh || 19814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19815 19816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19817 if test $ac_delim_n = $ac_delim_num; then 19818 break 19819 elif $ac_last_try; then 19820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19821 else 19822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19823 fi 19824done 19825rm -f conf$$subs.sh 19826 19827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19828cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19829_ACEOF 19830sed -n ' 19831h 19832s/^/S["/; s/!.*/"]=/ 19833p 19834g 19835s/^[^!]*!// 19836:repl 19837t repl 19838s/'"$ac_delim"'$// 19839t delim 19840:nl 19841h 19842s/\(.\{148\}\)..*/\1/ 19843t more1 19844s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19845p 19846n 19847b repl 19848:more1 19849s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19850p 19851g 19852s/.\{148\}// 19853t nl 19854:delim 19855h 19856s/\(.\{148\}\)..*/\1/ 19857t more2 19858s/["\\]/\\&/g; s/^/"/; s/$/"/ 19859p 19860b 19861:more2 19862s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19863p 19864g 19865s/.\{148\}// 19866t delim 19867' <conf$$subs.awk | sed ' 19868/^[^""]/{ 19869 N 19870 s/\n// 19871} 19872' >>$CONFIG_STATUS || ac_write_fail=1 19873rm -f conf$$subs.awk 19874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19875_ACAWK 19876cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19877 for (key in S) S_is_set[key] = 1 19878 FS = "" 19879 19880} 19881{ 19882 line = $ 0 19883 nfields = split(line, field, "@") 19884 substed = 0 19885 len = length(field[1]) 19886 for (i = 2; i < nfields; i++) { 19887 key = field[i] 19888 keylen = length(key) 19889 if (S_is_set[key]) { 19890 value = S[key] 19891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19892 len += length(value) + length(field[++i]) 19893 substed = 1 19894 } else 19895 len += 1 + keylen 19896 } 19897 19898 print line 19899} 19900 19901_ACAWK 19902_ACEOF 19903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19904if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19905 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19906else 19907 cat 19908fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19909 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19910_ACEOF 19911 19912# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19913# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19914# trailing colons and then remove the whole line if VPATH becomes empty 19915# (actually we leave an empty line to preserve line numbers). 19916if test "x$srcdir" = x.; then 19917 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19918h 19919s/// 19920s/^/:/ 19921s/[ ]*$/:/ 19922s/:\$(srcdir):/:/g 19923s/:\${srcdir}:/:/g 19924s/:@srcdir@:/:/g 19925s/^:*// 19926s/:*$// 19927x 19928s/\(=[ ]*\).*/\1/ 19929G 19930s/\n// 19931s/^[^=]*=[ ]*$// 19932}' 19933fi 19934 19935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19936fi # test -n "$CONFIG_FILES" 19937 19938# Set up the scripts for CONFIG_HEADERS section. 19939# No need to generate them if there are no CONFIG_HEADERS. 19940# This happens for instance with `./config.status Makefile'. 19941if test -n "$CONFIG_HEADERS"; then 19942cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19943BEGIN { 19944_ACEOF 19945 19946# Transform confdefs.h into an awk script `defines.awk', embedded as 19947# here-document in config.status, that substitutes the proper values into 19948# config.h.in to produce config.h. 19949 19950# Create a delimiter string that does not exist in confdefs.h, to ease 19951# handling of long lines. 19952ac_delim='%!_!# ' 19953for ac_last_try in false false :; do 19954 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19955 if test -z "$ac_tt"; then 19956 break 19957 elif $ac_last_try; then 19958 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19959 else 19960 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19961 fi 19962done 19963 19964# For the awk script, D is an array of macro values keyed by name, 19965# likewise P contains macro parameters if any. Preserve backslash 19966# newline sequences. 19967 19968ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19969sed -n ' 19970s/.\{148\}/&'"$ac_delim"'/g 19971t rset 19972:rset 19973s/^[ ]*#[ ]*define[ ][ ]*/ / 19974t def 19975d 19976:def 19977s/\\$// 19978t bsnl 19979s/["\\]/\\&/g 19980s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19981D["\1"]=" \3"/p 19982s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19983d 19984:bsnl 19985s/["\\]/\\&/g 19986s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19987D["\1"]=" \3\\\\\\n"\\/p 19988t cont 19989s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19990t cont 19991d 19992:cont 19993n 19994s/.\{148\}/&'"$ac_delim"'/g 19995t clear 19996:clear 19997s/\\$// 19998t bsnlc 19999s/["\\]/\\&/g; s/^/"/; s/$/"/p 20000d 20001:bsnlc 20002s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20003b cont 20004' <confdefs.h | sed ' 20005s/'"$ac_delim"'/"\\\ 20006"/g' >>$CONFIG_STATUS || ac_write_fail=1 20007 20008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20009 for (key in D) D_is_set[key] = 1 20010 FS = "" 20011} 20012/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20013 line = \$ 0 20014 split(line, arg, " ") 20015 if (arg[1] == "#") { 20016 defundef = arg[2] 20017 mac1 = arg[3] 20018 } else { 20019 defundef = substr(arg[1], 2) 20020 mac1 = arg[2] 20021 } 20022 split(mac1, mac2, "(") #) 20023 macro = mac2[1] 20024 prefix = substr(line, 1, index(line, defundef) - 1) 20025 if (D_is_set[macro]) { 20026 # Preserve the white space surrounding the "#". 20027 print prefix "define", macro P[macro] D[macro] 20028 next 20029 } else { 20030 # Replace #undef with comments. This is necessary, for example, 20031 # in the case of _POSIX_SOURCE, which is predefined and required 20032 # on some systems where configure will not decide to define it. 20033 if (defundef == "undef") { 20034 print "/*", prefix defundef, macro, "*/" 20035 next 20036 } 20037 } 20038} 20039{ print } 20040_ACAWK 20041_ACEOF 20042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20043 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20044fi # test -n "$CONFIG_HEADERS" 20045 20046 20047eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20048shift 20049for ac_tag 20050do 20051 case $ac_tag in 20052 :[FHLC]) ac_mode=$ac_tag; continue;; 20053 esac 20054 case $ac_mode$ac_tag in 20055 :[FHL]*:*);; 20056 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20057 :[FH]-) ac_tag=-:-;; 20058 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20059 esac 20060 ac_save_IFS=$IFS 20061 IFS=: 20062 set x $ac_tag 20063 IFS=$ac_save_IFS 20064 shift 20065 ac_file=$1 20066 shift 20067 20068 case $ac_mode in 20069 :L) ac_source=$1;; 20070 :[FH]) 20071 ac_file_inputs= 20072 for ac_f 20073 do 20074 case $ac_f in 20075 -) ac_f="$ac_tmp/stdin";; 20076 *) # Look for the file first in the build tree, then in the source tree 20077 # (if the path is not absolute). The absolute path cannot be DOS-style, 20078 # because $ac_f cannot contain `:'. 20079 test -f "$ac_f" || 20080 case $ac_f in 20081 [\\/$]*) false;; 20082 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20083 esac || 20084 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20085 esac 20086 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20087 as_fn_append ac_file_inputs " '$ac_f'" 20088 done 20089 20090 # Let's still pretend it is `configure' which instantiates (i.e., don't 20091 # use $as_me), people would be surprised to read: 20092 # /* config.h. Generated by config.status. */ 20093 configure_input='Generated from '` 20094 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20095 `' by configure.' 20096 if test x"$ac_file" != x-; then 20097 configure_input="$ac_file. $configure_input" 20098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20099$as_echo "$as_me: creating $ac_file" >&6;} 20100 fi 20101 # Neutralize special characters interpreted by sed in replacement strings. 20102 case $configure_input in #( 20103 *\&* | *\|* | *\\* ) 20104 ac_sed_conf_input=`$as_echo "$configure_input" | 20105 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20106 *) ac_sed_conf_input=$configure_input;; 20107 esac 20108 20109 case $ac_tag in 20110 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20112 esac 20113 ;; 20114 esac 20115 20116 ac_dir=`$as_dirname -- "$ac_file" || 20117$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20118 X"$ac_file" : 'X\(//\)[^/]' \| \ 20119 X"$ac_file" : 'X\(//\)$' \| \ 20120 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20121$as_echo X"$ac_file" | 20122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20123 s//\1/ 20124 q 20125 } 20126 /^X\(\/\/\)[^/].*/{ 20127 s//\1/ 20128 q 20129 } 20130 /^X\(\/\/\)$/{ 20131 s//\1/ 20132 q 20133 } 20134 /^X\(\/\).*/{ 20135 s//\1/ 20136 q 20137 } 20138 s/.*/./; q'` 20139 as_dir="$ac_dir"; as_fn_mkdir_p 20140 ac_builddir=. 20141 20142case "$ac_dir" in 20143.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20144*) 20145 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20146 # A ".." for each directory in $ac_dir_suffix. 20147 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20148 case $ac_top_builddir_sub in 20149 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20150 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20151 esac ;; 20152esac 20153ac_abs_top_builddir=$ac_pwd 20154ac_abs_builddir=$ac_pwd$ac_dir_suffix 20155# for backward compatibility: 20156ac_top_builddir=$ac_top_build_prefix 20157 20158case $srcdir in 20159 .) # We are building in place. 20160 ac_srcdir=. 20161 ac_top_srcdir=$ac_top_builddir_sub 20162 ac_abs_top_srcdir=$ac_pwd ;; 20163 [\\/]* | ?:[\\/]* ) # Absolute name. 20164 ac_srcdir=$srcdir$ac_dir_suffix; 20165 ac_top_srcdir=$srcdir 20166 ac_abs_top_srcdir=$srcdir ;; 20167 *) # Relative name. 20168 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20169 ac_top_srcdir=$ac_top_build_prefix$srcdir 20170 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20171esac 20172ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20173 20174 20175 case $ac_mode in 20176 :F) 20177 # 20178 # CONFIG_FILE 20179 # 20180 20181 case $INSTALL in 20182 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20183 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20184 esac 20185 ac_MKDIR_P=$MKDIR_P 20186 case $MKDIR_P in 20187 [\\/$]* | ?:[\\/]* ) ;; 20188 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20189 esac 20190_ACEOF 20191 20192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20193# If the template does not know about datarootdir, expand it. 20194# FIXME: This hack should be removed a few years after 2.60. 20195ac_datarootdir_hack=; ac_datarootdir_seen= 20196ac_sed_dataroot=' 20197/datarootdir/ { 20198 p 20199 q 20200} 20201/@datadir@/p 20202/@docdir@/p 20203/@infodir@/p 20204/@localedir@/p 20205/@mandir@/p' 20206case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20207*datarootdir*) ac_datarootdir_seen=yes;; 20208*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20210$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20211_ACEOF 20212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20213 ac_datarootdir_hack=' 20214 s&@datadir@&$datadir&g 20215 s&@docdir@&$docdir&g 20216 s&@infodir@&$infodir&g 20217 s&@localedir@&$localedir&g 20218 s&@mandir@&$mandir&g 20219 s&\\\${datarootdir}&$datarootdir&g' ;; 20220esac 20221_ACEOF 20222 20223# Neutralize VPATH when `$srcdir' = `.'. 20224# Shell code in configure.ac might set extrasub. 20225# FIXME: do we really want to maintain this feature? 20226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20227ac_sed_extra="$ac_vpsub 20228$extrasub 20229_ACEOF 20230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20231:t 20232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20233s|@configure_input@|$ac_sed_conf_input|;t t 20234s&@top_builddir@&$ac_top_builddir_sub&;t t 20235s&@top_build_prefix@&$ac_top_build_prefix&;t t 20236s&@srcdir@&$ac_srcdir&;t t 20237s&@abs_srcdir@&$ac_abs_srcdir&;t t 20238s&@top_srcdir@&$ac_top_srcdir&;t t 20239s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20240s&@builddir@&$ac_builddir&;t t 20241s&@abs_builddir@&$ac_abs_builddir&;t t 20242s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20243s&@INSTALL@&$ac_INSTALL&;t t 20244s&@MKDIR_P@&$ac_MKDIR_P&;t t 20245$ac_datarootdir_hack 20246" 20247eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20248 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20249 20250test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20251 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20252 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20253 "$ac_tmp/out"`; test -z "$ac_out"; } && 20254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20255which seems to be undefined. Please make sure it is defined" >&5 20256$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20257which seems to be undefined. Please make sure it is defined" >&2;} 20258 20259 rm -f "$ac_tmp/stdin" 20260 case $ac_file in 20261 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20262 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20263 esac \ 20264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20265 ;; 20266 :H) 20267 # 20268 # CONFIG_HEADER 20269 # 20270 if test x"$ac_file" != x-; then 20271 { 20272 $as_echo "/* $configure_input */" \ 20273 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20274 } >"$ac_tmp/config.h" \ 20275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20276 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20277 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20278$as_echo "$as_me: $ac_file is unchanged" >&6;} 20279 else 20280 rm -f "$ac_file" 20281 mv "$ac_tmp/config.h" "$ac_file" \ 20282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20283 fi 20284 else 20285 $as_echo "/* $configure_input */" \ 20286 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20287 || as_fn_error $? "could not create -" "$LINENO" 5 20288 fi 20289# Compute "$ac_file"'s index in $config_headers. 20290_am_arg="$ac_file" 20291_am_stamp_count=1 20292for _am_header in $config_headers :; do 20293 case $_am_header in 20294 $_am_arg | $_am_arg:* ) 20295 break ;; 20296 * ) 20297 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20298 esac 20299done 20300echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20301$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20302 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20303 X"$_am_arg" : 'X\(//\)$' \| \ 20304 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20305$as_echo X"$_am_arg" | 20306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20307 s//\1/ 20308 q 20309 } 20310 /^X\(\/\/\)[^/].*/{ 20311 s//\1/ 20312 q 20313 } 20314 /^X\(\/\/\)$/{ 20315 s//\1/ 20316 q 20317 } 20318 /^X\(\/\).*/{ 20319 s//\1/ 20320 q 20321 } 20322 s/.*/./; q'`/stamp-h$_am_stamp_count 20323 ;; 20324 20325 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20326$as_echo "$as_me: executing $ac_file commands" >&6;} 20327 ;; 20328 esac 20329 20330 20331 case $ac_file$ac_mode in 20332 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20333 # Older Autoconf quotes --file arguments for eval, but not when files 20334 # are listed without --file. Let's play safe and only enable the eval 20335 # if we detect the quoting. 20336 case $CONFIG_FILES in 20337 *\'*) eval set x "$CONFIG_FILES" ;; 20338 *) set x $CONFIG_FILES ;; 20339 esac 20340 shift 20341 for mf 20342 do 20343 # Strip MF so we end up with the name of the file. 20344 mf=`echo "$mf" | sed -e 's/:.*$//'` 20345 # Check whether this is an Automake generated Makefile or not. 20346 # We used to match only the files named 'Makefile.in', but 20347 # some people rename them; so instead we look at the file content. 20348 # Grep'ing the first line is not enough: some people post-process 20349 # each Makefile.in and add a new line on top of each file to say so. 20350 # Grep'ing the whole file is not good either: AIX grep has a line 20351 # limit of 2048, but all sed's we know have understand at least 4000. 20352 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20353 dirpart=`$as_dirname -- "$mf" || 20354$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20355 X"$mf" : 'X\(//\)[^/]' \| \ 20356 X"$mf" : 'X\(//\)$' \| \ 20357 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20358$as_echo X"$mf" | 20359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20360 s//\1/ 20361 q 20362 } 20363 /^X\(\/\/\)[^/].*/{ 20364 s//\1/ 20365 q 20366 } 20367 /^X\(\/\/\)$/{ 20368 s//\1/ 20369 q 20370 } 20371 /^X\(\/\).*/{ 20372 s//\1/ 20373 q 20374 } 20375 s/.*/./; q'` 20376 else 20377 continue 20378 fi 20379 # Extract the definition of DEPDIR, am__include, and am__quote 20380 # from the Makefile without running 'make'. 20381 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20382 test -z "$DEPDIR" && continue 20383 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20384 test -z "$am__include" && continue 20385 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20386 # Find all dependency output files, they are included files with 20387 # $(DEPDIR) in their names. We invoke sed twice because it is the 20388 # simplest approach to changing $(DEPDIR) to its actual value in the 20389 # expansion. 20390 for file in `sed -n " 20391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20393 # Make sure the directory exists. 20394 test -f "$dirpart/$file" && continue 20395 fdir=`$as_dirname -- "$file" || 20396$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20397 X"$file" : 'X\(//\)[^/]' \| \ 20398 X"$file" : 'X\(//\)$' \| \ 20399 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20400$as_echo X"$file" | 20401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20402 s//\1/ 20403 q 20404 } 20405 /^X\(\/\/\)[^/].*/{ 20406 s//\1/ 20407 q 20408 } 20409 /^X\(\/\/\)$/{ 20410 s//\1/ 20411 q 20412 } 20413 /^X\(\/\).*/{ 20414 s//\1/ 20415 q 20416 } 20417 s/.*/./; q'` 20418 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20419 # echo "creating $dirpart/$file" 20420 echo '# dummy' > "$dirpart/$file" 20421 done 20422 done 20423} 20424 ;; 20425 "libtool":C) 20426 20427 # See if we are running on zsh, and set the options which allow our 20428 # commands through without removal of \ escapes. 20429 if test -n "${ZSH_VERSION+set}" ; then 20430 setopt NO_GLOB_SUBST 20431 fi 20432 20433 cfgfile="${ofile}T" 20434 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20435 $RM "$cfgfile" 20436 20437 cat <<_LT_EOF >> "$cfgfile" 20438#! $SHELL 20439 20440# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20441# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20442# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20443# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20444# 20445# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20446# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20447# Foundation, Inc. 20448# Written by Gordon Matzigkeit, 1996 20449# 20450# This file is part of GNU Libtool. 20451# 20452# GNU Libtool is free software; you can redistribute it and/or 20453# modify it under the terms of the GNU General Public License as 20454# published by the Free Software Foundation; either version 2 of 20455# the License, or (at your option) any later version. 20456# 20457# As a special exception to the GNU General Public License, 20458# if you distribute this file as part of a program or library that 20459# is built using GNU Libtool, you may include this file under the 20460# same distribution terms that you use for the rest of that program. 20461# 20462# GNU Libtool is distributed in the hope that it will be useful, 20463# but WITHOUT ANY WARRANTY; without even the implied warranty of 20464# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20465# GNU General Public License for more details. 20466# 20467# You should have received a copy of the GNU General Public License 20468# along with GNU Libtool; see the file COPYING. If not, a copy 20469# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20470# obtained by writing to the Free Software Foundation, Inc., 20471# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20472 20473 20474# The names of the tagged configurations supported by this script. 20475available_tags="" 20476 20477# ### BEGIN LIBTOOL CONFIG 20478 20479# Which release of libtool.m4 was used? 20480macro_version=$macro_version 20481macro_revision=$macro_revision 20482 20483# Whether or not to build shared libraries. 20484build_libtool_libs=$enable_shared 20485 20486# Whether or not to build static libraries. 20487build_old_libs=$enable_static 20488 20489# What type of objects to build. 20490pic_mode=$pic_mode 20491 20492# Whether or not to optimize for fast installation. 20493fast_install=$enable_fast_install 20494 20495# Shell to use when invoking shell scripts. 20496SHELL=$lt_SHELL 20497 20498# An echo program that protects backslashes. 20499ECHO=$lt_ECHO 20500 20501# The PATH separator for the build system. 20502PATH_SEPARATOR=$lt_PATH_SEPARATOR 20503 20504# The host system. 20505host_alias=$host_alias 20506host=$host 20507host_os=$host_os 20508 20509# The build system. 20510build_alias=$build_alias 20511build=$build 20512build_os=$build_os 20513 20514# A sed program that does not truncate output. 20515SED=$lt_SED 20516 20517# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20518Xsed="\$SED -e 1s/^X//" 20519 20520# A grep program that handles long lines. 20521GREP=$lt_GREP 20522 20523# An ERE matcher. 20524EGREP=$lt_EGREP 20525 20526# A literal string matcher. 20527FGREP=$lt_FGREP 20528 20529# A BSD- or MS-compatible name lister. 20530NM=$lt_NM 20531 20532# Whether we need soft or hard links. 20533LN_S=$lt_LN_S 20534 20535# What is the maximum length of a command? 20536max_cmd_len=$max_cmd_len 20537 20538# Object file suffix (normally "o"). 20539objext=$ac_objext 20540 20541# Executable file suffix (normally ""). 20542exeext=$exeext 20543 20544# whether the shell understands "unset". 20545lt_unset=$lt_unset 20546 20547# turn spaces into newlines. 20548SP2NL=$lt_lt_SP2NL 20549 20550# turn newlines into spaces. 20551NL2SP=$lt_lt_NL2SP 20552 20553# convert \$build file names to \$host format. 20554to_host_file_cmd=$lt_cv_to_host_file_cmd 20555 20556# convert \$build files to toolchain format. 20557to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20558 20559# An object symbol dumper. 20560OBJDUMP=$lt_OBJDUMP 20561 20562# Method to check whether dependent libraries are shared objects. 20563deplibs_check_method=$lt_deplibs_check_method 20564 20565# Command to use when deplibs_check_method = "file_magic". 20566file_magic_cmd=$lt_file_magic_cmd 20567 20568# How to find potential files when deplibs_check_method = "file_magic". 20569file_magic_glob=$lt_file_magic_glob 20570 20571# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20572want_nocaseglob=$lt_want_nocaseglob 20573 20574# DLL creation program. 20575DLLTOOL=$lt_DLLTOOL 20576 20577# Command to associate shared and link libraries. 20578sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20579 20580# The archiver. 20581AR=$lt_AR 20582 20583# Flags to create an archive. 20584AR_FLAGS=$lt_AR_FLAGS 20585 20586# How to feed a file listing to the archiver. 20587archiver_list_spec=$lt_archiver_list_spec 20588 20589# A symbol stripping program. 20590STRIP=$lt_STRIP 20591 20592# Commands used to install an old-style archive. 20593RANLIB=$lt_RANLIB 20594old_postinstall_cmds=$lt_old_postinstall_cmds 20595old_postuninstall_cmds=$lt_old_postuninstall_cmds 20596 20597# Whether to use a lock for old archive extraction. 20598lock_old_archive_extraction=$lock_old_archive_extraction 20599 20600# A C compiler. 20601LTCC=$lt_CC 20602 20603# LTCC compiler flags. 20604LTCFLAGS=$lt_CFLAGS 20605 20606# Take the output of nm and produce a listing of raw symbols and C names. 20607global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20608 20609# Transform the output of nm in a proper C declaration. 20610global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20611 20612# Transform the output of nm in a C name address pair. 20613global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20614 20615# Transform the output of nm in a C name address pair when lib prefix is needed. 20616global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20617 20618# Specify filename containing input files for \$NM. 20619nm_file_list_spec=$lt_nm_file_list_spec 20620 20621# The root where to search for dependent libraries,and in which our libraries should be installed. 20622lt_sysroot=$lt_sysroot 20623 20624# The name of the directory that contains temporary libtool files. 20625objdir=$objdir 20626 20627# Used to examine libraries when file_magic_cmd begins with "file". 20628MAGIC_CMD=$MAGIC_CMD 20629 20630# Must we lock files when doing compilation? 20631need_locks=$lt_need_locks 20632 20633# Manifest tool. 20634MANIFEST_TOOL=$lt_MANIFEST_TOOL 20635 20636# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20637DSYMUTIL=$lt_DSYMUTIL 20638 20639# Tool to change global to local symbols on Mac OS X. 20640NMEDIT=$lt_NMEDIT 20641 20642# Tool to manipulate fat objects and archives on Mac OS X. 20643LIPO=$lt_LIPO 20644 20645# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20646OTOOL=$lt_OTOOL 20647 20648# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20649OTOOL64=$lt_OTOOL64 20650 20651# Old archive suffix (normally "a"). 20652libext=$libext 20653 20654# Shared library suffix (normally ".so"). 20655shrext_cmds=$lt_shrext_cmds 20656 20657# The commands to extract the exported symbol list from a shared archive. 20658extract_expsyms_cmds=$lt_extract_expsyms_cmds 20659 20660# Variables whose values should be saved in libtool wrapper scripts and 20661# restored at link time. 20662variables_saved_for_relink=$lt_variables_saved_for_relink 20663 20664# Do we need the "lib" prefix for modules? 20665need_lib_prefix=$need_lib_prefix 20666 20667# Do we need a version for libraries? 20668need_version=$need_version 20669 20670# Library versioning type. 20671version_type=$version_type 20672 20673# Shared library runtime path variable. 20674runpath_var=$runpath_var 20675 20676# Shared library path variable. 20677shlibpath_var=$shlibpath_var 20678 20679# Is shlibpath searched before the hard-coded library search path? 20680shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20681 20682# Format of library name prefix. 20683libname_spec=$lt_libname_spec 20684 20685# List of archive names. First name is the real one, the rest are links. 20686# The last name is the one that the linker finds with -lNAME 20687library_names_spec=$lt_library_names_spec 20688 20689# The coded name of the library, if different from the real name. 20690soname_spec=$lt_soname_spec 20691 20692# Permission mode override for installation of shared libraries. 20693install_override_mode=$lt_install_override_mode 20694 20695# Command to use after installation of a shared archive. 20696postinstall_cmds=$lt_postinstall_cmds 20697 20698# Command to use after uninstallation of a shared archive. 20699postuninstall_cmds=$lt_postuninstall_cmds 20700 20701# Commands used to finish a libtool library installation in a directory. 20702finish_cmds=$lt_finish_cmds 20703 20704# As "finish_cmds", except a single script fragment to be evaled but 20705# not shown. 20706finish_eval=$lt_finish_eval 20707 20708# Whether we should hardcode library paths into libraries. 20709hardcode_into_libs=$hardcode_into_libs 20710 20711# Compile-time system search path for libraries. 20712sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20713 20714# Run-time system search path for libraries. 20715sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20716 20717# Whether dlopen is supported. 20718dlopen_support=$enable_dlopen 20719 20720# Whether dlopen of programs is supported. 20721dlopen_self=$enable_dlopen_self 20722 20723# Whether dlopen of statically linked programs is supported. 20724dlopen_self_static=$enable_dlopen_self_static 20725 20726# Commands to strip libraries. 20727old_striplib=$lt_old_striplib 20728striplib=$lt_striplib 20729 20730 20731# The linker used to build libraries. 20732LD=$lt_LD 20733 20734# How to create reloadable object files. 20735reload_flag=$lt_reload_flag 20736reload_cmds=$lt_reload_cmds 20737 20738# Commands used to build an old-style archive. 20739old_archive_cmds=$lt_old_archive_cmds 20740 20741# A language specific compiler. 20742CC=$lt_compiler 20743 20744# Is the compiler the GNU compiler? 20745with_gcc=$GCC 20746 20747# Compiler flag to turn off builtin functions. 20748no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20749 20750# Additional compiler flags for building library objects. 20751pic_flag=$lt_lt_prog_compiler_pic 20752 20753# How to pass a linker flag through the compiler. 20754wl=$lt_lt_prog_compiler_wl 20755 20756# Compiler flag to prevent dynamic linking. 20757link_static_flag=$lt_lt_prog_compiler_static 20758 20759# Does compiler simultaneously support -c and -o options? 20760compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20761 20762# Whether or not to add -lc for building shared libraries. 20763build_libtool_need_lc=$archive_cmds_need_lc 20764 20765# Whether or not to disallow shared libs when runtime libs are static. 20766allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20767 20768# Compiler flag to allow reflexive dlopens. 20769export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20770 20771# Compiler flag to generate shared objects directly from archives. 20772whole_archive_flag_spec=$lt_whole_archive_flag_spec 20773 20774# Whether the compiler copes with passing no objects directly. 20775compiler_needs_object=$lt_compiler_needs_object 20776 20777# Create an old-style archive from a shared archive. 20778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20779 20780# Create a temporary old-style archive to link instead of a shared archive. 20781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20782 20783# Commands used to build a shared archive. 20784archive_cmds=$lt_archive_cmds 20785archive_expsym_cmds=$lt_archive_expsym_cmds 20786 20787# Commands used to build a loadable module if different from building 20788# a shared archive. 20789module_cmds=$lt_module_cmds 20790module_expsym_cmds=$lt_module_expsym_cmds 20791 20792# Whether we are building with GNU ld or not. 20793with_gnu_ld=$lt_with_gnu_ld 20794 20795# Flag that allows shared libraries with undefined symbols to be built. 20796allow_undefined_flag=$lt_allow_undefined_flag 20797 20798# Flag that enforces no undefined symbols. 20799no_undefined_flag=$lt_no_undefined_flag 20800 20801# Flag to hardcode \$libdir into a binary during linking. 20802# This must work even if \$libdir does not exist 20803hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20804 20805# Whether we need a single "-rpath" flag with a separated argument. 20806hardcode_libdir_separator=$lt_hardcode_libdir_separator 20807 20808# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20809# DIR into the resulting binary. 20810hardcode_direct=$hardcode_direct 20811 20812# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20813# DIR into the resulting binary and the resulting library dependency is 20814# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20815# library is relocated. 20816hardcode_direct_absolute=$hardcode_direct_absolute 20817 20818# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20819# into the resulting binary. 20820hardcode_minus_L=$hardcode_minus_L 20821 20822# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20823# into the resulting binary. 20824hardcode_shlibpath_var=$hardcode_shlibpath_var 20825 20826# Set to "yes" if building a shared library automatically hardcodes DIR 20827# into the library and all subsequent libraries and executables linked 20828# against it. 20829hardcode_automatic=$hardcode_automatic 20830 20831# Set to yes if linker adds runtime paths of dependent libraries 20832# to runtime path list. 20833inherit_rpath=$inherit_rpath 20834 20835# Whether libtool must link a program against all its dependency libraries. 20836link_all_deplibs=$link_all_deplibs 20837 20838# Set to "yes" if exported symbols are required. 20839always_export_symbols=$always_export_symbols 20840 20841# The commands to list exported symbols. 20842export_symbols_cmds=$lt_export_symbols_cmds 20843 20844# Symbols that should not be listed in the preloaded symbols. 20845exclude_expsyms=$lt_exclude_expsyms 20846 20847# Symbols that must always be exported. 20848include_expsyms=$lt_include_expsyms 20849 20850# Commands necessary for linking programs (against libraries) with templates. 20851prelink_cmds=$lt_prelink_cmds 20852 20853# Commands necessary for finishing linking programs. 20854postlink_cmds=$lt_postlink_cmds 20855 20856# Specify filename containing input files. 20857file_list_spec=$lt_file_list_spec 20858 20859# How to hardcode a shared library path into an executable. 20860hardcode_action=$hardcode_action 20861 20862# ### END LIBTOOL CONFIG 20863 20864_LT_EOF 20865 20866 case $host_os in 20867 aix3*) 20868 cat <<\_LT_EOF >> "$cfgfile" 20869# AIX sometimes has problems with the GCC collect2 program. For some 20870# reason, if we set the COLLECT_NAMES environment variable, the problems 20871# vanish in a puff of smoke. 20872if test "X${COLLECT_NAMES+set}" != Xset; then 20873 COLLECT_NAMES= 20874 export COLLECT_NAMES 20875fi 20876_LT_EOF 20877 ;; 20878 esac 20879 20880 20881ltmain="$ac_aux_dir/ltmain.sh" 20882 20883 20884 # We use sed instead of cat because bash on DJGPP gets confused if 20885 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20886 # text mode, it properly converts lines to CR/LF. This bash problem 20887 # is reportedly fixed, but why not run on old versions too? 20888 sed '$q' "$ltmain" >> "$cfgfile" \ 20889 || (rm -f "$cfgfile"; exit 1) 20890 20891 if test x"$xsi_shell" = xyes; then 20892 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20893func_dirname ()\ 20894{\ 20895\ case ${1} in\ 20896\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20897\ * ) func_dirname_result="${3}" ;;\ 20898\ esac\ 20899} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20900 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20902test 0 -eq $? || _lt_function_replace_fail=: 20903 20904 20905 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20906func_basename ()\ 20907{\ 20908\ func_basename_result="${1##*/}"\ 20909} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20910 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20912test 0 -eq $? || _lt_function_replace_fail=: 20913 20914 20915 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20916func_dirname_and_basename ()\ 20917{\ 20918\ case ${1} in\ 20919\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20920\ * ) func_dirname_result="${3}" ;;\ 20921\ esac\ 20922\ func_basename_result="${1##*/}"\ 20923} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20924 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20926test 0 -eq $? || _lt_function_replace_fail=: 20927 20928 20929 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20930func_stripname ()\ 20931{\ 20932\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20933\ # positional parameters, so assign one to ordinary parameter first.\ 20934\ func_stripname_result=${3}\ 20935\ func_stripname_result=${func_stripname_result#"${1}"}\ 20936\ func_stripname_result=${func_stripname_result%"${2}"}\ 20937} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20938 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20940test 0 -eq $? || _lt_function_replace_fail=: 20941 20942 20943 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20944func_split_long_opt ()\ 20945{\ 20946\ func_split_long_opt_name=${1%%=*}\ 20947\ func_split_long_opt_arg=${1#*=}\ 20948} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20949 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20951test 0 -eq $? || _lt_function_replace_fail=: 20952 20953 20954 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20955func_split_short_opt ()\ 20956{\ 20957\ func_split_short_opt_arg=${1#??}\ 20958\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20959} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20960 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20962test 0 -eq $? || _lt_function_replace_fail=: 20963 20964 20965 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20966func_lo2o ()\ 20967{\ 20968\ case ${1} in\ 20969\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20970\ *) func_lo2o_result=${1} ;;\ 20971\ esac\ 20972} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20973 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20975test 0 -eq $? || _lt_function_replace_fail=: 20976 20977 20978 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20979func_xform ()\ 20980{\ 20981 func_xform_result=${1%.*}.lo\ 20982} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20983 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20985test 0 -eq $? || _lt_function_replace_fail=: 20986 20987 20988 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20989func_arith ()\ 20990{\ 20991 func_arith_result=$(( $* ))\ 20992} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20993 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20995test 0 -eq $? || _lt_function_replace_fail=: 20996 20997 20998 sed -e '/^func_len ()$/,/^} # func_len /c\ 20999func_len ()\ 21000{\ 21001 func_len_result=${#1}\ 21002} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21003 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21005test 0 -eq $? || _lt_function_replace_fail=: 21006 21007fi 21008 21009if test x"$lt_shell_append" = xyes; then 21010 sed -e '/^func_append ()$/,/^} # func_append /c\ 21011func_append ()\ 21012{\ 21013 eval "${1}+=\\${2}"\ 21014} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21015 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21017test 0 -eq $? || _lt_function_replace_fail=: 21018 21019 21020 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21021func_append_quoted ()\ 21022{\ 21023\ func_quote_for_eval "${2}"\ 21024\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21025} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21026 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21028test 0 -eq $? || _lt_function_replace_fail=: 21029 21030 21031 # Save a `func_append' function call where possible by direct use of '+=' 21032 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21033 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21035 test 0 -eq $? || _lt_function_replace_fail=: 21036else 21037 # Save a `func_append' function call even when '+=' is not available 21038 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21039 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21041 test 0 -eq $? || _lt_function_replace_fail=: 21042fi 21043 21044if test x"$_lt_function_replace_fail" = x":"; then 21045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21046$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21047fi 21048 21049 21050 mv -f "$cfgfile" "$ofile" || 21051 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21052 chmod +x "$ofile" 21053 21054 ;; 21055 21056 esac 21057done # for ac_tag 21058 21059 21060as_fn_exit 0 21061_ACEOF 21062ac_clean_files=$ac_clean_files_save 21063 21064test $ac_write_fail = 0 || 21065 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21066 21067 21068# configure is writing to config.log, and then calls config.status. 21069# config.status does its own redirection, appending to config.log. 21070# Unfortunately, on DOS this fails, as config.log is still kept open 21071# by configure, so config.status won't be able to write to it; its 21072# output is simply discarded. So we exec the FD to /dev/null, 21073# effectively closing config.log, so it can be properly (re)opened and 21074# appended to by config.status. When coming back to configure, we 21075# need to make the FD available again. 21076if test "$no_create" != yes; then 21077 ac_cs_success=: 21078 ac_config_status_args= 21079 test "$silent" = yes && 21080 ac_config_status_args="$ac_config_status_args --quiet" 21081 exec 5>/dev/null 21082 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21083 exec 5>>config.log 21084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21085 # would make configure fail if this is the last instruction. 21086 $ac_cs_success || as_fn_exit 1 21087fi 21088if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21090$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21091fi 21092 21093